OSDN Git Service

2002-03-11 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/generic/c_locale.h
3080       CLOCALE_CC=config/locale/generic/c_locale.cc
3081       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3082       CCOLLATE_CC=config/locale/generic/collate_members.cc
3083       CCTYPE_CC=config/locale/generic/ctype_members.cc
3084       CMESSAGES_H=config/locale/generic/messages_members.h
3085       CMESSAGES_CC=config/locale/generic/messages_members.cc
3086       CMONEY_CC=config/locale/generic/monetary_members.cc
3087       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3088       CTIME_CC=config/locale/generic/time_members.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/gnu/c_locale.h
3110       CLOCALE_CC=config/locale/gnu/c_locale.cc
3111       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3112       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3113       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3114       CMESSAGES_H=config/locale/gnu/messages_members.h
3115       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3116       CMONEY_CC=config/locale/gnu/monetary_members.cc
3117       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3118       CTIME_CC=config/locale/gnu/time_members.cc
3119       ;;
3120     xieee_1003.1-2001)
3121       echo "$ac_t""generic" 1>&6
3122
3123       # Don't use gettext.
3124       USE_NLS=no
3125
3126       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3127       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3128       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3129       CCOLLATE_CC=config/locale/generic/collate_members.cc
3130       CCTYPE_CC=config/locale/generic/ctype_members.cc
3131       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3132       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3133       CMONEY_CC=config/locale/generic/monetary_members.cc
3134       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3135       CTIME_CC=config/locale/generic/time_members.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" && test x"$enable_debug" = x"no"; then
4170     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4171   fi
4172
4173   
4174   
4175
4176       
4177     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4178 echo "configure:4179: checking for main in -lm" >&5
4179 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181   echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183   ac_save_LIBS="$LIBS"
4184 LIBS="-lm  $LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188
4189 int main() {
4190 main()
4191 ; return 0; }
4192 EOF
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4194   rm -rf conftest*
4195   eval "ac_cv_lib_$ac_lib_var=yes"
4196 else
4197   echo "configure: failed program was:" >&5
4198   cat conftest.$ac_ext >&5
4199   rm -rf conftest*
4200   eval "ac_cv_lib_$ac_lib_var=no"
4201 fi
4202 rm -f conftest*
4203 LIBS="$ac_save_LIBS"
4204
4205 fi
4206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4207   echo "$ac_t""yes" 1>&6
4208     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4209     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4210   cat >> confdefs.h <<EOF
4211 #define $ac_tr_lib 1
4212 EOF
4213
4214   LIBS="-lm $LIBS"
4215
4216 else
4217   echo "$ac_t""no" 1>&6
4218 fi
4219
4220   for ac_func in nan copysignf
4221 do
4222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_func" >&5
4224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4225   echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227   cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* System header to define __stub macros and hopefully few prototypes,
4231     which can conflict with char $ac_func(); below.  */
4232 #include <assert.h>
4233 /* Override any gcc2 internal prototype to avoid an error.  */
4234 /* We use char because int might match the return type of a gcc2
4235     builtin and then its argument prototype would still apply.  */
4236 char $ac_func();
4237
4238 int main() {
4239
4240 /* The GNU C library defines this for functions which it implements
4241     to always fail with ENOSYS.  Some functions are actually named
4242     something starting with __ and the normal name is an alias.  */
4243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244 choke me
4245 #else
4246 $ac_func();
4247 #endif
4248
4249 ; return 0; }
4250 EOF
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252   rm -rf conftest*
4253   eval "ac_cv_func_$ac_func=yes"
4254 else
4255   echo "configure: failed program was:" >&5
4256   cat conftest.$ac_ext >&5
4257   rm -rf conftest*
4258   eval "ac_cv_func_$ac_func=no"
4259 fi
4260 rm -f conftest*
4261 fi
4262
4263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4264   echo "$ac_t""yes" 1>&6
4265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4266   cat >> confdefs.h <<EOF
4267 #define $ac_tr_func 1
4268 EOF
4269  
4270 else
4271   echo "$ac_t""no" 1>&6
4272 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4273 fi
4274 done
4275
4276
4277
4278           USE_COMPLEX_LONG_DOUBLE=no
4279   if test x$ac_cv_func_copysignl = x"yes"; then
4280     USE_COMPLEX_LONG_DOUBLE=yes
4281     for ac_func in signbitl
4282 do
4283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4284 echo "configure:4285: checking for $ac_func" >&5
4285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4286   echo $ac_n "(cached) $ac_c" 1>&6
4287 else
4288   cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4291 /* System header to define __stub macros and hopefully few prototypes,
4292     which can conflict with char $ac_func(); below.  */
4293 #include <assert.h>
4294 /* Override any gcc2 internal prototype to avoid an error.  */
4295 /* We use char because int might match the return type of a gcc2
4296     builtin and then its argument prototype would still apply.  */
4297 char $ac_func();
4298
4299 int main() {
4300
4301 /* The GNU C library defines this for functions which it implements
4302     to always fail with ENOSYS.  Some functions are actually named
4303     something starting with __ and the normal name is an alias.  */
4304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4305 choke me
4306 #else
4307 $ac_func();
4308 #endif
4309
4310 ; return 0; }
4311 EOF
4312 if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313   rm -rf conftest*
4314   eval "ac_cv_func_$ac_func=yes"
4315 else
4316   echo "configure: failed program was:" >&5
4317   cat conftest.$ac_ext >&5
4318   rm -rf conftest*
4319   eval "ac_cv_func_$ac_func=no"
4320 fi
4321 rm -f conftest*
4322 fi
4323
4324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4325   echo "$ac_t""yes" 1>&6
4326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4327   cat >> confdefs.h <<EOF
4328 #define $ac_tr_func 1
4329 EOF
4330  
4331 else
4332   echo "$ac_t""no" 1>&6
4333 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4334 fi
4335 done
4336
4337
4338   fi
4339
4340   
4341
4342       
4343
4344       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4345 echo "configure:4346: checking for mbstate_t" >&5
4346   cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <wchar.h>
4350 int main() {
4351 mbstate_t teststate;
4352 ; return 0; }
4353 EOF
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4355   rm -rf conftest*
4356   have_mbstate_t=yes
4357 else
4358   echo "configure: failed program was:" >&5
4359   cat conftest.$ac_ext >&5
4360   rm -rf conftest*
4361   have_mbstate_t=no
4362 fi
4363 rm -f conftest*
4364   echo "$ac_t""$have_mbstate_t" 1>&6
4365   if test x"$have_mbstate_t" = xyes; then
4366     cat >> confdefs.h <<\EOF
4367 #define HAVE_MBSTATE_T 1
4368 EOF
4369
4370   fi
4371
4372     for ac_hdr in wchar.h
4373 do
4374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4376 echo "configure:4377: checking for $ac_hdr" >&5
4377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4378   echo $ac_n "(cached) $ac_c" 1>&6
4379 else
4380   cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <$ac_hdr>
4384 EOF
4385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4386 { (eval echo configure:4387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4388 if test -z "$ac_err"; then
4389   rm -rf conftest*
4390   eval "ac_cv_header_$ac_safe=yes"
4391 else
4392   echo "$ac_err" >&5
4393   echo "configure: failed program was:" >&5
4394   cat conftest.$ac_ext >&5
4395   rm -rf conftest*
4396   eval "ac_cv_header_$ac_safe=no"
4397 fi
4398 rm -f conftest*
4399 fi
4400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4401   echo "$ac_t""yes" 1>&6
4402     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4403   cat >> confdefs.h <<EOF
4404 #define $ac_tr_hdr 1
4405 EOF
4406  ac_has_wchar_h=yes
4407 else
4408   echo "$ac_t""no" 1>&6
4409 ac_has_wchar_h=no
4410 fi
4411 done
4412
4413   for ac_hdr in wctype.h
4414 do
4415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_hdr" >&5
4418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4419   echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421   cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <$ac_hdr>
4425 EOF
4426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427 { (eval echo configure:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4429 if test -z "$ac_err"; then
4430   rm -rf conftest*
4431   eval "ac_cv_header_$ac_safe=yes"
4432 else
4433   echo "$ac_err" >&5
4434   echo "configure: failed program was:" >&5
4435   cat conftest.$ac_ext >&5
4436   rm -rf conftest*
4437   eval "ac_cv_header_$ac_safe=no"
4438 fi
4439 rm -f conftest*
4440 fi
4441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4442   echo "$ac_t""yes" 1>&6
4443     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4444   cat >> confdefs.h <<EOF
4445 #define $ac_tr_hdr 1
4446 EOF
4447  ac_has_wctype_h=yes
4448 else
4449   echo "$ac_t""no" 1>&6
4450 ac_has_wctype_h=no
4451 fi
4452 done
4453
4454   
4455     if test x"$ac_has_wchar_h" = xyes &&
4456      test x"$ac_has_wctype_h" = xyes &&
4457      test x"$enable_c_mbchar" != xno; then
4458       
4459             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4460 echo "configure:4461: checking for WCHAR_MIN and WCHAR_MAX" >&5
4461     cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 #include <wchar.h>
4465 int main() {
4466 int i = WCHAR_MIN; int j = WCHAR_MAX;
4467 ; return 0; }
4468 EOF
4469 if { (eval echo configure:4470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4470   rm -rf conftest*
4471   has_wchar_minmax=yes
4472 else
4473   echo "configure: failed program was:" >&5
4474   cat conftest.$ac_ext >&5
4475   rm -rf conftest*
4476   has_wchar_minmax=no
4477 fi
4478 rm -f conftest*
4479     echo "$ac_t""$has_wchar_minmax" 1>&6
4480     
4481             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4482 echo "configure:4483: checking for WEOF" >&5
4483     cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486
4487       #include <wchar.h>
4488       #include <stddef.h>
4489 int main() {
4490 wint_t i = WEOF;
4491 ; return 0; }
4492 EOF
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4494   rm -rf conftest*
4495   has_weof=yes
4496 else
4497   echo "configure: failed program was:" >&5
4498   cat conftest.$ac_ext >&5
4499   rm -rf conftest*
4500   has_weof=no
4501 fi
4502 rm -f conftest*
4503     echo "$ac_t""$has_weof" 1>&6
4504   
4505         ac_wfuncs=yes
4506     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4507 do
4508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_func" >&5
4510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4511   echo $ac_n "(cached) $ac_c" 1>&6
4512 else
4513   cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* System header to define __stub macros and hopefully few prototypes,
4517     which can conflict with char $ac_func(); below.  */
4518 #include <assert.h>
4519 /* Override any gcc2 internal prototype to avoid an error.  */
4520 /* We use char because int might match the return type of a gcc2
4521     builtin and then its argument prototype would still apply.  */
4522 char $ac_func();
4523
4524 int main() {
4525
4526 /* The GNU C library defines this for functions which it implements
4527     to always fail with ENOSYS.  Some functions are actually named
4528     something starting with __ and the normal name is an alias.  */
4529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4530 choke me
4531 #else
4532 $ac_func();
4533 #endif
4534
4535 ; return 0; }
4536 EOF
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538   rm -rf conftest*
4539   eval "ac_cv_func_$ac_func=yes"
4540 else
4541   echo "configure: failed program was:" >&5
4542   cat conftest.$ac_ext >&5
4543   rm -rf conftest*
4544   eval "ac_cv_func_$ac_func=no"
4545 fi
4546 rm -f conftest*
4547 fi
4548
4549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4550   echo "$ac_t""yes" 1>&6
4551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4552   cat >> confdefs.h <<EOF
4553 #define $ac_tr_func 1
4554 EOF
4555  
4556 else
4557   echo "$ac_t""no" 1>&6
4558 \
4559     ac_wfuncs=no
4560 fi
4561 done
4562
4563   
4564         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4565     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4566     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4567     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4568     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4569     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4570 do
4571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4572 echo "configure:4573: checking for $ac_func" >&5
4573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4574   echo $ac_n "(cached) $ac_c" 1>&6
4575 else
4576   cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 /* System header to define __stub macros and hopefully few prototypes,
4580     which can conflict with char $ac_func(); below.  */
4581 #include <assert.h>
4582 /* Override any gcc2 internal prototype to avoid an error.  */
4583 /* We use char because int might match the return type of a gcc2
4584     builtin and then its argument prototype would still apply.  */
4585 char $ac_func();
4586
4587 int main() {
4588
4589 /* The GNU C library defines this for functions which it implements
4590     to always fail with ENOSYS.  Some functions are actually named
4591     something starting with __ and the normal name is an alias.  */
4592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4593 choke me
4594 #else
4595 $ac_func();
4596 #endif
4597
4598 ; return 0; }
4599 EOF
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4601   rm -rf conftest*
4602   eval "ac_cv_func_$ac_func=yes"
4603 else
4604   echo "configure: failed program was:" >&5
4605   cat conftest.$ac_ext >&5
4606   rm -rf conftest*
4607   eval "ac_cv_func_$ac_func=no"
4608 fi
4609 rm -f conftest*
4610 fi
4611
4612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4613   echo "$ac_t""yes" 1>&6
4614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4615   cat >> confdefs.h <<EOF
4616 #define $ac_tr_func 1
4617 EOF
4618  
4619 else
4620   echo "$ac_t""no" 1>&6
4621 \
4622     ac_wfuncs=no
4623 fi
4624 done
4625
4626
4627     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4628 echo "configure:4629: checking for ISO C99 wchar_t support" >&5
4629     if test x"$has_weof" = xyes &&
4630        test x"$has_wchar_minmax" = xyes &&
4631        test x"$ac_wfuncs" = xyes; then
4632       ac_isoC99_wchar_t=yes
4633     else
4634       ac_isoC99_wchar_t=no
4635     fi
4636     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4637   
4638             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4639 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4640 echo "configure:4641: checking for iconv.h" >&5
4641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4642   echo $ac_n "(cached) $ac_c" 1>&6
4643 else
4644   cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 #include <iconv.h>
4648 EOF
4649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4650 { (eval echo configure:4651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4652 if test -z "$ac_err"; then
4653   rm -rf conftest*
4654   eval "ac_cv_header_$ac_safe=yes"
4655 else
4656   echo "$ac_err" >&5
4657   echo "configure: failed program was:" >&5
4658   cat conftest.$ac_ext >&5
4659   rm -rf conftest*
4660   eval "ac_cv_header_$ac_safe=no"
4661 fi
4662 rm -f conftest*
4663 fi
4664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4665   echo "$ac_t""yes" 1>&6
4666   ac_has_iconv_h=yes
4667 else
4668   echo "$ac_t""no" 1>&6
4669 ac_has_iconv_h=no
4670 fi
4671
4672     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking for langinfo.h" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676   echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678   cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <langinfo.h>
4682 EOF
4683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4687   rm -rf conftest*
4688   eval "ac_cv_header_$ac_safe=yes"
4689 else
4690   echo "$ac_err" >&5
4691   echo "configure: failed program was:" >&5
4692   cat conftest.$ac_ext >&5
4693   rm -rf conftest*
4694   eval "ac_cv_header_$ac_safe=no"
4695 fi
4696 rm -f conftest*
4697 fi
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699   echo "$ac_t""yes" 1>&6
4700   ac_has_langinfo_h=yes
4701 else
4702   echo "$ac_t""no" 1>&6
4703 ac_has_langinfo_h=no
4704 fi
4705
4706
4707         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4708 echo "configure:4709: checking for iconv in -liconv" >&5
4709 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4711   echo $ac_n "(cached) $ac_c" 1>&6
4712 else
4713   ac_save_LIBS="$LIBS"
4714 LIBS="-liconv  $LIBS"
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error.  */
4719 /* We use char because int might match the return type of a gcc2
4720     builtin and then its argument prototype would still apply.  */
4721 char iconv();
4722
4723 int main() {
4724 iconv()
4725 ; return 0; }
4726 EOF
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728   rm -rf conftest*
4729   eval "ac_cv_lib_$ac_lib_var=yes"
4730 else
4731   echo "configure: failed program was:" >&5
4732   cat conftest.$ac_ext >&5
4733   rm -rf conftest*
4734   eval "ac_cv_lib_$ac_lib_var=no"
4735 fi
4736 rm -f conftest*
4737 LIBS="$ac_save_LIBS"
4738
4739 fi
4740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741   echo "$ac_t""yes" 1>&6
4742   libiconv="-liconv"
4743 else
4744   echo "$ac_t""no" 1>&6
4745 fi
4746
4747     ac_save_LIBS="$LIBS"
4748     LIBS="$LIBS $libiconv"
4749
4750     for ac_func in iconv_open iconv_close iconv nl_langinfo
4751 do
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5
4754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4755   echo $ac_n "(cached) $ac_c" 1>&6
4756 else
4757   cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761     which can conflict with char $ac_func(); below.  */
4762 #include <assert.h>
4763 /* Override any gcc2 internal prototype to avoid an error.  */
4764 /* We use char because int might match the return type of a gcc2
4765     builtin and then its argument prototype would still apply.  */
4766 char $ac_func();
4767
4768 int main() {
4769
4770 /* The GNU C library defines this for functions which it implements
4771     to always fail with ENOSYS.  Some functions are actually named
4772     something starting with __ and the normal name is an alias.  */
4773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4774 choke me
4775 #else
4776 $ac_func();
4777 #endif
4778
4779 ; return 0; }
4780 EOF
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782   rm -rf conftest*
4783   eval "ac_cv_func_$ac_func=yes"
4784 else
4785   echo "configure: failed program was:" >&5
4786   cat conftest.$ac_ext >&5
4787   rm -rf conftest*
4788   eval "ac_cv_func_$ac_func=no"
4789 fi
4790 rm -f conftest*
4791 fi
4792
4793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4794   echo "$ac_t""yes" 1>&6
4795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4796   cat >> confdefs.h <<EOF
4797 #define $ac_tr_func 1
4798 EOF
4799  \
4800     ac_XPG2funcs=yes
4801 else
4802   echo "$ac_t""no" 1>&6
4803 ac_XPG2funcs=no
4804 fi
4805 done
4806
4807   
4808     LIBS="$ac_save_LIBS"
4809
4810     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4811 echo "configure:4812: checking for XPG2 wchar_t support" >&5
4812     if test x"$ac_has_iconv_h" = xyes &&
4813        test x"$ac_has_langinfo_h" = xyes &&
4814        test x"$ac_XPG2funcs" = xyes; then
4815       ac_XPG2_wchar_t=yes
4816     else
4817       ac_XPG2_wchar_t=no
4818     fi
4819     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4820   
4821             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4822 echo "configure:4823: checking for enabled wchar_t specializations" >&5
4823     if test x"$ac_isoC99_wchar_t" = xyes &&
4824        test x"$ac_XPG2_wchar_t" = xyes; then
4825       cat >> confdefs.h <<\EOF
4826 #define _GLIBCPP_USE_WCHAR_T 1
4827 EOF
4828
4829       echo "$ac_t"""yes"" 1>&6
4830     else
4831       echo "$ac_t"""no"" 1>&6
4832     fi
4833   else
4834         echo "configure: warning: wchar_t support disabled." 1>&2
4835   fi
4836
4837       os_include_dir="config/os/gnu-linux"
4838       cat >> confdefs.h <<\EOF
4839 #define HAVE_COPYSIGN 1
4840 EOF
4841
4842       cat >> confdefs.h <<\EOF
4843 #define HAVE_COPYSIGNF 1
4844 EOF
4845
4846       cat >> confdefs.h <<\EOF
4847 #define HAVE_FINITEF 1
4848 EOF
4849
4850       cat >> confdefs.h <<\EOF
4851 #define HAVE_FREXPF 1
4852 EOF
4853
4854       cat >> confdefs.h <<\EOF
4855 #define HAVE_HYPOTF 1
4856 EOF
4857
4858       cat >> confdefs.h <<\EOF
4859 #define HAVE_SINCOS 1
4860 EOF
4861
4862       cat >> confdefs.h <<\EOF
4863 #define HAVE_SINCOSF 1
4864 EOF
4865
4866       if test x"long_double_math_on_this_cpu" = x"yes"; then
4867         cat >> confdefs.h <<\EOF
4868 #define HAVE_HYPOTL 1
4869 EOF
4870
4871       fi
4872       ;;
4873     *-hpux*)
4874       # Check for available headers.
4875       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4876         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4877         fp.h locale.h float.h inttypes.h
4878 do
4879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4881 echo "configure:4882: checking for $ac_hdr" >&5
4882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4883   echo $ac_n "(cached) $ac_c" 1>&6
4884 else
4885   cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 #include <$ac_hdr>
4889 EOF
4890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4891 { (eval echo configure:4892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4893 if test -z "$ac_err"; then
4894   rm -rf conftest*
4895   eval "ac_cv_header_$ac_safe=yes"
4896 else
4897   echo "$ac_err" >&5
4898   echo "configure: failed program was:" >&5
4899   cat conftest.$ac_ext >&5
4900   rm -rf conftest*
4901   eval "ac_cv_header_$ac_safe=no"
4902 fi
4903 rm -f conftest*
4904 fi
4905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4906   echo "$ac_t""yes" 1>&6
4907     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4908   cat >> confdefs.h <<EOF
4909 #define $ac_tr_hdr 1
4910 EOF
4911  
4912 else
4913   echo "$ac_t""no" 1>&6
4914 fi
4915 done
4916
4917       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4918       
4919       
4920   # If we're not using GNU ld, then there's no point in even trying these
4921   # tests.  Check for that first.  We should have already tested for gld
4922   # by now (in libtool), but require it now just to be safe...
4923   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4924   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4925   
4926
4927   # The name set by libtool depends on the version of libtool.  Shame on us
4928   # for depending on an impl detail, but c'est la vie.  Older versions used
4929   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4930   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4931   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4932   # set (hence we're using an older libtool), then set it.
4933   if test x${with_gnu_ld+set} != xset; then
4934     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4935       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4936       with_gnu_ld=no
4937     else
4938       with_gnu_ld=$ac_cv_prog_gnu_ld
4939     fi
4940   fi
4941
4942   # Start by getting the version number.  I think the libtool test already
4943   # does some of this, but throws away the result.
4944   
4945   ldver=`$LD --version 2>/dev/null | head -1 | \
4946          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4947   
4948   glibcpp_gnu_ld_version=`echo $ldver | \
4949          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4950
4951   # Set --gc-sections.
4952   if test "$with_gnu_ld" = "notbroken"; then
4953     # GNU ld it is!  Joy and bunny rabbits!
4954
4955     # All these tests are for C++; save the language and the compiler flags.
4956     # Need to do this so that g++ won't try to link in libstdc++
4957     ac_test_CFLAGS="${CFLAGS+set}"
4958     ac_save_CFLAGS="$CFLAGS"
4959     CFLAGS='-x c++  -Wl,--gc-sections'
4960
4961     # Check for -Wl,--gc-sections
4962     # XXX This test is broken at the moment, as symbols required for
4963     # linking are now in libsupc++ (not built yet.....). In addition, 
4964     # this test has cored on solaris in the past. In addition,
4965     # --gc-sections doesn't really work at the moment (keeps on discarding
4966     # used sections, first .eh_frame and now some of the glibc sections for
4967     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4968     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4969 echo "configure:4970: checking for ld that supports -Wl,--gc-sections" >&5
4970     if test "$cross_compiling" = yes; then
4971   ac_sectionLDflags=yes
4972 else
4973   cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976
4977      int main(void) 
4978      {
4979        try { throw 1; }
4980        catch (...) { };
4981        return 0;
4982      }
4983     
4984 EOF
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4986 then
4987   ac_sectionLDflags=yes
4988 else
4989   echo "configure: failed program was:" >&5
4990   cat conftest.$ac_ext >&5
4991   rm -fr conftest*
4992   ac_sectionLDflags=no
4993 fi
4994 rm -fr conftest*
4995 fi
4996
4997     if test "$ac_test_CFLAGS" = set; then
4998       CFLAGS="$ac_save_CFLAGS"
4999     else
5000       # this is the suspicious part
5001       CFLAGS=''
5002     fi
5003     if test "$ac_sectionLDflags" = "yes"; then
5004       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5005     fi
5006     echo "$ac_t""$ac_sectionLDflags" 1>&6
5007   fi
5008
5009   # Set linker optimization flags.
5010   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5011     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5012   fi
5013
5014   
5015   
5016
5017       
5018     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5019 echo "configure:5020: checking for main in -lm" >&5
5020 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5022   echo $ac_n "(cached) $ac_c" 1>&6
5023 else
5024   ac_save_LIBS="$LIBS"
5025 LIBS="-lm  $LIBS"
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029
5030 int main() {
5031 main()
5032 ; return 0; }
5033 EOF
5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035   rm -rf conftest*
5036   eval "ac_cv_lib_$ac_lib_var=yes"
5037 else
5038   echo "configure: failed program was:" >&5
5039   cat conftest.$ac_ext >&5
5040   rm -rf conftest*
5041   eval "ac_cv_lib_$ac_lib_var=no"
5042 fi
5043 rm -f conftest*
5044 LIBS="$ac_save_LIBS"
5045
5046 fi
5047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5048   echo "$ac_t""yes" 1>&6
5049     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5050     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5051   cat >> confdefs.h <<EOF
5052 #define $ac_tr_lib 1
5053 EOF
5054
5055   LIBS="-lm $LIBS"
5056
5057 else
5058   echo "$ac_t""no" 1>&6
5059 fi
5060
5061   for ac_func in nan copysignf
5062 do
5063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5064 echo "configure:5065: checking for $ac_func" >&5
5065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5066   echo $ac_n "(cached) $ac_c" 1>&6
5067 else
5068   cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071 /* System header to define __stub macros and hopefully few prototypes,
5072     which can conflict with char $ac_func(); below.  */
5073 #include <assert.h>
5074 /* Override any gcc2 internal prototype to avoid an error.  */
5075 /* We use char because int might match the return type of a gcc2
5076     builtin and then its argument prototype would still apply.  */
5077 char $ac_func();
5078
5079 int main() {
5080
5081 /* The GNU C library defines this for functions which it implements
5082     to always fail with ENOSYS.  Some functions are actually named
5083     something starting with __ and the normal name is an alias.  */
5084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5085 choke me
5086 #else
5087 $ac_func();
5088 #endif
5089
5090 ; return 0; }
5091 EOF
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093   rm -rf conftest*
5094   eval "ac_cv_func_$ac_func=yes"
5095 else
5096   echo "configure: failed program was:" >&5
5097   cat conftest.$ac_ext >&5
5098   rm -rf conftest*
5099   eval "ac_cv_func_$ac_func=no"
5100 fi
5101 rm -f conftest*
5102 fi
5103
5104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5105   echo "$ac_t""yes" 1>&6
5106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5107   cat >> confdefs.h <<EOF
5108 #define $ac_tr_func 1
5109 EOF
5110  
5111 else
5112   echo "$ac_t""no" 1>&6
5113 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5114 fi
5115 done
5116
5117
5118
5119           USE_COMPLEX_LONG_DOUBLE=no
5120   if test x$ac_cv_func_copysignl = x"yes"; then
5121     USE_COMPLEX_LONG_DOUBLE=yes
5122     for ac_func in signbitl
5123 do
5124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5125 echo "configure:5126: checking for $ac_func" >&5
5126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5127   echo $ac_n "(cached) $ac_c" 1>&6
5128 else
5129   cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 /* System header to define __stub macros and hopefully few prototypes,
5133     which can conflict with char $ac_func(); below.  */
5134 #include <assert.h>
5135 /* Override any gcc2 internal prototype to avoid an error.  */
5136 /* We use char because int might match the return type of a gcc2
5137     builtin and then its argument prototype would still apply.  */
5138 char $ac_func();
5139
5140 int main() {
5141
5142 /* The GNU C library defines this for functions which it implements
5143     to always fail with ENOSYS.  Some functions are actually named
5144     something starting with __ and the normal name is an alias.  */
5145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146 choke me
5147 #else
5148 $ac_func();
5149 #endif
5150
5151 ; return 0; }
5152 EOF
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154   rm -rf conftest*
5155   eval "ac_cv_func_$ac_func=yes"
5156 else
5157   echo "configure: failed program was:" >&5
5158   cat conftest.$ac_ext >&5
5159   rm -rf conftest*
5160   eval "ac_cv_func_$ac_func=no"
5161 fi
5162 rm -f conftest*
5163 fi
5164
5165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5166   echo "$ac_t""yes" 1>&6
5167     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5168   cat >> confdefs.h <<EOF
5169 #define $ac_tr_func 1
5170 EOF
5171  
5172 else
5173   echo "$ac_t""no" 1>&6
5174 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5175 fi
5176 done
5177
5178
5179   fi
5180
5181   
5182
5183       
5184
5185       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5186 echo "configure:5187: checking for mbstate_t" >&5
5187   cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 #include <wchar.h>
5191 int main() {
5192 mbstate_t teststate;
5193 ; return 0; }
5194 EOF
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5196   rm -rf conftest*
5197   have_mbstate_t=yes
5198 else
5199   echo "configure: failed program was:" >&5
5200   cat conftest.$ac_ext >&5
5201   rm -rf conftest*
5202   have_mbstate_t=no
5203 fi
5204 rm -f conftest*
5205   echo "$ac_t""$have_mbstate_t" 1>&6
5206   if test x"$have_mbstate_t" = xyes; then
5207     cat >> confdefs.h <<\EOF
5208 #define HAVE_MBSTATE_T 1
5209 EOF
5210
5211   fi
5212
5213     for ac_hdr in wchar.h
5214 do
5215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5217 echo "configure:5218: checking for $ac_hdr" >&5
5218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5219   echo $ac_n "(cached) $ac_c" 1>&6
5220 else
5221   cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 #include <$ac_hdr>
5225 EOF
5226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5227 { (eval echo configure:5228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5229 if test -z "$ac_err"; then
5230   rm -rf conftest*
5231   eval "ac_cv_header_$ac_safe=yes"
5232 else
5233   echo "$ac_err" >&5
5234   echo "configure: failed program was:" >&5
5235   cat conftest.$ac_ext >&5
5236   rm -rf conftest*
5237   eval "ac_cv_header_$ac_safe=no"
5238 fi
5239 rm -f conftest*
5240 fi
5241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5242   echo "$ac_t""yes" 1>&6
5243     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5244   cat >> confdefs.h <<EOF
5245 #define $ac_tr_hdr 1
5246 EOF
5247  ac_has_wchar_h=yes
5248 else
5249   echo "$ac_t""no" 1>&6
5250 ac_has_wchar_h=no
5251 fi
5252 done
5253
5254   for ac_hdr in wctype.h
5255 do
5256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_hdr" >&5
5259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5260   echo $ac_n "(cached) $ac_c" 1>&6
5261 else
5262   cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 #include <$ac_hdr>
5266 EOF
5267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5268 { (eval echo configure:5269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5270 if test -z "$ac_err"; then
5271   rm -rf conftest*
5272   eval "ac_cv_header_$ac_safe=yes"
5273 else
5274   echo "$ac_err" >&5
5275   echo "configure: failed program was:" >&5
5276   cat conftest.$ac_ext >&5
5277   rm -rf conftest*
5278   eval "ac_cv_header_$ac_safe=no"
5279 fi
5280 rm -f conftest*
5281 fi
5282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5283   echo "$ac_t""yes" 1>&6
5284     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5285   cat >> confdefs.h <<EOF
5286 #define $ac_tr_hdr 1
5287 EOF
5288  ac_has_wctype_h=yes
5289 else
5290   echo "$ac_t""no" 1>&6
5291 ac_has_wctype_h=no
5292 fi
5293 done
5294
5295   
5296     if test x"$ac_has_wchar_h" = xyes &&
5297      test x"$ac_has_wctype_h" = xyes &&
5298      test x"$enable_c_mbchar" != xno; then
5299       
5300             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5301 echo "configure:5302: checking for WCHAR_MIN and WCHAR_MAX" >&5
5302     cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <wchar.h>
5306 int main() {
5307 int i = WCHAR_MIN; int j = WCHAR_MAX;
5308 ; return 0; }
5309 EOF
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311   rm -rf conftest*
5312   has_wchar_minmax=yes
5313 else
5314   echo "configure: failed program was:" >&5
5315   cat conftest.$ac_ext >&5
5316   rm -rf conftest*
5317   has_wchar_minmax=no
5318 fi
5319 rm -f conftest*
5320     echo "$ac_t""$has_wchar_minmax" 1>&6
5321     
5322             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5323 echo "configure:5324: checking for WEOF" >&5
5324     cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327
5328       #include <wchar.h>
5329       #include <stddef.h>
5330 int main() {
5331 wint_t i = WEOF;
5332 ; return 0; }
5333 EOF
5334 if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335   rm -rf conftest*
5336   has_weof=yes
5337 else
5338   echo "configure: failed program was:" >&5
5339   cat conftest.$ac_ext >&5
5340   rm -rf conftest*
5341   has_weof=no
5342 fi
5343 rm -f conftest*
5344     echo "$ac_t""$has_weof" 1>&6
5345   
5346         ac_wfuncs=yes
5347     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5348 do
5349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5350 echo "configure:5351: checking for $ac_func" >&5
5351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5352   echo $ac_n "(cached) $ac_c" 1>&6
5353 else
5354   cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 /* System header to define __stub macros and hopefully few prototypes,
5358     which can conflict with char $ac_func(); below.  */
5359 #include <assert.h>
5360 /* Override any gcc2 internal prototype to avoid an error.  */
5361 /* We use char because int might match the return type of a gcc2
5362     builtin and then its argument prototype would still apply.  */
5363 char $ac_func();
5364
5365 int main() {
5366
5367 /* The GNU C library defines this for functions which it implements
5368     to always fail with ENOSYS.  Some functions are actually named
5369     something starting with __ and the normal name is an alias.  */
5370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5371 choke me
5372 #else
5373 $ac_func();
5374 #endif
5375
5376 ; return 0; }
5377 EOF
5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379   rm -rf conftest*
5380   eval "ac_cv_func_$ac_func=yes"
5381 else
5382   echo "configure: failed program was:" >&5
5383   cat conftest.$ac_ext >&5
5384   rm -rf conftest*
5385   eval "ac_cv_func_$ac_func=no"
5386 fi
5387 rm -f conftest*
5388 fi
5389
5390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5391   echo "$ac_t""yes" 1>&6
5392     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5393   cat >> confdefs.h <<EOF
5394 #define $ac_tr_func 1
5395 EOF
5396  
5397 else
5398   echo "$ac_t""no" 1>&6
5399 \
5400     ac_wfuncs=no
5401 fi
5402 done
5403
5404   
5405         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5406     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5407     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5408     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5409     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5410     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5411 do
5412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5413 echo "configure:5414: checking for $ac_func" >&5
5414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5415   echo $ac_n "(cached) $ac_c" 1>&6
5416 else
5417   cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* System header to define __stub macros and hopefully few prototypes,
5421     which can conflict with char $ac_func(); below.  */
5422 #include <assert.h>
5423 /* Override any gcc2 internal prototype to avoid an error.  */
5424 /* We use char because int might match the return type of a gcc2
5425     builtin and then its argument prototype would still apply.  */
5426 char $ac_func();
5427
5428 int main() {
5429
5430 /* The GNU C library defines this for functions which it implements
5431     to always fail with ENOSYS.  Some functions are actually named
5432     something starting with __ and the normal name is an alias.  */
5433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5434 choke me
5435 #else
5436 $ac_func();
5437 #endif
5438
5439 ; return 0; }
5440 EOF
5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5442   rm -rf conftest*
5443   eval "ac_cv_func_$ac_func=yes"
5444 else
5445   echo "configure: failed program was:" >&5
5446   cat conftest.$ac_ext >&5
5447   rm -rf conftest*
5448   eval "ac_cv_func_$ac_func=no"
5449 fi
5450 rm -f conftest*
5451 fi
5452
5453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5454   echo "$ac_t""yes" 1>&6
5455     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5456   cat >> confdefs.h <<EOF
5457 #define $ac_tr_func 1
5458 EOF
5459  
5460 else
5461   echo "$ac_t""no" 1>&6
5462 \
5463     ac_wfuncs=no
5464 fi
5465 done
5466
5467
5468     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5469 echo "configure:5470: checking for ISO C99 wchar_t support" >&5
5470     if test x"$has_weof" = xyes &&
5471        test x"$has_wchar_minmax" = xyes &&
5472        test x"$ac_wfuncs" = xyes; then
5473       ac_isoC99_wchar_t=yes
5474     else
5475       ac_isoC99_wchar_t=no
5476     fi
5477     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5478   
5479             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5480 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5481 echo "configure:5482: checking for iconv.h" >&5
5482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5483   echo $ac_n "(cached) $ac_c" 1>&6
5484 else
5485   cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 #include <iconv.h>
5489 EOF
5490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5491 { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5493 if test -z "$ac_err"; then
5494   rm -rf conftest*
5495   eval "ac_cv_header_$ac_safe=yes"
5496 else
5497   echo "$ac_err" >&5
5498   echo "configure: failed program was:" >&5
5499   cat conftest.$ac_ext >&5
5500   rm -rf conftest*
5501   eval "ac_cv_header_$ac_safe=no"
5502 fi
5503 rm -f conftest*
5504 fi
5505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5506   echo "$ac_t""yes" 1>&6
5507   ac_has_iconv_h=yes
5508 else
5509   echo "$ac_t""no" 1>&6
5510 ac_has_iconv_h=no
5511 fi
5512
5513     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5514 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5515 echo "configure:5516: checking for langinfo.h" >&5
5516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5517   echo $ac_n "(cached) $ac_c" 1>&6
5518 else
5519   cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 #include <langinfo.h>
5523 EOF
5524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5525 { (eval echo configure:5526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5527 if test -z "$ac_err"; then
5528   rm -rf conftest*
5529   eval "ac_cv_header_$ac_safe=yes"
5530 else
5531   echo "$ac_err" >&5
5532   echo "configure: failed program was:" >&5
5533   cat conftest.$ac_ext >&5
5534   rm -rf conftest*
5535   eval "ac_cv_header_$ac_safe=no"
5536 fi
5537 rm -f conftest*
5538 fi
5539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5540   echo "$ac_t""yes" 1>&6
5541   ac_has_langinfo_h=yes
5542 else
5543   echo "$ac_t""no" 1>&6
5544 ac_has_langinfo_h=no
5545 fi
5546
5547
5548         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5549 echo "configure:5550: checking for iconv in -liconv" >&5
5550 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5552   echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554   ac_save_LIBS="$LIBS"
5555 LIBS="-liconv  $LIBS"
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 /* Override any gcc2 internal prototype to avoid an error.  */
5560 /* We use char because int might match the return type of a gcc2
5561     builtin and then its argument prototype would still apply.  */
5562 char iconv();
5563
5564 int main() {
5565 iconv()
5566 ; return 0; }
5567 EOF
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569   rm -rf conftest*
5570   eval "ac_cv_lib_$ac_lib_var=yes"
5571 else
5572   echo "configure: failed program was:" >&5
5573   cat conftest.$ac_ext >&5
5574   rm -rf conftest*
5575   eval "ac_cv_lib_$ac_lib_var=no"
5576 fi
5577 rm -f conftest*
5578 LIBS="$ac_save_LIBS"
5579
5580 fi
5581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5582   echo "$ac_t""yes" 1>&6
5583   libiconv="-liconv"
5584 else
5585   echo "$ac_t""no" 1>&6
5586 fi
5587
5588     ac_save_LIBS="$LIBS"
5589     LIBS="$LIBS $libiconv"
5590
5591     for ac_func in iconv_open iconv_close iconv nl_langinfo
5592 do
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5596   echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5598   cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602     which can conflict with char $ac_func(); below.  */
5603 #include <assert.h>
5604 /* Override any gcc2 internal prototype to avoid an error.  */
5605 /* We use char because int might match the return type of a gcc2
5606     builtin and then its argument prototype would still apply.  */
5607 char $ac_func();
5608
5609 int main() {
5610
5611 /* The GNU C library defines this for functions which it implements
5612     to always fail with ENOSYS.  Some functions are actually named
5613     something starting with __ and the normal name is an alias.  */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5615 choke me
5616 #else
5617 $ac_func();
5618 #endif
5619
5620 ; return 0; }
5621 EOF
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623   rm -rf conftest*
5624   eval "ac_cv_func_$ac_func=yes"
5625 else
5626   echo "configure: failed program was:" >&5
5627   cat conftest.$ac_ext >&5
5628   rm -rf conftest*
5629   eval "ac_cv_func_$ac_func=no"
5630 fi
5631 rm -f conftest*
5632 fi
5633
5634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5635   echo "$ac_t""yes" 1>&6
5636     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637   cat >> confdefs.h <<EOF
5638 #define $ac_tr_func 1
5639 EOF
5640  \
5641     ac_XPG2funcs=yes
5642 else
5643   echo "$ac_t""no" 1>&6
5644 ac_XPG2funcs=no
5645 fi
5646 done
5647
5648   
5649     LIBS="$ac_save_LIBS"
5650
5651     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5652 echo "configure:5653: checking for XPG2 wchar_t support" >&5
5653     if test x"$ac_has_iconv_h" = xyes &&
5654        test x"$ac_has_langinfo_h" = xyes &&
5655        test x"$ac_XPG2funcs" = xyes; then
5656       ac_XPG2_wchar_t=yes
5657     else
5658       ac_XPG2_wchar_t=no
5659     fi
5660     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5661   
5662             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5663 echo "configure:5664: checking for enabled wchar_t specializations" >&5
5664     if test x"$ac_isoC99_wchar_t" = xyes &&
5665        test x"$ac_XPG2_wchar_t" = xyes; then
5666       cat >> confdefs.h <<\EOF
5667 #define _GLIBCPP_USE_WCHAR_T 1
5668 EOF
5669
5670       echo "$ac_t"""yes"" 1>&6
5671     else
5672       echo "$ac_t"""no"" 1>&6
5673     fi
5674   else
5675         echo "configure: warning: wchar_t support disabled." 1>&2
5676   fi
5677
5678       os_include_dir="config/os/hpux"
5679       cat >> confdefs.h <<\EOF
5680 #define HAVE_COPYSIGN 1
5681 EOF
5682
5683       cat >> confdefs.h <<\EOF
5684 #define HAVE_COPYSIGNF 1
5685 EOF
5686
5687       cat >> confdefs.h <<\EOF
5688 #define HAVE_FINITEF 1
5689 EOF
5690
5691       cat >> confdefs.h <<\EOF
5692 #define HAVE_FREXPF 1
5693 EOF
5694
5695       cat >> confdefs.h <<\EOF
5696 #define HAVE_HYPOT 1
5697 EOF
5698
5699       cat >> confdefs.h <<\EOF
5700 #define HAVE_SINCOS 1
5701 EOF
5702
5703       cat >> confdefs.h <<\EOF
5704 #define HAVE_SINCOSF 1
5705 EOF
5706
5707       ;;
5708     *-netbsd*)
5709       # Check for available headers.
5710       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5711         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5712         fp.h locale.h float.h inttypes.h
5713 do
5714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_hdr" >&5
5717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5718   echo $ac_n "(cached) $ac_c" 1>&6
5719 else
5720   cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723 #include <$ac_hdr>
5724 EOF
5725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5726 { (eval echo configure:5727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5728 if test -z "$ac_err"; then
5729   rm -rf conftest*
5730   eval "ac_cv_header_$ac_safe=yes"
5731 else
5732   echo "$ac_err" >&5
5733   echo "configure: failed program was:" >&5
5734   cat conftest.$ac_ext >&5
5735   rm -rf conftest*
5736   eval "ac_cv_header_$ac_safe=no"
5737 fi
5738 rm -f conftest*
5739 fi
5740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5741   echo "$ac_t""yes" 1>&6
5742     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5743   cat >> confdefs.h <<EOF
5744 #define $ac_tr_hdr 1
5745 EOF
5746  
5747 else
5748   echo "$ac_t""no" 1>&6
5749 fi
5750 done
5751
5752       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5753        
5754       
5755   # If we're not using GNU ld, then there's no point in even trying these
5756   # tests.  Check for that first.  We should have already tested for gld
5757   # by now (in libtool), but require it now just to be safe...
5758   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5759   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5760   
5761
5762   # The name set by libtool depends on the version of libtool.  Shame on us
5763   # for depending on an impl detail, but c'est la vie.  Older versions used
5764   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5765   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5766   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5767   # set (hence we're using an older libtool), then set it.
5768   if test x${with_gnu_ld+set} != xset; then
5769     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5770       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5771       with_gnu_ld=no
5772     else
5773       with_gnu_ld=$ac_cv_prog_gnu_ld
5774     fi
5775   fi
5776
5777   # Start by getting the version number.  I think the libtool test already
5778   # does some of this, but throws away the result.
5779   
5780   ldver=`$LD --version 2>/dev/null | head -1 | \
5781          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5782   
5783   glibcpp_gnu_ld_version=`echo $ldver | \
5784          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5785
5786   # Set --gc-sections.
5787   if test "$with_gnu_ld" = "notbroken"; then
5788     # GNU ld it is!  Joy and bunny rabbits!
5789
5790     # All these tests are for C++; save the language and the compiler flags.
5791     # Need to do this so that g++ won't try to link in libstdc++
5792     ac_test_CFLAGS="${CFLAGS+set}"
5793     ac_save_CFLAGS="$CFLAGS"
5794     CFLAGS='-x c++  -Wl,--gc-sections'
5795
5796     # Check for -Wl,--gc-sections
5797     # XXX This test is broken at the moment, as symbols required for
5798     # linking are now in libsupc++ (not built yet.....). In addition, 
5799     # this test has cored on solaris in the past. In addition,
5800     # --gc-sections doesn't really work at the moment (keeps on discarding
5801     # used sections, first .eh_frame and now some of the glibc sections for
5802     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5803     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5804 echo "configure:5805: checking for ld that supports -Wl,--gc-sections" >&5
5805     if test "$cross_compiling" = yes; then
5806   ac_sectionLDflags=yes
5807 else
5808   cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5811
5812      int main(void) 
5813      {
5814        try { throw 1; }
5815        catch (...) { };
5816        return 0;
5817      }
5818     
5819 EOF
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5821 then
5822   ac_sectionLDflags=yes
5823 else
5824   echo "configure: failed program was:" >&5
5825   cat conftest.$ac_ext >&5
5826   rm -fr conftest*
5827   ac_sectionLDflags=no
5828 fi
5829 rm -fr conftest*
5830 fi
5831
5832     if test "$ac_test_CFLAGS" = set; then
5833       CFLAGS="$ac_save_CFLAGS"
5834     else
5835       # this is the suspicious part
5836       CFLAGS=''
5837     fi
5838     if test "$ac_sectionLDflags" = "yes"; then
5839       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5840     fi
5841     echo "$ac_t""$ac_sectionLDflags" 1>&6
5842   fi
5843
5844   # Set linker optimization flags.
5845   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5846     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5847   fi
5848
5849   
5850   
5851
5852       
5853     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5854 echo "configure:5855: checking for main in -lm" >&5
5855 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5857   echo $ac_n "(cached) $ac_c" 1>&6
5858 else
5859   ac_save_LIBS="$LIBS"
5860 LIBS="-lm  $LIBS"
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864
5865 int main() {
5866 main()
5867 ; return 0; }
5868 EOF
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5870   rm -rf conftest*
5871   eval "ac_cv_lib_$ac_lib_var=yes"
5872 else
5873   echo "configure: failed program was:" >&5
5874   cat conftest.$ac_ext >&5
5875   rm -rf conftest*
5876   eval "ac_cv_lib_$ac_lib_var=no"
5877 fi
5878 rm -f conftest*
5879 LIBS="$ac_save_LIBS"
5880
5881 fi
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5883   echo "$ac_t""yes" 1>&6
5884     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5885     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5886   cat >> confdefs.h <<EOF
5887 #define $ac_tr_lib 1
5888 EOF
5889
5890   LIBS="-lm $LIBS"
5891
5892 else
5893   echo "$ac_t""no" 1>&6
5894 fi
5895
5896   for ac_func in nan copysignf
5897 do
5898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5899 echo "configure:5900: checking for $ac_func" >&5
5900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5901   echo $ac_n "(cached) $ac_c" 1>&6
5902 else
5903   cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* System header to define __stub macros and hopefully few prototypes,
5907     which can conflict with char $ac_func(); below.  */
5908 #include <assert.h>
5909 /* Override any gcc2 internal prototype to avoid an error.  */
5910 /* We use char because int might match the return type of a gcc2
5911     builtin and then its argument prototype would still apply.  */
5912 char $ac_func();
5913
5914 int main() {
5915
5916 /* The GNU C library defines this for functions which it implements
5917     to always fail with ENOSYS.  Some functions are actually named
5918     something starting with __ and the normal name is an alias.  */
5919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 choke me
5921 #else
5922 $ac_func();
5923 #endif
5924
5925 ; return 0; }
5926 EOF
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928   rm -rf conftest*
5929   eval "ac_cv_func_$ac_func=yes"
5930 else
5931   echo "configure: failed program was:" >&5
5932   cat conftest.$ac_ext >&5
5933   rm -rf conftest*
5934   eval "ac_cv_func_$ac_func=no"
5935 fi
5936 rm -f conftest*
5937 fi
5938
5939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5940   echo "$ac_t""yes" 1>&6
5941     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5942   cat >> confdefs.h <<EOF
5943 #define $ac_tr_func 1
5944 EOF
5945  
5946 else
5947   echo "$ac_t""no" 1>&6
5948 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5949 fi
5950 done
5951
5952
5953
5954           USE_COMPLEX_LONG_DOUBLE=no
5955   if test x$ac_cv_func_copysignl = x"yes"; then
5956     USE_COMPLEX_LONG_DOUBLE=yes
5957     for ac_func in signbitl
5958 do
5959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5960 echo "configure:5961: checking for $ac_func" >&5
5961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5962   echo $ac_n "(cached) $ac_c" 1>&6
5963 else
5964   cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5967 /* System header to define __stub macros and hopefully few prototypes,
5968     which can conflict with char $ac_func(); below.  */
5969 #include <assert.h>
5970 /* Override any gcc2 internal prototype to avoid an error.  */
5971 /* We use char because int might match the return type of a gcc2
5972     builtin and then its argument prototype would still apply.  */
5973 char $ac_func();
5974
5975 int main() {
5976
5977 /* The GNU C library defines this for functions which it implements
5978     to always fail with ENOSYS.  Some functions are actually named
5979     something starting with __ and the normal name is an alias.  */
5980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 choke me
5982 #else
5983 $ac_func();
5984 #endif
5985
5986 ; return 0; }
5987 EOF
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5989   rm -rf conftest*
5990   eval "ac_cv_func_$ac_func=yes"
5991 else
5992   echo "configure: failed program was:" >&5
5993   cat conftest.$ac_ext >&5
5994   rm -rf conftest*
5995   eval "ac_cv_func_$ac_func=no"
5996 fi
5997 rm -f conftest*
5998 fi
5999
6000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6001   echo "$ac_t""yes" 1>&6
6002     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6003   cat >> confdefs.h <<EOF
6004 #define $ac_tr_func 1
6005 EOF
6006  
6007 else
6008   echo "$ac_t""no" 1>&6
6009 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6010 fi
6011 done
6012
6013
6014   fi
6015
6016   
6017
6018       
6019
6020       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6021 echo "configure:6022: checking for mbstate_t" >&5
6022   cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 #include <wchar.h>
6026 int main() {
6027 mbstate_t teststate;
6028 ; return 0; }
6029 EOF
6030 if { (eval echo configure:6031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6031   rm -rf conftest*
6032   have_mbstate_t=yes
6033 else
6034   echo "configure: failed program was:" >&5
6035   cat conftest.$ac_ext >&5
6036   rm -rf conftest*
6037   have_mbstate_t=no
6038 fi
6039 rm -f conftest*
6040   echo "$ac_t""$have_mbstate_t" 1>&6
6041   if test x"$have_mbstate_t" = xyes; then
6042     cat >> confdefs.h <<\EOF
6043 #define HAVE_MBSTATE_T 1
6044 EOF
6045
6046   fi
6047
6048     for ac_hdr in wchar.h
6049 do
6050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_hdr" >&5
6053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6054   echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056   cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <$ac_hdr>
6060 EOF
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6065   rm -rf conftest*
6066   eval "ac_cv_header_$ac_safe=yes"
6067 else
6068   echo "$ac_err" >&5
6069   echo "configure: failed program was:" >&5
6070   cat conftest.$ac_ext >&5
6071   rm -rf conftest*
6072   eval "ac_cv_header_$ac_safe=no"
6073 fi
6074 rm -f conftest*
6075 fi
6076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6077   echo "$ac_t""yes" 1>&6
6078     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6079   cat >> confdefs.h <<EOF
6080 #define $ac_tr_hdr 1
6081 EOF
6082  ac_has_wchar_h=yes
6083 else
6084   echo "$ac_t""no" 1>&6
6085 ac_has_wchar_h=no
6086 fi
6087 done
6088
6089   for ac_hdr in wctype.h
6090 do
6091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_hdr" >&5
6094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6095   echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097   cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <$ac_hdr>
6101 EOF
6102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6103 { (eval echo configure:6104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6105 if test -z "$ac_err"; then
6106   rm -rf conftest*
6107   eval "ac_cv_header_$ac_safe=yes"
6108 else
6109   echo "$ac_err" >&5
6110   echo "configure: failed program was:" >&5
6111   cat conftest.$ac_ext >&5
6112   rm -rf conftest*
6113   eval "ac_cv_header_$ac_safe=no"
6114 fi
6115 rm -f conftest*
6116 fi
6117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6118   echo "$ac_t""yes" 1>&6
6119     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6120   cat >> confdefs.h <<EOF
6121 #define $ac_tr_hdr 1
6122 EOF
6123  ac_has_wctype_h=yes
6124 else
6125   echo "$ac_t""no" 1>&6
6126 ac_has_wctype_h=no
6127 fi
6128 done
6129
6130   
6131     if test x"$ac_has_wchar_h" = xyes &&
6132      test x"$ac_has_wctype_h" = xyes &&
6133      test x"$enable_c_mbchar" != xno; then
6134       
6135             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6136 echo "configure:6137: checking for WCHAR_MIN and WCHAR_MAX" >&5
6137     cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 #include <wchar.h>
6141 int main() {
6142 int i = WCHAR_MIN; int j = WCHAR_MAX;
6143 ; return 0; }
6144 EOF
6145 if { (eval echo configure:6146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6146   rm -rf conftest*
6147   has_wchar_minmax=yes
6148 else
6149   echo "configure: failed program was:" >&5
6150   cat conftest.$ac_ext >&5
6151   rm -rf conftest*
6152   has_wchar_minmax=no
6153 fi
6154 rm -f conftest*
6155     echo "$ac_t""$has_wchar_minmax" 1>&6
6156     
6157             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6158 echo "configure:6159: checking for WEOF" >&5
6159     cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162
6163       #include <wchar.h>
6164       #include <stddef.h>
6165 int main() {
6166 wint_t i = WEOF;
6167 ; return 0; }
6168 EOF
6169 if { (eval echo configure:6170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6170   rm -rf conftest*
6171   has_weof=yes
6172 else
6173   echo "configure: failed program was:" >&5
6174   cat conftest.$ac_ext >&5
6175   rm -rf conftest*
6176   has_weof=no
6177 fi
6178 rm -f conftest*
6179     echo "$ac_t""$has_weof" 1>&6
6180   
6181         ac_wfuncs=yes
6182     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6183 do
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187   echo $ac_n "(cached) $ac_c" 1>&6
6188 else
6189   cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193     which can conflict with char $ac_func(); below.  */
6194 #include <assert.h>
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 /* We use char because int might match the return type of a gcc2
6197     builtin and then its argument prototype would still apply.  */
6198 char $ac_func();
6199
6200 int main() {
6201
6202 /* The GNU C library defines this for functions which it implements
6203     to always fail with ENOSYS.  Some functions are actually named
6204     something starting with __ and the normal name is an alias.  */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6206 choke me
6207 #else
6208 $ac_func();
6209 #endif
6210
6211 ; return 0; }
6212 EOF
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6214   rm -rf conftest*
6215   eval "ac_cv_func_$ac_func=yes"
6216 else
6217   echo "configure: failed program was:" >&5
6218   cat conftest.$ac_ext >&5
6219   rm -rf conftest*
6220   eval "ac_cv_func_$ac_func=no"
6221 fi
6222 rm -f conftest*
6223 fi
6224
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226   echo "$ac_t""yes" 1>&6
6227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228   cat >> confdefs.h <<EOF
6229 #define $ac_tr_func 1
6230 EOF
6231  
6232 else
6233   echo "$ac_t""no" 1>&6
6234 \
6235     ac_wfuncs=no
6236 fi
6237 done
6238
6239   
6240         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6241     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6242     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6243     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6244     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6245     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6246 do
6247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_func" >&5
6249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6250   echo $ac_n "(cached) $ac_c" 1>&6
6251 else
6252   cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256     which can conflict with char $ac_func(); below.  */
6257 #include <assert.h>
6258 /* Override any gcc2 internal prototype to avoid an error.  */
6259 /* We use char because int might match the return type of a gcc2
6260     builtin and then its argument prototype would still apply.  */
6261 char $ac_func();
6262
6263 int main() {
6264
6265 /* The GNU C library defines this for functions which it implements
6266     to always fail with ENOSYS.  Some functions are actually named
6267     something starting with __ and the normal name is an alias.  */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 choke me
6270 #else
6271 $ac_func();
6272 #endif
6273
6274 ; return 0; }
6275 EOF
6276 if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6277   rm -rf conftest*
6278   eval "ac_cv_func_$ac_func=yes"
6279 else
6280   echo "configure: failed program was:" >&5
6281   cat conftest.$ac_ext >&5
6282   rm -rf conftest*
6283   eval "ac_cv_func_$ac_func=no"
6284 fi
6285 rm -f conftest*
6286 fi
6287
6288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6289   echo "$ac_t""yes" 1>&6
6290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6291   cat >> confdefs.h <<EOF
6292 #define $ac_tr_func 1
6293 EOF
6294  
6295 else
6296   echo "$ac_t""no" 1>&6
6297 \
6298     ac_wfuncs=no
6299 fi
6300 done
6301
6302
6303     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6304 echo "configure:6305: checking for ISO C99 wchar_t support" >&5
6305     if test x"$has_weof" = xyes &&
6306        test x"$has_wchar_minmax" = xyes &&
6307        test x"$ac_wfuncs" = xyes; then
6308       ac_isoC99_wchar_t=yes
6309     else
6310       ac_isoC99_wchar_t=no
6311     fi
6312     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6313   
6314             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6315 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6316 echo "configure:6317: checking for iconv.h" >&5
6317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6318   echo $ac_n "(cached) $ac_c" 1>&6
6319 else
6320   cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 #include <iconv.h>
6324 EOF
6325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6326 { (eval echo configure:6327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6328 if test -z "$ac_err"; then
6329   rm -rf conftest*
6330   eval "ac_cv_header_$ac_safe=yes"
6331 else
6332   echo "$ac_err" >&5
6333   echo "configure: failed program was:" >&5
6334   cat conftest.$ac_ext >&5
6335   rm -rf conftest*
6336   eval "ac_cv_header_$ac_safe=no"
6337 fi
6338 rm -f conftest*
6339 fi
6340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6341   echo "$ac_t""yes" 1>&6
6342   ac_has_iconv_h=yes
6343 else
6344   echo "$ac_t""no" 1>&6
6345 ac_has_iconv_h=no
6346 fi
6347
6348     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6349 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6350 echo "configure:6351: checking for langinfo.h" >&5
6351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6352   echo $ac_n "(cached) $ac_c" 1>&6
6353 else
6354   cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 #include <langinfo.h>
6358 EOF
6359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6360 { (eval echo configure:6361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6362 if test -z "$ac_err"; then
6363   rm -rf conftest*
6364   eval "ac_cv_header_$ac_safe=yes"
6365 else
6366   echo "$ac_err" >&5
6367   echo "configure: failed program was:" >&5
6368   cat conftest.$ac_ext >&5
6369   rm -rf conftest*
6370   eval "ac_cv_header_$ac_safe=no"
6371 fi
6372 rm -f conftest*
6373 fi
6374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6375   echo "$ac_t""yes" 1>&6
6376   ac_has_langinfo_h=yes
6377 else
6378   echo "$ac_t""no" 1>&6
6379 ac_has_langinfo_h=no
6380 fi
6381
6382
6383         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6384 echo "configure:6385: checking for iconv in -liconv" >&5
6385 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6387   echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389   ac_save_LIBS="$LIBS"
6390 LIBS="-liconv  $LIBS"
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 /* Override any gcc2 internal prototype to avoid an error.  */
6395 /* We use char because int might match the return type of a gcc2
6396     builtin and then its argument prototype would still apply.  */
6397 char iconv();
6398
6399 int main() {
6400 iconv()
6401 ; return 0; }
6402 EOF
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404   rm -rf conftest*
6405   eval "ac_cv_lib_$ac_lib_var=yes"
6406 else
6407   echo "configure: failed program was:" >&5
6408   cat conftest.$ac_ext >&5
6409   rm -rf conftest*
6410   eval "ac_cv_lib_$ac_lib_var=no"
6411 fi
6412 rm -f conftest*
6413 LIBS="$ac_save_LIBS"
6414
6415 fi
6416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6417   echo "$ac_t""yes" 1>&6
6418   libiconv="-liconv"
6419 else
6420   echo "$ac_t""no" 1>&6
6421 fi
6422
6423     ac_save_LIBS="$LIBS"
6424     LIBS="$LIBS $libiconv"
6425
6426     for ac_func in iconv_open iconv_close iconv nl_langinfo
6427 do
6428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_func" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6431   echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433   cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* System header to define __stub macros and hopefully few prototypes,
6437     which can conflict with char $ac_func(); below.  */
6438 #include <assert.h>
6439 /* Override any gcc2 internal prototype to avoid an error.  */
6440 /* We use char because int might match the return type of a gcc2
6441     builtin and then its argument prototype would still apply.  */
6442 char $ac_func();
6443
6444 int main() {
6445
6446 /* The GNU C library defines this for functions which it implements
6447     to always fail with ENOSYS.  Some functions are actually named
6448     something starting with __ and the normal name is an alias.  */
6449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6450 choke me
6451 #else
6452 $ac_func();
6453 #endif
6454
6455 ; return 0; }
6456 EOF
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458   rm -rf conftest*
6459   eval "ac_cv_func_$ac_func=yes"
6460 else
6461   echo "configure: failed program was:" >&5
6462   cat conftest.$ac_ext >&5
6463   rm -rf conftest*
6464   eval "ac_cv_func_$ac_func=no"
6465 fi
6466 rm -f conftest*
6467 fi
6468
6469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6470   echo "$ac_t""yes" 1>&6
6471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6472   cat >> confdefs.h <<EOF
6473 #define $ac_tr_func 1
6474 EOF
6475  \
6476     ac_XPG2funcs=yes
6477 else
6478   echo "$ac_t""no" 1>&6
6479 ac_XPG2funcs=no
6480 fi
6481 done
6482
6483   
6484     LIBS="$ac_save_LIBS"
6485
6486     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6487 echo "configure:6488: checking for XPG2 wchar_t support" >&5
6488     if test x"$ac_has_iconv_h" = xyes &&
6489        test x"$ac_has_langinfo_h" = xyes &&
6490        test x"$ac_XPG2funcs" = xyes; then
6491       ac_XPG2_wchar_t=yes
6492     else
6493       ac_XPG2_wchar_t=no
6494     fi
6495     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6496   
6497             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6498 echo "configure:6499: checking for enabled wchar_t specializations" >&5
6499     if test x"$ac_isoC99_wchar_t" = xyes &&
6500        test x"$ac_XPG2_wchar_t" = xyes; then
6501       cat >> confdefs.h <<\EOF
6502 #define _GLIBCPP_USE_WCHAR_T 1
6503 EOF
6504
6505       echo "$ac_t"""yes"" 1>&6
6506     else
6507       echo "$ac_t"""no"" 1>&6
6508     fi
6509   else
6510         echo "configure: warning: wchar_t support disabled." 1>&2
6511   fi
6512
6513       os_include_dir="config/os/bsd/netbsd"
6514       cat >> confdefs.h <<\EOF
6515 #define HAVE_COPYSIGN 1
6516 EOF
6517
6518       cat >> confdefs.h <<\EOF
6519 #define HAVE_COPYSIGNF 1
6520 EOF
6521
6522       cat >> confdefs.h <<\EOF
6523 #define HAVE_FINITEF 1
6524 EOF
6525
6526       cat >> confdefs.h <<\EOF
6527 #define HAVE_FREXPF 1
6528 EOF
6529
6530       cat >> confdefs.h <<\EOF
6531 #define HAVE_HYPOTF 1
6532 EOF
6533
6534       ;;
6535     *-mingw32*)
6536       for ac_hdr in sys/types.h locale.h float.h
6537 do
6538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6540 echo "configure:6541: checking for $ac_hdr" >&5
6541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6542   echo $ac_n "(cached) $ac_c" 1>&6
6543 else
6544   cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 #include <$ac_hdr>
6548 EOF
6549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6550 { (eval echo configure:6551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6552 if test -z "$ac_err"; then
6553   rm -rf conftest*
6554   eval "ac_cv_header_$ac_safe=yes"
6555 else
6556   echo "$ac_err" >&5
6557   echo "configure: failed program was:" >&5
6558   cat conftest.$ac_ext >&5
6559   rm -rf conftest*
6560   eval "ac_cv_header_$ac_safe=no"
6561 fi
6562 rm -f conftest*
6563 fi
6564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6565   echo "$ac_t""yes" 1>&6
6566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6567   cat >> confdefs.h <<EOF
6568 #define $ac_tr_hdr 1
6569 EOF
6570  
6571 else
6572   echo "$ac_t""no" 1>&6
6573 fi
6574 done
6575
6576       
6577   # If we're not using GNU ld, then there's no point in even trying these
6578   # tests.  Check for that first.  We should have already tested for gld
6579   # by now (in libtool), but require it now just to be safe...
6580   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6581   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6582   
6583
6584   # The name set by libtool depends on the version of libtool.  Shame on us
6585   # for depending on an impl detail, but c'est la vie.  Older versions used
6586   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6587   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6588   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6589   # set (hence we're using an older libtool), then set it.
6590   if test x${with_gnu_ld+set} != xset; then
6591     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6592       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6593       with_gnu_ld=no
6594     else
6595       with_gnu_ld=$ac_cv_prog_gnu_ld
6596     fi
6597   fi
6598
6599   # Start by getting the version number.  I think the libtool test already
6600   # does some of this, but throws away the result.
6601   
6602   ldver=`$LD --version 2>/dev/null | head -1 | \
6603          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6604   
6605   glibcpp_gnu_ld_version=`echo $ldver | \
6606          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6607
6608   # Set --gc-sections.
6609   if test "$with_gnu_ld" = "notbroken"; then
6610     # GNU ld it is!  Joy and bunny rabbits!
6611
6612     # All these tests are for C++; save the language and the compiler flags.
6613     # Need to do this so that g++ won't try to link in libstdc++
6614     ac_test_CFLAGS="${CFLAGS+set}"
6615     ac_save_CFLAGS="$CFLAGS"
6616     CFLAGS='-x c++  -Wl,--gc-sections'
6617
6618     # Check for -Wl,--gc-sections
6619     # XXX This test is broken at the moment, as symbols required for
6620     # linking are now in libsupc++ (not built yet.....). In addition, 
6621     # this test has cored on solaris in the past. In addition,
6622     # --gc-sections doesn't really work at the moment (keeps on discarding
6623     # used sections, first .eh_frame and now some of the glibc sections for
6624     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6625     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6626 echo "configure:6627: checking for ld that supports -Wl,--gc-sections" >&5
6627     if test "$cross_compiling" = yes; then
6628   ac_sectionLDflags=yes
6629 else
6630   cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure"
6632 #include "confdefs.h"
6633
6634      int main(void) 
6635      {
6636        try { throw 1; }
6637        catch (...) { };
6638        return 0;
6639      }
6640     
6641 EOF
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6643 then
6644   ac_sectionLDflags=yes
6645 else
6646   echo "configure: failed program was:" >&5
6647   cat conftest.$ac_ext >&5
6648   rm -fr conftest*
6649   ac_sectionLDflags=no
6650 fi
6651 rm -fr conftest*
6652 fi
6653
6654     if test "$ac_test_CFLAGS" = set; then
6655       CFLAGS="$ac_save_CFLAGS"
6656     else
6657       # this is the suspicious part
6658       CFLAGS=''
6659     fi
6660     if test "$ac_sectionLDflags" = "yes"; then
6661       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6662     fi
6663     echo "$ac_t""$ac_sectionLDflags" 1>&6
6664   fi
6665
6666   # Set linker optimization flags.
6667   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6668     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6669   fi
6670
6671   
6672   
6673
6674       
6675     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6676 echo "configure:6677: checking for main in -lm" >&5
6677 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6679   echo $ac_n "(cached) $ac_c" 1>&6
6680 else
6681   ac_save_LIBS="$LIBS"
6682 LIBS="-lm  $LIBS"
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686
6687 int main() {
6688 main()
6689 ; return 0; }
6690 EOF
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692   rm -rf conftest*
6693   eval "ac_cv_lib_$ac_lib_var=yes"
6694 else
6695   echo "configure: failed program was:" >&5
6696   cat conftest.$ac_ext >&5
6697   rm -rf conftest*
6698   eval "ac_cv_lib_$ac_lib_var=no"
6699 fi
6700 rm -f conftest*
6701 LIBS="$ac_save_LIBS"
6702
6703 fi
6704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6705   echo "$ac_t""yes" 1>&6
6706     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6707     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6708   cat >> confdefs.h <<EOF
6709 #define $ac_tr_lib 1
6710 EOF
6711
6712   LIBS="-lm $LIBS"
6713
6714 else
6715   echo "$ac_t""no" 1>&6
6716 fi
6717
6718   for ac_func in nan copysignf
6719 do
6720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6721 echo "configure:6722: checking for $ac_func" >&5
6722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6723   echo $ac_n "(cached) $ac_c" 1>&6
6724 else
6725   cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 /* System header to define __stub macros and hopefully few prototypes,
6729     which can conflict with char $ac_func(); below.  */
6730 #include <assert.h>
6731 /* Override any gcc2 internal prototype to avoid an error.  */
6732 /* We use char because int might match the return type of a gcc2
6733     builtin and then its argument prototype would still apply.  */
6734 char $ac_func();
6735
6736 int main() {
6737
6738 /* The GNU C library defines this for functions which it implements
6739     to always fail with ENOSYS.  Some functions are actually named
6740     something starting with __ and the normal name is an alias.  */
6741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6742 choke me
6743 #else
6744 $ac_func();
6745 #endif
6746
6747 ; return 0; }
6748 EOF
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6750   rm -rf conftest*
6751   eval "ac_cv_func_$ac_func=yes"
6752 else
6753   echo "configure: failed program was:" >&5
6754   cat conftest.$ac_ext >&5
6755   rm -rf conftest*
6756   eval "ac_cv_func_$ac_func=no"
6757 fi
6758 rm -f conftest*
6759 fi
6760
6761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6762   echo "$ac_t""yes" 1>&6
6763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6764   cat >> confdefs.h <<EOF
6765 #define $ac_tr_func 1
6766 EOF
6767  
6768 else
6769   echo "$ac_t""no" 1>&6
6770 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6771 fi
6772 done
6773
6774
6775
6776           USE_COMPLEX_LONG_DOUBLE=no
6777   if test x$ac_cv_func_copysignl = x"yes"; then
6778     USE_COMPLEX_LONG_DOUBLE=yes
6779     for ac_func in signbitl
6780 do
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6784   echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786   cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes,
6790     which can conflict with char $ac_func(); below.  */
6791 #include <assert.h>
6792 /* Override any gcc2 internal prototype to avoid an error.  */
6793 /* We use char because int might match the return type of a gcc2
6794     builtin and then its argument prototype would still apply.  */
6795 char $ac_func();
6796
6797 int main() {
6798
6799 /* The GNU C library defines this for functions which it implements
6800     to always fail with ENOSYS.  Some functions are actually named
6801     something starting with __ and the normal name is an alias.  */
6802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6803 choke me
6804 #else
6805 $ac_func();
6806 #endif
6807
6808 ; return 0; }
6809 EOF
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811   rm -rf conftest*
6812   eval "ac_cv_func_$ac_func=yes"
6813 else
6814   echo "configure: failed program was:" >&5
6815   cat conftest.$ac_ext >&5
6816   rm -rf conftest*
6817   eval "ac_cv_func_$ac_func=no"
6818 fi
6819 rm -f conftest*
6820 fi
6821
6822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6823   echo "$ac_t""yes" 1>&6
6824     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6825   cat >> confdefs.h <<EOF
6826 #define $ac_tr_func 1
6827 EOF
6828  
6829 else
6830   echo "$ac_t""no" 1>&6
6831 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6832 fi
6833 done
6834
6835
6836   fi
6837
6838   
6839
6840       
6841
6842       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6843 echo "configure:6844: checking for mbstate_t" >&5
6844   cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 #include <wchar.h>
6848 int main() {
6849 mbstate_t teststate;
6850 ; return 0; }
6851 EOF
6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6853   rm -rf conftest*
6854   have_mbstate_t=yes
6855 else
6856   echo "configure: failed program was:" >&5
6857   cat conftest.$ac_ext >&5
6858   rm -rf conftest*
6859   have_mbstate_t=no
6860 fi
6861 rm -f conftest*
6862   echo "$ac_t""$have_mbstate_t" 1>&6
6863   if test x"$have_mbstate_t" = xyes; then
6864     cat >> confdefs.h <<\EOF
6865 #define HAVE_MBSTATE_T 1
6866 EOF
6867
6868   fi
6869
6870     for ac_hdr in wchar.h
6871 do
6872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_hdr" >&5
6875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6876   echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878   cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 #include <$ac_hdr>
6882 EOF
6883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6884 { (eval echo configure:6885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6886 if test -z "$ac_err"; then
6887   rm -rf conftest*
6888   eval "ac_cv_header_$ac_safe=yes"
6889 else
6890   echo "$ac_err" >&5
6891   echo "configure: failed program was:" >&5
6892   cat conftest.$ac_ext >&5
6893   rm -rf conftest*
6894   eval "ac_cv_header_$ac_safe=no"
6895 fi
6896 rm -f conftest*
6897 fi
6898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6899   echo "$ac_t""yes" 1>&6
6900     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6901   cat >> confdefs.h <<EOF
6902 #define $ac_tr_hdr 1
6903 EOF
6904  ac_has_wchar_h=yes
6905 else
6906   echo "$ac_t""no" 1>&6
6907 ac_has_wchar_h=no
6908 fi
6909 done
6910
6911   for ac_hdr in wctype.h
6912 do
6913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_hdr" >&5
6916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6917   echo $ac_n "(cached) $ac_c" 1>&6
6918 else
6919   cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 #include <$ac_hdr>
6923 EOF
6924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6925 { (eval echo configure:6926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6927 if test -z "$ac_err"; then
6928   rm -rf conftest*
6929   eval "ac_cv_header_$ac_safe=yes"
6930 else
6931   echo "$ac_err" >&5
6932   echo "configure: failed program was:" >&5
6933   cat conftest.$ac_ext >&5
6934   rm -rf conftest*
6935   eval "ac_cv_header_$ac_safe=no"
6936 fi
6937 rm -f conftest*
6938 fi
6939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6940   echo "$ac_t""yes" 1>&6
6941     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6942   cat >> confdefs.h <<EOF
6943 #define $ac_tr_hdr 1
6944 EOF
6945  ac_has_wctype_h=yes
6946 else
6947   echo "$ac_t""no" 1>&6
6948 ac_has_wctype_h=no
6949 fi
6950 done
6951
6952   
6953     if test x"$ac_has_wchar_h" = xyes &&
6954      test x"$ac_has_wctype_h" = xyes &&
6955      test x"$enable_c_mbchar" != xno; then
6956       
6957             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6958 echo "configure:6959: checking for WCHAR_MIN and WCHAR_MAX" >&5
6959     cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 #include <wchar.h>
6963 int main() {
6964 int i = WCHAR_MIN; int j = WCHAR_MAX;
6965 ; return 0; }
6966 EOF
6967 if { (eval echo configure:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6968   rm -rf conftest*
6969   has_wchar_minmax=yes
6970 else
6971   echo "configure: failed program was:" >&5
6972   cat conftest.$ac_ext >&5
6973   rm -rf conftest*
6974   has_wchar_minmax=no
6975 fi
6976 rm -f conftest*
6977     echo "$ac_t""$has_wchar_minmax" 1>&6
6978     
6979             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6980 echo "configure:6981: checking for WEOF" >&5
6981     cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984
6985       #include <wchar.h>
6986       #include <stddef.h>
6987 int main() {
6988 wint_t i = WEOF;
6989 ; return 0; }
6990 EOF
6991 if { (eval echo configure:6992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6992   rm -rf conftest*
6993   has_weof=yes
6994 else
6995   echo "configure: failed program was:" >&5
6996   cat conftest.$ac_ext >&5
6997   rm -rf conftest*
6998   has_weof=no
6999 fi
7000 rm -f conftest*
7001     echo "$ac_t""$has_weof" 1>&6
7002   
7003         ac_wfuncs=yes
7004     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7005 do
7006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_func" >&5
7008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7009   echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011   cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* System header to define __stub macros and hopefully few prototypes,
7015     which can conflict with char $ac_func(); below.  */
7016 #include <assert.h>
7017 /* Override any gcc2 internal prototype to avoid an error.  */
7018 /* We use char because int might match the return type of a gcc2
7019     builtin and then its argument prototype would still apply.  */
7020 char $ac_func();
7021
7022 int main() {
7023
7024 /* The GNU C library defines this for functions which it implements
7025     to always fail with ENOSYS.  Some functions are actually named
7026     something starting with __ and the normal name is an alias.  */
7027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7028 choke me
7029 #else
7030 $ac_func();
7031 #endif
7032
7033 ; return 0; }
7034 EOF
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7036   rm -rf conftest*
7037   eval "ac_cv_func_$ac_func=yes"
7038 else
7039   echo "configure: failed program was:" >&5
7040   cat conftest.$ac_ext >&5
7041   rm -rf conftest*
7042   eval "ac_cv_func_$ac_func=no"
7043 fi
7044 rm -f conftest*
7045 fi
7046
7047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7048   echo "$ac_t""yes" 1>&6
7049     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7050   cat >> confdefs.h <<EOF
7051 #define $ac_tr_func 1
7052 EOF
7053  
7054 else
7055   echo "$ac_t""no" 1>&6
7056 \
7057     ac_wfuncs=no
7058 fi
7059 done
7060
7061   
7062         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7063     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7064     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7065     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7066     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7067     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7068 do
7069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_func" >&5
7071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7072   echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074   cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes,
7078     which can conflict with char $ac_func(); below.  */
7079 #include <assert.h>
7080 /* Override any gcc2 internal prototype to avoid an error.  */
7081 /* We use char because int might match the return type of a gcc2
7082     builtin and then its argument prototype would still apply.  */
7083 char $ac_func();
7084
7085 int main() {
7086
7087 /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS.  Some functions are actually named
7089     something starting with __ and the normal name is an alias.  */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 choke me
7092 #else
7093 $ac_func();
7094 #endif
7095
7096 ; return 0; }
7097 EOF
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099   rm -rf conftest*
7100   eval "ac_cv_func_$ac_func=yes"
7101 else
7102   echo "configure: failed program was:" >&5
7103   cat conftest.$ac_ext >&5
7104   rm -rf conftest*
7105   eval "ac_cv_func_$ac_func=no"
7106 fi
7107 rm -f conftest*
7108 fi
7109
7110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7111   echo "$ac_t""yes" 1>&6
7112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7113   cat >> confdefs.h <<EOF
7114 #define $ac_tr_func 1
7115 EOF
7116  
7117 else
7118   echo "$ac_t""no" 1>&6
7119 \
7120     ac_wfuncs=no
7121 fi
7122 done
7123
7124
7125     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7126 echo "configure:7127: checking for ISO C99 wchar_t support" >&5
7127     if test x"$has_weof" = xyes &&
7128        test x"$has_wchar_minmax" = xyes &&
7129        test x"$ac_wfuncs" = xyes; then
7130       ac_isoC99_wchar_t=yes
7131     else
7132       ac_isoC99_wchar_t=no
7133     fi
7134     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7135   
7136             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7137 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7138 echo "configure:7139: checking for iconv.h" >&5
7139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7140   echo $ac_n "(cached) $ac_c" 1>&6
7141 else
7142   cat > conftest.$ac_ext <<EOF
7143 #line 7144 "configure"
7144 #include "confdefs.h"
7145 #include <iconv.h>
7146 EOF
7147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7148 { (eval echo configure:7149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7150 if test -z "$ac_err"; then
7151   rm -rf conftest*
7152   eval "ac_cv_header_$ac_safe=yes"
7153 else
7154   echo "$ac_err" >&5
7155   echo "configure: failed program was:" >&5
7156   cat conftest.$ac_ext >&5
7157   rm -rf conftest*
7158   eval "ac_cv_header_$ac_safe=no"
7159 fi
7160 rm -f conftest*
7161 fi
7162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7163   echo "$ac_t""yes" 1>&6
7164   ac_has_iconv_h=yes
7165 else
7166   echo "$ac_t""no" 1>&6
7167 ac_has_iconv_h=no
7168 fi
7169
7170     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7171 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7172 echo "configure:7173: checking for langinfo.h" >&5
7173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7174   echo $ac_n "(cached) $ac_c" 1>&6
7175 else
7176   cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <langinfo.h>
7180 EOF
7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7184 if test -z "$ac_err"; then
7185   rm -rf conftest*
7186   eval "ac_cv_header_$ac_safe=yes"
7187 else
7188   echo "$ac_err" >&5
7189   echo "configure: failed program was:" >&5
7190   cat conftest.$ac_ext >&5
7191   rm -rf conftest*
7192   eval "ac_cv_header_$ac_safe=no"
7193 fi
7194 rm -f conftest*
7195 fi
7196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7197   echo "$ac_t""yes" 1>&6
7198   ac_has_langinfo_h=yes
7199 else
7200   echo "$ac_t""no" 1>&6
7201 ac_has_langinfo_h=no
7202 fi
7203
7204
7205         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7206 echo "configure:7207: checking for iconv in -liconv" >&5
7207 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7209   echo $ac_n "(cached) $ac_c" 1>&6
7210 else
7211   ac_save_LIBS="$LIBS"
7212 LIBS="-liconv  $LIBS"
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* Override any gcc2 internal prototype to avoid an error.  */
7217 /* We use char because int might match the return type of a gcc2
7218     builtin and then its argument prototype would still apply.  */
7219 char iconv();
7220
7221 int main() {
7222 iconv()
7223 ; return 0; }
7224 EOF
7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226   rm -rf conftest*
7227   eval "ac_cv_lib_$ac_lib_var=yes"
7228 else
7229   echo "configure: failed program was:" >&5
7230   cat conftest.$ac_ext >&5
7231   rm -rf conftest*
7232   eval "ac_cv_lib_$ac_lib_var=no"
7233 fi
7234 rm -f conftest*
7235 LIBS="$ac_save_LIBS"
7236
7237 fi
7238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7239   echo "$ac_t""yes" 1>&6
7240   libiconv="-liconv"
7241 else
7242   echo "$ac_t""no" 1>&6
7243 fi
7244
7245     ac_save_LIBS="$LIBS"
7246     LIBS="$LIBS $libiconv"
7247
7248     for ac_func in iconv_open iconv_close iconv nl_langinfo
7249 do
7250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251 echo "configure:7252: checking for $ac_func" >&5
7252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253   echo $ac_n "(cached) $ac_c" 1>&6
7254 else
7255   cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* System header to define __stub macros and hopefully few prototypes,
7259     which can conflict with char $ac_func(); below.  */
7260 #include <assert.h>
7261 /* Override any gcc2 internal prototype to avoid an error.  */
7262 /* We use char because int might match the return type of a gcc2
7263     builtin and then its argument prototype would still apply.  */
7264 char $ac_func();
7265
7266 int main() {
7267
7268 /* The GNU C library defines this for functions which it implements
7269     to always fail with ENOSYS.  Some functions are actually named
7270     something starting with __ and the normal name is an alias.  */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7272 choke me
7273 #else
7274 $ac_func();
7275 #endif
7276
7277 ; return 0; }
7278 EOF
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280   rm -rf conftest*
7281   eval "ac_cv_func_$ac_func=yes"
7282 else
7283   echo "configure: failed program was:" >&5
7284   cat conftest.$ac_ext >&5
7285   rm -rf conftest*
7286   eval "ac_cv_func_$ac_func=no"
7287 fi
7288 rm -f conftest*
7289 fi
7290
7291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7292   echo "$ac_t""yes" 1>&6
7293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7294   cat >> confdefs.h <<EOF
7295 #define $ac_tr_func 1
7296 EOF
7297  \
7298     ac_XPG2funcs=yes
7299 else
7300   echo "$ac_t""no" 1>&6
7301 ac_XPG2funcs=no
7302 fi
7303 done
7304
7305   
7306     LIBS="$ac_save_LIBS"
7307
7308     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7309 echo "configure:7310: checking for XPG2 wchar_t support" >&5
7310     if test x"$ac_has_iconv_h" = xyes &&
7311        test x"$ac_has_langinfo_h" = xyes &&
7312        test x"$ac_XPG2funcs" = xyes; then
7313       ac_XPG2_wchar_t=yes
7314     else
7315       ac_XPG2_wchar_t=no
7316     fi
7317     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7318   
7319             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7320 echo "configure:7321: checking for enabled wchar_t specializations" >&5
7321     if test x"$ac_isoC99_wchar_t" = xyes &&
7322        test x"$ac_XPG2_wchar_t" = xyes; then
7323       cat >> confdefs.h <<\EOF
7324 #define _GLIBCPP_USE_WCHAR_T 1
7325 EOF
7326
7327       echo "$ac_t"""yes"" 1>&6
7328     else
7329       echo "$ac_t"""no"" 1>&6
7330     fi
7331   else
7332         echo "configure: warning: wchar_t support disabled." 1>&2
7333   fi
7334
7335       os_include_dir="config/os/mingw32"
7336       is_mingw32=yes;
7337       ;;
7338     *)
7339       os_include_dir="config/os/newlib"
7340       cat >> confdefs.h <<\EOF
7341 #define HAVE_HYPOT 1
7342 EOF
7343
7344       ;;
7345   esac
7346
7347   case "$target_alias" in
7348     *-mingw32*)
7349       ;;
7350     *)
7351       # GLIBCPP_CHECK_STDLIB_SUPPORT
7352       cat >> confdefs.h <<\EOF
7353 #define HAVE_STRTOF 1
7354 EOF
7355         
7356       cat >> confdefs.h <<\EOF
7357 #define HAVE_STRTOLD 1
7358 EOF
7359         
7360       # AC_FUNC_MMAP
7361       cat >> confdefs.h <<\EOF
7362 #define HAVE_MMAP 1
7363 EOF
7364
7365
7366       cat >> confdefs.h <<\EOF
7367 #define HAVE_ACOSF 1
7368 EOF
7369
7370       cat >> confdefs.h <<\EOF
7371 #define HAVE_ASINF 1
7372 EOF
7373
7374       cat >> confdefs.h <<\EOF
7375 #define HAVE_ATAN2F 1
7376 EOF
7377
7378       cat >> confdefs.h <<\EOF
7379 #define HAVE_ATANF 1
7380 EOF
7381
7382       cat >> confdefs.h <<\EOF
7383 #define HAVE_CEILF 1
7384 EOF
7385
7386       cat >> confdefs.h <<\EOF
7387 #define HAVE_COPYSIGN 1
7388 EOF
7389
7390       cat >> confdefs.h <<\EOF
7391 #define HAVE_COPYSIGNF 1
7392 EOF
7393
7394       cat >> confdefs.h <<\EOF
7395 #define HAVE_COSF 1
7396 EOF
7397
7398       cat >> confdefs.h <<\EOF
7399 #define HAVE_COSHF 1
7400 EOF
7401
7402       cat >> confdefs.h <<\EOF
7403 #define HAVE_EXPF 1
7404 EOF
7405
7406       cat >> confdefs.h <<\EOF
7407 #define HAVE_FABSF 1
7408 EOF
7409
7410       cat >> confdefs.h <<\EOF
7411 #define HAVE_FINITE 1
7412 EOF
7413
7414       cat >> confdefs.h <<\EOF
7415 #define HAVE_FINITEF 1
7416 EOF
7417
7418       cat >> confdefs.h <<\EOF
7419 #define HAVE_FLOORF 1
7420 EOF
7421
7422       cat >> confdefs.h <<\EOF
7423 #define HAVE_FMODF 1
7424 EOF
7425
7426       cat >> confdefs.h <<\EOF
7427 #define HAVE_FREXPF 1
7428 EOF
7429
7430       cat >> confdefs.h <<\EOF
7431 #define HAVE_ISINF 1
7432 EOF
7433
7434       cat >> confdefs.h <<\EOF
7435 #define HAVE_ISINFF 1
7436 EOF
7437
7438       cat >> confdefs.h <<\EOF
7439 #define HAVE_ISNAN 1
7440 EOF
7441
7442       cat >> confdefs.h <<\EOF
7443 #define HAVE_ISNANF 1
7444 EOF
7445
7446       cat >> confdefs.h <<\EOF
7447 #define HAVE_LDEXPF 1
7448 EOF
7449
7450       cat >> confdefs.h <<\EOF
7451 #define HAVE_LOG10F 1
7452 EOF
7453
7454       cat >> confdefs.h <<\EOF
7455 #define HAVE_LOGF 1
7456 EOF
7457
7458       cat >> confdefs.h <<\EOF
7459 #define HAVE_MODFF 1
7460 EOF
7461
7462       cat >> confdefs.h <<\EOF
7463 #define HAVE_POWF 1
7464 EOF
7465
7466       cat >> confdefs.h <<\EOF
7467 #define HAVE_SINF 1
7468 EOF
7469
7470       cat >> confdefs.h <<\EOF
7471 #define HAVE_SINHF 1
7472 EOF
7473
7474       cat >> confdefs.h <<\EOF
7475 #define HAVE_SQRTF 1
7476 EOF
7477
7478       cat >> confdefs.h <<\EOF
7479 #define HAVE_TANF 1
7480 EOF
7481
7482       cat >> confdefs.h <<\EOF
7483 #define HAVE_TANHF 1
7484 EOF
7485
7486       ;;
7487   esac
7488
7489   # At some point, we should differentiate between architectures
7490   # like x86, which have long double versions, and alpha/powerpc/etc.,
7491   # which don't. For the time being, punt.
7492   if test x"long_double_math_on_this_cpu" = x"yes"; then
7493     cat >> confdefs.h <<\EOF
7494 #define HAVE_ACOSL 1
7495 EOF
7496
7497     cat >> confdefs.h <<\EOF
7498 #define HAVE_ASINL 1
7499 EOF
7500
7501     cat >> confdefs.h <<\EOF
7502 #define HAVE_ATAN2L 1
7503 EOF
7504
7505     cat >> confdefs.h <<\EOF
7506 #define HAVE_ATANL 1
7507 EOF
7508
7509     cat >> confdefs.h <<\EOF
7510 #define HAVE_CEILL 1
7511 EOF
7512
7513     cat >> confdefs.h <<\EOF
7514 #define HAVE_COPYSIGNL 1
7515 EOF
7516
7517     cat >> confdefs.h <<\EOF
7518 #define HAVE_COSL 1
7519 EOF
7520
7521     cat >> confdefs.h <<\EOF
7522 #define HAVE_COSHL 1
7523 EOF
7524
7525     cat >> confdefs.h <<\EOF
7526 #define HAVE_EXPL 1
7527 EOF
7528
7529     cat >> confdefs.h <<\EOF
7530 #define HAVE_FABSL 1
7531 EOF
7532
7533     cat >> confdefs.h <<\EOF
7534 #define HAVE_FINITEL 1
7535 EOF
7536
7537     cat >> confdefs.h <<\EOF
7538 #define HAVE_FLOORL 1
7539 EOF
7540
7541     cat >> confdefs.h <<\EOF
7542 #define HAVE_FMODL 1
7543 EOF
7544
7545     cat >> confdefs.h <<\EOF
7546 #define HAVE_FREXPL 1
7547 EOF
7548
7549     cat >> confdefs.h <<\EOF
7550 #define HAVE_ISINFL 1
7551 EOF
7552
7553     cat >> confdefs.h <<\EOF
7554 #define HAVE_ISNANL 1
7555 EOF
7556
7557     cat >> confdefs.h <<\EOF
7558 #define HAVE_LDEXPL 1
7559 EOF
7560
7561     cat >> confdefs.h <<\EOF
7562 #define HAVE_LOG10L 1
7563 EOF
7564
7565     cat >> confdefs.h <<\EOF
7566 #define HAVE_LOGL 1
7567 EOF
7568
7569     cat >> confdefs.h <<\EOF
7570 #define HAVE_MODFL 1
7571 EOF
7572
7573     cat >> confdefs.h <<\EOF
7574 #define HAVE_POWL 1
7575 EOF
7576
7577     cat >> confdefs.h <<\EOF
7578 #define HAVE_SINCOSL 1
7579 EOF
7580
7581     cat >> confdefs.h <<\EOF
7582 #define HAVE_SINL 1
7583 EOF
7584
7585     cat >> confdefs.h <<\EOF
7586 #define HAVE_SINHL 1
7587 EOF
7588
7589     cat >> confdefs.h <<\EOF
7590 #define HAVE_SQRTL 1
7591 EOF
7592
7593     cat >> confdefs.h <<\EOF
7594 #define HAVE_TANL 1
7595 EOF
7596
7597     cat >> confdefs.h <<\EOF
7598 #define HAVE_TANHL 1
7599 EOF
7600
7601   fi
7602 else
7603
7604   # We are being configured natively. We can do more elaborate tests
7605   # that include AC_TRY_COMPILE now, as the linker is assumed to be
7606   # working.
7607   GLIBCPP_IS_CROSS_COMPILING=0
7608   CANADIAN=no
7609
7610   # Check for available headers.
7611   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7612   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
7613 do
7614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7616 echo "configure:7617: checking for $ac_hdr" >&5
7617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7618   echo $ac_n "(cached) $ac_c" 1>&6
7619 else
7620   cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623 #include <$ac_hdr>
7624 EOF
7625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7626 { (eval echo configure:7627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7628 if test -z "$ac_err"; then
7629   rm -rf conftest*
7630   eval "ac_cv_header_$ac_safe=yes"
7631 else
7632   echo "$ac_err" >&5
7633   echo "configure: failed program was:" >&5
7634   cat conftest.$ac_ext >&5
7635   rm -rf conftest*
7636   eval "ac_cv_header_$ac_safe=no"
7637 fi
7638 rm -f conftest*
7639 fi
7640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7641   echo "$ac_t""yes" 1>&6
7642     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7643   cat >> confdefs.h <<EOF
7644 #define $ac_tr_hdr 1
7645 EOF
7646  
7647 else
7648   echo "$ac_t""no" 1>&6
7649 fi
7650 done
7651
7652
7653   
7654   # All these tests are for C++; save the language and the compiler flags.
7655   # The CXXFLAGS thing is suspicious, but based on similar bits previously
7656   # found in GLIBCPP_CONFIGURE.
7657   
7658   ac_ext=C
7659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7660 ac_cpp='$CXXCPP $CPPFLAGS'
7661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7663 cross_compiling=$ac_cv_prog_cxx_cross
7664
7665   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7666   ac_save_CXXFLAGS="$CXXFLAGS"
7667
7668   # Check for maintainer-mode bits.
7669   if test x"$USE_MAINTAINER_MODE" = xno; then
7670     WERROR=''
7671   else
7672     WERROR='-Werror'
7673   fi
7674
7675   # Check for -ffunction-sections -fdata-sections
7676   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
7677 echo "configure:7678: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7678   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7679   cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682
7683 int main() {
7684 int foo;
7685   
7686 ; return 0; }
7687 EOF
7688 if { (eval echo configure:7689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7689   rm -rf conftest*
7690   ac_fdsections=yes
7691 else
7692   echo "configure: failed program was:" >&5
7693   cat conftest.$ac_ext >&5
7694   rm -rf conftest*
7695   ac_fdsections=no
7696 fi
7697 rm -f conftest*
7698   if test "$ac_test_CXXFLAGS" = set; then
7699     CXXFLAGS="$ac_save_CXXFLAGS"
7700   else
7701     # this is the suspicious part
7702     CXXFLAGS=''
7703   fi
7704   if test x"$ac_fdsections" = x"yes" &&
7705      test x"$enable_debug" = x"no"; then
7706     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7707   fi
7708   echo "$ac_t""$ac_fdsections" 1>&6
7709
7710   ac_ext=c
7711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7715 cross_compiling=$ac_cv_prog_cc_cross
7716
7717   
7718   
7719
7720   
7721   # If we're not using GNU ld, then there's no point in even trying these
7722   # tests.  Check for that first.  We should have already tested for gld
7723   # by now (in libtool), but require it now just to be safe...
7724   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7725   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7726   
7727
7728   # The name set by libtool depends on the version of libtool.  Shame on us
7729   # for depending on an impl detail, but c'est la vie.  Older versions used
7730   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7731   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7732   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7733   # set (hence we're using an older libtool), then set it.
7734   if test x${with_gnu_ld+set} != xset; then
7735     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7736       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7737       with_gnu_ld=no
7738     else
7739       with_gnu_ld=$ac_cv_prog_gnu_ld
7740     fi
7741   fi
7742
7743   # Start by getting the version number.  I think the libtool test already
7744   # does some of this, but throws away the result.
7745   
7746   ldver=`$LD --version 2>/dev/null | head -1 | \
7747          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7748   
7749   glibcpp_gnu_ld_version=`echo $ldver | \
7750          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7751
7752   # Set --gc-sections.
7753   if test "$with_gnu_ld" = "notbroken"; then
7754     # GNU ld it is!  Joy and bunny rabbits!
7755
7756     # All these tests are for C++; save the language and the compiler flags.
7757     # Need to do this so that g++ won't try to link in libstdc++
7758     ac_test_CFLAGS="${CFLAGS+set}"
7759     ac_save_CFLAGS="$CFLAGS"
7760     CFLAGS='-x c++  -Wl,--gc-sections'
7761
7762     # Check for -Wl,--gc-sections
7763     # XXX This test is broken at the moment, as symbols required for
7764     # linking are now in libsupc++ (not built yet.....). In addition, 
7765     # this test has cored on solaris in the past. In addition,
7766     # --gc-sections doesn't really work at the moment (keeps on discarding
7767     # used sections, first .eh_frame and now some of the glibc sections for
7768     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7769     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7770 echo "configure:7771: checking for ld that supports -Wl,--gc-sections" >&5
7771     if test "$cross_compiling" = yes; then
7772   ac_sectionLDflags=yes
7773 else
7774   cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777
7778      int main(void) 
7779      {
7780        try { throw 1; }
7781        catch (...) { };
7782        return 0;
7783      }
7784     
7785 EOF
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7787 then
7788   ac_sectionLDflags=yes
7789 else
7790   echo "configure: failed program was:" >&5
7791   cat conftest.$ac_ext >&5
7792   rm -fr conftest*
7793   ac_sectionLDflags=no
7794 fi
7795 rm -fr conftest*
7796 fi
7797
7798     if test "$ac_test_CFLAGS" = set; then
7799       CFLAGS="$ac_save_CFLAGS"
7800     else
7801       # this is the suspicious part
7802       CFLAGS=''
7803     fi
7804     if test "$ac_sectionLDflags" = "yes"; then
7805       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7806     fi
7807     echo "$ac_t""$ac_sectionLDflags" 1>&6
7808   fi
7809
7810   # Set linker optimization flags.
7811   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7812     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7813   fi
7814
7815   
7816   
7817
7818   
7819       
7820   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
7821 echo "configure:7822: checking for __builtin_abs declaration" >&5
7822   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
7823     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
7824   echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826   
7827       
7828       ac_ext=C
7829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7830 ac_cpp='$CXXCPP $CPPFLAGS'
7831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7833 cross_compiling=$ac_cv_prog_cxx_cross
7834
7835       cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 #include <math.h>
7839 int main() {
7840  __builtin_abs(0);
7841 ; return 0; }
7842 EOF
7843 if { (eval echo configure:7844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7844   rm -rf conftest*
7845   glibcpp_cv_func___builtin_abs_use=yes
7846 else
7847   echo "configure: failed program was:" >&5
7848   cat conftest.$ac_ext >&5
7849   rm -rf conftest*
7850   glibcpp_cv_func___builtin_abs_use=no
7851 fi
7852 rm -f conftest*
7853       ac_ext=c
7854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7858 cross_compiling=$ac_cv_prog_cc_cross
7859
7860     
7861 fi
7862
7863   fi
7864   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
7865   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
7866     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
7867 echo "configure:7868: checking for __builtin_abs linkage" >&5
7868     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
7869       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
7870   echo $ac_n "(cached) $ac_c" 1>&6
7871 else
7872   
7873         cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 #include <math.h>
7877 int main() {
7878  __builtin_abs(0);
7879 ; return 0; }
7880 EOF
7881 if { (eval echo configure:7882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7882   rm -rf conftest*
7883   glibcpp_cv_func___builtin_abs_link=yes
7884 else
7885   echo "configure: failed program was:" >&5
7886   cat conftest.$ac_ext >&5
7887   rm -rf conftest*
7888   glibcpp_cv_func___builtin_abs_link=no
7889 fi
7890 rm -f conftest*
7891       
7892 fi
7893
7894     fi
7895     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
7896     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
7897       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7898       cat >> confdefs.h <<EOF
7899 #define ${ac_tr_func} 1
7900 EOF
7901
7902     fi
7903   fi
7904
7905   
7906   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7907 echo "configure:7908: checking for __builtin_fabsf declaration" >&5
7908   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7909     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7910   echo $ac_n "(cached) $ac_c" 1>&6
7911 else
7912   
7913       
7914       ac_ext=C
7915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7916 ac_cpp='$CXXCPP $CPPFLAGS'
7917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7919 cross_compiling=$ac_cv_prog_cxx_cross
7920
7921       cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7924 #include <math.h>
7925 int main() {
7926  __builtin_fabsf(0);
7927 ; return 0; }
7928 EOF
7929 if { (eval echo configure:7930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7930   rm -rf conftest*
7931   glibcpp_cv_func___builtin_fabsf_use=yes
7932 else
7933   echo "configure: failed program was:" >&5
7934   cat conftest.$ac_ext >&5
7935   rm -rf conftest*
7936   glibcpp_cv_func___builtin_fabsf_use=no
7937 fi
7938 rm -f conftest*
7939       ac_ext=c
7940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7941 ac_cpp='$CPP $CPPFLAGS'
7942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7944 cross_compiling=$ac_cv_prog_cc_cross
7945
7946     
7947 fi
7948
7949   fi
7950   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7951   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7952     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7953 echo "configure:7954: checking for __builtin_fabsf linkage" >&5
7954     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7955       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7956   echo $ac_n "(cached) $ac_c" 1>&6
7957 else
7958   
7959         cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 #include <math.h>
7963 int main() {
7964  __builtin_fabsf(0);
7965 ; return 0; }
7966 EOF
7967 if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7968   rm -rf conftest*
7969   glibcpp_cv_func___builtin_fabsf_link=yes
7970 else
7971   echo "configure: failed program was:" >&5
7972   cat conftest.$ac_ext >&5
7973   rm -rf conftest*
7974   glibcpp_cv_func___builtin_fabsf_link=no
7975 fi
7976 rm -f conftest*
7977       
7978 fi
7979
7980     fi
7981     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7982     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7983       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7984       cat >> confdefs.h <<EOF
7985 #define ${ac_tr_func} 1
7986 EOF
7987
7988     fi
7989   fi
7990
7991   
7992   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7993 echo "configure:7994: checking for __builtin_fabs declaration" >&5
7994   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7995     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7996   echo $ac_n "(cached) $ac_c" 1>&6
7997 else
7998   
7999       
8000       ac_ext=C
8001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8002 ac_cpp='$CXXCPP $CPPFLAGS'
8003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8005 cross_compiling=$ac_cv_prog_cxx_cross
8006
8007       cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <math.h>
8011 int main() {
8012  __builtin_fabs(0);
8013 ; return 0; }
8014 EOF
8015 if { (eval echo configure:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8016   rm -rf conftest*
8017   glibcpp_cv_func___builtin_fabs_use=yes
8018 else
8019   echo "configure: failed program was:" >&5
8020   cat conftest.$ac_ext >&5
8021   rm -rf conftest*
8022   glibcpp_cv_func___builtin_fabs_use=no
8023 fi
8024 rm -f conftest*
8025       ac_ext=c
8026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8030 cross_compiling=$ac_cv_prog_cc_cross
8031
8032     
8033 fi
8034
8035   fi
8036   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8037   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8038     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8039 echo "configure:8040: checking for __builtin_fabs linkage" >&5
8040     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8041       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8042   echo $ac_n "(cached) $ac_c" 1>&6
8043 else
8044   
8045         cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 #include <math.h>
8049 int main() {
8050  __builtin_fabs(0);
8051 ; return 0; }
8052 EOF
8053 if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8054   rm -rf conftest*
8055   glibcpp_cv_func___builtin_fabs_link=yes
8056 else
8057   echo "configure: failed program was:" >&5
8058   cat conftest.$ac_ext >&5
8059   rm -rf conftest*
8060   glibcpp_cv_func___builtin_fabs_link=no
8061 fi
8062 rm -f conftest*
8063       
8064 fi
8065
8066     fi
8067     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8068     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8069       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8070       cat >> confdefs.h <<EOF
8071 #define ${ac_tr_func} 1
8072 EOF
8073
8074     fi
8075   fi
8076
8077   
8078   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8079 echo "configure:8080: checking for __builtin_fabsl declaration" >&5
8080   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8081     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8082   echo $ac_n "(cached) $ac_c" 1>&6
8083 else
8084   
8085       
8086       ac_ext=C
8087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8088 ac_cpp='$CXXCPP $CPPFLAGS'
8089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8091 cross_compiling=$ac_cv_prog_cxx_cross
8092
8093       cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 #include <math.h>
8097 int main() {
8098  __builtin_fabsl(0);
8099 ; return 0; }
8100 EOF
8101 if { (eval echo configure:8102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8102   rm -rf conftest*
8103   glibcpp_cv_func___builtin_fabsl_use=yes
8104 else
8105   echo "configure: failed program was:" >&5
8106   cat conftest.$ac_ext >&5
8107   rm -rf conftest*
8108   glibcpp_cv_func___builtin_fabsl_use=no
8109 fi
8110 rm -f conftest*
8111       ac_ext=c
8112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8116 cross_compiling=$ac_cv_prog_cc_cross
8117
8118     
8119 fi
8120
8121   fi
8122   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8123   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8124     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8125 echo "configure:8126: checking for __builtin_fabsl linkage" >&5
8126     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8127       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8128   echo $ac_n "(cached) $ac_c" 1>&6
8129 else
8130   
8131         cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 #include <math.h>
8135 int main() {
8136  __builtin_fabsl(0);
8137 ; return 0; }
8138 EOF
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8140   rm -rf conftest*
8141   glibcpp_cv_func___builtin_fabsl_link=yes
8142 else
8143   echo "configure: failed program was:" >&5
8144   cat conftest.$ac_ext >&5
8145   rm -rf conftest*
8146   glibcpp_cv_func___builtin_fabsl_link=no
8147 fi
8148 rm -f conftest*
8149       
8150 fi
8151
8152     fi
8153     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8154     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8155       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8156       cat >> confdefs.h <<EOF
8157 #define ${ac_tr_func} 1
8158 EOF
8159
8160     fi
8161   fi
8162
8163   
8164   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8165 echo "configure:8166: checking for __builtin_labs declaration" >&5
8166   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8167     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8168   echo $ac_n "(cached) $ac_c" 1>&6
8169 else
8170   
8171       
8172       ac_ext=C
8173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8174 ac_cpp='$CXXCPP $CPPFLAGS'
8175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8177 cross_compiling=$ac_cv_prog_cxx_cross
8178
8179       cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 #include <math.h>
8183 int main() {
8184  __builtin_labs(0);
8185 ; return 0; }
8186 EOF
8187 if { (eval echo configure:8188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8188   rm -rf conftest*
8189   glibcpp_cv_func___builtin_labs_use=yes
8190 else
8191   echo "configure: failed program was:" >&5
8192   cat conftest.$ac_ext >&5
8193   rm -rf conftest*
8194   glibcpp_cv_func___builtin_labs_use=no
8195 fi
8196 rm -f conftest*
8197       ac_ext=c
8198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8202 cross_compiling=$ac_cv_prog_cc_cross
8203
8204     
8205 fi
8206
8207   fi
8208   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8209   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8210     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8211 echo "configure:8212: checking for __builtin_labs linkage" >&5
8212     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8213       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8214   echo $ac_n "(cached) $ac_c" 1>&6
8215 else
8216   
8217         cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 #include <math.h>
8221 int main() {
8222  __builtin_labs(0);
8223 ; return 0; }
8224 EOF
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8226   rm -rf conftest*
8227   glibcpp_cv_func___builtin_labs_link=yes
8228 else
8229   echo "configure: failed program was:" >&5
8230   cat conftest.$ac_ext >&5
8231   rm -rf conftest*
8232   glibcpp_cv_func___builtin_labs_link=no
8233 fi
8234 rm -f conftest*
8235       
8236 fi
8237
8238     fi
8239     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8240     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8241       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8242       cat >> confdefs.h <<EOF
8243 #define ${ac_tr_func} 1
8244 EOF
8245
8246     fi
8247   fi
8248
8249
8250   
8251   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8252 echo "configure:8253: checking for __builtin_sqrtf declaration" >&5
8253   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8254     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8255   echo $ac_n "(cached) $ac_c" 1>&6
8256 else
8257   
8258       
8259       ac_ext=C
8260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8261 ac_cpp='$CXXCPP $CPPFLAGS'
8262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8264 cross_compiling=$ac_cv_prog_cxx_cross
8265
8266       cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 #include <math.h>
8270 int main() {
8271  __builtin_sqrtf(0);
8272 ; return 0; }
8273 EOF
8274 if { (eval echo configure:8275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8275   rm -rf conftest*
8276   glibcpp_cv_func___builtin_sqrtf_use=yes
8277 else
8278   echo "configure: failed program was:" >&5
8279   cat conftest.$ac_ext >&5
8280   rm -rf conftest*
8281   glibcpp_cv_func___builtin_sqrtf_use=no
8282 fi
8283 rm -f conftest*
8284       ac_ext=c
8285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8286 ac_cpp='$CPP $CPPFLAGS'
8287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8289 cross_compiling=$ac_cv_prog_cc_cross
8290
8291     
8292 fi
8293
8294   fi
8295   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8296   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8297     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8298 echo "configure:8299: checking for __builtin_sqrtf linkage" >&5
8299     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8300       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8301   echo $ac_n "(cached) $ac_c" 1>&6
8302 else
8303   
8304         cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 #include <math.h>
8308 int main() {
8309  __builtin_sqrtf(0);
8310 ; return 0; }
8311 EOF
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313   rm -rf conftest*
8314   glibcpp_cv_func___builtin_sqrtf_link=yes
8315 else
8316   echo "configure: failed program was:" >&5
8317   cat conftest.$ac_ext >&5
8318   rm -rf conftest*
8319   glibcpp_cv_func___builtin_sqrtf_link=no
8320 fi
8321 rm -f conftest*
8322       
8323 fi
8324
8325     fi
8326     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8327     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8328       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8329       cat >> confdefs.h <<EOF
8330 #define ${ac_tr_func} 1
8331 EOF
8332
8333     fi
8334   fi
8335
8336   
8337   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8338 echo "configure:8339: checking for __builtin_sqrt declaration" >&5
8339   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8340     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8341   echo $ac_n "(cached) $ac_c" 1>&6
8342 else
8343   
8344       
8345       ac_ext=C
8346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8347 ac_cpp='$CXXCPP $CPPFLAGS'
8348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8350 cross_compiling=$ac_cv_prog_cxx_cross
8351
8352       cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 #include <math.h>
8356 int main() {
8357  __builtin_sqrt(0);
8358 ; return 0; }
8359 EOF
8360 if { (eval echo configure:8361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8361   rm -rf conftest*
8362   glibcpp_cv_func___builtin_sqrt_use=yes
8363 else
8364   echo "configure: failed program was:" >&5
8365   cat conftest.$ac_ext >&5
8366   rm -rf conftest*
8367   glibcpp_cv_func___builtin_sqrt_use=no
8368 fi
8369 rm -f conftest*
8370       ac_ext=c
8371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8375 cross_compiling=$ac_cv_prog_cc_cross
8376
8377     
8378 fi
8379
8380   fi
8381   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
8382   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
8383     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
8384 echo "configure:8385: checking for __builtin_sqrt linkage" >&5
8385     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
8386       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
8387   echo $ac_n "(cached) $ac_c" 1>&6
8388 else
8389   
8390         cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <math.h>
8394 int main() {
8395  __builtin_sqrt(0);
8396 ; return 0; }
8397 EOF
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8399   rm -rf conftest*
8400   glibcpp_cv_func___builtin_sqrt_link=yes
8401 else
8402   echo "configure: failed program was:" >&5
8403   cat conftest.$ac_ext >&5
8404   rm -rf conftest*
8405   glibcpp_cv_func___builtin_sqrt_link=no
8406 fi
8407 rm -f conftest*
8408       
8409 fi
8410
8411     fi
8412     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
8413     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
8414       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8415       cat >> confdefs.h <<EOF
8416 #define ${ac_tr_func} 1
8417 EOF
8418
8419     fi
8420   fi
8421
8422   
8423   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
8424 echo "configure:8425: checking for __builtin_sqrtl declaration" >&5
8425   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
8426     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
8427   echo $ac_n "(cached) $ac_c" 1>&6
8428 else
8429   
8430       
8431       ac_ext=C
8432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8433 ac_cpp='$CXXCPP $CPPFLAGS'
8434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8436 cross_compiling=$ac_cv_prog_cxx_cross
8437
8438       cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 #include <math.h>
8442 int main() {
8443  __builtin_sqrtl(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___builtin_sqrtl_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___builtin_sqrtl_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___builtin_sqrtl_use" 1>&6
8468   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
8469     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
8470 echo "configure:8471: checking for __builtin_sqrtl linkage" >&5
8471     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
8472       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
8473   echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475   
8476         cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <math.h>
8480 int main() {
8481  __builtin_sqrtl(0);
8482 ; return 0; }
8483 EOF
8484 if { (eval echo configure:8485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8485   rm -rf conftest*
8486   glibcpp_cv_func___builtin_sqrtl_link=yes
8487 else
8488   echo "configure: failed program was:" >&5
8489   cat conftest.$ac_ext >&5
8490   rm -rf conftest*
8491   glibcpp_cv_func___builtin_sqrtl_link=no
8492 fi
8493 rm -f conftest*
8494       
8495 fi
8496
8497     fi
8498     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
8499     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
8500       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8501       cat >> confdefs.h <<EOF
8502 #define ${ac_tr_func} 1
8503 EOF
8504
8505     fi
8506   fi
8507
8508
8509   
8510   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
8511 echo "configure:8512: checking for __builtin_sinf declaration" >&5
8512   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
8513     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
8514   echo $ac_n "(cached) $ac_c" 1>&6
8515 else
8516   
8517       
8518       ac_ext=C
8519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8520 ac_cpp='$CXXCPP $CPPFLAGS'
8521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8523 cross_compiling=$ac_cv_prog_cxx_cross
8524
8525       cat > conftest.$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8528 #include <math.h>
8529 int main() {
8530  __builtin_sinf(0);
8531 ; return 0; }
8532 EOF
8533 if { (eval echo configure:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8534   rm -rf conftest*
8535   glibcpp_cv_func___builtin_sinf_use=yes
8536 else
8537   echo "configure: failed program was:" >&5
8538   cat conftest.$ac_ext >&5
8539   rm -rf conftest*
8540   glibcpp_cv_func___builtin_sinf_use=no
8541 fi
8542 rm -f conftest*
8543       ac_ext=c
8544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8548 cross_compiling=$ac_cv_prog_cc_cross
8549
8550     
8551 fi
8552
8553   fi
8554   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
8555   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
8556     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
8557 echo "configure:8558: checking for __builtin_sinf linkage" >&5
8558     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
8559       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
8560   echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8562   
8563         cat > conftest.$ac_ext <<EOF
8564 #line 8565 "configure"
8565 #include "confdefs.h"
8566 #include <math.h>
8567 int main() {
8568  __builtin_sinf(0);
8569 ; return 0; }
8570 EOF
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8572   rm -rf conftest*
8573   glibcpp_cv_func___builtin_sinf_link=yes
8574 else
8575   echo "configure: failed program was:" >&5
8576   cat conftest.$ac_ext >&5
8577   rm -rf conftest*
8578   glibcpp_cv_func___builtin_sinf_link=no
8579 fi
8580 rm -f conftest*
8581       
8582 fi
8583
8584     fi
8585     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
8586     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
8587       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8588       cat >> confdefs.h <<EOF
8589 #define ${ac_tr_func} 1
8590 EOF
8591
8592     fi
8593   fi
8594
8595   
8596   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
8597 echo "configure:8598: checking for __builtin_sin declaration" >&5
8598   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
8599     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
8600   echo $ac_n "(cached) $ac_c" 1>&6
8601 else
8602   
8603       
8604       ac_ext=C
8605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8606 ac_cpp='$CXXCPP $CPPFLAGS'
8607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8609 cross_compiling=$ac_cv_prog_cxx_cross
8610
8611       cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <math.h>
8615 int main() {
8616  __builtin_sin(0);
8617 ; return 0; }
8618 EOF
8619 if { (eval echo configure:8620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620   rm -rf conftest*
8621   glibcpp_cv_func___builtin_sin_use=yes
8622 else
8623   echo "configure: failed program was:" >&5
8624   cat conftest.$ac_ext >&5
8625   rm -rf conftest*
8626   glibcpp_cv_func___builtin_sin_use=no
8627 fi
8628 rm -f conftest*
8629       ac_ext=c
8630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8634 cross_compiling=$ac_cv_prog_cc_cross
8635
8636     
8637 fi
8638
8639   fi
8640   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
8641   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
8642     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
8643 echo "configure:8644: checking for __builtin_sin linkage" >&5
8644     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
8645       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
8646   echo $ac_n "(cached) $ac_c" 1>&6
8647 else
8648   
8649         cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <math.h>
8653 int main() {
8654  __builtin_sin(0);
8655 ; return 0; }
8656 EOF
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8658   rm -rf conftest*
8659   glibcpp_cv_func___builtin_sin_link=yes
8660 else
8661   echo "configure: failed program was:" >&5
8662   cat conftest.$ac_ext >&5
8663   rm -rf conftest*
8664   glibcpp_cv_func___builtin_sin_link=no
8665 fi
8666 rm -f conftest*
8667       
8668 fi
8669
8670     fi
8671     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
8672     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
8673       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8674       cat >> confdefs.h <<EOF
8675 #define ${ac_tr_func} 1
8676 EOF
8677
8678     fi
8679   fi
8680
8681   
8682   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
8683 echo "configure:8684: checking for __builtin_sinl declaration" >&5
8684   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
8685     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
8686   echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688   
8689       
8690       ac_ext=C
8691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8692 ac_cpp='$CXXCPP $CPPFLAGS'
8693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8695 cross_compiling=$ac_cv_prog_cxx_cross
8696
8697       cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 #include <math.h>
8701 int main() {
8702  __builtin_sinl(0);
8703 ; return 0; }
8704 EOF
8705 if { (eval echo configure:8706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8706   rm -rf conftest*
8707   glibcpp_cv_func___builtin_sinl_use=yes
8708 else
8709   echo "configure: failed program was:" >&5
8710   cat conftest.$ac_ext >&5
8711   rm -rf conftest*
8712   glibcpp_cv_func___builtin_sinl_use=no
8713 fi
8714 rm -f conftest*
8715       ac_ext=c
8716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8717 ac_cpp='$CPP $CPPFLAGS'
8718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8720 cross_compiling=$ac_cv_prog_cc_cross
8721
8722     
8723 fi
8724
8725   fi
8726   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
8727   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
8728     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
8729 echo "configure:8730: checking for __builtin_sinl linkage" >&5
8730     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
8731       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
8732   echo $ac_n "(cached) $ac_c" 1>&6
8733 else
8734   
8735         cat > conftest.$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8738 #include <math.h>
8739 int main() {
8740  __builtin_sinl(0);
8741 ; return 0; }
8742 EOF
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8744   rm -rf conftest*
8745   glibcpp_cv_func___builtin_sinl_link=yes
8746 else
8747   echo "configure: failed program was:" >&5
8748   cat conftest.$ac_ext >&5
8749   rm -rf conftest*
8750   glibcpp_cv_func___builtin_sinl_link=no
8751 fi
8752 rm -f conftest*
8753       
8754 fi
8755
8756     fi
8757     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
8758     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
8759       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8760       cat >> confdefs.h <<EOF
8761 #define ${ac_tr_func} 1
8762 EOF
8763
8764     fi
8765   fi
8766
8767
8768   
8769   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
8770 echo "configure:8771: checking for __builtin_cosf declaration" >&5
8771   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
8772     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
8773   echo $ac_n "(cached) $ac_c" 1>&6
8774 else
8775   
8776       
8777       ac_ext=C
8778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8779 ac_cpp='$CXXCPP $CPPFLAGS'
8780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8782 cross_compiling=$ac_cv_prog_cxx_cross
8783
8784       cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8787 #include <math.h>
8788 int main() {
8789  __builtin_cosf(0);
8790 ; return 0; }
8791 EOF
8792 if { (eval echo configure:8793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8793   rm -rf conftest*
8794   glibcpp_cv_func___builtin_cosf_use=yes
8795 else
8796   echo "configure: failed program was:" >&5
8797   cat conftest.$ac_ext >&5
8798   rm -rf conftest*
8799   glibcpp_cv_func___builtin_cosf_use=no
8800 fi
8801 rm -f conftest*
8802       ac_ext=c
8803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8804 ac_cpp='$CPP $CPPFLAGS'
8805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8807 cross_compiling=$ac_cv_prog_cc_cross
8808
8809     
8810 fi
8811
8812   fi
8813   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
8814   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
8815     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
8816 echo "configure:8817: checking for __builtin_cosf linkage" >&5
8817     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
8818       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
8819   echo $ac_n "(cached) $ac_c" 1>&6
8820 else
8821   
8822         cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 #include <math.h>
8826 int main() {
8827  __builtin_cosf(0);
8828 ; return 0; }
8829 EOF
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8831   rm -rf conftest*
8832   glibcpp_cv_func___builtin_cosf_link=yes
8833 else
8834   echo "configure: failed program was:" >&5
8835   cat conftest.$ac_ext >&5
8836   rm -rf conftest*
8837   glibcpp_cv_func___builtin_cosf_link=no
8838 fi
8839 rm -f conftest*
8840       
8841 fi
8842
8843     fi
8844     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
8845     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
8846       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8847       cat >> confdefs.h <<EOF
8848 #define ${ac_tr_func} 1
8849 EOF
8850
8851     fi
8852   fi
8853
8854   
8855   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
8856 echo "configure:8857: checking for __builtin_cos declaration" >&5
8857   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
8858     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
8859   echo $ac_n "(cached) $ac_c" 1>&6
8860 else
8861   
8862       
8863       ac_ext=C
8864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8865 ac_cpp='$CXXCPP $CPPFLAGS'
8866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8868 cross_compiling=$ac_cv_prog_cxx_cross
8869
8870       cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 #include <math.h>
8874 int main() {
8875  __builtin_cos(0);
8876 ; return 0; }
8877 EOF
8878 if { (eval echo configure:8879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8879   rm -rf conftest*
8880   glibcpp_cv_func___builtin_cos_use=yes
8881 else
8882   echo "configure: failed program was:" >&5
8883   cat conftest.$ac_ext >&5
8884   rm -rf conftest*
8885   glibcpp_cv_func___builtin_cos_use=no
8886 fi
8887 rm -f conftest*
8888       ac_ext=c
8889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8893 cross_compiling=$ac_cv_prog_cc_cross
8894
8895     
8896 fi
8897
8898   fi
8899   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
8900   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
8901     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
8902 echo "configure:8903: checking for __builtin_cos linkage" >&5
8903     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
8904       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
8905   echo $ac_n "(cached) $ac_c" 1>&6
8906 else
8907   
8908         cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <math.h>
8912 int main() {
8913  __builtin_cos(0);
8914 ; return 0; }
8915 EOF
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8917   rm -rf conftest*
8918   glibcpp_cv_func___builtin_cos_link=yes
8919 else
8920   echo "configure: failed program was:" >&5
8921   cat conftest.$ac_ext >&5
8922   rm -rf conftest*
8923   glibcpp_cv_func___builtin_cos_link=no
8924 fi
8925 rm -f conftest*
8926       
8927 fi
8928
8929     fi
8930     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8931     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8932       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8933       cat >> confdefs.h <<EOF
8934 #define ${ac_tr_func} 1
8935 EOF
8936
8937     fi
8938   fi
8939
8940   
8941   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8942 echo "configure:8943: checking for __builtin_cosl declaration" >&5
8943   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8944     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8945   echo $ac_n "(cached) $ac_c" 1>&6
8946 else
8947   
8948       
8949       ac_ext=C
8950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8951 ac_cpp='$CXXCPP $CPPFLAGS'
8952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8954 cross_compiling=$ac_cv_prog_cxx_cross
8955
8956       cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <math.h>
8960 int main() {
8961  __builtin_cosl(0);
8962 ; return 0; }
8963 EOF
8964 if { (eval echo configure:8965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8965   rm -rf conftest*
8966   glibcpp_cv_func___builtin_cosl_use=yes
8967 else
8968   echo "configure: failed program was:" >&5
8969   cat conftest.$ac_ext >&5
8970   rm -rf conftest*
8971   glibcpp_cv_func___builtin_cosl_use=no
8972 fi
8973 rm -f conftest*
8974       ac_ext=c
8975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8976 ac_cpp='$CPP $CPPFLAGS'
8977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8979 cross_compiling=$ac_cv_prog_cc_cross
8980
8981     
8982 fi
8983
8984   fi
8985   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8986   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8987     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8988 echo "configure:8989: checking for __builtin_cosl linkage" >&5
8989     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8990       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8991   echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8993   
8994         cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 #include <math.h>
8998 int main() {
8999  __builtin_cosl(0);
9000 ; return 0; }
9001 EOF
9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9003   rm -rf conftest*
9004   glibcpp_cv_func___builtin_cosl_link=yes
9005 else
9006   echo "configure: failed program was:" >&5
9007   cat conftest.$ac_ext >&5
9008   rm -rf conftest*
9009   glibcpp_cv_func___builtin_cosl_link=no
9010 fi
9011 rm -f conftest*
9012       
9013 fi
9014
9015     fi
9016     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9017     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9018       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9019       cat >> confdefs.h <<EOF
9020 #define ${ac_tr_func} 1
9021 EOF
9022
9023     fi
9024   fi
9025
9026
9027               dummyvar=no
9028   if test x$dummyvar = x"yes"; then
9029     cat >> confdefs.h <<\EOF
9030 #define HAVE___BUILTIN_ABS 1
9031 EOF
9032
9033     cat >> confdefs.h <<\EOF
9034 #define HAVE___BUILTIN_LABS 1
9035 EOF
9036
9037     cat >> confdefs.h <<\EOF
9038 #define HAVE___BUILTIN_COS 1
9039 EOF
9040
9041     cat >> confdefs.h <<\EOF
9042 #define HAVE___BUILTIN_COSF 1
9043 EOF
9044
9045     cat >> confdefs.h <<\EOF
9046 #define HAVE___BUILTIN_COSL 1
9047 EOF
9048
9049     cat >> confdefs.h <<\EOF
9050 #define HAVE___BUILTIN_FABS 1
9051 EOF
9052
9053     cat >> confdefs.h <<\EOF
9054 #define HAVE___BUILTIN_FABSF 1
9055 EOF
9056
9057     cat >> confdefs.h <<\EOF
9058 #define HAVE___BUILTIN_FABSL 1
9059 EOF
9060
9061     cat >> confdefs.h <<\EOF
9062 #define HAVE___BUILTIN_SIN 1
9063 EOF
9064
9065     cat >> confdefs.h <<\EOF
9066 #define HAVE___BUILTIN_SINF 1
9067 EOF
9068
9069     cat >> confdefs.h <<\EOF
9070 #define HAVE___BUILTIN_SINL 1
9071 EOF
9072
9073     cat >> confdefs.h <<\EOF
9074 #define HAVE___BUILTIN_SQRT 1
9075 EOF
9076
9077     cat >> confdefs.h <<\EOF
9078 #define HAVE___BUILTIN_SQRTF 1
9079 EOF
9080
9081     cat >> confdefs.h <<\EOF
9082 #define HAVE___BUILTIN_SQRTL 1
9083 EOF
9084
9085   fi
9086
9087   
9088   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9089   ac_save_CXXFLAGS="$CXXFLAGS"
9090   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9091
9092     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9093 echo "configure:9094: checking for sin in -lm" >&5
9094 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9096   echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098   ac_save_LIBS="$LIBS"
9099 LIBS="-lm  $LIBS"
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9103 /* Override any gcc2 internal prototype to avoid an error.  */
9104 /* We use char because int might match the return type of a gcc2
9105     builtin and then its argument prototype would still apply.  */
9106 char sin();
9107
9108 int main() {
9109 sin()
9110 ; return 0; }
9111 EOF
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113   rm -rf conftest*
9114   eval "ac_cv_lib_$ac_lib_var=yes"
9115 else
9116   echo "configure: failed program was:" >&5
9117   cat conftest.$ac_ext >&5
9118   rm -rf conftest*
9119   eval "ac_cv_lib_$ac_lib_var=no"
9120 fi
9121 rm -f conftest*
9122 LIBS="$ac_save_LIBS"
9123
9124 fi
9125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9126   echo "$ac_t""yes" 1>&6
9127   libm="-lm"
9128 else
9129   echo "$ac_t""no" 1>&6
9130 fi
9131
9132   ac_save_LIBS="$LIBS"
9133   LIBS="$LIBS $libm"
9134
9135     
9136   
9137   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9138 echo "configure:9139: checking for isinf declaration" >&5
9139   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9140     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9141   echo $ac_n "(cached) $ac_c" 1>&6
9142 else
9143   
9144       
9145       ac_ext=C
9146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9147 ac_cpp='$CXXCPP $CPPFLAGS'
9148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9150 cross_compiling=$ac_cv_prog_cxx_cross
9151
9152       cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 #include <math.h>
9156                       #ifdef HAVE_IEEEFP_H
9157                       #include <ieeefp.h>
9158                       #endif
9159                      
9160 int main() {
9161  isinf(0);
9162 ; return 0; }
9163 EOF
9164 if { (eval echo configure:9165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9165   rm -rf conftest*
9166   glibcpp_cv_func_isinf_use=yes
9167 else
9168   echo "configure: failed program was:" >&5
9169   cat conftest.$ac_ext >&5
9170   rm -rf conftest*
9171   glibcpp_cv_func_isinf_use=no
9172 fi
9173 rm -f conftest*
9174       ac_ext=c
9175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9176 ac_cpp='$CPP $CPPFLAGS'
9177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9179 cross_compiling=$ac_cv_prog_cc_cross
9180
9181     
9182 fi
9183
9184   fi
9185   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9186
9187   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9188     for ac_func in isinf
9189 do
9190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9191 echo "configure:9192: checking for $ac_func" >&5
9192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9193   echo $ac_n "(cached) $ac_c" 1>&6
9194 else
9195   cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 /* System header to define __stub macros and hopefully few prototypes,
9199     which can conflict with char $ac_func(); below.  */
9200 #include <assert.h>
9201 /* Override any gcc2 internal prototype to avoid an error.  */
9202 /* We use char because int might match the return type of a gcc2
9203     builtin and then its argument prototype would still apply.  */
9204 char $ac_func();
9205
9206 int main() {
9207
9208 /* The GNU C library defines this for functions which it implements
9209     to always fail with ENOSYS.  Some functions are actually named
9210     something starting with __ and the normal name is an alias.  */
9211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9212 choke me
9213 #else
9214 $ac_func();
9215 #endif
9216
9217 ; return 0; }
9218 EOF
9219 if { (eval echo configure:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9220   rm -rf conftest*
9221   eval "ac_cv_func_$ac_func=yes"
9222 else
9223   echo "configure: failed program was:" >&5
9224   cat conftest.$ac_ext >&5
9225   rm -rf conftest*
9226   eval "ac_cv_func_$ac_func=no"
9227 fi
9228 rm -f conftest*
9229 fi
9230
9231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9232   echo "$ac_t""yes" 1>&6
9233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9234   cat >> confdefs.h <<EOF
9235 #define $ac_tr_func 1
9236 EOF
9237  
9238 else
9239   echo "$ac_t""no" 1>&6
9240 fi
9241 done
9242     
9243   else
9244     
9245   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9246 echo "configure:9247: checking for _isinf declaration" >&5
9247   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9248     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9249   echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9251   
9252       
9253       ac_ext=C
9254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9255 ac_cpp='$CXXCPP $CPPFLAGS'
9256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9258 cross_compiling=$ac_cv_prog_cxx_cross
9259
9260       cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 #include <math.h>
9264                       #ifdef HAVE_IEEEFP_H
9265                       #include <ieeefp.h>
9266                       #endif
9267                      
9268 int main() {
9269  _isinf(0);
9270 ; return 0; }
9271 EOF
9272 if { (eval echo configure:9273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9273   rm -rf conftest*
9274   glibcpp_cv_func__isinf_use=yes
9275 else
9276   echo "configure: failed program was:" >&5
9277   cat conftest.$ac_ext >&5
9278   rm -rf conftest*
9279   glibcpp_cv_func__isinf_use=no
9280 fi
9281 rm -f conftest*
9282       ac_ext=c
9283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9284 ac_cpp='$CPP $CPPFLAGS'
9285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9287 cross_compiling=$ac_cv_prog_cc_cross
9288
9289     
9290 fi
9291
9292   fi
9293   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9294
9295     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9296       for ac_func in _isinf
9297 do
9298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9299 echo "configure:9300: checking for $ac_func" >&5
9300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9301   echo $ac_n "(cached) $ac_c" 1>&6
9302 else
9303   cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9306 /* System header to define __stub macros and hopefully few prototypes,
9307     which can conflict with char $ac_func(); below.  */
9308 #include <assert.h>
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 /* We use char because int might match the return type of a gcc2
9311     builtin and then its argument prototype would still apply.  */
9312 char $ac_func();
9313
9314 int main() {
9315
9316 /* The GNU C library defines this for functions which it implements
9317     to always fail with ENOSYS.  Some functions are actually named
9318     something starting with __ and the normal name is an alias.  */
9319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9320 choke me
9321 #else
9322 $ac_func();
9323 #endif
9324
9325 ; return 0; }
9326 EOF
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9328   rm -rf conftest*
9329   eval "ac_cv_func_$ac_func=yes"
9330 else
9331   echo "configure: failed program was:" >&5
9332   cat conftest.$ac_ext >&5
9333   rm -rf conftest*
9334   eval "ac_cv_func_$ac_func=no"
9335 fi
9336 rm -f conftest*
9337 fi
9338
9339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9340   echo "$ac_t""yes" 1>&6
9341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9342   cat >> confdefs.h <<EOF
9343 #define $ac_tr_func 1
9344 EOF
9345  
9346 else
9347   echo "$ac_t""no" 1>&6
9348 fi
9349 done
9350     
9351     fi
9352   fi
9353
9354   
9355   
9356   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9357 echo "configure:9358: checking for isnan declaration" >&5
9358   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9359     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9360   echo $ac_n "(cached) $ac_c" 1>&6
9361 else
9362   
9363       
9364       ac_ext=C
9365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9366 ac_cpp='$CXXCPP $CPPFLAGS'
9367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9369 cross_compiling=$ac_cv_prog_cxx_cross
9370
9371       cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9374 #include <math.h>
9375                       #ifdef HAVE_IEEEFP_H
9376                       #include <ieeefp.h>
9377                       #endif
9378                      
9379 int main() {
9380  isnan(0);
9381 ; return 0; }
9382 EOF
9383 if { (eval echo configure:9384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9384   rm -rf conftest*
9385   glibcpp_cv_func_isnan_use=yes
9386 else
9387   echo "configure: failed program was:" >&5
9388   cat conftest.$ac_ext >&5
9389   rm -rf conftest*
9390   glibcpp_cv_func_isnan_use=no
9391 fi
9392 rm -f conftest*
9393       ac_ext=c
9394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9395 ac_cpp='$CPP $CPPFLAGS'
9396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9398 cross_compiling=$ac_cv_prog_cc_cross
9399
9400     
9401 fi
9402
9403   fi
9404   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
9405
9406   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
9407     for ac_func in isnan
9408 do
9409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9410 echo "configure:9411: checking for $ac_func" >&5
9411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9412   echo $ac_n "(cached) $ac_c" 1>&6
9413 else
9414   cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9417 /* System header to define __stub macros and hopefully few prototypes,
9418     which can conflict with char $ac_func(); below.  */
9419 #include <assert.h>
9420 /* Override any gcc2 internal prototype to avoid an error.  */
9421 /* We use char because int might match the return type of a gcc2
9422     builtin and then its argument prototype would still apply.  */
9423 char $ac_func();
9424
9425 int main() {
9426
9427 /* The GNU C library defines this for functions which it implements
9428     to always fail with ENOSYS.  Some functions are actually named
9429     something starting with __ and the normal name is an alias.  */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 choke me
9432 #else
9433 $ac_func();
9434 #endif
9435
9436 ; return 0; }
9437 EOF
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9439   rm -rf conftest*
9440   eval "ac_cv_func_$ac_func=yes"
9441 else
9442   echo "configure: failed program was:" >&5
9443   cat conftest.$ac_ext >&5
9444   rm -rf conftest*
9445   eval "ac_cv_func_$ac_func=no"
9446 fi
9447 rm -f conftest*
9448 fi
9449
9450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9451   echo "$ac_t""yes" 1>&6
9452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9453   cat >> confdefs.h <<EOF
9454 #define $ac_tr_func 1
9455 EOF
9456  
9457 else
9458   echo "$ac_t""no" 1>&6
9459 fi
9460 done
9461     
9462   else
9463     
9464   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
9465 echo "configure:9466: checking for _isnan declaration" >&5
9466   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
9467     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
9468   echo $ac_n "(cached) $ac_c" 1>&6
9469 else
9470   
9471       
9472       ac_ext=C
9473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9474 ac_cpp='$CXXCPP $CPPFLAGS'
9475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9477 cross_compiling=$ac_cv_prog_cxx_cross
9478
9479       cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 #include <math.h>
9483                       #ifdef HAVE_IEEEFP_H
9484                       #include <ieeefp.h>
9485                       #endif
9486                      
9487 int main() {
9488  _isnan(0);
9489 ; return 0; }
9490 EOF
9491 if { (eval echo configure:9492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492   rm -rf conftest*
9493   glibcpp_cv_func__isnan_use=yes
9494 else
9495   echo "configure: failed program was:" >&5
9496   cat conftest.$ac_ext >&5
9497   rm -rf conftest*
9498   glibcpp_cv_func__isnan_use=no
9499 fi
9500 rm -f conftest*
9501       ac_ext=c
9502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9506 cross_compiling=$ac_cv_prog_cc_cross
9507
9508     
9509 fi
9510
9511   fi
9512   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
9513
9514     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
9515       for ac_func in _isnan
9516 do
9517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9518 echo "configure:9519: checking for $ac_func" >&5
9519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9520   echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9522   cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 /* System header to define __stub macros and hopefully few prototypes,
9526     which can conflict with char $ac_func(); below.  */
9527 #include <assert.h>
9528 /* Override any gcc2 internal prototype to avoid an error.  */
9529 /* We use char because int might match the return type of a gcc2
9530     builtin and then its argument prototype would still apply.  */
9531 char $ac_func();
9532
9533 int main() {
9534
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 $ac_func();
9542 #endif
9543
9544 ; return 0; }
9545 EOF
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9547   rm -rf conftest*
9548   eval "ac_cv_func_$ac_func=yes"
9549 else
9550   echo "configure: failed program was:" >&5
9551   cat conftest.$ac_ext >&5
9552   rm -rf conftest*
9553   eval "ac_cv_func_$ac_func=no"
9554 fi
9555 rm -f conftest*
9556 fi
9557
9558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9559   echo "$ac_t""yes" 1>&6
9560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9561   cat >> confdefs.h <<EOF
9562 #define $ac_tr_func 1
9563 EOF
9564  
9565 else
9566   echo "$ac_t""no" 1>&6
9567 fi
9568 done
9569     
9570     fi
9571   fi
9572
9573   
9574   
9575   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
9576 echo "configure:9577: checking for finite declaration" >&5
9577   if test x${glibcpp_cv_func_finite_use+set} != xset; then
9578     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
9579   echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9581   
9582       
9583       ac_ext=C
9584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9585 ac_cpp='$CXXCPP $CPPFLAGS'
9586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9588 cross_compiling=$ac_cv_prog_cxx_cross
9589
9590       cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 #include <math.h>
9594                       #ifdef HAVE_IEEEFP_H
9595                       #include <ieeefp.h>
9596                       #endif
9597                      
9598 int main() {
9599  finite(0);
9600 ; return 0; }
9601 EOF
9602 if { (eval echo configure:9603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9603   rm -rf conftest*
9604   glibcpp_cv_func_finite_use=yes
9605 else
9606   echo "configure: failed program was:" >&5
9607   cat conftest.$ac_ext >&5
9608   rm -rf conftest*
9609   glibcpp_cv_func_finite_use=no
9610 fi
9611 rm -f conftest*
9612       ac_ext=c
9613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9614 ac_cpp='$CPP $CPPFLAGS'
9615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9617 cross_compiling=$ac_cv_prog_cc_cross
9618
9619     
9620 fi
9621
9622   fi
9623   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
9624
9625   if test x$glibcpp_cv_func_finite_use = x"yes"; then
9626     for ac_func in finite
9627 do
9628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9629 echo "configure:9630: checking for $ac_func" >&5
9630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9631   echo $ac_n "(cached) $ac_c" 1>&6
9632 else
9633   cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9636 /* System header to define __stub macros and hopefully few prototypes,
9637     which can conflict with char $ac_func(); below.  */
9638 #include <assert.h>
9639 /* Override any gcc2 internal prototype to avoid an error.  */
9640 /* We use char because int might match the return type of a gcc2
9641     builtin and then its argument prototype would still apply.  */
9642 char $ac_func();
9643
9644 int main() {
9645
9646 /* The GNU C library defines this for functions which it implements
9647     to always fail with ENOSYS.  Some functions are actually named
9648     something starting with __ and the normal name is an alias.  */
9649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9650 choke me
9651 #else
9652 $ac_func();
9653 #endif
9654
9655 ; return 0; }
9656 EOF
9657 if { (eval echo configure:9658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9658   rm -rf conftest*
9659   eval "ac_cv_func_$ac_func=yes"
9660 else
9661   echo "configure: failed program was:" >&5
9662   cat conftest.$ac_ext >&5
9663   rm -rf conftest*
9664   eval "ac_cv_func_$ac_func=no"
9665 fi
9666 rm -f conftest*
9667 fi
9668
9669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9670   echo "$ac_t""yes" 1>&6
9671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9672   cat >> confdefs.h <<EOF
9673 #define $ac_tr_func 1
9674 EOF
9675  
9676 else
9677   echo "$ac_t""no" 1>&6
9678 fi
9679 done
9680     
9681   else
9682     
9683   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
9684 echo "configure:9685: checking for _finite declaration" >&5
9685   if test x${glibcpp_cv_func__finite_use+set} != xset; then
9686     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
9687   echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689   
9690       
9691       ac_ext=C
9692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9693 ac_cpp='$CXXCPP $CPPFLAGS'
9694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9696 cross_compiling=$ac_cv_prog_cxx_cross
9697
9698       cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <math.h>
9702                       #ifdef HAVE_IEEEFP_H
9703                       #include <ieeefp.h>
9704                       #endif
9705                      
9706 int main() {
9707  _finite(0);
9708 ; return 0; }
9709 EOF
9710 if { (eval echo configure:9711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9711   rm -rf conftest*
9712   glibcpp_cv_func__finite_use=yes
9713 else
9714   echo "configure: failed program was:" >&5
9715   cat conftest.$ac_ext >&5
9716   rm -rf conftest*
9717   glibcpp_cv_func__finite_use=no
9718 fi
9719 rm -f conftest*
9720       ac_ext=c
9721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9722 ac_cpp='$CPP $CPPFLAGS'
9723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9725 cross_compiling=$ac_cv_prog_cc_cross
9726
9727     
9728 fi
9729
9730   fi
9731   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
9732
9733     if test x$glibcpp_cv_func__finite_use = x"yes"; then
9734       for ac_func in _finite
9735 do
9736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9737 echo "configure:9738: checking for $ac_func" >&5
9738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9739   echo $ac_n "(cached) $ac_c" 1>&6
9740 else
9741   cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 /* System header to define __stub macros and hopefully few prototypes,
9745     which can conflict with char $ac_func(); below.  */
9746 #include <assert.h>
9747 /* Override any gcc2 internal prototype to avoid an error.  */
9748 /* We use char because int might match the return type of a gcc2
9749     builtin and then its argument prototype would still apply.  */
9750 char $ac_func();
9751
9752 int main() {
9753
9754 /* The GNU C library defines this for functions which it implements
9755     to always fail with ENOSYS.  Some functions are actually named
9756     something starting with __ and the normal name is an alias.  */
9757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9758 choke me
9759 #else
9760 $ac_func();
9761 #endif
9762
9763 ; return 0; }
9764 EOF
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9766   rm -rf conftest*
9767   eval "ac_cv_func_$ac_func=yes"
9768 else
9769   echo "configure: failed program was:" >&5
9770   cat conftest.$ac_ext >&5
9771   rm -rf conftest*
9772   eval "ac_cv_func_$ac_func=no"
9773 fi
9774 rm -f conftest*
9775 fi
9776
9777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9778   echo "$ac_t""yes" 1>&6
9779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9780   cat >> confdefs.h <<EOF
9781 #define $ac_tr_func 1
9782 EOF
9783  
9784 else
9785   echo "$ac_t""no" 1>&6
9786 fi
9787 done
9788     
9789     fi
9790   fi
9791
9792   
9793   
9794   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
9795 echo "configure:9796: checking for copysign declaration" >&5
9796   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
9797     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
9798   echo $ac_n "(cached) $ac_c" 1>&6
9799 else
9800   
9801       
9802       ac_ext=C
9803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9804 ac_cpp='$CXXCPP $CPPFLAGS'
9805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9807 cross_compiling=$ac_cv_prog_cxx_cross
9808
9809       cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 #include <math.h>
9813 int main() {
9814  copysign(0, 0);
9815 ; return 0; }
9816 EOF
9817 if { (eval echo configure:9818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9818   rm -rf conftest*
9819   glibcpp_cv_func_copysign_use=yes
9820 else
9821   echo "configure: failed program was:" >&5
9822   cat conftest.$ac_ext >&5
9823   rm -rf conftest*
9824   glibcpp_cv_func_copysign_use=no
9825 fi
9826 rm -f conftest*
9827       ac_ext=c
9828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9829 ac_cpp='$CPP $CPPFLAGS'
9830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9832 cross_compiling=$ac_cv_prog_cc_cross
9833
9834     
9835 fi
9836
9837   fi
9838   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
9839
9840   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
9841     for ac_func in copysign
9842 do
9843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9844 echo "configure:9845: checking for $ac_func" >&5
9845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9846   echo $ac_n "(cached) $ac_c" 1>&6
9847 else
9848   cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9851 /* System header to define __stub macros and hopefully few prototypes,
9852     which can conflict with char $ac_func(); below.  */
9853 #include <assert.h>
9854 /* Override any gcc2 internal prototype to avoid an error.  */
9855 /* We use char because int might match the return type of a gcc2
9856     builtin and then its argument prototype would still apply.  */
9857 char $ac_func();
9858
9859 int main() {
9860
9861 /* The GNU C library defines this for functions which it implements
9862     to always fail with ENOSYS.  Some functions are actually named
9863     something starting with __ and the normal name is an alias.  */
9864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9865 choke me
9866 #else
9867 $ac_func();
9868 #endif
9869
9870 ; return 0; }
9871 EOF
9872 if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873   rm -rf conftest*
9874   eval "ac_cv_func_$ac_func=yes"
9875 else
9876   echo "configure: failed program was:" >&5
9877   cat conftest.$ac_ext >&5
9878   rm -rf conftest*
9879   eval "ac_cv_func_$ac_func=no"
9880 fi
9881 rm -f conftest*
9882 fi
9883
9884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9885   echo "$ac_t""yes" 1>&6
9886     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9887   cat >> confdefs.h <<EOF
9888 #define $ac_tr_func 1
9889 EOF
9890  
9891 else
9892   echo "$ac_t""no" 1>&6
9893 fi
9894 done
9895     
9896   else
9897     
9898   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
9899 echo "configure:9900: checking for _copysign declaration" >&5
9900   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
9901     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
9902   echo $ac_n "(cached) $ac_c" 1>&6
9903 else
9904   
9905       
9906       ac_ext=C
9907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9908 ac_cpp='$CXXCPP $CPPFLAGS'
9909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9911 cross_compiling=$ac_cv_prog_cxx_cross
9912
9913       cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 #include <math.h>
9917 int main() {
9918  _copysign(0, 0);
9919 ; return 0; }
9920 EOF
9921 if { (eval echo configure:9922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9922   rm -rf conftest*
9923   glibcpp_cv_func__copysign_use=yes
9924 else
9925   echo "configure: failed program was:" >&5
9926   cat conftest.$ac_ext >&5
9927   rm -rf conftest*
9928   glibcpp_cv_func__copysign_use=no
9929 fi
9930 rm -f conftest*
9931       ac_ext=c
9932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9933 ac_cpp='$CPP $CPPFLAGS'
9934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9936 cross_compiling=$ac_cv_prog_cc_cross
9937
9938     
9939 fi
9940
9941   fi
9942   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9943
9944     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9945       for ac_func in _copysign
9946 do
9947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9948 echo "configure:9949: checking for $ac_func" >&5
9949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9950   echo $ac_n "(cached) $ac_c" 1>&6
9951 else
9952   cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* System header to define __stub macros and hopefully few prototypes,
9956     which can conflict with char $ac_func(); below.  */
9957 #include <assert.h>
9958 /* Override any gcc2 internal prototype to avoid an error.  */
9959 /* We use char because int might match the return type of a gcc2
9960     builtin and then its argument prototype would still apply.  */
9961 char $ac_func();
9962
9963 int main() {
9964
9965 /* The GNU C library defines this for functions which it implements
9966     to always fail with ENOSYS.  Some functions are actually named
9967     something starting with __ and the normal name is an alias.  */
9968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9969 choke me
9970 #else
9971 $ac_func();
9972 #endif
9973
9974 ; return 0; }
9975 EOF
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9977   rm -rf conftest*
9978   eval "ac_cv_func_$ac_func=yes"
9979 else
9980   echo "configure: failed program was:" >&5
9981   cat conftest.$ac_ext >&5
9982   rm -rf conftest*
9983   eval "ac_cv_func_$ac_func=no"
9984 fi
9985 rm -f conftest*
9986 fi
9987
9988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9989   echo "$ac_t""yes" 1>&6
9990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9991   cat >> confdefs.h <<EOF
9992 #define $ac_tr_func 1
9993 EOF
9994  
9995 else
9996   echo "$ac_t""no" 1>&6
9997 fi
9998 done
9999     
10000     fi
10001   fi
10002
10003   
10004   
10005   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10006 echo "configure:10007: checking for sincos declaration" >&5
10007   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10008     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10009   echo $ac_n "(cached) $ac_c" 1>&6
10010 else
10011   
10012       
10013       ac_ext=C
10014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10015 ac_cpp='$CXXCPP $CPPFLAGS'
10016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10018 cross_compiling=$ac_cv_prog_cxx_cross
10019
10020       cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10023 #include <math.h>
10024 int main() {
10025  sincos(0, 0, 0);
10026 ; return 0; }
10027 EOF
10028 if { (eval echo configure:10029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10029   rm -rf conftest*
10030   glibcpp_cv_func_sincos_use=yes
10031 else
10032   echo "configure: failed program was:" >&5
10033   cat conftest.$ac_ext >&5
10034   rm -rf conftest*
10035   glibcpp_cv_func_sincos_use=no
10036 fi
10037 rm -f conftest*
10038       ac_ext=c
10039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10040 ac_cpp='$CPP $CPPFLAGS'
10041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10043 cross_compiling=$ac_cv_prog_cc_cross
10044
10045     
10046 fi
10047
10048   fi
10049   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10050
10051   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10052     for ac_func in sincos
10053 do
10054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_func" >&5
10056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10057   echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10059   cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 /* System header to define __stub macros and hopefully few prototypes,
10063     which can conflict with char $ac_func(); below.  */
10064 #include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error.  */
10066 /* We use char because int might match the return type of a gcc2
10067     builtin and then its argument prototype would still apply.  */
10068 char $ac_func();
10069
10070 int main() {
10071
10072 /* The GNU C library defines this for functions which it implements
10073     to always fail with ENOSYS.  Some functions are actually named
10074     something starting with __ and the normal name is an alias.  */
10075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076 choke me
10077 #else
10078 $ac_func();
10079 #endif
10080
10081 ; return 0; }
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084   rm -rf conftest*
10085   eval "ac_cv_func_$ac_func=yes"
10086 else
10087   echo "configure: failed program was:" >&5
10088   cat conftest.$ac_ext >&5
10089   rm -rf conftest*
10090   eval "ac_cv_func_$ac_func=no"
10091 fi
10092 rm -f conftest*
10093 fi
10094
10095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10096   echo "$ac_t""yes" 1>&6
10097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10098   cat >> confdefs.h <<EOF
10099 #define $ac_tr_func 1
10100 EOF
10101  
10102 else
10103   echo "$ac_t""no" 1>&6
10104 fi
10105 done
10106     
10107   else
10108     
10109   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10110 echo "configure:10111: checking for _sincos declaration" >&5
10111   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10112     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10113   echo $ac_n "(cached) $ac_c" 1>&6
10114 else
10115   
10116       
10117       ac_ext=C
10118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10119 ac_cpp='$CXXCPP $CPPFLAGS'
10120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10122 cross_compiling=$ac_cv_prog_cxx_cross
10123
10124       cat > conftest.$ac_ext <<EOF
10125 #line 10126 "configure"
10126 #include "confdefs.h"
10127 #include <math.h>
10128 int main() {
10129  _sincos(0, 0, 0);
10130 ; return 0; }
10131 EOF
10132 if { (eval echo configure:10133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10133   rm -rf conftest*
10134   glibcpp_cv_func__sincos_use=yes
10135 else
10136   echo "configure: failed program was:" >&5
10137   cat conftest.$ac_ext >&5
10138   rm -rf conftest*
10139   glibcpp_cv_func__sincos_use=no
10140 fi
10141 rm -f conftest*
10142       ac_ext=c
10143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10147 cross_compiling=$ac_cv_prog_cc_cross
10148
10149     
10150 fi
10151
10152   fi
10153   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10154
10155     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10156       for ac_func in _sincos
10157 do
10158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10159 echo "configure:10160: checking for $ac_func" >&5
10160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10161   echo $ac_n "(cached) $ac_c" 1>&6
10162 else
10163   cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* System header to define __stub macros and hopefully few prototypes,
10167     which can conflict with char $ac_func(); below.  */
10168 #include <assert.h>
10169 /* Override any gcc2 internal prototype to avoid an error.  */
10170 /* We use char because int might match the return type of a gcc2
10171     builtin and then its argument prototype would still apply.  */
10172 char $ac_func();
10173
10174 int main() {
10175
10176 /* The GNU C library defines this for functions which it implements
10177     to always fail with ENOSYS.  Some functions are actually named
10178     something starting with __ and the normal name is an alias.  */
10179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10180 choke me
10181 #else
10182 $ac_func();
10183 #endif
10184
10185 ; return 0; }
10186 EOF
10187 if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10188   rm -rf conftest*
10189   eval "ac_cv_func_$ac_func=yes"
10190 else
10191   echo "configure: failed program was:" >&5
10192   cat conftest.$ac_ext >&5
10193   rm -rf conftest*
10194   eval "ac_cv_func_$ac_func=no"
10195 fi
10196 rm -f conftest*
10197 fi
10198
10199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10200   echo "$ac_t""yes" 1>&6
10201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10202   cat >> confdefs.h <<EOF
10203 #define $ac_tr_func 1
10204 EOF
10205  
10206 else
10207   echo "$ac_t""no" 1>&6
10208 fi
10209 done
10210     
10211     fi
10212   fi
10213
10214   
10215   
10216   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10217 echo "configure:10218: checking for fpclass declaration" >&5
10218   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10219     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10220   echo $ac_n "(cached) $ac_c" 1>&6
10221 else
10222   
10223       
10224       ac_ext=C
10225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10226 ac_cpp='$CXXCPP $CPPFLAGS'
10227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10229 cross_compiling=$ac_cv_prog_cxx_cross
10230
10231       cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <math.h>
10235                       #ifdef HAVE_IEEEFP_H
10236                       #include <ieeefp.h>
10237                       #endif
10238                      
10239 int main() {
10240  fpclass(0);
10241 ; return 0; }
10242 EOF
10243 if { (eval echo configure:10244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10244   rm -rf conftest*
10245   glibcpp_cv_func_fpclass_use=yes
10246 else
10247   echo "configure: failed program was:" >&5
10248   cat conftest.$ac_ext >&5
10249   rm -rf conftest*
10250   glibcpp_cv_func_fpclass_use=no
10251 fi
10252 rm -f conftest*
10253       ac_ext=c
10254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10255 ac_cpp='$CPP $CPPFLAGS'
10256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10258 cross_compiling=$ac_cv_prog_cc_cross
10259
10260     
10261 fi
10262
10263   fi
10264   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10265
10266   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10267     for ac_func in fpclass
10268 do
10269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10270 echo "configure:10271: checking for $ac_func" >&5
10271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10272   echo $ac_n "(cached) $ac_c" 1>&6
10273 else
10274   cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 /* System header to define __stub macros and hopefully few prototypes,
10278     which can conflict with char $ac_func(); below.  */
10279 #include <assert.h>
10280 /* Override any gcc2 internal prototype to avoid an error.  */
10281 /* We use char because int might match the return type of a gcc2
10282     builtin and then its argument prototype would still apply.  */
10283 char $ac_func();
10284
10285 int main() {
10286
10287 /* The GNU C library defines this for functions which it implements
10288     to always fail with ENOSYS.  Some functions are actually named
10289     something starting with __ and the normal name is an alias.  */
10290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10291 choke me
10292 #else
10293 $ac_func();
10294 #endif
10295
10296 ; return 0; }
10297 EOF
10298 if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10299   rm -rf conftest*
10300   eval "ac_cv_func_$ac_func=yes"
10301 else
10302   echo "configure: failed program was:" >&5
10303   cat conftest.$ac_ext >&5
10304   rm -rf conftest*
10305   eval "ac_cv_func_$ac_func=no"
10306 fi
10307 rm -f conftest*
10308 fi
10309
10310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10311   echo "$ac_t""yes" 1>&6
10312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10313   cat >> confdefs.h <<EOF
10314 #define $ac_tr_func 1
10315 EOF
10316  
10317 else
10318   echo "$ac_t""no" 1>&6
10319 fi
10320 done
10321     
10322   else
10323     
10324   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10325 echo "configure:10326: checking for _fpclass declaration" >&5
10326   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10327     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10328   echo $ac_n "(cached) $ac_c" 1>&6
10329 else
10330   
10331       
10332       ac_ext=C
10333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10334 ac_cpp='$CXXCPP $CPPFLAGS'
10335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10337 cross_compiling=$ac_cv_prog_cxx_cross
10338
10339       cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10342 #include <math.h>
10343                       #ifdef HAVE_IEEEFP_H
10344                       #include <ieeefp.h>
10345                       #endif
10346                      
10347 int main() {
10348  _fpclass(0);
10349 ; return 0; }
10350 EOF
10351 if { (eval echo configure:10352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10352   rm -rf conftest*
10353   glibcpp_cv_func__fpclass_use=yes
10354 else
10355   echo "configure: failed program was:" >&5
10356   cat conftest.$ac_ext >&5
10357   rm -rf conftest*
10358   glibcpp_cv_func__fpclass_use=no
10359 fi
10360 rm -f conftest*
10361       ac_ext=c
10362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10363 ac_cpp='$CPP $CPPFLAGS'
10364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10366 cross_compiling=$ac_cv_prog_cc_cross
10367
10368     
10369 fi
10370
10371   fi
10372   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10373
10374     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
10375       for ac_func in _fpclass
10376 do
10377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10378 echo "configure:10379: checking for $ac_func" >&5
10379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10380   echo $ac_n "(cached) $ac_c" 1>&6
10381 else
10382   cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 /* System header to define __stub macros and hopefully few prototypes,
10386     which can conflict with char $ac_func(); below.  */
10387 #include <assert.h>
10388 /* Override any gcc2 internal prototype to avoid an error.  */
10389 /* We use char because int might match the return type of a gcc2
10390     builtin and then its argument prototype would still apply.  */
10391 char $ac_func();
10392
10393 int main() {
10394
10395 /* The GNU C library defines this for functions which it implements
10396     to always fail with ENOSYS.  Some functions are actually named
10397     something starting with __ and the normal name is an alias.  */
10398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 choke me
10400 #else
10401 $ac_func();
10402 #endif
10403
10404 ; return 0; }
10405 EOF
10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407   rm -rf conftest*
10408   eval "ac_cv_func_$ac_func=yes"
10409 else
10410   echo "configure: failed program was:" >&5
10411   cat conftest.$ac_ext >&5
10412   rm -rf conftest*
10413   eval "ac_cv_func_$ac_func=no"
10414 fi
10415 rm -f conftest*
10416 fi
10417
10418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10419   echo "$ac_t""yes" 1>&6
10420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10421   cat >> confdefs.h <<EOF
10422 #define $ac_tr_func 1
10423 EOF
10424  
10425 else
10426   echo "$ac_t""no" 1>&6
10427 fi
10428 done
10429     
10430     fi
10431   fi
10432
10433   
10434   
10435   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
10436 echo "configure:10437: checking for qfpclass declaration" >&5
10437   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
10438     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
10439   echo $ac_n "(cached) $ac_c" 1>&6
10440 else
10441   
10442       
10443       ac_ext=C
10444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10445 ac_cpp='$CXXCPP $CPPFLAGS'
10446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10448 cross_compiling=$ac_cv_prog_cxx_cross
10449
10450       cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 #include <math.h>
10454                       #ifdef HAVE_IEEEFP_H
10455                       #include <ieeefp.h>
10456                       #endif
10457                      
10458 int main() {
10459  qfpclass(0);
10460 ; return 0; }
10461 EOF
10462 if { (eval echo configure:10463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10463   rm -rf conftest*
10464   glibcpp_cv_func_qfpclass_use=yes
10465 else
10466   echo "configure: failed program was:" >&5
10467   cat conftest.$ac_ext >&5
10468   rm -rf conftest*
10469   glibcpp_cv_func_qfpclass_use=no
10470 fi
10471 rm -f conftest*
10472       ac_ext=c
10473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10474 ac_cpp='$CPP $CPPFLAGS'
10475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10477 cross_compiling=$ac_cv_prog_cc_cross
10478
10479     
10480 fi
10481
10482   fi
10483   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
10484
10485   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
10486     for ac_func in qfpclass
10487 do
10488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_func" >&5
10490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10491   echo $ac_n "(cached) $ac_c" 1>&6
10492 else
10493   cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 /* System header to define __stub macros and hopefully few prototypes,
10497     which can conflict with char $ac_func(); below.  */
10498 #include <assert.h>
10499 /* Override any gcc2 internal prototype to avoid an error.  */
10500 /* We use char because int might match the return type of a gcc2
10501     builtin and then its argument prototype would still apply.  */
10502 char $ac_func();
10503
10504 int main() {
10505
10506 /* The GNU C library defines this for functions which it implements
10507     to always fail with ENOSYS.  Some functions are actually named
10508     something starting with __ and the normal name is an alias.  */
10509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10510 choke me
10511 #else
10512 $ac_func();
10513 #endif
10514
10515 ; return 0; }
10516 EOF
10517 if { (eval echo configure:10518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518   rm -rf conftest*
10519   eval "ac_cv_func_$ac_func=yes"
10520 else
10521   echo "configure: failed program was:" >&5
10522   cat conftest.$ac_ext >&5
10523   rm -rf conftest*
10524   eval "ac_cv_func_$ac_func=no"
10525 fi
10526 rm -f conftest*
10527 fi
10528
10529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10530   echo "$ac_t""yes" 1>&6
10531     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10532   cat >> confdefs.h <<EOF
10533 #define $ac_tr_func 1
10534 EOF
10535  
10536 else
10537   echo "$ac_t""no" 1>&6
10538 fi
10539 done
10540     
10541   else
10542     
10543   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
10544 echo "configure:10545: checking for _qfpclass declaration" >&5
10545   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
10546     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
10547   echo $ac_n "(cached) $ac_c" 1>&6
10548 else
10549   
10550       
10551       ac_ext=C
10552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10553 ac_cpp='$CXXCPP $CPPFLAGS'
10554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10556 cross_compiling=$ac_cv_prog_cxx_cross
10557
10558       cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 #include <math.h>
10562                       #ifdef HAVE_IEEEFP_H
10563                       #include <ieeefp.h>
10564                       #endif
10565                      
10566 int main() {
10567  _qfpclass(0);
10568 ; return 0; }
10569 EOF
10570 if { (eval echo configure:10571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10571   rm -rf conftest*
10572   glibcpp_cv_func__qfpclass_use=yes
10573 else
10574   echo "configure: failed program was:" >&5
10575   cat conftest.$ac_ext >&5
10576   rm -rf conftest*
10577   glibcpp_cv_func__qfpclass_use=no
10578 fi
10579 rm -f conftest*
10580       ac_ext=c
10581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10585 cross_compiling=$ac_cv_prog_cc_cross
10586
10587     
10588 fi
10589
10590   fi
10591   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
10592
10593     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
10594       for ac_func in _qfpclass
10595 do
10596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10597 echo "configure:10598: checking for $ac_func" >&5
10598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10599   echo $ac_n "(cached) $ac_c" 1>&6
10600 else
10601   cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 /* System header to define __stub macros and hopefully few prototypes,
10605     which can conflict with char $ac_func(); below.  */
10606 #include <assert.h>
10607 /* Override any gcc2 internal prototype to avoid an error.  */
10608 /* We use char because int might match the return type of a gcc2
10609     builtin and then its argument prototype would still apply.  */
10610 char $ac_func();
10611
10612 int main() {
10613
10614 /* The GNU C library defines this for functions which it implements
10615     to always fail with ENOSYS.  Some functions are actually named
10616     something starting with __ and the normal name is an alias.  */
10617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10618 choke me
10619 #else
10620 $ac_func();
10621 #endif
10622
10623 ; return 0; }
10624 EOF
10625 if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10626   rm -rf conftest*
10627   eval "ac_cv_func_$ac_func=yes"
10628 else
10629   echo "configure: failed program was:" >&5
10630   cat conftest.$ac_ext >&5
10631   rm -rf conftest*
10632   eval "ac_cv_func_$ac_func=no"
10633 fi
10634 rm -f conftest*
10635 fi
10636
10637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10638   echo "$ac_t""yes" 1>&6
10639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10640   cat >> confdefs.h <<EOF
10641 #define $ac_tr_func 1
10642 EOF
10643  
10644 else
10645   echo "$ac_t""no" 1>&6
10646 fi
10647 done
10648     
10649     fi
10650   fi
10651
10652   
10653   
10654   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
10655 echo "configure:10656: checking for hypot declaration" >&5
10656   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
10657     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
10658   echo $ac_n "(cached) $ac_c" 1>&6
10659 else
10660   
10661       
10662       ac_ext=C
10663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10664 ac_cpp='$CXXCPP $CPPFLAGS'
10665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10667 cross_compiling=$ac_cv_prog_cxx_cross
10668
10669       cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672 #include <math.h>
10673 int main() {
10674  hypot(0, 0);
10675 ; return 0; }
10676 EOF
10677 if { (eval echo configure:10678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10678   rm -rf conftest*
10679   glibcpp_cv_func_hypot_use=yes
10680 else
10681   echo "configure: failed program was:" >&5
10682   cat conftest.$ac_ext >&5
10683   rm -rf conftest*
10684   glibcpp_cv_func_hypot_use=no
10685 fi
10686 rm -f conftest*
10687       ac_ext=c
10688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10689 ac_cpp='$CPP $CPPFLAGS'
10690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10692 cross_compiling=$ac_cv_prog_cc_cross
10693
10694     
10695 fi
10696
10697   fi
10698   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
10699
10700   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
10701     for ac_func in hypot
10702 do
10703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10704 echo "configure:10705: checking for $ac_func" >&5
10705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10706   echo $ac_n "(cached) $ac_c" 1>&6
10707 else
10708   cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 /* System header to define __stub macros and hopefully few prototypes,
10712     which can conflict with char $ac_func(); below.  */
10713 #include <assert.h>
10714 /* Override any gcc2 internal prototype to avoid an error.  */
10715 /* We use char because int might match the return type of a gcc2
10716     builtin and then its argument prototype would still apply.  */
10717 char $ac_func();
10718
10719 int main() {
10720
10721 /* The GNU C library defines this for functions which it implements
10722     to always fail with ENOSYS.  Some functions are actually named
10723     something starting with __ and the normal name is an alias.  */
10724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10725 choke me
10726 #else
10727 $ac_func();
10728 #endif
10729
10730 ; return 0; }
10731 EOF
10732 if { (eval echo configure:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10733   rm -rf conftest*
10734   eval "ac_cv_func_$ac_func=yes"
10735 else
10736   echo "configure: failed program was:" >&5
10737   cat conftest.$ac_ext >&5
10738   rm -rf conftest*
10739   eval "ac_cv_func_$ac_func=no"
10740 fi
10741 rm -f conftest*
10742 fi
10743
10744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10745   echo "$ac_t""yes" 1>&6
10746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10747   cat >> confdefs.h <<EOF
10748 #define $ac_tr_func 1
10749 EOF
10750  
10751 else
10752   echo "$ac_t""no" 1>&6
10753 fi
10754 done
10755     
10756   else
10757     
10758   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
10759 echo "configure:10760: checking for _hypot declaration" >&5
10760   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
10761     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
10762   echo $ac_n "(cached) $ac_c" 1>&6
10763 else
10764   
10765       
10766       ac_ext=C
10767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10768 ac_cpp='$CXXCPP $CPPFLAGS'
10769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10771 cross_compiling=$ac_cv_prog_cxx_cross
10772
10773       cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 #include <math.h>
10777 int main() {
10778  _hypot(0, 0);
10779 ; return 0; }
10780 EOF
10781 if { (eval echo configure:10782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10782   rm -rf conftest*
10783   glibcpp_cv_func__hypot_use=yes
10784 else
10785   echo "configure: failed program was:" >&5
10786   cat conftest.$ac_ext >&5
10787   rm -rf conftest*
10788   glibcpp_cv_func__hypot_use=no
10789 fi
10790 rm -f conftest*
10791       ac_ext=c
10792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10796 cross_compiling=$ac_cv_prog_cc_cross
10797
10798     
10799 fi
10800
10801   fi
10802   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
10803
10804     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
10805       for ac_func in _hypot
10806 do
10807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10808 echo "configure:10809: checking for $ac_func" >&5
10809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10810   echo $ac_n "(cached) $ac_c" 1>&6
10811 else
10812   cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 /* System header to define __stub macros and hopefully few prototypes,
10816     which can conflict with char $ac_func(); below.  */
10817 #include <assert.h>
10818 /* Override any gcc2 internal prototype to avoid an error.  */
10819 /* We use char because int might match the return type of a gcc2
10820     builtin and then its argument prototype would still apply.  */
10821 char $ac_func();
10822
10823 int main() {
10824
10825 /* The GNU C library defines this for functions which it implements
10826     to always fail with ENOSYS.  Some functions are actually named
10827     something starting with __ and the normal name is an alias.  */
10828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10829 choke me
10830 #else
10831 $ac_func();
10832 #endif
10833
10834 ; return 0; }
10835 EOF
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837   rm -rf conftest*
10838   eval "ac_cv_func_$ac_func=yes"
10839 else
10840   echo "configure: failed program was:" >&5
10841   cat conftest.$ac_ext >&5
10842   rm -rf conftest*
10843   eval "ac_cv_func_$ac_func=no"
10844 fi
10845 rm -f conftest*
10846 fi
10847
10848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10849   echo "$ac_t""yes" 1>&6
10850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10851   cat >> confdefs.h <<EOF
10852 #define $ac_tr_func 1
10853 EOF
10854  
10855 else
10856   echo "$ac_t""no" 1>&6
10857 fi
10858 done
10859     
10860     fi
10861   fi
10862
10863
10864     
10865   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
10866 echo "configure:10867: checking for float trig functions" >&5
10867   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
10868   echo $ac_n "(cached) $ac_c" 1>&6
10869 else
10870   
10871     
10872     ac_ext=C
10873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10874 ac_cpp='$CXXCPP $CPPFLAGS'
10875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10877 cross_compiling=$ac_cv_prog_cxx_cross
10878
10879     cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10882 #include <math.h>
10883 int main() {
10884  `for x in acosf asinf atanf \
10885                                           cosf sinf tanf \
10886                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
10887 ; return 0; }
10888 EOF
10889 if { (eval echo configure:10890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10890   rm -rf conftest*
10891   glibcpp_cv_func_float_trig_use=yes
10892 else
10893   echo "configure: failed program was:" >&5
10894   cat conftest.$ac_ext >&5
10895   rm -rf conftest*
10896   glibcpp_cv_func_float_trig_use=no
10897 fi
10898 rm -f conftest*
10899     ac_ext=c
10900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10901 ac_cpp='$CPP $CPPFLAGS'
10902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10904 cross_compiling=$ac_cv_prog_cc_cross
10905
10906 fi
10907
10908   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10909   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10910     for ac_func in acosf asinf atanf \
10911                                           cosf sinf tanf \
10912                                           coshf sinhf tanhf
10913 do
10914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10915 echo "configure:10916: checking for $ac_func" >&5
10916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10917   echo $ac_n "(cached) $ac_c" 1>&6
10918 else
10919   cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10922 /* System header to define __stub macros and hopefully few prototypes,
10923     which can conflict with char $ac_func(); below.  */
10924 #include <assert.h>
10925 /* Override any gcc2 internal prototype to avoid an error.  */
10926 /* We use char because int might match the return type of a gcc2
10927     builtin and then its argument prototype would still apply.  */
10928 char $ac_func();
10929
10930 int main() {
10931
10932 /* The GNU C library defines this for functions which it implements
10933     to always fail with ENOSYS.  Some functions are actually named
10934     something starting with __ and the normal name is an alias.  */
10935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10936 choke me
10937 #else
10938 $ac_func();
10939 #endif
10940
10941 ; return 0; }
10942 EOF
10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10944   rm -rf conftest*
10945   eval "ac_cv_func_$ac_func=yes"
10946 else
10947   echo "configure: failed program was:" >&5
10948   cat conftest.$ac_ext >&5
10949   rm -rf conftest*
10950   eval "ac_cv_func_$ac_func=no"
10951 fi
10952 rm -f conftest*
10953 fi
10954
10955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10956   echo "$ac_t""yes" 1>&6
10957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10958   cat >> confdefs.h <<EOF
10959 #define $ac_tr_func 1
10960 EOF
10961  
10962 else
10963   echo "$ac_t""no" 1>&6
10964 fi
10965 done
10966
10967   fi
10968
10969   
10970   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10971 echo "configure:10972: checking for float round functions" >&5
10972   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10973   echo $ac_n "(cached) $ac_c" 1>&6
10974 else
10975   
10976     
10977     ac_ext=C
10978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10979 ac_cpp='$CXXCPP $CPPFLAGS'
10980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10982 cross_compiling=$ac_cv_prog_cxx_cross
10983
10984     cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include <math.h>
10988 int main() {
10989  `for x in ceilf floorf; do echo "$x (0);"; done` 
10990 ; return 0; }
10991 EOF
10992 if { (eval echo configure:10993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10993   rm -rf conftest*
10994   glibcpp_cv_func_float_round_use=yes
10995 else
10996   echo "configure: failed program was:" >&5
10997   cat conftest.$ac_ext >&5
10998   rm -rf conftest*
10999   glibcpp_cv_func_float_round_use=no
11000 fi
11001 rm -f conftest*
11002     ac_ext=c
11003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11007 cross_compiling=$ac_cv_prog_cc_cross
11008
11009 fi
11010
11011   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11012   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11013     for ac_func in ceilf floorf
11014 do
11015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11016 echo "configure:11017: checking for $ac_func" >&5
11017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11018   echo $ac_n "(cached) $ac_c" 1>&6
11019 else
11020   cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 /* System header to define __stub macros and hopefully few prototypes,
11024     which can conflict with char $ac_func(); below.  */
11025 #include <assert.h>
11026 /* Override any gcc2 internal prototype to avoid an error.  */
11027 /* We use char because int might match the return type of a gcc2
11028     builtin and then its argument prototype would still apply.  */
11029 char $ac_func();
11030
11031 int main() {
11032
11033 /* The GNU C library defines this for functions which it implements
11034     to always fail with ENOSYS.  Some functions are actually named
11035     something starting with __ and the normal name is an alias.  */
11036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11037 choke me
11038 #else
11039 $ac_func();
11040 #endif
11041
11042 ; return 0; }
11043 EOF
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11045   rm -rf conftest*
11046   eval "ac_cv_func_$ac_func=yes"
11047 else
11048   echo "configure: failed program was:" >&5
11049   cat conftest.$ac_ext >&5
11050   rm -rf conftest*
11051   eval "ac_cv_func_$ac_func=no"
11052 fi
11053 rm -f conftest*
11054 fi
11055
11056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057   echo "$ac_t""yes" 1>&6
11058     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11059   cat >> confdefs.h <<EOF
11060 #define $ac_tr_func 1
11061 EOF
11062  
11063 else
11064   echo "$ac_t""no" 1>&6
11065 fi
11066 done
11067
11068   fi
11069
11070   
11071   
11072   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11073 echo "configure:11074: checking for isnanf declaration" >&5
11074   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11075     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11076   echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11078   
11079       
11080       ac_ext=C
11081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11082 ac_cpp='$CXXCPP $CPPFLAGS'
11083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11085 cross_compiling=$ac_cv_prog_cxx_cross
11086
11087       cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include <math.h>
11091                       #ifdef HAVE_IEEEFP_H
11092                       #include <ieeefp.h>
11093                       #endif
11094                      
11095 int main() {
11096  isnanf(0);
11097 ; return 0; }
11098 EOF
11099 if { (eval echo configure:11100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11100   rm -rf conftest*
11101   glibcpp_cv_func_isnanf_use=yes
11102 else
11103   echo "configure: failed program was:" >&5
11104   cat conftest.$ac_ext >&5
11105   rm -rf conftest*
11106   glibcpp_cv_func_isnanf_use=no
11107 fi
11108 rm -f conftest*
11109       ac_ext=c
11110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11111 ac_cpp='$CPP $CPPFLAGS'
11112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11114 cross_compiling=$ac_cv_prog_cc_cross
11115
11116     
11117 fi
11118
11119   fi
11120   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11121
11122   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11123     for ac_func in isnanf
11124 do
11125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11126 echo "configure:11127: checking for $ac_func" >&5
11127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11128   echo $ac_n "(cached) $ac_c" 1>&6
11129 else
11130   cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 /* System header to define __stub macros and hopefully few prototypes,
11134     which can conflict with char $ac_func(); below.  */
11135 #include <assert.h>
11136 /* Override any gcc2 internal prototype to avoid an error.  */
11137 /* We use char because int might match the return type of a gcc2
11138     builtin and then its argument prototype would still apply.  */
11139 char $ac_func();
11140
11141 int main() {
11142
11143 /* The GNU C library defines this for functions which it implements
11144     to always fail with ENOSYS.  Some functions are actually named
11145     something starting with __ and the normal name is an alias.  */
11146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11147 choke me
11148 #else
11149 $ac_func();
11150 #endif
11151
11152 ; return 0; }
11153 EOF
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155   rm -rf conftest*
11156   eval "ac_cv_func_$ac_func=yes"
11157 else
11158   echo "configure: failed program was:" >&5
11159   cat conftest.$ac_ext >&5
11160   rm -rf conftest*
11161   eval "ac_cv_func_$ac_func=no"
11162 fi
11163 rm -f conftest*
11164 fi
11165
11166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11167   echo "$ac_t""yes" 1>&6
11168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11169   cat >> confdefs.h <<EOF
11170 #define $ac_tr_func 1
11171 EOF
11172  
11173 else
11174   echo "$ac_t""no" 1>&6
11175 fi
11176 done
11177     
11178   else
11179     
11180   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11181 echo "configure:11182: checking for _isnanf declaration" >&5
11182   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
11183     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11184   echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186   
11187       
11188       ac_ext=C
11189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CXXCPP $CPPFLAGS'
11191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cxx_cross
11194
11195       cat > conftest.$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11198 #include <math.h>
11199                       #ifdef HAVE_IEEEFP_H
11200                       #include <ieeefp.h>
11201                       #endif
11202                      
11203 int main() {
11204  _isnanf(0);
11205 ; return 0; }
11206 EOF
11207 if { (eval echo configure:11208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11208   rm -rf conftest*
11209   glibcpp_cv_func__isnanf_use=yes
11210 else
11211   echo "configure: failed program was:" >&5
11212   cat conftest.$ac_ext >&5
11213   rm -rf conftest*
11214   glibcpp_cv_func__isnanf_use=no
11215 fi
11216 rm -f conftest*
11217       ac_ext=c
11218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11222 cross_compiling=$ac_cv_prog_cc_cross
11223
11224     
11225 fi
11226
11227   fi
11228   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11229
11230     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
11231       for ac_func in _isnanf
11232 do
11233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11234 echo "configure:11235: checking for $ac_func" >&5
11235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11236   echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238   cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* System header to define __stub macros and hopefully few prototypes,
11242     which can conflict with char $ac_func(); below.  */
11243 #include <assert.h>
11244 /* Override any gcc2 internal prototype to avoid an error.  */
11245 /* We use char because int might match the return type of a gcc2
11246     builtin and then its argument prototype would still apply.  */
11247 char $ac_func();
11248
11249 int main() {
11250
11251 /* The GNU C library defines this for functions which it implements
11252     to always fail with ENOSYS.  Some functions are actually named
11253     something starting with __ and the normal name is an alias.  */
11254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11255 choke me
11256 #else
11257 $ac_func();
11258 #endif
11259
11260 ; return 0; }
11261 EOF
11262 if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11263   rm -rf conftest*
11264   eval "ac_cv_func_$ac_func=yes"
11265 else
11266   echo "configure: failed program was:" >&5
11267   cat conftest.$ac_ext >&5
11268   rm -rf conftest*
11269   eval "ac_cv_func_$ac_func=no"
11270 fi
11271 rm -f conftest*
11272 fi
11273
11274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11275   echo "$ac_t""yes" 1>&6
11276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11277   cat >> confdefs.h <<EOF
11278 #define $ac_tr_func 1
11279 EOF
11280  
11281 else
11282   echo "$ac_t""no" 1>&6
11283 fi
11284 done
11285     
11286     fi
11287   fi
11288
11289   
11290   
11291   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
11292 echo "configure:11293: checking for isinff declaration" >&5
11293   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
11294     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
11295   echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297   
11298       
11299       ac_ext=C
11300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11301 ac_cpp='$CXXCPP $CPPFLAGS'
11302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11304 cross_compiling=$ac_cv_prog_cxx_cross
11305
11306       cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include <math.h>
11310                       #ifdef HAVE_IEEEFP_H
11311                       #include <ieeefp.h>
11312                       #endif
11313                      
11314 int main() {
11315  isinff(0);
11316 ; return 0; }
11317 EOF
11318 if { (eval echo configure:11319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11319   rm -rf conftest*
11320   glibcpp_cv_func_isinff_use=yes
11321 else
11322   echo "configure: failed program was:" >&5
11323   cat conftest.$ac_ext >&5
11324   rm -rf conftest*
11325   glibcpp_cv_func_isinff_use=no
11326 fi
11327 rm -f conftest*
11328       ac_ext=c
11329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11330 ac_cpp='$CPP $CPPFLAGS'
11331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11333 cross_compiling=$ac_cv_prog_cc_cross
11334
11335     
11336 fi
11337
11338   fi
11339   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
11340
11341   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
11342     for ac_func in isinff
11343 do
11344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11345 echo "configure:11346: checking for $ac_func" >&5
11346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11347   echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11349   cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352 /* System header to define __stub macros and hopefully few prototypes,
11353     which can conflict with char $ac_func(); below.  */
11354 #include <assert.h>
11355 /* Override any gcc2 internal prototype to avoid an error.  */
11356 /* We use char because int might match the return type of a gcc2
11357     builtin and then its argument prototype would still apply.  */
11358 char $ac_func();
11359
11360 int main() {
11361
11362 /* The GNU C library defines this for functions which it implements
11363     to always fail with ENOSYS.  Some functions are actually named
11364     something starting with __ and the normal name is an alias.  */
11365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11366 choke me
11367 #else
11368 $ac_func();
11369 #endif
11370
11371 ; return 0; }
11372 EOF
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11374   rm -rf conftest*
11375   eval "ac_cv_func_$ac_func=yes"
11376 else
11377   echo "configure: failed program was:" >&5
11378   cat conftest.$ac_ext >&5
11379   rm -rf conftest*
11380   eval "ac_cv_func_$ac_func=no"
11381 fi
11382 rm -f conftest*
11383 fi
11384
11385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11386   echo "$ac_t""yes" 1>&6
11387     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11388   cat >> confdefs.h <<EOF
11389 #define $ac_tr_func 1
11390 EOF
11391  
11392 else
11393   echo "$ac_t""no" 1>&6
11394 fi
11395 done
11396     
11397   else
11398     
11399   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
11400 echo "configure:11401: checking for _isinff declaration" >&5
11401   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
11402     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
11403   echo $ac_n "(cached) $ac_c" 1>&6
11404 else
11405   
11406       
11407       ac_ext=C
11408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11409 ac_cpp='$CXXCPP $CPPFLAGS'
11410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11412 cross_compiling=$ac_cv_prog_cxx_cross
11413
11414       cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 #include <math.h>
11418                       #ifdef HAVE_IEEEFP_H
11419                       #include <ieeefp.h>
11420                       #endif
11421                      
11422 int main() {
11423  _isinff(0);
11424 ; return 0; }
11425 EOF
11426 if { (eval echo configure:11427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11427   rm -rf conftest*
11428   glibcpp_cv_func__isinff_use=yes
11429 else
11430   echo "configure: failed program was:" >&5
11431   cat conftest.$ac_ext >&5
11432   rm -rf conftest*
11433   glibcpp_cv_func__isinff_use=no
11434 fi
11435 rm -f conftest*
11436       ac_ext=c
11437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11438 ac_cpp='$CPP $CPPFLAGS'
11439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11441 cross_compiling=$ac_cv_prog_cc_cross
11442
11443     
11444 fi
11445
11446   fi
11447   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
11448
11449     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
11450       for ac_func in _isinff
11451 do
11452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11453 echo "configure:11454: checking for $ac_func" >&5
11454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11455   echo $ac_n "(cached) $ac_c" 1>&6
11456 else
11457   cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* System header to define __stub macros and hopefully few prototypes,
11461     which can conflict with char $ac_func(); below.  */
11462 #include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error.  */
11464 /* We use char because int might match the return type of a gcc2
11465     builtin and then its argument prototype would still apply.  */
11466 char $ac_func();
11467
11468 int main() {
11469
11470 /* The GNU C library defines this for functions which it implements
11471     to always fail with ENOSYS.  Some functions are actually named
11472     something starting with __ and the normal name is an alias.  */
11473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11474 choke me
11475 #else
11476 $ac_func();
11477 #endif
11478
11479 ; return 0; }
11480 EOF
11481 if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11482   rm -rf conftest*
11483   eval "ac_cv_func_$ac_func=yes"
11484 else
11485   echo "configure: failed program was:" >&5
11486   cat conftest.$ac_ext >&5
11487   rm -rf conftest*
11488   eval "ac_cv_func_$ac_func=no"
11489 fi
11490 rm -f conftest*
11491 fi
11492
11493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11494   echo "$ac_t""yes" 1>&6
11495     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11496   cat >> confdefs.h <<EOF
11497 #define $ac_tr_func 1
11498 EOF
11499  
11500 else
11501   echo "$ac_t""no" 1>&6
11502 fi
11503 done
11504     
11505     fi
11506   fi
11507
11508   
11509   
11510   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
11511 echo "configure:11512: checking for atan2f declaration" >&5
11512   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
11513     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
11514   echo $ac_n "(cached) $ac_c" 1>&6
11515 else
11516   
11517       
11518       ac_ext=C
11519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11520 ac_cpp='$CXXCPP $CPPFLAGS'
11521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11523 cross_compiling=$ac_cv_prog_cxx_cross
11524
11525       cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 #include <math.h>
11529 int main() {
11530  atan2f(0, 0);
11531 ; return 0; }
11532 EOF
11533 if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11534   rm -rf conftest*
11535   glibcpp_cv_func_atan2f_use=yes
11536 else
11537   echo "configure: failed program was:" >&5
11538   cat conftest.$ac_ext >&5
11539   rm -rf conftest*
11540   glibcpp_cv_func_atan2f_use=no
11541 fi
11542 rm -f conftest*
11543       ac_ext=c
11544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11545 ac_cpp='$CPP $CPPFLAGS'
11546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11548 cross_compiling=$ac_cv_prog_cc_cross
11549
11550     
11551 fi
11552
11553   fi
11554   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
11555
11556   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
11557     for ac_func in atan2f
11558 do
11559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11560 echo "configure:11561: checking for $ac_func" >&5
11561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11562   echo $ac_n "(cached) $ac_c" 1>&6
11563 else
11564   cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11567 /* System header to define __stub macros and hopefully few prototypes,
11568     which can conflict with char $ac_func(); below.  */
11569 #include <assert.h>
11570 /* Override any gcc2 internal prototype to avoid an error.  */
11571 /* We use char because int might match the return type of a gcc2
11572     builtin and then its argument prototype would still apply.  */
11573 char $ac_func();
11574
11575 int main() {
11576
11577 /* The GNU C library defines this for functions which it implements
11578     to always fail with ENOSYS.  Some functions are actually named
11579     something starting with __ and the normal name is an alias.  */
11580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11581 choke me
11582 #else
11583 $ac_func();
11584 #endif
11585
11586 ; return 0; }
11587 EOF
11588 if { (eval echo configure:11589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11589   rm -rf conftest*
11590   eval "ac_cv_func_$ac_func=yes"
11591 else
11592   echo "configure: failed program was:" >&5
11593   cat conftest.$ac_ext >&5
11594   rm -rf conftest*
11595   eval "ac_cv_func_$ac_func=no"
11596 fi
11597 rm -f conftest*
11598 fi
11599
11600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11601   echo "$ac_t""yes" 1>&6
11602     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11603   cat >> confdefs.h <<EOF
11604 #define $ac_tr_func 1
11605 EOF
11606  
11607 else
11608   echo "$ac_t""no" 1>&6
11609 fi
11610 done
11611     
11612   else
11613     
11614   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
11615 echo "configure:11616: checking for _atan2f declaration" >&5
11616   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
11617     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
11618   echo $ac_n "(cached) $ac_c" 1>&6
11619 else
11620   
11621       
11622       ac_ext=C
11623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11624 ac_cpp='$CXXCPP $CPPFLAGS'
11625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11627 cross_compiling=$ac_cv_prog_cxx_cross
11628
11629       cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <math.h>
11633 int main() {
11634  _atan2f(0, 0);
11635 ; return 0; }
11636 EOF
11637 if { (eval echo configure:11638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11638   rm -rf conftest*
11639   glibcpp_cv_func__atan2f_use=yes
11640 else
11641   echo "configure: failed program was:" >&5
11642   cat conftest.$ac_ext >&5
11643   rm -rf conftest*
11644   glibcpp_cv_func__atan2f_use=no
11645 fi
11646 rm -f conftest*
11647       ac_ext=c
11648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11649 ac_cpp='$CPP $CPPFLAGS'
11650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11652 cross_compiling=$ac_cv_prog_cc_cross
11653
11654     
11655 fi
11656
11657   fi
11658   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
11659
11660     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
11661       for ac_func in _atan2f
11662 do
11663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11664 echo "configure:11665: checking for $ac_func" >&5
11665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11666   echo $ac_n "(cached) $ac_c" 1>&6
11667 else
11668   cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11671 /* System header to define __stub macros and hopefully few prototypes,
11672     which can conflict with char $ac_func(); below.  */
11673 #include <assert.h>
11674 /* Override any gcc2 internal prototype to avoid an error.  */
11675 /* We use char because int might match the return type of a gcc2
11676     builtin and then its argument prototype would still apply.  */
11677 char $ac_func();
11678
11679 int main() {
11680
11681 /* The GNU C library defines this for functions which it implements
11682     to always fail with ENOSYS.  Some functions are actually named
11683     something starting with __ and the normal name is an alias.  */
11684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11685 choke me
11686 #else
11687 $ac_func();
11688 #endif
11689
11690 ; return 0; }
11691 EOF
11692 if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11693   rm -rf conftest*
11694   eval "ac_cv_func_$ac_func=yes"
11695 else
11696   echo "configure: failed program was:" >&5
11697   cat conftest.$ac_ext >&5
11698   rm -rf conftest*
11699   eval "ac_cv_func_$ac_func=no"
11700 fi
11701 rm -f conftest*
11702 fi
11703
11704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11705   echo "$ac_t""yes" 1>&6
11706     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11707   cat >> confdefs.h <<EOF
11708 #define $ac_tr_func 1
11709 EOF
11710  
11711 else
11712   echo "$ac_t""no" 1>&6
11713 fi
11714 done
11715     
11716     fi
11717   fi
11718
11719   
11720   
11721   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
11722 echo "configure:11723: checking for fabsf declaration" >&5
11723   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
11724     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
11725   echo $ac_n "(cached) $ac_c" 1>&6
11726 else
11727   
11728       
11729       ac_ext=C
11730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11731 ac_cpp='$CXXCPP $CPPFLAGS'
11732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11734 cross_compiling=$ac_cv_prog_cxx_cross
11735
11736       cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 #include <math.h>
11740                       #ifdef HAVE_IEEEFP_H
11741                       #include <ieeefp.h>
11742                       #endif
11743                      
11744 int main() {
11745  fabsf(0);
11746 ; return 0; }
11747 EOF
11748 if { (eval echo configure:11749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11749   rm -rf conftest*
11750   glibcpp_cv_func_fabsf_use=yes
11751 else
11752   echo "configure: failed program was:" >&5
11753   cat conftest.$ac_ext >&5
11754   rm -rf conftest*
11755   glibcpp_cv_func_fabsf_use=no
11756 fi
11757 rm -f conftest*
11758       ac_ext=c
11759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11760 ac_cpp='$CPP $CPPFLAGS'
11761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11763 cross_compiling=$ac_cv_prog_cc_cross
11764
11765     
11766 fi
11767
11768   fi
11769   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
11770
11771   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
11772     for ac_func in fabsf
11773 do
11774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11775 echo "configure:11776: checking for $ac_func" >&5
11776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11777   echo $ac_n "(cached) $ac_c" 1>&6
11778 else
11779   cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* System header to define __stub macros and hopefully few prototypes,
11783     which can conflict with char $ac_func(); below.  */
11784 #include <assert.h>
11785 /* Override any gcc2 internal prototype to avoid an error.  */
11786 /* We use char because int might match the return type of a gcc2
11787     builtin and then its argument prototype would still apply.  */
11788 char $ac_func();
11789
11790 int main() {
11791
11792 /* The GNU C library defines this for functions which it implements
11793     to always fail with ENOSYS.  Some functions are actually named
11794     something starting with __ and the normal name is an alias.  */
11795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11796 choke me
11797 #else
11798 $ac_func();
11799 #endif
11800
11801 ; return 0; }
11802 EOF
11803 if { (eval echo configure:11804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11804   rm -rf conftest*
11805   eval "ac_cv_func_$ac_func=yes"
11806 else
11807   echo "configure: failed program was:" >&5
11808   cat conftest.$ac_ext >&5
11809   rm -rf conftest*
11810   eval "ac_cv_func_$ac_func=no"
11811 fi
11812 rm -f conftest*
11813 fi
11814
11815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11816   echo "$ac_t""yes" 1>&6
11817     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11818   cat >> confdefs.h <<EOF
11819 #define $ac_tr_func 1
11820 EOF
11821  
11822 else
11823   echo "$ac_t""no" 1>&6
11824 fi
11825 done
11826     
11827   else
11828     
11829   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
11830 echo "configure:11831: checking for _fabsf declaration" >&5
11831   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
11832     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
11833   echo $ac_n "(cached) $ac_c" 1>&6
11834 else
11835   
11836       
11837       ac_ext=C
11838 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11839 ac_cpp='$CXXCPP $CPPFLAGS'
11840 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11841 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11842 cross_compiling=$ac_cv_prog_cxx_cross
11843
11844       cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <math.h>
11848                       #ifdef HAVE_IEEEFP_H
11849                       #include <ieeefp.h>
11850                       #endif
11851                      
11852 int main() {
11853  _fabsf(0);
11854 ; return 0; }
11855 EOF
11856 if { (eval echo configure:11857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11857   rm -rf conftest*
11858   glibcpp_cv_func__fabsf_use=yes
11859 else
11860   echo "configure: failed program was:" >&5
11861   cat conftest.$ac_ext >&5
11862   rm -rf conftest*
11863   glibcpp_cv_func__fabsf_use=no
11864 fi
11865 rm -f conftest*
11866       ac_ext=c
11867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11871 cross_compiling=$ac_cv_prog_cc_cross
11872
11873     
11874 fi
11875
11876   fi
11877   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
11878
11879     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
11880       for ac_func in _fabsf
11881 do
11882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11883 echo "configure:11884: checking for $ac_func" >&5
11884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11885   echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11887   cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 /* System header to define __stub macros and hopefully few prototypes,
11891     which can conflict with char $ac_func(); below.  */
11892 #include <assert.h>
11893 /* Override any gcc2 internal prototype to avoid an error.  */
11894 /* We use char because int might match the return type of a gcc2
11895     builtin and then its argument prototype would still apply.  */
11896 char $ac_func();
11897
11898 int main() {
11899
11900 /* The GNU C library defines this for functions which it implements
11901     to always fail with ENOSYS.  Some functions are actually named
11902     something starting with __ and the normal name is an alias.  */
11903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11904 choke me
11905 #else
11906 $ac_func();
11907 #endif
11908
11909 ; return 0; }
11910 EOF
11911 if { (eval echo configure:11912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11912   rm -rf conftest*
11913   eval "ac_cv_func_$ac_func=yes"
11914 else
11915   echo "configure: failed program was:" >&5
11916   cat conftest.$ac_ext >&5
11917   rm -rf conftest*
11918   eval "ac_cv_func_$ac_func=no"
11919 fi
11920 rm -f conftest*
11921 fi
11922
11923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11924   echo "$ac_t""yes" 1>&6
11925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11926   cat >> confdefs.h <<EOF
11927 #define $ac_tr_func 1
11928 EOF
11929  
11930 else
11931   echo "$ac_t""no" 1>&6
11932 fi
11933 done
11934     
11935     fi
11936   fi
11937
11938   
11939   
11940   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11941 echo "configure:11942: checking for fmodf declaration" >&5
11942   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11943     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11944   echo $ac_n "(cached) $ac_c" 1>&6
11945 else
11946   
11947       
11948       ac_ext=C
11949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11950 ac_cpp='$CXXCPP $CPPFLAGS'
11951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11953 cross_compiling=$ac_cv_prog_cxx_cross
11954
11955       cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958 #include <math.h>
11959 int main() {
11960  fmodf(0, 0);
11961 ; return 0; }
11962 EOF
11963 if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11964   rm -rf conftest*
11965   glibcpp_cv_func_fmodf_use=yes
11966 else
11967   echo "configure: failed program was:" >&5
11968   cat conftest.$ac_ext >&5
11969   rm -rf conftest*
11970   glibcpp_cv_func_fmodf_use=no
11971 fi
11972 rm -f conftest*
11973       ac_ext=c
11974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11975 ac_cpp='$CPP $CPPFLAGS'
11976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11978 cross_compiling=$ac_cv_prog_cc_cross
11979
11980     
11981 fi
11982
11983   fi
11984   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11985
11986   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11987     for ac_func in fmodf
11988 do
11989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11990 echo "configure:11991: checking for $ac_func" >&5
11991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11992   echo $ac_n "(cached) $ac_c" 1>&6
11993 else
11994   cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997 /* System header to define __stub macros and hopefully few prototypes,
11998     which can conflict with char $ac_func(); below.  */
11999 #include <assert.h>
12000 /* Override any gcc2 internal prototype to avoid an error.  */
12001 /* We use char because int might match the return type of a gcc2
12002     builtin and then its argument prototype would still apply.  */
12003 char $ac_func();
12004
12005 int main() {
12006
12007 /* The GNU C library defines this for functions which it implements
12008     to always fail with ENOSYS.  Some functions are actually named
12009     something starting with __ and the normal name is an alias.  */
12010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12011 choke me
12012 #else
12013 $ac_func();
12014 #endif
12015
12016 ; return 0; }
12017 EOF
12018 if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12019   rm -rf conftest*
12020   eval "ac_cv_func_$ac_func=yes"
12021 else
12022   echo "configure: failed program was:" >&5
12023   cat conftest.$ac_ext >&5
12024   rm -rf conftest*
12025   eval "ac_cv_func_$ac_func=no"
12026 fi
12027 rm -f conftest*
12028 fi
12029
12030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12031   echo "$ac_t""yes" 1>&6
12032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12033   cat >> confdefs.h <<EOF
12034 #define $ac_tr_func 1
12035 EOF
12036  
12037 else
12038   echo "$ac_t""no" 1>&6
12039 fi
12040 done
12041     
12042   else
12043     
12044   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12045 echo "configure:12046: checking for _fmodf declaration" >&5
12046   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12047     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12048   echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050   
12051       
12052       ac_ext=C
12053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12054 ac_cpp='$CXXCPP $CPPFLAGS'
12055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12057 cross_compiling=$ac_cv_prog_cxx_cross
12058
12059       cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12062 #include <math.h>
12063 int main() {
12064  _fmodf(0, 0);
12065 ; return 0; }
12066 EOF
12067 if { (eval echo configure:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12068   rm -rf conftest*
12069   glibcpp_cv_func__fmodf_use=yes
12070 else
12071   echo "configure: failed program was:" >&5
12072   cat conftest.$ac_ext >&5
12073   rm -rf conftest*
12074   glibcpp_cv_func__fmodf_use=no
12075 fi
12076 rm -f conftest*
12077       ac_ext=c
12078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12079 ac_cpp='$CPP $CPPFLAGS'
12080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12082 cross_compiling=$ac_cv_prog_cc_cross
12083
12084     
12085 fi
12086
12087   fi
12088   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12089
12090     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12091       for ac_func in _fmodf
12092 do
12093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12094 echo "configure:12095: checking for $ac_func" >&5
12095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12096   echo $ac_n "(cached) $ac_c" 1>&6
12097 else
12098   cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char $ac_func(); below.  */
12103 #include <assert.h>
12104 /* Override any gcc2 internal prototype to avoid an error.  */
12105 /* We use char because int might match the return type of a gcc2
12106     builtin and then its argument prototype would still apply.  */
12107 char $ac_func();
12108
12109 int main() {
12110
12111 /* The GNU C library defines this for functions which it implements
12112     to always fail with ENOSYS.  Some functions are actually named
12113     something starting with __ and the normal name is an alias.  */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 $ac_func();
12118 #endif
12119
12120 ; return 0; }
12121 EOF
12122 if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12123   rm -rf conftest*
12124   eval "ac_cv_func_$ac_func=yes"
12125 else
12126   echo "configure: failed program was:" >&5
12127   cat conftest.$ac_ext >&5
12128   rm -rf conftest*
12129   eval "ac_cv_func_$ac_func=no"
12130 fi
12131 rm -f conftest*
12132 fi
12133
12134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12135   echo "$ac_t""yes" 1>&6
12136     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12137   cat >> confdefs.h <<EOF
12138 #define $ac_tr_func 1
12139 EOF
12140  
12141 else
12142   echo "$ac_t""no" 1>&6
12143 fi
12144 done
12145     
12146     fi
12147   fi
12148
12149   
12150   
12151   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
12152 echo "configure:12153: checking for frexpf declaration" >&5
12153   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
12154     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
12155   echo $ac_n "(cached) $ac_c" 1>&6
12156 else
12157   
12158       
12159       ac_ext=C
12160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12161 ac_cpp='$CXXCPP $CPPFLAGS'
12162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12164 cross_compiling=$ac_cv_prog_cxx_cross
12165
12166       cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 #include <math.h>
12170 int main() {
12171  frexpf(0, 0);
12172 ; return 0; }
12173 EOF
12174 if { (eval echo configure:12175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12175   rm -rf conftest*
12176   glibcpp_cv_func_frexpf_use=yes
12177 else
12178   echo "configure: failed program was:" >&5
12179   cat conftest.$ac_ext >&5
12180   rm -rf conftest*
12181   glibcpp_cv_func_frexpf_use=no
12182 fi
12183 rm -f conftest*
12184       ac_ext=c
12185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12189 cross_compiling=$ac_cv_prog_cc_cross
12190
12191     
12192 fi
12193
12194   fi
12195   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
12196
12197   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
12198     for ac_func in frexpf
12199 do
12200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12201 echo "configure:12202: checking for $ac_func" >&5
12202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12203   echo $ac_n "(cached) $ac_c" 1>&6
12204 else
12205   cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12208 /* System header to define __stub macros and hopefully few prototypes,
12209     which can conflict with char $ac_func(); below.  */
12210 #include <assert.h>
12211 /* Override any gcc2 internal prototype to avoid an error.  */
12212 /* We use char because int might match the return type of a gcc2
12213     builtin and then its argument prototype would still apply.  */
12214 char $ac_func();
12215
12216 int main() {
12217
12218 /* The GNU C library defines this for functions which it implements
12219     to always fail with ENOSYS.  Some functions are actually named
12220     something starting with __ and the normal name is an alias.  */
12221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12222 choke me
12223 #else
12224 $ac_func();
12225 #endif
12226
12227 ; return 0; }
12228 EOF
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230   rm -rf conftest*
12231   eval "ac_cv_func_$ac_func=yes"
12232 else
12233   echo "configure: failed program was:" >&5
12234   cat conftest.$ac_ext >&5
12235   rm -rf conftest*
12236   eval "ac_cv_func_$ac_func=no"
12237 fi
12238 rm -f conftest*
12239 fi
12240
12241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12242   echo "$ac_t""yes" 1>&6
12243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12244   cat >> confdefs.h <<EOF
12245 #define $ac_tr_func 1
12246 EOF
12247  
12248 else
12249   echo "$ac_t""no" 1>&6
12250 fi
12251 done
12252     
12253   else
12254     
12255   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12256 echo "configure:12257: checking for _frexpf declaration" >&5
12257   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
12258     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12259   echo $ac_n "(cached) $ac_c" 1>&6
12260 else
12261   
12262       
12263       ac_ext=C
12264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12268 cross_compiling=$ac_cv_prog_cxx_cross
12269
12270       cat > conftest.$ac_ext <<EOF
12271 #line 12272 "configure"
12272 #include "confdefs.h"
12273 #include <math.h>
12274 int main() {
12275  _frexpf(0, 0);
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12279   rm -rf conftest*
12280   glibcpp_cv_func__frexpf_use=yes
12281 else
12282   echo "configure: failed program was:" >&5
12283   cat conftest.$ac_ext >&5
12284   rm -rf conftest*
12285   glibcpp_cv_func__frexpf_use=no
12286 fi
12287 rm -f conftest*
12288       ac_ext=c
12289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12290 ac_cpp='$CPP $CPPFLAGS'
12291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12293 cross_compiling=$ac_cv_prog_cc_cross
12294
12295     
12296 fi
12297
12298   fi
12299   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
12300
12301     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
12302       for ac_func in _frexpf
12303 do
12304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_func" >&5
12306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12307   echo $ac_n "(cached) $ac_c" 1>&6
12308 else
12309   cat > conftest.$ac_ext <<EOF
12310 #line 12311 "configure"
12311 #include "confdefs.h"
12312 /* System header to define __stub macros and hopefully few prototypes,
12313     which can conflict with char $ac_func(); below.  */
12314 #include <assert.h>
12315 /* Override any gcc2 internal prototype to avoid an error.  */
12316 /* We use char because int might match the return type of a gcc2
12317     builtin and then its argument prototype would still apply.  */
12318 char $ac_func();
12319
12320 int main() {
12321
12322 /* The GNU C library defines this for functions which it implements
12323     to always fail with ENOSYS.  Some functions are actually named
12324     something starting with __ and the normal name is an alias.  */
12325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326 choke me
12327 #else
12328 $ac_func();
12329 #endif
12330
12331 ; return 0; }
12332 EOF
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334   rm -rf conftest*
12335   eval "ac_cv_func_$ac_func=yes"
12336 else
12337   echo "configure: failed program was:" >&5
12338   cat conftest.$ac_ext >&5
12339   rm -rf conftest*
12340   eval "ac_cv_func_$ac_func=no"
12341 fi
12342 rm -f conftest*
12343 fi
12344
12345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12346   echo "$ac_t""yes" 1>&6
12347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12348   cat >> confdefs.h <<EOF
12349 #define $ac_tr_func 1
12350 EOF
12351  
12352 else
12353   echo "$ac_t""no" 1>&6
12354 fi
12355 done
12356     
12357     fi
12358   fi
12359
12360   
12361   
12362   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
12363 echo "configure:12364: checking for hypotf declaration" >&5
12364   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
12365     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
12366   echo $ac_n "(cached) $ac_c" 1>&6
12367 else
12368   
12369       
12370       ac_ext=C
12371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12372 ac_cpp='$CXXCPP $CPPFLAGS'
12373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12375 cross_compiling=$ac_cv_prog_cxx_cross
12376
12377       cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 #include <math.h>
12381 int main() {
12382  hypotf(0, 0);
12383 ; return 0; }
12384 EOF
12385 if { (eval echo configure:12386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12386   rm -rf conftest*
12387   glibcpp_cv_func_hypotf_use=yes
12388 else
12389   echo "configure: failed program was:" >&5
12390   cat conftest.$ac_ext >&5
12391   rm -rf conftest*
12392   glibcpp_cv_func_hypotf_use=no
12393 fi
12394 rm -f conftest*
12395       ac_ext=c
12396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12400 cross_compiling=$ac_cv_prog_cc_cross
12401
12402     
12403 fi
12404
12405   fi
12406   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
12407
12408   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
12409     for ac_func in hypotf
12410 do
12411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12412 echo "configure:12413: checking for $ac_func" >&5
12413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12414   echo $ac_n "(cached) $ac_c" 1>&6
12415 else
12416   cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 /* System header to define __stub macros and hopefully few prototypes,
12420     which can conflict with char $ac_func(); below.  */
12421 #include <assert.h>
12422 /* Override any gcc2 internal prototype to avoid an error.  */
12423 /* We use char because int might match the return type of a gcc2
12424     builtin and then its argument prototype would still apply.  */
12425 char $ac_func();
12426
12427 int main() {
12428
12429 /* The GNU C library defines this for functions which it implements
12430     to always fail with ENOSYS.  Some functions are actually named
12431     something starting with __ and the normal name is an alias.  */
12432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12433 choke me
12434 #else
12435 $ac_func();
12436 #endif
12437
12438 ; return 0; }
12439 EOF
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441   rm -rf conftest*
12442   eval "ac_cv_func_$ac_func=yes"
12443 else
12444   echo "configure: failed program was:" >&5
12445   cat conftest.$ac_ext >&5
12446   rm -rf conftest*
12447   eval "ac_cv_func_$ac_func=no"
12448 fi
12449 rm -f conftest*
12450 fi
12451
12452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12453   echo "$ac_t""yes" 1>&6
12454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12455   cat >> confdefs.h <<EOF
12456 #define $ac_tr_func 1
12457 EOF
12458  
12459 else
12460   echo "$ac_t""no" 1>&6
12461 fi
12462 done
12463     
12464   else
12465     
12466   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
12467 echo "configure:12468: checking for _hypotf declaration" >&5
12468   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
12469     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
12470   echo $ac_n "(cached) $ac_c" 1>&6
12471 else
12472   
12473       
12474       ac_ext=C
12475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12476 ac_cpp='$CXXCPP $CPPFLAGS'
12477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12479 cross_compiling=$ac_cv_prog_cxx_cross
12480
12481       cat > conftest.$ac_ext <<EOF
12482 #line 12483 "configure"
12483 #include "confdefs.h"
12484 #include <math.h>
12485 int main() {
12486  _hypotf(0, 0);
12487 ; return 0; }
12488 EOF
12489 if { (eval echo configure:12490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12490   rm -rf conftest*
12491   glibcpp_cv_func__hypotf_use=yes
12492 else
12493   echo "configure: failed program was:" >&5
12494   cat conftest.$ac_ext >&5
12495   rm -rf conftest*
12496   glibcpp_cv_func__hypotf_use=no
12497 fi
12498 rm -f conftest*
12499       ac_ext=c
12500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12501 ac_cpp='$CPP $CPPFLAGS'
12502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12504 cross_compiling=$ac_cv_prog_cc_cross
12505
12506     
12507 fi
12508
12509   fi
12510   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
12511
12512     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
12513       for ac_func in _hypotf
12514 do
12515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12516 echo "configure:12517: checking for $ac_func" >&5
12517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12518   echo $ac_n "(cached) $ac_c" 1>&6
12519 else
12520   cat > conftest.$ac_ext <<EOF
12521 #line 12522 "configure"
12522 #include "confdefs.h"
12523 /* System header to define __stub macros and hopefully few prototypes,
12524     which can conflict with char $ac_func(); below.  */
12525 #include <assert.h>
12526 /* Override any gcc2 internal prototype to avoid an error.  */
12527 /* We use char because int might match the return type of a gcc2
12528     builtin and then its argument prototype would still apply.  */
12529 char $ac_func();
12530
12531 int main() {
12532
12533 /* The GNU C library defines this for functions which it implements
12534     to always fail with ENOSYS.  Some functions are actually named
12535     something starting with __ and the normal name is an alias.  */
12536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12537 choke me
12538 #else
12539 $ac_func();
12540 #endif
12541
12542 ; return 0; }
12543 EOF
12544 if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12545   rm -rf conftest*
12546   eval "ac_cv_func_$ac_func=yes"
12547 else
12548   echo "configure: failed program was:" >&5
12549   cat conftest.$ac_ext >&5
12550   rm -rf conftest*
12551   eval "ac_cv_func_$ac_func=no"
12552 fi
12553 rm -f conftest*
12554 fi
12555
12556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12557   echo "$ac_t""yes" 1>&6
12558     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12559   cat >> confdefs.h <<EOF
12560 #define $ac_tr_func 1
12561 EOF
12562  
12563 else
12564   echo "$ac_t""no" 1>&6
12565 fi
12566 done
12567     
12568     fi
12569   fi
12570
12571   
12572   
12573   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
12574 echo "configure:12575: checking for ldexpf declaration" >&5
12575   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
12576     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
12577   echo $ac_n "(cached) $ac_c" 1>&6
12578 else
12579   
12580       
12581       ac_ext=C
12582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12583 ac_cpp='$CXXCPP $CPPFLAGS'
12584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12586 cross_compiling=$ac_cv_prog_cxx_cross
12587
12588       cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 #include <math.h>
12592 int main() {
12593  ldexpf(0, 0);
12594 ; return 0; }
12595 EOF
12596 if { (eval echo configure:12597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12597   rm -rf conftest*
12598   glibcpp_cv_func_ldexpf_use=yes
12599 else
12600   echo "configure: failed program was:" >&5
12601   cat conftest.$ac_ext >&5
12602   rm -rf conftest*
12603   glibcpp_cv_func_ldexpf_use=no
12604 fi
12605 rm -f conftest*
12606       ac_ext=c
12607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12608 ac_cpp='$CPP $CPPFLAGS'
12609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12611 cross_compiling=$ac_cv_prog_cc_cross
12612
12613     
12614 fi
12615
12616   fi
12617   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
12618
12619   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
12620     for ac_func in ldexpf
12621 do
12622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12623 echo "configure:12624: checking for $ac_func" >&5
12624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12625   echo $ac_n "(cached) $ac_c" 1>&6
12626 else
12627   cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630 /* System header to define __stub macros and hopefully few prototypes,
12631     which can conflict with char $ac_func(); below.  */
12632 #include <assert.h>
12633 /* Override any gcc2 internal prototype to avoid an error.  */
12634 /* We use char because int might match the return type of a gcc2
12635     builtin and then its argument prototype would still apply.  */
12636 char $ac_func();
12637
12638 int main() {
12639
12640 /* The GNU C library defines this for functions which it implements
12641     to always fail with ENOSYS.  Some functions are actually named
12642     something starting with __ and the normal name is an alias.  */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12644 choke me
12645 #else
12646 $ac_func();
12647 #endif
12648
12649 ; return 0; }
12650 EOF
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12652   rm -rf conftest*
12653   eval "ac_cv_func_$ac_func=yes"
12654 else
12655   echo "configure: failed program was:" >&5
12656   cat conftest.$ac_ext >&5
12657   rm -rf conftest*
12658   eval "ac_cv_func_$ac_func=no"
12659 fi
12660 rm -f conftest*
12661 fi
12662
12663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12664   echo "$ac_t""yes" 1>&6
12665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12666   cat >> confdefs.h <<EOF
12667 #define $ac_tr_func 1
12668 EOF
12669  
12670 else
12671   echo "$ac_t""no" 1>&6
12672 fi
12673 done
12674     
12675   else
12676     
12677   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
12678 echo "configure:12679: checking for _ldexpf declaration" >&5
12679   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
12680     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
12681   echo $ac_n "(cached) $ac_c" 1>&6
12682 else
12683   
12684       
12685       ac_ext=C
12686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12687 ac_cpp='$CXXCPP $CPPFLAGS'
12688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12690 cross_compiling=$ac_cv_prog_cxx_cross
12691
12692       cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 #include <math.h>
12696 int main() {
12697  _ldexpf(0, 0);
12698 ; return 0; }
12699 EOF
12700 if { (eval echo configure:12701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12701   rm -rf conftest*
12702   glibcpp_cv_func__ldexpf_use=yes
12703 else
12704   echo "configure: failed program was:" >&5
12705   cat conftest.$ac_ext >&5
12706   rm -rf conftest*
12707   glibcpp_cv_func__ldexpf_use=no
12708 fi
12709 rm -f conftest*
12710       ac_ext=c
12711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cc_cross
12716
12717     
12718 fi
12719
12720   fi
12721   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
12722
12723     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
12724       for ac_func in _ldexpf
12725 do
12726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12727 echo "configure:12728: checking for $ac_func" >&5
12728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12729   echo $ac_n "(cached) $ac_c" 1>&6
12730 else
12731   cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 /* System header to define __stub macros and hopefully few prototypes,
12735     which can conflict with char $ac_func(); below.  */
12736 #include <assert.h>
12737 /* Override any gcc2 internal prototype to avoid an error.  */
12738 /* We use char because int might match the return type of a gcc2
12739     builtin and then its argument prototype would still apply.  */
12740 char $ac_func();
12741
12742 int main() {
12743
12744 /* The GNU C library defines this for functions which it implements
12745     to always fail with ENOSYS.  Some functions are actually named
12746     something starting with __ and the normal name is an alias.  */
12747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12748 choke me
12749 #else
12750 $ac_func();
12751 #endif
12752
12753 ; return 0; }
12754 EOF
12755 if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12756   rm -rf conftest*
12757   eval "ac_cv_func_$ac_func=yes"
12758 else
12759   echo "configure: failed program was:" >&5
12760   cat conftest.$ac_ext >&5
12761   rm -rf conftest*
12762   eval "ac_cv_func_$ac_func=no"
12763 fi
12764 rm -f conftest*
12765 fi
12766
12767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12768   echo "$ac_t""yes" 1>&6
12769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12770   cat >> confdefs.h <<EOF
12771 #define $ac_tr_func 1
12772 EOF
12773  
12774 else
12775   echo "$ac_t""no" 1>&6
12776 fi
12777 done
12778     
12779     fi
12780   fi
12781
12782   
12783   
12784   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
12785 echo "configure:12786: checking for logf declaration" >&5
12786   if test x${glibcpp_cv_func_logf_use+set} != xset; then
12787     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
12788   echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790   
12791       
12792       ac_ext=C
12793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12794 ac_cpp='$CXXCPP $CPPFLAGS'
12795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12797 cross_compiling=$ac_cv_prog_cxx_cross
12798
12799       cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 #include <math.h>
12803                       #ifdef HAVE_IEEEFP_H
12804                       #include <ieeefp.h>
12805                       #endif
12806                      
12807 int main() {
12808  logf(0);
12809 ; return 0; }
12810 EOF
12811 if { (eval echo configure:12812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12812   rm -rf conftest*
12813   glibcpp_cv_func_logf_use=yes
12814 else
12815   echo "configure: failed program was:" >&5
12816   cat conftest.$ac_ext >&5
12817   rm -rf conftest*
12818   glibcpp_cv_func_logf_use=no
12819 fi
12820 rm -f conftest*
12821       ac_ext=c
12822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12826 cross_compiling=$ac_cv_prog_cc_cross
12827
12828     
12829 fi
12830
12831   fi
12832   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
12833
12834   if test x$glibcpp_cv_func_logf_use = x"yes"; then
12835     for ac_func in logf
12836 do
12837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12838 echo "configure:12839: checking for $ac_func" >&5
12839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12840   echo $ac_n "(cached) $ac_c" 1>&6
12841 else
12842   cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 /* System header to define __stub macros and hopefully few prototypes,
12846     which can conflict with char $ac_func(); below.  */
12847 #include <assert.h>
12848 /* Override any gcc2 internal prototype to avoid an error.  */
12849 /* We use char because int might match the return type of a gcc2
12850     builtin and then its argument prototype would still apply.  */
12851 char $ac_func();
12852
12853 int main() {
12854
12855 /* The GNU C library defines this for functions which it implements
12856     to always fail with ENOSYS.  Some functions are actually named
12857     something starting with __ and the normal name is an alias.  */
12858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859 choke me
12860 #else
12861 $ac_func();
12862 #endif
12863
12864 ; return 0; }
12865 EOF
12866 if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12867   rm -rf conftest*
12868   eval "ac_cv_func_$ac_func=yes"
12869 else
12870   echo "configure: failed program was:" >&5
12871   cat conftest.$ac_ext >&5
12872   rm -rf conftest*
12873   eval "ac_cv_func_$ac_func=no"
12874 fi
12875 rm -f conftest*
12876 fi
12877
12878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12879   echo "$ac_t""yes" 1>&6
12880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12881   cat >> confdefs.h <<EOF
12882 #define $ac_tr_func 1
12883 EOF
12884  
12885 else
12886   echo "$ac_t""no" 1>&6
12887 fi
12888 done
12889     
12890   else
12891     
12892   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12893 echo "configure:12894: checking for _logf declaration" >&5
12894   if test x${glibcpp_cv_func__logf_use+set} != xset; then
12895     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12896   echo $ac_n "(cached) $ac_c" 1>&6
12897 else
12898   
12899       
12900       ac_ext=C
12901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12902 ac_cpp='$CXXCPP $CPPFLAGS'
12903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12905 cross_compiling=$ac_cv_prog_cxx_cross
12906
12907       cat > conftest.$ac_ext <<EOF
12908 #line 12909 "configure"
12909 #include "confdefs.h"
12910 #include <math.h>
12911                       #ifdef HAVE_IEEEFP_H
12912                       #include <ieeefp.h>
12913                       #endif
12914                      
12915 int main() {
12916  _logf(0);
12917 ; return 0; }
12918 EOF
12919 if { (eval echo configure:12920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12920   rm -rf conftest*
12921   glibcpp_cv_func__logf_use=yes
12922 else
12923   echo "configure: failed program was:" >&5
12924   cat conftest.$ac_ext >&5
12925   rm -rf conftest*
12926   glibcpp_cv_func__logf_use=no
12927 fi
12928 rm -f conftest*
12929       ac_ext=c
12930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12934 cross_compiling=$ac_cv_prog_cc_cross
12935
12936     
12937 fi
12938
12939   fi
12940   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12941
12942     if test x$glibcpp_cv_func__logf_use = x"yes"; then
12943       for ac_func in _logf
12944 do
12945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12946 echo "configure:12947: checking for $ac_func" >&5
12947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12948   echo $ac_n "(cached) $ac_c" 1>&6
12949 else
12950   cat > conftest.$ac_ext <<EOF
12951 #line 12952 "configure"
12952 #include "confdefs.h"
12953 /* System header to define __stub macros and hopefully few prototypes,
12954     which can conflict with char $ac_func(); below.  */
12955 #include <assert.h>
12956 /* Override any gcc2 internal prototype to avoid an error.  */
12957 /* We use char because int might match the return type of a gcc2
12958     builtin and then its argument prototype would still apply.  */
12959 char $ac_func();
12960
12961 int main() {
12962
12963 /* The GNU C library defines this for functions which it implements
12964     to always fail with ENOSYS.  Some functions are actually named
12965     something starting with __ and the normal name is an alias.  */
12966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12967 choke me
12968 #else
12969 $ac_func();
12970 #endif
12971
12972 ; return 0; }
12973 EOF
12974 if { (eval echo configure:12975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12975   rm -rf conftest*
12976   eval "ac_cv_func_$ac_func=yes"
12977 else
12978   echo "configure: failed program was:" >&5
12979   cat conftest.$ac_ext >&5
12980   rm -rf conftest*
12981   eval "ac_cv_func_$ac_func=no"
12982 fi
12983 rm -f conftest*
12984 fi
12985
12986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12987   echo "$ac_t""yes" 1>&6
12988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12989   cat >> confdefs.h <<EOF
12990 #define $ac_tr_func 1
12991 EOF
12992  
12993 else
12994   echo "$ac_t""no" 1>&6
12995 fi
12996 done
12997     
12998     fi
12999   fi
13000
13001   
13002   
13003   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13004 echo "configure:13005: checking for log10f declaration" >&5
13005   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13006     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13007   echo $ac_n "(cached) $ac_c" 1>&6
13008 else
13009   
13010       
13011       ac_ext=C
13012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13013 ac_cpp='$CXXCPP $CPPFLAGS'
13014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13016 cross_compiling=$ac_cv_prog_cxx_cross
13017
13018       cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <math.h>
13022                       #ifdef HAVE_IEEEFP_H
13023                       #include <ieeefp.h>
13024                       #endif
13025                      
13026 int main() {
13027  log10f(0);
13028 ; return 0; }
13029 EOF
13030 if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13031   rm -rf conftest*
13032   glibcpp_cv_func_log10f_use=yes
13033 else
13034   echo "configure: failed program was:" >&5
13035   cat conftest.$ac_ext >&5
13036   rm -rf conftest*
13037   glibcpp_cv_func_log10f_use=no
13038 fi
13039 rm -f conftest*
13040       ac_ext=c
13041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13045 cross_compiling=$ac_cv_prog_cc_cross
13046
13047     
13048 fi
13049
13050   fi
13051   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13052
13053   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13054     for ac_func in log10f
13055 do
13056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13057 echo "configure:13058: checking for $ac_func" >&5
13058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13059   echo $ac_n "(cached) $ac_c" 1>&6
13060 else
13061   cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* System header to define __stub macros and hopefully few prototypes,
13065     which can conflict with char $ac_func(); below.  */
13066 #include <assert.h>
13067 /* Override any gcc2 internal prototype to avoid an error.  */
13068 /* We use char because int might match the return type of a gcc2
13069     builtin and then its argument prototype would still apply.  */
13070 char $ac_func();
13071
13072 int main() {
13073
13074 /* The GNU C library defines this for functions which it implements
13075     to always fail with ENOSYS.  Some functions are actually named
13076     something starting with __ and the normal name is an alias.  */
13077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13078 choke me
13079 #else
13080 $ac_func();
13081 #endif
13082
13083 ; return 0; }
13084 EOF
13085 if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13086   rm -rf conftest*
13087   eval "ac_cv_func_$ac_func=yes"
13088 else
13089   echo "configure: failed program was:" >&5
13090   cat conftest.$ac_ext >&5
13091   rm -rf conftest*
13092   eval "ac_cv_func_$ac_func=no"
13093 fi
13094 rm -f conftest*
13095 fi
13096
13097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13098   echo "$ac_t""yes" 1>&6
13099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13100   cat >> confdefs.h <<EOF
13101 #define $ac_tr_func 1
13102 EOF
13103  
13104 else
13105   echo "$ac_t""no" 1>&6
13106 fi
13107 done
13108     
13109   else
13110     
13111   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13112 echo "configure:13113: checking for _log10f declaration" >&5
13113   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13114     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13115   echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117   
13118       
13119       ac_ext=C
13120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121 ac_cpp='$CXXCPP $CPPFLAGS'
13122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124 cross_compiling=$ac_cv_prog_cxx_cross
13125
13126       cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 #include <math.h>
13130                       #ifdef HAVE_IEEEFP_H
13131                       #include <ieeefp.h>
13132                       #endif
13133                      
13134 int main() {
13135  _log10f(0);
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13139   rm -rf conftest*
13140   glibcpp_cv_func__log10f_use=yes
13141 else
13142   echo "configure: failed program was:" >&5
13143   cat conftest.$ac_ext >&5
13144   rm -rf conftest*
13145   glibcpp_cv_func__log10f_use=no
13146 fi
13147 rm -f conftest*
13148       ac_ext=c
13149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13153 cross_compiling=$ac_cv_prog_cc_cross
13154
13155     
13156 fi
13157
13158   fi
13159   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
13160
13161     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
13162       for ac_func in _log10f
13163 do
13164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13165 echo "configure:13166: checking for $ac_func" >&5
13166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13167   echo $ac_n "(cached) $ac_c" 1>&6
13168 else
13169   cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* System header to define __stub macros and hopefully few prototypes,
13173     which can conflict with char $ac_func(); below.  */
13174 #include <assert.h>
13175 /* Override any gcc2 internal prototype to avoid an error.  */
13176 /* We use char because int might match the return type of a gcc2
13177     builtin and then its argument prototype would still apply.  */
13178 char $ac_func();
13179
13180 int main() {
13181
13182 /* The GNU C library defines this for functions which it implements
13183     to always fail with ENOSYS.  Some functions are actually named
13184     something starting with __ and the normal name is an alias.  */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 choke me
13187 #else
13188 $ac_func();
13189 #endif
13190
13191 ; return 0; }
13192 EOF
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194   rm -rf conftest*
13195   eval "ac_cv_func_$ac_func=yes"
13196 else
13197   echo "configure: failed program was:" >&5
13198   cat conftest.$ac_ext >&5
13199   rm -rf conftest*
13200   eval "ac_cv_func_$ac_func=no"
13201 fi
13202 rm -f conftest*
13203 fi
13204
13205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13206   echo "$ac_t""yes" 1>&6
13207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13208   cat >> confdefs.h <<EOF
13209 #define $ac_tr_func 1
13210 EOF
13211  
13212 else
13213   echo "$ac_t""no" 1>&6
13214 fi
13215 done
13216     
13217     fi
13218   fi
13219
13220   
13221   
13222   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
13223 echo "configure:13224: checking for modff declaration" >&5
13224   if test x${glibcpp_cv_func_modff_use+set} != xset; then
13225     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
13226   echo $ac_n "(cached) $ac_c" 1>&6
13227 else
13228   
13229       
13230       ac_ext=C
13231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13232 ac_cpp='$CXXCPP $CPPFLAGS'
13233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13235 cross_compiling=$ac_cv_prog_cxx_cross
13236
13237       cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 #include <math.h>
13241 int main() {
13242  modff(0, 0);
13243 ; return 0; }
13244 EOF
13245 if { (eval echo configure:13246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13246   rm -rf conftest*
13247   glibcpp_cv_func_modff_use=yes
13248 else
13249   echo "configure: failed program was:" >&5
13250   cat conftest.$ac_ext >&5
13251   rm -rf conftest*
13252   glibcpp_cv_func_modff_use=no
13253 fi
13254 rm -f conftest*
13255       ac_ext=c
13256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13257 ac_cpp='$CPP $CPPFLAGS'
13258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13260 cross_compiling=$ac_cv_prog_cc_cross
13261
13262     
13263 fi
13264
13265   fi
13266   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
13267
13268   if test x$glibcpp_cv_func_modff_use = x"yes"; then
13269     for ac_func in modff
13270 do
13271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13272 echo "configure:13273: checking for $ac_func" >&5
13273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274   echo $ac_n "(cached) $ac_c" 1>&6
13275 else
13276   cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280     which can conflict with char $ac_func(); below.  */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error.  */
13283 /* We use char because int might match the return type of a gcc2
13284     builtin and then its argument prototype would still apply.  */
13285 char $ac_func();
13286
13287 int main() {
13288
13289 /* The GNU C library defines this for functions which it implements
13290     to always fail with ENOSYS.  Some functions are actually named
13291     something starting with __ and the normal name is an alias.  */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293 choke me
13294 #else
13295 $ac_func();
13296 #endif
13297
13298 ; return 0; }
13299 EOF
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301   rm -rf conftest*
13302   eval "ac_cv_func_$ac_func=yes"
13303 else
13304   echo "configure: failed program was:" >&5
13305   cat conftest.$ac_ext >&5
13306   rm -rf conftest*
13307   eval "ac_cv_func_$ac_func=no"
13308 fi
13309 rm -f conftest*
13310 fi
13311
13312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313   echo "$ac_t""yes" 1>&6
13314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315   cat >> confdefs.h <<EOF
13316 #define $ac_tr_func 1
13317 EOF
13318  
13319 else
13320   echo "$ac_t""no" 1>&6
13321 fi
13322 done
13323     
13324   else
13325     
13326   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
13327 echo "configure:13328: checking for _modff declaration" >&5
13328   if test x${glibcpp_cv_func__modff_use+set} != xset; then
13329     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
13330   echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332   
13333       
13334       ac_ext=C
13335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13339 cross_compiling=$ac_cv_prog_cxx_cross
13340
13341       cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <math.h>
13345 int main() {
13346  _modff(0, 0);
13347 ; return 0; }
13348 EOF
13349 if { (eval echo configure:13350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13350   rm -rf conftest*
13351   glibcpp_cv_func__modff_use=yes
13352 else
13353   echo "configure: failed program was:" >&5
13354   cat conftest.$ac_ext >&5
13355   rm -rf conftest*
13356   glibcpp_cv_func__modff_use=no
13357 fi
13358 rm -f conftest*
13359       ac_ext=c
13360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13361 ac_cpp='$CPP $CPPFLAGS'
13362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13364 cross_compiling=$ac_cv_prog_cc_cross
13365
13366     
13367 fi
13368
13369   fi
13370   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
13371
13372     if test x$glibcpp_cv_func__modff_use = x"yes"; then
13373       for ac_func in _modff
13374 do
13375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13376 echo "configure:13377: checking for $ac_func" >&5
13377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13378   echo $ac_n "(cached) $ac_c" 1>&6
13379 else
13380   cat > conftest.$ac_ext <<EOF
13381 #line 13382 "configure"
13382 #include "confdefs.h"
13383 /* System header to define __stub macros and hopefully few prototypes,
13384     which can conflict with char $ac_func(); below.  */
13385 #include <assert.h>
13386 /* Override any gcc2 internal prototype to avoid an error.  */
13387 /* We use char because int might match the return type of a gcc2
13388     builtin and then its argument prototype would still apply.  */
13389 char $ac_func();
13390
13391 int main() {
13392
13393 /* The GNU C library defines this for functions which it implements
13394     to always fail with ENOSYS.  Some functions are actually named
13395     something starting with __ and the normal name is an alias.  */
13396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13397 choke me
13398 #else
13399 $ac_func();
13400 #endif
13401
13402 ; return 0; }
13403 EOF
13404 if { (eval echo configure:13405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13405   rm -rf conftest*
13406   eval "ac_cv_func_$ac_func=yes"
13407 else
13408   echo "configure: failed program was:" >&5
13409   cat conftest.$ac_ext >&5
13410   rm -rf conftest*
13411   eval "ac_cv_func_$ac_func=no"
13412 fi
13413 rm -f conftest*
13414 fi
13415
13416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13417   echo "$ac_t""yes" 1>&6
13418     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13419   cat >> confdefs.h <<EOF
13420 #define $ac_tr_func 1
13421 EOF
13422  
13423 else
13424   echo "$ac_t""no" 1>&6
13425 fi
13426 done
13427     
13428     fi
13429   fi
13430
13431   
13432   
13433   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
13434 echo "configure:13435: checking for powf declaration" >&5
13435   if test x${glibcpp_cv_func_powf_use+set} != xset; then
13436     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
13437   echo $ac_n "(cached) $ac_c" 1>&6
13438 else
13439   
13440       
13441       ac_ext=C
13442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13443 ac_cpp='$CXXCPP $CPPFLAGS'
13444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13446 cross_compiling=$ac_cv_prog_cxx_cross
13447
13448       cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 #include <math.h>
13452 int main() {
13453  powf(0, 0);
13454 ; return 0; }
13455 EOF
13456 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457   rm -rf conftest*
13458   glibcpp_cv_func_powf_use=yes
13459 else
13460   echo "configure: failed program was:" >&5
13461   cat conftest.$ac_ext >&5
13462   rm -rf conftest*
13463   glibcpp_cv_func_powf_use=no
13464 fi
13465 rm -f conftest*
13466       ac_ext=c
13467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13468 ac_cpp='$CPP $CPPFLAGS'
13469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13471 cross_compiling=$ac_cv_prog_cc_cross
13472
13473     
13474 fi
13475
13476   fi
13477   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
13478
13479   if test x$glibcpp_cv_func_powf_use = x"yes"; then
13480     for ac_func in powf
13481 do
13482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13483 echo "configure:13484: checking for $ac_func" >&5
13484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13485   echo $ac_n "(cached) $ac_c" 1>&6
13486 else
13487   cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 /* System header to define __stub macros and hopefully few prototypes,
13491     which can conflict with char $ac_func(); below.  */
13492 #include <assert.h>
13493 /* Override any gcc2 internal prototype to avoid an error.  */
13494 /* We use char because int might match the return type of a gcc2
13495     builtin and then its argument prototype would still apply.  */
13496 char $ac_func();
13497
13498 int main() {
13499
13500 /* The GNU C library defines this for functions which it implements
13501     to always fail with ENOSYS.  Some functions are actually named
13502     something starting with __ and the normal name is an alias.  */
13503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13504 choke me
13505 #else
13506 $ac_func();
13507 #endif
13508
13509 ; return 0; }
13510 EOF
13511 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13512   rm -rf conftest*
13513   eval "ac_cv_func_$ac_func=yes"
13514 else
13515   echo "configure: failed program was:" >&5
13516   cat conftest.$ac_ext >&5
13517   rm -rf conftest*
13518   eval "ac_cv_func_$ac_func=no"
13519 fi
13520 rm -f conftest*
13521 fi
13522
13523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13524   echo "$ac_t""yes" 1>&6
13525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13526   cat >> confdefs.h <<EOF
13527 #define $ac_tr_func 1
13528 EOF
13529  
13530 else
13531   echo "$ac_t""no" 1>&6
13532 fi
13533 done
13534     
13535   else
13536     
13537   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
13538 echo "configure:13539: checking for _powf declaration" >&5
13539   if test x${glibcpp_cv_func__powf_use+set} != xset; then
13540     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
13541   echo $ac_n "(cached) $ac_c" 1>&6
13542 else
13543   
13544       
13545       ac_ext=C
13546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13547 ac_cpp='$CXXCPP $CPPFLAGS'
13548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13550 cross_compiling=$ac_cv_prog_cxx_cross
13551
13552       cat > conftest.$ac_ext <<EOF
13553 #line 13554 "configure"
13554 #include "confdefs.h"
13555 #include <math.h>
13556 int main() {
13557  _powf(0, 0);
13558 ; return 0; }
13559 EOF
13560 if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13561   rm -rf conftest*
13562   glibcpp_cv_func__powf_use=yes
13563 else
13564   echo "configure: failed program was:" >&5
13565   cat conftest.$ac_ext >&5
13566   rm -rf conftest*
13567   glibcpp_cv_func__powf_use=no
13568 fi
13569 rm -f conftest*
13570       ac_ext=c
13571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13572 ac_cpp='$CPP $CPPFLAGS'
13573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13575 cross_compiling=$ac_cv_prog_cc_cross
13576
13577     
13578 fi
13579
13580   fi
13581   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
13582
13583     if test x$glibcpp_cv_func__powf_use = x"yes"; then
13584       for ac_func in _powf
13585 do
13586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13587 echo "configure:13588: checking for $ac_func" >&5
13588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13589   echo $ac_n "(cached) $ac_c" 1>&6
13590 else
13591   cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594 /* System header to define __stub macros and hopefully few prototypes,
13595     which can conflict with char $ac_func(); below.  */
13596 #include <assert.h>
13597 /* Override any gcc2 internal prototype to avoid an error.  */
13598 /* We use char because int might match the return type of a gcc2
13599     builtin and then its argument prototype would still apply.  */
13600 char $ac_func();
13601
13602 int main() {
13603
13604 /* The GNU C library defines this for functions which it implements
13605     to always fail with ENOSYS.  Some functions are actually named
13606     something starting with __ and the normal name is an alias.  */
13607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13608 choke me
13609 #else
13610 $ac_func();
13611 #endif
13612
13613 ; return 0; }
13614 EOF
13615 if { (eval echo configure:13616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616   rm -rf conftest*
13617   eval "ac_cv_func_$ac_func=yes"
13618 else
13619   echo "configure: failed program was:" >&5
13620   cat conftest.$ac_ext >&5
13621   rm -rf conftest*
13622   eval "ac_cv_func_$ac_func=no"
13623 fi
13624 rm -f conftest*
13625 fi
13626
13627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13628   echo "$ac_t""yes" 1>&6
13629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13630   cat >> confdefs.h <<EOF
13631 #define $ac_tr_func 1
13632 EOF
13633  
13634 else
13635   echo "$ac_t""no" 1>&6
13636 fi
13637 done
13638     
13639     fi
13640   fi
13641
13642   
13643   
13644   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
13645 echo "configure:13646: checking for sqrtf declaration" >&5
13646   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
13647     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
13648   echo $ac_n "(cached) $ac_c" 1>&6
13649 else
13650   
13651       
13652       ac_ext=C
13653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13654 ac_cpp='$CXXCPP $CPPFLAGS'
13655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13657 cross_compiling=$ac_cv_prog_cxx_cross
13658
13659       cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 #include <math.h>
13663                       #ifdef HAVE_IEEEFP_H
13664                       #include <ieeefp.h>
13665                       #endif
13666                      
13667 int main() {
13668  sqrtf(0);
13669 ; return 0; }
13670 EOF
13671 if { (eval echo configure:13672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13672   rm -rf conftest*
13673   glibcpp_cv_func_sqrtf_use=yes
13674 else
13675   echo "configure: failed program was:" >&5
13676   cat conftest.$ac_ext >&5
13677   rm -rf conftest*
13678   glibcpp_cv_func_sqrtf_use=no
13679 fi
13680 rm -f conftest*
13681       ac_ext=c
13682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13683 ac_cpp='$CPP $CPPFLAGS'
13684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13686 cross_compiling=$ac_cv_prog_cc_cross
13687
13688     
13689 fi
13690
13691   fi
13692   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
13693
13694   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
13695     for ac_func in sqrtf
13696 do
13697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13698 echo "configure:13699: checking for $ac_func" >&5
13699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13700   echo $ac_n "(cached) $ac_c" 1>&6
13701 else
13702   cat > conftest.$ac_ext <<EOF
13703 #line 13704 "configure"
13704 #include "confdefs.h"
13705 /* System header to define __stub macros and hopefully few prototypes,
13706     which can conflict with char $ac_func(); below.  */
13707 #include <assert.h>
13708 /* Override any gcc2 internal prototype to avoid an error.  */
13709 /* We use char because int might match the return type of a gcc2
13710     builtin and then its argument prototype would still apply.  */
13711 char $ac_func();
13712
13713 int main() {
13714
13715 /* The GNU C library defines this for functions which it implements
13716     to always fail with ENOSYS.  Some functions are actually named
13717     something starting with __ and the normal name is an alias.  */
13718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13719 choke me
13720 #else
13721 $ac_func();
13722 #endif
13723
13724 ; return 0; }
13725 EOF
13726 if { (eval echo configure:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13727   rm -rf conftest*
13728   eval "ac_cv_func_$ac_func=yes"
13729 else
13730   echo "configure: failed program was:" >&5
13731   cat conftest.$ac_ext >&5
13732   rm -rf conftest*
13733   eval "ac_cv_func_$ac_func=no"
13734 fi
13735 rm -f conftest*
13736 fi
13737
13738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13739   echo "$ac_t""yes" 1>&6
13740     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13741   cat >> confdefs.h <<EOF
13742 #define $ac_tr_func 1
13743 EOF
13744  
13745 else
13746   echo "$ac_t""no" 1>&6
13747 fi
13748 done
13749     
13750   else
13751     
13752   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
13753 echo "configure:13754: checking for _sqrtf declaration" >&5
13754   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
13755     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
13756   echo $ac_n "(cached) $ac_c" 1>&6
13757 else
13758   
13759       
13760       ac_ext=C
13761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13762 ac_cpp='$CXXCPP $CPPFLAGS'
13763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13765 cross_compiling=$ac_cv_prog_cxx_cross
13766
13767       cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13770 #include <math.h>
13771                       #ifdef HAVE_IEEEFP_H
13772                       #include <ieeefp.h>
13773                       #endif
13774                      
13775 int main() {
13776  _sqrtf(0);
13777 ; return 0; }
13778 EOF
13779 if { (eval echo configure:13780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13780   rm -rf conftest*
13781   glibcpp_cv_func__sqrtf_use=yes
13782 else
13783   echo "configure: failed program was:" >&5
13784   cat conftest.$ac_ext >&5
13785   rm -rf conftest*
13786   glibcpp_cv_func__sqrtf_use=no
13787 fi
13788 rm -f conftest*
13789       ac_ext=c
13790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13791 ac_cpp='$CPP $CPPFLAGS'
13792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13794 cross_compiling=$ac_cv_prog_cc_cross
13795
13796     
13797 fi
13798
13799   fi
13800   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
13801
13802     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
13803       for ac_func in _sqrtf
13804 do
13805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13806 echo "configure:13807: checking for $ac_func" >&5
13807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13808   echo $ac_n "(cached) $ac_c" 1>&6
13809 else
13810   cat > conftest.$ac_ext <<EOF
13811 #line 13812 "configure"
13812 #include "confdefs.h"
13813 /* System header to define __stub macros and hopefully few prototypes,
13814     which can conflict with char $ac_func(); below.  */
13815 #include <assert.h>
13816 /* Override any gcc2 internal prototype to avoid an error.  */
13817 /* We use char because int might match the return type of a gcc2
13818     builtin and then its argument prototype would still apply.  */
13819 char $ac_func();
13820
13821 int main() {
13822
13823 /* The GNU C library defines this for functions which it implements
13824     to always fail with ENOSYS.  Some functions are actually named
13825     something starting with __ and the normal name is an alias.  */
13826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13827 choke me
13828 #else
13829 $ac_func();
13830 #endif
13831
13832 ; return 0; }
13833 EOF
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13835   rm -rf conftest*
13836   eval "ac_cv_func_$ac_func=yes"
13837 else
13838   echo "configure: failed program was:" >&5
13839   cat conftest.$ac_ext >&5
13840   rm -rf conftest*
13841   eval "ac_cv_func_$ac_func=no"
13842 fi
13843 rm -f conftest*
13844 fi
13845
13846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13847   echo "$ac_t""yes" 1>&6
13848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13849   cat >> confdefs.h <<EOF
13850 #define $ac_tr_func 1
13851 EOF
13852  
13853 else
13854   echo "$ac_t""no" 1>&6
13855 fi
13856 done
13857     
13858     fi
13859   fi
13860
13861   
13862   
13863   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
13864 echo "configure:13865: checking for sincosf declaration" >&5
13865   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
13866     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
13867   echo $ac_n "(cached) $ac_c" 1>&6
13868 else
13869   
13870       
13871       ac_ext=C
13872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13873 ac_cpp='$CXXCPP $CPPFLAGS'
13874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13876 cross_compiling=$ac_cv_prog_cxx_cross
13877
13878       cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 #include <math.h>
13882 int main() {
13883  sincosf(0, 0, 0);
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13887   rm -rf conftest*
13888   glibcpp_cv_func_sincosf_use=yes
13889 else
13890   echo "configure: failed program was:" >&5
13891   cat conftest.$ac_ext >&5
13892   rm -rf conftest*
13893   glibcpp_cv_func_sincosf_use=no
13894 fi
13895 rm -f conftest*
13896       ac_ext=c
13897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13898 ac_cpp='$CPP $CPPFLAGS'
13899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13901 cross_compiling=$ac_cv_prog_cc_cross
13902
13903     
13904 fi
13905
13906   fi
13907   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13908
13909   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13910     for ac_func in sincosf
13911 do
13912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13913 echo "configure:13914: checking for $ac_func" >&5
13914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13915   echo $ac_n "(cached) $ac_c" 1>&6
13916 else
13917   cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 /* System header to define __stub macros and hopefully few prototypes,
13921     which can conflict with char $ac_func(); below.  */
13922 #include <assert.h>
13923 /* Override any gcc2 internal prototype to avoid an error.  */
13924 /* We use char because int might match the return type of a gcc2
13925     builtin and then its argument prototype would still apply.  */
13926 char $ac_func();
13927
13928 int main() {
13929
13930 /* The GNU C library defines this for functions which it implements
13931     to always fail with ENOSYS.  Some functions are actually named
13932     something starting with __ and the normal name is an alias.  */
13933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13934 choke me
13935 #else
13936 $ac_func();
13937 #endif
13938
13939 ; return 0; }
13940 EOF
13941 if { (eval echo configure:13942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13942   rm -rf conftest*
13943   eval "ac_cv_func_$ac_func=yes"
13944 else
13945   echo "configure: failed program was:" >&5
13946   cat conftest.$ac_ext >&5
13947   rm -rf conftest*
13948   eval "ac_cv_func_$ac_func=no"
13949 fi
13950 rm -f conftest*
13951 fi
13952
13953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13954   echo "$ac_t""yes" 1>&6
13955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13956   cat >> confdefs.h <<EOF
13957 #define $ac_tr_func 1
13958 EOF
13959  
13960 else
13961   echo "$ac_t""no" 1>&6
13962 fi
13963 done
13964     
13965   else
13966     
13967   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13968 echo "configure:13969: checking for _sincosf declaration" >&5
13969   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13970     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13971   echo $ac_n "(cached) $ac_c" 1>&6
13972 else
13973   
13974       
13975       ac_ext=C
13976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13977 ac_cpp='$CXXCPP $CPPFLAGS'
13978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13980 cross_compiling=$ac_cv_prog_cxx_cross
13981
13982       cat > conftest.$ac_ext <<EOF
13983 #line 13984 "configure"
13984 #include "confdefs.h"
13985 #include <math.h>
13986 int main() {
13987  _sincosf(0, 0, 0);
13988 ; return 0; }
13989 EOF
13990 if { (eval echo configure:13991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13991   rm -rf conftest*
13992   glibcpp_cv_func__sincosf_use=yes
13993 else
13994   echo "configure: failed program was:" >&5
13995   cat conftest.$ac_ext >&5
13996   rm -rf conftest*
13997   glibcpp_cv_func__sincosf_use=no
13998 fi
13999 rm -f conftest*
14000       ac_ext=c
14001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14005 cross_compiling=$ac_cv_prog_cc_cross
14006
14007     
14008 fi
14009
14010   fi
14011   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14012
14013     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14014       for ac_func in _sincosf
14015 do
14016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14017 echo "configure:14018: checking for $ac_func" >&5
14018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14019   echo $ac_n "(cached) $ac_c" 1>&6
14020 else
14021   cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 /* System header to define __stub macros and hopefully few prototypes,
14025     which can conflict with char $ac_func(); below.  */
14026 #include <assert.h>
14027 /* Override any gcc2 internal prototype to avoid an error.  */
14028 /* We use char because int might match the return type of a gcc2
14029     builtin and then its argument prototype would still apply.  */
14030 char $ac_func();
14031
14032 int main() {
14033
14034 /* The GNU C library defines this for functions which it implements
14035     to always fail with ENOSYS.  Some functions are actually named
14036     something starting with __ and the normal name is an alias.  */
14037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14038 choke me
14039 #else
14040 $ac_func();
14041 #endif
14042
14043 ; return 0; }
14044 EOF
14045 if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14046   rm -rf conftest*
14047   eval "ac_cv_func_$ac_func=yes"
14048 else
14049   echo "configure: failed program was:" >&5
14050   cat conftest.$ac_ext >&5
14051   rm -rf conftest*
14052   eval "ac_cv_func_$ac_func=no"
14053 fi
14054 rm -f conftest*
14055 fi
14056
14057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14058   echo "$ac_t""yes" 1>&6
14059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14060   cat >> confdefs.h <<EOF
14061 #define $ac_tr_func 1
14062 EOF
14063  
14064 else
14065   echo "$ac_t""no" 1>&6
14066 fi
14067 done
14068     
14069     fi
14070   fi
14071
14072   
14073   
14074   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14075 echo "configure:14076: checking for finitef declaration" >&5
14076   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14077     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14078   echo $ac_n "(cached) $ac_c" 1>&6
14079 else
14080   
14081       
14082       ac_ext=C
14083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14084 ac_cpp='$CXXCPP $CPPFLAGS'
14085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14087 cross_compiling=$ac_cv_prog_cxx_cross
14088
14089       cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 #include <math.h>
14093                       #ifdef HAVE_IEEEFP_H
14094                       #include <ieeefp.h>
14095                       #endif
14096                      
14097 int main() {
14098  finitef(0);
14099 ; return 0; }
14100 EOF
14101 if { (eval echo configure:14102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14102   rm -rf conftest*
14103   glibcpp_cv_func_finitef_use=yes
14104 else
14105   echo "configure: failed program was:" >&5
14106   cat conftest.$ac_ext >&5
14107   rm -rf conftest*
14108   glibcpp_cv_func_finitef_use=no
14109 fi
14110 rm -f conftest*
14111       ac_ext=c
14112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14116 cross_compiling=$ac_cv_prog_cc_cross
14117
14118     
14119 fi
14120
14121   fi
14122   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14123
14124   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14125     for ac_func in finitef
14126 do
14127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14128 echo "configure:14129: checking for $ac_func" >&5
14129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14130   echo $ac_n "(cached) $ac_c" 1>&6
14131 else
14132   cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 /* System header to define __stub macros and hopefully few prototypes,
14136     which can conflict with char $ac_func(); below.  */
14137 #include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error.  */
14139 /* We use char because int might match the return type of a gcc2
14140     builtin and then its argument prototype would still apply.  */
14141 char $ac_func();
14142
14143 int main() {
14144
14145 /* The GNU C library defines this for functions which it implements
14146     to always fail with ENOSYS.  Some functions are actually named
14147     something starting with __ and the normal name is an alias.  */
14148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149 choke me
14150 #else
14151 $ac_func();
14152 #endif
14153
14154 ; return 0; }
14155 EOF
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14157   rm -rf conftest*
14158   eval "ac_cv_func_$ac_func=yes"
14159 else
14160   echo "configure: failed program was:" >&5
14161   cat conftest.$ac_ext >&5
14162   rm -rf conftest*
14163   eval "ac_cv_func_$ac_func=no"
14164 fi
14165 rm -f conftest*
14166 fi
14167
14168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14169   echo "$ac_t""yes" 1>&6
14170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14171   cat >> confdefs.h <<EOF
14172 #define $ac_tr_func 1
14173 EOF
14174  
14175 else
14176   echo "$ac_t""no" 1>&6
14177 fi
14178 done
14179     
14180   else
14181     
14182   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
14183 echo "configure:14184: checking for _finitef declaration" >&5
14184   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
14185     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
14186   echo $ac_n "(cached) $ac_c" 1>&6
14187 else
14188   
14189       
14190       ac_ext=C
14191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14192 ac_cpp='$CXXCPP $CPPFLAGS'
14193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14195 cross_compiling=$ac_cv_prog_cxx_cross
14196
14197       cat > conftest.$ac_ext <<EOF
14198 #line 14199 "configure"
14199 #include "confdefs.h"
14200 #include <math.h>
14201                       #ifdef HAVE_IEEEFP_H
14202                       #include <ieeefp.h>
14203                       #endif
14204                      
14205 int main() {
14206  _finitef(0);
14207 ; return 0; }
14208 EOF
14209 if { (eval echo configure:14210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14210   rm -rf conftest*
14211   glibcpp_cv_func__finitef_use=yes
14212 else
14213   echo "configure: failed program was:" >&5
14214   cat conftest.$ac_ext >&5
14215   rm -rf conftest*
14216   glibcpp_cv_func__finitef_use=no
14217 fi
14218 rm -f conftest*
14219       ac_ext=c
14220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14221 ac_cpp='$CPP $CPPFLAGS'
14222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14224 cross_compiling=$ac_cv_prog_cc_cross
14225
14226     
14227 fi
14228
14229   fi
14230   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
14231
14232     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
14233       for ac_func in _finitef
14234 do
14235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14236 echo "configure:14237: checking for $ac_func" >&5
14237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14238   echo $ac_n "(cached) $ac_c" 1>&6
14239 else
14240   cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14243 /* System header to define __stub macros and hopefully few prototypes,
14244     which can conflict with char $ac_func(); below.  */
14245 #include <assert.h>
14246 /* Override any gcc2 internal prototype to avoid an error.  */
14247 /* We use char because int might match the return type of a gcc2
14248     builtin and then its argument prototype would still apply.  */
14249 char $ac_func();
14250
14251 int main() {
14252
14253 /* The GNU C library defines this for functions which it implements
14254     to always fail with ENOSYS.  Some functions are actually named
14255     something starting with __ and the normal name is an alias.  */
14256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14257 choke me
14258 #else
14259 $ac_func();
14260 #endif
14261
14262 ; return 0; }
14263 EOF
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265   rm -rf conftest*
14266   eval "ac_cv_func_$ac_func=yes"
14267 else
14268   echo "configure: failed program was:" >&5
14269   cat conftest.$ac_ext >&5
14270   rm -rf conftest*
14271   eval "ac_cv_func_$ac_func=no"
14272 fi
14273 rm -f conftest*
14274 fi
14275
14276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14277   echo "$ac_t""yes" 1>&6
14278     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14279   cat >> confdefs.h <<EOF
14280 #define $ac_tr_func 1
14281 EOF
14282  
14283 else
14284   echo "$ac_t""no" 1>&6
14285 fi
14286 done
14287     
14288     fi
14289   fi
14290
14291
14292     
14293   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
14294 echo "configure:14295: checking for long double trig functions" >&5
14295   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
14296   echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14298   
14299     
14300     ac_ext=C
14301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14302 ac_cpp='$CXXCPP $CPPFLAGS'
14303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14305 cross_compiling=$ac_cv_prog_cxx_cross
14306
14307     cat > conftest.$ac_ext <<EOF
14308 #line 14309 "configure"
14309 #include "confdefs.h"
14310 #include <math.h>
14311 int main() {
14312  `for x in acosl asinl atanl \
14313                                           cosl sinl tanl \
14314                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
14315 ; return 0; }
14316 EOF
14317 if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14318   rm -rf conftest*
14319   glibcpp_cv_func_long_double_trig_use=yes
14320 else
14321   echo "configure: failed program was:" >&5
14322   cat conftest.$ac_ext >&5
14323   rm -rf conftest*
14324   glibcpp_cv_func_long_double_trig_use=no
14325 fi
14326 rm -f conftest*
14327     ac_ext=c
14328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14332 cross_compiling=$ac_cv_prog_cc_cross
14333
14334 fi
14335
14336   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
14337   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
14338     for ac_func in acosl asinl atanl \
14339                                           cosl sinl tanl \
14340                                           coshl sinhl tanhl
14341 do
14342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14343 echo "configure:14344: checking for $ac_func" >&5
14344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14345   echo $ac_n "(cached) $ac_c" 1>&6
14346 else
14347   cat > conftest.$ac_ext <<EOF
14348 #line 14349 "configure"
14349 #include "confdefs.h"
14350 /* System header to define __stub macros and hopefully few prototypes,
14351     which can conflict with char $ac_func(); below.  */
14352 #include <assert.h>
14353 /* Override any gcc2 internal prototype to avoid an error.  */
14354 /* We use char because int might match the return type of a gcc2
14355     builtin and then its argument prototype would still apply.  */
14356 char $ac_func();
14357
14358 int main() {
14359
14360 /* The GNU C library defines this for functions which it implements
14361     to always fail with ENOSYS.  Some functions are actually named
14362     something starting with __ and the normal name is an alias.  */
14363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14364 choke me
14365 #else
14366 $ac_func();
14367 #endif
14368
14369 ; return 0; }
14370 EOF
14371 if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14372   rm -rf conftest*
14373   eval "ac_cv_func_$ac_func=yes"
14374 else
14375   echo "configure: failed program was:" >&5
14376   cat conftest.$ac_ext >&5
14377   rm -rf conftest*
14378   eval "ac_cv_func_$ac_func=no"
14379 fi
14380 rm -f conftest*
14381 fi
14382
14383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14384   echo "$ac_t""yes" 1>&6
14385     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14386   cat >> confdefs.h <<EOF
14387 #define $ac_tr_func 1
14388 EOF
14389  
14390 else
14391   echo "$ac_t""no" 1>&6
14392 fi
14393 done
14394
14395   fi
14396
14397   
14398   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
14399 echo "configure:14400: checking for long double round functions" >&5
14400   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
14401   echo $ac_n "(cached) $ac_c" 1>&6
14402 else
14403   
14404     
14405     ac_ext=C
14406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14407 ac_cpp='$CXXCPP $CPPFLAGS'
14408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14410 cross_compiling=$ac_cv_prog_cxx_cross
14411
14412     cat > conftest.$ac_ext <<EOF
14413 #line 14414 "configure"
14414 #include "confdefs.h"
14415 #include <math.h>
14416 int main() {
14417  `for x in ceill floorl; do echo "$x (0);"; done` 
14418 ; return 0; }
14419 EOF
14420 if { (eval echo configure:14421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14421   rm -rf conftest*
14422   glibcpp_cv_func_long_double_round_use=yes
14423 else
14424   echo "configure: failed program was:" >&5
14425   cat conftest.$ac_ext >&5
14426   rm -rf conftest*
14427   glibcpp_cv_func_long_double_round_use=no
14428 fi
14429 rm -f conftest*
14430     ac_ext=c
14431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14432 ac_cpp='$CPP $CPPFLAGS'
14433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14435 cross_compiling=$ac_cv_prog_cc_cross
14436
14437 fi
14438
14439   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
14440   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
14441     for ac_func in ceill floorl
14442 do
14443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14444 echo "configure:14445: checking for $ac_func" >&5
14445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14446   echo $ac_n "(cached) $ac_c" 1>&6
14447 else
14448   cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* System header to define __stub macros and hopefully few prototypes,
14452     which can conflict with char $ac_func(); below.  */
14453 #include <assert.h>
14454 /* Override any gcc2 internal prototype to avoid an error.  */
14455 /* We use char because int might match the return type of a gcc2
14456     builtin and then its argument prototype would still apply.  */
14457 char $ac_func();
14458
14459 int main() {
14460
14461 /* The GNU C library defines this for functions which it implements
14462     to always fail with ENOSYS.  Some functions are actually named
14463     something starting with __ and the normal name is an alias.  */
14464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14465 choke me
14466 #else
14467 $ac_func();
14468 #endif
14469
14470 ; return 0; }
14471 EOF
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14473   rm -rf conftest*
14474   eval "ac_cv_func_$ac_func=yes"
14475 else
14476   echo "configure: failed program was:" >&5
14477   cat conftest.$ac_ext >&5
14478   rm -rf conftest*
14479   eval "ac_cv_func_$ac_func=no"
14480 fi
14481 rm -f conftest*
14482 fi
14483
14484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14485   echo "$ac_t""yes" 1>&6
14486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14487   cat >> confdefs.h <<EOF
14488 #define $ac_tr_func 1
14489 EOF
14490  
14491 else
14492   echo "$ac_t""no" 1>&6
14493 fi
14494 done
14495
14496   fi
14497
14498   
14499   
14500   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
14501 echo "configure:14502: checking for isnanl declaration" >&5
14502   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
14503     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
14504   echo $ac_n "(cached) $ac_c" 1>&6
14505 else
14506   
14507       
14508       ac_ext=C
14509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14510 ac_cpp='$CXXCPP $CPPFLAGS'
14511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14513 cross_compiling=$ac_cv_prog_cxx_cross
14514
14515       cat > conftest.$ac_ext <<EOF
14516 #line 14517 "configure"
14517 #include "confdefs.h"
14518 #include <math.h>
14519                       #ifdef HAVE_IEEEFP_H
14520                       #include <ieeefp.h>
14521                       #endif
14522                      
14523 int main() {
14524  isnanl(0);
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528   rm -rf conftest*
14529   glibcpp_cv_func_isnanl_use=yes
14530 else
14531   echo "configure: failed program was:" >&5
14532   cat conftest.$ac_ext >&5
14533   rm -rf conftest*
14534   glibcpp_cv_func_isnanl_use=no
14535 fi
14536 rm -f conftest*
14537       ac_ext=c
14538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CPP $CPPFLAGS'
14540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cc_cross
14543
14544     
14545 fi
14546
14547   fi
14548   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
14549
14550   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
14551     for ac_func in isnanl
14552 do
14553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14554 echo "configure:14555: checking for $ac_func" >&5
14555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14556   echo $ac_n "(cached) $ac_c" 1>&6
14557 else
14558   cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 /* System header to define __stub macros and hopefully few prototypes,
14562     which can conflict with char $ac_func(); below.  */
14563 #include <assert.h>
14564 /* Override any gcc2 internal prototype to avoid an error.  */
14565 /* We use char because int might match the return type of a gcc2
14566     builtin and then its argument prototype would still apply.  */
14567 char $ac_func();
14568
14569 int main() {
14570
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 $ac_func();
14578 #endif
14579
14580 ; return 0; }
14581 EOF
14582 if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14583   rm -rf conftest*
14584   eval "ac_cv_func_$ac_func=yes"
14585 else
14586   echo "configure: failed program was:" >&5
14587   cat conftest.$ac_ext >&5
14588   rm -rf conftest*
14589   eval "ac_cv_func_$ac_func=no"
14590 fi
14591 rm -f conftest*
14592 fi
14593
14594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14595   echo "$ac_t""yes" 1>&6
14596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14597   cat >> confdefs.h <<EOF
14598 #define $ac_tr_func 1
14599 EOF
14600  
14601 else
14602   echo "$ac_t""no" 1>&6
14603 fi
14604 done
14605     
14606   else
14607     
14608   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
14609 echo "configure:14610: checking for _isnanl declaration" >&5
14610   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
14611     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
14612   echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614   
14615       
14616       ac_ext=C
14617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618 ac_cpp='$CXXCPP $CPPFLAGS'
14619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621 cross_compiling=$ac_cv_prog_cxx_cross
14622
14623       cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 #include <math.h>
14627                       #ifdef HAVE_IEEEFP_H
14628                       #include <ieeefp.h>
14629                       #endif
14630                      
14631 int main() {
14632  _isnanl(0);
14633 ; return 0; }
14634 EOF
14635 if { (eval echo configure:14636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14636   rm -rf conftest*
14637   glibcpp_cv_func__isnanl_use=yes
14638 else
14639   echo "configure: failed program was:" >&5
14640   cat conftest.$ac_ext >&5
14641   rm -rf conftest*
14642   glibcpp_cv_func__isnanl_use=no
14643 fi
14644 rm -f conftest*
14645       ac_ext=c
14646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14647 ac_cpp='$CPP $CPPFLAGS'
14648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14650 cross_compiling=$ac_cv_prog_cc_cross
14651
14652     
14653 fi
14654
14655   fi
14656   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
14657
14658     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
14659       for ac_func in _isnanl
14660 do
14661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14662 echo "configure:14663: checking for $ac_func" >&5
14663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14664   echo $ac_n "(cached) $ac_c" 1>&6
14665 else
14666   cat > conftest.$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14669 /* System header to define __stub macros and hopefully few prototypes,
14670     which can conflict with char $ac_func(); below.  */
14671 #include <assert.h>
14672 /* Override any gcc2 internal prototype to avoid an error.  */
14673 /* We use char because int might match the return type of a gcc2
14674     builtin and then its argument prototype would still apply.  */
14675 char $ac_func();
14676
14677 int main() {
14678
14679 /* The GNU C library defines this for functions which it implements
14680     to always fail with ENOSYS.  Some functions are actually named
14681     something starting with __ and the normal name is an alias.  */
14682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14683 choke me
14684 #else
14685 $ac_func();
14686 #endif
14687
14688 ; return 0; }
14689 EOF
14690 if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14691   rm -rf conftest*
14692   eval "ac_cv_func_$ac_func=yes"
14693 else
14694   echo "configure: failed program was:" >&5
14695   cat conftest.$ac_ext >&5
14696   rm -rf conftest*
14697   eval "ac_cv_func_$ac_func=no"
14698 fi
14699 rm -f conftest*
14700 fi
14701
14702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14703   echo "$ac_t""yes" 1>&6
14704     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14705   cat >> confdefs.h <<EOF
14706 #define $ac_tr_func 1
14707 EOF
14708  
14709 else
14710   echo "$ac_t""no" 1>&6
14711 fi
14712 done
14713     
14714     fi
14715   fi
14716
14717   
14718   
14719   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
14720 echo "configure:14721: checking for isinfl declaration" >&5
14721   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
14722     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
14723   echo $ac_n "(cached) $ac_c" 1>&6
14724 else
14725   
14726       
14727       ac_ext=C
14728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14732 cross_compiling=$ac_cv_prog_cxx_cross
14733
14734       cat > conftest.$ac_ext <<EOF
14735 #line 14736 "configure"
14736 #include "confdefs.h"
14737 #include <math.h>
14738                       #ifdef HAVE_IEEEFP_H
14739                       #include <ieeefp.h>
14740                       #endif
14741                      
14742 int main() {
14743  isinfl(0);
14744 ; return 0; }
14745 EOF
14746 if { (eval echo configure:14747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14747   rm -rf conftest*
14748   glibcpp_cv_func_isinfl_use=yes
14749 else
14750   echo "configure: failed program was:" >&5
14751   cat conftest.$ac_ext >&5
14752   rm -rf conftest*
14753   glibcpp_cv_func_isinfl_use=no
14754 fi
14755 rm -f conftest*
14756       ac_ext=c
14757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14758 ac_cpp='$CPP $CPPFLAGS'
14759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14761 cross_compiling=$ac_cv_prog_cc_cross
14762
14763     
14764 fi
14765
14766   fi
14767   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
14768
14769   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
14770     for ac_func in isinfl
14771 do
14772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14773 echo "configure:14774: checking for $ac_func" >&5
14774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14775   echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14777   cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 /* System header to define __stub macros and hopefully few prototypes,
14781     which can conflict with char $ac_func(); below.  */
14782 #include <assert.h>
14783 /* Override any gcc2 internal prototype to avoid an error.  */
14784 /* We use char because int might match the return type of a gcc2
14785     builtin and then its argument prototype would still apply.  */
14786 char $ac_func();
14787
14788 int main() {
14789
14790 /* The GNU C library defines this for functions which it implements
14791     to always fail with ENOSYS.  Some functions are actually named
14792     something starting with __ and the normal name is an alias.  */
14793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14794 choke me
14795 #else
14796 $ac_func();
14797 #endif
14798
14799 ; return 0; }
14800 EOF
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14802   rm -rf conftest*
14803   eval "ac_cv_func_$ac_func=yes"
14804 else
14805   echo "configure: failed program was:" >&5
14806   cat conftest.$ac_ext >&5
14807   rm -rf conftest*
14808   eval "ac_cv_func_$ac_func=no"
14809 fi
14810 rm -f conftest*
14811 fi
14812
14813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14814   echo "$ac_t""yes" 1>&6
14815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14816   cat >> confdefs.h <<EOF
14817 #define $ac_tr_func 1
14818 EOF
14819  
14820 else
14821   echo "$ac_t""no" 1>&6
14822 fi
14823 done
14824     
14825   else
14826     
14827   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
14828 echo "configure:14829: checking for _isinfl declaration" >&5
14829   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
14830     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
14831   echo $ac_n "(cached) $ac_c" 1>&6
14832 else
14833   
14834       
14835       ac_ext=C
14836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14837 ac_cpp='$CXXCPP $CPPFLAGS'
14838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14840 cross_compiling=$ac_cv_prog_cxx_cross
14841
14842       cat > conftest.$ac_ext <<EOF
14843 #line 14844 "configure"
14844 #include "confdefs.h"
14845 #include <math.h>
14846                       #ifdef HAVE_IEEEFP_H
14847                       #include <ieeefp.h>
14848                       #endif
14849                      
14850 int main() {
14851  _isinfl(0);
14852 ; return 0; }
14853 EOF
14854 if { (eval echo configure:14855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14855   rm -rf conftest*
14856   glibcpp_cv_func__isinfl_use=yes
14857 else
14858   echo "configure: failed program was:" >&5
14859   cat conftest.$ac_ext >&5
14860   rm -rf conftest*
14861   glibcpp_cv_func__isinfl_use=no
14862 fi
14863 rm -f conftest*
14864       ac_ext=c
14865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14866 ac_cpp='$CPP $CPPFLAGS'
14867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14869 cross_compiling=$ac_cv_prog_cc_cross
14870
14871     
14872 fi
14873
14874   fi
14875   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
14876
14877     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
14878       for ac_func in _isinfl
14879 do
14880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14881 echo "configure:14882: checking for $ac_func" >&5
14882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14883   echo $ac_n "(cached) $ac_c" 1>&6
14884 else
14885   cat > conftest.$ac_ext <<EOF
14886 #line 14887 "configure"
14887 #include "confdefs.h"
14888 /* System header to define __stub macros and hopefully few prototypes,
14889     which can conflict with char $ac_func(); below.  */
14890 #include <assert.h>
14891 /* Override any gcc2 internal prototype to avoid an error.  */
14892 /* We use char because int might match the return type of a gcc2
14893     builtin and then its argument prototype would still apply.  */
14894 char $ac_func();
14895
14896 int main() {
14897
14898 /* The GNU C library defines this for functions which it implements
14899     to always fail with ENOSYS.  Some functions are actually named
14900     something starting with __ and the normal name is an alias.  */
14901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14902 choke me
14903 #else
14904 $ac_func();
14905 #endif
14906
14907 ; return 0; }
14908 EOF
14909 if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14910   rm -rf conftest*
14911   eval "ac_cv_func_$ac_func=yes"
14912 else
14913   echo "configure: failed program was:" >&5
14914   cat conftest.$ac_ext >&5
14915   rm -rf conftest*
14916   eval "ac_cv_func_$ac_func=no"
14917 fi
14918 rm -f conftest*
14919 fi
14920
14921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14922   echo "$ac_t""yes" 1>&6
14923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14924   cat >> confdefs.h <<EOF
14925 #define $ac_tr_func 1
14926 EOF
14927  
14928 else
14929   echo "$ac_t""no" 1>&6
14930 fi
14931 done
14932     
14933     fi
14934   fi
14935
14936   
14937   
14938   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14939 echo "configure:14940: checking for copysignl declaration" >&5
14940   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14941     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14942   echo $ac_n "(cached) $ac_c" 1>&6
14943 else
14944   
14945       
14946       ac_ext=C
14947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14948 ac_cpp='$CXXCPP $CPPFLAGS'
14949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14951 cross_compiling=$ac_cv_prog_cxx_cross
14952
14953       cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 #include <math.h>
14957 int main() {
14958  copysignl(0, 0);
14959 ; return 0; }
14960 EOF
14961 if { (eval echo configure:14962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14962   rm -rf conftest*
14963   glibcpp_cv_func_copysignl_use=yes
14964 else
14965   echo "configure: failed program was:" >&5
14966   cat conftest.$ac_ext >&5
14967   rm -rf conftest*
14968   glibcpp_cv_func_copysignl_use=no
14969 fi
14970 rm -f conftest*
14971       ac_ext=c
14972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14973 ac_cpp='$CPP $CPPFLAGS'
14974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14976 cross_compiling=$ac_cv_prog_cc_cross
14977
14978     
14979 fi
14980
14981   fi
14982   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14983
14984   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14985     for ac_func in copysignl
14986 do
14987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14988 echo "configure:14989: checking for $ac_func" >&5
14989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14990   echo $ac_n "(cached) $ac_c" 1>&6
14991 else
14992   cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14995 /* System header to define __stub macros and hopefully few prototypes,
14996     which can conflict with char $ac_func(); below.  */
14997 #include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error.  */
14999 /* We use char because int might match the return type of a gcc2
15000     builtin and then its argument prototype would still apply.  */
15001 char $ac_func();
15002
15003 int main() {
15004
15005 /* The GNU C library defines this for functions which it implements
15006     to always fail with ENOSYS.  Some functions are actually named
15007     something starting with __ and the normal name is an alias.  */
15008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15009 choke me
15010 #else
15011 $ac_func();
15012 #endif
15013
15014 ; return 0; }
15015 EOF
15016 if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15017   rm -rf conftest*
15018   eval "ac_cv_func_$ac_func=yes"
15019 else
15020   echo "configure: failed program was:" >&5
15021   cat conftest.$ac_ext >&5
15022   rm -rf conftest*
15023   eval "ac_cv_func_$ac_func=no"
15024 fi
15025 rm -f conftest*
15026 fi
15027
15028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15029   echo "$ac_t""yes" 1>&6
15030     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15031   cat >> confdefs.h <<EOF
15032 #define $ac_tr_func 1
15033 EOF
15034  
15035 else
15036   echo "$ac_t""no" 1>&6
15037 fi
15038 done
15039     
15040   else
15041     
15042   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15043 echo "configure:15044: checking for _copysignl declaration" >&5
15044   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15045     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15046   echo $ac_n "(cached) $ac_c" 1>&6
15047 else
15048   
15049       
15050       ac_ext=C
15051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15052 ac_cpp='$CXXCPP $CPPFLAGS'
15053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15055 cross_compiling=$ac_cv_prog_cxx_cross
15056
15057       cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 #include <math.h>
15061 int main() {
15062  _copysignl(0, 0);
15063 ; return 0; }
15064 EOF
15065 if { (eval echo configure:15066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15066   rm -rf conftest*
15067   glibcpp_cv_func__copysignl_use=yes
15068 else
15069   echo "configure: failed program was:" >&5
15070   cat conftest.$ac_ext >&5
15071   rm -rf conftest*
15072   glibcpp_cv_func__copysignl_use=no
15073 fi
15074 rm -f conftest*
15075       ac_ext=c
15076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15077 ac_cpp='$CPP $CPPFLAGS'
15078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15080 cross_compiling=$ac_cv_prog_cc_cross
15081
15082     
15083 fi
15084
15085   fi
15086   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15087
15088     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15089       for ac_func in _copysignl
15090 do
15091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15092 echo "configure:15093: checking for $ac_func" >&5
15093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15094   echo $ac_n "(cached) $ac_c" 1>&6
15095 else
15096   cat > conftest.$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15099 /* System header to define __stub macros and hopefully few prototypes,
15100     which can conflict with char $ac_func(); below.  */
15101 #include <assert.h>
15102 /* Override any gcc2 internal prototype to avoid an error.  */
15103 /* We use char because int might match the return type of a gcc2
15104     builtin and then its argument prototype would still apply.  */
15105 char $ac_func();
15106
15107 int main() {
15108
15109 /* The GNU C library defines this for functions which it implements
15110     to always fail with ENOSYS.  Some functions are actually named
15111     something starting with __ and the normal name is an alias.  */
15112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15113 choke me
15114 #else
15115 $ac_func();
15116 #endif
15117
15118 ; return 0; }
15119 EOF
15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15121   rm -rf conftest*
15122   eval "ac_cv_func_$ac_func=yes"
15123 else
15124   echo "configure: failed program was:" >&5
15125   cat conftest.$ac_ext >&5
15126   rm -rf conftest*
15127   eval "ac_cv_func_$ac_func=no"
15128 fi
15129 rm -f conftest*
15130 fi
15131
15132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15133   echo "$ac_t""yes" 1>&6
15134     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15135   cat >> confdefs.h <<EOF
15136 #define $ac_tr_func 1
15137 EOF
15138  
15139 else
15140   echo "$ac_t""no" 1>&6
15141 fi
15142 done
15143     
15144     fi
15145   fi
15146
15147   
15148   
15149   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
15150 echo "configure:15151: checking for atan2l declaration" >&5
15151   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
15152     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
15153   echo $ac_n "(cached) $ac_c" 1>&6
15154 else
15155   
15156       
15157       ac_ext=C
15158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15159 ac_cpp='$CXXCPP $CPPFLAGS'
15160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15162 cross_compiling=$ac_cv_prog_cxx_cross
15163
15164       cat > conftest.$ac_ext <<EOF
15165 #line 15166 "configure"
15166 #include "confdefs.h"
15167 #include <math.h>
15168 int main() {
15169  atan2l(0, 0);
15170 ; return 0; }
15171 EOF
15172 if { (eval echo configure:15173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15173   rm -rf conftest*
15174   glibcpp_cv_func_atan2l_use=yes
15175 else
15176   echo "configure: failed program was:" >&5
15177   cat conftest.$ac_ext >&5
15178   rm -rf conftest*
15179   glibcpp_cv_func_atan2l_use=no
15180 fi
15181 rm -f conftest*
15182       ac_ext=c
15183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15184 ac_cpp='$CPP $CPPFLAGS'
15185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15187 cross_compiling=$ac_cv_prog_cc_cross
15188
15189     
15190 fi
15191
15192   fi
15193   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
15194
15195   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
15196     for ac_func in atan2l
15197 do
15198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15199 echo "configure:15200: checking for $ac_func" >&5
15200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15201   echo $ac_n "(cached) $ac_c" 1>&6
15202 else
15203   cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* System header to define __stub macros and hopefully few prototypes,
15207     which can conflict with char $ac_func(); below.  */
15208 #include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error.  */
15210 /* We use char because int might match the return type of a gcc2
15211     builtin and then its argument prototype would still apply.  */
15212 char $ac_func();
15213
15214 int main() {
15215
15216 /* The GNU C library defines this for functions which it implements
15217     to always fail with ENOSYS.  Some functions are actually named
15218     something starting with __ and the normal name is an alias.  */
15219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15220 choke me
15221 #else
15222 $ac_func();
15223 #endif
15224
15225 ; return 0; }
15226 EOF
15227 if { (eval echo configure:15228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15228   rm -rf conftest*
15229   eval "ac_cv_func_$ac_func=yes"
15230 else
15231   echo "configure: failed program was:" >&5
15232   cat conftest.$ac_ext >&5
15233   rm -rf conftest*
15234   eval "ac_cv_func_$ac_func=no"
15235 fi
15236 rm -f conftest*
15237 fi
15238
15239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15240   echo "$ac_t""yes" 1>&6
15241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15242   cat >> confdefs.h <<EOF
15243 #define $ac_tr_func 1
15244 EOF
15245  
15246 else
15247   echo "$ac_t""no" 1>&6
15248 fi
15249 done
15250     
15251   else
15252     
15253   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
15254 echo "configure:15255: checking for _atan2l declaration" >&5
15255   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
15256     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
15257   echo $ac_n "(cached) $ac_c" 1>&6
15258 else
15259   
15260       
15261       ac_ext=C
15262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15263 ac_cpp='$CXXCPP $CPPFLAGS'
15264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15266 cross_compiling=$ac_cv_prog_cxx_cross
15267
15268       cat > conftest.$ac_ext <<EOF
15269 #line 15270 "configure"
15270 #include "confdefs.h"
15271 #include <math.h>
15272 int main() {
15273  _atan2l(0, 0);
15274 ; return 0; }
15275 EOF
15276 if { (eval echo configure:15277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15277   rm -rf conftest*
15278   glibcpp_cv_func__atan2l_use=yes
15279 else
15280   echo "configure: failed program was:" >&5
15281   cat conftest.$ac_ext >&5
15282   rm -rf conftest*
15283   glibcpp_cv_func__atan2l_use=no
15284 fi
15285 rm -f conftest*
15286       ac_ext=c
15287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15288 ac_cpp='$CPP $CPPFLAGS'
15289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15291 cross_compiling=$ac_cv_prog_cc_cross
15292
15293     
15294 fi
15295
15296   fi
15297   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
15298
15299     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
15300       for ac_func in _atan2l
15301 do
15302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15303 echo "configure:15304: checking for $ac_func" >&5
15304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15305   echo $ac_n "(cached) $ac_c" 1>&6
15306 else
15307   cat > conftest.$ac_ext <<EOF
15308 #line 15309 "configure"
15309 #include "confdefs.h"
15310 /* System header to define __stub macros and hopefully few prototypes,
15311     which can conflict with char $ac_func(); below.  */
15312 #include <assert.h>
15313 /* Override any gcc2 internal prototype to avoid an error.  */
15314 /* We use char because int might match the return type of a gcc2
15315     builtin and then its argument prototype would still apply.  */
15316 char $ac_func();
15317
15318 int main() {
15319
15320 /* The GNU C library defines this for functions which it implements
15321     to always fail with ENOSYS.  Some functions are actually named
15322     something starting with __ and the normal name is an alias.  */
15323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15324 choke me
15325 #else
15326 $ac_func();
15327 #endif
15328
15329 ; return 0; }
15330 EOF
15331 if { (eval echo configure:15332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15332   rm -rf conftest*
15333   eval "ac_cv_func_$ac_func=yes"
15334 else
15335   echo "configure: failed program was:" >&5
15336   cat conftest.$ac_ext >&5
15337   rm -rf conftest*
15338   eval "ac_cv_func_$ac_func=no"
15339 fi
15340 rm -f conftest*
15341 fi
15342
15343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15344   echo "$ac_t""yes" 1>&6
15345     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15346   cat >> confdefs.h <<EOF
15347 #define $ac_tr_func 1
15348 EOF
15349  
15350 else
15351   echo "$ac_t""no" 1>&6
15352 fi
15353 done
15354     
15355     fi
15356   fi
15357
15358   
15359   
15360   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
15361 echo "configure:15362: checking for expl declaration" >&5
15362   if test x${glibcpp_cv_func_expl_use+set} != xset; then
15363     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
15364   echo $ac_n "(cached) $ac_c" 1>&6
15365 else
15366   
15367       
15368       ac_ext=C
15369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15370 ac_cpp='$CXXCPP $CPPFLAGS'
15371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15373 cross_compiling=$ac_cv_prog_cxx_cross
15374
15375       cat > conftest.$ac_ext <<EOF
15376 #line 15377 "configure"
15377 #include "confdefs.h"
15378 #include <math.h>
15379                       #ifdef HAVE_IEEEFP_H
15380                       #include <ieeefp.h>
15381                       #endif
15382                      
15383 int main() {
15384  expl(0);
15385 ; return 0; }
15386 EOF
15387 if { (eval echo configure:15388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15388   rm -rf conftest*
15389   glibcpp_cv_func_expl_use=yes
15390 else
15391   echo "configure: failed program was:" >&5
15392   cat conftest.$ac_ext >&5
15393   rm -rf conftest*
15394   glibcpp_cv_func_expl_use=no
15395 fi
15396 rm -f conftest*
15397       ac_ext=c
15398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15402 cross_compiling=$ac_cv_prog_cc_cross
15403
15404     
15405 fi
15406
15407   fi
15408   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
15409
15410   if test x$glibcpp_cv_func_expl_use = x"yes"; then
15411     for ac_func in expl
15412 do
15413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15414 echo "configure:15415: checking for $ac_func" >&5
15415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15416   echo $ac_n "(cached) $ac_c" 1>&6
15417 else
15418   cat > conftest.$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 /* System header to define __stub macros and hopefully few prototypes,
15422     which can conflict with char $ac_func(); below.  */
15423 #include <assert.h>
15424 /* Override any gcc2 internal prototype to avoid an error.  */
15425 /* We use char because int might match the return type of a gcc2
15426     builtin and then its argument prototype would still apply.  */
15427 char $ac_func();
15428
15429 int main() {
15430
15431 /* The GNU C library defines this for functions which it implements
15432     to always fail with ENOSYS.  Some functions are actually named
15433     something starting with __ and the normal name is an alias.  */
15434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15435 choke me
15436 #else
15437 $ac_func();
15438 #endif
15439
15440 ; return 0; }
15441 EOF
15442 if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443   rm -rf conftest*
15444   eval "ac_cv_func_$ac_func=yes"
15445 else
15446   echo "configure: failed program was:" >&5
15447   cat conftest.$ac_ext >&5
15448   rm -rf conftest*
15449   eval "ac_cv_func_$ac_func=no"
15450 fi
15451 rm -f conftest*
15452 fi
15453
15454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15455   echo "$ac_t""yes" 1>&6
15456     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15457   cat >> confdefs.h <<EOF
15458 #define $ac_tr_func 1
15459 EOF
15460  
15461 else
15462   echo "$ac_t""no" 1>&6
15463 fi
15464 done
15465     
15466   else
15467     
15468   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
15469 echo "configure:15470: checking for _expl declaration" >&5
15470   if test x${glibcpp_cv_func__expl_use+set} != xset; then
15471     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
15472   echo $ac_n "(cached) $ac_c" 1>&6
15473 else
15474   
15475       
15476       ac_ext=C
15477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15478 ac_cpp='$CXXCPP $CPPFLAGS'
15479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15481 cross_compiling=$ac_cv_prog_cxx_cross
15482
15483       cat > conftest.$ac_ext <<EOF
15484 #line 15485 "configure"
15485 #include "confdefs.h"
15486 #include <math.h>
15487                       #ifdef HAVE_IEEEFP_H
15488                       #include <ieeefp.h>
15489                       #endif
15490                      
15491 int main() {
15492  _expl(0);
15493 ; return 0; }
15494 EOF
15495 if { (eval echo configure:15496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15496   rm -rf conftest*
15497   glibcpp_cv_func__expl_use=yes
15498 else
15499   echo "configure: failed program was:" >&5
15500   cat conftest.$ac_ext >&5
15501   rm -rf conftest*
15502   glibcpp_cv_func__expl_use=no
15503 fi
15504 rm -f conftest*
15505       ac_ext=c
15506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15507 ac_cpp='$CPP $CPPFLAGS'
15508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15510 cross_compiling=$ac_cv_prog_cc_cross
15511
15512     
15513 fi
15514
15515   fi
15516   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
15517
15518     if test x$glibcpp_cv_func__expl_use = x"yes"; then
15519       for ac_func in _expl
15520 do
15521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15522 echo "configure:15523: checking for $ac_func" >&5
15523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15524   echo $ac_n "(cached) $ac_c" 1>&6
15525 else
15526   cat > conftest.$ac_ext <<EOF
15527 #line 15528 "configure"
15528 #include "confdefs.h"
15529 /* System header to define __stub macros and hopefully few prototypes,
15530     which can conflict with char $ac_func(); below.  */
15531 #include <assert.h>
15532 /* Override any gcc2 internal prototype to avoid an error.  */
15533 /* We use char because int might match the return type of a gcc2
15534     builtin and then its argument prototype would still apply.  */
15535 char $ac_func();
15536
15537 int main() {
15538
15539 /* The GNU C library defines this for functions which it implements
15540     to always fail with ENOSYS.  Some functions are actually named
15541     something starting with __ and the normal name is an alias.  */
15542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15543 choke me
15544 #else
15545 $ac_func();
15546 #endif
15547
15548 ; return 0; }
15549 EOF
15550 if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15551   rm -rf conftest*
15552   eval "ac_cv_func_$ac_func=yes"
15553 else
15554   echo "configure: failed program was:" >&5
15555   cat conftest.$ac_ext >&5
15556   rm -rf conftest*
15557   eval "ac_cv_func_$ac_func=no"
15558 fi
15559 rm -f conftest*
15560 fi
15561
15562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15563   echo "$ac_t""yes" 1>&6
15564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15565   cat >> confdefs.h <<EOF
15566 #define $ac_tr_func 1
15567 EOF
15568  
15569 else
15570   echo "$ac_t""no" 1>&6
15571 fi
15572 done
15573     
15574     fi
15575   fi
15576
15577   
15578   
15579   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
15580 echo "configure:15581: checking for fabsl declaration" >&5
15581   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
15582     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
15583   echo $ac_n "(cached) $ac_c" 1>&6
15584 else
15585   
15586       
15587       ac_ext=C
15588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15589 ac_cpp='$CXXCPP $CPPFLAGS'
15590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15592 cross_compiling=$ac_cv_prog_cxx_cross
15593
15594       cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <math.h>
15598                       #ifdef HAVE_IEEEFP_H
15599                       #include <ieeefp.h>
15600                       #endif
15601                      
15602 int main() {
15603  fabsl(0);
15604 ; return 0; }
15605 EOF
15606 if { (eval echo configure:15607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15607   rm -rf conftest*
15608   glibcpp_cv_func_fabsl_use=yes
15609 else
15610   echo "configure: failed program was:" >&5
15611   cat conftest.$ac_ext >&5
15612   rm -rf conftest*
15613   glibcpp_cv_func_fabsl_use=no
15614 fi
15615 rm -f conftest*
15616       ac_ext=c
15617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15618 ac_cpp='$CPP $CPPFLAGS'
15619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15621 cross_compiling=$ac_cv_prog_cc_cross
15622
15623     
15624 fi
15625
15626   fi
15627   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
15628
15629   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
15630     for ac_func in fabsl
15631 do
15632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15633 echo "configure:15634: checking for $ac_func" >&5
15634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15635   echo $ac_n "(cached) $ac_c" 1>&6
15636 else
15637   cat > conftest.$ac_ext <<EOF
15638 #line 15639 "configure"
15639 #include "confdefs.h"
15640 /* System header to define __stub macros and hopefully few prototypes,
15641     which can conflict with char $ac_func(); below.  */
15642 #include <assert.h>
15643 /* Override any gcc2 internal prototype to avoid an error.  */
15644 /* We use char because int might match the return type of a gcc2
15645     builtin and then its argument prototype would still apply.  */
15646 char $ac_func();
15647
15648 int main() {
15649
15650 /* The GNU C library defines this for functions which it implements
15651     to always fail with ENOSYS.  Some functions are actually named
15652     something starting with __ and the normal name is an alias.  */
15653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15654 choke me
15655 #else
15656 $ac_func();
15657 #endif
15658
15659 ; return 0; }
15660 EOF
15661 if { (eval echo configure:15662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15662   rm -rf conftest*
15663   eval "ac_cv_func_$ac_func=yes"
15664 else
15665   echo "configure: failed program was:" >&5
15666   cat conftest.$ac_ext >&5
15667   rm -rf conftest*
15668   eval "ac_cv_func_$ac_func=no"
15669 fi
15670 rm -f conftest*
15671 fi
15672
15673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15674   echo "$ac_t""yes" 1>&6
15675     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15676   cat >> confdefs.h <<EOF
15677 #define $ac_tr_func 1
15678 EOF
15679  
15680 else
15681   echo "$ac_t""no" 1>&6
15682 fi
15683 done
15684     
15685   else
15686     
15687   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
15688 echo "configure:15689: checking for _fabsl declaration" >&5
15689   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
15690     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
15691   echo $ac_n "(cached) $ac_c" 1>&6
15692 else
15693   
15694       
15695       ac_ext=C
15696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15697 ac_cpp='$CXXCPP $CPPFLAGS'
15698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15700 cross_compiling=$ac_cv_prog_cxx_cross
15701
15702       cat > conftest.$ac_ext <<EOF
15703 #line 15704 "configure"
15704 #include "confdefs.h"
15705 #include <math.h>
15706                       #ifdef HAVE_IEEEFP_H
15707                       #include <ieeefp.h>
15708                       #endif
15709                      
15710 int main() {
15711  _fabsl(0);
15712 ; return 0; }
15713 EOF
15714 if { (eval echo configure:15715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15715   rm -rf conftest*
15716   glibcpp_cv_func__fabsl_use=yes
15717 else
15718   echo "configure: failed program was:" >&5
15719   cat conftest.$ac_ext >&5
15720   rm -rf conftest*
15721   glibcpp_cv_func__fabsl_use=no
15722 fi
15723 rm -f conftest*
15724       ac_ext=c
15725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15726 ac_cpp='$CPP $CPPFLAGS'
15727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15729 cross_compiling=$ac_cv_prog_cc_cross
15730
15731     
15732 fi
15733
15734   fi
15735   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
15736
15737     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
15738       for ac_func in _fabsl
15739 do
15740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15741 echo "configure:15742: checking for $ac_func" >&5
15742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15743   echo $ac_n "(cached) $ac_c" 1>&6
15744 else
15745   cat > conftest.$ac_ext <<EOF
15746 #line 15747 "configure"
15747 #include "confdefs.h"
15748 /* System header to define __stub macros and hopefully few prototypes,
15749     which can conflict with char $ac_func(); below.  */
15750 #include <assert.h>
15751 /* Override any gcc2 internal prototype to avoid an error.  */
15752 /* We use char because int might match the return type of a gcc2
15753     builtin and then its argument prototype would still apply.  */
15754 char $ac_func();
15755
15756 int main() {
15757
15758 /* The GNU C library defines this for functions which it implements
15759     to always fail with ENOSYS.  Some functions are actually named
15760     something starting with __ and the normal name is an alias.  */
15761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15762 choke me
15763 #else
15764 $ac_func();
15765 #endif
15766
15767 ; return 0; }
15768 EOF
15769 if { (eval echo configure:15770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15770   rm -rf conftest*
15771   eval "ac_cv_func_$ac_func=yes"
15772 else
15773   echo "configure: failed program was:" >&5
15774   cat conftest.$ac_ext >&5
15775   rm -rf conftest*
15776   eval "ac_cv_func_$ac_func=no"
15777 fi
15778 rm -f conftest*
15779 fi
15780
15781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15782   echo "$ac_t""yes" 1>&6
15783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15784   cat >> confdefs.h <<EOF
15785 #define $ac_tr_func 1
15786 EOF
15787  
15788 else
15789   echo "$ac_t""no" 1>&6
15790 fi
15791 done
15792     
15793     fi
15794   fi
15795
15796   
15797   
15798   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
15799 echo "configure:15800: checking for fmodl declaration" >&5
15800   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
15801     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
15802   echo $ac_n "(cached) $ac_c" 1>&6
15803 else
15804   
15805       
15806       ac_ext=C
15807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15808 ac_cpp='$CXXCPP $CPPFLAGS'
15809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15811 cross_compiling=$ac_cv_prog_cxx_cross
15812
15813       cat > conftest.$ac_ext <<EOF
15814 #line 15815 "configure"
15815 #include "confdefs.h"
15816 #include <math.h>
15817 int main() {
15818  fmodl(0, 0);
15819 ; return 0; }
15820 EOF
15821 if { (eval echo configure:15822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15822   rm -rf conftest*
15823   glibcpp_cv_func_fmodl_use=yes
15824 else
15825   echo "configure: failed program was:" >&5
15826   cat conftest.$ac_ext >&5
15827   rm -rf conftest*
15828   glibcpp_cv_func_fmodl_use=no
15829 fi
15830 rm -f conftest*
15831       ac_ext=c
15832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15833 ac_cpp='$CPP $CPPFLAGS'
15834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15836 cross_compiling=$ac_cv_prog_cc_cross
15837
15838     
15839 fi
15840
15841   fi
15842   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
15843
15844   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
15845     for ac_func in fmodl
15846 do
15847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15848 echo "configure:15849: checking for $ac_func" >&5
15849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15850   echo $ac_n "(cached) $ac_c" 1>&6
15851 else
15852   cat > conftest.$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15855 /* System header to define __stub macros and hopefully few prototypes,
15856     which can conflict with char $ac_func(); below.  */
15857 #include <assert.h>
15858 /* Override any gcc2 internal prototype to avoid an error.  */
15859 /* We use char because int might match the return type of a gcc2
15860     builtin and then its argument prototype would still apply.  */
15861 char $ac_func();
15862
15863 int main() {
15864
15865 /* The GNU C library defines this for functions which it implements
15866     to always fail with ENOSYS.  Some functions are actually named
15867     something starting with __ and the normal name is an alias.  */
15868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15869 choke me
15870 #else
15871 $ac_func();
15872 #endif
15873
15874 ; return 0; }
15875 EOF
15876 if { (eval echo configure:15877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15877   rm -rf conftest*
15878   eval "ac_cv_func_$ac_func=yes"
15879 else
15880   echo "configure: failed program was:" >&5
15881   cat conftest.$ac_ext >&5
15882   rm -rf conftest*
15883   eval "ac_cv_func_$ac_func=no"
15884 fi
15885 rm -f conftest*
15886 fi
15887
15888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15889   echo "$ac_t""yes" 1>&6
15890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15891   cat >> confdefs.h <<EOF
15892 #define $ac_tr_func 1
15893 EOF
15894  
15895 else
15896   echo "$ac_t""no" 1>&6
15897 fi
15898 done
15899     
15900   else
15901     
15902   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15903 echo "configure:15904: checking for _fmodl declaration" >&5
15904   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
15905     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15906   echo $ac_n "(cached) $ac_c" 1>&6
15907 else
15908   
15909       
15910       ac_ext=C
15911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15912 ac_cpp='$CXXCPP $CPPFLAGS'
15913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15915 cross_compiling=$ac_cv_prog_cxx_cross
15916
15917       cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 #include <math.h>
15921 int main() {
15922  _fmodl(0, 0);
15923 ; return 0; }
15924 EOF
15925 if { (eval echo configure:15926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15926   rm -rf conftest*
15927   glibcpp_cv_func__fmodl_use=yes
15928 else
15929   echo "configure: failed program was:" >&5
15930   cat conftest.$ac_ext >&5
15931   rm -rf conftest*
15932   glibcpp_cv_func__fmodl_use=no
15933 fi
15934 rm -f conftest*
15935       ac_ext=c
15936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15937 ac_cpp='$CPP $CPPFLAGS'
15938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15940 cross_compiling=$ac_cv_prog_cc_cross
15941
15942     
15943 fi
15944
15945   fi
15946   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15947
15948     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15949       for ac_func in _fmodl
15950 do
15951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15952 echo "configure:15953: checking for $ac_func" >&5
15953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15954   echo $ac_n "(cached) $ac_c" 1>&6
15955 else
15956   cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15959 /* System header to define __stub macros and hopefully few prototypes,
15960     which can conflict with char $ac_func(); below.  */
15961 #include <assert.h>
15962 /* Override any gcc2 internal prototype to avoid an error.  */
15963 /* We use char because int might match the return type of a gcc2
15964     builtin and then its argument prototype would still apply.  */
15965 char $ac_func();
15966
15967 int main() {
15968
15969 /* The GNU C library defines this for functions which it implements
15970     to always fail with ENOSYS.  Some functions are actually named
15971     something starting with __ and the normal name is an alias.  */
15972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15973 choke me
15974 #else
15975 $ac_func();
15976 #endif
15977
15978 ; return 0; }
15979 EOF
15980 if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15981   rm -rf conftest*
15982   eval "ac_cv_func_$ac_func=yes"
15983 else
15984   echo "configure: failed program was:" >&5
15985   cat conftest.$ac_ext >&5
15986   rm -rf conftest*
15987   eval "ac_cv_func_$ac_func=no"
15988 fi
15989 rm -f conftest*
15990 fi
15991
15992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15993   echo "$ac_t""yes" 1>&6
15994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15995   cat >> confdefs.h <<EOF
15996 #define $ac_tr_func 1
15997 EOF
15998  
15999 else
16000   echo "$ac_t""no" 1>&6
16001 fi
16002 done
16003     
16004     fi
16005   fi
16006
16007   
16008   
16009   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16010 echo "configure:16011: checking for frexpl declaration" >&5
16011   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16012     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16013   echo $ac_n "(cached) $ac_c" 1>&6
16014 else
16015   
16016       
16017       ac_ext=C
16018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16019 ac_cpp='$CXXCPP $CPPFLAGS'
16020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16022 cross_compiling=$ac_cv_prog_cxx_cross
16023
16024       cat > conftest.$ac_ext <<EOF
16025 #line 16026 "configure"
16026 #include "confdefs.h"
16027 #include <math.h>
16028 int main() {
16029  frexpl(0, 0);
16030 ; return 0; }
16031 EOF
16032 if { (eval echo configure:16033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16033   rm -rf conftest*
16034   glibcpp_cv_func_frexpl_use=yes
16035 else
16036   echo "configure: failed program was:" >&5
16037   cat conftest.$ac_ext >&5
16038   rm -rf conftest*
16039   glibcpp_cv_func_frexpl_use=no
16040 fi
16041 rm -f conftest*
16042       ac_ext=c
16043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16044 ac_cpp='$CPP $CPPFLAGS'
16045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16047 cross_compiling=$ac_cv_prog_cc_cross
16048
16049     
16050 fi
16051
16052   fi
16053   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16054
16055   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16056     for ac_func in frexpl
16057 do
16058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16059 echo "configure:16060: checking for $ac_func" >&5
16060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16061   echo $ac_n "(cached) $ac_c" 1>&6
16062 else
16063   cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 /* System header to define __stub macros and hopefully few prototypes,
16067     which can conflict with char $ac_func(); below.  */
16068 #include <assert.h>
16069 /* Override any gcc2 internal prototype to avoid an error.  */
16070 /* We use char because int might match the return type of a gcc2
16071     builtin and then its argument prototype would still apply.  */
16072 char $ac_func();
16073
16074 int main() {
16075
16076 /* The GNU C library defines this for functions which it implements
16077     to always fail with ENOSYS.  Some functions are actually named
16078     something starting with __ and the normal name is an alias.  */
16079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080 choke me
16081 #else
16082 $ac_func();
16083 #endif
16084
16085 ; return 0; }
16086 EOF
16087 if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16088   rm -rf conftest*
16089   eval "ac_cv_func_$ac_func=yes"
16090 else
16091   echo "configure: failed program was:" >&5
16092   cat conftest.$ac_ext >&5
16093   rm -rf conftest*
16094   eval "ac_cv_func_$ac_func=no"
16095 fi
16096 rm -f conftest*
16097 fi
16098
16099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16100   echo "$ac_t""yes" 1>&6
16101     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16102   cat >> confdefs.h <<EOF
16103 #define $ac_tr_func 1
16104 EOF
16105  
16106 else
16107   echo "$ac_t""no" 1>&6
16108 fi
16109 done
16110     
16111   else
16112     
16113   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16114 echo "configure:16115: checking for _frexpl declaration" >&5
16115   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16116     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16117   echo $ac_n "(cached) $ac_c" 1>&6
16118 else
16119   
16120       
16121       ac_ext=C
16122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16123 ac_cpp='$CXXCPP $CPPFLAGS'
16124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16126 cross_compiling=$ac_cv_prog_cxx_cross
16127
16128       cat > conftest.$ac_ext <<EOF
16129 #line 16130 "configure"
16130 #include "confdefs.h"
16131 #include <math.h>
16132 int main() {
16133  _frexpl(0, 0);
16134 ; return 0; }
16135 EOF
16136 if { (eval echo configure:16137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16137   rm -rf conftest*
16138   glibcpp_cv_func__frexpl_use=yes
16139 else
16140   echo "configure: failed program was:" >&5
16141   cat conftest.$ac_ext >&5
16142   rm -rf conftest*
16143   glibcpp_cv_func__frexpl_use=no
16144 fi
16145 rm -f conftest*
16146       ac_ext=c
16147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16148 ac_cpp='$CPP $CPPFLAGS'
16149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16151 cross_compiling=$ac_cv_prog_cc_cross
16152
16153     
16154 fi
16155
16156   fi
16157   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
16158
16159     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
16160       for ac_func in _frexpl
16161 do
16162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16163 echo "configure:16164: checking for $ac_func" >&5
16164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16165   echo $ac_n "(cached) $ac_c" 1>&6
16166 else
16167   cat > conftest.$ac_ext <<EOF
16168 #line 16169 "configure"
16169 #include "confdefs.h"
16170 /* System header to define __stub macros and hopefully few prototypes,
16171     which can conflict with char $ac_func(); below.  */
16172 #include <assert.h>
16173 /* Override any gcc2 internal prototype to avoid an error.  */
16174 /* We use char because int might match the return type of a gcc2
16175     builtin and then its argument prototype would still apply.  */
16176 char $ac_func();
16177
16178 int main() {
16179
16180 /* The GNU C library defines this for functions which it implements
16181     to always fail with ENOSYS.  Some functions are actually named
16182     something starting with __ and the normal name is an alias.  */
16183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16184 choke me
16185 #else
16186 $ac_func();
16187 #endif
16188
16189 ; return 0; }
16190 EOF
16191 if { (eval echo configure:16192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16192   rm -rf conftest*
16193   eval "ac_cv_func_$ac_func=yes"
16194 else
16195   echo "configure: failed program was:" >&5
16196   cat conftest.$ac_ext >&5
16197   rm -rf conftest*
16198   eval "ac_cv_func_$ac_func=no"
16199 fi
16200 rm -f conftest*
16201 fi
16202
16203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16204   echo "$ac_t""yes" 1>&6
16205     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16206   cat >> confdefs.h <<EOF
16207 #define $ac_tr_func 1
16208 EOF
16209  
16210 else
16211   echo "$ac_t""no" 1>&6
16212 fi
16213 done
16214     
16215     fi
16216   fi
16217
16218   
16219   
16220   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
16221 echo "configure:16222: checking for hypotl declaration" >&5
16222   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
16223     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
16224   echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226   
16227       
16228       ac_ext=C
16229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16230 ac_cpp='$CXXCPP $CPPFLAGS'
16231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16233 cross_compiling=$ac_cv_prog_cxx_cross
16234
16235       cat > conftest.$ac_ext <<EOF
16236 #line 16237 "configure"
16237 #include "confdefs.h"
16238 #include <math.h>
16239 int main() {
16240  hypotl(0, 0);
16241 ; return 0; }
16242 EOF
16243 if { (eval echo configure:16244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16244   rm -rf conftest*
16245   glibcpp_cv_func_hypotl_use=yes
16246 else
16247   echo "configure: failed program was:" >&5
16248   cat conftest.$ac_ext >&5
16249   rm -rf conftest*
16250   glibcpp_cv_func_hypotl_use=no
16251 fi
16252 rm -f conftest*
16253       ac_ext=c
16254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16258 cross_compiling=$ac_cv_prog_cc_cross
16259
16260     
16261 fi
16262
16263   fi
16264   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
16265
16266   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
16267     for ac_func in hypotl
16268 do
16269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16270 echo "configure:16271: checking for $ac_func" >&5
16271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16272   echo $ac_n "(cached) $ac_c" 1>&6
16273 else
16274   cat > conftest.$ac_ext <<EOF
16275 #line 16276 "configure"
16276 #include "confdefs.h"
16277 /* System header to define __stub macros and hopefully few prototypes,
16278     which can conflict with char $ac_func(); below.  */
16279 #include <assert.h>
16280 /* Override any gcc2 internal prototype to avoid an error.  */
16281 /* We use char because int might match the return type of a gcc2
16282     builtin and then its argument prototype would still apply.  */
16283 char $ac_func();
16284
16285 int main() {
16286
16287 /* The GNU C library defines this for functions which it implements
16288     to always fail with ENOSYS.  Some functions are actually named
16289     something starting with __ and the normal name is an alias.  */
16290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16291 choke me
16292 #else
16293 $ac_func();
16294 #endif
16295
16296 ; return 0; }
16297 EOF
16298 if { (eval echo configure:16299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16299   rm -rf conftest*
16300   eval "ac_cv_func_$ac_func=yes"
16301 else
16302   echo "configure: failed program was:" >&5
16303   cat conftest.$ac_ext >&5
16304   rm -rf conftest*
16305   eval "ac_cv_func_$ac_func=no"
16306 fi
16307 rm -f conftest*
16308 fi
16309
16310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16311   echo "$ac_t""yes" 1>&6
16312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16313   cat >> confdefs.h <<EOF
16314 #define $ac_tr_func 1
16315 EOF
16316  
16317 else
16318   echo "$ac_t""no" 1>&6
16319 fi
16320 done
16321     
16322   else
16323     
16324   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
16325 echo "configure:16326: checking for _hypotl declaration" >&5
16326   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
16327     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
16328   echo $ac_n "(cached) $ac_c" 1>&6
16329 else
16330   
16331       
16332       ac_ext=C
16333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16334 ac_cpp='$CXXCPP $CPPFLAGS'
16335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16337 cross_compiling=$ac_cv_prog_cxx_cross
16338
16339       cat > conftest.$ac_ext <<EOF
16340 #line 16341 "configure"
16341 #include "confdefs.h"
16342 #include <math.h>
16343 int main() {
16344  _hypotl(0, 0);
16345 ; return 0; }
16346 EOF
16347 if { (eval echo configure:16348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16348   rm -rf conftest*
16349   glibcpp_cv_func__hypotl_use=yes
16350 else
16351   echo "configure: failed program was:" >&5
16352   cat conftest.$ac_ext >&5
16353   rm -rf conftest*
16354   glibcpp_cv_func__hypotl_use=no
16355 fi
16356 rm -f conftest*
16357       ac_ext=c
16358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16362 cross_compiling=$ac_cv_prog_cc_cross
16363
16364     
16365 fi
16366
16367   fi
16368   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
16369
16370     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
16371       for ac_func in _hypotl
16372 do
16373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16374 echo "configure:16375: checking for $ac_func" >&5
16375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16376   echo $ac_n "(cached) $ac_c" 1>&6
16377 else
16378   cat > conftest.$ac_ext <<EOF
16379 #line 16380 "configure"
16380 #include "confdefs.h"
16381 /* System header to define __stub macros and hopefully few prototypes,
16382     which can conflict with char $ac_func(); below.  */
16383 #include <assert.h>
16384 /* Override any gcc2 internal prototype to avoid an error.  */
16385 /* We use char because int might match the return type of a gcc2
16386     builtin and then its argument prototype would still apply.  */
16387 char $ac_func();
16388
16389 int main() {
16390
16391 /* The GNU C library defines this for functions which it implements
16392     to always fail with ENOSYS.  Some functions are actually named
16393     something starting with __ and the normal name is an alias.  */
16394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16395 choke me
16396 #else
16397 $ac_func();
16398 #endif
16399
16400 ; return 0; }
16401 EOF
16402 if { (eval echo configure:16403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16403   rm -rf conftest*
16404   eval "ac_cv_func_$ac_func=yes"
16405 else
16406   echo "configure: failed program was:" >&5
16407   cat conftest.$ac_ext >&5
16408   rm -rf conftest*
16409   eval "ac_cv_func_$ac_func=no"
16410 fi
16411 rm -f conftest*
16412 fi
16413
16414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16415   echo "$ac_t""yes" 1>&6
16416     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16417   cat >> confdefs.h <<EOF
16418 #define $ac_tr_func 1
16419 EOF
16420  
16421 else
16422   echo "$ac_t""no" 1>&6
16423 fi
16424 done
16425     
16426     fi
16427   fi
16428
16429   
16430   
16431   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
16432 echo "configure:16433: checking for ldexpl declaration" >&5
16433   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
16434     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
16435   echo $ac_n "(cached) $ac_c" 1>&6
16436 else
16437   
16438       
16439       ac_ext=C
16440 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16441 ac_cpp='$CXXCPP $CPPFLAGS'
16442 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16443 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16444 cross_compiling=$ac_cv_prog_cxx_cross
16445
16446       cat > conftest.$ac_ext <<EOF
16447 #line 16448 "configure"
16448 #include "confdefs.h"
16449 #include <math.h>
16450 int main() {
16451  ldexpl(0, 0);
16452 ; return 0; }
16453 EOF
16454 if { (eval echo configure:16455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16455   rm -rf conftest*
16456   glibcpp_cv_func_ldexpl_use=yes
16457 else
16458   echo "configure: failed program was:" >&5
16459   cat conftest.$ac_ext >&5
16460   rm -rf conftest*
16461   glibcpp_cv_func_ldexpl_use=no
16462 fi
16463 rm -f conftest*
16464       ac_ext=c
16465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16466 ac_cpp='$CPP $CPPFLAGS'
16467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16469 cross_compiling=$ac_cv_prog_cc_cross
16470
16471     
16472 fi
16473
16474   fi
16475   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
16476
16477   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
16478     for ac_func in ldexpl
16479 do
16480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16481 echo "configure:16482: checking for $ac_func" >&5
16482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16483   echo $ac_n "(cached) $ac_c" 1>&6
16484 else
16485   cat > conftest.$ac_ext <<EOF
16486 #line 16487 "configure"
16487 #include "confdefs.h"
16488 /* System header to define __stub macros and hopefully few prototypes,
16489     which can conflict with char $ac_func(); below.  */
16490 #include <assert.h>
16491 /* Override any gcc2 internal prototype to avoid an error.  */
16492 /* We use char because int might match the return type of a gcc2
16493     builtin and then its argument prototype would still apply.  */
16494 char $ac_func();
16495
16496 int main() {
16497
16498 /* The GNU C library defines this for functions which it implements
16499     to always fail with ENOSYS.  Some functions are actually named
16500     something starting with __ and the normal name is an alias.  */
16501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16502 choke me
16503 #else
16504 $ac_func();
16505 #endif
16506
16507 ; return 0; }
16508 EOF
16509 if { (eval echo configure:16510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16510   rm -rf conftest*
16511   eval "ac_cv_func_$ac_func=yes"
16512 else
16513   echo "configure: failed program was:" >&5
16514   cat conftest.$ac_ext >&5
16515   rm -rf conftest*
16516   eval "ac_cv_func_$ac_func=no"
16517 fi
16518 rm -f conftest*
16519 fi
16520
16521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16522   echo "$ac_t""yes" 1>&6
16523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16524   cat >> confdefs.h <<EOF
16525 #define $ac_tr_func 1
16526 EOF
16527  
16528 else
16529   echo "$ac_t""no" 1>&6
16530 fi
16531 done
16532     
16533   else
16534     
16535   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
16536 echo "configure:16537: checking for _ldexpl declaration" >&5
16537   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
16538     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
16539   echo $ac_n "(cached) $ac_c" 1>&6
16540 else
16541   
16542       
16543       ac_ext=C
16544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16545 ac_cpp='$CXXCPP $CPPFLAGS'
16546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16548 cross_compiling=$ac_cv_prog_cxx_cross
16549
16550       cat > conftest.$ac_ext <<EOF
16551 #line 16552 "configure"
16552 #include "confdefs.h"
16553 #include <math.h>
16554 int main() {
16555  _ldexpl(0, 0);
16556 ; return 0; }
16557 EOF
16558 if { (eval echo configure:16559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16559   rm -rf conftest*
16560   glibcpp_cv_func__ldexpl_use=yes
16561 else
16562   echo "configure: failed program was:" >&5
16563   cat conftest.$ac_ext >&5
16564   rm -rf conftest*
16565   glibcpp_cv_func__ldexpl_use=no
16566 fi
16567 rm -f conftest*
16568       ac_ext=c
16569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16570 ac_cpp='$CPP $CPPFLAGS'
16571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16573 cross_compiling=$ac_cv_prog_cc_cross
16574
16575     
16576 fi
16577
16578   fi
16579   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
16580
16581     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
16582       for ac_func in _ldexpl
16583 do
16584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16585 echo "configure:16586: checking for $ac_func" >&5
16586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16587   echo $ac_n "(cached) $ac_c" 1>&6
16588 else
16589   cat > conftest.$ac_ext <<EOF
16590 #line 16591 "configure"
16591 #include "confdefs.h"
16592 /* System header to define __stub macros and hopefully few prototypes,
16593     which can conflict with char $ac_func(); below.  */
16594 #include <assert.h>
16595 /* Override any gcc2 internal prototype to avoid an error.  */
16596 /* We use char because int might match the return type of a gcc2
16597     builtin and then its argument prototype would still apply.  */
16598 char $ac_func();
16599
16600 int main() {
16601
16602 /* The GNU C library defines this for functions which it implements
16603     to always fail with ENOSYS.  Some functions are actually named
16604     something starting with __ and the normal name is an alias.  */
16605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16606 choke me
16607 #else
16608 $ac_func();
16609 #endif
16610
16611 ; return 0; }
16612 EOF
16613 if { (eval echo configure:16614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16614   rm -rf conftest*
16615   eval "ac_cv_func_$ac_func=yes"
16616 else
16617   echo "configure: failed program was:" >&5
16618   cat conftest.$ac_ext >&5
16619   rm -rf conftest*
16620   eval "ac_cv_func_$ac_func=no"
16621 fi
16622 rm -f conftest*
16623 fi
16624
16625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16626   echo "$ac_t""yes" 1>&6
16627     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16628   cat >> confdefs.h <<EOF
16629 #define $ac_tr_func 1
16630 EOF
16631  
16632 else
16633   echo "$ac_t""no" 1>&6
16634 fi
16635 done
16636     
16637     fi
16638   fi
16639
16640   
16641   
16642   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
16643 echo "configure:16644: checking for logl declaration" >&5
16644   if test x${glibcpp_cv_func_logl_use+set} != xset; then
16645     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
16646   echo $ac_n "(cached) $ac_c" 1>&6
16647 else
16648   
16649       
16650       ac_ext=C
16651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16652 ac_cpp='$CXXCPP $CPPFLAGS'
16653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16655 cross_compiling=$ac_cv_prog_cxx_cross
16656
16657       cat > conftest.$ac_ext <<EOF
16658 #line 16659 "configure"
16659 #include "confdefs.h"
16660 #include <math.h>
16661                       #ifdef HAVE_IEEEFP_H
16662                       #include <ieeefp.h>
16663                       #endif
16664                      
16665 int main() {
16666  logl(0);
16667 ; return 0; }
16668 EOF
16669 if { (eval echo configure:16670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16670   rm -rf conftest*
16671   glibcpp_cv_func_logl_use=yes
16672 else
16673   echo "configure: failed program was:" >&5
16674   cat conftest.$ac_ext >&5
16675   rm -rf conftest*
16676   glibcpp_cv_func_logl_use=no
16677 fi
16678 rm -f conftest*
16679       ac_ext=c
16680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16681 ac_cpp='$CPP $CPPFLAGS'
16682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16684 cross_compiling=$ac_cv_prog_cc_cross
16685
16686     
16687 fi
16688
16689   fi
16690   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
16691
16692   if test x$glibcpp_cv_func_logl_use = x"yes"; then
16693     for ac_func in logl
16694 do
16695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16696 echo "configure:16697: checking for $ac_func" >&5
16697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16698   echo $ac_n "(cached) $ac_c" 1>&6
16699 else
16700   cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703 /* System header to define __stub macros and hopefully few prototypes,
16704     which can conflict with char $ac_func(); below.  */
16705 #include <assert.h>
16706 /* Override any gcc2 internal prototype to avoid an error.  */
16707 /* We use char because int might match the return type of a gcc2
16708     builtin and then its argument prototype would still apply.  */
16709 char $ac_func();
16710
16711 int main() {
16712
16713 /* The GNU C library defines this for functions which it implements
16714     to always fail with ENOSYS.  Some functions are actually named
16715     something starting with __ and the normal name is an alias.  */
16716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16717 choke me
16718 #else
16719 $ac_func();
16720 #endif
16721
16722 ; return 0; }
16723 EOF
16724 if { (eval echo configure:16725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16725   rm -rf conftest*
16726   eval "ac_cv_func_$ac_func=yes"
16727 else
16728   echo "configure: failed program was:" >&5
16729   cat conftest.$ac_ext >&5
16730   rm -rf conftest*
16731   eval "ac_cv_func_$ac_func=no"
16732 fi
16733 rm -f conftest*
16734 fi
16735
16736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16737   echo "$ac_t""yes" 1>&6
16738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16739   cat >> confdefs.h <<EOF
16740 #define $ac_tr_func 1
16741 EOF
16742  
16743 else
16744   echo "$ac_t""no" 1>&6
16745 fi
16746 done
16747     
16748   else
16749     
16750   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
16751 echo "configure:16752: checking for _logl declaration" >&5
16752   if test x${glibcpp_cv_func__logl_use+set} != xset; then
16753     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
16754   echo $ac_n "(cached) $ac_c" 1>&6
16755 else
16756   
16757       
16758       ac_ext=C
16759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16760 ac_cpp='$CXXCPP $CPPFLAGS'
16761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16763 cross_compiling=$ac_cv_prog_cxx_cross
16764
16765       cat > conftest.$ac_ext <<EOF
16766 #line 16767 "configure"
16767 #include "confdefs.h"
16768 #include <math.h>
16769                       #ifdef HAVE_IEEEFP_H
16770                       #include <ieeefp.h>
16771                       #endif
16772                      
16773 int main() {
16774  _logl(0);
16775 ; return 0; }
16776 EOF
16777 if { (eval echo configure:16778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16778   rm -rf conftest*
16779   glibcpp_cv_func__logl_use=yes
16780 else
16781   echo "configure: failed program was:" >&5
16782   cat conftest.$ac_ext >&5
16783   rm -rf conftest*
16784   glibcpp_cv_func__logl_use=no
16785 fi
16786 rm -f conftest*
16787       ac_ext=c
16788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16792 cross_compiling=$ac_cv_prog_cc_cross
16793
16794     
16795 fi
16796
16797   fi
16798   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
16799
16800     if test x$glibcpp_cv_func__logl_use = x"yes"; then
16801       for ac_func in _logl
16802 do
16803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16804 echo "configure:16805: checking for $ac_func" >&5
16805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16806   echo $ac_n "(cached) $ac_c" 1>&6
16807 else
16808   cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16811 /* System header to define __stub macros and hopefully few prototypes,
16812     which can conflict with char $ac_func(); below.  */
16813 #include <assert.h>
16814 /* Override any gcc2 internal prototype to avoid an error.  */
16815 /* We use char because int might match the return type of a gcc2
16816     builtin and then its argument prototype would still apply.  */
16817 char $ac_func();
16818
16819 int main() {
16820
16821 /* The GNU C library defines this for functions which it implements
16822     to always fail with ENOSYS.  Some functions are actually named
16823     something starting with __ and the normal name is an alias.  */
16824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16825 choke me
16826 #else
16827 $ac_func();
16828 #endif
16829
16830 ; return 0; }
16831 EOF
16832 if { (eval echo configure:16833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16833   rm -rf conftest*
16834   eval "ac_cv_func_$ac_func=yes"
16835 else
16836   echo "configure: failed program was:" >&5
16837   cat conftest.$ac_ext >&5
16838   rm -rf conftest*
16839   eval "ac_cv_func_$ac_func=no"
16840 fi
16841 rm -f conftest*
16842 fi
16843
16844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16845   echo "$ac_t""yes" 1>&6
16846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16847   cat >> confdefs.h <<EOF
16848 #define $ac_tr_func 1
16849 EOF
16850  
16851 else
16852   echo "$ac_t""no" 1>&6
16853 fi
16854 done
16855     
16856     fi
16857   fi
16858
16859   
16860   
16861   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
16862 echo "configure:16863: checking for log10l declaration" >&5
16863   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
16864     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
16865   echo $ac_n "(cached) $ac_c" 1>&6
16866 else
16867   
16868       
16869       ac_ext=C
16870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16871 ac_cpp='$CXXCPP $CPPFLAGS'
16872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16874 cross_compiling=$ac_cv_prog_cxx_cross
16875
16876       cat > conftest.$ac_ext <<EOF
16877 #line 16878 "configure"
16878 #include "confdefs.h"
16879 #include <math.h>
16880                       #ifdef HAVE_IEEEFP_H
16881                       #include <ieeefp.h>
16882                       #endif
16883                      
16884 int main() {
16885  log10l(0);
16886 ; return 0; }
16887 EOF
16888 if { (eval echo configure:16889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16889   rm -rf conftest*
16890   glibcpp_cv_func_log10l_use=yes
16891 else
16892   echo "configure: failed program was:" >&5
16893   cat conftest.$ac_ext >&5
16894   rm -rf conftest*
16895   glibcpp_cv_func_log10l_use=no
16896 fi
16897 rm -f conftest*
16898       ac_ext=c
16899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16900 ac_cpp='$CPP $CPPFLAGS'
16901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16903 cross_compiling=$ac_cv_prog_cc_cross
16904
16905     
16906 fi
16907
16908   fi
16909   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16910
16911   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16912     for ac_func in log10l
16913 do
16914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16915 echo "configure:16916: checking for $ac_func" >&5
16916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16917   echo $ac_n "(cached) $ac_c" 1>&6
16918 else
16919   cat > conftest.$ac_ext <<EOF
16920 #line 16921 "configure"
16921 #include "confdefs.h"
16922 /* System header to define __stub macros and hopefully few prototypes,
16923     which can conflict with char $ac_func(); below.  */
16924 #include <assert.h>
16925 /* Override any gcc2 internal prototype to avoid an error.  */
16926 /* We use char because int might match the return type of a gcc2
16927     builtin and then its argument prototype would still apply.  */
16928 char $ac_func();
16929
16930 int main() {
16931
16932 /* The GNU C library defines this for functions which it implements
16933     to always fail with ENOSYS.  Some functions are actually named
16934     something starting with __ and the normal name is an alias.  */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936 choke me
16937 #else
16938 $ac_func();
16939 #endif
16940
16941 ; return 0; }
16942 EOF
16943 if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16944   rm -rf conftest*
16945   eval "ac_cv_func_$ac_func=yes"
16946 else
16947   echo "configure: failed program was:" >&5
16948   cat conftest.$ac_ext >&5
16949   rm -rf conftest*
16950   eval "ac_cv_func_$ac_func=no"
16951 fi
16952 rm -f conftest*
16953 fi
16954
16955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16956   echo "$ac_t""yes" 1>&6
16957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16958   cat >> confdefs.h <<EOF
16959 #define $ac_tr_func 1
16960 EOF
16961  
16962 else
16963   echo "$ac_t""no" 1>&6
16964 fi
16965 done
16966     
16967   else
16968     
16969   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16970 echo "configure:16971: checking for _log10l declaration" >&5
16971   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16972     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16973   echo $ac_n "(cached) $ac_c" 1>&6
16974 else
16975   
16976       
16977       ac_ext=C
16978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16979 ac_cpp='$CXXCPP $CPPFLAGS'
16980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16982 cross_compiling=$ac_cv_prog_cxx_cross
16983
16984       cat > conftest.$ac_ext <<EOF
16985 #line 16986 "configure"
16986 #include "confdefs.h"
16987 #include <math.h>
16988                       #ifdef HAVE_IEEEFP_H
16989                       #include <ieeefp.h>
16990                       #endif
16991                      
16992 int main() {
16993  _log10l(0);
16994 ; return 0; }
16995 EOF
16996 if { (eval echo configure:16997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16997   rm -rf conftest*
16998   glibcpp_cv_func__log10l_use=yes
16999 else
17000   echo "configure: failed program was:" >&5
17001   cat conftest.$ac_ext >&5
17002   rm -rf conftest*
17003   glibcpp_cv_func__log10l_use=no
17004 fi
17005 rm -f conftest*
17006       ac_ext=c
17007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17008 ac_cpp='$CPP $CPPFLAGS'
17009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17011 cross_compiling=$ac_cv_prog_cc_cross
17012
17013     
17014 fi
17015
17016   fi
17017   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17018
17019     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17020       for ac_func in _log10l
17021 do
17022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17023 echo "configure:17024: checking for $ac_func" >&5
17024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17025   echo $ac_n "(cached) $ac_c" 1>&6
17026 else
17027   cat > conftest.$ac_ext <<EOF
17028 #line 17029 "configure"
17029 #include "confdefs.h"
17030 /* System header to define __stub macros and hopefully few prototypes,
17031     which can conflict with char $ac_func(); below.  */
17032 #include <assert.h>
17033 /* Override any gcc2 internal prototype to avoid an error.  */
17034 /* We use char because int might match the return type of a gcc2
17035     builtin and then its argument prototype would still apply.  */
17036 char $ac_func();
17037
17038 int main() {
17039
17040 /* The GNU C library defines this for functions which it implements
17041     to always fail with ENOSYS.  Some functions are actually named
17042     something starting with __ and the normal name is an alias.  */
17043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17044 choke me
17045 #else
17046 $ac_func();
17047 #endif
17048
17049 ; return 0; }
17050 EOF
17051 if { (eval echo configure:17052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17052   rm -rf conftest*
17053   eval "ac_cv_func_$ac_func=yes"
17054 else
17055   echo "configure: failed program was:" >&5
17056   cat conftest.$ac_ext >&5
17057   rm -rf conftest*
17058   eval "ac_cv_func_$ac_func=no"
17059 fi
17060 rm -f conftest*
17061 fi
17062
17063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17064   echo "$ac_t""yes" 1>&6
17065     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17066   cat >> confdefs.h <<EOF
17067 #define $ac_tr_func 1
17068 EOF
17069  
17070 else
17071   echo "$ac_t""no" 1>&6
17072 fi
17073 done
17074     
17075     fi
17076   fi
17077
17078   
17079   
17080   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17081 echo "configure:17082: checking for modfl declaration" >&5
17082   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17083     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17084   echo $ac_n "(cached) $ac_c" 1>&6
17085 else
17086   
17087       
17088       ac_ext=C
17089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17090 ac_cpp='$CXXCPP $CPPFLAGS'
17091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17093 cross_compiling=$ac_cv_prog_cxx_cross
17094
17095       cat > conftest.$ac_ext <<EOF
17096 #line 17097 "configure"
17097 #include "confdefs.h"
17098 #include <math.h>
17099 int main() {
17100  modfl(0, 0);
17101 ; return 0; }
17102 EOF
17103 if { (eval echo configure:17104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17104   rm -rf conftest*
17105   glibcpp_cv_func_modfl_use=yes
17106 else
17107   echo "configure: failed program was:" >&5
17108   cat conftest.$ac_ext >&5
17109   rm -rf conftest*
17110   glibcpp_cv_func_modfl_use=no
17111 fi
17112 rm -f conftest*
17113       ac_ext=c
17114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17115 ac_cpp='$CPP $CPPFLAGS'
17116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17118 cross_compiling=$ac_cv_prog_cc_cross
17119
17120     
17121 fi
17122
17123   fi
17124   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17125
17126   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17127     for ac_func in modfl
17128 do
17129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17130 echo "configure:17131: checking for $ac_func" >&5
17131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17132   echo $ac_n "(cached) $ac_c" 1>&6
17133 else
17134   cat > conftest.$ac_ext <<EOF
17135 #line 17136 "configure"
17136 #include "confdefs.h"
17137 /* System header to define __stub macros and hopefully few prototypes,
17138     which can conflict with char $ac_func(); below.  */
17139 #include <assert.h>
17140 /* Override any gcc2 internal prototype to avoid an error.  */
17141 /* We use char because int might match the return type of a gcc2
17142     builtin and then its argument prototype would still apply.  */
17143 char $ac_func();
17144
17145 int main() {
17146
17147 /* The GNU C library defines this for functions which it implements
17148     to always fail with ENOSYS.  Some functions are actually named
17149     something starting with __ and the normal name is an alias.  */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17151 choke me
17152 #else
17153 $ac_func();
17154 #endif
17155
17156 ; return 0; }
17157 EOF
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17159   rm -rf conftest*
17160   eval "ac_cv_func_$ac_func=yes"
17161 else
17162   echo "configure: failed program was:" >&5
17163   cat conftest.$ac_ext >&5
17164   rm -rf conftest*
17165   eval "ac_cv_func_$ac_func=no"
17166 fi
17167 rm -f conftest*
17168 fi
17169
17170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17171   echo "$ac_t""yes" 1>&6
17172     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17173   cat >> confdefs.h <<EOF
17174 #define $ac_tr_func 1
17175 EOF
17176  
17177 else
17178   echo "$ac_t""no" 1>&6
17179 fi
17180 done
17181     
17182   else
17183     
17184   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
17185 echo "configure:17186: checking for _modfl declaration" >&5
17186   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
17187     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
17188   echo $ac_n "(cached) $ac_c" 1>&6
17189 else
17190   
17191       
17192       ac_ext=C
17193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17194 ac_cpp='$CXXCPP $CPPFLAGS'
17195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17197 cross_compiling=$ac_cv_prog_cxx_cross
17198
17199       cat > conftest.$ac_ext <<EOF
17200 #line 17201 "configure"
17201 #include "confdefs.h"
17202 #include <math.h>
17203 int main() {
17204  _modfl(0, 0);
17205 ; return 0; }
17206 EOF
17207 if { (eval echo configure:17208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17208   rm -rf conftest*
17209   glibcpp_cv_func__modfl_use=yes
17210 else
17211   echo "configure: failed program was:" >&5
17212   cat conftest.$ac_ext >&5
17213   rm -rf conftest*
17214   glibcpp_cv_func__modfl_use=no
17215 fi
17216 rm -f conftest*
17217       ac_ext=c
17218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17219 ac_cpp='$CPP $CPPFLAGS'
17220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17222 cross_compiling=$ac_cv_prog_cc_cross
17223
17224     
17225 fi
17226
17227   fi
17228   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
17229
17230     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
17231       for ac_func in _modfl
17232 do
17233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234 echo "configure:17235: checking for $ac_func" >&5
17235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17236   echo $ac_n "(cached) $ac_c" 1>&6
17237 else
17238   cat > conftest.$ac_ext <<EOF
17239 #line 17240 "configure"
17240 #include "confdefs.h"
17241 /* System header to define __stub macros and hopefully few prototypes,
17242     which can conflict with char $ac_func(); below.  */
17243 #include <assert.h>
17244 /* Override any gcc2 internal prototype to avoid an error.  */
17245 /* We use char because int might match the return type of a gcc2
17246     builtin and then its argument prototype would still apply.  */
17247 char $ac_func();
17248
17249 int main() {
17250
17251 /* The GNU C library defines this for functions which it implements
17252     to always fail with ENOSYS.  Some functions are actually named
17253     something starting with __ and the normal name is an alias.  */
17254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17255 choke me
17256 #else
17257 $ac_func();
17258 #endif
17259
17260 ; return 0; }
17261 EOF
17262 if { (eval echo configure:17263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17263   rm -rf conftest*
17264   eval "ac_cv_func_$ac_func=yes"
17265 else
17266   echo "configure: failed program was:" >&5
17267   cat conftest.$ac_ext >&5
17268   rm -rf conftest*
17269   eval "ac_cv_func_$ac_func=no"
17270 fi
17271 rm -f conftest*
17272 fi
17273
17274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17275   echo "$ac_t""yes" 1>&6
17276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17277   cat >> confdefs.h <<EOF
17278 #define $ac_tr_func 1
17279 EOF
17280  
17281 else
17282   echo "$ac_t""no" 1>&6
17283 fi
17284 done
17285     
17286     fi
17287   fi
17288
17289   
17290   
17291   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
17292 echo "configure:17293: checking for powl declaration" >&5
17293   if test x${glibcpp_cv_func_powl_use+set} != xset; then
17294     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
17295   echo $ac_n "(cached) $ac_c" 1>&6
17296 else
17297   
17298       
17299       ac_ext=C
17300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17301 ac_cpp='$CXXCPP $CPPFLAGS'
17302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17304 cross_compiling=$ac_cv_prog_cxx_cross
17305
17306       cat > conftest.$ac_ext <<EOF
17307 #line 17308 "configure"
17308 #include "confdefs.h"
17309 #include <math.h>
17310 int main() {
17311  powl(0, 0);
17312 ; return 0; }
17313 EOF
17314 if { (eval echo configure:17315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17315   rm -rf conftest*
17316   glibcpp_cv_func_powl_use=yes
17317 else
17318   echo "configure: failed program was:" >&5
17319   cat conftest.$ac_ext >&5
17320   rm -rf conftest*
17321   glibcpp_cv_func_powl_use=no
17322 fi
17323 rm -f conftest*
17324       ac_ext=c
17325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17326 ac_cpp='$CPP $CPPFLAGS'
17327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17329 cross_compiling=$ac_cv_prog_cc_cross
17330
17331     
17332 fi
17333
17334   fi
17335   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
17336
17337   if test x$glibcpp_cv_func_powl_use = x"yes"; then
17338     for ac_func in powl
17339 do
17340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17341 echo "configure:17342: checking for $ac_func" >&5
17342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17343   echo $ac_n "(cached) $ac_c" 1>&6
17344 else
17345   cat > conftest.$ac_ext <<EOF
17346 #line 17347 "configure"
17347 #include "confdefs.h"
17348 /* System header to define __stub macros and hopefully few prototypes,
17349     which can conflict with char $ac_func(); below.  */
17350 #include <assert.h>
17351 /* Override any gcc2 internal prototype to avoid an error.  */
17352 /* We use char because int might match the return type of a gcc2
17353     builtin and then its argument prototype would still apply.  */
17354 char $ac_func();
17355
17356 int main() {
17357
17358 /* The GNU C library defines this for functions which it implements
17359     to always fail with ENOSYS.  Some functions are actually named
17360     something starting with __ and the normal name is an alias.  */
17361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17362 choke me
17363 #else
17364 $ac_func();
17365 #endif
17366
17367 ; return 0; }
17368 EOF
17369 if { (eval echo configure:17370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17370   rm -rf conftest*
17371   eval "ac_cv_func_$ac_func=yes"
17372 else
17373   echo "configure: failed program was:" >&5
17374   cat conftest.$ac_ext >&5
17375   rm -rf conftest*
17376   eval "ac_cv_func_$ac_func=no"
17377 fi
17378 rm -f conftest*
17379 fi
17380
17381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17382   echo "$ac_t""yes" 1>&6
17383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17384   cat >> confdefs.h <<EOF
17385 #define $ac_tr_func 1
17386 EOF
17387  
17388 else
17389   echo "$ac_t""no" 1>&6
17390 fi
17391 done
17392     
17393   else
17394     
17395   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
17396 echo "configure:17397: checking for _powl declaration" >&5
17397   if test x${glibcpp_cv_func__powl_use+set} != xset; then
17398     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
17399   echo $ac_n "(cached) $ac_c" 1>&6
17400 else
17401   
17402       
17403       ac_ext=C
17404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17405 ac_cpp='$CXXCPP $CPPFLAGS'
17406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17408 cross_compiling=$ac_cv_prog_cxx_cross
17409
17410       cat > conftest.$ac_ext <<EOF
17411 #line 17412 "configure"
17412 #include "confdefs.h"
17413 #include <math.h>
17414 int main() {
17415  _powl(0, 0);
17416 ; return 0; }
17417 EOF
17418 if { (eval echo configure:17419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17419   rm -rf conftest*
17420   glibcpp_cv_func__powl_use=yes
17421 else
17422   echo "configure: failed program was:" >&5
17423   cat conftest.$ac_ext >&5
17424   rm -rf conftest*
17425   glibcpp_cv_func__powl_use=no
17426 fi
17427 rm -f conftest*
17428       ac_ext=c
17429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17430 ac_cpp='$CPP $CPPFLAGS'
17431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17433 cross_compiling=$ac_cv_prog_cc_cross
17434
17435     
17436 fi
17437
17438   fi
17439   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
17440
17441     if test x$glibcpp_cv_func__powl_use = x"yes"; then
17442       for ac_func in _powl
17443 do
17444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17445 echo "configure:17446: checking for $ac_func" >&5
17446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17447   echo $ac_n "(cached) $ac_c" 1>&6
17448 else
17449   cat > conftest.$ac_ext <<EOF
17450 #line 17451 "configure"
17451 #include "confdefs.h"
17452 /* System header to define __stub macros and hopefully few prototypes,
17453     which can conflict with char $ac_func(); below.  */
17454 #include <assert.h>
17455 /* Override any gcc2 internal prototype to avoid an error.  */
17456 /* We use char because int might match the return type of a gcc2
17457     builtin and then its argument prototype would still apply.  */
17458 char $ac_func();
17459
17460 int main() {
17461
17462 /* The GNU C library defines this for functions which it implements
17463     to always fail with ENOSYS.  Some functions are actually named
17464     something starting with __ and the normal name is an alias.  */
17465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466 choke me
17467 #else
17468 $ac_func();
17469 #endif
17470
17471 ; return 0; }
17472 EOF
17473 if { (eval echo configure:17474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17474   rm -rf conftest*
17475   eval "ac_cv_func_$ac_func=yes"
17476 else
17477   echo "configure: failed program was:" >&5
17478   cat conftest.$ac_ext >&5
17479   rm -rf conftest*
17480   eval "ac_cv_func_$ac_func=no"
17481 fi
17482 rm -f conftest*
17483 fi
17484
17485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17486   echo "$ac_t""yes" 1>&6
17487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17488   cat >> confdefs.h <<EOF
17489 #define $ac_tr_func 1
17490 EOF
17491  
17492 else
17493   echo "$ac_t""no" 1>&6
17494 fi
17495 done
17496     
17497     fi
17498   fi
17499
17500   
17501   
17502   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
17503 echo "configure:17504: checking for sqrtl declaration" >&5
17504   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
17505     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
17506   echo $ac_n "(cached) $ac_c" 1>&6
17507 else
17508   
17509       
17510       ac_ext=C
17511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17512 ac_cpp='$CXXCPP $CPPFLAGS'
17513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17515 cross_compiling=$ac_cv_prog_cxx_cross
17516
17517       cat > conftest.$ac_ext <<EOF
17518 #line 17519 "configure"
17519 #include "confdefs.h"
17520 #include <math.h>
17521                       #ifdef HAVE_IEEEFP_H
17522                       #include <ieeefp.h>
17523                       #endif
17524                      
17525 int main() {
17526  sqrtl(0);
17527 ; return 0; }
17528 EOF
17529 if { (eval echo configure:17530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17530   rm -rf conftest*
17531   glibcpp_cv_func_sqrtl_use=yes
17532 else
17533   echo "configure: failed program was:" >&5
17534   cat conftest.$ac_ext >&5
17535   rm -rf conftest*
17536   glibcpp_cv_func_sqrtl_use=no
17537 fi
17538 rm -f conftest*
17539       ac_ext=c
17540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17544 cross_compiling=$ac_cv_prog_cc_cross
17545
17546     
17547 fi
17548
17549   fi
17550   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
17551
17552   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
17553     for ac_func in sqrtl
17554 do
17555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17556 echo "configure:17557: checking for $ac_func" >&5
17557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17558   echo $ac_n "(cached) $ac_c" 1>&6
17559 else
17560   cat > conftest.$ac_ext <<EOF
17561 #line 17562 "configure"
17562 #include "confdefs.h"
17563 /* System header to define __stub macros and hopefully few prototypes,
17564     which can conflict with char $ac_func(); below.  */
17565 #include <assert.h>
17566 /* Override any gcc2 internal prototype to avoid an error.  */
17567 /* We use char because int might match the return type of a gcc2
17568     builtin and then its argument prototype would still apply.  */
17569 char $ac_func();
17570
17571 int main() {
17572
17573 /* The GNU C library defines this for functions which it implements
17574     to always fail with ENOSYS.  Some functions are actually named
17575     something starting with __ and the normal name is an alias.  */
17576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17577 choke me
17578 #else
17579 $ac_func();
17580 #endif
17581
17582 ; return 0; }
17583 EOF
17584 if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17585   rm -rf conftest*
17586   eval "ac_cv_func_$ac_func=yes"
17587 else
17588   echo "configure: failed program was:" >&5
17589   cat conftest.$ac_ext >&5
17590   rm -rf conftest*
17591   eval "ac_cv_func_$ac_func=no"
17592 fi
17593 rm -f conftest*
17594 fi
17595
17596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17597   echo "$ac_t""yes" 1>&6
17598     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17599   cat >> confdefs.h <<EOF
17600 #define $ac_tr_func 1
17601 EOF
17602  
17603 else
17604   echo "$ac_t""no" 1>&6
17605 fi
17606 done
17607     
17608   else
17609     
17610   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
17611 echo "configure:17612: checking for _sqrtl declaration" >&5
17612   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
17613     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
17614   echo $ac_n "(cached) $ac_c" 1>&6
17615 else
17616   
17617       
17618       ac_ext=C
17619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17620 ac_cpp='$CXXCPP $CPPFLAGS'
17621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17623 cross_compiling=$ac_cv_prog_cxx_cross
17624
17625       cat > conftest.$ac_ext <<EOF
17626 #line 17627 "configure"
17627 #include "confdefs.h"
17628 #include <math.h>
17629                       #ifdef HAVE_IEEEFP_H
17630                       #include <ieeefp.h>
17631                       #endif
17632                      
17633 int main() {
17634  _sqrtl(0);
17635 ; return 0; }
17636 EOF
17637 if { (eval echo configure:17638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17638   rm -rf conftest*
17639   glibcpp_cv_func__sqrtl_use=yes
17640 else
17641   echo "configure: failed program was:" >&5
17642   cat conftest.$ac_ext >&5
17643   rm -rf conftest*
17644   glibcpp_cv_func__sqrtl_use=no
17645 fi
17646 rm -f conftest*
17647       ac_ext=c
17648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17649 ac_cpp='$CPP $CPPFLAGS'
17650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17652 cross_compiling=$ac_cv_prog_cc_cross
17653
17654     
17655 fi
17656
17657   fi
17658   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
17659
17660     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
17661       for ac_func in _sqrtl
17662 do
17663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17664 echo "configure:17665: checking for $ac_func" >&5
17665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17666   echo $ac_n "(cached) $ac_c" 1>&6
17667 else
17668   cat > conftest.$ac_ext <<EOF
17669 #line 17670 "configure"
17670 #include "confdefs.h"
17671 /* System header to define __stub macros and hopefully few prototypes,
17672     which can conflict with char $ac_func(); below.  */
17673 #include <assert.h>
17674 /* Override any gcc2 internal prototype to avoid an error.  */
17675 /* We use char because int might match the return type of a gcc2
17676     builtin and then its argument prototype would still apply.  */
17677 char $ac_func();
17678
17679 int main() {
17680
17681 /* The GNU C library defines this for functions which it implements
17682     to always fail with ENOSYS.  Some functions are actually named
17683     something starting with __ and the normal name is an alias.  */
17684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17685 choke me
17686 #else
17687 $ac_func();
17688 #endif
17689
17690 ; return 0; }
17691 EOF
17692 if { (eval echo configure:17693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17693   rm -rf conftest*
17694   eval "ac_cv_func_$ac_func=yes"
17695 else
17696   echo "configure: failed program was:" >&5
17697   cat conftest.$ac_ext >&5
17698   rm -rf conftest*
17699   eval "ac_cv_func_$ac_func=no"
17700 fi
17701 rm -f conftest*
17702 fi
17703
17704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17705   echo "$ac_t""yes" 1>&6
17706     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17707   cat >> confdefs.h <<EOF
17708 #define $ac_tr_func 1
17709 EOF
17710  
17711 else
17712   echo "$ac_t""no" 1>&6
17713 fi
17714 done
17715     
17716     fi
17717   fi
17718
17719   
17720   
17721   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
17722 echo "configure:17723: checking for sincosl declaration" >&5
17723   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
17724     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
17725   echo $ac_n "(cached) $ac_c" 1>&6
17726 else
17727   
17728       
17729       ac_ext=C
17730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17731 ac_cpp='$CXXCPP $CPPFLAGS'
17732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17734 cross_compiling=$ac_cv_prog_cxx_cross
17735
17736       cat > conftest.$ac_ext <<EOF
17737 #line 17738 "configure"
17738 #include "confdefs.h"
17739 #include <math.h>
17740 int main() {
17741  sincosl(0, 0, 0);
17742 ; return 0; }
17743 EOF
17744 if { (eval echo configure:17745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17745   rm -rf conftest*
17746   glibcpp_cv_func_sincosl_use=yes
17747 else
17748   echo "configure: failed program was:" >&5
17749   cat conftest.$ac_ext >&5
17750   rm -rf conftest*
17751   glibcpp_cv_func_sincosl_use=no
17752 fi
17753 rm -f conftest*
17754       ac_ext=c
17755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17756 ac_cpp='$CPP $CPPFLAGS'
17757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17759 cross_compiling=$ac_cv_prog_cc_cross
17760
17761     
17762 fi
17763
17764   fi
17765   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
17766
17767   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
17768     for ac_func in sincosl
17769 do
17770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17771 echo "configure:17772: checking for $ac_func" >&5
17772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17773   echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17775   cat > conftest.$ac_ext <<EOF
17776 #line 17777 "configure"
17777 #include "confdefs.h"
17778 /* System header to define __stub macros and hopefully few prototypes,
17779     which can conflict with char $ac_func(); below.  */
17780 #include <assert.h>
17781 /* Override any gcc2 internal prototype to avoid an error.  */
17782 /* We use char because int might match the return type of a gcc2
17783     builtin and then its argument prototype would still apply.  */
17784 char $ac_func();
17785
17786 int main() {
17787
17788 /* The GNU C library defines this for functions which it implements
17789     to always fail with ENOSYS.  Some functions are actually named
17790     something starting with __ and the normal name is an alias.  */
17791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17792 choke me
17793 #else
17794 $ac_func();
17795 #endif
17796
17797 ; return 0; }
17798 EOF
17799 if { (eval echo configure:17800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17800   rm -rf conftest*
17801   eval "ac_cv_func_$ac_func=yes"
17802 else
17803   echo "configure: failed program was:" >&5
17804   cat conftest.$ac_ext >&5
17805   rm -rf conftest*
17806   eval "ac_cv_func_$ac_func=no"
17807 fi
17808 rm -f conftest*
17809 fi
17810
17811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17812   echo "$ac_t""yes" 1>&6
17813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17814   cat >> confdefs.h <<EOF
17815 #define $ac_tr_func 1
17816 EOF
17817  
17818 else
17819   echo "$ac_t""no" 1>&6
17820 fi
17821 done
17822     
17823   else
17824     
17825   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
17826 echo "configure:17827: checking for _sincosl declaration" >&5
17827   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
17828     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
17829   echo $ac_n "(cached) $ac_c" 1>&6
17830 else
17831   
17832       
17833       ac_ext=C
17834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17835 ac_cpp='$CXXCPP $CPPFLAGS'
17836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17838 cross_compiling=$ac_cv_prog_cxx_cross
17839
17840       cat > conftest.$ac_ext <<EOF
17841 #line 17842 "configure"
17842 #include "confdefs.h"
17843 #include <math.h>
17844 int main() {
17845  _sincosl(0, 0, 0);
17846 ; return 0; }
17847 EOF
17848 if { (eval echo configure:17849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17849   rm -rf conftest*
17850   glibcpp_cv_func__sincosl_use=yes
17851 else
17852   echo "configure: failed program was:" >&5
17853   cat conftest.$ac_ext >&5
17854   rm -rf conftest*
17855   glibcpp_cv_func__sincosl_use=no
17856 fi
17857 rm -f conftest*
17858       ac_ext=c
17859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17860 ac_cpp='$CPP $CPPFLAGS'
17861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17863 cross_compiling=$ac_cv_prog_cc_cross
17864
17865     
17866 fi
17867
17868   fi
17869   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
17870
17871     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
17872       for ac_func in _sincosl
17873 do
17874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17875 echo "configure:17876: checking for $ac_func" >&5
17876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17877   echo $ac_n "(cached) $ac_c" 1>&6
17878 else
17879   cat > conftest.$ac_ext <<EOF
17880 #line 17881 "configure"
17881 #include "confdefs.h"
17882 /* System header to define __stub macros and hopefully few prototypes,
17883     which can conflict with char $ac_func(); below.  */
17884 #include <assert.h>
17885 /* Override any gcc2 internal prototype to avoid an error.  */
17886 /* We use char because int might match the return type of a gcc2
17887     builtin and then its argument prototype would still apply.  */
17888 char $ac_func();
17889
17890 int main() {
17891
17892 /* The GNU C library defines this for functions which it implements
17893     to always fail with ENOSYS.  Some functions are actually named
17894     something starting with __ and the normal name is an alias.  */
17895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17896 choke me
17897 #else
17898 $ac_func();
17899 #endif
17900
17901 ; return 0; }
17902 EOF
17903 if { (eval echo configure:17904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17904   rm -rf conftest*
17905   eval "ac_cv_func_$ac_func=yes"
17906 else
17907   echo "configure: failed program was:" >&5
17908   cat conftest.$ac_ext >&5
17909   rm -rf conftest*
17910   eval "ac_cv_func_$ac_func=no"
17911 fi
17912 rm -f conftest*
17913 fi
17914
17915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17916   echo "$ac_t""yes" 1>&6
17917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17918   cat >> confdefs.h <<EOF
17919 #define $ac_tr_func 1
17920 EOF
17921  
17922 else
17923   echo "$ac_t""no" 1>&6
17924 fi
17925 done
17926     
17927     fi
17928   fi
17929
17930   
17931   
17932   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17933 echo "configure:17934: checking for finitel declaration" >&5
17934   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17935     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17936   echo $ac_n "(cached) $ac_c" 1>&6
17937 else
17938   
17939       
17940       ac_ext=C
17941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17942 ac_cpp='$CXXCPP $CPPFLAGS'
17943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17945 cross_compiling=$ac_cv_prog_cxx_cross
17946
17947       cat > conftest.$ac_ext <<EOF
17948 #line 17949 "configure"
17949 #include "confdefs.h"
17950 #include <math.h>
17951                       #ifdef HAVE_IEEEFP_H
17952                       #include <ieeefp.h>
17953                       #endif
17954                      
17955 int main() {
17956  finitel(0);
17957 ; return 0; }
17958 EOF
17959 if { (eval echo configure:17960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17960   rm -rf conftest*
17961   glibcpp_cv_func_finitel_use=yes
17962 else
17963   echo "configure: failed program was:" >&5
17964   cat conftest.$ac_ext >&5
17965   rm -rf conftest*
17966   glibcpp_cv_func_finitel_use=no
17967 fi
17968 rm -f conftest*
17969       ac_ext=c
17970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17974 cross_compiling=$ac_cv_prog_cc_cross
17975
17976     
17977 fi
17978
17979   fi
17980   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17981
17982   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17983     for ac_func in finitel
17984 do
17985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17986 echo "configure:17987: checking for $ac_func" >&5
17987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17988   echo $ac_n "(cached) $ac_c" 1>&6
17989 else
17990   cat > conftest.$ac_ext <<EOF
17991 #line 17992 "configure"
17992 #include "confdefs.h"
17993 /* System header to define __stub macros and hopefully few prototypes,
17994     which can conflict with char $ac_func(); below.  */
17995 #include <assert.h>
17996 /* Override any gcc2 internal prototype to avoid an error.  */
17997 /* We use char because int might match the return type of a gcc2
17998     builtin and then its argument prototype would still apply.  */
17999 char $ac_func();
18000
18001 int main() {
18002
18003 /* The GNU C library defines this for functions which it implements
18004     to always fail with ENOSYS.  Some functions are actually named
18005     something starting with __ and the normal name is an alias.  */
18006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18007 choke me
18008 #else
18009 $ac_func();
18010 #endif
18011
18012 ; return 0; }
18013 EOF
18014 if { (eval echo configure:18015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18015   rm -rf conftest*
18016   eval "ac_cv_func_$ac_func=yes"
18017 else
18018   echo "configure: failed program was:" >&5
18019   cat conftest.$ac_ext >&5
18020   rm -rf conftest*
18021   eval "ac_cv_func_$ac_func=no"
18022 fi
18023 rm -f conftest*
18024 fi
18025
18026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18027   echo "$ac_t""yes" 1>&6
18028     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18029   cat >> confdefs.h <<EOF
18030 #define $ac_tr_func 1
18031 EOF
18032  
18033 else
18034   echo "$ac_t""no" 1>&6
18035 fi
18036 done
18037     
18038   else
18039     
18040   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18041 echo "configure:18042: checking for _finitel declaration" >&5
18042   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18043     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18044   echo $ac_n "(cached) $ac_c" 1>&6
18045 else
18046   
18047       
18048       ac_ext=C
18049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18050 ac_cpp='$CXXCPP $CPPFLAGS'
18051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18053 cross_compiling=$ac_cv_prog_cxx_cross
18054
18055       cat > conftest.$ac_ext <<EOF
18056 #line 18057 "configure"
18057 #include "confdefs.h"
18058 #include <math.h>
18059                       #ifdef HAVE_IEEEFP_H
18060                       #include <ieeefp.h>
18061                       #endif
18062                      
18063 int main() {
18064  _finitel(0);
18065 ; return 0; }
18066 EOF
18067 if { (eval echo configure:18068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18068   rm -rf conftest*
18069   glibcpp_cv_func__finitel_use=yes
18070 else
18071   echo "configure: failed program was:" >&5
18072   cat conftest.$ac_ext >&5
18073   rm -rf conftest*
18074   glibcpp_cv_func__finitel_use=no
18075 fi
18076 rm -f conftest*
18077       ac_ext=c
18078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18082 cross_compiling=$ac_cv_prog_cc_cross
18083
18084     
18085 fi
18086
18087   fi
18088   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18089
18090     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18091       for ac_func in _finitel
18092 do
18093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18094 echo "configure:18095: checking for $ac_func" >&5
18095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18096   echo $ac_n "(cached) $ac_c" 1>&6
18097 else
18098   cat > conftest.$ac_ext <<EOF
18099 #line 18100 "configure"
18100 #include "confdefs.h"
18101 /* System header to define __stub macros and hopefully few prototypes,
18102     which can conflict with char $ac_func(); below.  */
18103 #include <assert.h>
18104 /* Override any gcc2 internal prototype to avoid an error.  */
18105 /* We use char because int might match the return type of a gcc2
18106     builtin and then its argument prototype would still apply.  */
18107 char $ac_func();
18108
18109 int main() {
18110
18111 /* The GNU C library defines this for functions which it implements
18112     to always fail with ENOSYS.  Some functions are actually named
18113     something starting with __ and the normal name is an alias.  */
18114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18115 choke me
18116 #else
18117 $ac_func();
18118 #endif
18119
18120 ; return 0; }
18121 EOF
18122 if { (eval echo configure:18123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18123   rm -rf conftest*
18124   eval "ac_cv_func_$ac_func=yes"
18125 else
18126   echo "configure: failed program was:" >&5
18127   cat conftest.$ac_ext >&5
18128   rm -rf conftest*
18129   eval "ac_cv_func_$ac_func=no"
18130 fi
18131 rm -f conftest*
18132 fi
18133
18134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18135   echo "$ac_t""yes" 1>&6
18136     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18137   cat >> confdefs.h <<EOF
18138 #define $ac_tr_func 1
18139 EOF
18140  
18141 else
18142   echo "$ac_t""no" 1>&6
18143 fi
18144 done
18145     
18146     fi
18147   fi
18148
18149
18150         
18151     
18152   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
18153 echo "configure:18154: checking for _float trig functions" >&5
18154   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
18155   echo $ac_n "(cached) $ac_c" 1>&6
18156 else
18157   
18158     
18159     ac_ext=C
18160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18161 ac_cpp='$CXXCPP $CPPFLAGS'
18162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18164 cross_compiling=$ac_cv_prog_cxx_cross
18165
18166     cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18169 #include <math.h>
18170 int main() {
18171  `for x in _acosf _asinf _atanf \
18172                                           _cosf _sinf _tanf \
18173                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
18174 ; return 0; }
18175 EOF
18176 if { (eval echo configure:18177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18177   rm -rf conftest*
18178   glibcpp_cv_func__float_trig_use=yes
18179 else
18180   echo "configure: failed program was:" >&5
18181   cat conftest.$ac_ext >&5
18182   rm -rf conftest*
18183   glibcpp_cv_func__float_trig_use=no
18184 fi
18185 rm -f conftest*
18186     ac_ext=c
18187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18188 ac_cpp='$CPP $CPPFLAGS'
18189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18191 cross_compiling=$ac_cv_prog_cc_cross
18192
18193 fi
18194
18195   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
18196   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
18197     for ac_func in _acosf _asinf _atanf \
18198                                           _cosf _sinf _tanf \
18199                                           _coshf _sinhf _tanhf
18200 do
18201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18202 echo "configure:18203: checking for $ac_func" >&5
18203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18204   echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18206   cat > conftest.$ac_ext <<EOF
18207 #line 18208 "configure"
18208 #include "confdefs.h"
18209 /* System header to define __stub macros and hopefully few prototypes,
18210     which can conflict with char $ac_func(); below.  */
18211 #include <assert.h>
18212 /* Override any gcc2 internal prototype to avoid an error.  */
18213 /* We use char because int might match the return type of a gcc2
18214     builtin and then its argument prototype would still apply.  */
18215 char $ac_func();
18216
18217 int main() {
18218
18219 /* The GNU C library defines this for functions which it implements
18220     to always fail with ENOSYS.  Some functions are actually named
18221     something starting with __ and the normal name is an alias.  */
18222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18223 choke me
18224 #else
18225 $ac_func();
18226 #endif
18227
18228 ; return 0; }
18229 EOF
18230 if { (eval echo configure:18231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18231   rm -rf conftest*
18232   eval "ac_cv_func_$ac_func=yes"
18233 else
18234   echo "configure: failed program was:" >&5
18235   cat conftest.$ac_ext >&5
18236   rm -rf conftest*
18237   eval "ac_cv_func_$ac_func=no"
18238 fi
18239 rm -f conftest*
18240 fi
18241
18242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18243   echo "$ac_t""yes" 1>&6
18244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18245   cat >> confdefs.h <<EOF
18246 #define $ac_tr_func 1
18247 EOF
18248  
18249 else
18250   echo "$ac_t""no" 1>&6
18251 fi
18252 done
18253
18254   fi
18255
18256   
18257   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
18258 echo "configure:18259: checking for _float round functions" >&5
18259   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
18260   echo $ac_n "(cached) $ac_c" 1>&6
18261 else
18262   
18263     
18264     ac_ext=C
18265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18266 ac_cpp='$CXXCPP $CPPFLAGS'
18267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18269 cross_compiling=$ac_cv_prog_cxx_cross
18270
18271     cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18274 #include <math.h>
18275 int main() {
18276  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
18277 ; return 0; }
18278 EOF
18279 if { (eval echo configure:18280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18280   rm -rf conftest*
18281   glibcpp_cv_func__float_round_use=yes
18282 else
18283   echo "configure: failed program was:" >&5
18284   cat conftest.$ac_ext >&5
18285   rm -rf conftest*
18286   glibcpp_cv_func__float_round_use=no
18287 fi
18288 rm -f conftest*
18289     ac_ext=c
18290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18291 ac_cpp='$CPP $CPPFLAGS'
18292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18294 cross_compiling=$ac_cv_prog_cc_cross
18295
18296 fi
18297
18298   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
18299   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
18300     for ac_func in _ceilf _floorf
18301 do
18302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18303 echo "configure:18304: checking for $ac_func" >&5
18304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18305   echo $ac_n "(cached) $ac_c" 1>&6
18306 else
18307   cat > conftest.$ac_ext <<EOF
18308 #line 18309 "configure"
18309 #include "confdefs.h"
18310 /* System header to define __stub macros and hopefully few prototypes,
18311     which can conflict with char $ac_func(); below.  */
18312 #include <assert.h>
18313 /* Override any gcc2 internal prototype to avoid an error.  */
18314 /* We use char because int might match the return type of a gcc2
18315     builtin and then its argument prototype would still apply.  */
18316 char $ac_func();
18317
18318 int main() {
18319
18320 /* The GNU C library defines this for functions which it implements
18321     to always fail with ENOSYS.  Some functions are actually named
18322     something starting with __ and the normal name is an alias.  */
18323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18324 choke me
18325 #else
18326 $ac_func();
18327 #endif
18328
18329 ; return 0; }
18330 EOF
18331 if { (eval echo configure:18332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18332   rm -rf conftest*
18333   eval "ac_cv_func_$ac_func=yes"
18334 else
18335   echo "configure: failed program was:" >&5
18336   cat conftest.$ac_ext >&5
18337   rm -rf conftest*
18338   eval "ac_cv_func_$ac_func=no"
18339 fi
18340 rm -f conftest*
18341 fi
18342
18343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18344   echo "$ac_t""yes" 1>&6
18345     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18346   cat >> confdefs.h <<EOF
18347 #define $ac_tr_func 1
18348 EOF
18349  
18350 else
18351   echo "$ac_t""no" 1>&6
18352 fi
18353 done
18354
18355   fi
18356
18357
18358     
18359   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
18360 echo "configure:18361: checking for _long double trig functions" >&5
18361   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
18362   echo $ac_n "(cached) $ac_c" 1>&6
18363 else
18364   
18365     
18366     ac_ext=C
18367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18368 ac_cpp='$CXXCPP $CPPFLAGS'
18369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18371 cross_compiling=$ac_cv_prog_cxx_cross
18372
18373     cat > conftest.$ac_ext <<EOF
18374 #line 18375 "configure"
18375 #include "confdefs.h"
18376 #include <math.h>
18377 int main() {
18378  `for x in _acosl _asinl _atanl \
18379                                           _cosl _sinl _tanl \
18380                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
18381 ; return 0; }
18382 EOF
18383 if { (eval echo configure:18384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18384   rm -rf conftest*
18385   glibcpp_cv_func__long_double_trig_use=yes
18386 else
18387   echo "configure: failed program was:" >&5
18388   cat conftest.$ac_ext >&5
18389   rm -rf conftest*
18390   glibcpp_cv_func__long_double_trig_use=no
18391 fi
18392 rm -f conftest*
18393     ac_ext=c
18394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18395 ac_cpp='$CPP $CPPFLAGS'
18396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18398 cross_compiling=$ac_cv_prog_cc_cross
18399
18400 fi
18401
18402   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
18403   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
18404     for ac_func in _acosl _asinl _atanl \
18405                                           _cosl _sinl _tanl \
18406                                           _coshl _sinhl _tanhl
18407 do
18408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18409 echo "configure:18410: checking for $ac_func" >&5
18410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18411   echo $ac_n "(cached) $ac_c" 1>&6
18412 else
18413   cat > conftest.$ac_ext <<EOF
18414 #line 18415 "configure"
18415 #include "confdefs.h"
18416 /* System header to define __stub macros and hopefully few prototypes,
18417     which can conflict with char $ac_func(); below.  */
18418 #include <assert.h>
18419 /* Override any gcc2 internal prototype to avoid an error.  */
18420 /* We use char because int might match the return type of a gcc2
18421     builtin and then its argument prototype would still apply.  */
18422 char $ac_func();
18423
18424 int main() {
18425
18426 /* The GNU C library defines this for functions which it implements
18427     to always fail with ENOSYS.  Some functions are actually named
18428     something starting with __ and the normal name is an alias.  */
18429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18430 choke me
18431 #else
18432 $ac_func();
18433 #endif
18434
18435 ; return 0; }
18436 EOF
18437 if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18438   rm -rf conftest*
18439   eval "ac_cv_func_$ac_func=yes"
18440 else
18441   echo "configure: failed program was:" >&5
18442   cat conftest.$ac_ext >&5
18443   rm -rf conftest*
18444   eval "ac_cv_func_$ac_func=no"
18445 fi
18446 rm -f conftest*
18447 fi
18448
18449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18450   echo "$ac_t""yes" 1>&6
18451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18452   cat >> confdefs.h <<EOF
18453 #define $ac_tr_func 1
18454 EOF
18455  
18456 else
18457   echo "$ac_t""no" 1>&6
18458 fi
18459 done
18460
18461   fi
18462
18463   
18464   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
18465 echo "configure:18466: checking for _long double round functions" >&5
18466   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
18467   echo $ac_n "(cached) $ac_c" 1>&6
18468 else
18469   
18470     
18471     ac_ext=C
18472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18473 ac_cpp='$CXXCPP $CPPFLAGS'
18474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18476 cross_compiling=$ac_cv_prog_cxx_cross
18477
18478     cat > conftest.$ac_ext <<EOF
18479 #line 18480 "configure"
18480 #include "confdefs.h"
18481 #include <math.h>
18482 int main() {
18483  `for x in _ceill _floorl; do echo "$x (0);"; done` 
18484 ; return 0; }
18485 EOF
18486 if { (eval echo configure:18487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18487   rm -rf conftest*
18488   glibcpp_cv_func__long_double_round_use=yes
18489 else
18490   echo "configure: failed program was:" >&5
18491   cat conftest.$ac_ext >&5
18492   rm -rf conftest*
18493   glibcpp_cv_func__long_double_round_use=no
18494 fi
18495 rm -f conftest*
18496     ac_ext=c
18497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18501 cross_compiling=$ac_cv_prog_cc_cross
18502
18503 fi
18504
18505   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
18506   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
18507     for ac_func in _ceill _floorl
18508 do
18509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18510 echo "configure:18511: checking for $ac_func" >&5
18511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18512   echo $ac_n "(cached) $ac_c" 1>&6
18513 else
18514   cat > conftest.$ac_ext <<EOF
18515 #line 18516 "configure"
18516 #include "confdefs.h"
18517 /* System header to define __stub macros and hopefully few prototypes,
18518     which can conflict with char $ac_func(); below.  */
18519 #include <assert.h>
18520 /* Override any gcc2 internal prototype to avoid an error.  */
18521 /* We use char because int might match the return type of a gcc2
18522     builtin and then its argument prototype would still apply.  */
18523 char $ac_func();
18524
18525 int main() {
18526
18527 /* The GNU C library defines this for functions which it implements
18528     to always fail with ENOSYS.  Some functions are actually named
18529     something starting with __ and the normal name is an alias.  */
18530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18531 choke me
18532 #else
18533 $ac_func();
18534 #endif
18535
18536 ; return 0; }
18537 EOF
18538 if { (eval echo configure:18539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539   rm -rf conftest*
18540   eval "ac_cv_func_$ac_func=yes"
18541 else
18542   echo "configure: failed program was:" >&5
18543   cat conftest.$ac_ext >&5
18544   rm -rf conftest*
18545   eval "ac_cv_func_$ac_func=no"
18546 fi
18547 rm -f conftest*
18548 fi
18549
18550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18551   echo "$ac_t""yes" 1>&6
18552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18553   cat >> confdefs.h <<EOF
18554 #define $ac_tr_func 1
18555 EOF
18556  
18557 else
18558   echo "$ac_t""no" 1>&6
18559 fi
18560 done
18561
18562   fi
18563
18564
18565   LIBS="$ac_save_LIBS"
18566   CXXFLAGS="$ac_save_CXXFLAGS"
18567
18568   
18569     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
18570 echo "configure:18571: checking for main in -lm" >&5
18571 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
18572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18573   echo $ac_n "(cached) $ac_c" 1>&6
18574 else
18575   ac_save_LIBS="$LIBS"
18576 LIBS="-lm  $LIBS"
18577 cat > conftest.$ac_ext <<EOF
18578 #line 18579 "configure"
18579 #include "confdefs.h"
18580
18581 int main() {
18582 main()
18583 ; return 0; }
18584 EOF
18585 if { (eval echo configure:18586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18586   rm -rf conftest*
18587   eval "ac_cv_lib_$ac_lib_var=yes"
18588 else
18589   echo "configure: failed program was:" >&5
18590   cat conftest.$ac_ext >&5
18591   rm -rf conftest*
18592   eval "ac_cv_lib_$ac_lib_var=no"
18593 fi
18594 rm -f conftest*
18595 LIBS="$ac_save_LIBS"
18596
18597 fi
18598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18599   echo "$ac_t""yes" 1>&6
18600     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
18601     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18602   cat >> confdefs.h <<EOF
18603 #define $ac_tr_lib 1
18604 EOF
18605
18606   LIBS="-lm $LIBS"
18607
18608 else
18609   echo "$ac_t""no" 1>&6
18610 fi
18611
18612   for ac_func in nan copysignf
18613 do
18614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18615 echo "configure:18616: checking for $ac_func" >&5
18616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18617   echo $ac_n "(cached) $ac_c" 1>&6
18618 else
18619   cat > conftest.$ac_ext <<EOF
18620 #line 18621 "configure"
18621 #include "confdefs.h"
18622 /* System header to define __stub macros and hopefully few prototypes,
18623     which can conflict with char $ac_func(); below.  */
18624 #include <assert.h>
18625 /* Override any gcc2 internal prototype to avoid an error.  */
18626 /* We use char because int might match the return type of a gcc2
18627     builtin and then its argument prototype would still apply.  */
18628 char $ac_func();
18629
18630 int main() {
18631
18632 /* The GNU C library defines this for functions which it implements
18633     to always fail with ENOSYS.  Some functions are actually named
18634     something starting with __ and the normal name is an alias.  */
18635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18636 choke me
18637 #else
18638 $ac_func();
18639 #endif
18640
18641 ; return 0; }
18642 EOF
18643 if { (eval echo configure:18644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18644   rm -rf conftest*
18645   eval "ac_cv_func_$ac_func=yes"
18646 else
18647   echo "configure: failed program was:" >&5
18648   cat conftest.$ac_ext >&5
18649   rm -rf conftest*
18650   eval "ac_cv_func_$ac_func=no"
18651 fi
18652 rm -f conftest*
18653 fi
18654
18655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18656   echo "$ac_t""yes" 1>&6
18657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18658   cat >> confdefs.h <<EOF
18659 #define $ac_tr_func 1
18660 EOF
18661  
18662 else
18663   echo "$ac_t""no" 1>&6
18664 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18665 fi
18666 done
18667
18668
18669
18670           USE_COMPLEX_LONG_DOUBLE=no
18671   if test x$ac_cv_func_copysignl = x"yes"; then
18672     USE_COMPLEX_LONG_DOUBLE=yes
18673     for ac_func in signbitl
18674 do
18675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18676 echo "configure:18677: checking for $ac_func" >&5
18677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18678   echo $ac_n "(cached) $ac_c" 1>&6
18679 else
18680   cat > conftest.$ac_ext <<EOF
18681 #line 18682 "configure"
18682 #include "confdefs.h"
18683 /* System header to define __stub macros and hopefully few prototypes,
18684     which can conflict with char $ac_func(); below.  */
18685 #include <assert.h>
18686 /* Override any gcc2 internal prototype to avoid an error.  */
18687 /* We use char because int might match the return type of a gcc2
18688     builtin and then its argument prototype would still apply.  */
18689 char $ac_func();
18690
18691 int main() {
18692
18693 /* The GNU C library defines this for functions which it implements
18694     to always fail with ENOSYS.  Some functions are actually named
18695     something starting with __ and the normal name is an alias.  */
18696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18697 choke me
18698 #else
18699 $ac_func();
18700 #endif
18701
18702 ; return 0; }
18703 EOF
18704 if { (eval echo configure:18705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18705   rm -rf conftest*
18706   eval "ac_cv_func_$ac_func=yes"
18707 else
18708   echo "configure: failed program was:" >&5
18709   cat conftest.$ac_ext >&5
18710   rm -rf conftest*
18711   eval "ac_cv_func_$ac_func=no"
18712 fi
18713 rm -f conftest*
18714 fi
18715
18716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18717   echo "$ac_t""yes" 1>&6
18718     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18719   cat >> confdefs.h <<EOF
18720 #define $ac_tr_func 1
18721 EOF
18722  
18723 else
18724   echo "$ac_t""no" 1>&6
18725 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18726 fi
18727 done
18728
18729
18730   fi
18731
18732   
18733
18734   
18735
18736       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
18737 echo "configure:18738: checking for mbstate_t" >&5
18738   cat > conftest.$ac_ext <<EOF
18739 #line 18740 "configure"
18740 #include "confdefs.h"
18741 #include <wchar.h>
18742 int main() {
18743 mbstate_t teststate;
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   have_mbstate_t=yes
18749 else
18750   echo "configure: failed program was:" >&5
18751   cat conftest.$ac_ext >&5
18752   rm -rf conftest*
18753   have_mbstate_t=no
18754 fi
18755 rm -f conftest*
18756   echo "$ac_t""$have_mbstate_t" 1>&6
18757   if test x"$have_mbstate_t" = xyes; then
18758     cat >> confdefs.h <<\EOF
18759 #define HAVE_MBSTATE_T 1
18760 EOF
18761
18762   fi
18763
18764     for ac_hdr in wchar.h
18765 do
18766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18768 echo "configure:18769: checking for $ac_hdr" >&5
18769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18770   echo $ac_n "(cached) $ac_c" 1>&6
18771 else
18772   cat > conftest.$ac_ext <<EOF
18773 #line 18774 "configure"
18774 #include "confdefs.h"
18775 #include <$ac_hdr>
18776 EOF
18777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18778 { (eval echo configure:18779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18780 if test -z "$ac_err"; then
18781   rm -rf conftest*
18782   eval "ac_cv_header_$ac_safe=yes"
18783 else
18784   echo "$ac_err" >&5
18785   echo "configure: failed program was:" >&5
18786   cat conftest.$ac_ext >&5
18787   rm -rf conftest*
18788   eval "ac_cv_header_$ac_safe=no"
18789 fi
18790 rm -f conftest*
18791 fi
18792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18793   echo "$ac_t""yes" 1>&6
18794     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18795   cat >> confdefs.h <<EOF
18796 #define $ac_tr_hdr 1
18797 EOF
18798  ac_has_wchar_h=yes
18799 else
18800   echo "$ac_t""no" 1>&6
18801 ac_has_wchar_h=no
18802 fi
18803 done
18804
18805   for ac_hdr in wctype.h
18806 do
18807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18809 echo "configure:18810: checking for $ac_hdr" >&5
18810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18811   echo $ac_n "(cached) $ac_c" 1>&6
18812 else
18813   cat > conftest.$ac_ext <<EOF
18814 #line 18815 "configure"
18815 #include "confdefs.h"
18816 #include <$ac_hdr>
18817 EOF
18818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18819 { (eval echo configure:18820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18821 if test -z "$ac_err"; then
18822   rm -rf conftest*
18823   eval "ac_cv_header_$ac_safe=yes"
18824 else
18825   echo "$ac_err" >&5
18826   echo "configure: failed program was:" >&5
18827   cat conftest.$ac_ext >&5
18828   rm -rf conftest*
18829   eval "ac_cv_header_$ac_safe=no"
18830 fi
18831 rm -f conftest*
18832 fi
18833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18834   echo "$ac_t""yes" 1>&6
18835     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18836   cat >> confdefs.h <<EOF
18837 #define $ac_tr_hdr 1
18838 EOF
18839  ac_has_wctype_h=yes
18840 else
18841   echo "$ac_t""no" 1>&6
18842 ac_has_wctype_h=no
18843 fi
18844 done
18845
18846   
18847     if test x"$ac_has_wchar_h" = xyes &&
18848      test x"$ac_has_wctype_h" = xyes &&
18849      test x"$enable_c_mbchar" != xno; then
18850       
18851             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
18852 echo "configure:18853: checking for WCHAR_MIN and WCHAR_MAX" >&5
18853     cat > conftest.$ac_ext <<EOF
18854 #line 18855 "configure"
18855 #include "confdefs.h"
18856 #include <wchar.h>
18857 int main() {
18858 int i = WCHAR_MIN; int j = WCHAR_MAX;
18859 ; return 0; }
18860 EOF
18861 if { (eval echo configure:18862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18862   rm -rf conftest*
18863   has_wchar_minmax=yes
18864 else
18865   echo "configure: failed program was:" >&5
18866   cat conftest.$ac_ext >&5
18867   rm -rf conftest*
18868   has_wchar_minmax=no
18869 fi
18870 rm -f conftest*
18871     echo "$ac_t""$has_wchar_minmax" 1>&6
18872     
18873             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
18874 echo "configure:18875: checking for WEOF" >&5
18875     cat > conftest.$ac_ext <<EOF
18876 #line 18877 "configure"
18877 #include "confdefs.h"
18878
18879       #include <wchar.h>
18880       #include <stddef.h>
18881 int main() {
18882 wint_t i = WEOF;
18883 ; return 0; }
18884 EOF
18885 if { (eval echo configure:18886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18886   rm -rf conftest*
18887   has_weof=yes
18888 else
18889   echo "configure: failed program was:" >&5
18890   cat conftest.$ac_ext >&5
18891   rm -rf conftest*
18892   has_weof=no
18893 fi
18894 rm -f conftest*
18895     echo "$ac_t""$has_weof" 1>&6
18896   
18897         ac_wfuncs=yes
18898     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18899 do
18900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18901 echo "configure:18902: checking for $ac_func" >&5
18902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18903   echo $ac_n "(cached) $ac_c" 1>&6
18904 else
18905   cat > conftest.$ac_ext <<EOF
18906 #line 18907 "configure"
18907 #include "confdefs.h"
18908 /* System header to define __stub macros and hopefully few prototypes,
18909     which can conflict with char $ac_func(); below.  */
18910 #include <assert.h>
18911 /* Override any gcc2 internal prototype to avoid an error.  */
18912 /* We use char because int might match the return type of a gcc2
18913     builtin and then its argument prototype would still apply.  */
18914 char $ac_func();
18915
18916 int main() {
18917
18918 /* The GNU C library defines this for functions which it implements
18919     to always fail with ENOSYS.  Some functions are actually named
18920     something starting with __ and the normal name is an alias.  */
18921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18922 choke me
18923 #else
18924 $ac_func();
18925 #endif
18926
18927 ; return 0; }
18928 EOF
18929 if { (eval echo configure:18930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18930   rm -rf conftest*
18931   eval "ac_cv_func_$ac_func=yes"
18932 else
18933   echo "configure: failed program was:" >&5
18934   cat conftest.$ac_ext >&5
18935   rm -rf conftest*
18936   eval "ac_cv_func_$ac_func=no"
18937 fi
18938 rm -f conftest*
18939 fi
18940
18941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18942   echo "$ac_t""yes" 1>&6
18943     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18944   cat >> confdefs.h <<EOF
18945 #define $ac_tr_func 1
18946 EOF
18947  
18948 else
18949   echo "$ac_t""no" 1>&6
18950 \
18951     ac_wfuncs=no
18952 fi
18953 done
18954
18955   
18956         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18957     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18958     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18959     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18960     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18961     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18962 do
18963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18964 echo "configure:18965: checking for $ac_func" >&5
18965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18966   echo $ac_n "(cached) $ac_c" 1>&6
18967 else
18968   cat > conftest.$ac_ext <<EOF
18969 #line 18970 "configure"
18970 #include "confdefs.h"
18971 /* System header to define __stub macros and hopefully few prototypes,
18972     which can conflict with char $ac_func(); below.  */
18973 #include <assert.h>
18974 /* Override any gcc2 internal prototype to avoid an error.  */
18975 /* We use char because int might match the return type of a gcc2
18976     builtin and then its argument prototype would still apply.  */
18977 char $ac_func();
18978
18979 int main() {
18980
18981 /* The GNU C library defines this for functions which it implements
18982     to always fail with ENOSYS.  Some functions are actually named
18983     something starting with __ and the normal name is an alias.  */
18984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18985 choke me
18986 #else
18987 $ac_func();
18988 #endif
18989
18990 ; return 0; }
18991 EOF
18992 if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993   rm -rf conftest*
18994   eval "ac_cv_func_$ac_func=yes"
18995 else
18996   echo "configure: failed program was:" >&5
18997   cat conftest.$ac_ext >&5
18998   rm -rf conftest*
18999   eval "ac_cv_func_$ac_func=no"
19000 fi
19001 rm -f conftest*
19002 fi
19003
19004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19005   echo "$ac_t""yes" 1>&6
19006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19007   cat >> confdefs.h <<EOF
19008 #define $ac_tr_func 1
19009 EOF
19010  
19011 else
19012   echo "$ac_t""no" 1>&6
19013 \
19014     ac_wfuncs=no
19015 fi
19016 done
19017
19018
19019     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19020 echo "configure:19021: checking for ISO C99 wchar_t support" >&5
19021     if test x"$has_weof" = xyes &&
19022        test x"$has_wchar_minmax" = xyes &&
19023        test x"$ac_wfuncs" = xyes; then
19024       ac_isoC99_wchar_t=yes
19025     else
19026       ac_isoC99_wchar_t=no
19027     fi
19028     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19029   
19030             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19031 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19032 echo "configure:19033: checking for iconv.h" >&5
19033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19034   echo $ac_n "(cached) $ac_c" 1>&6
19035 else
19036   cat > conftest.$ac_ext <<EOF
19037 #line 19038 "configure"
19038 #include "confdefs.h"
19039 #include <iconv.h>
19040 EOF
19041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19042 { (eval echo configure:19043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19044 if test -z "$ac_err"; then
19045   rm -rf conftest*
19046   eval "ac_cv_header_$ac_safe=yes"
19047 else
19048   echo "$ac_err" >&5
19049   echo "configure: failed program was:" >&5
19050   cat conftest.$ac_ext >&5
19051   rm -rf conftest*
19052   eval "ac_cv_header_$ac_safe=no"
19053 fi
19054 rm -f conftest*
19055 fi
19056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19057   echo "$ac_t""yes" 1>&6
19058   ac_has_iconv_h=yes
19059 else
19060   echo "$ac_t""no" 1>&6
19061 ac_has_iconv_h=no
19062 fi
19063
19064     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
19065 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
19066 echo "configure:19067: checking for langinfo.h" >&5
19067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19068   echo $ac_n "(cached) $ac_c" 1>&6
19069 else
19070   cat > conftest.$ac_ext <<EOF
19071 #line 19072 "configure"
19072 #include "confdefs.h"
19073 #include <langinfo.h>
19074 EOF
19075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19076 { (eval echo configure:19077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19078 if test -z "$ac_err"; then
19079   rm -rf conftest*
19080   eval "ac_cv_header_$ac_safe=yes"
19081 else
19082   echo "$ac_err" >&5
19083   echo "configure: failed program was:" >&5
19084   cat conftest.$ac_ext >&5
19085   rm -rf conftest*
19086   eval "ac_cv_header_$ac_safe=no"
19087 fi
19088 rm -f conftest*
19089 fi
19090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19091   echo "$ac_t""yes" 1>&6
19092   ac_has_langinfo_h=yes
19093 else
19094   echo "$ac_t""no" 1>&6
19095 ac_has_langinfo_h=no
19096 fi
19097
19098
19099         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
19100 echo "configure:19101: checking for iconv in -liconv" >&5
19101 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
19102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19103   echo $ac_n "(cached) $ac_c" 1>&6
19104 else
19105   ac_save_LIBS="$LIBS"
19106 LIBS="-liconv  $LIBS"
19107 cat > conftest.$ac_ext <<EOF
19108 #line 19109 "configure"
19109 #include "confdefs.h"
19110 /* Override any gcc2 internal prototype to avoid an error.  */
19111 /* We use char because int might match the return type of a gcc2
19112     builtin and then its argument prototype would still apply.  */
19113 char iconv();
19114
19115 int main() {
19116 iconv()
19117 ; return 0; }
19118 EOF
19119 if { (eval echo configure:19120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19120   rm -rf conftest*
19121   eval "ac_cv_lib_$ac_lib_var=yes"
19122 else
19123   echo "configure: failed program was:" >&5
19124   cat conftest.$ac_ext >&5
19125   rm -rf conftest*
19126   eval "ac_cv_lib_$ac_lib_var=no"
19127 fi
19128 rm -f conftest*
19129 LIBS="$ac_save_LIBS"
19130
19131 fi
19132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19133   echo "$ac_t""yes" 1>&6
19134   libiconv="-liconv"
19135 else
19136   echo "$ac_t""no" 1>&6
19137 fi
19138
19139     ac_save_LIBS="$LIBS"
19140     LIBS="$LIBS $libiconv"
19141
19142     for ac_func in iconv_open iconv_close iconv nl_langinfo
19143 do
19144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19145 echo "configure:19146: checking for $ac_func" >&5
19146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19147   echo $ac_n "(cached) $ac_c" 1>&6
19148 else
19149   cat > conftest.$ac_ext <<EOF
19150 #line 19151 "configure"
19151 #include "confdefs.h"
19152 /* System header to define __stub macros and hopefully few prototypes,
19153     which can conflict with char $ac_func(); below.  */
19154 #include <assert.h>
19155 /* Override any gcc2 internal prototype to avoid an error.  */
19156 /* We use char because int might match the return type of a gcc2
19157     builtin and then its argument prototype would still apply.  */
19158 char $ac_func();
19159
19160 int main() {
19161
19162 /* The GNU C library defines this for functions which it implements
19163     to always fail with ENOSYS.  Some functions are actually named
19164     something starting with __ and the normal name is an alias.  */
19165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19166 choke me
19167 #else
19168 $ac_func();
19169 #endif
19170
19171 ; return 0; }
19172 EOF
19173 if { (eval echo configure:19174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19174   rm -rf conftest*
19175   eval "ac_cv_func_$ac_func=yes"
19176 else
19177   echo "configure: failed program was:" >&5
19178   cat conftest.$ac_ext >&5
19179   rm -rf conftest*
19180   eval "ac_cv_func_$ac_func=no"
19181 fi
19182 rm -f conftest*
19183 fi
19184
19185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19186   echo "$ac_t""yes" 1>&6
19187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19188   cat >> confdefs.h <<EOF
19189 #define $ac_tr_func 1
19190 EOF
19191  \
19192     ac_XPG2funcs=yes
19193 else
19194   echo "$ac_t""no" 1>&6
19195 ac_XPG2funcs=no
19196 fi
19197 done
19198
19199   
19200     LIBS="$ac_save_LIBS"
19201
19202     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
19203 echo "configure:19204: checking for XPG2 wchar_t support" >&5
19204     if test x"$ac_has_iconv_h" = xyes &&
19205        test x"$ac_has_langinfo_h" = xyes &&
19206        test x"$ac_XPG2funcs" = xyes; then
19207       ac_XPG2_wchar_t=yes
19208     else
19209       ac_XPG2_wchar_t=no
19210     fi
19211     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
19212   
19213             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
19214 echo "configure:19215: checking for enabled wchar_t specializations" >&5
19215     if test x"$ac_isoC99_wchar_t" = xyes &&
19216        test x"$ac_XPG2_wchar_t" = xyes; then
19217       cat >> confdefs.h <<\EOF
19218 #define _GLIBCPP_USE_WCHAR_T 1
19219 EOF
19220
19221       echo "$ac_t"""yes"" 1>&6
19222     else
19223       echo "$ac_t"""no"" 1>&6
19224     fi
19225   else
19226         echo "configure: warning: wchar_t support disabled." 1>&2
19227   fi
19228
19229   
19230   ac_test_CXXFLAGS="${CXXFLAGS+set}"
19231   ac_save_CXXFLAGS="$CXXFLAGS"
19232   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
19233
19234   
19235   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
19236 echo "configure:19237: checking for strtold declaration" >&5
19237   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
19238     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
19239   echo $ac_n "(cached) $ac_c" 1>&6
19240 else
19241   
19242       
19243       ac_ext=C
19244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19248 cross_compiling=$ac_cv_prog_cxx_cross
19249
19250       cat > conftest.$ac_ext <<EOF
19251 #line 19252 "configure"
19252 #include "confdefs.h"
19253 #include <stdlib.h>
19254 int main() {
19255  strtold(0, 0);
19256 ; return 0; }
19257 EOF
19258 if { (eval echo configure:19259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19259   rm -rf conftest*
19260   glibcpp_cv_func_strtold_use=yes
19261 else
19262   echo "configure: failed program was:" >&5
19263   cat conftest.$ac_ext >&5
19264   rm -rf conftest*
19265   glibcpp_cv_func_strtold_use=no
19266 fi
19267 rm -f conftest*
19268       ac_ext=c
19269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19270 ac_cpp='$CPP $CPPFLAGS'
19271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19273 cross_compiling=$ac_cv_prog_cc_cross
19274
19275     
19276 fi
19277
19278   fi
19279   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
19280   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
19281     for ac_func in strtold
19282 do
19283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19284 echo "configure:19285: checking for $ac_func" >&5
19285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19286   echo $ac_n "(cached) $ac_c" 1>&6
19287 else
19288   cat > conftest.$ac_ext <<EOF
19289 #line 19290 "configure"
19290 #include "confdefs.h"
19291 /* System header to define __stub macros and hopefully few prototypes,
19292     which can conflict with char $ac_func(); below.  */
19293 #include <assert.h>
19294 /* Override any gcc2 internal prototype to avoid an error.  */
19295 /* We use char because int might match the return type of a gcc2
19296     builtin and then its argument prototype would still apply.  */
19297 char $ac_func();
19298
19299 int main() {
19300
19301 /* The GNU C library defines this for functions which it implements
19302     to always fail with ENOSYS.  Some functions are actually named
19303     something starting with __ and the normal name is an alias.  */
19304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19305 choke me
19306 #else
19307 $ac_func();
19308 #endif
19309
19310 ; return 0; }
19311 EOF
19312 if { (eval echo configure:19313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19313   rm -rf conftest*
19314   eval "ac_cv_func_$ac_func=yes"
19315 else
19316   echo "configure: failed program was:" >&5
19317   cat conftest.$ac_ext >&5
19318   rm -rf conftest*
19319   eval "ac_cv_func_$ac_func=no"
19320 fi
19321 rm -f conftest*
19322 fi
19323
19324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19325   echo "$ac_t""yes" 1>&6
19326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19327   cat >> confdefs.h <<EOF
19328 #define $ac_tr_func 1
19329 EOF
19330  
19331 else
19332   echo "$ac_t""no" 1>&6
19333 fi
19334 done
19335     
19336   fi
19337
19338   
19339   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
19340 echo "configure:19341: checking for strtof declaration" >&5
19341   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
19342     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
19343   echo $ac_n "(cached) $ac_c" 1>&6
19344 else
19345   
19346       
19347       ac_ext=C
19348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19349 ac_cpp='$CXXCPP $CPPFLAGS'
19350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19352 cross_compiling=$ac_cv_prog_cxx_cross
19353
19354       cat > conftest.$ac_ext <<EOF
19355 #line 19356 "configure"
19356 #include "confdefs.h"
19357 #include <stdlib.h>
19358 int main() {
19359  strtof(0, 0);
19360 ; return 0; }
19361 EOF
19362 if { (eval echo configure:19363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19363   rm -rf conftest*
19364   glibcpp_cv_func_strtof_use=yes
19365 else
19366   echo "configure: failed program was:" >&5
19367   cat conftest.$ac_ext >&5
19368   rm -rf conftest*
19369   glibcpp_cv_func_strtof_use=no
19370 fi
19371 rm -f conftest*
19372       ac_ext=c
19373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19377 cross_compiling=$ac_cv_prog_cc_cross
19378
19379     
19380 fi
19381
19382   fi
19383   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
19384   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
19385     for ac_func in strtof
19386 do
19387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19388 echo "configure:19389: checking for $ac_func" >&5
19389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19390   echo $ac_n "(cached) $ac_c" 1>&6
19391 else
19392   cat > conftest.$ac_ext <<EOF
19393 #line 19394 "configure"
19394 #include "confdefs.h"
19395 /* System header to define __stub macros and hopefully few prototypes,
19396     which can conflict with char $ac_func(); below.  */
19397 #include <assert.h>
19398 /* Override any gcc2 internal prototype to avoid an error.  */
19399 /* We use char because int might match the return type of a gcc2
19400     builtin and then its argument prototype would still apply.  */
19401 char $ac_func();
19402
19403 int main() {
19404
19405 /* The GNU C library defines this for functions which it implements
19406     to always fail with ENOSYS.  Some functions are actually named
19407     something starting with __ and the normal name is an alias.  */
19408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19409 choke me
19410 #else
19411 $ac_func();
19412 #endif
19413
19414 ; return 0; }
19415 EOF
19416 if { (eval echo configure:19417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19417   rm -rf conftest*
19418   eval "ac_cv_func_$ac_func=yes"
19419 else
19420   echo "configure: failed program was:" >&5
19421   cat conftest.$ac_ext >&5
19422   rm -rf conftest*
19423   eval "ac_cv_func_$ac_func=no"
19424 fi
19425 rm -f conftest*
19426 fi
19427
19428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19429   echo "$ac_t""yes" 1>&6
19430     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19431   cat >> confdefs.h <<EOF
19432 #define $ac_tr_func 1
19433 EOF
19434  
19435 else
19436   echo "$ac_t""no" 1>&6
19437 fi
19438 done
19439     
19440   fi
19441
19442   for ac_func in drand48
19443 do
19444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19445 echo "configure:19446: checking for $ac_func" >&5
19446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19447   echo $ac_n "(cached) $ac_c" 1>&6
19448 else
19449   cat > conftest.$ac_ext <<EOF
19450 #line 19451 "configure"
19451 #include "confdefs.h"
19452 /* System header to define __stub macros and hopefully few prototypes,
19453     which can conflict with char $ac_func(); below.  */
19454 #include <assert.h>
19455 /* Override any gcc2 internal prototype to avoid an error.  */
19456 /* We use char because int might match the return type of a gcc2
19457     builtin and then its argument prototype would still apply.  */
19458 char $ac_func();
19459
19460 int main() {
19461
19462 /* The GNU C library defines this for functions which it implements
19463     to always fail with ENOSYS.  Some functions are actually named
19464     something starting with __ and the normal name is an alias.  */
19465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19466 choke me
19467 #else
19468 $ac_func();
19469 #endif
19470
19471 ; return 0; }
19472 EOF
19473 if { (eval echo configure:19474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19474   rm -rf conftest*
19475   eval "ac_cv_func_$ac_func=yes"
19476 else
19477   echo "configure: failed program was:" >&5
19478   cat conftest.$ac_ext >&5
19479   rm -rf conftest*
19480   eval "ac_cv_func_$ac_func=no"
19481 fi
19482 rm -f conftest*
19483 fi
19484
19485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19486   echo "$ac_t""yes" 1>&6
19487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19488   cat >> confdefs.h <<EOF
19489 #define $ac_tr_func 1
19490 EOF
19491  
19492 else
19493   echo "$ac_t""no" 1>&6
19494 fi
19495 done
19496
19497
19498   CXXFLAGS="$ac_save_CXXFLAGS"
19499
19500   
19501   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
19502 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
19503 echo "configure:19504: checking for locale.h" >&5
19504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19505   echo $ac_n "(cached) $ac_c" 1>&6
19506 else
19507   cat > conftest.$ac_ext <<EOF
19508 #line 19509 "configure"
19509 #include "confdefs.h"
19510 #include <locale.h>
19511 EOF
19512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19513 { (eval echo configure:19514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19515 if test -z "$ac_err"; then
19516   rm -rf conftest*
19517   eval "ac_cv_header_$ac_safe=yes"
19518 else
19519   echo "$ac_err" >&5
19520   echo "configure: failed program was:" >&5
19521   cat conftest.$ac_ext >&5
19522   rm -rf conftest*
19523   eval "ac_cv_header_$ac_safe=no"
19524 fi
19525 rm -f conftest*
19526 fi
19527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19528   echo "$ac_t""yes" 1>&6
19529   
19530     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
19531 echo "configure:19532: checking for LC_MESSAGES" >&5
19532 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
19533   echo $ac_n "(cached) $ac_c" 1>&6
19534 else
19535   cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19538 #include <locale.h>
19539 int main() {
19540 return LC_MESSAGES
19541 ; return 0; }
19542 EOF
19543 if { (eval echo configure:19544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19544   rm -rf conftest*
19545   ac_cv_val_LC_MESSAGES=yes
19546 else
19547   echo "configure: failed program was:" >&5
19548   cat conftest.$ac_ext >&5
19549   rm -rf conftest*
19550   ac_cv_val_LC_MESSAGES=no
19551 fi
19552 rm -f conftest*
19553 fi
19554
19555 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
19556     if test $ac_cv_val_LC_MESSAGES = yes; then
19557       cat >> confdefs.h <<\EOF
19558 #define HAVE_LC_MESSAGES 1
19559 EOF
19560
19561     fi
19562   
19563 else
19564   echo "$ac_t""no" 1>&6
19565 fi
19566
19567
19568
19569   cat > conftest.$ac_ext <<EOF
19570 #line 19571 "configure"
19571 #include "confdefs.h"
19572
19573   #include <setjmp.h>
19574   
19575 int main() {
19576 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19577 ; return 0; }
19578 EOF
19579 if { (eval echo configure:19580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19580   rm -rf conftest*
19581   cat >> confdefs.h <<\EOF
19582 #define HAVE_SIGSETJMP 1
19583 EOF
19584
19585   
19586 else
19587   echo "configure: failed program was:" >&5
19588   cat conftest.$ac_ext >&5
19589 fi
19590 rm -f conftest*
19591
19592   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
19593 do
19594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19596 echo "configure:19597: checking for $ac_hdr" >&5
19597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19598   echo $ac_n "(cached) $ac_c" 1>&6
19599 else
19600   cat > conftest.$ac_ext <<EOF
19601 #line 19602 "configure"
19602 #include "confdefs.h"
19603 #include <$ac_hdr>
19604 EOF
19605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19606 { (eval echo configure:19607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19608 if test -z "$ac_err"; then
19609   rm -rf conftest*
19610   eval "ac_cv_header_$ac_safe=yes"
19611 else
19612   echo "$ac_err" >&5
19613   echo "configure: failed program was:" >&5
19614   cat conftest.$ac_ext >&5
19615   rm -rf conftest*
19616   eval "ac_cv_header_$ac_safe=no"
19617 fi
19618 rm -f conftest*
19619 fi
19620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19621   echo "$ac_t""yes" 1>&6
19622     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19623   cat >> confdefs.h <<EOF
19624 #define $ac_tr_hdr 1
19625 EOF
19626  
19627 else
19628   echo "$ac_t""no" 1>&6
19629 fi
19630 done
19631
19632 for ac_func in getpagesize
19633 do
19634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19635 echo "configure:19636: checking for $ac_func" >&5
19636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19637   echo $ac_n "(cached) $ac_c" 1>&6
19638 else
19639   cat > conftest.$ac_ext <<EOF
19640 #line 19641 "configure"
19641 #include "confdefs.h"
19642 /* System header to define __stub macros and hopefully few prototypes,
19643     which can conflict with char $ac_func(); below.  */
19644 #include <assert.h>
19645 /* Override any gcc2 internal prototype to avoid an error.  */
19646 /* We use char because int might match the return type of a gcc2
19647     builtin and then its argument prototype would still apply.  */
19648 char $ac_func();
19649
19650 int main() {
19651
19652 /* The GNU C library defines this for functions which it implements
19653     to always fail with ENOSYS.  Some functions are actually named
19654     something starting with __ and the normal name is an alias.  */
19655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19656 choke me
19657 #else
19658 $ac_func();
19659 #endif
19660
19661 ; return 0; }
19662 EOF
19663 if { (eval echo configure:19664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19664   rm -rf conftest*
19665   eval "ac_cv_func_$ac_func=yes"
19666 else
19667   echo "configure: failed program was:" >&5
19668   cat conftest.$ac_ext >&5
19669   rm -rf conftest*
19670   eval "ac_cv_func_$ac_func=no"
19671 fi
19672 rm -f conftest*
19673 fi
19674
19675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19676   echo "$ac_t""yes" 1>&6
19677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19678   cat >> confdefs.h <<EOF
19679 #define $ac_tr_func 1
19680 EOF
19681  
19682 else
19683   echo "$ac_t""no" 1>&6
19684 fi
19685 done
19686
19687 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
19688 echo "configure:19689: checking for working mmap" >&5
19689 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
19690   echo $ac_n "(cached) $ac_c" 1>&6
19691 else
19692   if test "$cross_compiling" = yes; then
19693   ac_cv_func_mmap_fixed_mapped=no
19694 else
19695   cat > conftest.$ac_ext <<EOF
19696 #line 19697 "configure"
19697 #include "confdefs.h"
19698
19699 /* Thanks to Mike Haertel and Jim Avera for this test.
19700    Here is a matrix of mmap possibilities:
19701         mmap private not fixed
19702         mmap private fixed at somewhere currently unmapped
19703         mmap private fixed at somewhere already mapped
19704         mmap shared not fixed
19705         mmap shared fixed at somewhere currently unmapped
19706         mmap shared fixed at somewhere already mapped
19707    For private mappings, we should verify that changes cannot be read()
19708    back from the file, nor mmap's back from the file at a different
19709    address.  (There have been systems where private was not correctly
19710    implemented like the infamous i386 svr4.0, and systems where the
19711    VM page cache was not coherent with the filesystem buffer cache
19712    like early versions of FreeBSD and possibly contemporary NetBSD.)
19713    For shared mappings, we should conversely verify that changes get
19714    propogated back to all the places they're supposed to be.
19715
19716    Grep wants private fixed already mapped.
19717    The main things grep needs to know about mmap are:
19718    * does it exist and is it safe to write into the mmap'd area
19719    * how to use it (BSD variants)  */
19720 #include <sys/types.h>
19721 #include <fcntl.h>
19722 #include <sys/mman.h>
19723
19724 #if HAVE_SYS_TYPES_H
19725 # include <sys/types.h>
19726 #endif
19727
19728 #if HAVE_STDLIB_H
19729 # include <stdlib.h>
19730 #endif
19731
19732 #if HAVE_SYS_STAT_H
19733 # include <sys/stat.h>
19734 #endif
19735
19736 #if HAVE_UNISTD_H
19737 # include <unistd.h>
19738 #endif
19739
19740 /* This mess was copied from the GNU getpagesize.h.  */
19741 #ifndef HAVE_GETPAGESIZE
19742
19743 /* Assume that all systems that can run configure have sys/param.h.  */
19744 # ifndef HAVE_SYS_PARAM_H
19745 #  define HAVE_SYS_PARAM_H 1
19746 # endif
19747
19748 # ifdef _SC_PAGESIZE
19749 #  define getpagesize() sysconf(_SC_PAGESIZE)
19750 # else /* no _SC_PAGESIZE */
19751 #  ifdef HAVE_SYS_PARAM_H
19752 #   include <sys/param.h>
19753 #   ifdef EXEC_PAGESIZE
19754 #    define getpagesize() EXEC_PAGESIZE
19755 #   else /* no EXEC_PAGESIZE */
19756 #    ifdef NBPG
19757 #     define getpagesize() NBPG * CLSIZE
19758 #     ifndef CLSIZE
19759 #      define CLSIZE 1
19760 #     endif /* no CLSIZE */
19761 #    else /* no NBPG */
19762 #     ifdef NBPC
19763 #      define getpagesize() NBPC
19764 #     else /* no NBPC */
19765 #      ifdef PAGESIZE
19766 #       define getpagesize() PAGESIZE
19767 #      endif /* PAGESIZE */
19768 #     endif /* no NBPC */
19769 #    endif /* no NBPG */
19770 #   endif /* no EXEC_PAGESIZE */
19771 #  else /* no HAVE_SYS_PARAM_H */
19772 #   define getpagesize() 8192   /* punt totally */
19773 #  endif /* no HAVE_SYS_PARAM_H */
19774 # endif /* no _SC_PAGESIZE */
19775
19776 #endif /* no HAVE_GETPAGESIZE */
19777
19778 #ifdef __cplusplus
19779 extern "C" { void *malloc(unsigned); }
19780 #else
19781 char *malloc();
19782 #endif
19783
19784 int
19785 main()
19786 {
19787         char *data, *data2, *data3;
19788         int i, pagesize;
19789         int fd;
19790
19791         pagesize = getpagesize();
19792
19793         /*
19794          * First, make a file with some known garbage in it.
19795          */
19796         data = malloc(pagesize);
19797         if (!data)
19798                 exit(1);
19799         for (i = 0; i < pagesize; ++i)
19800                 *(data + i) = rand();
19801         umask(0);
19802         fd = creat("conftestmmap", 0600);
19803         if (fd < 0)
19804                 exit(1);
19805         if (write(fd, data, pagesize) != pagesize)
19806                 exit(1);
19807         close(fd);
19808
19809         /*
19810          * Next, try to mmap the file at a fixed address which
19811          * already has something else allocated at it.  If we can,
19812          * also make sure that we see the same garbage.
19813          */
19814         fd = open("conftestmmap", O_RDWR);
19815         if (fd < 0)
19816                 exit(1);
19817         data2 = malloc(2 * pagesize);
19818         if (!data2)
19819                 exit(1);
19820         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
19821         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
19822             MAP_PRIVATE | MAP_FIXED, fd, 0L))
19823                 exit(1);
19824         for (i = 0; i < pagesize; ++i)
19825                 if (*(data + i) != *(data2 + i))
19826                         exit(1);
19827
19828         /*
19829          * Finally, make sure that changes to the mapped area
19830          * do not percolate back to the file as seen by read().
19831          * (This is a bug on some variants of i386 svr4.0.)
19832          */
19833         for (i = 0; i < pagesize; ++i)
19834                 *(data2 + i) = *(data2 + i) + 1;
19835         data3 = malloc(pagesize);
19836         if (!data3)
19837                 exit(1);
19838         if (read(fd, data3, pagesize) != pagesize)
19839                 exit(1);
19840         for (i = 0; i < pagesize; ++i)
19841                 if (*(data + i) != *(data3 + i))
19842                         exit(1);
19843         close(fd);
19844         unlink("conftestmmap");
19845         exit(0);
19846 }
19847
19848 EOF
19849 if { (eval echo configure:19850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19850 then
19851   ac_cv_func_mmap_fixed_mapped=yes
19852 else
19853   echo "configure: failed program was:" >&5
19854   cat conftest.$ac_ext >&5
19855   rm -fr conftest*
19856   ac_cv_func_mmap_fixed_mapped=no
19857 fi
19858 rm -fr conftest*
19859 fi
19860
19861 fi
19862
19863 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
19864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19865   cat >> confdefs.h <<\EOF
19866 #define HAVE_MMAP 1
19867 EOF
19868
19869 fi
19870
19871
19872   # Establish limits on memory usage during 'make check'
19873   
19874   
19875   setrlimit_have_headers=yes
19876   for ac_hdr in sys/resource.h unistd.h
19877 do
19878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19880 echo "configure:19881: checking for $ac_hdr" >&5
19881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19882   echo $ac_n "(cached) $ac_c" 1>&6
19883 else
19884   cat > conftest.$ac_ext <<EOF
19885 #line 19886 "configure"
19886 #include "confdefs.h"
19887 #include <$ac_hdr>
19888 EOF
19889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19890 { (eval echo configure:19891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19892 if test -z "$ac_err"; then
19893   rm -rf conftest*
19894   eval "ac_cv_header_$ac_safe=yes"
19895 else
19896   echo "$ac_err" >&5
19897   echo "configure: failed program was:" >&5
19898   cat conftest.$ac_ext >&5
19899   rm -rf conftest*
19900   eval "ac_cv_header_$ac_safe=no"
19901 fi
19902 rm -f conftest*
19903 fi
19904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19905   echo "$ac_t""yes" 1>&6
19906     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19907   cat >> confdefs.h <<EOF
19908 #define $ac_tr_hdr 1
19909 EOF
19910  
19911 else
19912   echo "$ac_t""no" 1>&6
19913 setrlimit_have_headers=no
19914 fi
19915 done
19916
19917   # If don't have the headers, then we can't run the tests now, and we
19918   # won't be seeing any of these during testsuite compilation.
19919   if test $setrlimit_have_headers = yes; then
19920     # Can't do these in a loop, else the resulting syntax is wrong.
19921     
19922   cat > conftest.$ac_ext <<EOF
19923 #line 19924 "configure"
19924 #include "confdefs.h"
19925 #include <sys/resource.h>
19926                   #include <unistd.h>
19927                  
19928 int main() {
19929  int f = RLIMIT_DATA ; 
19930 ; return 0; }
19931 EOF
19932 if { (eval echo configure:19933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19933   rm -rf conftest*
19934   glibcpp_mresult=1
19935 else
19936   echo "configure: failed program was:" >&5
19937   cat conftest.$ac_ext >&5
19938   rm -rf conftest*
19939   glibcpp_mresult=0
19940 fi
19941 rm -f conftest*
19942   cat >> confdefs.h <<EOF
19943 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19944 EOF
19945
19946
19947     
19948   cat > conftest.$ac_ext <<EOF
19949 #line 19950 "configure"
19950 #include "confdefs.h"
19951 #include <sys/resource.h>
19952                   #include <unistd.h>
19953                  
19954 int main() {
19955  int f = RLIMIT_RSS ; 
19956 ; return 0; }
19957 EOF
19958 if { (eval echo configure:19959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19959   rm -rf conftest*
19960   glibcpp_mresult=1
19961 else
19962   echo "configure: failed program was:" >&5
19963   cat conftest.$ac_ext >&5
19964   rm -rf conftest*
19965   glibcpp_mresult=0
19966 fi
19967 rm -f conftest*
19968   cat >> confdefs.h <<EOF
19969 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19970 EOF
19971
19972
19973     
19974   cat > conftest.$ac_ext <<EOF
19975 #line 19976 "configure"
19976 #include "confdefs.h"
19977 #include <sys/resource.h>
19978                   #include <unistd.h>
19979                  
19980 int main() {
19981  int f = RLIMIT_VMEM ; 
19982 ; return 0; }
19983 EOF
19984 if { (eval echo configure:19985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19985   rm -rf conftest*
19986   glibcpp_mresult=1
19987 else
19988   echo "configure: failed program was:" >&5
19989   cat conftest.$ac_ext >&5
19990   rm -rf conftest*
19991   glibcpp_mresult=0
19992 fi
19993 rm -f conftest*
19994   cat >> confdefs.h <<EOF
19995 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19996 EOF
19997
19998
19999     
20000   cat > conftest.$ac_ext <<EOF
20001 #line 20002 "configure"
20002 #include "confdefs.h"
20003 #include <sys/resource.h>
20004                   #include <unistd.h>
20005                  
20006 int main() {
20007  int f = RLIMIT_AS ; 
20008 ; return 0; }
20009 EOF
20010 if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20011   rm -rf conftest*
20012   glibcpp_mresult=1
20013 else
20014   echo "configure: failed program was:" >&5
20015   cat conftest.$ac_ext >&5
20016   rm -rf conftest*
20017   glibcpp_mresult=0
20018 fi
20019 rm -f conftest*
20020   cat >> confdefs.h <<EOF
20021 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20022 EOF
20023
20024
20025
20026     # Check for rlimit, setrlimit.
20027     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20028   echo $ac_n "(cached) $ac_c" 1>&6
20029 else
20030   
20031       cat > conftest.$ac_ext <<EOF
20032 #line 20033 "configure"
20033 #include "confdefs.h"
20034 #include <sys/resource.h>
20035                       #include <unistd.h>
20036                      
20037 int main() {
20038  struct rlimit r; setrlimit(0, &r);
20039 ; return 0; }
20040 EOF
20041 if { (eval echo configure:20042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20042   rm -rf conftest*
20043   ac_setrlimit=yes
20044 else
20045   echo "configure: failed program was:" >&5
20046   cat conftest.$ac_ext >&5
20047   rm -rf conftest*
20048   ac_setrlimit=no
20049 fi
20050 rm -f conftest*
20051     
20052 fi
20053
20054   fi
20055
20056   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
20057 echo "configure:20058: checking for testsuite memory limit support" >&5
20058   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
20059     ac_mem_limits=yes
20060     cat >> confdefs.h <<\EOF
20061 #define _GLIBCPP_MEM_LIMITS 1
20062 EOF
20063
20064   else
20065     ac_mem_limits=no
20066   fi
20067   echo "$ac_t""$ac_mem_limits" 1>&6
20068
20069
20070   # Look for setenv, so that extended locale tests can be performed.
20071   for ac_func in setenv
20072 do
20073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20074 echo "configure:20075: checking for $ac_func" >&5
20075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20076   echo $ac_n "(cached) $ac_c" 1>&6
20077 else
20078   cat > conftest.$ac_ext <<EOF
20079 #line 20080 "configure"
20080 #include "confdefs.h"
20081 /* System header to define __stub macros and hopefully few prototypes,
20082     which can conflict with char $ac_func(); below.  */
20083 #include <assert.h>
20084 /* Override any gcc2 internal prototype to avoid an error.  */
20085 /* We use char because int might match the return type of a gcc2
20086     builtin and then its argument prototype would still apply.  */
20087 char $ac_func();
20088
20089 int main() {
20090
20091 /* The GNU C library defines this for functions which it implements
20092     to always fail with ENOSYS.  Some functions are actually named
20093     something starting with __ and the normal name is an alias.  */
20094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20095 choke me
20096 #else
20097 $ac_func();
20098 #endif
20099
20100 ; return 0; }
20101 EOF
20102 if { (eval echo configure:20103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20103   rm -rf conftest*
20104   eval "ac_cv_func_$ac_func=yes"
20105 else
20106   echo "configure: failed program was:" >&5
20107   cat conftest.$ac_ext >&5
20108   rm -rf conftest*
20109   eval "ac_cv_func_$ac_func=no"
20110 fi
20111 rm -f conftest*
20112 fi
20113
20114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20115   echo "$ac_t""yes" 1>&6
20116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20117   cat >> confdefs.h <<EOF
20118 #define $ac_tr_func 1
20119 EOF
20120  
20121 else
20122   echo "$ac_t""no" 1>&6
20123 fi
20124 done
20125
20126
20127 fi
20128
20129 # This depends on the possibly-skipped linker test above.
20130 # Check whether --enable-symvers or --disable-symvers was given.
20131 if test "${enable_symvers+set}" = set; then
20132   enableval="$enable_symvers"
20133   case "$enableval" in
20134  yes) enable_symvers=yes ;;
20135  no)  enable_symvers=no ;;
20136  # other names here, just as sanity checks
20137  #gnu|sun|etcetera) enable_symvers=$enableval ;;
20138  gnu) enable_symvers=$enableval ;;
20139  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
20140  esac
20141 else
20142   enable_symvers=yes
20143 fi
20144
20145 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
20146 # don't know enough about $LD to do tricks... 
20147 if test x$enable_shared = xno || 
20148         test x$LD = x || 
20149         test x$glibcpp_gnu_ld_version = x; then
20150   enable_symvers=no
20151 fi
20152
20153 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
20154 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
20155 echo "configure:20156: checking for shared libgcc" >&5
20156 ac_save_CFLAGS="$CFLAGS"
20157 CFLAGS=' -lgcc_s'
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20161
20162 int main() {
20163 return 0
20164 ; return 0; }
20165 EOF
20166 if { (eval echo configure:20167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20167   rm -rf conftest*
20168   glibcpp_shared_libgcc=yes
20169 else
20170   echo "configure: failed program was:" >&5
20171   cat conftest.$ac_ext >&5
20172   rm -rf conftest*
20173   glibcpp_shared_libgcc=no
20174 fi
20175 rm -f conftest*
20176 CFLAGS="$ac_save_CFLAGS"
20177 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
20178
20179 # For GNU ld, we need at least this version.  It's 2.12 in the same format
20180 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
20181 glibcpp_min_gnu_ld_version=21200
20182
20183 # Check to see if unspecified "yes" value can win, given results
20184 # above.  
20185 if test $enable_symvers = yes ; then
20186   if test $with_gnu_ld = yes &&
20187     test $glibcpp_shared_libgcc = yes ;
20188   then
20189     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
20190         enable_symvers=gnu
20191     else
20192       ac_test_CFLAGS="${CFLAGS+set}"
20193       ac_save_CFLAGS="$CFLAGS"
20194       CFLAGS='-shared -Wl,--version-script,conftest.map'
20195       enable_symvers=no
20196       
20197       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
20198       
20199       cat > conftest.$ac_ext <<EOF
20200 #line 20201 "configure"
20201 #include "confdefs.h"
20202 int foo;
20203 int main() {
20204
20205 ; return 0; }
20206 EOF
20207 if { (eval echo configure:20208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20208   rm -rf conftest*
20209   enable_symvers=gnu
20210 else
20211   echo "configure: failed program was:" >&5
20212   cat conftest.$ac_ext >&5
20213 fi
20214 rm -f conftest*
20215       if test "$ac_test_CFLAGS" = set; then
20216         CFLAGS="$ac_save_CFLAGS"
20217       else
20218         # this is the suspicious part
20219         CFLAGS=''
20220       fi
20221       rm -f conftest.map
20222     fi
20223   else
20224     # just fail for now
20225     enable_symvers=no
20226   fi
20227 fi
20228
20229 case $enable_symvers in
20230   no)
20231       LINKER_MAP=config/linker-map.dummy
20232       ;;
20233   gnu)
20234       LINKER_MAP=config/linker-map.gnu
20235       ;;
20236 esac
20237
20238
20239
20240
20241 if test $enable_symvers != no; then
20242   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
20243   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
20244 else
20245   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
20246   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
20247 fi
20248 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
20249 echo "configure:20250: checking versioning on shared library symbols" >&5
20250 echo "$ac_t""$enable_symvers" 1>&6
20251
20252
20253 # Propagate the target-specific source directories through the build chain.
20254 OS_INC_SRCDIR=$os_include_dir/bits
20255 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
20256 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
20257
20258
20259
20260
20261 # Set up cross-compile flags
20262
20263
20264
20265 if test "$CANADIAN" = yes; then
20266   CANADIAN_TRUE=
20267   CANADIAN_FALSE='#'
20268 else
20269   CANADIAN_TRUE='#'
20270   CANADIAN_FALSE=
20271 fi
20272  
20273 cat > confcache <<\EOF
20274 # This file is a shell script that caches the results of configure
20275 # tests run on this system so they can be shared between configure
20276 # scripts and configure runs.  It is not useful on other systems.
20277 # If it contains results you don't want to keep, you may remove or edit it.
20278 #
20279 # By default, configure uses ./config.cache as the cache file,
20280 # creating it if it does not exist already.  You can give configure
20281 # the --cache-file=FILE option to use a different cache file; that is
20282 # what configure does when it calls configure scripts in
20283 # subdirectories, so they share the cache.
20284 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20285 # config.status only pays attention to the cache file if you give it the
20286 # --recheck option to rerun configure.
20287 #
20288 EOF
20289 # The following way of writing the cache mishandles newlines in values,
20290 # but we know of no workaround that is simple, portable, and efficient.
20291 # So, don't put newlines in cache variables' values.
20292 # Ultrix sh set writes to stderr and can't be redirected directly,
20293 # and sets the high bit in the cache file unless we assign to the vars.
20294 (set) 2>&1 |
20295   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20296   *ac_space=\ *)
20297     # `set' does not quote correctly, so add quotes (double-quote substitution
20298     # turns \\\\ into \\, and sed turns \\ into \).
20299     sed -n \
20300       -e "s/'/'\\\\''/g" \
20301       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20302     ;;
20303   *)
20304     # `set' quotes correctly as required by POSIX, so do not add quotes.
20305     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20306     ;;
20307   esac >> confcache
20308 if cmp -s $cache_file confcache; then
20309   :
20310 else
20311   if test -w $cache_file; then
20312     echo "updating cache $cache_file"
20313     cat confcache > $cache_file
20314   else
20315     echo "not updating unwritable cache $cache_file"
20316   fi
20317 fi
20318 rm -f confcache
20319
20320
20321 if test "${multilib}" = "yes"; then
20322   multilib_arg="--enable-multilib"
20323 else
20324   multilib_arg=
20325 fi
20326
20327 # Needed so that g++ can find the correct include subdir automatically.
20328 INTERFACE=v3
20329
20330 # Export all the install information
20331
20332 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
20333 # exported correctly in GLIBCPP_CONFIGURE.
20334 glibcpp_toolexecdir=no
20335 glibcpp_toolexeclibdir=no
20336 glibcpp_prefixdir=${prefix}
20337
20338 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
20339 echo "configure:20340: checking for interface version number" >&5
20340 libstdcxx_interface=$INTERFACE
20341 echo "$ac_t""$libstdcxx_interface" 1>&6
20342
20343 # Process the option --with-gxx-include-dir=<path to include-files directory>
20344 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
20345 echo "configure:20346: checking for --with-gxx-include-dir" >&5
20346 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
20347 if test "${with_gxx_include_dir+set}" = set; then
20348   withval="$with_gxx_include_dir"
20349   case "${withval}" in
20350   yes)
20351     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
20352     gxx_include_dir=no
20353     ;;
20354   no)
20355     gxx_include_dir=no
20356     ;;
20357   *)
20358     gxx_include_dir=${withval}
20359     ;;
20360 esac
20361 else
20362   gxx_include_dir=no
20363 fi
20364
20365 echo "$ac_t""$gxx_include_dir" 1>&6
20366
20367 # Process the option "--enable-version-specific-runtime-libs"
20368 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
20369 echo "configure:20370: checking for --enable-version-specific-runtime-libs" >&5
20370 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
20371 if test "${enable_version_specific_runtime_libs+set}" = set; then
20372   enableval="$enable_version_specific_runtime_libs"
20373   case "$enableval" in
20374  yes) version_specific_libs=yes ;;
20375  no)  version_specific_libs=no ;;
20376  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
20377  esac
20378 else
20379   version_specific_libs=no
20380 fi
20381 # Option set, now we can test it.
20382 echo "$ac_t""$version_specific_libs" 1>&6
20383
20384 if test $version_specific_libs = yes; then
20385   # Need the gcc compiler version to know where to install libraries
20386   # and header files if --enable-version-specific-runtime-libs option
20387   # is selected.
20388     gcc_version_trigger=${srcdir}/../gcc/version.c
20389   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
20390   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
20391   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
20392   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20393   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
20394   fi
20395
20396 # Default case for install directory for include files.
20397 if test $version_specific_libs = no &&
20398    test $gxx_include_dir = no; then
20399   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
20400 fi
20401
20402 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
20403 # Install a library built with a cross compiler in tooldir, not libdir.
20404 if test x"$glibcpp_toolexecdir" = x"no"; then 
20405   if test -n "$with_cross_host" &&
20406      test x"$with_cross_host" != x"no"; then
20407     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
20408     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
20409   else
20410     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20411     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
20412   fi
20413 fi
20414
20415 echo $ac_n "checking for install location""... $ac_c" 1>&6
20416 echo "configure:20417: checking for install location" >&5
20417 echo "$ac_t""$gxx_include_dir" 1>&6
20418
20419
20420
20421
20422
20423
20424
20425 # Export all the include and flag information to makefiles.
20426
20427   # Root level of the build directory include sources.
20428   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
20429
20430   # Passed down for canadian crosses.
20431   if test x"$CANADIAN" = xyes; then
20432     TOPLEVEL_INCLUDES='-I$(includedir)'
20433   fi
20434
20435   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
20436
20437   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
20438
20439   if test x"$need_libio" = xyes; then
20440     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
20441     
20442   fi
20443
20444   # Now, export this to all the little Makefiles....
20445   
20446   
20447   
20448   
20449
20450
20451   # Optimization flags that are probably a good idea for thrill-seekers. Just
20452   # uncomment the lines below and make, everything else is ready to go... 
20453   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
20454   OPTIMIZE_CXXFLAGS=
20455   
20456
20457   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
20458   
20459
20460
20461 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
20462    grep "enable shared" > /dev/null; then
20463   LIBSUPCXX_PICFLAGS=-prefer-pic
20464 else
20465   LIBSUPCXX_PICFLAGS=
20466 fi
20467
20468
20469 # Generate the various Makefiles, include files, and scripts.
20470 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
20471 # and libsupc++/Makefile.am so that multilib installs will end up
20472 # installed in the correct place. To work around this not being passed
20473 # down from config-ml.in -> top_srcdir/Makefile.am ->
20474 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
20475 trap '' 1 2 15
20476 cat > confcache <<\EOF
20477 # This file is a shell script that caches the results of configure
20478 # tests run on this system so they can be shared between configure
20479 # scripts and configure runs.  It is not useful on other systems.
20480 # If it contains results you don't want to keep, you may remove or edit it.
20481 #
20482 # By default, configure uses ./config.cache as the cache file,
20483 # creating it if it does not exist already.  You can give configure
20484 # the --cache-file=FILE option to use a different cache file; that is
20485 # what configure does when it calls configure scripts in
20486 # subdirectories, so they share the cache.
20487 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20488 # config.status only pays attention to the cache file if you give it the
20489 # --recheck option to rerun configure.
20490 #
20491 EOF
20492 # The following way of writing the cache mishandles newlines in values,
20493 # but we know of no workaround that is simple, portable, and efficient.
20494 # So, don't put newlines in cache variables' values.
20495 # Ultrix sh set writes to stderr and can't be redirected directly,
20496 # and sets the high bit in the cache file unless we assign to the vars.
20497 (set) 2>&1 |
20498   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20499   *ac_space=\ *)
20500     # `set' does not quote correctly, so add quotes (double-quote substitution
20501     # turns \\\\ into \\, and sed turns \\ into \).
20502     sed -n \
20503       -e "s/'/'\\\\''/g" \
20504       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20505     ;;
20506   *)
20507     # `set' quotes correctly as required by POSIX, so do not add quotes.
20508     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20509     ;;
20510   esac >> confcache
20511 if cmp -s $cache_file confcache; then
20512   :
20513 else
20514   if test -w $cache_file; then
20515     echo "updating cache $cache_file"
20516     cat confcache > $cache_file
20517   else
20518     echo "not updating unwritable cache $cache_file"
20519   fi
20520 fi
20521 rm -f confcache
20522
20523 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20524
20525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20526 # Let make expand exec_prefix.
20527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20528
20529 # Any assignment to VPATH causes Sun make to only execute
20530 # the first set of double-colon rules, so remove it if not needed.
20531 # If there is a colon in the path, we need to keep it.
20532 if test "x$srcdir" = x.; then
20533   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
20534 fi
20535
20536 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20537
20538 DEFS=-DHAVE_CONFIG_H
20539
20540 # Without the "./", some shells look in PATH for config.status.
20541 : ${CONFIG_STATUS=./config.status}
20542
20543 echo creating $CONFIG_STATUS
20544 rm -f $CONFIG_STATUS
20545 cat > $CONFIG_STATUS <<EOF
20546 #! /bin/sh
20547 # Generated automatically by configure.
20548 # Run this file to recreate the current configuration.
20549 # This directory was configured as follows,
20550 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20551 #
20552 # $0 $ac_configure_args
20553 #
20554 # Compiler output produced by configure, useful for debugging
20555 # configure, is in ./config.log if it exists.
20556
20557 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20558 for ac_option
20559 do
20560   case "\$ac_option" in
20561   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20562     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20563     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20564   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20565     echo "$CONFIG_STATUS generated by autoconf version 2.13"
20566     exit 0 ;;
20567   -help | --help | --hel | --he | --h)
20568     echo "\$ac_cs_usage"; exit 0 ;;
20569   *) echo "\$ac_cs_usage"; exit 1 ;;
20570   esac
20571 done
20572
20573 ac_given_srcdir=$srcdir
20574 ac_given_INSTALL="$INSTALL"
20575
20576 trap 'rm -fr `echo "Makefile \
20577     include/Makefile src/Makefile \
20578     libmath/Makefile libio/Makefile libsupc++/Makefile \
20579     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20580 EOF
20581 cat >> $CONFIG_STATUS <<EOF
20582
20583 # Protect against being on the right side of a sed subst in config.status.
20584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20585  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20586 $ac_vpsub
20587 $extrasub
20588 s%@SHELL@%$SHELL%g
20589 s%@CFLAGS@%$CFLAGS%g
20590 s%@CPPFLAGS@%$CPPFLAGS%g
20591 s%@CXXFLAGS@%$CXXFLAGS%g
20592 s%@FFLAGS@%$FFLAGS%g
20593 s%@DEFS@%$DEFS%g
20594 s%@LDFLAGS@%$LDFLAGS%g
20595 s%@LIBS@%$LIBS%g
20596 s%@exec_prefix@%$exec_prefix%g
20597 s%@prefix@%$prefix%g
20598 s%@program_transform_name@%$program_transform_name%g
20599 s%@bindir@%$bindir%g
20600 s%@sbindir@%$sbindir%g
20601 s%@libexecdir@%$libexecdir%g
20602 s%@datadir@%$datadir%g
20603 s%@sysconfdir@%$sysconfdir%g
20604 s%@sharedstatedir@%$sharedstatedir%g
20605 s%@localstatedir@%$localstatedir%g
20606 s%@libdir@%$libdir%g
20607 s%@includedir@%$includedir%g
20608 s%@oldincludedir@%$oldincludedir%g
20609 s%@infodir@%$infodir%g
20610 s%@mandir@%$mandir%g
20611 s%@PACKAGE@%$PACKAGE%g
20612 s%@release_VERSION@%$release_VERSION%g
20613 s%@libtool_VERSION@%$libtool_VERSION%g
20614 s%@host@%$host%g
20615 s%@host_alias@%$host_alias%g
20616 s%@host_cpu@%$host_cpu%g
20617 s%@host_vendor@%$host_vendor%g
20618 s%@host_os@%$host_os%g
20619 s%@target@%$target%g
20620 s%@target_alias@%$target_alias%g
20621 s%@target_cpu@%$target_cpu%g
20622 s%@target_vendor@%$target_vendor%g
20623 s%@target_os@%$target_os%g
20624 s%@build@%$build%g
20625 s%@build_alias@%$build_alias%g
20626 s%@build_cpu@%$build_cpu%g
20627 s%@build_vendor@%$build_vendor%g
20628 s%@build_os@%$build_os%g
20629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20631 s%@INSTALL_DATA@%$INSTALL_DATA%g
20632 s%@VERSION@%$VERSION%g
20633 s%@ACLOCAL@%$ACLOCAL%g
20634 s%@AUTOCONF@%$AUTOCONF%g
20635 s%@AUTOMAKE@%$AUTOMAKE%g
20636 s%@AUTOHEADER@%$AUTOHEADER%g
20637 s%@MAKEINFO@%$MAKEINFO%g
20638 s%@SET_MAKE@%$SET_MAKE%g
20639 s%@toplevel_srcdir@%$toplevel_srcdir%g
20640 s%@glibcpp_builddir@%$glibcpp_builddir%g
20641 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
20642 s%@AWK@%$AWK%g
20643 s%@LN_S@%$LN_S%g
20644 s%@glibcpp_basedir@%$glibcpp_basedir%g
20645 s%@CC@%$CC%g
20646 s%@glibcpp_CXX@%$glibcpp_CXX%g
20647 s%@AS@%$AS%g
20648 s%@AR@%$AR%g
20649 s%@RANLIB@%$RANLIB%g
20650 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
20651 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
20652 s%@MAINT@%$MAINT%g
20653 s%@EXEEXT@%$EXEEXT%g
20654 s%@OBJEXT@%$OBJEXT%g
20655 s%@STRIP@%$STRIP%g
20656 s%@LIBTOOL@%$LIBTOOL%g
20657 s%@CXXCPP@%$CXXCPP%g
20658 s%@enable_shared@%$enable_shared%g
20659 s%@enable_static@%$enable_static%g
20660 s%@ifGNUmake@%$ifGNUmake%g
20661 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
20662 s%@CPP@%$CPP%g
20663 s%@CSTDIO_H@%$CSTDIO_H%g
20664 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
20665 s%@CCODECVT_C@%$CCODECVT_C%g
20666 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
20667 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
20668 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
20669 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
20670 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
20671 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
20672 s%@libio_la@%$libio_la%g
20673 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
20674 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
20675 s%@glibcpp_localedir@%$glibcpp_localedir%g
20676 s%@USE_NLS@%$USE_NLS%g
20677 s%@CLOCALE_H@%$CLOCALE_H%g
20678 s%@CCODECVT_H@%$CCODECVT_H%g
20679 s%@CMESSAGES_H@%$CMESSAGES_H%g
20680 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
20681 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
20682 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
20683 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
20684 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
20685 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
20686 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
20687 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
20688 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
20689 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
20690 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
20691 s%@WERROR@%$WERROR%g
20692 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
20693 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
20694 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
20695 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
20696 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
20697 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
20698 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
20699 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
20700 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
20701 s%@gxx_include_dir@%$gxx_include_dir%g
20702 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
20703 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
20704 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
20705 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
20706 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
20707 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
20708 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
20709 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
20710 s%@WARN_FLAGS@%$WARN_FLAGS%g
20711 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
20712
20713 CEOF
20714 EOF
20715
20716 cat >> $CONFIG_STATUS <<\EOF
20717
20718 # Split the substitutions into bite-sized pieces for seds with
20719 # small command number limits, like on Digital OSF/1 and HP-UX.
20720 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20721 ac_file=1 # Number of current file.
20722 ac_beg=1 # First line for current file.
20723 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20724 ac_more_lines=:
20725 ac_sed_cmds=""
20726 while $ac_more_lines; do
20727   if test $ac_beg -gt 1; then
20728     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20729   else
20730     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20731   fi
20732   if test ! -s conftest.s$ac_file; then
20733     ac_more_lines=false
20734     rm -f conftest.s$ac_file
20735   else
20736     if test -z "$ac_sed_cmds"; then
20737       ac_sed_cmds="sed -f conftest.s$ac_file"
20738     else
20739       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20740     fi
20741     ac_file=`expr $ac_file + 1`
20742     ac_beg=$ac_end
20743     ac_end=`expr $ac_end + $ac_max_sed_cmds`
20744   fi
20745 done
20746 if test -z "$ac_sed_cmds"; then
20747   ac_sed_cmds=cat
20748 fi
20749 EOF
20750
20751 cat >> $CONFIG_STATUS <<EOF
20752
20753 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
20754     include/Makefile src/Makefile \
20755     libmath/Makefile libio/Makefile libsupc++/Makefile \
20756     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
20757 EOF
20758 cat >> $CONFIG_STATUS <<\EOF
20759 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20760   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20761   case "$ac_file" in
20762   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20763        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20764   *) ac_file_in="${ac_file}.in" ;;
20765   esac
20766
20767   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20768
20769   # Remove last slash and all that follows it.  Not all systems have dirname.
20770   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20771   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20772     # The file is in a subdirectory.
20773     test ! -d "$ac_dir" && mkdir "$ac_dir"
20774     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20775     # A "../" for each directory in $ac_dir_suffix.
20776     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20777   else
20778     ac_dir_suffix= ac_dots=
20779   fi
20780
20781   case "$ac_given_srcdir" in
20782   .)  srcdir=.
20783       if test -z "$ac_dots"; then top_srcdir=.
20784       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20785   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20786   *) # Relative path.
20787     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20788     top_srcdir="$ac_dots$ac_given_srcdir" ;;
20789   esac
20790
20791   case "$ac_given_INSTALL" in
20792   [/$]*) INSTALL="$ac_given_INSTALL" ;;
20793   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20794   esac
20795
20796   echo creating "$ac_file"
20797   rm -f "$ac_file"
20798   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20799   case "$ac_file" in
20800   *Makefile*) ac_comsub="1i\\
20801 # $configure_input" ;;
20802   *) ac_comsub= ;;
20803   esac
20804
20805   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20806   sed -e "$ac_comsub
20807 s%@configure_input@%$configure_input%g
20808 s%@srcdir@%$srcdir%g
20809 s%@top_srcdir@%$top_srcdir%g
20810 s%@INSTALL@%$INSTALL%g
20811 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20812 fi; done
20813 rm -f conftest.s*
20814
20815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20817 #
20818 # ac_d sets the value in "#define NAME VALUE" lines.
20819 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20820 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
20821 ac_dC='\3'
20822 ac_dD='%g'
20823 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20824 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20825 ac_uB='\([      ]\)%\1#\2define\3'
20826 ac_uC=' '
20827 ac_uD='\4%g'
20828 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20829 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20830 ac_eB='$%\1#\2define\3'
20831 ac_eC=' '
20832 ac_eD='%g'
20833
20834 if test "${CONFIG_HEADERS+set}" != set; then
20835 EOF
20836 cat >> $CONFIG_STATUS <<EOF
20837   CONFIG_HEADERS="config.h"
20838 EOF
20839 cat >> $CONFIG_STATUS <<\EOF
20840 fi
20841 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20842   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20843   case "$ac_file" in
20844   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20845        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20846   *) ac_file_in="${ac_file}.in" ;;
20847   esac
20848
20849   echo creating $ac_file
20850
20851   rm -f conftest.frag conftest.in conftest.out
20852   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20853   cat $ac_file_inputs > conftest.in
20854
20855 EOF
20856
20857 # Transform confdefs.h into a sed script conftest.vals that substitutes
20858 # the proper values into config.h.in to produce config.h.  And first:
20859 # Protect against being on the right side of a sed subst in config.status.
20860 # Protect against being in an unquoted here document in config.status.
20861 rm -f conftest.vals
20862 cat > conftest.hdr <<\EOF
20863 s/[\\&%]/\\&/g
20864 s%[\\$`]%\\&%g
20865 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20866 s%ac_d%ac_u%gp
20867 s%ac_u%ac_e%gp
20868 EOF
20869 sed -n -f conftest.hdr confdefs.h > conftest.vals
20870 rm -f conftest.hdr
20871
20872 # This sed command replaces #undef with comments.  This is necessary, for
20873 # example, in the case of _POSIX_SOURCE, which is predefined and required
20874 # on some systems where configure will not decide to define it.
20875 cat >> conftest.vals <<\EOF
20876 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20877 EOF
20878
20879 # Break up conftest.vals because some shells have a limit on
20880 # the size of here documents, and old seds have small limits too.
20881
20882 rm -f conftest.tail
20883 while :
20884 do
20885   ac_lines=`grep -c . conftest.vals`
20886   # grep -c gives empty output for an empty file on some AIX systems.
20887   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20888   # Write a limited-size here document to conftest.frag.
20889   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20890   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20891   echo 'CEOF
20892   sed -f conftest.frag conftest.in > conftest.out
20893   rm -f conftest.in
20894   mv conftest.out conftest.in
20895 ' >> $CONFIG_STATUS
20896   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20897   rm -f conftest.vals
20898   mv conftest.tail conftest.vals
20899 done
20900 rm -f conftest.vals
20901
20902 cat >> $CONFIG_STATUS <<\EOF
20903   rm -f conftest.frag conftest.h
20904   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
20905   cat conftest.in >> conftest.h
20906   rm -f conftest.in
20907   if cmp -s $ac_file conftest.h 2>/dev/null; then
20908     echo "$ac_file is unchanged"
20909     rm -f conftest.h
20910   else
20911     # Remove last slash and all that follows it.  Not all systems have dirname.
20912       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20913       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20914       # The file is in a subdirectory.
20915       test ! -d "$ac_dir" && mkdir "$ac_dir"
20916     fi
20917     rm -f $ac_file
20918     mv conftest.h $ac_file
20919   fi
20920 fi; done
20921
20922 EOF
20923
20924 cat >> $CONFIG_STATUS <<EOF
20925 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
20926 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
20927 EOF
20928
20929 cat >> $CONFIG_STATUS <<\EOF
20930 srcdir=$ac_given_srcdir
20931 while test -n "$ac_sources"; do
20932   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20933   set $ac_sources; ac_source=$1; shift; ac_sources=$*
20934
20935   echo "linking $srcdir/$ac_source to $ac_dest"
20936
20937   if test ! -r $srcdir/$ac_source; then
20938     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
20939   fi
20940   rm -f $ac_dest
20941
20942   # Make relative symlinks.
20943   # Remove last slash and all that follows it.  Not all systems have dirname.
20944   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
20945   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
20946     # The dest file is in a subdirectory.
20947     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
20948     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
20949     # A "../" for each directory in $ac_dest_dir_suffix.
20950     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
20951   else
20952     ac_dest_dir_suffix= ac_dots=
20953   fi
20954
20955   case "$srcdir" in
20956   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
20957   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
20958   esac
20959
20960   # Make a symlink if possible; otherwise try a hard link.
20961   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20962     ln $srcdir/$ac_source $ac_dest; then :
20963   else
20964     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
20965   fi
20966 done
20967 EOF
20968 cat >> $CONFIG_STATUS <<EOF
20969
20970 srcdir=${srcdir}
20971 host=${host}
20972 target=${target}
20973 with_multisubdir=${with_multisubdir}
20974 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20975 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20976 glibcpp_basedir=${glibcpp_basedir}
20977 CC="${CC}"
20978 CXX="${CXX}"
20979
20980 EOF
20981 cat >> $CONFIG_STATUS <<\EOF
20982 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
20983 if test -n "$CONFIG_FILES"; then
20984   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
20985   grep '^MULTISUBDIR =' Makefile >> src/Makefile
20986   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
20987 fi
20988 chmod +x mkcheck
20989 chmod +x testsuite_flags
20990
20991 exit 0
20992 EOF
20993 chmod +x $CONFIG_STATUS
20994 rm -fr confdefs* $ac_clean_files
20995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20996
20997
20998
20999 # Sanity checking & User-visible messages.
21000 # Checks down here, otherwise they get scrolled off before
21001 # the user will notice.
21002
21003 # Trying to get more people to read documentation.  Possibly remove
21004 # check and warn all the time. There is no "informational" AC_MSG_
21005 # macro, so these are going to be printed even when --quiet/--silent
21006 # is given.
21007 if test ! -f stamp-sanity-warned; then
21008   touch stamp-sanity-warned
21009   echo ""
21010   echo "Please make certain that you read the installation information here:"
21011   echo "  faster => ${srcdir}/docs/install.html"
21012   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
21013   echo ""
21014   echo "and the configuration information here:"
21015   echo "  faster => ${srcdir}/docs/configopts.html"
21016   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
21017   echo ""
21018   echo "before proceeding with ${_cv_gnu_make_command}."
21019   echo ""
21020 fi