OSDN Git Service

2003-07-01 Roger Sayle <roger@eyesopen.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   --with-newlib                    Configuring with newlib"
23 ac_help="$ac_help
24   --enable-maintainer-mode enable make rules and dependencies not useful
25                           (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27   --enable-shared[=PKGS]  build shared libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-static[=PKGS]  build static libraries [default=yes]"
30 ac_help="$ac_help
31   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35   --disable-libtool-lock  avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
40 ac_help="$ac_help
41   --enable-libunwind-exceptions  force use of libunwind for exceptions"
42 ac_help="$ac_help
43   --enable-pch         build pre-compiled libstdc++ includes [default=yes]"
44 ac_help="$ac_help
45   --enable-cstdio         enable stdio for target io package.
46   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
47   "
48 ac_help="$ac_help
49   --enable-clocale        enable model for target locale package.
50   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
51   "
52 ac_help="$ac_help
53   --enable-nls            use Native Language Support (default)"
54 ac_help="$ac_help
55   --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
58 ac_help="$ac_help
59   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
60 ac_help="$ac_help
61   --enable-long-long      turns on 'long long' [default=yes]"
62 ac_help="$ac_help
63   --enable-concept-checks use Boost-derived template checks [default=no]"
64 ac_help="$ac_help
65   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
66                                   [default=]"
67 ac_help="$ac_help
68   --enable-debug          build extra debug library [default=no]"
69 ac_help="$ac_help
70   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
71                         library;[default=none]"
72 ac_help="$ac_help
73   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
74 ac_help="$ac_help
75   --with-gxx-include-dir  the installation directory for include files"
76 ac_help="$ac_help
77   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
78
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
82 build=NONE
83 cache_file=./config.cache
84 exec_prefix=NONE
85 host=NONE
86 no_create=
87 nonopt=NONE
88 no_recursion=
89 prefix=NONE
90 program_prefix=NONE
91 program_suffix=NONE
92 program_transform_name=s,x,x,
93 silent=
94 site=
95 srcdir=
96 target=NONE
97 verbose=
98 x_includes=NONE
99 x_libraries=NONE
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
112
113 # Initialize some other variables.
114 subdirs=
115 MFLAGS= MAKEFLAGS=
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
118 ac_max_here_lines=12
119
120 ac_prev=
121 for ac_option
122 do
123
124   # If the previous option needs an argument, assign it.
125   if test -n "$ac_prev"; then
126     eval "$ac_prev=\$ac_option"
127     ac_prev=
128     continue
129   fi
130
131   case "$ac_option" in
132   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133   *) ac_optarg= ;;
134   esac
135
136   # Accept the important Cygnus configure options, so we can diagnose typos.
137
138   case "$ac_option" in
139
140   -bindir | --bindir | --bindi | --bind | --bin | --bi)
141     ac_prev=bindir ;;
142   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143     bindir="$ac_optarg" ;;
144
145   -build | --build | --buil | --bui | --bu)
146     ac_prev=build ;;
147   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148     build="$ac_optarg" ;;
149
150   -cache-file | --cache-file | --cache-fil | --cache-fi \
151   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152     ac_prev=cache_file ;;
153   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155     cache_file="$ac_optarg" ;;
156
157   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158     ac_prev=datadir ;;
159   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160   | --da=*)
161     datadir="$ac_optarg" ;;
162
163   -disable-* | --disable-*)
164     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165     # Reject names that are not valid shell variable names.
166     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168     fi
169     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170     eval "enable_${ac_feature}=no" ;;
171
172   -enable-* | --enable-*)
173     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174     # Reject names that are not valid shell variable names.
175     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177     fi
178     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179     case "$ac_option" in
180       *=*) ;;
181       *) ac_optarg=yes ;;
182     esac
183     eval "enable_${ac_feature}='$ac_optarg'" ;;
184
185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187   | --exec | --exe | --ex)
188     ac_prev=exec_prefix ;;
189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191   | --exec=* | --exe=* | --ex=*)
192     exec_prefix="$ac_optarg" ;;
193
194   -gas | --gas | --ga | --g)
195     # Obsolete; use --with-gas.
196     with_gas=yes ;;
197
198   -help | --help | --hel | --he)
199     # Omit some internal or obsolete options to make the list less imposing.
200     # This message is too long to be a string in the A/UX 3.1 sh.
201     cat << EOF
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
204 Configuration:
205   --cache-file=FILE       cache test results in FILE
206   --help                  print this message
207   --no-create             do not create output files
208   --quiet, --silent       do not print \`checking...' messages
209   --version               print the version of autoconf that created configure
210 Directory and file names:
211   --prefix=PREFIX         install architecture-independent files in PREFIX
212                           [$ac_default_prefix]
213   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
214                           [same as prefix]
215   --bindir=DIR            user executables in DIR [EPREFIX/bin]
216   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
217   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
218   --datadir=DIR           read-only architecture-independent data in DIR
219                           [PREFIX/share]
220   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
221   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
222                           [PREFIX/com]
223   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
224   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
225   --includedir=DIR        C header files in DIR [PREFIX/include]
226   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
227   --infodir=DIR           info documentation in DIR [PREFIX/info]
228   --mandir=DIR            man documentation in DIR [PREFIX/man]
229   --srcdir=DIR            find the sources in DIR [configure dir or ..]
230   --program-prefix=PREFIX prepend PREFIX to installed program names
231   --program-suffix=SUFFIX append SUFFIX to installed program names
232   --program-transform-name=PROGRAM
233                           run sed PROGRAM on installed program names
234 EOF
235     cat << EOF
236 Host type:
237   --build=BUILD           configure for building on BUILD [BUILD=HOST]
238   --host=HOST             configure for HOST [guessed]
239   --target=TARGET         configure for TARGET [TARGET=HOST]
240 Features and packages:
241   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
242   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
243   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
244   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
245   --x-includes=DIR        X include files are in DIR
246   --x-libraries=DIR       X library files are in DIR
247 EOF
248     if test -n "$ac_help"; then
249       echo "--enable and --with options recognized:$ac_help"
250     fi
251     exit 0 ;;
252
253   -host | --host | --hos | --ho)
254     ac_prev=host ;;
255   -host=* | --host=* | --hos=* | --ho=*)
256     host="$ac_optarg" ;;
257
258   -includedir | --includedir | --includedi | --included | --include \
259   | --includ | --inclu | --incl | --inc)
260     ac_prev=includedir ;;
261   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262   | --includ=* | --inclu=* | --incl=* | --inc=*)
263     includedir="$ac_optarg" ;;
264
265   -infodir | --infodir | --infodi | --infod | --info | --inf)
266     ac_prev=infodir ;;
267   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268     infodir="$ac_optarg" ;;
269
270   -libdir | --libdir | --libdi | --libd)
271     ac_prev=libdir ;;
272   -libdir=* | --libdir=* | --libdi=* | --libd=*)
273     libdir="$ac_optarg" ;;
274
275   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276   | --libexe | --libex | --libe)
277     ac_prev=libexecdir ;;
278   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279   | --libexe=* | --libex=* | --libe=*)
280     libexecdir="$ac_optarg" ;;
281
282   -localstatedir | --localstatedir | --localstatedi | --localstated \
283   | --localstate | --localstat | --localsta | --localst \
284   | --locals | --local | --loca | --loc | --lo)
285     ac_prev=localstatedir ;;
286   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289     localstatedir="$ac_optarg" ;;
290
291   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292     ac_prev=mandir ;;
293   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294     mandir="$ac_optarg" ;;
295
296   -nfp | --nfp | --nf)
297     # Obsolete; use --without-fp.
298     with_fp=no ;;
299
300   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301   | --no-cr | --no-c)
302     no_create=yes ;;
303
304   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306     no_recursion=yes ;;
307
308   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310   | --oldin | --oldi | --old | --ol | --o)
311     ac_prev=oldincludedir ;;
312   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315     oldincludedir="$ac_optarg" ;;
316
317   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318     ac_prev=prefix ;;
319   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320     prefix="$ac_optarg" ;;
321
322   -program-prefix | --program-prefix | --program-prefi | --program-pref \
323   | --program-pre | --program-pr | --program-p)
324     ac_prev=program_prefix ;;
325   -program-prefix=* | --program-prefix=* | --program-prefi=* \
326   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327     program_prefix="$ac_optarg" ;;
328
329   -program-suffix | --program-suffix | --program-suffi | --program-suff \
330   | --program-suf | --program-su | --program-s)
331     ac_prev=program_suffix ;;
332   -program-suffix=* | --program-suffix=* | --program-suffi=* \
333   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334     program_suffix="$ac_optarg" ;;
335
336   -program-transform-name | --program-transform-name \
337   | --program-transform-nam | --program-transform-na \
338   | --program-transform-n | --program-transform- \
339   | --program-transform | --program-transfor \
340   | --program-transfo | --program-transf \
341   | --program-trans | --program-tran \
342   | --progr-tra | --program-tr | --program-t)
343     ac_prev=program_transform_name ;;
344   -program-transform-name=* | --program-transform-name=* \
345   | --program-transform-nam=* | --program-transform-na=* \
346   | --program-transform-n=* | --program-transform-=* \
347   | --program-transform=* | --program-transfor=* \
348   | --program-transfo=* | --program-transf=* \
349   | --program-trans=* | --program-tran=* \
350   | --progr-tra=* | --program-tr=* | --program-t=*)
351     program_transform_name="$ac_optarg" ;;
352
353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354   | -silent | --silent | --silen | --sile | --sil)
355     silent=yes ;;
356
357   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358     ac_prev=sbindir ;;
359   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360   | --sbi=* | --sb=*)
361     sbindir="$ac_optarg" ;;
362
363   -sharedstatedir | --sharedstatedir | --sharedstatedi \
364   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365   | --sharedst | --shareds | --shared | --share | --shar \
366   | --sha | --sh)
367     ac_prev=sharedstatedir ;;
368   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371   | --sha=* | --sh=*)
372     sharedstatedir="$ac_optarg" ;;
373
374   -site | --site | --sit)
375     ac_prev=site ;;
376   -site=* | --site=* | --sit=*)
377     site="$ac_optarg" ;;
378
379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380     ac_prev=srcdir ;;
381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382     srcdir="$ac_optarg" ;;
383
384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385   | --syscon | --sysco | --sysc | --sys | --sy)
386     ac_prev=sysconfdir ;;
387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389     sysconfdir="$ac_optarg" ;;
390
391   -target | --target | --targe | --targ | --tar | --ta | --t)
392     ac_prev=target ;;
393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394     target="$ac_optarg" ;;
395
396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
397     verbose=yes ;;
398
399   -version | --version | --versio | --versi | --vers)
400     echo "configure generated by autoconf version 2.13"
401     exit 0 ;;
402
403   -with-* | --with-*)
404     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     case "$ac_option" in
411       *=*) ;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "with_${ac_package}='$ac_optarg'" ;;
415
416   -without-* | --without-*)
417     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     eval "with_${ac_package}=no" ;;
424
425   --x)
426     # Obsolete; use --with-x.
427     with_x=yes ;;
428
429   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430   | --x-incl | --x-inc | --x-in | --x-i)
431     ac_prev=x_includes ;;
432   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434     x_includes="$ac_optarg" ;;
435
436   -x-libraries | --x-libraries | --x-librarie | --x-librari \
437   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438     ac_prev=x_libraries ;;
439   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441     x_libraries="$ac_optarg" ;;
442
443   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444     ;;
445
446   *)
447     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448       echo "configure: warning: $ac_option: invalid host type" 1>&2
449     fi
450     if test "x$nonopt" != xNONE; then
451       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452     fi
453     nonopt="$ac_option"
454     ;;
455
456   esac
457 done
458
459 if test -n "$ac_prev"; then
460   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 fi
462
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474   exec 6>/dev/null
475 else
476   exec 6>&1
477 fi
478 exec 5>./config.log
479
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
484
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
489 do
490   case "$ac_arg" in
491   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492   | --no-cr | --no-c) ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498   esac
499 done
500
501 # NLS nuisances.
502 # Only set these to C if already set.  These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
515
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
519
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522   ac_srcdir_defaulted=yes
523   # Try the directory containing this script, then its parent.
524   ac_prog=$0
525   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527   srcdir=$ac_confdir
528   if test ! -r $srcdir/$ac_unique_file; then
529     srcdir=..
530   fi
531 else
532   ac_srcdir_defaulted=no
533 fi
534 if test ! -r $srcdir/$ac_unique_file; then
535   if test "$ac_srcdir_defaulted" = yes; then
536     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537   else
538     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539   fi
540 fi
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545   if test "x$prefix" != xNONE; then
546     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547   else
548     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549   fi
550 fi
551 for ac_site_file in $CONFIG_SITE; do
552   if test -r "$ac_site_file"; then
553     echo "loading site script $ac_site_file"
554     . "$ac_site_file"
555   fi
556 done
557
558 if test -r "$cache_file"; then
559   echo "loading cache $cache_file"
560   . $cache_file
561 else
562   echo "creating cache $cache_file"
563   > $cache_file
564 fi
565
566 ac_ext=c
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
572
573 ac_exeext=
574 ac_objext=o
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578     ac_n= ac_c='
579 ' ac_t='        '
580   else
581     ac_n=-n ac_c= ac_t=
582   fi
583 else
584   ac_n= ac_c='\c' ac_t=
585 fi
586
587
588
589 # This works around the fact that libtool configuration may change LD
590 # for this particular configuration, but some shells, instead of
591 # keeping the changes in LD private, export them just because LD is
592 # exported.  Only used at the end of this file.
593 ORIGINAL_LD_FOR_MULTILIBS=$LD
594
595 PACKAGE=libstdc++
596
597 # For libtool versioning info, format is CURRENT:REVISION:AGE
598 libtool_VERSION=6:0:0
599
600
601
602       # Check whether --enable-multilib or --disable-multilib was given.
603 if test "${enable_multilib+set}" = set; then
604   enableval="$enable_multilib"
605   case "${enableval}" in
606     yes) multilib=yes ;;
607     no)  multilib=no ;;
608     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
609    esac
610 else
611   multilib=yes
612 fi
613
614   # When building with srcdir == objdir, links to the source files will
615   # be created in directories within the target_subdir.  We have to
616   # adjust toplevel_srcdir accordingly, so that configure finds
617   # install-sh and other auxiliary files that live in the top-level
618   # source directory.
619   if test "${srcdir}" = "."; then
620     if test -z "${with_target_subdir}"; then
621       toprel=".."
622     else
623       if test "${with_target_subdir}" != "."; then
624         toprel="${with_multisrctop}../.."
625       else
626         toprel="${with_multisrctop}.."
627       fi
628     fi
629   else
630     toprel=".."
631   fi
632   ac_aux_dir=
633 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
634   if test -f $ac_dir/install-sh; then
635     ac_aux_dir=$ac_dir
636     ac_install_sh="$ac_aux_dir/install-sh -c"
637     break
638   elif test -f $ac_dir/install.sh; then
639     ac_aux_dir=$ac_dir
640     ac_install_sh="$ac_aux_dir/install.sh -c"
641     break
642   fi
643 done
644 if test -z "$ac_aux_dir"; then
645   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
646 fi
647 ac_config_guess=$ac_aux_dir/config.guess
648 ac_config_sub=$ac_aux_dir/config.sub
649 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
650
651   toplevel_srcdir=\${top_srcdir}/$toprel
652   
653
654
655 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
656 #
657 # You will slowly go insane if you do not grok the following fact:  when
658 # building v3 as part of the compiler, the top-level /target/ becomes the
659 # library's /host/.  `configure' then causes --target to default to --host,
660 # exactly like any other package using autoconf.  Therefore, 'target' and
661 # 'host' will always be the same.  This makes sense both for native and
662 # cross compilers, just think about it for a little while.  :-)
663 #
664 # Also, if v3 is being configured as part of a cross compiler, the top-level
665 # configure script will pass the "real" host as $with_cross_host.
666 #
667 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
668
669 # Do some error checking and defaulting for the host and target type.
670 # The inputs are:
671 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
672 #
673 # The rules are:
674 # 1. You are not allowed to specify --host, --target, and nonopt at the
675 #    same time.
676 # 2. Host defaults to nonopt.
677 # 3. If nonopt is not specified, then host defaults to the current host,
678 #    as determined by config.guess.
679 # 4. Target and build default to nonopt.
680 # 5. If nonopt is not specified, then target and build default to host.
681
682 # The aliases save the names the user supplied, while $host etc.
683 # will get canonicalized.
684 case $host---$target---$nonopt in
685 NONE---*---* | *---NONE---* | *---*---NONE) ;;
686 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
687 esac
688
689
690 # Make sure we can run config.sub.
691 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 fi
694
695 echo $ac_n "checking host system type""... $ac_c" 1>&6
696 echo "configure:697: checking host system type" >&5
697
698 host_alias=$host
699 case "$host_alias" in
700 NONE)
701   case $nonopt in
702   NONE)
703     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
704     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705     fi ;;
706   *) host_alias=$nonopt ;;
707   esac ;;
708 esac
709
710 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
711 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$host" 1>&6
715
716 echo $ac_n "checking target system type""... $ac_c" 1>&6
717 echo "configure:718: checking target system type" >&5
718
719 target_alias=$target
720 case "$target_alias" in
721 NONE)
722   case $nonopt in
723   NONE) target_alias=$host_alias ;;
724   *) target_alias=$nonopt ;;
725   esac ;;
726 esac
727
728 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
729 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
730 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
731 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
732 echo "$ac_t""$target" 1>&6
733
734 echo $ac_n "checking build system type""... $ac_c" 1>&6
735 echo "configure:736: checking build system type" >&5
736
737 build_alias=$build
738 case "$build_alias" in
739 NONE)
740   case $nonopt in
741   NONE) build_alias=$host_alias ;;
742   *) build_alias=$nonopt ;;
743   esac ;;
744 esac
745
746 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
747 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
748 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
749 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo "$ac_t""$build" 1>&6
751
752 test "$host_alias" != "$target_alias" &&
753   test "$program_prefix$program_suffix$program_transform_name" = \
754     NONENONEs,x,x, &&
755   program_prefix=${target_alias}-
756
757
758 # Runs configure.host, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761   ac_tool_prefix=${host_alias}-
762 else
763   ac_tool_prefix=
764 fi
765
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769   echo $ac_n "(cached) $ac_c" 1>&6
770 else
771   cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
774
775 int main() {
776
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
782 EOF
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784   rm -rf conftest*
785   ac_cv_cygwin=yes
786 else
787   echo "configure: failed program was:" >&5
788   cat conftest.$ac_ext >&5
789   rm -rf conftest*
790   ac_cv_cygwin=no
791 fi
792 rm -f conftest*
793 rm -f conftest*
794 fi
795
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802   echo $ac_n "(cached) $ac_c" 1>&6
803 else
804   cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
807
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
811 EOF
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813   rm -rf conftest*
814   ac_cv_mingw32=yes
815 else
816   echo "configure: failed program was:" >&5
817   cat conftest.$ac_ext >&5
818   rm -rf conftest*
819   ac_cv_mingw32=no
820 fi
821 rm -f conftest*
822 rm -f conftest*
823 fi
824
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
828
829   # Export build and source directories.
830   # These need to be absolute paths, yet at the same time need to
831   # canonicalize only relative paths, because then amd will not unmount
832   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833   glibcpp_builddir=`${PWDCMD-pwd}`
834   case $srcdir in
835   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837   esac
838   
839   
840
841     
842
843   for ac_prog in gawk mawk nawk awk
844 do
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850   echo $ac_n "(cached) $ac_c" 1>&6
851 else
852   if test -n "$AWK"; then
853   ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
856   ac_dummy="$PATH"
857   for ac_dir in $ac_dummy; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_AWK="$ac_prog"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869   echo "$ac_t""$AWK" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$AWK" && break
875 done
876
877   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
878   # be 'cp -p' if linking isn't available.  Uncomment the next line to
879   # force a particular method.
880   #ac_cv_prog_LN_S='cp -p'
881   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889   rm -f conftestdata
890   ac_cv_prog_LN_S="ln -s"
891 else
892   ac_cv_prog_LN_S=ln
893 fi
894 fi
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897   echo "$ac_t""yes" 1>&6
898 else
899   echo "$ac_t""no" 1>&6
900 fi
901
902
903   # We use these options to decide which functions to include.
904   # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906   withval="$with_target_subdir"
907   :
908 fi
909
910   # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912   withval="$with_cross_host"
913   :
914 fi
915
916
917   # Check whether --with-newlib or --without-newlib was given.
918 if test "${with_newlib+set}" = set; then
919   withval="$with_newlib"
920   :
921 fi
922
923
924   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
925   
926
927   # Never versions of autoconf add an underscore to these functions.
928   # Prevent future problems ...
929   
930   
931   
932   
933
934   # AC_PROG_CC
935   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
936   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
937   # are probably using a cross compiler, which will not be able to fully
938   # link an executable.  This is addressed in later versions of autoconf.
939
940   
941
942       
943   # Extract the first word of "gcc", so it can be a program name with args.
944 set dummy gcc; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948   echo $ac_n "(cached) $ac_c" 1>&6
949 else
950   if test -n "$CC"; then
951   ac_cv_prog_CC="$CC" # Let the user override the test.
952 else
953   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
954   ac_dummy="$PATH"
955   for ac_dir in $ac_dummy; do
956     test -z "$ac_dir" && ac_dir=.
957     if test -f $ac_dir/$ac_word; then
958       ac_cv_prog_CC="gcc"
959       break
960     fi
961   done
962   IFS="$ac_save_ifs"
963 fi
964 fi
965 CC="$ac_cv_prog_CC"
966 if test -n "$CC"; then
967   echo "$ac_t""$CC" 1>&6
968 else
969   echo "$ac_t""no" 1>&6
970 fi
971
972   if test -z "$CC"; then
973     # Extract the first word of "cc", so it can be a program name with args.
974 set dummy cc; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978   echo $ac_n "(cached) $ac_c" 1>&6
979 else
980   if test -n "$CC"; then
981   ac_cv_prog_CC="$CC" # Let the user override the test.
982 else
983   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
984   ac_prog_rejected=no
985   ac_dummy="$PATH"
986   for ac_dir in $ac_dummy; do
987     test -z "$ac_dir" && ac_dir=.
988     if test -f $ac_dir/$ac_word; then
989       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
990         ac_prog_rejected=yes
991         continue
992       fi
993       ac_cv_prog_CC="cc"
994       break
995     fi
996   done
997   IFS="$ac_save_ifs"
998 if test $ac_prog_rejected = yes; then
999   # We found a bogon in the path, so make sure we never use it.
1000   set dummy $ac_cv_prog_CC
1001   shift
1002   if test $# -gt 0; then
1003     # We chose a different compiler from the bogus one.
1004     # However, it has the same basename, so the bogon will be chosen
1005     # first if we set CC to just the basename; use the full file name.
1006     shift
1007     set dummy "$ac_dir/$ac_word" "$@"
1008     shift
1009     ac_cv_prog_CC="$@"
1010   fi
1011 fi
1012 fi
1013 fi
1014 CC="$ac_cv_prog_CC"
1015 if test -n "$CC"; then
1016   echo "$ac_t""$CC" 1>&6
1017 else
1018   echo "$ac_t""no" 1>&6
1019 fi
1020
1021     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1022   fi
1023
1024   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether we are using GNU C" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1027   echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029   cat > conftest.c <<EOF
1030 #ifdef __GNUC__
1031   yes;
1032 #endif
1033 EOF
1034 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1035   ac_cv_prog_gcc=yes
1036 else
1037   ac_cv_prog_gcc=no
1038 fi
1039 fi
1040
1041 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1042
1043   if test $ac_cv_prog_gcc = yes; then
1044     GCC=yes
1045           ac_test_CFLAGS="${CFLAGS+set}"
1046     ac_save_CFLAGS="$CFLAGS"
1047     CFLAGS=
1048     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether ${CC-cc} accepts -g" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1051   echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053   echo 'void f(){}' > conftest.c
1054 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1055   ac_cv_prog_cc_g=yes
1056 else
1057   ac_cv_prog_cc_g=no
1058 fi
1059 rm -f conftest*
1060
1061 fi
1062
1063 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1064     if test "$ac_test_CFLAGS" = set; then
1065       CFLAGS="$ac_save_CFLAGS"
1066     elif test $ac_cv_prog_cc_g = yes; then
1067       CFLAGS="-g -O2"
1068     else
1069       CFLAGS="-O2"
1070     fi
1071   else
1072     GCC=
1073     test "${CFLAGS+set}" = set || CFLAGS="-g"
1074   fi
1075   
1076
1077   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1078   # will try to link in libstdc++.
1079   
1080
1081       
1082   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1083   # flags that come in CXX while configuring libstdc++.  They're different
1084   # from those used for all other target libraries.  If CXX is set in
1085   # the environment, respect that here.
1086   glibcpp_CXX=$CXX
1087   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1088 do
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1094   echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096   if test -n "$glibcpp_CXX"; then
1097   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1098 else
1099   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1100   ac_dummy="$PATH"
1101   for ac_dir in $ac_dummy; do
1102     test -z "$ac_dir" && ac_dir=.
1103     if test -f $ac_dir/$ac_word; then
1104       ac_cv_prog_glibcpp_CXX="$ac_prog"
1105       break
1106     fi
1107   done
1108   IFS="$ac_save_ifs"
1109 fi
1110 fi
1111 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1112 if test -n "$glibcpp_CXX"; then
1113   echo "$ac_t""$glibcpp_CXX" 1>&6
1114 else
1115   echo "$ac_t""no" 1>&6
1116 fi
1117
1118 test -n "$glibcpp_CXX" && break
1119 done
1120 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1121
1122   
1123   CXX=$glibcpp_CXX
1124   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1125
1126   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C++" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129   echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131   cat > conftest.C <<EOF
1132 #ifdef __GNUC__
1133   yes;
1134 #endif
1135 EOF
1136 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137   ac_cv_prog_gxx=yes
1138 else
1139   ac_cv_prog_gxx=no
1140 fi
1141 fi
1142
1143 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1144
1145   if test $ac_cv_prog_gxx = yes; then
1146     GXX=yes
1147                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1148     ac_save_CXXFLAGS="$CXXFLAGS"
1149     CXXFLAGS=
1150     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${CXX-g++} accepts -g" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1153   echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155   echo 'void f(){}' > conftest.cc
1156 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1157   ac_cv_prog_cxx_g=yes
1158 else
1159   ac_cv_prog_cxx_g=no
1160 fi
1161 rm -f conftest*
1162
1163 fi
1164
1165 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1166     if test "$ac_test_CXXFLAGS" = set; then
1167       CXXFLAGS="$ac_save_CXXFLAGS"
1168     elif test $ac_cv_prog_cxx_g = yes; then
1169       CXXFLAGS="-g -O2"
1170     else
1171       CXXFLAGS="-O2"
1172     fi
1173   else
1174     GXX=
1175     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1176   fi
1177   
1178
1179   # For directory versioning (e.g., headers) and other variables.
1180   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1181 echo "configure:1182: checking for GCC version number" >&5
1182   gcc_version=`$glibcpp_CXX -dumpversion`
1183   echo "$ac_t""$gcc_version" 1>&6
1184
1185   # For some reason, gettext needs this.
1186   
1187         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1188 echo "configure:1189: checking for strerror in -lcposix" >&5
1189 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1191   echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193   ac_save_LIBS="$LIBS"
1194 LIBS="-lcposix  $LIBS"
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* Override any gcc2 internal prototype to avoid an error.  */
1199 /* We use char because int might match the return type of a gcc2
1200     builtin and then its argument prototype would still apply.  */
1201 char strerror();
1202
1203 int main() {
1204 strerror()
1205 ; return 0; }
1206 EOF
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208   rm -rf conftest*
1209   eval "ac_cv_lib_$ac_lib_var=yes"
1210 else
1211   echo "configure: failed program was:" >&5
1212   cat conftest.$ac_ext >&5
1213   rm -rf conftest*
1214   eval "ac_cv_lib_$ac_lib_var=no"
1215 fi
1216 rm -f conftest*
1217 LIBS="$ac_save_LIBS"
1218
1219 fi
1220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1221   echo "$ac_t""yes" 1>&6
1222   LIBS="$LIBS -lcposix"
1223 else
1224   echo "$ac_t""no" 1>&6
1225 fi
1226
1227   
1228
1229
1230   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1231 set dummy ${ac_tool_prefix}as; ac_word=$2
1232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_word" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1235   echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237   if test -n "$AS"; then
1238   ac_cv_prog_AS="$AS" # Let the user override the test.
1239 else
1240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1241   ac_dummy="$PATH"
1242   for ac_dir in $ac_dummy; do
1243     test -z "$ac_dir" && ac_dir=.
1244     if test -f $ac_dir/$ac_word; then
1245       ac_cv_prog_AS="${ac_tool_prefix}as"
1246       break
1247     fi
1248   done
1249   IFS="$ac_save_ifs"
1250   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1251 fi
1252 fi
1253 AS="$ac_cv_prog_AS"
1254 if test -n "$AS"; then
1255   echo "$ac_t""$AS" 1>&6
1256 else
1257   echo "$ac_t""no" 1>&6
1258 fi
1259
1260
1261
1262   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1263 set dummy ${ac_tool_prefix}ar; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1267   echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269   if test -n "$AR"; then
1270   ac_cv_prog_AR="$AR" # Let the user override the test.
1271 else
1272   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1273   ac_dummy="$PATH"
1274   for ac_dir in $ac_dummy; do
1275     test -z "$ac_dir" && ac_dir=.
1276     if test -f $ac_dir/$ac_word; then
1277       ac_cv_prog_AR="${ac_tool_prefix}ar"
1278       break
1279     fi
1280   done
1281   IFS="$ac_save_ifs"
1282   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1283 fi
1284 fi
1285 AR="$ac_cv_prog_AR"
1286 if test -n "$AR"; then
1287   echo "$ac_t""$AR" 1>&6
1288 else
1289   echo "$ac_t""no" 1>&6
1290 fi
1291
1292
1293
1294   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1299   echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301   if test -n "$RANLIB"; then
1302   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1303 else
1304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1305   ac_dummy="$PATH"
1306   for ac_dir in $ac_dummy; do
1307     test -z "$ac_dir" && ac_dir=.
1308     if test -f $ac_dir/$ac_word; then
1309       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1310       break
1311     fi
1312   done
1313   IFS="$ac_save_ifs"
1314 fi
1315 fi
1316 RANLIB="$ac_cv_prog_RANLIB"
1317 if test -n "$RANLIB"; then
1318   echo "$ac_t""$RANLIB" 1>&6
1319 else
1320   echo "$ac_t""no" 1>&6
1321 fi
1322
1323
1324 if test -z "$ac_cv_prog_RANLIB"; then
1325 if test -n "$ac_tool_prefix"; then
1326   # Extract the first word of "ranlib", so it can be a program name with args.
1327 set dummy ranlib; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331   echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333   if test -n "$RANLIB"; then
1334   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335 else
1336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1337   ac_dummy="$PATH"
1338   for ac_dir in $ac_dummy; do
1339     test -z "$ac_dir" && ac_dir=.
1340     if test -f $ac_dir/$ac_word; then
1341       ac_cv_prog_RANLIB="ranlib"
1342       break
1343     fi
1344   done
1345   IFS="$ac_save_ifs"
1346   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1347 fi
1348 fi
1349 RANLIB="$ac_cv_prog_RANLIB"
1350 if test -n "$RANLIB"; then
1351   echo "$ac_t""$RANLIB" 1>&6
1352 else
1353   echo "$ac_t""no" 1>&6
1354 fi
1355
1356 else
1357   RANLIB="ranlib-not-found-in-path-error"
1358 fi
1359 fi
1360
1361   # Find a good install program.  We prefer a C program (faster),
1362 # so one script is as good as another.  But avoid the broken or
1363 # incompatible versions:
1364 # SysV /etc/install, /usr/sbin/install
1365 # SunOS /usr/etc/install
1366 # IRIX /sbin/install
1367 # AIX /bin/install
1368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1371 # ./install, which can be erroneously created by make from ./install.sh.
1372 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1373 echo "configure:1374: checking for a BSD compatible install" >&5
1374 if test -z "$INSTALL"; then
1375 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1379   for ac_dir in $PATH; do
1380     # Account for people who put trailing slashes in PATH elements.
1381     case "$ac_dir/" in
1382     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1383     *)
1384       # OSF1 and SCO ODT 3.0 have their own names for install.
1385       # Don't use installbsd from OSF since it installs stuff as root
1386       # by default.
1387       for ac_prog in ginstall scoinst install; do
1388         if test -f $ac_dir/$ac_prog; then
1389           if test $ac_prog = install &&
1390             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1391             # AIX install.  It has an incompatible calling convention.
1392             :
1393           else
1394             ac_cv_path_install="$ac_dir/$ac_prog -c"
1395             break 2
1396           fi
1397         fi
1398       done
1399       ;;
1400     esac
1401   done
1402   IFS="$ac_save_IFS"
1403
1404 fi
1405   if test "${ac_cv_path_install+set}" = set; then
1406     INSTALL="$ac_cv_path_install"
1407   else
1408     # As a last resort, use the slow shell script.  We don't cache a
1409     # path for INSTALL within a source directory, because that will
1410     # break other packages using the cache if that directory is
1411     # removed, or if the path is relative.
1412     INSTALL="$ac_install_sh"
1413   fi
1414 fi
1415 echo "$ac_t""$INSTALL" 1>&6
1416
1417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1418 # It thinks the first close brace ends the variable substitution.
1419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1420
1421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1422
1423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1424
1425
1426   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether to enable maintainer-specific portions of Makefiles" >&5
1428     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1429 if test "${enable_maintainer_mode+set}" = set; then
1430   enableval="$enable_maintainer_mode"
1431   USE_MAINTAINER_MODE=$enableval
1432 else
1433   USE_MAINTAINER_MODE=no
1434 fi
1435
1436   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1437   
1438
1439 if test $USE_MAINTAINER_MODE = yes; then
1440   MAINTAINER_MODE_TRUE=
1441   MAINTAINER_MODE_FALSE='#'
1442 else
1443   MAINTAINER_MODE_TRUE='#'
1444   MAINTAINER_MODE_FALSE=
1445 fi
1446   MAINT=$MAINTAINER_MODE_TRUE
1447   
1448
1449
1450   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1451   # at least currently, we never actually build a program, so we never
1452   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1453   # fails, because we are probably configuring with a cross compiler
1454   # which can't create executables.  So we include AC_EXEEXT to keep
1455   # automake happy, but we don't execute it, since we don't care about
1456   # the result.
1457   if false; then
1458     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1459     # to nothing, so nothing would remain between `then' and `fi' if it
1460     # were not for the `:' below.
1461     :
1462     
1463
1464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1465 echo "configure:1466: checking for executable suffix" >&5
1466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1470   ac_cv_exeext=.exe
1471 else
1472   rm -f conftest*
1473   echo 'int main () { return 0; }' > conftest.$ac_ext
1474   ac_cv_exeext=
1475   if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1476     for file in conftest.*; do
1477       case $file in
1478       *.c | *.o | *.obj) ;;
1479       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1480       esac
1481     done
1482   else
1483     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1484   fi
1485   rm -f conftest*
1486   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1487 fi
1488 fi
1489
1490 EXEEXT=""
1491 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1492 echo "$ac_t""${ac_cv_exeext}" 1>&6
1493 ac_exeext=$EXEEXT
1494
1495   fi
1496
1497   case ${glibcpp_basedir} in
1498     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1499     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1500   esac
1501
1502   # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1503   need_libmath=no
1504   enable_wchar_t=no
1505   #enable_debug=no
1506   #glibcpp_pch_comp=no
1507   #enable_cheaders=c
1508   #c_compatibility=no
1509   #enable_abi_check=no
1510   #enable_symvers=no
1511
1512   # Find platform-specific directories containing configuration info.  In
1513   # addition to possibly modifying the same flags, it also sets up symlinks.
1514   
1515   . ${glibcpp_basedir}/configure.host
1516   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1517   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1518
1519
1520
1521 am__api_version="1.4"
1522 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether build environment is sane" >&5
1524 # Just in case
1525 sleep 1
1526 echo timestamp > conftestfile
1527 # Do `set' in a subshell so we don't clobber the current shell's
1528 # arguments.  Must try -L first in case configure is actually a
1529 # symlink; some systems play weird games with the mod time of symlinks
1530 # (eg FreeBSD returns the mod time of the symlink's containing
1531 # directory).
1532 if (
1533    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1534    if test "$*" = "X"; then
1535       # -L didn't work.
1536       set X `ls -t $srcdir/configure conftestfile`
1537    fi
1538    if test "$*" != "X $srcdir/configure conftestfile" \
1539       && test "$*" != "X conftestfile $srcdir/configure"; then
1540
1541       # If neither matched, then we have a broken ls.  This can happen
1542       # if, for instance, CONFIG_SHELL is bash and it inherits a
1543       # broken ls alias from the environment.  This has actually
1544       # happened.  Such a system could not be considered "sane".
1545       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1546 alias in your environment" 1>&2; exit 1; }
1547    fi
1548
1549    test "$2" = conftestfile
1550    )
1551 then
1552    # Ok.
1553    :
1554 else
1555    { echo "configure: error: newly created file is older than distributed files!
1556 Check your system clock" 1>&2; exit 1; }
1557 fi
1558 rm -f conftest*
1559 echo "$ac_t""yes" 1>&6
1560 if test "$program_transform_name" = s,x,x,; then
1561   program_transform_name=
1562 else
1563   # Double any \ or $.  echo might interpret backslashes.
1564   cat <<\EOF_SED > conftestsed
1565 s,\\,\\\\,g; s,\$,$$,g
1566 EOF_SED
1567   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1568   rm -f conftestsed
1569 fi
1570 test "$program_prefix" != NONE &&
1571   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE &&
1574   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1575
1576 # sed with no file args requires a program.
1577 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1578
1579 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether ${MAKE-make} sets \${MAKE}" >&5
1581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1582 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1583   echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585   cat > conftestmake <<\EOF
1586 all:
1587         @echo 'ac_maketemp="${MAKE}"'
1588 EOF
1589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1591 if test -n "$ac_maketemp"; then
1592   eval ac_cv_prog_make_${ac_make}_set=yes
1593 else
1594   eval ac_cv_prog_make_${ac_make}_set=no
1595 fi
1596 rm -f conftestmake
1597 fi
1598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599   echo "$ac_t""yes" 1>&6
1600   SET_MAKE=
1601 else
1602   echo "$ac_t""no" 1>&6
1603   SET_MAKE="MAKE=${MAKE-make}"
1604 fi
1605
1606
1607 PACKAGE=$PACKAGE
1608
1609 VERSION=$gcc_version
1610
1611 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1612   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1613 fi
1614 cat >> confdefs.h <<EOF
1615 #define PACKAGE "$PACKAGE"
1616 EOF
1617
1618 cat >> confdefs.h <<EOF
1619 #define VERSION "$VERSION"
1620 EOF
1621
1622
1623
1624 missing_dir=`cd $ac_aux_dir && pwd`
1625 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1626 echo "configure:1627: checking for working aclocal-${am__api_version}" >&5
1627 # Run test in a subshell; some versions of sh will print an error if
1628 # an executable is not found, even if stderr is redirected.
1629 # Redirect stdin to placate older versions of autoconf.  Sigh.
1630 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1631    ACLOCAL=aclocal-${am__api_version}
1632    echo "$ac_t""found" 1>&6
1633 else
1634    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1635    echo "$ac_t""missing" 1>&6
1636 fi
1637
1638 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1639 echo "configure:1640: checking for working autoconf" >&5
1640 # Run test in a subshell; some versions of sh will print an error if
1641 # an executable is not found, even if stderr is redirected.
1642 # Redirect stdin to placate older versions of autoconf.  Sigh.
1643 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1644    AUTOCONF=autoconf
1645    echo "$ac_t""found" 1>&6
1646 else
1647    AUTOCONF="$missing_dir/missing autoconf"
1648    echo "$ac_t""missing" 1>&6
1649 fi
1650
1651 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1652 echo "configure:1653: checking for working automake-${am__api_version}" >&5
1653 # Run test in a subshell; some versions of sh will print an error if
1654 # an executable is not found, even if stderr is redirected.
1655 # Redirect stdin to placate older versions of autoconf.  Sigh.
1656 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1657    AUTOMAKE=automake-${am__api_version}
1658    echo "$ac_t""found" 1>&6
1659 else
1660    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1661    echo "$ac_t""missing" 1>&6
1662 fi
1663
1664 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1665 echo "configure:1666: checking for working autoheader" >&5
1666 # Run test in a subshell; some versions of sh will print an error if
1667 # an executable is not found, even if stderr is redirected.
1668 # Redirect stdin to placate older versions of autoconf.  Sigh.
1669 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1670    AUTOHEADER=autoheader
1671    echo "$ac_t""found" 1>&6
1672 else
1673    AUTOHEADER="$missing_dir/missing autoheader"
1674    echo "$ac_t""missing" 1>&6
1675 fi
1676
1677 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1678 echo "configure:1679: checking for working makeinfo" >&5
1679 # Run test in a subshell; some versions of sh will print an error if
1680 # an executable is not found, even if stderr is redirected.
1681 # Redirect stdin to placate older versions of autoconf.  Sigh.
1682 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1683    MAKEINFO=makeinfo
1684    echo "$ac_t""found" 1>&6
1685 else
1686    MAKEINFO="$missing_dir/missing makeinfo"
1687    echo "$ac_t""missing" 1>&6
1688 fi
1689
1690
1691
1692
1693
1694
1695
1696 # Check whether --enable-shared or --disable-shared was given.
1697 if test "${enable_shared+set}" = set; then
1698   enableval="$enable_shared"
1699   p=${PACKAGE-default}
1700 case $enableval in
1701 yes) enable_shared=yes ;;
1702 no) enable_shared=no ;;
1703 *)
1704   enable_shared=no
1705   # Look at the argument we got.  We use all the common list separators.
1706   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1707   for pkg in $enableval; do
1708     if test "X$pkg" = "X$p"; then
1709       enable_shared=yes
1710     fi
1711   done
1712   IFS="$ac_save_ifs"
1713   ;;
1714 esac
1715 else
1716   enable_shared=yes
1717 fi
1718
1719 # Check whether --enable-static or --disable-static was given.
1720 if test "${enable_static+set}" = set; then
1721   enableval="$enable_static"
1722   p=${PACKAGE-default}
1723 case $enableval in
1724 yes) enable_static=yes ;;
1725 no) enable_static=no ;;
1726 *)
1727   enable_static=no
1728   # Look at the argument we got.  We use all the common list separators.
1729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1730   for pkg in $enableval; do
1731     if test "X$pkg" = "X$p"; then
1732       enable_static=yes
1733     fi
1734   done
1735   IFS="$ac_save_ifs"
1736   ;;
1737 esac
1738 else
1739   enable_static=yes
1740 fi
1741
1742 # Check whether --enable-fast-install or --disable-fast-install was given.
1743 if test "${enable_fast_install+set}" = set; then
1744   enableval="$enable_fast_install"
1745   p=${PACKAGE-default}
1746 case $enableval in
1747 yes) enable_fast_install=yes ;;
1748 no) enable_fast_install=no ;;
1749 *)
1750   enable_fast_install=no
1751   # Look at the argument we got.  We use all the common list separators.
1752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1753   for pkg in $enableval; do
1754     if test "X$pkg" = "X$p"; then
1755       enable_fast_install=yes
1756     fi
1757   done
1758   IFS="$ac_save_ifs"
1759   ;;
1760 esac
1761 else
1762   enable_fast_install=yes
1763 fi
1764
1765 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1766 if test "${with_gnu_ld+set}" = set; then
1767   withval="$with_gnu_ld"
1768   test "$withval" = no || with_gnu_ld=yes
1769 else
1770   with_gnu_ld=no
1771 fi
1772
1773 ac_prog=ld
1774 if test "$GCC" = yes; then
1775   # Check if gcc -print-prog-name=ld gives a path.
1776   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1777 echo "configure:1778: checking for ld used by GCC" >&5
1778   case $host in
1779   *-*-mingw*)
1780     # gcc leaves a trailing carriage return which upsets mingw
1781     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1782   *)
1783     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1784   esac
1785   case $ac_prog in
1786     # Accept absolute paths.
1787     [\\/]* | [A-Za-z]:[\\/]*)
1788       re_direlt='/[^/][^/]*/\.\./'
1789       # Canonicalize the path of ld
1790       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1791       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1792         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1793       done
1794       test -z "$LD" && LD="$ac_prog"
1795       ;;
1796   "")
1797     # If it fails, then pretend we aren't using GCC.
1798     ac_prog=ld
1799     ;;
1800   *)
1801     # If it is relative, then search for the first ld in PATH.
1802     with_gnu_ld=unknown
1803     ;;
1804   esac
1805 elif test "$with_gnu_ld" = yes; then
1806   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1807 echo "configure:1808: checking for GNU ld" >&5
1808 else
1809   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1810 echo "configure:1811: checking for non-GNU ld" >&5
1811 fi
1812 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1813   echo $ac_n "(cached) $ac_c" 1>&6
1814 else
1815   if test -z "$LD"; then
1816   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1817   for ac_dir in $PATH; do
1818     test -z "$ac_dir" && ac_dir=.
1819     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1820       lt_cv_path_LD="$ac_dir/$ac_prog"
1821       # Check to see if the program is GNU ld.  I'd rather use --version,
1822       # but apparently some GNU ld's only accept -v.
1823       # Break only if it was the GNU/non-GNU ld that we prefer.
1824       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1825         test "$with_gnu_ld" != no && break
1826       else
1827         test "$with_gnu_ld" != yes && break
1828       fi
1829     fi
1830   done
1831   IFS="$ac_save_ifs"
1832 else
1833   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1834 fi
1835 fi
1836
1837 LD="$lt_cv_path_LD"
1838 if test -n "$LD"; then
1839   echo "$ac_t""$LD" 1>&6
1840 else
1841   echo "$ac_t""no" 1>&6
1842 fi
1843 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1844 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1845 echo "configure:1846: checking if the linker ($LD) is GNU ld" >&5
1846 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1850 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1851   lt_cv_prog_gnu_ld=yes
1852 else
1853   lt_cv_prog_gnu_ld=no
1854 fi
1855 fi
1856
1857 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1858 with_gnu_ld=$lt_cv_prog_gnu_ld
1859
1860
1861 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $LD option to reload object files" >&5
1863 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1864   echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866   lt_cv_ld_reload_flag='-r'
1867 fi
1868
1869 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1870 reload_flag=$lt_cv_ld_reload_flag
1871 test -n "$reload_flag" && reload_flag=" $reload_flag"
1872
1873 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1874 echo "configure:1875: checking for BSD-compatible nm" >&5
1875 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1876   echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878   if test -n "$NM"; then
1879   # Let the user override the test.
1880   lt_cv_path_NM="$NM"
1881 else
1882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1883   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1884     test -z "$ac_dir" && ac_dir=.
1885     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1886     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1887       # Check to see if the nm accepts a BSD-compat flag.
1888       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1889       #   nm: unknown option "B" ignored
1890       # Tru64's nm complains that /dev/null is an invalid object file
1891       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1892         lt_cv_path_NM="$tmp_nm -B"
1893         break
1894       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1895         lt_cv_path_NM="$tmp_nm -p"
1896         break
1897       else
1898         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1899         continue # so that we can try to find one that supports BSD flags
1900       fi
1901     fi
1902   done
1903   IFS="$ac_save_ifs"
1904   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1905 fi
1906 fi
1907
1908 NM="$lt_cv_path_NM"
1909 echo "$ac_t""$NM" 1>&6
1910
1911 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1912 echo "configure:1913: checking how to recognise dependant libraries" >&5
1913 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1914   echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916   lt_cv_file_magic_cmd='$MAGIC_CMD'
1917 lt_cv_file_magic_test_file=
1918 lt_cv_deplibs_check_method='unknown'
1919 # Need to set the preceding variable on all platforms that support
1920 # interlibrary dependencies.
1921 # 'none' -- dependencies not supported.
1922 # `unknown' -- same as none, but documents that we really don't know.
1923 # 'pass_all' -- all dependencies passed with no checks.
1924 # 'test_compile' -- check by making test program.
1925 # 'file_magic [regex]' -- check by looking for files in library path
1926 # which responds to the $file_magic_cmd with a given egrep regex.
1927 # If you have `file' or equivalent on your system and you're not sure
1928 # whether `pass_all' will *always* work, you probably want this one.
1929
1930 case $host_os in
1931 aix*)
1932   lt_cv_deplibs_check_method=pass_all
1933   ;;
1934
1935 beos*)
1936   lt_cv_deplibs_check_method=pass_all
1937   ;;
1938
1939 bsdi4*)
1940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1941   lt_cv_file_magic_cmd='/usr/bin/file -L'
1942   lt_cv_file_magic_test_file=/shlib/libc.so
1943   ;;
1944
1945 cygwin* | mingw* |pw32*)
1946   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1947   lt_cv_file_magic_cmd='$OBJDUMP -f'
1948   ;;
1949
1950 darwin* | rhapsody*)
1951   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1952   lt_cv_file_magic_cmd='/usr/bin/file -L'
1953   case "$host_os" in
1954   rhapsody* | darwin1.012)
1955     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1956     ;;
1957   *) # Darwin 1.3 on
1958     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1959     ;;
1960   esac
1961   ;;
1962
1963 freebsd* )
1964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1965     case $host_cpu in
1966     i*86 )
1967       # Not sure whether the presence of OpenBSD here was a mistake.
1968       # Let's accept both of them until this is cleared up.
1969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1970       lt_cv_file_magic_cmd=/usr/bin/file
1971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1972       ;;
1973     esac
1974   else
1975     lt_cv_deplibs_check_method=pass_all
1976   fi
1977   ;;
1978
1979 gnu*)
1980   lt_cv_deplibs_check_method=pass_all
1981   ;;
1982
1983 hpux10.20*|hpux11*)
1984   case $host_cpu in
1985   hppa*)
1986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1987     lt_cv_file_magic_cmd=/usr/bin/file
1988     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1989     ;;
1990   ia64*)
1991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1992     lt_cv_file_magic_cmd=/usr/bin/file
1993     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1994     ;;
1995   esac
1996   ;;
1997
1998 irix5* | irix6*)
1999   case $host_os in
2000   irix5*)
2001     # this will be overridden with pass_all, but let us keep it just in case
2002     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2003     ;;
2004   *)
2005     case $LD in
2006     *-32|*"-32 ") libmagic=32-bit;;
2007     *-n32|*"-n32 ") libmagic=N32;;
2008     *-64|*"-64 ") libmagic=64-bit;;
2009     *) libmagic=never-match;;
2010     esac
2011     # this will be overridden with pass_all, but let us keep it just in case
2012     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2013     ;;
2014   esac
2015   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2016   lt_cv_deplibs_check_method=pass_all
2017   ;;
2018
2019 # This must be Linux ELF.
2020 linux-gnu*)
2021   case $host_cpu in
2022   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2023     lt_cv_deplibs_check_method=pass_all ;;
2024   *)
2025     # glibc up to 2.1.1 does not perform some relocations on ARM
2026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2027   esac
2028   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2029   ;;
2030
2031 netbsd*)
2032   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2033     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2034   else
2035     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2036   fi
2037   ;;
2038
2039 newsos6)
2040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2041   lt_cv_file_magic_cmd=/usr/bin/file
2042   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2043   ;;
2044
2045 osf3* | osf4* | osf5*)
2046   # this will be overridden with pass_all, but let us keep it just in case
2047   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2048   lt_cv_file_magic_test_file=/shlib/libc.so
2049   lt_cv_deplibs_check_method=pass_all
2050   ;;
2051
2052 sco3.2v5*)
2053   lt_cv_deplibs_check_method=pass_all
2054   ;;
2055
2056 solaris*)
2057   lt_cv_deplibs_check_method=pass_all
2058   lt_cv_file_magic_test_file=/lib/libc.so
2059   ;;
2060
2061 sysv5uw[78]* | sysv4*uw2*)
2062   lt_cv_deplibs_check_method=pass_all
2063   ;;
2064
2065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2066   case $host_vendor in
2067   ncr)
2068     lt_cv_deplibs_check_method=pass_all
2069     ;;
2070   motorola)
2071     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]'
2072     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2073     ;;
2074   esac
2075   ;;
2076 esac
2077
2078 fi
2079
2080 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2081 file_magic_cmd=$lt_cv_file_magic_cmd
2082 deplibs_check_method=$lt_cv_deplibs_check_method
2083
2084 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2085 echo "configure:2086: checking for object suffix" >&5
2086 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2087   echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089   rm -f conftest*
2090 echo 'int i = 1;' > conftest.$ac_ext
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092   for ac_file in conftest.*; do
2093     case $ac_file in
2094     *.c) ;;
2095     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2096     esac
2097   done
2098 else
2099   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2100 fi
2101 rm -f conftest*
2102 fi
2103
2104 echo "$ac_t""$ac_cv_objext" 1>&6
2105 OBJEXT=$ac_cv_objext
2106 ac_objext=$ac_cv_objext
2107
2108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2109
2110 # Only perform the check for file, if the check method requires it
2111 case $deplibs_check_method in
2112 file_magic*)
2113   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2114     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ${ac_tool_prefix}file" >&5
2116 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2117   echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119   case $MAGIC_CMD in
2120   /*)
2121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2122   ;;
2123   ?:/*)
2124   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2125   ;;
2126   *)
2127   ac_save_MAGIC_CMD="$MAGIC_CMD"
2128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2129   ac_dummy="/usr/bin:$PATH"
2130   for ac_dir in $ac_dummy; do
2131     test -z "$ac_dir" && ac_dir=.
2132     if test -f $ac_dir/${ac_tool_prefix}file; then
2133       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2134       if test -n "$file_magic_test_file"; then
2135         case $deplibs_check_method in
2136         "file_magic "*)
2137           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2140             egrep "$file_magic_regex" > /dev/null; then
2141             :
2142           else
2143             cat <<EOF 1>&2
2144
2145 *** Warning: the command libtool uses to detect shared libraries,
2146 *** $file_magic_cmd, produces output that libtool cannot recognize.
2147 *** The result is that libtool may fail to recognize shared libraries
2148 *** as such.  This will affect the creation of libtool libraries that
2149 *** depend on shared libraries, but programs linked with such libtool
2150 *** libraries will work regardless of this problem.  Nevertheless, you
2151 *** may want to report the problem to your system manager and/or to
2152 *** bug-libtool@gnu.org
2153
2154 EOF
2155           fi ;;
2156         esac
2157       fi
2158       break
2159     fi
2160   done
2161   IFS="$ac_save_ifs"
2162   MAGIC_CMD="$ac_save_MAGIC_CMD"
2163   ;;
2164 esac
2165 fi
2166
2167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2168 if test -n "$MAGIC_CMD"; then
2169   echo "$ac_t""$MAGIC_CMD" 1>&6
2170 else
2171   echo "$ac_t""no" 1>&6
2172 fi
2173
2174 if test -z "$lt_cv_path_MAGIC_CMD"; then
2175   if test -n "$ac_tool_prefix"; then
2176     echo $ac_n "checking for file""... $ac_c" 1>&6
2177 echo "configure:2178: checking for file" >&5
2178 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2179   echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181   case $MAGIC_CMD in
2182   /*)
2183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2184   ;;
2185   ?:/*)
2186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187   ;;
2188   *)
2189   ac_save_MAGIC_CMD="$MAGIC_CMD"
2190   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191   ac_dummy="/usr/bin:$PATH"
2192   for ac_dir in $ac_dummy; do
2193     test -z "$ac_dir" && ac_dir=.
2194     if test -f $ac_dir/file; then
2195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2196       if test -n "$file_magic_test_file"; then
2197         case $deplibs_check_method in
2198         "file_magic "*)
2199           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2202             egrep "$file_magic_regex" > /dev/null; then
2203             :
2204           else
2205             cat <<EOF 1>&2
2206
2207 *** Warning: the command libtool uses to detect shared libraries,
2208 *** $file_magic_cmd, produces output that libtool cannot recognize.
2209 *** The result is that libtool may fail to recognize shared libraries
2210 *** as such.  This will affect the creation of libtool libraries that
2211 *** depend on shared libraries, but programs linked with such libtool
2212 *** libraries will work regardless of this problem.  Nevertheless, you
2213 *** may want to report the problem to your system manager and/or to
2214 *** bug-libtool@gnu.org
2215
2216 EOF
2217           fi ;;
2218         esac
2219       fi
2220       break
2221     fi
2222   done
2223   IFS="$ac_save_ifs"
2224   MAGIC_CMD="$ac_save_MAGIC_CMD"
2225   ;;
2226 esac
2227 fi
2228
2229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230 if test -n "$MAGIC_CMD"; then
2231   echo "$ac_t""$MAGIC_CMD" 1>&6
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235
2236   else
2237     MAGIC_CMD=:
2238   fi
2239 fi
2240
2241   fi
2242   ;;
2243 esac
2244
2245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_word" >&5
2249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2250   echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252   if test -n "$RANLIB"; then
2253   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2254 else
2255   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2256   ac_dummy="$PATH"
2257   for ac_dir in $ac_dummy; do
2258     test -z "$ac_dir" && ac_dir=.
2259     if test -f $ac_dir/$ac_word; then
2260       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2261       break
2262     fi
2263   done
2264   IFS="$ac_save_ifs"
2265 fi
2266 fi
2267 RANLIB="$ac_cv_prog_RANLIB"
2268 if test -n "$RANLIB"; then
2269   echo "$ac_t""$RANLIB" 1>&6
2270 else
2271   echo "$ac_t""no" 1>&6
2272 fi
2273
2274
2275 if test -z "$ac_cv_prog_RANLIB"; then
2276 if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "ranlib", so it can be a program name with args.
2278 set dummy ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282   echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284   if test -n "$RANLIB"; then
2285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2288   ac_dummy="$PATH"
2289   for ac_dir in $ac_dummy; do
2290     test -z "$ac_dir" && ac_dir=.
2291     if test -f $ac_dir/$ac_word; then
2292       ac_cv_prog_RANLIB="ranlib"
2293       break
2294     fi
2295   done
2296   IFS="$ac_save_ifs"
2297   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2298 fi
2299 fi
2300 RANLIB="$ac_cv_prog_RANLIB"
2301 if test -n "$RANLIB"; then
2302   echo "$ac_t""$RANLIB" 1>&6
2303 else
2304   echo "$ac_t""no" 1>&6
2305 fi
2306
2307 else
2308   RANLIB=":"
2309 fi
2310 fi
2311
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   if test -n "$STRIP"; then
2320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2323   ac_dummy="$PATH"
2324   for ac_dir in $ac_dummy; do
2325     test -z "$ac_dir" && ac_dir=.
2326     if test -f $ac_dir/$ac_word; then
2327       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328       break
2329     fi
2330   done
2331   IFS="$ac_save_ifs"
2332 fi
2333 fi
2334 STRIP="$ac_cv_prog_STRIP"
2335 if test -n "$STRIP"; then
2336   echo "$ac_t""$STRIP" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 if test -n "$ac_tool_prefix"; then
2344   # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349   echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351   if test -n "$STRIP"; then
2352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2355   ac_dummy="$PATH"
2356   for ac_dir in $ac_dummy; do
2357     test -z "$ac_dir" && ac_dir=.
2358     if test -f $ac_dir/$ac_word; then
2359       ac_cv_prog_STRIP="strip"
2360       break
2361     fi
2362   done
2363   IFS="$ac_save_ifs"
2364   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2365 fi
2366 fi
2367 STRIP="$ac_cv_prog_STRIP"
2368 if test -n "$STRIP"; then
2369   echo "$ac_t""$STRIP" 1>&6
2370 else
2371   echo "$ac_t""no" 1>&6
2372 fi
2373
2374 else
2375   STRIP=":"
2376 fi
2377 fi
2378
2379
2380 # Check for any special flags to pass to ltconfig.
2381 libtool_flags="--cache-file=$cache_file"
2382 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2383 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2384 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2385 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2386 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2387 libtool_flags="$libtool_flags --enable-dlopen"
2388
2389 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2390 if test "${enable_libtool_lock+set}" = set; then
2391   enableval="$enable_libtool_lock"
2392   :
2393 fi
2394
2395 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2396 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2397
2398 # Check whether --with-pic or --without-pic was given.
2399 if test "${with_pic+set}" = set; then
2400   withval="$with_pic"
2401   pic_mode="$withval"
2402 else
2403   pic_mode=default
2404 fi
2405
2406 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2407 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2408
2409 # Some flags need to be propagated to the compiler or linker for good
2410 # libtool support.
2411 case $host in
2412 *-*-irix6*)
2413   # Find out which ABI we are using.
2414   echo '#line 2415 "configure"' > conftest.$ac_ext
2415   if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416    if test "$lt_cv_prog_gnu_ld" = yes; then
2417     case `/usr/bin/file conftest.$ac_objext` in
2418     *32-bit*)
2419       LD="${LD-ld} -melf32bsmip"
2420       ;;
2421     *N32*)
2422       LD="${LD-ld} -melf32bmipn32"
2423       ;;
2424     *64-bit*)
2425       LD="${LD-ld} -melf64bmip"
2426       ;;
2427     esac
2428    else
2429     case `/usr/bin/file conftest.$ac_objext` in
2430     *32-bit*)
2431       LD="${LD-ld} -32"
2432       ;;
2433     *N32*)
2434       LD="${LD-ld} -n32"
2435       ;;
2436     *64-bit*)
2437       LD="${LD-ld} -64"
2438       ;;
2439     esac
2440    fi
2441   fi
2442   rm -rf conftest*
2443   ;;
2444
2445 ia64-*-hpux*)
2446   # Find out which ABI we are using.
2447   echo 'int i;' > conftest.$ac_ext
2448   if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449     case "`/usr/bin/file conftest.o`" in
2450     *ELF-32*)
2451       HPUX_IA64_MODE="32"
2452       ;;
2453     *ELF-64*)
2454       HPUX_IA64_MODE="64"
2455       ;;
2456     esac
2457   fi
2458   rm -rf conftest*
2459   ;;
2460
2461 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2462   # Find out which ABI we are using.
2463   echo 'int i;' > conftest.$ac_ext
2464   if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2465     case "`/usr/bin/file conftest.o`" in
2466     *32-bit*)
2467       case $host in
2468         x86_64-*linux*)
2469           LD="${LD-ld} -m elf_i386"
2470           ;;
2471         ppc64-*linux*)
2472           LD="${LD-ld} -m elf32ppclinux"
2473           ;;
2474         s390x-*linux*)
2475           LD="${LD-ld} -m elf_s390"
2476           ;;
2477         sparc64-*linux*)
2478           LD="${LD-ld} -m elf32_sparc"
2479           ;;
2480       esac
2481       ;;
2482     *64-bit*)
2483       case $host in
2484         x86_64-*linux*)
2485           LD="${LD-ld} -m elf_x86_64"
2486           ;;
2487         ppc*-*linux*|powerpc*-*linux*)
2488           LD="${LD-ld} -m elf64ppc"
2489           ;;
2490         s390*-*linux*)
2491           LD="${LD-ld} -m elf64_s390"
2492           ;;
2493         sparc*-*linux*)
2494           LD="${LD-ld} -m elf64_sparc"
2495           ;;
2496       esac
2497       ;;
2498     esac
2499   fi
2500   rm -rf conftest*
2501   ;;
2502
2503 *-*-sco3.2v5*)
2504   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505   SAVE_CFLAGS="$CFLAGS"
2506   CFLAGS="$CFLAGS -belf"
2507   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2510   echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512   
2513      ac_ext=c
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2519
2520      cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523
2524 int main() {
2525
2526 ; return 0; }
2527 EOF
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529   rm -rf conftest*
2530   lt_cv_cc_needs_belf=yes
2531 else
2532   echo "configure: failed program was:" >&5
2533   cat conftest.$ac_ext >&5
2534   rm -rf conftest*
2535   lt_cv_cc_needs_belf=no
2536 fi
2537 rm -f conftest*
2538      ac_ext=c
2539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2543 cross_compiling=$ac_cv_prog_cc_cross
2544
2545 fi
2546
2547 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2548   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550     CFLAGS="$SAVE_CFLAGS"
2551   fi
2552   ;;
2553
2554
2555 esac
2556
2557 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2558 echo "configure:2559: checking how to run the C++ preprocessor" >&5
2559 if test -z "$CXXCPP"; then
2560 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2561   echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563   ac_ext=C
2564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2568 cross_compiling=$ac_cv_prog_cxx_cross
2569   CXXCPP="${CXX-g++} -E"
2570   cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <stdlib.h>
2574 EOF
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2578 if test -z "$ac_err"; then
2579   :
2580 else
2581   echo "$ac_err" >&5
2582   echo "configure: failed program was:" >&5
2583   cat conftest.$ac_ext >&5
2584   rm -rf conftest*
2585   CXXCPP=/lib/cpp
2586 fi
2587 rm -f conftest*
2588   ac_cv_prog_CXXCPP="$CXXCPP"
2589 ac_ext=c
2590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2594 cross_compiling=$ac_cv_prog_cc_cross
2595 fi
2596 fi
2597 CXXCPP="$ac_cv_prog_CXXCPP"
2598 echo "$ac_t""$CXXCPP" 1>&6
2599
2600
2601 # Save cache, so that ltconfig can load it
2602 cat > confcache <<\EOF
2603 # This file is a shell script that caches the results of configure
2604 # tests run on this system so they can be shared between configure
2605 # scripts and configure runs.  It is not useful on other systems.
2606 # If it contains results you don't want to keep, you may remove or edit it.
2607 #
2608 # By default, configure uses ./config.cache as the cache file,
2609 # creating it if it does not exist already.  You can give configure
2610 # the --cache-file=FILE option to use a different cache file; that is
2611 # what configure does when it calls configure scripts in
2612 # subdirectories, so they share the cache.
2613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2614 # config.status only pays attention to the cache file if you give it the
2615 # --recheck option to rerun configure.
2616 #
2617 EOF
2618 # The following way of writing the cache mishandles newlines in values,
2619 # but we know of no workaround that is simple, portable, and efficient.
2620 # So, don't put newlines in cache variables' values.
2621 # Ultrix sh set writes to stderr and can't be redirected directly,
2622 # and sets the high bit in the cache file unless we assign to the vars.
2623 (set) 2>&1 |
2624   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2625   *ac_space=\ *)
2626     # `set' does not quote correctly, so add quotes (double-quote substitution
2627     # turns \\\\ into \\, and sed turns \\ into \).
2628     sed -n \
2629       -e "s/'/'\\\\''/g" \
2630       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2631     ;;
2632   *)
2633     # `set' quotes correctly as required by POSIX, so do not add quotes.
2634     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2635     ;;
2636   esac >> confcache
2637 if cmp -s $cache_file confcache; then
2638   :
2639 else
2640   if test -w $cache_file; then
2641     echo "updating cache $cache_file"
2642     cat confcache > $cache_file
2643   else
2644     echo "not updating unwritable cache $cache_file"
2645   fi
2646 fi
2647 rm -f confcache
2648
2649
2650 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2651 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2652 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2653 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2654 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2655 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2656 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2657 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2658 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2659 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2660
2661 # Reload cache, that may have been modified by ltconfig
2662 if test -r "$cache_file"; then
2663   echo "loading cache $cache_file"
2664   . $cache_file
2665 else
2666   echo "creating cache $cache_file"
2667   > $cache_file
2668 fi
2669
2670
2671 # This can be used to rebuild libtool when needed
2672 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2673
2674 # Always use our own libtool.
2675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2676
2677 # Redirect the config.log output again, so that the ltconfig log is not
2678 # clobbered by the next message.
2679 exec 5>>./config.log
2680
2681
2682
2683 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2684 lt_save_CC="$CC"
2685 lt_save_CFLAGS="$CFLAGS"
2686 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2687 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2688 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2689 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2690 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2691 deplibs_check_method="$deplibs_check_method" \
2692 file_magic_cmd="$file_magic_cmd" \
2693 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2694 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2695 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2696 CC="$lt_save_CC"
2697 CFLAGS="$lt_save_CFLAGS"
2698
2699 # Redirect the config.log output again, so that the ltconfig log is not
2700 # clobbered by the next message.
2701 exec 5>>./config.log
2702
2703   
2704
2705   
2706          
2707          
2708
2709
2710
2711 # Check for support bits and g++ features that don't require linking.
2712 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2713 echo "configure:2714: checking for GNU make" >&5
2714 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2715   echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717   _cv_gnu_make_command='' ;
2718           for a in "${MAKE-make}" make gmake gnumake ; do
2719                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2720                   then
2721                           _cv_gnu_make_command=$a ;
2722                           break;
2723                   fi
2724           done ;
2725   
2726 fi
2727
2728 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2729   if test  "x$_cv_gnu_make_command" != "x"  ; then
2730           ifGNUmake='' ;
2731   else
2732           ifGNUmake='#' ;
2733   fi
2734   
2735
2736 #GLIBCPP_CHECK_COMPILER_VERSION
2737
2738   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2739 echo "configure:2740: checking for exception model to use" >&5
2740   
2741   ac_ext=C
2742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2743 ac_cpp='$CXXCPP $CPPFLAGS'
2744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2746 cross_compiling=$ac_cv_prog_cxx_cross
2747
2748   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2749 if test "${enable_sjlj_exceptions+set}" = set; then
2750   enableval="$enable_sjlj_exceptions"
2751   :
2752 else
2753                        cat > conftest.$ac_ext << EOF
2754 #line 2755 "configure"
2755 struct S { ~S(); };
2756 void bar();
2757 void foo()
2758 {
2759   S s;
2760   bar();
2761 }
2762 EOF
2763    old_CXXFLAGS="$CXXFLAGS"
2764    CXXFLAGS=-S
2765    if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2767        enable_sjlj_exceptions=yes
2768      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2769        enable_sjlj_exceptions=no
2770      fi
2771    fi
2772    CXXFLAGS="$old_CXXFLAGS"
2773    rm -f conftest*
2774 fi
2775
2776    if test x$enable_sjlj_exceptions = xyes; then
2777      cat >> confdefs.h <<\EOF
2778 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
2779 EOF
2780
2781      ac_exception_model_name=sjlj
2782    elif test x$enable_sjlj_exceptions = xno; then
2783      ac_exception_model_name="call frame"
2784    else
2785      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2786    fi
2787    ac_ext=c
2788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2792 cross_compiling=$ac_cv_prog_cc_cross
2793
2794    echo "$ac_t""$ac_exception_model_name" 1>&6
2795
2796
2797   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
2798 echo "configure:2799: checking for use of libunwind" >&5
2799   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
2800 if test "${enable_libunwind_exceptions+set}" = set; then
2801   enableval="$enable_libunwind_exceptions"
2802   use_libunwind_exceptions=$enableval
2803 else
2804   use_libunwind_exceptions=no
2805 fi
2806
2807   echo "$ac_t""$use_libunwind_exceptions" 1>&6
2808     if test x"$use_libunwind_exceptions" = xyes; then
2809     LIBUNWIND_FLAG="-lunwind"
2810   else
2811     LIBUNWIND_FLAG=""
2812   fi
2813   
2814
2815 # Check whether --enable-pch or --disable-pch was given.
2816 if test "${enable_pch+set}" = set; then
2817   enableval="$enable_pch"
2818   case "${enableval}" in
2819  yes) enable_pch=yes ;;
2820  no)  enable_pch=no ;;
2821  *)   { echo "configure: error: Unknown argument to enable/disable PCH" 1>&2; exit 1; } ;;
2822  esac
2823 else
2824   enable_pch=yes
2825 fi
2826
2827   if test x$enable_pch = xyes; then
2828     ac_test_CXXFLAGS="${CXXFLAGS+set}"
2829     ac_save_CXXFLAGS="$CXXFLAGS"
2830     CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2831
2832     echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2833 echo "configure:2834: checking for compiler that seems to compile .gch files" >&5
2834     if test x${glibcpp_pch_comp+set} != xset; then
2835       if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2836   echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838   
2839         
2840         ac_ext=C
2841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2842 ac_cpp='$CXXCPP $CPPFLAGS'
2843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2845 cross_compiling=$ac_cv_prog_cxx_cross
2846
2847         cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 #include <math.h>
2851 int main() {
2852
2853 ; return 0; }
2854 EOF
2855 if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2856   rm -rf conftest*
2857   glibcpp_pch_comp=yes
2858 else
2859   echo "configure: failed program was:" >&5
2860   cat conftest.$ac_ext >&5
2861   rm -rf conftest*
2862   glibcpp_pch_comp=no
2863 fi
2864 rm -f conftest*
2865         ac_ext=c
2866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2870 cross_compiling=$ac_cv_prog_cc_cross
2871
2872       
2873 fi
2874
2875     fi
2876     echo "$ac_t""$glibcpp_pch_comp" 1>&6
2877
2878     CXXFLAGS="$ac_save_CXXFLAGS"
2879   fi
2880
2881   if test x"$enable_pch" = xyes && test x"$glibcpp_pch_comp" = xno; then
2882     enable_pch=no
2883   fi
2884
2885   echo $ac_n "checking for enabled PCH""... $ac_c" 1>&6
2886 echo "configure:2887: checking for enabled PCH" >&5
2887   echo "$ac_t""$enable_pch" 1>&6
2888
2889   
2890
2891 if test "$enable_pch" = yes; then
2892   GLIBCPP_BUILD_PCH_TRUE=
2893   GLIBCPP_BUILD_PCH_FALSE='#'
2894 else
2895   GLIBCPP_BUILD_PCH_TRUE='#'
2896   GLIBCPP_BUILD_PCH_FALSE=
2897 fi
2898   if test "$enable_pch" = yes; then
2899         glibcpp_PCHFLAGS="-include bits/stdc++.h"
2900   else
2901         glibcpp_PCHFLAGS=""
2902   fi
2903   
2904
2905
2906 # Enable all the variable C++ runtime options.  
2907 # NB: C_MBCHAR must come early.
2908
2909   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2910 echo "configure:2911: checking for cstdio to use" >&5
2911   # Check whether --enable-cstdio or --disable-cstdio was given.
2912 if test "${enable_cstdio+set}" = set; then
2913   enableval="$enable_cstdio"
2914   if test x$enable_cstdio = xno; then
2915      enable_cstdio=stdio
2916   fi
2917 else
2918   enable_cstdio=stdio
2919 fi
2920
2921
2922   enable_cstdio_flag=$enable_cstdio
2923
2924     case x${enable_cstdio_flag} in
2925     xstdio | x | xno | xnone | xyes)
2926       # default
2927       CSTDIO_H=config/io/c_io_stdio.h
2928       BASIC_FILE_H=config/io/basic_file_stdio.h
2929       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2930       echo "$ac_t""stdio" 1>&6
2931       ;;
2932     *)
2933       echo "$enable_cstdio is an unknown io package" 1>&2
2934       exit 1
2935       ;;
2936   esac
2937   
2938   
2939   
2940
2941 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2942 echo "configure:2943: checking how to run the C preprocessor" >&5
2943 # On Suns, sometimes $CPP names a directory.
2944 if test -n "$CPP" && test -d "$CPP"; then
2945   CPP=
2946 fi
2947 if test -z "$CPP"; then
2948 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2949   echo $ac_n "(cached) $ac_c" 1>&6
2950 else
2951     # This must be in double quotes, not single quotes, because CPP may get
2952   # substituted into the Makefile and "${CC-cc}" will confuse make.
2953   CPP="${CC-cc} -E"
2954   # On the NeXT, cc -E runs the code through the compiler's parser,
2955   # not just through cpp.
2956   cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <assert.h>
2960 Syntax Error
2961 EOF
2962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2963 { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2965 if test -z "$ac_err"; then
2966   :
2967 else
2968   echo "$ac_err" >&5
2969   echo "configure: failed program was:" >&5
2970   cat conftest.$ac_ext >&5
2971   rm -rf conftest*
2972   CPP="${CC-cc} -E -traditional-cpp"
2973   cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 #include <assert.h>
2977 Syntax Error
2978 EOF
2979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2980 { (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2982 if test -z "$ac_err"; then
2983   :
2984 else
2985   echo "$ac_err" >&5
2986   echo "configure: failed program was:" >&5
2987   cat conftest.$ac_ext >&5
2988   rm -rf conftest*
2989   CPP="${CC-cc} -nologo -E"
2990   cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <assert.h>
2994 Syntax Error
2995 EOF
2996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2999 if test -z "$ac_err"; then
3000   :
3001 else
3002   echo "$ac_err" >&5
3003   echo "configure: failed program was:" >&5
3004   cat conftest.$ac_ext >&5
3005   rm -rf conftest*
3006   CPP=/lib/cpp
3007 fi
3008 rm -f conftest*
3009 fi
3010 rm -f conftest*
3011 fi
3012 rm -f conftest*
3013   ac_cv_prog_CPP="$CPP"
3014 fi
3015   CPP="$ac_cv_prog_CPP"
3016 else
3017   ac_cv_prog_CPP="$CPP"
3018 fi
3019 echo "$ac_t""$CPP" 1>&6
3020
3021
3022   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3023 echo "configure:3024: checking for clocale to use" >&5
3024   # Check whether --enable-clocale or --disable-clocale was given.
3025 if test "${enable_clocale+set}" = set; then
3026   enableval="$enable_clocale"
3027   if test x$enable_clocale = xno; then
3028      enable_clocale=no
3029   fi
3030 else
3031   enable_clocale=no
3032 fi
3033
3034
3035   enable_clocale_flag=$enable_clocale
3036
3037       if test x$enable_clocale_flag = xno; then
3038     case x${target_os} in
3039       xlinux* | xgnu*)
3040         cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043
3044         #include <features.h>
3045         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3046           _GLIBCPP_ok
3047         #endif
3048         
3049 EOF
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3052   rm -rf conftest*
3053   enable_clocale_flag=gnu
3054 else
3055   rm -rf conftest*
3056   enable_clocale_flag=generic
3057 fi
3058 rm -f conftest*
3059
3060
3061         # Test for bugs early in glibc-2.2.x series
3062         if test x$enable_clocale_flag = xgnu; then
3063           if test "$cross_compiling" = yes; then
3064   enable_clocale_flag=generic
3065 else
3066   cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069
3070           #define _GNU_SOURCE 1
3071           #include <locale.h>
3072           #include <string.h>
3073           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3074           extern __typeof(newlocale) __newlocale;
3075           extern __typeof(duplocale) __duplocale;
3076           extern __typeof(strcoll_l) __strcoll_l;
3077           #endif
3078           int main()
3079           {
3080             const char __one[] = "Äuglein Augmen";
3081             const char __two[] = "Äuglein";
3082             int i;
3083             int j;
3084             __locale_t  loc;
3085             __locale_t  loc_dup;
3086             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3087             loc_dup = __duplocale(loc);
3088             i = __strcoll_l(__one, __two, loc);
3089             j = __strcoll_l(__one, __two, loc_dup);
3090             return 0;
3091           }
3092           
3093 EOF
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3095 then
3096   enable_clocale_flag=gnu
3097 else
3098   echo "configure: failed program was:" >&5
3099   cat conftest.$ac_ext >&5
3100   rm -fr conftest*
3101   enable_clocale_flag=generic
3102 fi
3103 rm -fr conftest*
3104 fi
3105
3106         fi
3107
3108         # ... at some point put __strxfrm_l tests in as well.
3109         ;;
3110       *)
3111         enable_clocale_flag=generic
3112         ;;
3113     esac
3114   fi
3115
3116     # Check whether --enable-nls or --disable-nls was given.
3117 if test "${enable_nls+set}" = set; then
3118   enableval="$enable_nls"
3119   :
3120 else
3121   enable_nls=yes
3122 fi
3123
3124   USE_NLS=no
3125
3126     case x${enable_clocale_flag} in
3127     xgeneric)
3128       echo "$ac_t""generic" 1>&6
3129
3130       CLOCALE_H=config/locale/generic/c_locale.h
3131       CLOCALE_CC=config/locale/generic/c_locale.cc
3132       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3133       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3134       CCOLLATE_CC=config/locale/generic/collate_members.cc
3135       CCTYPE_CC=config/locale/generic/ctype_members.cc
3136       CMESSAGES_H=config/locale/generic/messages_members.h
3137       CMESSAGES_CC=config/locale/generic/messages_members.cc
3138       CMONEY_CC=config/locale/generic/monetary_members.cc
3139       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3140       CTIME_H=config/locale/generic/time_members.h
3141       CTIME_CC=config/locale/generic/time_members.cc
3142       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3143       ;;
3144     xgnu)
3145       echo "$ac_t""gnu" 1>&6
3146
3147       # Declare intention to use gettext, and add support for specific
3148       # languages.
3149       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3150       ALL_LINGUAS="de fr"
3151
3152       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3153       # Extract the first word of "msgfmt", so it can be a program name with args.
3154 set dummy msgfmt; ac_word=$2
3155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3156 echo "configure:3157: checking for $ac_word" >&5
3157 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3158   echo $ac_n "(cached) $ac_c" 1>&6
3159 else
3160   if test -n "$check_msgfmt"; then
3161   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3162 else
3163   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3164   ac_dummy="$PATH"
3165   for ac_dir in $ac_dummy; do
3166     test -z "$ac_dir" && ac_dir=.
3167     if test -f $ac_dir/$ac_word; then
3168       ac_cv_prog_check_msgfmt="yes"
3169       break
3170     fi
3171   done
3172   IFS="$ac_save_ifs"
3173   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3174 fi
3175 fi
3176 check_msgfmt="$ac_cv_prog_check_msgfmt"
3177 if test -n "$check_msgfmt"; then
3178   echo "$ac_t""$check_msgfmt" 1>&6
3179 else
3180   echo "$ac_t""no" 1>&6
3181 fi
3182
3183       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3184         USE_NLS=yes
3185       fi
3186       # Export the build objects.
3187       for ling in $ALL_LINGUAS; do \
3188         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3189         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3190       done
3191       
3192       
3193
3194       CLOCALE_H=config/locale/gnu/c_locale.h
3195       CLOCALE_CC=config/locale/gnu/c_locale.cc
3196       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3197       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3198       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3199       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3200       CMESSAGES_H=config/locale/gnu/messages_members.h
3201       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3202       CMONEY_CC=config/locale/gnu/monetary_members.cc
3203       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3204       CTIME_H=config/locale/gnu/time_members.h
3205       CTIME_CC=config/locale/gnu/time_members.cc
3206       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3207       ;;
3208     xieee_1003.1-2001)
3209       echo "$ac_t""IEEE 1003.1" 1>&6
3210
3211       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3212       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3213       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3214       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3215       CCOLLATE_CC=config/locale/generic/collate_members.cc
3216       CCTYPE_CC=config/locale/generic/ctype_members.cc
3217       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3218       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3219       CMONEY_CC=config/locale/generic/monetary_members.cc
3220       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3221       CTIME_H=config/locale/generic/time_members.h
3222       CTIME_CC=config/locale/generic/time_members.cc
3223       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3224       ;;
3225     *)
3226       echo "$enable_clocale is an unknown locale package" 1>&2
3227       exit 1
3228       ;;
3229   esac
3230
3231   # This is where the testsuite looks for locale catalogs, using the
3232   # -DLOCALEDIR define during testsuite compilation.
3233   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3234   
3235
3236   # A standalone libintl (e.g., GNU libintl) may be in use.
3237   if test $USE_NLS = yes; then
3238     for ac_hdr in libintl.h
3239 do
3240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_hdr" >&5
3243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3244   echo $ac_n "(cached) $ac_c" 1>&6
3245 else
3246   cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <$ac_hdr>
3250 EOF
3251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3252 { (eval echo configure:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3254 if test -z "$ac_err"; then
3255   rm -rf conftest*
3256   eval "ac_cv_header_$ac_safe=yes"
3257 else
3258   echo "$ac_err" >&5
3259   echo "configure: failed program was:" >&5
3260   cat conftest.$ac_ext >&5
3261   rm -rf conftest*
3262   eval "ac_cv_header_$ac_safe=no"
3263 fi
3264 rm -f conftest*
3265 fi
3266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3267   echo "$ac_t""yes" 1>&6
3268     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3269   cat >> confdefs.h <<EOF
3270 #define $ac_tr_hdr 1
3271 EOF
3272  
3273 else
3274   echo "$ac_t""no" 1>&6
3275 USE_NLS=no
3276 fi
3277 done
3278
3279     
3280 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3281 echo "configure:3282: checking for library containing gettext" >&5
3282 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3283   echo $ac_n "(cached) $ac_c" 1>&6
3284 else
3285   ac_func_search_save_LIBS="$LIBS"
3286 ac_cv_search_gettext="no"
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* Override any gcc2 internal prototype to avoid an error.  */
3291 /* We use char because int might match the return type of a gcc2
3292     builtin and then its argument prototype would still apply.  */
3293 char gettext();
3294
3295 int main() {
3296 gettext()
3297 ; return 0; }
3298 EOF
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300   rm -rf conftest*
3301   ac_cv_search_gettext="none required"
3302 else
3303   echo "configure: failed program was:" >&5
3304   cat conftest.$ac_ext >&5
3305 fi
3306 rm -f conftest*
3307 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3308 LIBS="-l$i  $ac_func_search_save_LIBS"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error.  */
3313 /* We use char because int might match the return type of a gcc2
3314     builtin and then its argument prototype would still apply.  */
3315 char gettext();
3316
3317 int main() {
3318 gettext()
3319 ; return 0; }
3320 EOF
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322   rm -rf conftest*
3323   ac_cv_search_gettext="-l$i"
3324 break
3325 else
3326   echo "configure: failed program was:" >&5
3327   cat conftest.$ac_ext >&5
3328 fi
3329 rm -f conftest*
3330 done
3331 LIBS="$ac_func_search_save_LIBS"
3332 fi
3333
3334 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3335 if test "$ac_cv_search_gettext" != "no"; then
3336   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3337   
3338 else :
3339   USE_NLS=no
3340 fi
3341   fi
3342   if test $USE_NLS = yes; then
3343     cat >> confdefs.h <<\EOF
3344 #define _GLIBCPP_USE_NLS 1
3345 EOF
3346
3347   fi
3348
3349   
3350   
3351   
3352   
3353   
3354   
3355   
3356   
3357   
3358   
3359   
3360   
3361   
3362   
3363
3364 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3365 echo "configure:3366: checking for c header strategy to use" >&5
3366 # Check whether --enable-cheaders or --disable-cheaders was given.
3367 if test "${enable_cheaders+set}" = set; then
3368   enableval="$enable_cheaders"
3369   
3370   case "$enableval" in
3371    c)
3372         enable_cheaders=c
3373         ;;
3374    c_std)
3375         enable_cheaders=c_std
3376         ;;
3377    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3378         ;;
3379   esac
3380 else
3381   enable_cheaders=c_std
3382 fi
3383
3384   echo "$ac_t""$enable_cheaders" 1>&6
3385
3386     case "$enable_cheaders" in
3387     c_std)
3388         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3389         ;;
3390     c)
3391         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3392         ;;
3393   esac
3394
3395   
3396   
3397
3398 if test "$enable_cheaders" = c; then
3399   GLIBCPP_C_HEADERS_C_TRUE=
3400   GLIBCPP_C_HEADERS_C_FALSE='#'
3401 else
3402   GLIBCPP_C_HEADERS_C_TRUE='#'
3403   GLIBCPP_C_HEADERS_C_FALSE=
3404 fi
3405   
3406
3407 if test "$enable_cheaders" = c_std; then
3408   GLIBCPP_C_HEADERS_C_STD_TRUE=
3409   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3410 else
3411   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3412   GLIBCPP_C_HEADERS_C_STD_FALSE=
3413 fi
3414   
3415
3416 if test "$c_compatibility" = yes; then
3417   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3418   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3419 else
3420   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3421   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3422 fi
3423
3424 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3425 if test "${enable_c_mbchar+set}" = set; then
3426   enableval="$enable_c_mbchar"
3427   case "$enableval" in
3428  yes) enable_c_mbchar=yes ;;
3429  no)  enable_c_mbchar=no ;;
3430  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3431  esac
3432 else
3433   enable_c_mbchar=yes
3434 fi
3435
3436   
3437   # Check whether --enable-c99 or --disable-c99 was given.
3438 if test "${enable_c99+set}" = set; then
3439   enableval="$enable_c99"
3440     case "$enableval" in
3441    yes) enable_c99=yes ;;
3442    no)  enable_c99=no ;;
3443    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3444    esac
3445 else
3446   enable_c99=yes
3447 fi
3448
3449   
3450   ac_ext=C
3451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3452 ac_cpp='$CXXCPP $CPPFLAGS'
3453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3455 cross_compiling=$ac_cv_prog_cxx_cross
3456
3457
3458   # Check for the existence of <math.h> functions used if C99 is enabled.
3459   ac_c99_math=yes;
3460   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3461 echo "configure:3462: checking for ISO C99 support in <math.h>" >&5
3462   cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <math.h>
3466 int main() {
3467 fpclassify(0.0);
3468 ; return 0; }
3469 EOF
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3471   :
3472 else
3473   echo "configure: failed program was:" >&5
3474   cat conftest.$ac_ext >&5
3475   rm -rf conftest*
3476   ac_c99_math=no
3477 fi
3478 rm -f conftest*
3479   cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <math.h>
3483 int main() {
3484 isfinite(0.0);
3485 ; return 0; }
3486 EOF
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3488   :
3489 else
3490   echo "configure: failed program was:" >&5
3491   cat conftest.$ac_ext >&5
3492   rm -rf conftest*
3493   ac_c99_math=no
3494 fi
3495 rm -f conftest*
3496   cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <math.h>
3500 int main() {
3501 isinf(0.0);
3502 ; return 0; }
3503 EOF
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505   :
3506 else
3507   echo "configure: failed program was:" >&5
3508   cat conftest.$ac_ext >&5
3509   rm -rf conftest*
3510   ac_c99_math=no
3511 fi
3512 rm -f conftest*
3513   cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <math.h>
3517 int main() {
3518 isnan(0.0);
3519 ; return 0; }
3520 EOF
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522   :
3523 else
3524   echo "configure: failed program was:" >&5
3525   cat conftest.$ac_ext >&5
3526   rm -rf conftest*
3527   ac_c99_math=no
3528 fi
3529 rm -f conftest*
3530   cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <math.h>
3534 int main() {
3535 isnormal(0.0);
3536 ; return 0; }
3537 EOF
3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539   :
3540 else
3541   echo "configure: failed program was:" >&5
3542   cat conftest.$ac_ext >&5
3543   rm -rf conftest*
3544   ac_c99_math=no
3545 fi
3546 rm -f conftest*
3547   cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <math.h>
3551 int main() {
3552 signbit(0.0);
3553 ; return 0; }
3554 EOF
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556   :
3557 else
3558   echo "configure: failed program was:" >&5
3559   cat conftest.$ac_ext >&5
3560   rm -rf conftest*
3561   ac_c99_math=no
3562 fi
3563 rm -f conftest*
3564   cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <math.h>
3568 int main() {
3569 isgreater(0.0,0.0);
3570 ; return 0; }
3571 EOF
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573   :
3574 else
3575   echo "configure: failed program was:" >&5
3576   cat conftest.$ac_ext >&5
3577   rm -rf conftest*
3578   ac_c99_math=no
3579 fi
3580 rm -f conftest*
3581   cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <math.h>
3585 int main() {
3586 isgreaterequal(0.0,0.0);
3587 ; return 0; }
3588 EOF
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590   :
3591 else
3592   echo "configure: failed program was:" >&5
3593   cat conftest.$ac_ext >&5
3594   rm -rf conftest*
3595   ac_c99_math=no
3596 fi
3597 rm -f conftest*
3598   cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <math.h>
3602 int main() {
3603 isless(0.0,0.0);
3604 ; return 0; }
3605 EOF
3606 if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607   :
3608 else
3609   echo "configure: failed program was:" >&5
3610   cat conftest.$ac_ext >&5
3611   rm -rf conftest*
3612   ac_c99_math=no
3613 fi
3614 rm -f conftest*
3615   cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <math.h>
3619 int main() {
3620 islessequal(0.0,0.0);
3621 ; return 0; }
3622 EOF
3623 if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624   :
3625 else
3626   echo "configure: failed program was:" >&5
3627   cat conftest.$ac_ext >&5
3628   rm -rf conftest*
3629   ac_c99_math=no
3630 fi
3631 rm -f conftest*
3632   cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <math.h>
3636 int main() {
3637 islessgreater(0.0,0.0);
3638 ; return 0; }
3639 EOF
3640 if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641   :
3642 else
3643   echo "configure: failed program was:" >&5
3644   cat conftest.$ac_ext >&5
3645   rm -rf conftest*
3646   ac_c99_math=no
3647 fi
3648 rm -f conftest*
3649   cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 #include <math.h>
3653 int main() {
3654 isunordered(0.0,0.0);
3655 ; return 0; }
3656 EOF
3657 if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658   :
3659 else
3660   echo "configure: failed program was:" >&5
3661   cat conftest.$ac_ext >&5
3662   rm -rf conftest*
3663   ac_c99_math=no
3664 fi
3665 rm -f conftest*
3666   echo "$ac_t""$ac_c99_math" 1>&6
3667
3668   # Check for the existence in <stdio.h> of vscanf, et. al.
3669   ac_c99_stdio=yes;
3670   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3671 echo "configure:3672: checking for ISO C99 support in <stdio.h>" >&5
3672   cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <stdio.h>
3676 int main() {
3677 snprintf("12", 0, "%i");
3678 ; return 0; }
3679 EOF
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681   :
3682 else
3683   echo "configure: failed program was:" >&5
3684   cat conftest.$ac_ext >&5
3685   rm -rf conftest*
3686   ac_c99_stdio=no
3687 fi
3688 rm -f conftest*
3689   cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <stdio.h>
3693                   #include <stdarg.h>
3694                   void foo(char* fmt, ...)
3695                   {va_list args; va_start(args, fmt);
3696                   vfscanf(stderr, "%i", args);}
3697 int main() {
3698
3699 ; return 0; }
3700 EOF
3701 if { (eval echo configure:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3702   :
3703 else
3704   echo "configure: failed program was:" >&5
3705   cat conftest.$ac_ext >&5
3706   rm -rf conftest*
3707   ac_c99_stdio=no
3708 fi
3709 rm -f conftest*
3710   cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #include <stdio.h>
3714                   #include <stdarg.h>
3715                   void foo(char* fmt, ...)
3716                   {va_list args; va_start(args, fmt);
3717                   vscanf("%i", args);}
3718 int main() {
3719
3720 ; return 0; }
3721 EOF
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723   :
3724 else
3725   echo "configure: failed program was:" >&5
3726   cat conftest.$ac_ext >&5
3727   rm -rf conftest*
3728   ac_c99_stdio=no
3729 fi
3730 rm -f conftest*
3731   cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <stdio.h>
3735                   #include <stdarg.h>
3736                   void foo(char* fmt, ...)
3737                   {va_list args; va_start(args, fmt);
3738                   vsnprintf(fmt, 0, "%i", args);}
3739 int main() {
3740
3741 ; return 0; }
3742 EOF
3743 if { (eval echo configure:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3744   :
3745 else
3746   echo "configure: failed program was:" >&5
3747   cat conftest.$ac_ext >&5
3748   rm -rf conftest*
3749   ac_c99_stdio=no
3750 fi
3751 rm -f conftest*
3752   cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <stdio.h>
3756                   #include <stdarg.h>
3757                   void foo(char* fmt, ...)
3758                   {va_list args; va_start(args, fmt);
3759                   vsscanf(fmt, "%i", args);}
3760 int main() {
3761
3762 ; return 0; }
3763 EOF
3764 if { (eval echo configure:3765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3765   :
3766 else
3767   echo "configure: failed program was:" >&5
3768   cat conftest.$ac_ext >&5
3769   rm -rf conftest*
3770   ac_c99_stdio=no
3771 fi
3772 rm -f conftest*
3773   echo "$ac_t""$ac_c99_stdio" 1>&6
3774
3775   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3776   ac_c99_stdlib=yes;
3777   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3778 echo "configure:3779: checking for lldiv_t declaration" >&5
3779   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3780   echo $ac_n "(cached) $ac_c" 1>&6
3781 else
3782   
3783   cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 #include <stdlib.h>
3787 int main() {
3788  lldiv_t mydivt;
3789 ; return 0; }
3790 EOF
3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792   rm -rf conftest*
3793   ac_c99_lldiv_t=yes
3794 else
3795   echo "configure: failed program was:" >&5
3796   cat conftest.$ac_ext >&5
3797   rm -rf conftest*
3798   ac_c99_lldiv_t=no
3799 fi
3800 rm -f conftest*
3801   
3802 fi
3803
3804   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3805
3806   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3807 echo "configure:3808: checking for ISO C99 support in <stdlib.h>" >&5
3808   cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 #include <stdlib.h>
3812 int main() {
3813 char* tmp; strtof("gnu", &tmp);
3814 ; return 0; }
3815 EOF
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3817   :
3818 else
3819   echo "configure: failed program was:" >&5
3820   cat conftest.$ac_ext >&5
3821   rm -rf conftest*
3822   ac_c99_stdlib=no
3823 fi
3824 rm -f conftest*
3825   cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <stdlib.h>
3829 int main() {
3830 char* tmp; strtold("gnu", &tmp);
3831 ; return 0; }
3832 EOF
3833 if { (eval echo configure:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3834   :
3835 else
3836   echo "configure: failed program was:" >&5
3837   cat conftest.$ac_ext >&5
3838   rm -rf conftest*
3839   ac_c99_stdlib=no
3840 fi
3841 rm -f conftest*
3842   cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 #include <stdlib.h>
3846 int main() {
3847 llabs(10);
3848 ; return 0; }
3849 EOF
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851   :
3852 else
3853   echo "configure: failed program was:" >&5
3854   cat conftest.$ac_ext >&5
3855   rm -rf conftest*
3856   ac_c99_stdlib=no
3857 fi
3858 rm -f conftest*
3859   cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <stdlib.h>
3863 int main() {
3864 lldiv(10,1);
3865 ; return 0; }
3866 EOF
3867 if { (eval echo configure:3868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868   :
3869 else
3870   echo "configure: failed program was:" >&5
3871   cat conftest.$ac_ext >&5
3872   rm -rf conftest*
3873   ac_c99_stdlib=no
3874 fi
3875 rm -f conftest*
3876   cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 #include <stdlib.h>
3880 int main() {
3881 atoll("10");
3882 ; return 0; }
3883 EOF
3884 if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885   :
3886 else
3887   echo "configure: failed program was:" >&5
3888   cat conftest.$ac_ext >&5
3889   rm -rf conftest*
3890   ac_c99_stdlib=no
3891 fi
3892 rm -f conftest*
3893   cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 #include <stdlib.h>
3897 int main() {
3898 _Exit(0);
3899 ; return 0; }
3900 EOF
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3902   :
3903 else
3904   echo "configure: failed program was:" >&5
3905   cat conftest.$ac_ext >&5
3906   rm -rf conftest*
3907   ac_c99_stdlib=no
3908 fi
3909 rm -f conftest*
3910   if test x"$ac_c99_lldiv_t" = x"no"; then
3911     ac_c99_stdlib=no;
3912   fi;
3913   echo "$ac_t""$ac_c99_stdlib" 1>&6
3914
3915   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3916   # XXX the wchar.h checks should be rolled into the general C99 bits.
3917   ac_c99_wchar=yes;
3918   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3919 echo "configure:3920: checking for additional ISO C99 support in <wchar.h>" >&5
3920   cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 #include <wchar.h>
3924 int main() {
3925 wcstold(L"10.0", NULL);
3926 ; return 0; }
3927 EOF
3928 if { (eval echo configure:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929   :
3930 else
3931   echo "configure: failed program was:" >&5
3932   cat conftest.$ac_ext >&5
3933   rm -rf conftest*
3934   ac_c99_wchar=no
3935 fi
3936 rm -f conftest*
3937   cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 #include <wchar.h>
3941 int main() {
3942 wcstoll(L"10", NULL, 10);
3943 ; return 0; }
3944 EOF
3945 if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946   :
3947 else
3948   echo "configure: failed program was:" >&5
3949   cat conftest.$ac_ext >&5
3950   rm -rf conftest*
3951   ac_c99_wchar=no
3952 fi
3953 rm -f conftest*
3954   cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <wchar.h>
3958 int main() {
3959 wcstoull(L"10", NULL, 10);
3960 ; return 0; }
3961 EOF
3962 if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3963   :
3964 else
3965   echo "configure: failed program was:" >&5
3966   cat conftest.$ac_ext >&5
3967   rm -rf conftest*
3968   ac_c99_wchar=no
3969 fi
3970 rm -f conftest*
3971   echo "$ac_t""$ac_c99_wchar" 1>&6
3972
3973   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3974 echo "configure:3975: checking for enabled ISO C99 support" >&5
3975   if test x"$ac_c99_math" = x"no" ||
3976      test x"$ac_c99_stdio" = x"no" ||
3977      test x"$ac_c99_stdlib" = x"no" ||
3978      test x"$ac_c99_wchar" = x"no"; then
3979     enable_c99=no;
3980   fi;
3981   echo "$ac_t""$enable_c99" 1>&6
3982
3983   # Option parsed, now set things appropriately
3984   if test x"$enable_c99" = x"yes"; then
3985     cat >> confdefs.h <<\EOF
3986 #define _GLIBCPP_USE_C99 1
3987 EOF
3988
3989   fi
3990
3991   ac_ext=c
3992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3996 cross_compiling=$ac_cv_prog_cc_cross
3997
3998
3999   
4000   # Check whether --enable-long-long or --disable-long-long was given.
4001 if test "${enable_long_long+set}" = set; then
4002   enableval="$enable_long_long"
4003     case "$enableval" in
4004    yes) enable_long_long=yes ;;
4005    no)  enable_long_long=no ;;
4006    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4007    esac
4008 else
4009   enable_long_long=yes
4010 fi
4011
4012   
4013   ac_ext=C
4014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4015 ac_cpp='$CXXCPP $CPPFLAGS'
4016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4018 cross_compiling=$ac_cv_prog_cxx_cross
4019
4020
4021   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4022 echo "configure:4023: checking for enabled long long I/O support" >&5
4023   # iostreams require strtoll, strtoull to compile
4024   cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <stdlib.h>
4028 int main() {
4029 char* tmp; strtoll("gnu", &tmp, 10);
4030 ; return 0; }
4031 EOF
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033   :
4034 else
4035   echo "configure: failed program was:" >&5
4036   cat conftest.$ac_ext >&5
4037   rm -rf conftest*
4038   enable_long_long=no
4039 fi
4040 rm -f conftest*
4041   cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 #include <stdlib.h>
4045 int main() {
4046 char* tmp; strtoull("gnu", &tmp, 10);
4047 ; return 0; }
4048 EOF
4049 if { (eval echo configure:4050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4050   :
4051 else
4052   echo "configure: failed program was:" >&5
4053   cat conftest.$ac_ext >&5
4054   rm -rf conftest*
4055   enable_long_long=no
4056 fi
4057 rm -f conftest*
4058
4059   # Option parsed, now set things appropriately
4060   if test x"$enable_long_long" = xyes; then
4061     cat >> confdefs.h <<\EOF
4062 #define _GLIBCPP_USE_LONG_LONG 1
4063 EOF
4064
4065   fi
4066   echo "$ac_t""$enable_long_long" 1>&6
4067
4068   ac_ext=c
4069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4073 cross_compiling=$ac_cv_prog_cc_cross
4074
4075
4076
4077   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4078 echo "configure:4079: checking for thread model used by GCC" >&5
4079   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4080   echo "$ac_t""$target_thread_file" 1>&6
4081
4082   if test $target_thread_file != single; then
4083     cat >> confdefs.h <<\EOF
4084 #define HAVE_GTHR_DEFAULT 1
4085 EOF
4086
4087     cat >> confdefs.h <<\EOF
4088 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4089 EOF
4090
4091   fi
4092
4093   glibcpp_thread_h=gthr-$target_thread_file.h
4094   
4095
4096 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4097 if test "${enable_concept_checks+set}" = set; then
4098   enableval="$enable_concept_checks"
4099   case "$enableval" in
4100  yes) enable_concept_checks=yes ;;
4101  no)  enable_concept_checks=no ;;
4102  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4103  esac
4104 else
4105   enable_concept_checks=no
4106 fi
4107 if test x"$enable_concept_checks" = xyes; then
4108   cat >> confdefs.h <<\EOF
4109 #define _GLIBCPP_CONCEPT_CHECKS 1
4110 EOF
4111
4112 fi
4113
4114 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4115 echo "configure:4116: checking for extra compiler flags for building" >&5
4116 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4117 if test "${enable_cxx_flags+set}" = set; then
4118   enableval="$enable_cxx_flags"
4119   case "x$enable_cxx_flags" in
4120   xyes)
4121     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4122   xno | xnone | x)
4123     enable_cxx_flags='' ;;
4124   *)
4125     enable_cxx_flags="$enableval" ;;
4126 esac
4127 else
4128   enable_cxx_flags=
4129 fi
4130
4131
4132 if test -n "$enable_cxx_flags"; then
4133   for f in $enable_cxx_flags; do
4134     case "$f" in
4135       -fhonor-std)  ;;
4136       -*)  ;;
4137       *)   # and we're trying to pass /what/ exactly?
4138            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4139     esac
4140   done
4141 fi
4142 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4143 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4144
4145
4146 # Check whether --enable-debug or --disable-debug was given.
4147 if test "${enable_debug+set}" = set; then
4148   enableval="$enable_debug"
4149   case "${enableval}" in
4150  yes) enable_debug=yes ;;
4151  no)  enable_debug=no ;;
4152  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4153  esac
4154 else
4155   enable_debug=no
4156 fi
4157 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4158 echo "configure:4159: checking for additional debug build" >&5
4159 echo "$ac_t""$enable_debug" 1>&6
4160
4161
4162 if test "$enable_debug" = yes; then
4163   GLIBCPP_BUILD_DEBUG_TRUE=
4164   GLIBCPP_BUILD_DEBUG_FALSE='#'
4165 else
4166   GLIBCPP_BUILD_DEBUG_TRUE='#'
4167   GLIBCPP_BUILD_DEBUG_FALSE=
4168 fi
4169
4170 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4171 if test "${enable_debug_flags+set}" = set; then
4172   enableval="$enable_debug_flags"
4173   case "${enableval}" in
4174  none)  ;;
4175  -*) enable_debug_flags="${enableval}" ;;
4176  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4177  esac
4178 else
4179   enable_debug_flags=none
4180 fi
4181
4182 case x"$enable_debug" in
4183     xyes)
4184         case "$enable_debug_flags" in
4185           none)
4186             DEBUG_FLAGS="-g3 -O0";;
4187           -*) #valid input
4188             DEBUG_FLAGS="${enableval}"
4189         esac
4190         ;;
4191     xno)
4192         DEBUG_FLAGS=""
4193         ;;
4194 esac
4195
4196
4197 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4198 echo "configure:4199: checking for debug build flags" >&5
4199 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4200
4201
4202 # No surprises, no surprises...
4203 if test $ATOMICITYH = cpu/generic ; then
4204   echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4205   if test $target_thread_file = single; then
4206     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4207     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4208   else
4209     echo "configure: warning: They will be faked using a mutex." 1>&2
4210     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4211   fi
4212 fi
4213
4214
4215 if test x"$build" != x"$host"; then
4216
4217   # We are being configured with some form of cross compiler.
4218   GLIBCPP_IS_CROSS_COMPILING=true
4219
4220   # This lets us hard-code the functionality we know we'll have in the cross
4221   # target environment.  "Let" is a sugar-coated word placed on an especially
4222   # dull and tedious hack, actually.
4223   #
4224   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4225   # that involve linking, can't be used:
4226   #    "cannot open sim-crt0.o"
4227   #    "cannot open crt0.o"
4228   # etc.  All this is because there currently exists no unified, consistent
4229   # way for top level CC information to be passed down to target directories:
4230   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4231   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4232   # crosses can be removed.
4233
4234   # If Canadian cross, then don't pick up tools from the build directory.
4235   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4236   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4237     && test x"$build" != x"$target"; then
4238     CANADIAN=yes
4239   else
4240     CANADIAN=no
4241   fi
4242
4243   # Construct crosses by hand, eliminating bits that need ld...
4244   # GLIBCPP_CHECK_COMPILER_FEATURES
4245   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4246   # GLIBCPP_CHECK_MATH_SUPPORT
4247
4248   case "${host}" in
4249     *-freebsd*)
4250       os_include_dir="os/bsd/freebsd"
4251       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4252         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4253         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4254         sys/time.h unistd.h
4255 do
4256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_hdr" >&5
4259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260   echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262   cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <$ac_hdr>
4266 EOF
4267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268 { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270 if test -z "$ac_err"; then
4271   rm -rf conftest*
4272   eval "ac_cv_header_$ac_safe=yes"
4273 else
4274   echo "$ac_err" >&5
4275   echo "configure: failed program was:" >&5
4276   cat conftest.$ac_ext >&5
4277   rm -rf conftest*
4278   eval "ac_cv_header_$ac_safe=no"
4279 fi
4280 rm -f conftest*
4281 fi
4282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283   echo "$ac_t""yes" 1>&6
4284     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4285   cat >> confdefs.h <<EOF
4286 #define $ac_tr_hdr 1
4287 EOF
4288  
4289 else
4290   echo "$ac_t""no" 1>&6
4291 fi
4292 done
4293
4294       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4295        
4296       
4297   # If we're not using GNU ld, then there's no point in even trying these
4298   # tests.  Check for that first.  We should have already tested for gld
4299   # by now (in libtool), but require it now just to be safe...
4300   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4301   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4302   
4303
4304   # The name set by libtool depends on the version of libtool.  Shame on us
4305   # for depending on an impl detail, but c'est la vie.  Older versions used
4306   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4307   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4308   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4309   # set (hence we're using an older libtool), then set it.
4310   if test x${with_gnu_ld+set} != xset; then
4311     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4312       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4313       with_gnu_ld=no
4314     else
4315       with_gnu_ld=$ac_cv_prog_gnu_ld
4316     fi
4317   fi
4318
4319   # Start by getting the version number.  I think the libtool test already
4320   # does some of this, but throws away the result.
4321   
4322   ldver=`$LD --version 2>/dev/null | head -1 | \
4323          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4324   
4325   glibcpp_gnu_ld_version=`echo $ldver | \
4326          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4327
4328   # Set --gc-sections.
4329   if test "$with_gnu_ld" = "notbroken"; then
4330     # GNU ld it is!  Joy and bunny rabbits!
4331
4332     # All these tests are for C++; save the language and the compiler flags.
4333     # Need to do this so that g++ won't try to link in libstdc++
4334     ac_test_CFLAGS="${CFLAGS+set}"
4335     ac_save_CFLAGS="$CFLAGS"
4336     CFLAGS='-x c++  -Wl,--gc-sections'
4337
4338     # Check for -Wl,--gc-sections
4339     # XXX This test is broken at the moment, as symbols required for
4340     # linking are now in libsupc++ (not built yet.....). In addition,
4341     # this test has cored on solaris in the past. In addition,
4342     # --gc-sections doesn't really work at the moment (keeps on discarding
4343     # used sections, first .eh_frame and now some of the glibc sections for
4344     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4345     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4346 echo "configure:4347: checking for ld that supports -Wl,--gc-sections" >&5
4347     if test "$cross_compiling" = yes; then
4348   ac_sectionLDflags=yes
4349 else
4350   cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353
4354      int main(void)
4355      {
4356        try { throw 1; }
4357        catch (...) { };
4358        return 0;
4359      }
4360     
4361 EOF
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4363 then
4364   ac_sectionLDflags=yes
4365 else
4366   echo "configure: failed program was:" >&5
4367   cat conftest.$ac_ext >&5
4368   rm -fr conftest*
4369   ac_sectionLDflags=no
4370 fi
4371 rm -fr conftest*
4372 fi
4373
4374     if test "$ac_test_CFLAGS" = set; then
4375       CFLAGS="$ac_save_CFLAGS"
4376     else
4377       # this is the suspicious part
4378       CFLAGS=''
4379     fi
4380     if test "$ac_sectionLDflags" = "yes"; then
4381       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4382     fi
4383     echo "$ac_t""$ac_sectionLDflags" 1>&6
4384   fi
4385
4386   # Set linker optimization flags.
4387   if test x"$with_gnu_ld" = x"yes"; then
4388     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4389   fi
4390
4391   
4392   
4393
4394       
4395         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4396 echo "configure:4397: checking for main in -lm" >&5
4397 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4399   echo $ac_n "(cached) $ac_c" 1>&6
4400 else
4401   ac_save_LIBS="$LIBS"
4402 LIBS="-lm  $LIBS"
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406
4407 int main() {
4408 main()
4409 ; return 0; }
4410 EOF
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412   rm -rf conftest*
4413   eval "ac_cv_lib_$ac_lib_var=yes"
4414 else
4415   echo "configure: failed program was:" >&5
4416   cat conftest.$ac_ext >&5
4417   rm -rf conftest*
4418   eval "ac_cv_lib_$ac_lib_var=no"
4419 fi
4420 rm -f conftest*
4421 LIBS="$ac_save_LIBS"
4422
4423 fi
4424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4425   echo "$ac_t""yes" 1>&6
4426     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4427     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4428   cat >> confdefs.h <<EOF
4429 #define $ac_tr_lib 1
4430 EOF
4431
4432   LIBS="-lm $LIBS"
4433
4434 else
4435   echo "$ac_t""no" 1>&6
4436 fi
4437
4438   for ac_func in nan copysignf
4439 do
4440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_func" >&5
4442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4443   echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4445   cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* System header to define __stub macros and hopefully few prototypes,
4449     which can conflict with char $ac_func(); below.  */
4450 #include <assert.h>
4451 /* Override any gcc2 internal prototype to avoid an error.  */
4452 /* We use char because int might match the return type of a gcc2
4453     builtin and then its argument prototype would still apply.  */
4454 char $ac_func();
4455
4456 int main() {
4457
4458 /* The GNU C library defines this for functions which it implements
4459     to always fail with ENOSYS.  Some functions are actually named
4460     something starting with __ and the normal name is an alias.  */
4461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4462 choke me
4463 #else
4464 $ac_func();
4465 #endif
4466
4467 ; return 0; }
4468 EOF
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470   rm -rf conftest*
4471   eval "ac_cv_func_$ac_func=yes"
4472 else
4473   echo "configure: failed program was:" >&5
4474   cat conftest.$ac_ext >&5
4475   rm -rf conftest*
4476   eval "ac_cv_func_$ac_func=no"
4477 fi
4478 rm -f conftest*
4479 fi
4480
4481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4482   echo "$ac_t""yes" 1>&6
4483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4484   cat >> confdefs.h <<EOF
4485 #define $ac_tr_func 1
4486 EOF
4487  
4488 else
4489   echo "$ac_t""no" 1>&6
4490 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4491 fi
4492 done
4493
4494
4495     for ac_func in __signbit
4496 do
4497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_func" >&5
4499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4500   echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502   cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* System header to define __stub macros and hopefully few prototypes,
4506     which can conflict with char $ac_func(); below.  */
4507 #include <assert.h>
4508 /* Override any gcc2 internal prototype to avoid an error.  */
4509 /* We use char because int might match the return type of a gcc2
4510     builtin and then its argument prototype would still apply.  */
4511 char $ac_func();
4512
4513 int main() {
4514
4515 /* The GNU C library defines this for functions which it implements
4516     to always fail with ENOSYS.  Some functions are actually named
4517     something starting with __ and the normal name is an alias.  */
4518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4519 choke me
4520 #else
4521 $ac_func();
4522 #endif
4523
4524 ; return 0; }
4525 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527   rm -rf conftest*
4528   eval "ac_cv_func_$ac_func=yes"
4529 else
4530   echo "configure: failed program was:" >&5
4531   cat conftest.$ac_ext >&5
4532   rm -rf conftest*
4533   eval "ac_cv_func_$ac_func=no"
4534 fi
4535 rm -f conftest*
4536 fi
4537
4538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4539   echo "$ac_t""yes" 1>&6
4540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4541   cat >> confdefs.h <<EOF
4542 #define $ac_tr_func 1
4543 EOF
4544  
4545 else
4546   echo "$ac_t""no" 1>&6
4547 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4548 fi
4549 done
4550
4551   for ac_func in __signbitf
4552 do
4553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_func" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4556   echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558   cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562     which can conflict with char $ac_func(); below.  */
4563 #include <assert.h>
4564 /* Override any gcc2 internal prototype to avoid an error.  */
4565 /* We use char because int might match the return type of a gcc2
4566     builtin and then its argument prototype would still apply.  */
4567 char $ac_func();
4568
4569 int main() {
4570
4571 /* The GNU C library defines this for functions which it implements
4572     to always fail with ENOSYS.  Some functions are actually named
4573     something starting with __ and the normal name is an alias.  */
4574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4575 choke me
4576 #else
4577 $ac_func();
4578 #endif
4579
4580 ; return 0; }
4581 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4583   rm -rf conftest*
4584   eval "ac_cv_func_$ac_func=yes"
4585 else
4586   echo "configure: failed program was:" >&5
4587   cat conftest.$ac_ext >&5
4588   rm -rf conftest*
4589   eval "ac_cv_func_$ac_func=no"
4590 fi
4591 rm -f conftest*
4592 fi
4593
4594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4595   echo "$ac_t""yes" 1>&6
4596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4597   cat >> confdefs.h <<EOF
4598 #define $ac_tr_func 1
4599 EOF
4600  
4601 else
4602   echo "$ac_t""no" 1>&6
4603 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4604 fi
4605 done
4606
4607
4608           if test x$ac_cv_func_copysignl = x"yes"; then
4609     for ac_func in __signbitl
4610 do
4611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_func" >&5
4613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4614   echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616   cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4619 /* System header to define __stub macros and hopefully few prototypes,
4620     which can conflict with char $ac_func(); below.  */
4621 #include <assert.h>
4622 /* Override any gcc2 internal prototype to avoid an error.  */
4623 /* We use char because int might match the return type of a gcc2
4624     builtin and then its argument prototype would still apply.  */
4625 char $ac_func();
4626
4627 int main() {
4628
4629 /* The GNU C library defines this for functions which it implements
4630     to always fail with ENOSYS.  Some functions are actually named
4631     something starting with __ and the normal name is an alias.  */
4632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4633 choke me
4634 #else
4635 $ac_func();
4636 #endif
4637
4638 ; return 0; }
4639 EOF
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641   rm -rf conftest*
4642   eval "ac_cv_func_$ac_func=yes"
4643 else
4644   echo "configure: failed program was:" >&5
4645   cat conftest.$ac_ext >&5
4646   rm -rf conftest*
4647   eval "ac_cv_func_$ac_func=no"
4648 fi
4649 rm -f conftest*
4650 fi
4651
4652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4653   echo "$ac_t""yes" 1>&6
4654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4655   cat >> confdefs.h <<EOF
4656 #define $ac_tr_func 1
4657 EOF
4658  
4659 else
4660   echo "$ac_t""no" 1>&6
4661 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4662 fi
4663 done
4664
4665   fi
4666
4667   if test -n "$LIBMATHOBJS"; then
4668     need_libmath=yes
4669   fi
4670   
4671
4672       
4673   
4674       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4675 echo "configure:4676: checking for mbstate_t" >&5
4676   cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <wchar.h>
4680 int main() {
4681 mbstate_t teststate;
4682 ; return 0; }
4683 EOF
4684 if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4685   rm -rf conftest*
4686   have_mbstate_t=yes
4687 else
4688   echo "configure: failed program was:" >&5
4689   cat conftest.$ac_ext >&5
4690   rm -rf conftest*
4691   have_mbstate_t=no
4692 fi
4693 rm -f conftest*
4694   echo "$ac_t""$have_mbstate_t" 1>&6
4695   if test x"$have_mbstate_t" = xyes; then
4696     cat >> confdefs.h <<\EOF
4697 #define HAVE_MBSTATE_T 1
4698 EOF
4699
4700   fi
4701
4702     for ac_hdr in wchar.h
4703 do
4704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_hdr" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4708   echo $ac_n "(cached) $ac_c" 1>&6
4709 else
4710   cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <$ac_hdr>
4714 EOF
4715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4716 { (eval echo configure:4717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4718 if test -z "$ac_err"; then
4719   rm -rf conftest*
4720   eval "ac_cv_header_$ac_safe=yes"
4721 else
4722   echo "$ac_err" >&5
4723   echo "configure: failed program was:" >&5
4724   cat conftest.$ac_ext >&5
4725   rm -rf conftest*
4726   eval "ac_cv_header_$ac_safe=no"
4727 fi
4728 rm -f conftest*
4729 fi
4730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4731   echo "$ac_t""yes" 1>&6
4732     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4733   cat >> confdefs.h <<EOF
4734 #define $ac_tr_hdr 1
4735 EOF
4736  ac_has_wchar_h=yes
4737 else
4738   echo "$ac_t""no" 1>&6
4739 ac_has_wchar_h=no
4740 fi
4741 done
4742
4743   for ac_hdr in wctype.h
4744 do
4745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_hdr" >&5
4748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4749   echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751   cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <$ac_hdr>
4755 EOF
4756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4757 { (eval echo configure:4758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4759 if test -z "$ac_err"; then
4760   rm -rf conftest*
4761   eval "ac_cv_header_$ac_safe=yes"
4762 else
4763   echo "$ac_err" >&5
4764   echo "configure: failed program was:" >&5
4765   cat conftest.$ac_ext >&5
4766   rm -rf conftest*
4767   eval "ac_cv_header_$ac_safe=no"
4768 fi
4769 rm -f conftest*
4770 fi
4771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4772   echo "$ac_t""yes" 1>&6
4773     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4774   cat >> confdefs.h <<EOF
4775 #define $ac_tr_hdr 1
4776 EOF
4777  ac_has_wctype_h=yes
4778 else
4779   echo "$ac_t""no" 1>&6
4780 ac_has_wctype_h=no
4781 fi
4782 done
4783
4784
4785     if test x"$ac_has_wchar_h" = xyes &&
4786      test x"$ac_has_wctype_h" = xyes &&
4787      test x"$enable_c_mbchar" != xno; then
4788
4789             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4790 echo "configure:4791: checking for WCHAR_MIN and WCHAR_MAX" >&5
4791     cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 #include <wchar.h>
4795 int main() {
4796 int i = WCHAR_MIN; int j = WCHAR_MAX;
4797 ; return 0; }
4798 EOF
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4800   rm -rf conftest*
4801   has_wchar_minmax=yes
4802 else
4803   echo "configure: failed program was:" >&5
4804   cat conftest.$ac_ext >&5
4805   rm -rf conftest*
4806   has_wchar_minmax=no
4807 fi
4808 rm -f conftest*
4809     echo "$ac_t""$has_wchar_minmax" 1>&6
4810
4811             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4812 echo "configure:4813: checking for WEOF" >&5
4813     cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816
4817       #include <wchar.h>
4818       #include <stddef.h>
4819 int main() {
4820 wint_t i = WEOF;
4821 ; return 0; }
4822 EOF
4823 if { (eval echo configure:4824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824   rm -rf conftest*
4825   has_weof=yes
4826 else
4827   echo "configure: failed program was:" >&5
4828   cat conftest.$ac_ext >&5
4829   rm -rf conftest*
4830   has_weof=no
4831 fi
4832 rm -f conftest*
4833     echo "$ac_t""$has_weof" 1>&6
4834
4835         ac_wfuncs=yes
4836     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4837 do
4838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4839 echo "configure:4840: checking for $ac_func" >&5
4840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4841   echo $ac_n "(cached) $ac_c" 1>&6
4842 else
4843   cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4846 /* System header to define __stub macros and hopefully few prototypes,
4847     which can conflict with char $ac_func(); below.  */
4848 #include <assert.h>
4849 /* Override any gcc2 internal prototype to avoid an error.  */
4850 /* We use char because int might match the return type of a gcc2
4851     builtin and then its argument prototype would still apply.  */
4852 char $ac_func();
4853
4854 int main() {
4855
4856 /* The GNU C library defines this for functions which it implements
4857     to always fail with ENOSYS.  Some functions are actually named
4858     something starting with __ and the normal name is an alias.  */
4859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4860 choke me
4861 #else
4862 $ac_func();
4863 #endif
4864
4865 ; return 0; }
4866 EOF
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868   rm -rf conftest*
4869   eval "ac_cv_func_$ac_func=yes"
4870 else
4871   echo "configure: failed program was:" >&5
4872   cat conftest.$ac_ext >&5
4873   rm -rf conftest*
4874   eval "ac_cv_func_$ac_func=no"
4875 fi
4876 rm -f conftest*
4877 fi
4878
4879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4880   echo "$ac_t""yes" 1>&6
4881     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4882   cat >> confdefs.h <<EOF
4883 #define $ac_tr_func 1
4884 EOF
4885  
4886 else
4887   echo "$ac_t""no" 1>&6
4888 \
4889     ac_wfuncs=no
4890 fi
4891 done
4892
4893
4894         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4895     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4896     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4897     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4898     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4899     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4900 do
4901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4902 echo "configure:4903: checking for $ac_func" >&5
4903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4904   echo $ac_n "(cached) $ac_c" 1>&6
4905 else
4906   cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* System header to define __stub macros and hopefully few prototypes,
4910     which can conflict with char $ac_func(); below.  */
4911 #include <assert.h>
4912 /* Override any gcc2 internal prototype to avoid an error.  */
4913 /* We use char because int might match the return type of a gcc2
4914     builtin and then its argument prototype would still apply.  */
4915 char $ac_func();
4916
4917 int main() {
4918
4919 /* The GNU C library defines this for functions which it implements
4920     to always fail with ENOSYS.  Some functions are actually named
4921     something starting with __ and the normal name is an alias.  */
4922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4923 choke me
4924 #else
4925 $ac_func();
4926 #endif
4927
4928 ; return 0; }
4929 EOF
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931   rm -rf conftest*
4932   eval "ac_cv_func_$ac_func=yes"
4933 else
4934   echo "configure: failed program was:" >&5
4935   cat conftest.$ac_ext >&5
4936   rm -rf conftest*
4937   eval "ac_cv_func_$ac_func=no"
4938 fi
4939 rm -f conftest*
4940 fi
4941
4942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4943   echo "$ac_t""yes" 1>&6
4944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4945   cat >> confdefs.h <<EOF
4946 #define $ac_tr_func 1
4947 EOF
4948  
4949 else
4950   echo "$ac_t""no" 1>&6
4951 \
4952     ac_wfuncs=no
4953 fi
4954 done
4955
4956
4957     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4958 echo "configure:4959: checking for ISO C99 wchar_t support" >&5
4959     if test x"$has_weof" = xyes &&
4960        test x"$has_wchar_minmax" = xyes &&
4961        test x"$ac_wfuncs" = xyes; then
4962       ac_isoC99_wchar_t=yes
4963     else
4964       ac_isoC99_wchar_t=no
4965     fi
4966     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4967
4968             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4969 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4970 echo "configure:4971: checking for iconv.h" >&5
4971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4972   echo $ac_n "(cached) $ac_c" 1>&6
4973 else
4974   cat > conftest.$ac_ext <<EOF
4975 #line 4976 "configure"
4976 #include "confdefs.h"
4977 #include <iconv.h>
4978 EOF
4979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4980 { (eval echo configure:4981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4982 if test -z "$ac_err"; then
4983   rm -rf conftest*
4984   eval "ac_cv_header_$ac_safe=yes"
4985 else
4986   echo "$ac_err" >&5
4987   echo "configure: failed program was:" >&5
4988   cat conftest.$ac_ext >&5
4989   rm -rf conftest*
4990   eval "ac_cv_header_$ac_safe=no"
4991 fi
4992 rm -f conftest*
4993 fi
4994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4995   echo "$ac_t""yes" 1>&6
4996   ac_has_iconv_h=yes
4997 else
4998   echo "$ac_t""no" 1>&6
4999 ac_has_iconv_h=no
5000 fi
5001
5002     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5003 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5004 echo "configure:5005: checking for langinfo.h" >&5
5005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5006   echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008   cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 #include <langinfo.h>
5012 EOF
5013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5014 { (eval echo configure:5015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5016 if test -z "$ac_err"; then
5017   rm -rf conftest*
5018   eval "ac_cv_header_$ac_safe=yes"
5019 else
5020   echo "$ac_err" >&5
5021   echo "configure: failed program was:" >&5
5022   cat conftest.$ac_ext >&5
5023   rm -rf conftest*
5024   eval "ac_cv_header_$ac_safe=no"
5025 fi
5026 rm -f conftest*
5027 fi
5028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5029   echo "$ac_t""yes" 1>&6
5030   ac_has_langinfo_h=yes
5031 else
5032   echo "$ac_t""no" 1>&6
5033 ac_has_langinfo_h=no
5034 fi
5035
5036
5037         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5038 echo "configure:5039: checking for iconv in -liconv" >&5
5039 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5041   echo $ac_n "(cached) $ac_c" 1>&6
5042 else
5043   ac_save_LIBS="$LIBS"
5044 LIBS="-liconv  $LIBS"
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5048 /* Override any gcc2 internal prototype to avoid an error.  */
5049 /* We use char because int might match the return type of a gcc2
5050     builtin and then its argument prototype would still apply.  */
5051 char iconv();
5052
5053 int main() {
5054 iconv()
5055 ; return 0; }
5056 EOF
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058   rm -rf conftest*
5059   eval "ac_cv_lib_$ac_lib_var=yes"
5060 else
5061   echo "configure: failed program was:" >&5
5062   cat conftest.$ac_ext >&5
5063   rm -rf conftest*
5064   eval "ac_cv_lib_$ac_lib_var=no"
5065 fi
5066 rm -f conftest*
5067 LIBS="$ac_save_LIBS"
5068
5069 fi
5070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5071   echo "$ac_t""yes" 1>&6
5072   libiconv="-liconv"
5073 else
5074   echo "$ac_t""no" 1>&6
5075 fi
5076
5077     ac_save_LIBS="$LIBS"
5078     LIBS="$LIBS $libiconv"
5079
5080     for ac_func in iconv_open iconv_close iconv nl_langinfo
5081 do
5082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5083 echo "configure:5084: checking for $ac_func" >&5
5084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5085   echo $ac_n "(cached) $ac_c" 1>&6
5086 else
5087   cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 /* System header to define __stub macros and hopefully few prototypes,
5091     which can conflict with char $ac_func(); below.  */
5092 #include <assert.h>
5093 /* Override any gcc2 internal prototype to avoid an error.  */
5094 /* We use char because int might match the return type of a gcc2
5095     builtin and then its argument prototype would still apply.  */
5096 char $ac_func();
5097
5098 int main() {
5099
5100 /* The GNU C library defines this for functions which it implements
5101     to always fail with ENOSYS.  Some functions are actually named
5102     something starting with __ and the normal name is an alias.  */
5103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5104 choke me
5105 #else
5106 $ac_func();
5107 #endif
5108
5109 ; return 0; }
5110 EOF
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112   rm -rf conftest*
5113   eval "ac_cv_func_$ac_func=yes"
5114 else
5115   echo "configure: failed program was:" >&5
5116   cat conftest.$ac_ext >&5
5117   rm -rf conftest*
5118   eval "ac_cv_func_$ac_func=no"
5119 fi
5120 rm -f conftest*
5121 fi
5122
5123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5124   echo "$ac_t""yes" 1>&6
5125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5126   cat >> confdefs.h <<EOF
5127 #define $ac_tr_func 1
5128 EOF
5129  \
5130     ac_XPG2funcs=yes
5131 else
5132   echo "$ac_t""no" 1>&6
5133 ac_XPG2funcs=no
5134 fi
5135 done
5136
5137
5138     LIBS="$ac_save_LIBS"
5139
5140     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5141 echo "configure:5142: checking for XPG2 wchar_t support" >&5
5142     if test x"$ac_has_iconv_h" = xyes &&
5143        test x"$ac_has_langinfo_h" = xyes &&
5144        test x"$ac_XPG2funcs" = xyes; then
5145       ac_XPG2_wchar_t=yes
5146     else
5147       ac_XPG2_wchar_t=no
5148     fi
5149     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5150
5151             if test x"$ac_isoC99_wchar_t" = xyes && 
5152         test x"$ac_XPG2_wchar_t" = xyes; then
5153       cat >> confdefs.h <<\EOF
5154 #define _GLIBCPP_USE_WCHAR_T 1
5155 EOF
5156
5157       enable_wchar_t=yes
5158     fi
5159   fi
5160   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5161 echo "configure:5162: checking for enabled wchar_t specializations" >&5
5162   echo "$ac_t""$enable_wchar_t" 1>&6    
5163
5164       cat >> confdefs.h <<\EOF
5165 #define HAVE_LC_MESSAGES 1
5166 EOF
5167
5168       cat >> confdefs.h <<\EOF
5169 #define HAVE_DRAND48 1
5170 EOF
5171
5172       cat >> confdefs.h <<\EOF
5173 #define HAVE_GETPAGESIZE 1
5174 EOF
5175
5176       cat >> confdefs.h <<\EOF
5177 #define HAVE_SETENV 1
5178 EOF
5179
5180       cat >> confdefs.h <<\EOF
5181 #define HAVE_SIGSETJMP 1
5182 EOF
5183
5184       cat >> confdefs.h <<\EOF
5185 #define HAVE_COPYSIGN 1
5186 EOF
5187
5188       cat >> confdefs.h <<\EOF
5189 #define HAVE_COPYSIGNF 1
5190 EOF
5191
5192       cat >> confdefs.h <<\EOF
5193 #define HAVE_FINITEF 1
5194 EOF
5195
5196       cat >> confdefs.h <<\EOF
5197 #define HAVE_FINITE 1
5198 EOF
5199
5200       cat >> confdefs.h <<\EOF
5201 #define HAVE_FREXPF 1
5202 EOF
5203
5204       cat >> confdefs.h <<\EOF
5205 #define HAVE_HYPOT 1
5206 EOF
5207
5208       cat >> confdefs.h <<\EOF
5209 #define HAVE_HYPOTF 1
5210 EOF
5211
5212       cat >> confdefs.h <<\EOF
5213 #define HAVE_ISINF 1
5214 EOF
5215
5216       cat >> confdefs.h <<\EOF
5217 #define HAVE_ISNAN 1
5218 EOF
5219
5220       cat >> confdefs.h <<\EOF
5221 #define HAVE_ISNANF 1
5222 EOF
5223
5224
5225       cat >> confdefs.h <<\EOF
5226 #define HAVE_MMAP 1
5227 EOF
5228
5229       cat >> confdefs.h <<\EOF
5230 #define HAVE_ACOSF 1
5231 EOF
5232
5233       cat >> confdefs.h <<\EOF
5234 #define HAVE_ASINF 1
5235 EOF
5236
5237       cat >> confdefs.h <<\EOF
5238 #define HAVE_ATAN2F 1
5239 EOF
5240
5241       cat >> confdefs.h <<\EOF
5242 #define HAVE_ATANF 1
5243 EOF
5244
5245       cat >> confdefs.h <<\EOF
5246 #define HAVE_CEILF 1
5247 EOF
5248
5249       cat >> confdefs.h <<\EOF
5250 #define HAVE_COPYSIGN 1
5251 EOF
5252
5253       cat >> confdefs.h <<\EOF
5254 #define HAVE_COPYSIGNF 1
5255 EOF
5256
5257       cat >> confdefs.h <<\EOF
5258 #define HAVE_COSF 1
5259 EOF
5260
5261       cat >> confdefs.h <<\EOF
5262 #define HAVE_COSHF 1
5263 EOF
5264
5265       cat >> confdefs.h <<\EOF
5266 #define HAVE_EXPF 1
5267 EOF
5268
5269       cat >> confdefs.h <<\EOF
5270 #define HAVE_FABSF 1
5271 EOF
5272
5273       cat >> confdefs.h <<\EOF
5274 #define HAVE_FLOORF 1
5275 EOF
5276
5277       cat >> confdefs.h <<\EOF
5278 #define HAVE_FMODF 1
5279 EOF
5280
5281       cat >> confdefs.h <<\EOF
5282 #define HAVE_FREXPF 1
5283 EOF
5284
5285       cat >> confdefs.h <<\EOF
5286 #define HAVE_LDEXPF 1
5287 EOF
5288
5289       cat >> confdefs.h <<\EOF
5290 #define HAVE_LOG10F 1
5291 EOF
5292
5293       cat >> confdefs.h <<\EOF
5294 #define HAVE_LOGF 1
5295 EOF
5296
5297       cat >> confdefs.h <<\EOF
5298 #define HAVE_MODFF 1
5299 EOF
5300
5301       cat >> confdefs.h <<\EOF
5302 #define HAVE_POWF 1
5303 EOF
5304
5305       cat >> confdefs.h <<\EOF
5306 #define HAVE_SINF 1
5307 EOF
5308
5309       cat >> confdefs.h <<\EOF
5310 #define HAVE_SINHF 1
5311 EOF
5312
5313       cat >> confdefs.h <<\EOF
5314 #define HAVE_SQRTF 1
5315 EOF
5316
5317       cat >> confdefs.h <<\EOF
5318 #define HAVE_TANF 1
5319 EOF
5320
5321       cat >> confdefs.h <<\EOF
5322 #define HAVE_TANHF 1
5323 EOF
5324
5325       if test x"long_double_math_on_this_cpu" = x"yes"; then
5326         cat >> confdefs.h <<\EOF
5327 #define HAVE_FINITEL 1
5328 EOF
5329
5330         cat >> confdefs.h <<\EOF
5331 #define HAVE_ISINFL 1
5332 EOF
5333
5334         cat >> confdefs.h <<\EOF
5335 #define HAVE_ISNANL 1
5336 EOF
5337
5338       fi
5339       ;;
5340     *-hpux*)
5341       os_include_dir="os/hpux"
5342       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5343         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5344         fp.h locale.h float.h inttypes.h
5345 do
5346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5348 echo "configure:5349: checking for $ac_hdr" >&5
5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5350   echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352   cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 #include <$ac_hdr>
5356 EOF
5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5360 if test -z "$ac_err"; then
5361   rm -rf conftest*
5362   eval "ac_cv_header_$ac_safe=yes"
5363 else
5364   echo "$ac_err" >&5
5365   echo "configure: failed program was:" >&5
5366   cat conftest.$ac_ext >&5
5367   rm -rf conftest*
5368   eval "ac_cv_header_$ac_safe=no"
5369 fi
5370 rm -f conftest*
5371 fi
5372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5373   echo "$ac_t""yes" 1>&6
5374     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5375   cat >> confdefs.h <<EOF
5376 #define $ac_tr_hdr 1
5377 EOF
5378  
5379 else
5380   echo "$ac_t""no" 1>&6
5381 fi
5382 done
5383
5384       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5385       
5386       
5387   # If we're not using GNU ld, then there's no point in even trying these
5388   # tests.  Check for that first.  We should have already tested for gld
5389   # by now (in libtool), but require it now just to be safe...
5390   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5391   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5392   
5393
5394   # The name set by libtool depends on the version of libtool.  Shame on us
5395   # for depending on an impl detail, but c'est la vie.  Older versions used
5396   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5397   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5398   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5399   # set (hence we're using an older libtool), then set it.
5400   if test x${with_gnu_ld+set} != xset; then
5401     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5402       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5403       with_gnu_ld=no
5404     else
5405       with_gnu_ld=$ac_cv_prog_gnu_ld
5406     fi
5407   fi
5408
5409   # Start by getting the version number.  I think the libtool test already
5410   # does some of this, but throws away the result.
5411   
5412   ldver=`$LD --version 2>/dev/null | head -1 | \
5413          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5414   
5415   glibcpp_gnu_ld_version=`echo $ldver | \
5416          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5417
5418   # Set --gc-sections.
5419   if test "$with_gnu_ld" = "notbroken"; then
5420     # GNU ld it is!  Joy and bunny rabbits!
5421
5422     # All these tests are for C++; save the language and the compiler flags.
5423     # Need to do this so that g++ won't try to link in libstdc++
5424     ac_test_CFLAGS="${CFLAGS+set}"
5425     ac_save_CFLAGS="$CFLAGS"
5426     CFLAGS='-x c++  -Wl,--gc-sections'
5427
5428     # Check for -Wl,--gc-sections
5429     # XXX This test is broken at the moment, as symbols required for
5430     # linking are now in libsupc++ (not built yet.....). In addition,
5431     # this test has cored on solaris in the past. In addition,
5432     # --gc-sections doesn't really work at the moment (keeps on discarding
5433     # used sections, first .eh_frame and now some of the glibc sections for
5434     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5435     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5436 echo "configure:5437: checking for ld that supports -Wl,--gc-sections" >&5
5437     if test "$cross_compiling" = yes; then
5438   ac_sectionLDflags=yes
5439 else
5440   cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443
5444      int main(void)
5445      {
5446        try { throw 1; }
5447        catch (...) { };
5448        return 0;
5449      }
5450     
5451 EOF
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5453 then
5454   ac_sectionLDflags=yes
5455 else
5456   echo "configure: failed program was:" >&5
5457   cat conftest.$ac_ext >&5
5458   rm -fr conftest*
5459   ac_sectionLDflags=no
5460 fi
5461 rm -fr conftest*
5462 fi
5463
5464     if test "$ac_test_CFLAGS" = set; then
5465       CFLAGS="$ac_save_CFLAGS"
5466     else
5467       # this is the suspicious part
5468       CFLAGS=''
5469     fi
5470     if test "$ac_sectionLDflags" = "yes"; then
5471       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5472     fi
5473     echo "$ac_t""$ac_sectionLDflags" 1>&6
5474   fi
5475
5476   # Set linker optimization flags.
5477   if test x"$with_gnu_ld" = x"yes"; then
5478     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5479   fi
5480
5481   
5482   
5483
5484       
5485         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5486 echo "configure:5487: checking for main in -lm" >&5
5487 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5489   echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491   ac_save_LIBS="$LIBS"
5492 LIBS="-lm  $LIBS"
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496
5497 int main() {
5498 main()
5499 ; return 0; }
5500 EOF
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502   rm -rf conftest*
5503   eval "ac_cv_lib_$ac_lib_var=yes"
5504 else
5505   echo "configure: failed program was:" >&5
5506   cat conftest.$ac_ext >&5
5507   rm -rf conftest*
5508   eval "ac_cv_lib_$ac_lib_var=no"
5509 fi
5510 rm -f conftest*
5511 LIBS="$ac_save_LIBS"
5512
5513 fi
5514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5515   echo "$ac_t""yes" 1>&6
5516     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5517     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5518   cat >> confdefs.h <<EOF
5519 #define $ac_tr_lib 1
5520 EOF
5521
5522   LIBS="-lm $LIBS"
5523
5524 else
5525   echo "$ac_t""no" 1>&6
5526 fi
5527
5528   for ac_func in nan copysignf
5529 do
5530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5531 echo "configure:5532: checking for $ac_func" >&5
5532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5533   echo $ac_n "(cached) $ac_c" 1>&6
5534 else
5535   cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5538 /* System header to define __stub macros and hopefully few prototypes,
5539     which can conflict with char $ac_func(); below.  */
5540 #include <assert.h>
5541 /* Override any gcc2 internal prototype to avoid an error.  */
5542 /* We use char because int might match the return type of a gcc2
5543     builtin and then its argument prototype would still apply.  */
5544 char $ac_func();
5545
5546 int main() {
5547
5548 /* The GNU C library defines this for functions which it implements
5549     to always fail with ENOSYS.  Some functions are actually named
5550     something starting with __ and the normal name is an alias.  */
5551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5552 choke me
5553 #else
5554 $ac_func();
5555 #endif
5556
5557 ; return 0; }
5558 EOF
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5560   rm -rf conftest*
5561   eval "ac_cv_func_$ac_func=yes"
5562 else
5563   echo "configure: failed program was:" >&5
5564   cat conftest.$ac_ext >&5
5565   rm -rf conftest*
5566   eval "ac_cv_func_$ac_func=no"
5567 fi
5568 rm -f conftest*
5569 fi
5570
5571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5572   echo "$ac_t""yes" 1>&6
5573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5574   cat >> confdefs.h <<EOF
5575 #define $ac_tr_func 1
5576 EOF
5577  
5578 else
5579   echo "$ac_t""no" 1>&6
5580 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5581 fi
5582 done
5583
5584
5585     for ac_func in __signbit
5586 do
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590   echo $ac_n "(cached) $ac_c" 1>&6
5591 else
5592   cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596     which can conflict with char $ac_func(); below.  */
5597 #include <assert.h>
5598 /* Override any gcc2 internal prototype to avoid an error.  */
5599 /* We use char because int might match the return type of a gcc2
5600     builtin and then its argument prototype would still apply.  */
5601 char $ac_func();
5602
5603 int main() {
5604
5605 /* The GNU C library defines this for functions which it implements
5606     to always fail with ENOSYS.  Some functions are actually named
5607     something starting with __ and the normal name is an alias.  */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5609 choke me
5610 #else
5611 $ac_func();
5612 #endif
5613
5614 ; return 0; }
5615 EOF
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617   rm -rf conftest*
5618   eval "ac_cv_func_$ac_func=yes"
5619 else
5620   echo "configure: failed program was:" >&5
5621   cat conftest.$ac_ext >&5
5622   rm -rf conftest*
5623   eval "ac_cv_func_$ac_func=no"
5624 fi
5625 rm -f conftest*
5626 fi
5627
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629   echo "$ac_t""yes" 1>&6
5630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631   cat >> confdefs.h <<EOF
5632 #define $ac_tr_func 1
5633 EOF
5634  
5635 else
5636   echo "$ac_t""no" 1>&6
5637 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5638 fi
5639 done
5640
5641   for ac_func in __signbitf
5642 do
5643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_func" >&5
5645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5646   echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648   cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* System header to define __stub macros and hopefully few prototypes,
5652     which can conflict with char $ac_func(); below.  */
5653 #include <assert.h>
5654 /* Override any gcc2 internal prototype to avoid an error.  */
5655 /* We use char because int might match the return type of a gcc2
5656     builtin and then its argument prototype would still apply.  */
5657 char $ac_func();
5658
5659 int main() {
5660
5661 /* The GNU C library defines this for functions which it implements
5662     to always fail with ENOSYS.  Some functions are actually named
5663     something starting with __ and the normal name is an alias.  */
5664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 choke me
5666 #else
5667 $ac_func();
5668 #endif
5669
5670 ; return 0; }
5671 EOF
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673   rm -rf conftest*
5674   eval "ac_cv_func_$ac_func=yes"
5675 else
5676   echo "configure: failed program was:" >&5
5677   cat conftest.$ac_ext >&5
5678   rm -rf conftest*
5679   eval "ac_cv_func_$ac_func=no"
5680 fi
5681 rm -f conftest*
5682 fi
5683
5684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5685   echo "$ac_t""yes" 1>&6
5686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5687   cat >> confdefs.h <<EOF
5688 #define $ac_tr_func 1
5689 EOF
5690  
5691 else
5692   echo "$ac_t""no" 1>&6
5693 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5694 fi
5695 done
5696
5697
5698           if test x$ac_cv_func_copysignl = x"yes"; then
5699     for ac_func in __signbitl
5700 do
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704   echo $ac_n "(cached) $ac_c" 1>&6
5705 else
5706   cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710     which can conflict with char $ac_func(); below.  */
5711 #include <assert.h>
5712 /* Override any gcc2 internal prototype to avoid an error.  */
5713 /* We use char because int might match the return type of a gcc2
5714     builtin and then its argument prototype would still apply.  */
5715 char $ac_func();
5716
5717 int main() {
5718
5719 /* The GNU C library defines this for functions which it implements
5720     to always fail with ENOSYS.  Some functions are actually named
5721     something starting with __ and the normal name is an alias.  */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5723 choke me
5724 #else
5725 $ac_func();
5726 #endif
5727
5728 ; return 0; }
5729 EOF
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731   rm -rf conftest*
5732   eval "ac_cv_func_$ac_func=yes"
5733 else
5734   echo "configure: failed program was:" >&5
5735   cat conftest.$ac_ext >&5
5736   rm -rf conftest*
5737   eval "ac_cv_func_$ac_func=no"
5738 fi
5739 rm -f conftest*
5740 fi
5741
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743   echo "$ac_t""yes" 1>&6
5744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745   cat >> confdefs.h <<EOF
5746 #define $ac_tr_func 1
5747 EOF
5748  
5749 else
5750   echo "$ac_t""no" 1>&6
5751 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5752 fi
5753 done
5754
5755   fi
5756
5757   if test -n "$LIBMATHOBJS"; then
5758     need_libmath=yes
5759   fi
5760   
5761
5762       
5763   
5764       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5765 echo "configure:5766: checking for mbstate_t" >&5
5766   cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 #include <wchar.h>
5770 int main() {
5771 mbstate_t teststate;
5772 ; return 0; }
5773 EOF
5774 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5775   rm -rf conftest*
5776   have_mbstate_t=yes
5777 else
5778   echo "configure: failed program was:" >&5
5779   cat conftest.$ac_ext >&5
5780   rm -rf conftest*
5781   have_mbstate_t=no
5782 fi
5783 rm -f conftest*
5784   echo "$ac_t""$have_mbstate_t" 1>&6
5785   if test x"$have_mbstate_t" = xyes; then
5786     cat >> confdefs.h <<\EOF
5787 #define HAVE_MBSTATE_T 1
5788 EOF
5789
5790   fi
5791
5792     for ac_hdr in wchar.h
5793 do
5794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5796 echo "configure:5797: checking for $ac_hdr" >&5
5797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5798   echo $ac_n "(cached) $ac_c" 1>&6
5799 else
5800   cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5803 #include <$ac_hdr>
5804 EOF
5805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5806 { (eval echo configure:5807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5808 if test -z "$ac_err"; then
5809   rm -rf conftest*
5810   eval "ac_cv_header_$ac_safe=yes"
5811 else
5812   echo "$ac_err" >&5
5813   echo "configure: failed program was:" >&5
5814   cat conftest.$ac_ext >&5
5815   rm -rf conftest*
5816   eval "ac_cv_header_$ac_safe=no"
5817 fi
5818 rm -f conftest*
5819 fi
5820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5821   echo "$ac_t""yes" 1>&6
5822     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5823   cat >> confdefs.h <<EOF
5824 #define $ac_tr_hdr 1
5825 EOF
5826  ac_has_wchar_h=yes
5827 else
5828   echo "$ac_t""no" 1>&6
5829 ac_has_wchar_h=no
5830 fi
5831 done
5832
5833   for ac_hdr in wctype.h
5834 do
5835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5837 echo "configure:5838: checking for $ac_hdr" >&5
5838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5839   echo $ac_n "(cached) $ac_c" 1>&6
5840 else
5841   cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 #include <$ac_hdr>
5845 EOF
5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5849 if test -z "$ac_err"; then
5850   rm -rf conftest*
5851   eval "ac_cv_header_$ac_safe=yes"
5852 else
5853   echo "$ac_err" >&5
5854   echo "configure: failed program was:" >&5
5855   cat conftest.$ac_ext >&5
5856   rm -rf conftest*
5857   eval "ac_cv_header_$ac_safe=no"
5858 fi
5859 rm -f conftest*
5860 fi
5861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5862   echo "$ac_t""yes" 1>&6
5863     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5864   cat >> confdefs.h <<EOF
5865 #define $ac_tr_hdr 1
5866 EOF
5867  ac_has_wctype_h=yes
5868 else
5869   echo "$ac_t""no" 1>&6
5870 ac_has_wctype_h=no
5871 fi
5872 done
5873
5874
5875     if test x"$ac_has_wchar_h" = xyes &&
5876      test x"$ac_has_wctype_h" = xyes &&
5877      test x"$enable_c_mbchar" != xno; then
5878
5879             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5880 echo "configure:5881: checking for WCHAR_MIN and WCHAR_MAX" >&5
5881     cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <wchar.h>
5885 int main() {
5886 int i = WCHAR_MIN; int j = WCHAR_MAX;
5887 ; return 0; }
5888 EOF
5889 if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5890   rm -rf conftest*
5891   has_wchar_minmax=yes
5892 else
5893   echo "configure: failed program was:" >&5
5894   cat conftest.$ac_ext >&5
5895   rm -rf conftest*
5896   has_wchar_minmax=no
5897 fi
5898 rm -f conftest*
5899     echo "$ac_t""$has_wchar_minmax" 1>&6
5900
5901             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5902 echo "configure:5903: checking for WEOF" >&5
5903     cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906
5907       #include <wchar.h>
5908       #include <stddef.h>
5909 int main() {
5910 wint_t i = WEOF;
5911 ; return 0; }
5912 EOF
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914   rm -rf conftest*
5915   has_weof=yes
5916 else
5917   echo "configure: failed program was:" >&5
5918   cat conftest.$ac_ext >&5
5919   rm -rf conftest*
5920   has_weof=no
5921 fi
5922 rm -f conftest*
5923     echo "$ac_t""$has_weof" 1>&6
5924
5925         ac_wfuncs=yes
5926     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5927 do
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931   echo $ac_n "(cached) $ac_c" 1>&6
5932 else
5933   cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937     which can conflict with char $ac_func(); below.  */
5938 #include <assert.h>
5939 /* Override any gcc2 internal prototype to avoid an error.  */
5940 /* We use char because int might match the return type of a gcc2
5941     builtin and then its argument prototype would still apply.  */
5942 char $ac_func();
5943
5944 int main() {
5945
5946 /* The GNU C library defines this for functions which it implements
5947     to always fail with ENOSYS.  Some functions are actually named
5948     something starting with __ and the normal name is an alias.  */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 choke me
5951 #else
5952 $ac_func();
5953 #endif
5954
5955 ; return 0; }
5956 EOF
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958   rm -rf conftest*
5959   eval "ac_cv_func_$ac_func=yes"
5960 else
5961   echo "configure: failed program was:" >&5
5962   cat conftest.$ac_ext >&5
5963   rm -rf conftest*
5964   eval "ac_cv_func_$ac_func=no"
5965 fi
5966 rm -f conftest*
5967 fi
5968
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970   echo "$ac_t""yes" 1>&6
5971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972   cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5974 EOF
5975  
5976 else
5977   echo "$ac_t""no" 1>&6
5978 \
5979     ac_wfuncs=no
5980 fi
5981 done
5982
5983
5984         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5985     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5986     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5987     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5988     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5989     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5990 do
5991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_func" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5994   echo $ac_n "(cached) $ac_c" 1>&6
5995 else
5996   cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000     which can conflict with char $ac_func(); below.  */
6001 #include <assert.h>
6002 /* Override any gcc2 internal prototype to avoid an error.  */
6003 /* We use char because int might match the return type of a gcc2
6004     builtin and then its argument prototype would still apply.  */
6005 char $ac_func();
6006
6007 int main() {
6008
6009 /* The GNU C library defines this for functions which it implements
6010     to always fail with ENOSYS.  Some functions are actually named
6011     something starting with __ and the normal name is an alias.  */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6013 choke me
6014 #else
6015 $ac_func();
6016 #endif
6017
6018 ; return 0; }
6019 EOF
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021   rm -rf conftest*
6022   eval "ac_cv_func_$ac_func=yes"
6023 else
6024   echo "configure: failed program was:" >&5
6025   cat conftest.$ac_ext >&5
6026   rm -rf conftest*
6027   eval "ac_cv_func_$ac_func=no"
6028 fi
6029 rm -f conftest*
6030 fi
6031
6032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6033   echo "$ac_t""yes" 1>&6
6034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6035   cat >> confdefs.h <<EOF
6036 #define $ac_tr_func 1
6037 EOF
6038  
6039 else
6040   echo "$ac_t""no" 1>&6
6041 \
6042     ac_wfuncs=no
6043 fi
6044 done
6045
6046
6047     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6048 echo "configure:6049: checking for ISO C99 wchar_t support" >&5
6049     if test x"$has_weof" = xyes &&
6050        test x"$has_wchar_minmax" = xyes &&
6051        test x"$ac_wfuncs" = xyes; then
6052       ac_isoC99_wchar_t=yes
6053     else
6054       ac_isoC99_wchar_t=no
6055     fi
6056     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6057
6058             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6059 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6060 echo "configure:6061: checking for iconv.h" >&5
6061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6062   echo $ac_n "(cached) $ac_c" 1>&6
6063 else
6064   cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 #include <iconv.h>
6068 EOF
6069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6070 { (eval echo configure:6071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6072 if test -z "$ac_err"; then
6073   rm -rf conftest*
6074   eval "ac_cv_header_$ac_safe=yes"
6075 else
6076   echo "$ac_err" >&5
6077   echo "configure: failed program was:" >&5
6078   cat conftest.$ac_ext >&5
6079   rm -rf conftest*
6080   eval "ac_cv_header_$ac_safe=no"
6081 fi
6082 rm -f conftest*
6083 fi
6084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6085   echo "$ac_t""yes" 1>&6
6086   ac_has_iconv_h=yes
6087 else
6088   echo "$ac_t""no" 1>&6
6089 ac_has_iconv_h=no
6090 fi
6091
6092     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6093 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6094 echo "configure:6095: checking for langinfo.h" >&5
6095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6096   echo $ac_n "(cached) $ac_c" 1>&6
6097 else
6098   cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 #include <langinfo.h>
6102 EOF
6103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6104 { (eval echo configure:6105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6106 if test -z "$ac_err"; then
6107   rm -rf conftest*
6108   eval "ac_cv_header_$ac_safe=yes"
6109 else
6110   echo "$ac_err" >&5
6111   echo "configure: failed program was:" >&5
6112   cat conftest.$ac_ext >&5
6113   rm -rf conftest*
6114   eval "ac_cv_header_$ac_safe=no"
6115 fi
6116 rm -f conftest*
6117 fi
6118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6119   echo "$ac_t""yes" 1>&6
6120   ac_has_langinfo_h=yes
6121 else
6122   echo "$ac_t""no" 1>&6
6123 ac_has_langinfo_h=no
6124 fi
6125
6126
6127         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6128 echo "configure:6129: checking for iconv in -liconv" >&5
6129 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6131   echo $ac_n "(cached) $ac_c" 1>&6
6132 else
6133   ac_save_LIBS="$LIBS"
6134 LIBS="-liconv  $LIBS"
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 /* Override any gcc2 internal prototype to avoid an error.  */
6139 /* We use char because int might match the return type of a gcc2
6140     builtin and then its argument prototype would still apply.  */
6141 char iconv();
6142
6143 int main() {
6144 iconv()
6145 ; return 0; }
6146 EOF
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148   rm -rf conftest*
6149   eval "ac_cv_lib_$ac_lib_var=yes"
6150 else
6151   echo "configure: failed program was:" >&5
6152   cat conftest.$ac_ext >&5
6153   rm -rf conftest*
6154   eval "ac_cv_lib_$ac_lib_var=no"
6155 fi
6156 rm -f conftest*
6157 LIBS="$ac_save_LIBS"
6158
6159 fi
6160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6161   echo "$ac_t""yes" 1>&6
6162   libiconv="-liconv"
6163 else
6164   echo "$ac_t""no" 1>&6
6165 fi
6166
6167     ac_save_LIBS="$LIBS"
6168     LIBS="$LIBS $libiconv"
6169
6170     for ac_func in iconv_open iconv_close iconv nl_langinfo
6171 do
6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_func" >&5
6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6175   echo $ac_n "(cached) $ac_c" 1>&6
6176 else
6177   cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 /* System header to define __stub macros and hopefully few prototypes,
6181     which can conflict with char $ac_func(); below.  */
6182 #include <assert.h>
6183 /* Override any gcc2 internal prototype to avoid an error.  */
6184 /* We use char because int might match the return type of a gcc2
6185     builtin and then its argument prototype would still apply.  */
6186 char $ac_func();
6187
6188 int main() {
6189
6190 /* The GNU C library defines this for functions which it implements
6191     to always fail with ENOSYS.  Some functions are actually named
6192     something starting with __ and the normal name is an alias.  */
6193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 choke me
6195 #else
6196 $ac_func();
6197 #endif
6198
6199 ; return 0; }
6200 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202   rm -rf conftest*
6203   eval "ac_cv_func_$ac_func=yes"
6204 else
6205   echo "configure: failed program was:" >&5
6206   cat conftest.$ac_ext >&5
6207   rm -rf conftest*
6208   eval "ac_cv_func_$ac_func=no"
6209 fi
6210 rm -f conftest*
6211 fi
6212
6213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6214   echo "$ac_t""yes" 1>&6
6215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6216   cat >> confdefs.h <<EOF
6217 #define $ac_tr_func 1
6218 EOF
6219  \
6220     ac_XPG2funcs=yes
6221 else
6222   echo "$ac_t""no" 1>&6
6223 ac_XPG2funcs=no
6224 fi
6225 done
6226
6227
6228     LIBS="$ac_save_LIBS"
6229
6230     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6231 echo "configure:6232: checking for XPG2 wchar_t support" >&5
6232     if test x"$ac_has_iconv_h" = xyes &&
6233        test x"$ac_has_langinfo_h" = xyes &&
6234        test x"$ac_XPG2funcs" = xyes; then
6235       ac_XPG2_wchar_t=yes
6236     else
6237       ac_XPG2_wchar_t=no
6238     fi
6239     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6240
6241             if test x"$ac_isoC99_wchar_t" = xyes && 
6242         test x"$ac_XPG2_wchar_t" = xyes; then
6243       cat >> confdefs.h <<\EOF
6244 #define _GLIBCPP_USE_WCHAR_T 1
6245 EOF
6246
6247       enable_wchar_t=yes
6248     fi
6249   fi
6250   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6251 echo "configure:6252: checking for enabled wchar_t specializations" >&5
6252   echo "$ac_t""$enable_wchar_t" 1>&6    
6253
6254       cat >> confdefs.h <<\EOF
6255 #define HAVE_COPYSIGN 1
6256 EOF
6257
6258       cat >> confdefs.h <<\EOF
6259 #define HAVE_COPYSIGNF 1
6260 EOF
6261
6262       cat >> confdefs.h <<\EOF
6263 #define HAVE_FREXPF 1
6264 EOF
6265
6266       cat >> confdefs.h <<\EOF
6267 #define HAVE_HYPOT 1
6268 EOF
6269
6270       case "$target" in
6271         *-hpux10*)
6272           cat >> confdefs.h <<\EOF
6273 #define HAVE_FINITE 1
6274 EOF
6275
6276           cat >> confdefs.h <<\EOF
6277 #define HAVE_FINITEF 1
6278 EOF
6279
6280           cat >> confdefs.h <<\EOF
6281 #define HAVE_ISINF 1
6282 EOF
6283
6284           cat >> confdefs.h <<\EOF
6285 #define HAVE_ISINFF 1
6286 EOF
6287
6288           cat >> confdefs.h <<\EOF
6289 #define HAVE_ISNAN 1
6290 EOF
6291
6292           cat >> confdefs.h <<\EOF
6293 #define HAVE_ISNANF 1
6294 EOF
6295
6296           ;;
6297       esac
6298       ;;
6299     *-linux*)
6300       os_include_dir="os/gnu-linux"
6301       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6302         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6303         fp.h locale.h float.h inttypes.h
6304 do
6305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_hdr" >&5
6308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6309   echo $ac_n "(cached) $ac_c" 1>&6
6310 else
6311   cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 #include <$ac_hdr>
6315 EOF
6316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6317 { (eval echo configure:6318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6319 if test -z "$ac_err"; then
6320   rm -rf conftest*
6321   eval "ac_cv_header_$ac_safe=yes"
6322 else
6323   echo "$ac_err" >&5
6324   echo "configure: failed program was:" >&5
6325   cat conftest.$ac_ext >&5
6326   rm -rf conftest*
6327   eval "ac_cv_header_$ac_safe=no"
6328 fi
6329 rm -f conftest*
6330 fi
6331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6332   echo "$ac_t""yes" 1>&6
6333     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6334   cat >> confdefs.h <<EOF
6335 #define $ac_tr_hdr 1
6336 EOF
6337  
6338 else
6339   echo "$ac_t""no" 1>&6
6340 fi
6341 done
6342
6343       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6344       
6345       
6346   # If we're not using GNU ld, then there's no point in even trying these
6347   # tests.  Check for that first.  We should have already tested for gld
6348   # by now (in libtool), but require it now just to be safe...
6349   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6350   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6351   
6352
6353   # The name set by libtool depends on the version of libtool.  Shame on us
6354   # for depending on an impl detail, but c'est la vie.  Older versions used
6355   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6356   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6357   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6358   # set (hence we're using an older libtool), then set it.
6359   if test x${with_gnu_ld+set} != xset; then
6360     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6361       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6362       with_gnu_ld=no
6363     else
6364       with_gnu_ld=$ac_cv_prog_gnu_ld
6365     fi
6366   fi
6367
6368   # Start by getting the version number.  I think the libtool test already
6369   # does some of this, but throws away the result.
6370   
6371   ldver=`$LD --version 2>/dev/null | head -1 | \
6372          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6373   
6374   glibcpp_gnu_ld_version=`echo $ldver | \
6375          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6376
6377   # Set --gc-sections.
6378   if test "$with_gnu_ld" = "notbroken"; then
6379     # GNU ld it is!  Joy and bunny rabbits!
6380
6381     # All these tests are for C++; save the language and the compiler flags.
6382     # Need to do this so that g++ won't try to link in libstdc++
6383     ac_test_CFLAGS="${CFLAGS+set}"
6384     ac_save_CFLAGS="$CFLAGS"
6385     CFLAGS='-x c++  -Wl,--gc-sections'
6386
6387     # Check for -Wl,--gc-sections
6388     # XXX This test is broken at the moment, as symbols required for
6389     # linking are now in libsupc++ (not built yet.....). In addition,
6390     # this test has cored on solaris in the past. In addition,
6391     # --gc-sections doesn't really work at the moment (keeps on discarding
6392     # used sections, first .eh_frame and now some of the glibc sections for
6393     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6394     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6395 echo "configure:6396: checking for ld that supports -Wl,--gc-sections" >&5
6396     if test "$cross_compiling" = yes; then
6397   ac_sectionLDflags=yes
6398 else
6399   cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402
6403      int main(void)
6404      {
6405        try { throw 1; }
6406        catch (...) { };
6407        return 0;
6408      }
6409     
6410 EOF
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6412 then
6413   ac_sectionLDflags=yes
6414 else
6415   echo "configure: failed program was:" >&5
6416   cat conftest.$ac_ext >&5
6417   rm -fr conftest*
6418   ac_sectionLDflags=no
6419 fi
6420 rm -fr conftest*
6421 fi
6422
6423     if test "$ac_test_CFLAGS" = set; then
6424       CFLAGS="$ac_save_CFLAGS"
6425     else
6426       # this is the suspicious part
6427       CFLAGS=''
6428     fi
6429     if test "$ac_sectionLDflags" = "yes"; then
6430       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6431     fi
6432     echo "$ac_t""$ac_sectionLDflags" 1>&6
6433   fi
6434
6435   # Set linker optimization flags.
6436   if test x"$with_gnu_ld" = x"yes"; then
6437     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6438   fi
6439
6440   
6441   
6442
6443       
6444         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6445 echo "configure:6446: checking for main in -lm" >&5
6446 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6448   echo $ac_n "(cached) $ac_c" 1>&6
6449 else
6450   ac_save_LIBS="$LIBS"
6451 LIBS="-lm  $LIBS"
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455
6456 int main() {
6457 main()
6458 ; return 0; }
6459 EOF
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6461   rm -rf conftest*
6462   eval "ac_cv_lib_$ac_lib_var=yes"
6463 else
6464   echo "configure: failed program was:" >&5
6465   cat conftest.$ac_ext >&5
6466   rm -rf conftest*
6467   eval "ac_cv_lib_$ac_lib_var=no"
6468 fi
6469 rm -f conftest*
6470 LIBS="$ac_save_LIBS"
6471
6472 fi
6473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6474   echo "$ac_t""yes" 1>&6
6475     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6476     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6477   cat >> confdefs.h <<EOF
6478 #define $ac_tr_lib 1
6479 EOF
6480
6481   LIBS="-lm $LIBS"
6482
6483 else
6484   echo "$ac_t""no" 1>&6
6485 fi
6486
6487   for ac_func in nan copysignf
6488 do
6489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6490 echo "configure:6491: checking for $ac_func" >&5
6491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6492   echo $ac_n "(cached) $ac_c" 1>&6
6493 else
6494   cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* System header to define __stub macros and hopefully few prototypes,
6498     which can conflict with char $ac_func(); below.  */
6499 #include <assert.h>
6500 /* Override any gcc2 internal prototype to avoid an error.  */
6501 /* We use char because int might match the return type of a gcc2
6502     builtin and then its argument prototype would still apply.  */
6503 char $ac_func();
6504
6505 int main() {
6506
6507 /* The GNU C library defines this for functions which it implements
6508     to always fail with ENOSYS.  Some functions are actually named
6509     something starting with __ and the normal name is an alias.  */
6510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6511 choke me
6512 #else
6513 $ac_func();
6514 #endif
6515
6516 ; return 0; }
6517 EOF
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519   rm -rf conftest*
6520   eval "ac_cv_func_$ac_func=yes"
6521 else
6522   echo "configure: failed program was:" >&5
6523   cat conftest.$ac_ext >&5
6524   rm -rf conftest*
6525   eval "ac_cv_func_$ac_func=no"
6526 fi
6527 rm -f conftest*
6528 fi
6529
6530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6531   echo "$ac_t""yes" 1>&6
6532     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6533   cat >> confdefs.h <<EOF
6534 #define $ac_tr_func 1
6535 EOF
6536  
6537 else
6538   echo "$ac_t""no" 1>&6
6539 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6540 fi
6541 done
6542
6543
6544     for ac_func in __signbit
6545 do
6546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_func" >&5
6548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6549   echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551   cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555     which can conflict with char $ac_func(); below.  */
6556 #include <assert.h>
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 /* We use char because int might match the return type of a gcc2
6559     builtin and then its argument prototype would still apply.  */
6560 char $ac_func();
6561
6562 int main() {
6563
6564 /* The GNU C library defines this for functions which it implements
6565     to always fail with ENOSYS.  Some functions are actually named
6566     something starting with __ and the normal name is an alias.  */
6567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6568 choke me
6569 #else
6570 $ac_func();
6571 #endif
6572
6573 ; return 0; }
6574 EOF
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576   rm -rf conftest*
6577   eval "ac_cv_func_$ac_func=yes"
6578 else
6579   echo "configure: failed program was:" >&5
6580   cat conftest.$ac_ext >&5
6581   rm -rf conftest*
6582   eval "ac_cv_func_$ac_func=no"
6583 fi
6584 rm -f conftest*
6585 fi
6586
6587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6588   echo "$ac_t""yes" 1>&6
6589     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6590   cat >> confdefs.h <<EOF
6591 #define $ac_tr_func 1
6592 EOF
6593  
6594 else
6595   echo "$ac_t""no" 1>&6
6596 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6597 fi
6598 done
6599
6600   for ac_func in __signbitf
6601 do
6602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6603 echo "configure:6604: checking for $ac_func" >&5
6604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6605   echo $ac_n "(cached) $ac_c" 1>&6
6606 else
6607   cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6610 /* System header to define __stub macros and hopefully few prototypes,
6611     which can conflict with char $ac_func(); below.  */
6612 #include <assert.h>
6613 /* Override any gcc2 internal prototype to avoid an error.  */
6614 /* We use char because int might match the return type of a gcc2
6615     builtin and then its argument prototype would still apply.  */
6616 char $ac_func();
6617
6618 int main() {
6619
6620 /* The GNU C library defines this for functions which it implements
6621     to always fail with ENOSYS.  Some functions are actually named
6622     something starting with __ and the normal name is an alias.  */
6623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6624 choke me
6625 #else
6626 $ac_func();
6627 #endif
6628
6629 ; return 0; }
6630 EOF
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6632   rm -rf conftest*
6633   eval "ac_cv_func_$ac_func=yes"
6634 else
6635   echo "configure: failed program was:" >&5
6636   cat conftest.$ac_ext >&5
6637   rm -rf conftest*
6638   eval "ac_cv_func_$ac_func=no"
6639 fi
6640 rm -f conftest*
6641 fi
6642
6643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6644   echo "$ac_t""yes" 1>&6
6645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6646   cat >> confdefs.h <<EOF
6647 #define $ac_tr_func 1
6648 EOF
6649  
6650 else
6651   echo "$ac_t""no" 1>&6
6652 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6653 fi
6654 done
6655
6656
6657           if test x$ac_cv_func_copysignl = x"yes"; then
6658     for ac_func in __signbitl
6659 do
6660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6661 echo "configure:6662: checking for $ac_func" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6663   echo $ac_n "(cached) $ac_c" 1>&6
6664 else
6665   cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669     which can conflict with char $ac_func(); below.  */
6670 #include <assert.h>
6671 /* Override any gcc2 internal prototype to avoid an error.  */
6672 /* We use char because int might match the return type of a gcc2
6673     builtin and then its argument prototype would still apply.  */
6674 char $ac_func();
6675
6676 int main() {
6677
6678 /* The GNU C library defines this for functions which it implements
6679     to always fail with ENOSYS.  Some functions are actually named
6680     something starting with __ and the normal name is an alias.  */
6681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6682 choke me
6683 #else
6684 $ac_func();
6685 #endif
6686
6687 ; return 0; }
6688 EOF
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690   rm -rf conftest*
6691   eval "ac_cv_func_$ac_func=yes"
6692 else
6693   echo "configure: failed program was:" >&5
6694   cat conftest.$ac_ext >&5
6695   rm -rf conftest*
6696   eval "ac_cv_func_$ac_func=no"
6697 fi
6698 rm -f conftest*
6699 fi
6700
6701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6702   echo "$ac_t""yes" 1>&6
6703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6704   cat >> confdefs.h <<EOF
6705 #define $ac_tr_func 1
6706 EOF
6707  
6708 else
6709   echo "$ac_t""no" 1>&6
6710 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6711 fi
6712 done
6713
6714   fi
6715
6716   if test -n "$LIBMATHOBJS"; then
6717     need_libmath=yes
6718   fi
6719   
6720
6721       
6722   
6723       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6724 echo "configure:6725: checking for mbstate_t" >&5
6725   cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 #include <wchar.h>
6729 int main() {
6730 mbstate_t teststate;
6731 ; return 0; }
6732 EOF
6733 if { (eval echo configure:6734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6734   rm -rf conftest*
6735   have_mbstate_t=yes
6736 else
6737   echo "configure: failed program was:" >&5
6738   cat conftest.$ac_ext >&5
6739   rm -rf conftest*
6740   have_mbstate_t=no
6741 fi
6742 rm -f conftest*
6743   echo "$ac_t""$have_mbstate_t" 1>&6
6744   if test x"$have_mbstate_t" = xyes; then
6745     cat >> confdefs.h <<\EOF
6746 #define HAVE_MBSTATE_T 1
6747 EOF
6748
6749   fi
6750
6751     for ac_hdr in wchar.h
6752 do
6753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6755 echo "configure:6756: checking for $ac_hdr" >&5
6756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6757   echo $ac_n "(cached) $ac_c" 1>&6
6758 else
6759   cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 #include <$ac_hdr>
6763 EOF
6764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6765 { (eval echo configure:6766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6767 if test -z "$ac_err"; then
6768   rm -rf conftest*
6769   eval "ac_cv_header_$ac_safe=yes"
6770 else
6771   echo "$ac_err" >&5
6772   echo "configure: failed program was:" >&5
6773   cat conftest.$ac_ext >&5
6774   rm -rf conftest*
6775   eval "ac_cv_header_$ac_safe=no"
6776 fi
6777 rm -f conftest*
6778 fi
6779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6780   echo "$ac_t""yes" 1>&6
6781     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6782   cat >> confdefs.h <<EOF
6783 #define $ac_tr_hdr 1
6784 EOF
6785  ac_has_wchar_h=yes
6786 else
6787   echo "$ac_t""no" 1>&6
6788 ac_has_wchar_h=no
6789 fi
6790 done
6791
6792   for ac_hdr in wctype.h
6793 do
6794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_hdr" >&5
6797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6798   echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6800   cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 #include <$ac_hdr>
6804 EOF
6805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6806 { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6808 if test -z "$ac_err"; then
6809   rm -rf conftest*
6810   eval "ac_cv_header_$ac_safe=yes"
6811 else
6812   echo "$ac_err" >&5
6813   echo "configure: failed program was:" >&5
6814   cat conftest.$ac_ext >&5
6815   rm -rf conftest*
6816   eval "ac_cv_header_$ac_safe=no"
6817 fi
6818 rm -f conftest*
6819 fi
6820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6821   echo "$ac_t""yes" 1>&6
6822     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6823   cat >> confdefs.h <<EOF
6824 #define $ac_tr_hdr 1
6825 EOF
6826  ac_has_wctype_h=yes
6827 else
6828   echo "$ac_t""no" 1>&6
6829 ac_has_wctype_h=no
6830 fi
6831 done
6832
6833
6834     if test x"$ac_has_wchar_h" = xyes &&
6835      test x"$ac_has_wctype_h" = xyes &&
6836      test x"$enable_c_mbchar" != xno; then
6837
6838             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6839 echo "configure:6840: checking for WCHAR_MIN and WCHAR_MAX" >&5
6840     cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 #include <wchar.h>
6844 int main() {
6845 int i = WCHAR_MIN; int j = WCHAR_MAX;
6846 ; return 0; }
6847 EOF
6848 if { (eval echo configure:6849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6849   rm -rf conftest*
6850   has_wchar_minmax=yes
6851 else
6852   echo "configure: failed program was:" >&5
6853   cat conftest.$ac_ext >&5
6854   rm -rf conftest*
6855   has_wchar_minmax=no
6856 fi
6857 rm -f conftest*
6858     echo "$ac_t""$has_wchar_minmax" 1>&6
6859
6860             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6861 echo "configure:6862: checking for WEOF" >&5
6862     cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865
6866       #include <wchar.h>
6867       #include <stddef.h>
6868 int main() {
6869 wint_t i = WEOF;
6870 ; return 0; }
6871 EOF
6872 if { (eval echo configure:6873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6873   rm -rf conftest*
6874   has_weof=yes
6875 else
6876   echo "configure: failed program was:" >&5
6877   cat conftest.$ac_ext >&5
6878   rm -rf conftest*
6879   has_weof=no
6880 fi
6881 rm -f conftest*
6882     echo "$ac_t""$has_weof" 1>&6
6883
6884         ac_wfuncs=yes
6885     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6886 do
6887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_func" >&5
6889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6890   echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6892   cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 /* System header to define __stub macros and hopefully few prototypes,
6896     which can conflict with char $ac_func(); below.  */
6897 #include <assert.h>
6898 /* Override any gcc2 internal prototype to avoid an error.  */
6899 /* We use char because int might match the return type of a gcc2
6900     builtin and then its argument prototype would still apply.  */
6901 char $ac_func();
6902
6903 int main() {
6904
6905 /* The GNU C library defines this for functions which it implements
6906     to always fail with ENOSYS.  Some functions are actually named
6907     something starting with __ and the normal name is an alias.  */
6908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6909 choke me
6910 #else
6911 $ac_func();
6912 #endif
6913
6914 ; return 0; }
6915 EOF
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6917   rm -rf conftest*
6918   eval "ac_cv_func_$ac_func=yes"
6919 else
6920   echo "configure: failed program was:" >&5
6921   cat conftest.$ac_ext >&5
6922   rm -rf conftest*
6923   eval "ac_cv_func_$ac_func=no"
6924 fi
6925 rm -f conftest*
6926 fi
6927
6928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6929   echo "$ac_t""yes" 1>&6
6930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6931   cat >> confdefs.h <<EOF
6932 #define $ac_tr_func 1
6933 EOF
6934  
6935 else
6936   echo "$ac_t""no" 1>&6
6937 \
6938     ac_wfuncs=no
6939 fi
6940 done
6941
6942
6943         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6944     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6945     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6946     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6947     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6948     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6949 do
6950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6951 echo "configure:6952: checking for $ac_func" >&5
6952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6953   echo $ac_n "(cached) $ac_c" 1>&6
6954 else
6955   cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* System header to define __stub macros and hopefully few prototypes,
6959     which can conflict with char $ac_func(); below.  */
6960 #include <assert.h>
6961 /* Override any gcc2 internal prototype to avoid an error.  */
6962 /* We use char because int might match the return type of a gcc2
6963     builtin and then its argument prototype would still apply.  */
6964 char $ac_func();
6965
6966 int main() {
6967
6968 /* The GNU C library defines this for functions which it implements
6969     to always fail with ENOSYS.  Some functions are actually named
6970     something starting with __ and the normal name is an alias.  */
6971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6972 choke me
6973 #else
6974 $ac_func();
6975 #endif
6976
6977 ; return 0; }
6978 EOF
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980   rm -rf conftest*
6981   eval "ac_cv_func_$ac_func=yes"
6982 else
6983   echo "configure: failed program was:" >&5
6984   cat conftest.$ac_ext >&5
6985   rm -rf conftest*
6986   eval "ac_cv_func_$ac_func=no"
6987 fi
6988 rm -f conftest*
6989 fi
6990
6991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6992   echo "$ac_t""yes" 1>&6
6993     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6994   cat >> confdefs.h <<EOF
6995 #define $ac_tr_func 1
6996 EOF
6997  
6998 else
6999   echo "$ac_t""no" 1>&6
7000 \
7001     ac_wfuncs=no
7002 fi
7003 done
7004
7005
7006     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7007 echo "configure:7008: checking for ISO C99 wchar_t support" >&5
7008     if test x"$has_weof" = xyes &&
7009        test x"$has_wchar_minmax" = xyes &&
7010        test x"$ac_wfuncs" = xyes; then
7011       ac_isoC99_wchar_t=yes
7012     else
7013       ac_isoC99_wchar_t=no
7014     fi
7015     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7016
7017             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7018 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7019 echo "configure:7020: checking for iconv.h" >&5
7020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7021   echo $ac_n "(cached) $ac_c" 1>&6
7022 else
7023   cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <iconv.h>
7027 EOF
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7031 if test -z "$ac_err"; then
7032   rm -rf conftest*
7033   eval "ac_cv_header_$ac_safe=yes"
7034 else
7035   echo "$ac_err" >&5
7036   echo "configure: failed program was:" >&5
7037   cat conftest.$ac_ext >&5
7038   rm -rf conftest*
7039   eval "ac_cv_header_$ac_safe=no"
7040 fi
7041 rm -f conftest*
7042 fi
7043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7044   echo "$ac_t""yes" 1>&6
7045   ac_has_iconv_h=yes
7046 else
7047   echo "$ac_t""no" 1>&6
7048 ac_has_iconv_h=no
7049 fi
7050
7051     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7052 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7053 echo "configure:7054: checking for langinfo.h" >&5
7054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7055   echo $ac_n "(cached) $ac_c" 1>&6
7056 else
7057   cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 #include <langinfo.h>
7061 EOF
7062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7063 { (eval echo configure:7064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7065 if test -z "$ac_err"; then
7066   rm -rf conftest*
7067   eval "ac_cv_header_$ac_safe=yes"
7068 else
7069   echo "$ac_err" >&5
7070   echo "configure: failed program was:" >&5
7071   cat conftest.$ac_ext >&5
7072   rm -rf conftest*
7073   eval "ac_cv_header_$ac_safe=no"
7074 fi
7075 rm -f conftest*
7076 fi
7077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7078   echo "$ac_t""yes" 1>&6
7079   ac_has_langinfo_h=yes
7080 else
7081   echo "$ac_t""no" 1>&6
7082 ac_has_langinfo_h=no
7083 fi
7084
7085
7086         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7087 echo "configure:7088: checking for iconv in -liconv" >&5
7088 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7090   echo $ac_n "(cached) $ac_c" 1>&6
7091 else
7092   ac_save_LIBS="$LIBS"
7093 LIBS="-liconv  $LIBS"
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 /* Override any gcc2 internal prototype to avoid an error.  */
7098 /* We use char because int might match the return type of a gcc2
7099     builtin and then its argument prototype would still apply.  */
7100 char iconv();
7101
7102 int main() {
7103 iconv()
7104 ; return 0; }
7105 EOF
7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7107   rm -rf conftest*
7108   eval "ac_cv_lib_$ac_lib_var=yes"
7109 else
7110   echo "configure: failed program was:" >&5
7111   cat conftest.$ac_ext >&5
7112   rm -rf conftest*
7113   eval "ac_cv_lib_$ac_lib_var=no"
7114 fi
7115 rm -f conftest*
7116 LIBS="$ac_save_LIBS"
7117
7118 fi
7119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7120   echo "$ac_t""yes" 1>&6
7121   libiconv="-liconv"
7122 else
7123   echo "$ac_t""no" 1>&6
7124 fi
7125
7126     ac_save_LIBS="$LIBS"
7127     LIBS="$LIBS $libiconv"
7128
7129     for ac_func in iconv_open iconv_close iconv nl_langinfo
7130 do
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5
7133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7134   echo $ac_n "(cached) $ac_c" 1>&6
7135 else
7136   cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140     which can conflict with char $ac_func(); below.  */
7141 #include <assert.h>
7142 /* Override any gcc2 internal prototype to avoid an error.  */
7143 /* We use char because int might match the return type of a gcc2
7144     builtin and then its argument prototype would still apply.  */
7145 char $ac_func();
7146
7147 int main() {
7148
7149 /* The GNU C library defines this for functions which it implements
7150     to always fail with ENOSYS.  Some functions are actually named
7151     something starting with __ and the normal name is an alias.  */
7152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 choke me
7154 #else
7155 $ac_func();
7156 #endif
7157
7158 ; return 0; }
7159 EOF
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161   rm -rf conftest*
7162   eval "ac_cv_func_$ac_func=yes"
7163 else
7164   echo "configure: failed program was:" >&5
7165   cat conftest.$ac_ext >&5
7166   rm -rf conftest*
7167   eval "ac_cv_func_$ac_func=no"
7168 fi
7169 rm -f conftest*
7170 fi
7171
7172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7173   echo "$ac_t""yes" 1>&6
7174     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7175   cat >> confdefs.h <<EOF
7176 #define $ac_tr_func 1
7177 EOF
7178  \
7179     ac_XPG2funcs=yes
7180 else
7181   echo "$ac_t""no" 1>&6
7182 ac_XPG2funcs=no
7183 fi
7184 done
7185
7186
7187     LIBS="$ac_save_LIBS"
7188
7189     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7190 echo "configure:7191: checking for XPG2 wchar_t support" >&5
7191     if test x"$ac_has_iconv_h" = xyes &&
7192        test x"$ac_has_langinfo_h" = xyes &&
7193        test x"$ac_XPG2funcs" = xyes; then
7194       ac_XPG2_wchar_t=yes
7195     else
7196       ac_XPG2_wchar_t=no
7197     fi
7198     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7199
7200             if test x"$ac_isoC99_wchar_t" = xyes && 
7201         test x"$ac_XPG2_wchar_t" = xyes; then
7202       cat >> confdefs.h <<\EOF
7203 #define _GLIBCPP_USE_WCHAR_T 1
7204 EOF
7205
7206       enable_wchar_t=yes
7207     fi
7208   fi
7209   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7210 echo "configure:7211: checking for enabled wchar_t specializations" >&5
7211   echo "$ac_t""$enable_wchar_t" 1>&6    
7212
7213       cat >> confdefs.h <<\EOF
7214 #define HAVE_COPYSIGN 1
7215 EOF
7216
7217       cat >> confdefs.h <<\EOF
7218 #define HAVE_COPYSIGNF 1
7219 EOF
7220
7221       cat >> confdefs.h <<\EOF
7222 #define HAVE_FINITE 1
7223 EOF
7224
7225       cat >> confdefs.h <<\EOF
7226 #define HAVE_FINITEF 1
7227 EOF
7228
7229       cat >> confdefs.h <<\EOF
7230 #define HAVE_FREXPF 1
7231 EOF
7232
7233       cat >> confdefs.h <<\EOF
7234 #define HAVE_HYPOTF 1
7235 EOF
7236
7237       cat >> confdefs.h <<\EOF
7238 #define HAVE_ISINF 1
7239 EOF
7240
7241       cat >> confdefs.h <<\EOF
7242 #define HAVE_ISINFF 1
7243 EOF
7244
7245       cat >> confdefs.h <<\EOF
7246 #define HAVE_ISNAN 1
7247 EOF
7248
7249       cat >> confdefs.h <<\EOF
7250 #define HAVE_ISNANF 1
7251 EOF
7252
7253       cat >> confdefs.h <<\EOF
7254 #define HAVE_SINCOS 1
7255 EOF
7256
7257       cat >> confdefs.h <<\EOF
7258 #define HAVE_SINCOSF 1
7259 EOF
7260
7261       if test x"long_double_math_on_this_cpu" = x"yes"; then
7262         cat >> confdefs.h <<\EOF
7263 #define HAVE_FINITEL 1
7264 EOF
7265
7266         cat >> confdefs.h <<\EOF
7267 #define HAVE_HYPOTL 1
7268 EOF
7269
7270         cat >> confdefs.h <<\EOF
7271 #define HAVE_ISINFL 1
7272 EOF
7273
7274         cat >> confdefs.h <<\EOF
7275 #define HAVE_ISNANL 1
7276 EOF
7277
7278       fi
7279       ;;
7280     *-mingw32*)
7281       os_include_dir="os/mingw32"
7282       for ac_hdr in sys/types.h locale.h float.h
7283 do
7284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_hdr" >&5
7287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7288   echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290   cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 #include <$ac_hdr>
7294 EOF
7295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7296 { (eval echo configure:7297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7298 if test -z "$ac_err"; then
7299   rm -rf conftest*
7300   eval "ac_cv_header_$ac_safe=yes"
7301 else
7302   echo "$ac_err" >&5
7303   echo "configure: failed program was:" >&5
7304   cat conftest.$ac_ext >&5
7305   rm -rf conftest*
7306   eval "ac_cv_header_$ac_safe=no"
7307 fi
7308 rm -f conftest*
7309 fi
7310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7311   echo "$ac_t""yes" 1>&6
7312     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7313   cat >> confdefs.h <<EOF
7314 #define $ac_tr_hdr 1
7315 EOF
7316  
7317 else
7318   echo "$ac_t""no" 1>&6
7319 fi
7320 done
7321
7322       
7323   # If we're not using GNU ld, then there's no point in even trying these
7324   # tests.  Check for that first.  We should have already tested for gld
7325   # by now (in libtool), but require it now just to be safe...
7326   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7327   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7328   
7329
7330   # The name set by libtool depends on the version of libtool.  Shame on us
7331   # for depending on an impl detail, but c'est la vie.  Older versions used
7332   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7333   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7334   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7335   # set (hence we're using an older libtool), then set it.
7336   if test x${with_gnu_ld+set} != xset; then
7337     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7338       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7339       with_gnu_ld=no
7340     else
7341       with_gnu_ld=$ac_cv_prog_gnu_ld
7342     fi
7343   fi
7344
7345   # Start by getting the version number.  I think the libtool test already
7346   # does some of this, but throws away the result.
7347   
7348   ldver=`$LD --version 2>/dev/null | head -1 | \
7349          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7350   
7351   glibcpp_gnu_ld_version=`echo $ldver | \
7352          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7353
7354   # Set --gc-sections.
7355   if test "$with_gnu_ld" = "notbroken"; then
7356     # GNU ld it is!  Joy and bunny rabbits!
7357
7358     # All these tests are for C++; save the language and the compiler flags.
7359     # Need to do this so that g++ won't try to link in libstdc++
7360     ac_test_CFLAGS="${CFLAGS+set}"
7361     ac_save_CFLAGS="$CFLAGS"
7362     CFLAGS='-x c++  -Wl,--gc-sections'
7363
7364     # Check for -Wl,--gc-sections
7365     # XXX This test is broken at the moment, as symbols required for
7366     # linking are now in libsupc++ (not built yet.....). In addition,
7367     # this test has cored on solaris in the past. In addition,
7368     # --gc-sections doesn't really work at the moment (keeps on discarding
7369     # used sections, first .eh_frame and now some of the glibc sections for
7370     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7371     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7372 echo "configure:7373: checking for ld that supports -Wl,--gc-sections" >&5
7373     if test "$cross_compiling" = yes; then
7374   ac_sectionLDflags=yes
7375 else
7376   cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379
7380      int main(void)
7381      {
7382        try { throw 1; }
7383        catch (...) { };
7384        return 0;
7385      }
7386     
7387 EOF
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7389 then
7390   ac_sectionLDflags=yes
7391 else
7392   echo "configure: failed program was:" >&5
7393   cat conftest.$ac_ext >&5
7394   rm -fr conftest*
7395   ac_sectionLDflags=no
7396 fi
7397 rm -fr conftest*
7398 fi
7399
7400     if test "$ac_test_CFLAGS" = set; then
7401       CFLAGS="$ac_save_CFLAGS"
7402     else
7403       # this is the suspicious part
7404       CFLAGS=''
7405     fi
7406     if test "$ac_sectionLDflags" = "yes"; then
7407       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7408     fi
7409     echo "$ac_t""$ac_sectionLDflags" 1>&6
7410   fi
7411
7412   # Set linker optimization flags.
7413   if test x"$with_gnu_ld" = x"yes"; then
7414     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7415   fi
7416
7417   
7418   
7419
7420       
7421         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7422 echo "configure:7423: checking for main in -lm" >&5
7423 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7425   echo $ac_n "(cached) $ac_c" 1>&6
7426 else
7427   ac_save_LIBS="$LIBS"
7428 LIBS="-lm  $LIBS"
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432
7433 int main() {
7434 main()
7435 ; return 0; }
7436 EOF
7437 if { (eval echo configure:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438   rm -rf conftest*
7439   eval "ac_cv_lib_$ac_lib_var=yes"
7440 else
7441   echo "configure: failed program was:" >&5
7442   cat conftest.$ac_ext >&5
7443   rm -rf conftest*
7444   eval "ac_cv_lib_$ac_lib_var=no"
7445 fi
7446 rm -f conftest*
7447 LIBS="$ac_save_LIBS"
7448
7449 fi
7450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7451   echo "$ac_t""yes" 1>&6
7452     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7453     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7454   cat >> confdefs.h <<EOF
7455 #define $ac_tr_lib 1
7456 EOF
7457
7458   LIBS="-lm $LIBS"
7459
7460 else
7461   echo "$ac_t""no" 1>&6
7462 fi
7463
7464   for ac_func in nan copysignf
7465 do
7466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_func" >&5
7468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7469   echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471   cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* System header to define __stub macros and hopefully few prototypes,
7475     which can conflict with char $ac_func(); below.  */
7476 #include <assert.h>
7477 /* Override any gcc2 internal prototype to avoid an error.  */
7478 /* We use char because int might match the return type of a gcc2
7479     builtin and then its argument prototype would still apply.  */
7480 char $ac_func();
7481
7482 int main() {
7483
7484 /* The GNU C library defines this for functions which it implements
7485     to always fail with ENOSYS.  Some functions are actually named
7486     something starting with __ and the normal name is an alias.  */
7487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7488 choke me
7489 #else
7490 $ac_func();
7491 #endif
7492
7493 ; return 0; }
7494 EOF
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496   rm -rf conftest*
7497   eval "ac_cv_func_$ac_func=yes"
7498 else
7499   echo "configure: failed program was:" >&5
7500   cat conftest.$ac_ext >&5
7501   rm -rf conftest*
7502   eval "ac_cv_func_$ac_func=no"
7503 fi
7504 rm -f conftest*
7505 fi
7506
7507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7508   echo "$ac_t""yes" 1>&6
7509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7510   cat >> confdefs.h <<EOF
7511 #define $ac_tr_func 1
7512 EOF
7513  
7514 else
7515   echo "$ac_t""no" 1>&6
7516 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7517 fi
7518 done
7519
7520
7521     for ac_func in __signbit
7522 do
7523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7524 echo "configure:7525: checking for $ac_func" >&5
7525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7526   echo $ac_n "(cached) $ac_c" 1>&6
7527 else
7528   cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* System header to define __stub macros and hopefully few prototypes,
7532     which can conflict with char $ac_func(); below.  */
7533 #include <assert.h>
7534 /* Override any gcc2 internal prototype to avoid an error.  */
7535 /* We use char because int might match the return type of a gcc2
7536     builtin and then its argument prototype would still apply.  */
7537 char $ac_func();
7538
7539 int main() {
7540
7541 /* The GNU C library defines this for functions which it implements
7542     to always fail with ENOSYS.  Some functions are actually named
7543     something starting with __ and the normal name is an alias.  */
7544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7545 choke me
7546 #else
7547 $ac_func();
7548 #endif
7549
7550 ; return 0; }
7551 EOF
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7553   rm -rf conftest*
7554   eval "ac_cv_func_$ac_func=yes"
7555 else
7556   echo "configure: failed program was:" >&5
7557   cat conftest.$ac_ext >&5
7558   rm -rf conftest*
7559   eval "ac_cv_func_$ac_func=no"
7560 fi
7561 rm -f conftest*
7562 fi
7563
7564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7565   echo "$ac_t""yes" 1>&6
7566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7567   cat >> confdefs.h <<EOF
7568 #define $ac_tr_func 1
7569 EOF
7570  
7571 else
7572   echo "$ac_t""no" 1>&6
7573 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7574 fi
7575 done
7576
7577   for ac_func in __signbitf
7578 do
7579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_func" >&5
7581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7582   echo $ac_n "(cached) $ac_c" 1>&6
7583 else
7584   cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* System header to define __stub macros and hopefully few prototypes,
7588     which can conflict with char $ac_func(); below.  */
7589 #include <assert.h>
7590 /* Override any gcc2 internal prototype to avoid an error.  */
7591 /* We use char because int might match the return type of a gcc2
7592     builtin and then its argument prototype would still apply.  */
7593 char $ac_func();
7594
7595 int main() {
7596
7597 /* The GNU C library defines this for functions which it implements
7598     to always fail with ENOSYS.  Some functions are actually named
7599     something starting with __ and the normal name is an alias.  */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 choke me
7602 #else
7603 $ac_func();
7604 #endif
7605
7606 ; return 0; }
7607 EOF
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609   rm -rf conftest*
7610   eval "ac_cv_func_$ac_func=yes"
7611 else
7612   echo "configure: failed program was:" >&5
7613   cat conftest.$ac_ext >&5
7614   rm -rf conftest*
7615   eval "ac_cv_func_$ac_func=no"
7616 fi
7617 rm -f conftest*
7618 fi
7619
7620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7621   echo "$ac_t""yes" 1>&6
7622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7623   cat >> confdefs.h <<EOF
7624 #define $ac_tr_func 1
7625 EOF
7626  
7627 else
7628   echo "$ac_t""no" 1>&6
7629 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7630 fi
7631 done
7632
7633
7634           if test x$ac_cv_func_copysignl = x"yes"; then
7635     for ac_func in __signbitl
7636 do
7637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_func" >&5
7639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7640   echo $ac_n "(cached) $ac_c" 1>&6
7641 else
7642   cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 /* System header to define __stub macros and hopefully few prototypes,
7646     which can conflict with char $ac_func(); below.  */
7647 #include <assert.h>
7648 /* Override any gcc2 internal prototype to avoid an error.  */
7649 /* We use char because int might match the return type of a gcc2
7650     builtin and then its argument prototype would still apply.  */
7651 char $ac_func();
7652
7653 int main() {
7654
7655 /* The GNU C library defines this for functions which it implements
7656     to always fail with ENOSYS.  Some functions are actually named
7657     something starting with __ and the normal name is an alias.  */
7658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7659 choke me
7660 #else
7661 $ac_func();
7662 #endif
7663
7664 ; return 0; }
7665 EOF
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667   rm -rf conftest*
7668   eval "ac_cv_func_$ac_func=yes"
7669 else
7670   echo "configure: failed program was:" >&5
7671   cat conftest.$ac_ext >&5
7672   rm -rf conftest*
7673   eval "ac_cv_func_$ac_func=no"
7674 fi
7675 rm -f conftest*
7676 fi
7677
7678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7679   echo "$ac_t""yes" 1>&6
7680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7681   cat >> confdefs.h <<EOF
7682 #define $ac_tr_func 1
7683 EOF
7684  
7685 else
7686   echo "$ac_t""no" 1>&6
7687 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7688 fi
7689 done
7690
7691   fi
7692
7693   if test -n "$LIBMATHOBJS"; then
7694     need_libmath=yes
7695   fi
7696   
7697
7698       
7699   
7700       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7701 echo "configure:7702: checking for mbstate_t" >&5
7702   cat > conftest.$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7705 #include <wchar.h>
7706 int main() {
7707 mbstate_t teststate;
7708 ; return 0; }
7709 EOF
7710 if { (eval echo configure:7711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7711   rm -rf conftest*
7712   have_mbstate_t=yes
7713 else
7714   echo "configure: failed program was:" >&5
7715   cat conftest.$ac_ext >&5
7716   rm -rf conftest*
7717   have_mbstate_t=no
7718 fi
7719 rm -f conftest*
7720   echo "$ac_t""$have_mbstate_t" 1>&6
7721   if test x"$have_mbstate_t" = xyes; then
7722     cat >> confdefs.h <<\EOF
7723 #define HAVE_MBSTATE_T 1
7724 EOF
7725
7726   fi
7727
7728     for ac_hdr in wchar.h
7729 do
7730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_hdr" >&5
7733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7734   echo $ac_n "(cached) $ac_c" 1>&6
7735 else
7736   cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 #include <$ac_hdr>
7740 EOF
7741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7742 { (eval echo configure:7743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7744 if test -z "$ac_err"; then
7745   rm -rf conftest*
7746   eval "ac_cv_header_$ac_safe=yes"
7747 else
7748   echo "$ac_err" >&5
7749   echo "configure: failed program was:" >&5
7750   cat conftest.$ac_ext >&5
7751   rm -rf conftest*
7752   eval "ac_cv_header_$ac_safe=no"
7753 fi
7754 rm -f conftest*
7755 fi
7756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7757   echo "$ac_t""yes" 1>&6
7758     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7759   cat >> confdefs.h <<EOF
7760 #define $ac_tr_hdr 1
7761 EOF
7762  ac_has_wchar_h=yes
7763 else
7764   echo "$ac_t""no" 1>&6
7765 ac_has_wchar_h=no
7766 fi
7767 done
7768
7769   for ac_hdr in wctype.h
7770 do
7771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_hdr" >&5
7774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7775   echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777   cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 #include <$ac_hdr>
7781 EOF
7782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7783 { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7785 if test -z "$ac_err"; then
7786   rm -rf conftest*
7787   eval "ac_cv_header_$ac_safe=yes"
7788 else
7789   echo "$ac_err" >&5
7790   echo "configure: failed program was:" >&5
7791   cat conftest.$ac_ext >&5
7792   rm -rf conftest*
7793   eval "ac_cv_header_$ac_safe=no"
7794 fi
7795 rm -f conftest*
7796 fi
7797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7798   echo "$ac_t""yes" 1>&6
7799     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7800   cat >> confdefs.h <<EOF
7801 #define $ac_tr_hdr 1
7802 EOF
7803  ac_has_wctype_h=yes
7804 else
7805   echo "$ac_t""no" 1>&6
7806 ac_has_wctype_h=no
7807 fi
7808 done
7809
7810
7811     if test x"$ac_has_wchar_h" = xyes &&
7812      test x"$ac_has_wctype_h" = xyes &&
7813      test x"$enable_c_mbchar" != xno; then
7814
7815             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7816 echo "configure:7817: checking for WCHAR_MIN and WCHAR_MAX" >&5
7817     cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 #include <wchar.h>
7821 int main() {
7822 int i = WCHAR_MIN; int j = WCHAR_MAX;
7823 ; return 0; }
7824 EOF
7825 if { (eval echo configure:7826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7826   rm -rf conftest*
7827   has_wchar_minmax=yes
7828 else
7829   echo "configure: failed program was:" >&5
7830   cat conftest.$ac_ext >&5
7831   rm -rf conftest*
7832   has_wchar_minmax=no
7833 fi
7834 rm -f conftest*
7835     echo "$ac_t""$has_wchar_minmax" 1>&6
7836
7837             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7838 echo "configure:7839: checking for WEOF" >&5
7839     cat > conftest.$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842
7843       #include <wchar.h>
7844       #include <stddef.h>
7845 int main() {
7846 wint_t i = WEOF;
7847 ; return 0; }
7848 EOF
7849 if { (eval echo configure:7850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7850   rm -rf conftest*
7851   has_weof=yes
7852 else
7853   echo "configure: failed program was:" >&5
7854   cat conftest.$ac_ext >&5
7855   rm -rf conftest*
7856   has_weof=no
7857 fi
7858 rm -f conftest*
7859     echo "$ac_t""$has_weof" 1>&6
7860
7861         ac_wfuncs=yes
7862     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7863 do
7864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7865 echo "configure:7866: checking for $ac_func" >&5
7866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7867   echo $ac_n "(cached) $ac_c" 1>&6
7868 else
7869   cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 /* System header to define __stub macros and hopefully few prototypes,
7873     which can conflict with char $ac_func(); below.  */
7874 #include <assert.h>
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 /* We use char because int might match the return type of a gcc2
7877     builtin and then its argument prototype would still apply.  */
7878 char $ac_func();
7879
7880 int main() {
7881
7882 /* The GNU C library defines this for functions which it implements
7883     to always fail with ENOSYS.  Some functions are actually named
7884     something starting with __ and the normal name is an alias.  */
7885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 choke me
7887 #else
7888 $ac_func();
7889 #endif
7890
7891 ; return 0; }
7892 EOF
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7894   rm -rf conftest*
7895   eval "ac_cv_func_$ac_func=yes"
7896 else
7897   echo "configure: failed program was:" >&5
7898   cat conftest.$ac_ext >&5
7899   rm -rf conftest*
7900   eval "ac_cv_func_$ac_func=no"
7901 fi
7902 rm -f conftest*
7903 fi
7904
7905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7906   echo "$ac_t""yes" 1>&6
7907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7908   cat >> confdefs.h <<EOF
7909 #define $ac_tr_func 1
7910 EOF
7911  
7912 else
7913   echo "$ac_t""no" 1>&6
7914 \
7915     ac_wfuncs=no
7916 fi
7917 done
7918
7919
7920         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7921     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7922     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7923     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7924     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7925     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7926 do
7927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7928 echo "configure:7929: checking for $ac_func" >&5
7929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7930   echo $ac_n "(cached) $ac_c" 1>&6
7931 else
7932   cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* System header to define __stub macros and hopefully few prototypes,
7936     which can conflict with char $ac_func(); below.  */
7937 #include <assert.h>
7938 /* Override any gcc2 internal prototype to avoid an error.  */
7939 /* We use char because int might match the return type of a gcc2
7940     builtin and then its argument prototype would still apply.  */
7941 char $ac_func();
7942
7943 int main() {
7944
7945 /* The GNU C library defines this for functions which it implements
7946     to always fail with ENOSYS.  Some functions are actually named
7947     something starting with __ and the normal name is an alias.  */
7948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7949 choke me
7950 #else
7951 $ac_func();
7952 #endif
7953
7954 ; return 0; }
7955 EOF
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957   rm -rf conftest*
7958   eval "ac_cv_func_$ac_func=yes"
7959 else
7960   echo "configure: failed program was:" >&5
7961   cat conftest.$ac_ext >&5
7962   rm -rf conftest*
7963   eval "ac_cv_func_$ac_func=no"
7964 fi
7965 rm -f conftest*
7966 fi
7967
7968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7969   echo "$ac_t""yes" 1>&6
7970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7971   cat >> confdefs.h <<EOF
7972 #define $ac_tr_func 1
7973 EOF
7974  
7975 else
7976   echo "$ac_t""no" 1>&6
7977 \
7978     ac_wfuncs=no
7979 fi
7980 done
7981
7982
7983     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7984 echo "configure:7985: checking for ISO C99 wchar_t support" >&5
7985     if test x"$has_weof" = xyes &&
7986        test x"$has_wchar_minmax" = xyes &&
7987        test x"$ac_wfuncs" = xyes; then
7988       ac_isoC99_wchar_t=yes
7989     else
7990       ac_isoC99_wchar_t=no
7991     fi
7992     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7993
7994             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7995 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7996 echo "configure:7997: checking for iconv.h" >&5
7997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7998   echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000   cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 #include <iconv.h>
8004 EOF
8005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8006 { (eval echo configure:8007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8008 if test -z "$ac_err"; then
8009   rm -rf conftest*
8010   eval "ac_cv_header_$ac_safe=yes"
8011 else
8012   echo "$ac_err" >&5
8013   echo "configure: failed program was:" >&5
8014   cat conftest.$ac_ext >&5
8015   rm -rf conftest*
8016   eval "ac_cv_header_$ac_safe=no"
8017 fi
8018 rm -f conftest*
8019 fi
8020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8021   echo "$ac_t""yes" 1>&6
8022   ac_has_iconv_h=yes
8023 else
8024   echo "$ac_t""no" 1>&6
8025 ac_has_iconv_h=no
8026 fi
8027
8028     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8029 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8030 echo "configure:8031: checking for langinfo.h" >&5
8031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8032   echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034   cat > conftest.$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8037 #include <langinfo.h>
8038 EOF
8039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8040 { (eval echo configure:8041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8042 if test -z "$ac_err"; then
8043   rm -rf conftest*
8044   eval "ac_cv_header_$ac_safe=yes"
8045 else
8046   echo "$ac_err" >&5
8047   echo "configure: failed program was:" >&5
8048   cat conftest.$ac_ext >&5
8049   rm -rf conftest*
8050   eval "ac_cv_header_$ac_safe=no"
8051 fi
8052 rm -f conftest*
8053 fi
8054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8055   echo "$ac_t""yes" 1>&6
8056   ac_has_langinfo_h=yes
8057 else
8058   echo "$ac_t""no" 1>&6
8059 ac_has_langinfo_h=no
8060 fi
8061
8062
8063         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8064 echo "configure:8065: checking for iconv in -liconv" >&5
8065 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8067   echo $ac_n "(cached) $ac_c" 1>&6
8068 else
8069   ac_save_LIBS="$LIBS"
8070 LIBS="-liconv  $LIBS"
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 /* Override any gcc2 internal prototype to avoid an error.  */
8075 /* We use char because int might match the return type of a gcc2
8076     builtin and then its argument prototype would still apply.  */
8077 char iconv();
8078
8079 int main() {
8080 iconv()
8081 ; return 0; }
8082 EOF
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084   rm -rf conftest*
8085   eval "ac_cv_lib_$ac_lib_var=yes"
8086 else
8087   echo "configure: failed program was:" >&5
8088   cat conftest.$ac_ext >&5
8089   rm -rf conftest*
8090   eval "ac_cv_lib_$ac_lib_var=no"
8091 fi
8092 rm -f conftest*
8093 LIBS="$ac_save_LIBS"
8094
8095 fi
8096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8097   echo "$ac_t""yes" 1>&6
8098   libiconv="-liconv"
8099 else
8100   echo "$ac_t""no" 1>&6
8101 fi
8102
8103     ac_save_LIBS="$LIBS"
8104     LIBS="$LIBS $libiconv"
8105
8106     for ac_func in iconv_open iconv_close iconv nl_langinfo
8107 do
8108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_func" >&5
8110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8111   echo $ac_n "(cached) $ac_c" 1>&6
8112 else
8113   cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes,
8117     which can conflict with char $ac_func(); below.  */
8118 #include <assert.h>
8119 /* Override any gcc2 internal prototype to avoid an error.  */
8120 /* We use char because int might match the return type of a gcc2
8121     builtin and then its argument prototype would still apply.  */
8122 char $ac_func();
8123
8124 int main() {
8125
8126 /* The GNU C library defines this for functions which it implements
8127     to always fail with ENOSYS.  Some functions are actually named
8128     something starting with __ and the normal name is an alias.  */
8129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8130 choke me
8131 #else
8132 $ac_func();
8133 #endif
8134
8135 ; return 0; }
8136 EOF
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138   rm -rf conftest*
8139   eval "ac_cv_func_$ac_func=yes"
8140 else
8141   echo "configure: failed program was:" >&5
8142   cat conftest.$ac_ext >&5
8143   rm -rf conftest*
8144   eval "ac_cv_func_$ac_func=no"
8145 fi
8146 rm -f conftest*
8147 fi
8148
8149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8150   echo "$ac_t""yes" 1>&6
8151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8152   cat >> confdefs.h <<EOF
8153 #define $ac_tr_func 1
8154 EOF
8155  \
8156     ac_XPG2funcs=yes
8157 else
8158   echo "$ac_t""no" 1>&6
8159 ac_XPG2funcs=no
8160 fi
8161 done
8162
8163
8164     LIBS="$ac_save_LIBS"
8165
8166     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8167 echo "configure:8168: checking for XPG2 wchar_t support" >&5
8168     if test x"$ac_has_iconv_h" = xyes &&
8169        test x"$ac_has_langinfo_h" = xyes &&
8170        test x"$ac_XPG2funcs" = xyes; then
8171       ac_XPG2_wchar_t=yes
8172     else
8173       ac_XPG2_wchar_t=no
8174     fi
8175     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8176
8177             if test x"$ac_isoC99_wchar_t" = xyes && 
8178         test x"$ac_XPG2_wchar_t" = xyes; then
8179       cat >> confdefs.h <<\EOF
8180 #define _GLIBCPP_USE_WCHAR_T 1
8181 EOF
8182
8183       enable_wchar_t=yes
8184     fi
8185   fi
8186   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8187 echo "configure:8188: checking for enabled wchar_t specializations" >&5
8188   echo "$ac_t""$enable_wchar_t" 1>&6    
8189
8190       ;;
8191     *-netbsd*)
8192       os_include_dir="os/bsd/netbsd"
8193       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8194         machine/endian.h machine/param.h sys/machine.h sys/types.h \
8195         fp.h locale.h float.h inttypes.h
8196 do
8197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8199 echo "configure:8200: checking for $ac_hdr" >&5
8200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8201   echo $ac_n "(cached) $ac_c" 1>&6
8202 else
8203   cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <$ac_hdr>
8207 EOF
8208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8209 { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8211 if test -z "$ac_err"; then
8212   rm -rf conftest*
8213   eval "ac_cv_header_$ac_safe=yes"
8214 else
8215   echo "$ac_err" >&5
8216   echo "configure: failed program was:" >&5
8217   cat conftest.$ac_ext >&5
8218   rm -rf conftest*
8219   eval "ac_cv_header_$ac_safe=no"
8220 fi
8221 rm -f conftest*
8222 fi
8223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8224   echo "$ac_t""yes" 1>&6
8225     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8226   cat >> confdefs.h <<EOF
8227 #define $ac_tr_hdr 1
8228 EOF
8229  
8230 else
8231   echo "$ac_t""no" 1>&6
8232 fi
8233 done
8234
8235       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8236        
8237       
8238   # If we're not using GNU ld, then there's no point in even trying these
8239   # tests.  Check for that first.  We should have already tested for gld
8240   # by now (in libtool), but require it now just to be safe...
8241   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8242   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8243   
8244
8245   # The name set by libtool depends on the version of libtool.  Shame on us
8246   # for depending on an impl detail, but c'est la vie.  Older versions used
8247   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8248   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8249   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8250   # set (hence we're using an older libtool), then set it.
8251   if test x${with_gnu_ld+set} != xset; then
8252     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8253       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8254       with_gnu_ld=no
8255     else
8256       with_gnu_ld=$ac_cv_prog_gnu_ld
8257     fi
8258   fi
8259
8260   # Start by getting the version number.  I think the libtool test already
8261   # does some of this, but throws away the result.
8262   
8263   ldver=`$LD --version 2>/dev/null | head -1 | \
8264          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8265   
8266   glibcpp_gnu_ld_version=`echo $ldver | \
8267          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8268
8269   # Set --gc-sections.
8270   if test "$with_gnu_ld" = "notbroken"; then
8271     # GNU ld it is!  Joy and bunny rabbits!
8272
8273     # All these tests are for C++; save the language and the compiler flags.
8274     # Need to do this so that g++ won't try to link in libstdc++
8275     ac_test_CFLAGS="${CFLAGS+set}"
8276     ac_save_CFLAGS="$CFLAGS"
8277     CFLAGS='-x c++  -Wl,--gc-sections'
8278
8279     # Check for -Wl,--gc-sections
8280     # XXX This test is broken at the moment, as symbols required for
8281     # linking are now in libsupc++ (not built yet.....). In addition,
8282     # this test has cored on solaris in the past. In addition,
8283     # --gc-sections doesn't really work at the moment (keeps on discarding
8284     # used sections, first .eh_frame and now some of the glibc sections for
8285     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8286     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8287 echo "configure:8288: checking for ld that supports -Wl,--gc-sections" >&5
8288     if test "$cross_compiling" = yes; then
8289   ac_sectionLDflags=yes
8290 else
8291   cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294
8295      int main(void)
8296      {
8297        try { throw 1; }
8298        catch (...) { };
8299        return 0;
8300      }
8301     
8302 EOF
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8304 then
8305   ac_sectionLDflags=yes
8306 else
8307   echo "configure: failed program was:" >&5
8308   cat conftest.$ac_ext >&5
8309   rm -fr conftest*
8310   ac_sectionLDflags=no
8311 fi
8312 rm -fr conftest*
8313 fi
8314
8315     if test "$ac_test_CFLAGS" = set; then
8316       CFLAGS="$ac_save_CFLAGS"
8317     else
8318       # this is the suspicious part
8319       CFLAGS=''
8320     fi
8321     if test "$ac_sectionLDflags" = "yes"; then
8322       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8323     fi
8324     echo "$ac_t""$ac_sectionLDflags" 1>&6
8325   fi
8326
8327   # Set linker optimization flags.
8328   if test x"$with_gnu_ld" = x"yes"; then
8329     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8330   fi
8331
8332   
8333   
8334
8335       
8336         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8337 echo "configure:8338: checking for main in -lm" >&5
8338 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8340   echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342   ac_save_LIBS="$LIBS"
8343 LIBS="-lm  $LIBS"
8344 cat > conftest.$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8347
8348 int main() {
8349 main()
8350 ; return 0; }
8351 EOF
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353   rm -rf conftest*
8354   eval "ac_cv_lib_$ac_lib_var=yes"
8355 else
8356   echo "configure: failed program was:" >&5
8357   cat conftest.$ac_ext >&5
8358   rm -rf conftest*
8359   eval "ac_cv_lib_$ac_lib_var=no"
8360 fi
8361 rm -f conftest*
8362 LIBS="$ac_save_LIBS"
8363
8364 fi
8365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8366   echo "$ac_t""yes" 1>&6
8367     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8368     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8369   cat >> confdefs.h <<EOF
8370 #define $ac_tr_lib 1
8371 EOF
8372
8373   LIBS="-lm $LIBS"
8374
8375 else
8376   echo "$ac_t""no" 1>&6
8377 fi
8378
8379   for ac_func in nan copysignf
8380 do
8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_func" >&5
8383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8384   echo $ac_n "(cached) $ac_c" 1>&6
8385 else
8386   cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* System header to define __stub macros and hopefully few prototypes,
8390     which can conflict with char $ac_func(); below.  */
8391 #include <assert.h>
8392 /* Override any gcc2 internal prototype to avoid an error.  */
8393 /* We use char because int might match the return type of a gcc2
8394     builtin and then its argument prototype would still apply.  */
8395 char $ac_func();
8396
8397 int main() {
8398
8399 /* The GNU C library defines this for functions which it implements
8400     to always fail with ENOSYS.  Some functions are actually named
8401     something starting with __ and the normal name is an alias.  */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8403 choke me
8404 #else
8405 $ac_func();
8406 #endif
8407
8408 ; return 0; }
8409 EOF
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411   rm -rf conftest*
8412   eval "ac_cv_func_$ac_func=yes"
8413 else
8414   echo "configure: failed program was:" >&5
8415   cat conftest.$ac_ext >&5
8416   rm -rf conftest*
8417   eval "ac_cv_func_$ac_func=no"
8418 fi
8419 rm -f conftest*
8420 fi
8421
8422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8423   echo "$ac_t""yes" 1>&6
8424     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8425   cat >> confdefs.h <<EOF
8426 #define $ac_tr_func 1
8427 EOF
8428  
8429 else
8430   echo "$ac_t""no" 1>&6
8431 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8432 fi
8433 done
8434
8435
8436     for ac_func in __signbit
8437 do
8438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_func" >&5
8440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8441   echo $ac_n "(cached) $ac_c" 1>&6
8442 else
8443   cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* System header to define __stub macros and hopefully few prototypes,
8447     which can conflict with char $ac_func(); below.  */
8448 #include <assert.h>
8449 /* Override any gcc2 internal prototype to avoid an error.  */
8450 /* We use char because int might match the return type of a gcc2
8451     builtin and then its argument prototype would still apply.  */
8452 char $ac_func();
8453
8454 int main() {
8455
8456 /* The GNU C library defines this for functions which it implements
8457     to always fail with ENOSYS.  Some functions are actually named
8458     something starting with __ and the normal name is an alias.  */
8459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8460 choke me
8461 #else
8462 $ac_func();
8463 #endif
8464
8465 ; return 0; }
8466 EOF
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8468   rm -rf conftest*
8469   eval "ac_cv_func_$ac_func=yes"
8470 else
8471   echo "configure: failed program was:" >&5
8472   cat conftest.$ac_ext >&5
8473   rm -rf conftest*
8474   eval "ac_cv_func_$ac_func=no"
8475 fi
8476 rm -f conftest*
8477 fi
8478
8479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8480   echo "$ac_t""yes" 1>&6
8481     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8482   cat >> confdefs.h <<EOF
8483 #define $ac_tr_func 1
8484 EOF
8485  
8486 else
8487   echo "$ac_t""no" 1>&6
8488 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8489 fi
8490 done
8491
8492   for ac_func in __signbitf
8493 do
8494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8495 echo "configure:8496: checking for $ac_func" >&5
8496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8497   echo $ac_n "(cached) $ac_c" 1>&6
8498 else
8499   cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 /* System header to define __stub macros and hopefully few prototypes,
8503     which can conflict with char $ac_func(); below.  */
8504 #include <assert.h>
8505 /* Override any gcc2 internal prototype to avoid an error.  */
8506 /* We use char because int might match the return type of a gcc2
8507     builtin and then its argument prototype would still apply.  */
8508 char $ac_func();
8509
8510 int main() {
8511
8512 /* The GNU C library defines this for functions which it implements
8513     to always fail with ENOSYS.  Some functions are actually named
8514     something starting with __ and the normal name is an alias.  */
8515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8516 choke me
8517 #else
8518 $ac_func();
8519 #endif
8520
8521 ; return 0; }
8522 EOF
8523 if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524   rm -rf conftest*
8525   eval "ac_cv_func_$ac_func=yes"
8526 else
8527   echo "configure: failed program was:" >&5
8528   cat conftest.$ac_ext >&5
8529   rm -rf conftest*
8530   eval "ac_cv_func_$ac_func=no"
8531 fi
8532 rm -f conftest*
8533 fi
8534
8535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8536   echo "$ac_t""yes" 1>&6
8537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8538   cat >> confdefs.h <<EOF
8539 #define $ac_tr_func 1
8540 EOF
8541  
8542 else
8543   echo "$ac_t""no" 1>&6
8544 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8545 fi
8546 done
8547
8548
8549           if test x$ac_cv_func_copysignl = x"yes"; then
8550     for ac_func in __signbitl
8551 do
8552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8553 echo "configure:8554: checking for $ac_func" >&5
8554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8555   echo $ac_n "(cached) $ac_c" 1>&6
8556 else
8557   cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 /* System header to define __stub macros and hopefully few prototypes,
8561     which can conflict with char $ac_func(); below.  */
8562 #include <assert.h>
8563 /* Override any gcc2 internal prototype to avoid an error.  */
8564 /* We use char because int might match the return type of a gcc2
8565     builtin and then its argument prototype would still apply.  */
8566 char $ac_func();
8567
8568 int main() {
8569
8570 /* The GNU C library defines this for functions which it implements
8571     to always fail with ENOSYS.  Some functions are actually named
8572     something starting with __ and the normal name is an alias.  */
8573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8574 choke me
8575 #else
8576 $ac_func();
8577 #endif
8578
8579 ; return 0; }
8580 EOF
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8582   rm -rf conftest*
8583   eval "ac_cv_func_$ac_func=yes"
8584 else
8585   echo "configure: failed program was:" >&5
8586   cat conftest.$ac_ext >&5
8587   rm -rf conftest*
8588   eval "ac_cv_func_$ac_func=no"
8589 fi
8590 rm -f conftest*
8591 fi
8592
8593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8594   echo "$ac_t""yes" 1>&6
8595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8596   cat >> confdefs.h <<EOF
8597 #define $ac_tr_func 1
8598 EOF
8599  
8600 else
8601   echo "$ac_t""no" 1>&6
8602 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8603 fi
8604 done
8605
8606   fi
8607
8608   if test -n "$LIBMATHOBJS"; then
8609     need_libmath=yes
8610   fi
8611   
8612
8613       
8614   
8615       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8616 echo "configure:8617: checking for mbstate_t" >&5
8617   cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 #include <wchar.h>
8621 int main() {
8622 mbstate_t teststate;
8623 ; return 0; }
8624 EOF
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8626   rm -rf conftest*
8627   have_mbstate_t=yes
8628 else
8629   echo "configure: failed program was:" >&5
8630   cat conftest.$ac_ext >&5
8631   rm -rf conftest*
8632   have_mbstate_t=no
8633 fi
8634 rm -f conftest*
8635   echo "$ac_t""$have_mbstate_t" 1>&6
8636   if test x"$have_mbstate_t" = xyes; then
8637     cat >> confdefs.h <<\EOF
8638 #define HAVE_MBSTATE_T 1
8639 EOF
8640
8641   fi
8642
8643     for ac_hdr in wchar.h
8644 do
8645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8647 echo "configure:8648: checking for $ac_hdr" >&5
8648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8649   echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8651   cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 #include <$ac_hdr>
8655 EOF
8656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8657 { (eval echo configure:8658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8659 if test -z "$ac_err"; then
8660   rm -rf conftest*
8661   eval "ac_cv_header_$ac_safe=yes"
8662 else
8663   echo "$ac_err" >&5
8664   echo "configure: failed program was:" >&5
8665   cat conftest.$ac_ext >&5
8666   rm -rf conftest*
8667   eval "ac_cv_header_$ac_safe=no"
8668 fi
8669 rm -f conftest*
8670 fi
8671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8672   echo "$ac_t""yes" 1>&6
8673     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8674   cat >> confdefs.h <<EOF
8675 #define $ac_tr_hdr 1
8676 EOF
8677  ac_has_wchar_h=yes
8678 else
8679   echo "$ac_t""no" 1>&6
8680 ac_has_wchar_h=no
8681 fi
8682 done
8683
8684   for ac_hdr in wctype.h
8685 do
8686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8688 echo "configure:8689: checking for $ac_hdr" >&5
8689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8690   echo $ac_n "(cached) $ac_c" 1>&6
8691 else
8692   cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 #include <$ac_hdr>
8696 EOF
8697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8698 { (eval echo configure:8699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8700 if test -z "$ac_err"; then
8701   rm -rf conftest*
8702   eval "ac_cv_header_$ac_safe=yes"
8703 else
8704   echo "$ac_err" >&5
8705   echo "configure: failed program was:" >&5
8706   cat conftest.$ac_ext >&5
8707   rm -rf conftest*
8708   eval "ac_cv_header_$ac_safe=no"
8709 fi
8710 rm -f conftest*
8711 fi
8712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8713   echo "$ac_t""yes" 1>&6
8714     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8715   cat >> confdefs.h <<EOF
8716 #define $ac_tr_hdr 1
8717 EOF
8718  ac_has_wctype_h=yes
8719 else
8720   echo "$ac_t""no" 1>&6
8721 ac_has_wctype_h=no
8722 fi
8723 done
8724
8725
8726     if test x"$ac_has_wchar_h" = xyes &&
8727      test x"$ac_has_wctype_h" = xyes &&
8728      test x"$enable_c_mbchar" != xno; then
8729
8730             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8731 echo "configure:8732: checking for WCHAR_MIN and WCHAR_MAX" >&5
8732     cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 #include <wchar.h>
8736 int main() {
8737 int i = WCHAR_MIN; int j = WCHAR_MAX;
8738 ; return 0; }
8739 EOF
8740 if { (eval echo configure:8741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741   rm -rf conftest*
8742   has_wchar_minmax=yes
8743 else
8744   echo "configure: failed program was:" >&5
8745   cat conftest.$ac_ext >&5
8746   rm -rf conftest*
8747   has_wchar_minmax=no
8748 fi
8749 rm -f conftest*
8750     echo "$ac_t""$has_wchar_minmax" 1>&6
8751
8752             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8753 echo "configure:8754: checking for WEOF" >&5
8754     cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757
8758       #include <wchar.h>
8759       #include <stddef.h>
8760 int main() {
8761 wint_t i = WEOF;
8762 ; return 0; }
8763 EOF
8764 if { (eval echo configure:8765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8765   rm -rf conftest*
8766   has_weof=yes
8767 else
8768   echo "configure: failed program was:" >&5
8769   cat conftest.$ac_ext >&5
8770   rm -rf conftest*
8771   has_weof=no
8772 fi
8773 rm -f conftest*
8774     echo "$ac_t""$has_weof" 1>&6
8775
8776         ac_wfuncs=yes
8777     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8778 do
8779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8780 echo "configure:8781: checking for $ac_func" >&5
8781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8782   echo $ac_n "(cached) $ac_c" 1>&6
8783 else
8784   cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8787 /* System header to define __stub macros and hopefully few prototypes,
8788     which can conflict with char $ac_func(); below.  */
8789 #include <assert.h>
8790 /* Override any gcc2 internal prototype to avoid an error.  */
8791 /* We use char because int might match the return type of a gcc2
8792     builtin and then its argument prototype would still apply.  */
8793 char $ac_func();
8794
8795 int main() {
8796
8797 /* The GNU C library defines this for functions which it implements
8798     to always fail with ENOSYS.  Some functions are actually named
8799     something starting with __ and the normal name is an alias.  */
8800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8801 choke me
8802 #else
8803 $ac_func();
8804 #endif
8805
8806 ; return 0; }
8807 EOF
8808 if { (eval echo configure:8809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8809   rm -rf conftest*
8810   eval "ac_cv_func_$ac_func=yes"
8811 else
8812   echo "configure: failed program was:" >&5
8813   cat conftest.$ac_ext >&5
8814   rm -rf conftest*
8815   eval "ac_cv_func_$ac_func=no"
8816 fi
8817 rm -f conftest*
8818 fi
8819
8820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8821   echo "$ac_t""yes" 1>&6
8822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8823   cat >> confdefs.h <<EOF
8824 #define $ac_tr_func 1
8825 EOF
8826  
8827 else
8828   echo "$ac_t""no" 1>&6
8829 \
8830     ac_wfuncs=no
8831 fi
8832 done
8833
8834
8835         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8836     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8837     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8838     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8839     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8840     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8841 do
8842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8843 echo "configure:8844: checking for $ac_func" >&5
8844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8845   echo $ac_n "(cached) $ac_c" 1>&6
8846 else
8847   cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* System header to define __stub macros and hopefully few prototypes,
8851     which can conflict with char $ac_func(); below.  */
8852 #include <assert.h>
8853 /* Override any gcc2 internal prototype to avoid an error.  */
8854 /* We use char because int might match the return type of a gcc2
8855     builtin and then its argument prototype would still apply.  */
8856 char $ac_func();
8857
8858 int main() {
8859
8860 /* The GNU C library defines this for functions which it implements
8861     to always fail with ENOSYS.  Some functions are actually named
8862     something starting with __ and the normal name is an alias.  */
8863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8864 choke me
8865 #else
8866 $ac_func();
8867 #endif
8868
8869 ; return 0; }
8870 EOF
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8872   rm -rf conftest*
8873   eval "ac_cv_func_$ac_func=yes"
8874 else
8875   echo "configure: failed program was:" >&5
8876   cat conftest.$ac_ext >&5
8877   rm -rf conftest*
8878   eval "ac_cv_func_$ac_func=no"
8879 fi
8880 rm -f conftest*
8881 fi
8882
8883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8884   echo "$ac_t""yes" 1>&6
8885     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8886   cat >> confdefs.h <<EOF
8887 #define $ac_tr_func 1
8888 EOF
8889  
8890 else
8891   echo "$ac_t""no" 1>&6
8892 \
8893     ac_wfuncs=no
8894 fi
8895 done
8896
8897
8898     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8899 echo "configure:8900: checking for ISO C99 wchar_t support" >&5
8900     if test x"$has_weof" = xyes &&
8901        test x"$has_wchar_minmax" = xyes &&
8902        test x"$ac_wfuncs" = xyes; then
8903       ac_isoC99_wchar_t=yes
8904     else
8905       ac_isoC99_wchar_t=no
8906     fi
8907     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8908
8909             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8910 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8911 echo "configure:8912: checking for iconv.h" >&5
8912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8913   echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915   cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8918 #include <iconv.h>
8919 EOF
8920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8921 { (eval echo configure:8922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8923 if test -z "$ac_err"; then
8924   rm -rf conftest*
8925   eval "ac_cv_header_$ac_safe=yes"
8926 else
8927   echo "$ac_err" >&5
8928   echo "configure: failed program was:" >&5
8929   cat conftest.$ac_ext >&5
8930   rm -rf conftest*
8931   eval "ac_cv_header_$ac_safe=no"
8932 fi
8933 rm -f conftest*
8934 fi
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8936   echo "$ac_t""yes" 1>&6
8937   ac_has_iconv_h=yes
8938 else
8939   echo "$ac_t""no" 1>&6
8940 ac_has_iconv_h=no
8941 fi
8942
8943     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8944 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8945 echo "configure:8946: checking for langinfo.h" >&5
8946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8947   echo $ac_n "(cached) $ac_c" 1>&6
8948 else
8949   cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 #include <langinfo.h>
8953 EOF
8954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8955 { (eval echo configure:8956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8957 if test -z "$ac_err"; then
8958   rm -rf conftest*
8959   eval "ac_cv_header_$ac_safe=yes"
8960 else
8961   echo "$ac_err" >&5
8962   echo "configure: failed program was:" >&5
8963   cat conftest.$ac_ext >&5
8964   rm -rf conftest*
8965   eval "ac_cv_header_$ac_safe=no"
8966 fi
8967 rm -f conftest*
8968 fi
8969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8970   echo "$ac_t""yes" 1>&6
8971   ac_has_langinfo_h=yes
8972 else
8973   echo "$ac_t""no" 1>&6
8974 ac_has_langinfo_h=no
8975 fi
8976
8977
8978         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8979 echo "configure:8980: checking for iconv in -liconv" >&5
8980 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8982   echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8984   ac_save_LIBS="$LIBS"
8985 LIBS="-liconv  $LIBS"
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* Override any gcc2 internal prototype to avoid an error.  */
8990 /* We use char because int might match the return type of a gcc2
8991     builtin and then its argument prototype would still apply.  */
8992 char iconv();
8993
8994 int main() {
8995 iconv()
8996 ; return 0; }
8997 EOF
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8999   rm -rf conftest*
9000   eval "ac_cv_lib_$ac_lib_var=yes"
9001 else
9002   echo "configure: failed program was:" >&5
9003   cat conftest.$ac_ext >&5
9004   rm -rf conftest*
9005   eval "ac_cv_lib_$ac_lib_var=no"
9006 fi
9007 rm -f conftest*
9008 LIBS="$ac_save_LIBS"
9009
9010 fi
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9012   echo "$ac_t""yes" 1>&6
9013   libiconv="-liconv"
9014 else
9015   echo "$ac_t""no" 1>&6
9016 fi
9017
9018     ac_save_LIBS="$LIBS"
9019     LIBS="$LIBS $libiconv"
9020
9021     for ac_func in iconv_open iconv_close iconv nl_langinfo
9022 do
9023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9024 echo "configure:9025: checking for $ac_func" >&5
9025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9026   echo $ac_n "(cached) $ac_c" 1>&6
9027 else
9028   cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 /* System header to define __stub macros and hopefully few prototypes,
9032     which can conflict with char $ac_func(); below.  */
9033 #include <assert.h>
9034 /* Override any gcc2 internal prototype to avoid an error.  */
9035 /* We use char because int might match the return type of a gcc2
9036     builtin and then its argument prototype would still apply.  */
9037 char $ac_func();
9038
9039 int main() {
9040
9041 /* The GNU C library defines this for functions which it implements
9042     to always fail with ENOSYS.  Some functions are actually named
9043     something starting with __ and the normal name is an alias.  */
9044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9045 choke me
9046 #else
9047 $ac_func();
9048 #endif
9049
9050 ; return 0; }
9051 EOF
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053   rm -rf conftest*
9054   eval "ac_cv_func_$ac_func=yes"
9055 else
9056   echo "configure: failed program was:" >&5
9057   cat conftest.$ac_ext >&5
9058   rm -rf conftest*
9059   eval "ac_cv_func_$ac_func=no"
9060 fi
9061 rm -f conftest*
9062 fi
9063
9064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9065   echo "$ac_t""yes" 1>&6
9066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9067   cat >> confdefs.h <<EOF
9068 #define $ac_tr_func 1
9069 EOF
9070  \
9071     ac_XPG2funcs=yes
9072 else
9073   echo "$ac_t""no" 1>&6
9074 ac_XPG2funcs=no
9075 fi
9076 done
9077
9078
9079     LIBS="$ac_save_LIBS"
9080
9081     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9082 echo "configure:9083: checking for XPG2 wchar_t support" >&5
9083     if test x"$ac_has_iconv_h" = xyes &&
9084        test x"$ac_has_langinfo_h" = xyes &&
9085        test x"$ac_XPG2funcs" = xyes; then
9086       ac_XPG2_wchar_t=yes
9087     else
9088       ac_XPG2_wchar_t=no
9089     fi
9090     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9091
9092             if test x"$ac_isoC99_wchar_t" = xyes && 
9093         test x"$ac_XPG2_wchar_t" = xyes; then
9094       cat >> confdefs.h <<\EOF
9095 #define _GLIBCPP_USE_WCHAR_T 1
9096 EOF
9097
9098       enable_wchar_t=yes
9099     fi
9100   fi
9101   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9102 echo "configure:9103: checking for enabled wchar_t specializations" >&5
9103   echo "$ac_t""$enable_wchar_t" 1>&6    
9104
9105       cat >> confdefs.h <<\EOF
9106 #define HAVE_COPYSIGN 1
9107 EOF
9108
9109       cat >> confdefs.h <<\EOF
9110 #define HAVE_COPYSIGNF 1
9111 EOF
9112
9113       cat >> confdefs.h <<\EOF
9114 #define HAVE_FINITEF 1
9115 EOF
9116
9117       cat >> confdefs.h <<\EOF
9118 #define HAVE_FINITE 1
9119 EOF
9120
9121       cat >> confdefs.h <<\EOF
9122 #define HAVE_FREXPF 1
9123 EOF
9124
9125       cat >> confdefs.h <<\EOF
9126 #define HAVE_HYPOTF 1
9127 EOF
9128
9129       cat >> confdefs.h <<\EOF
9130 #define HAVE_ISINF 1
9131 EOF
9132
9133       cat >> confdefs.h <<\EOF
9134 #define HAVE_ISINFF 1
9135 EOF
9136
9137       cat >> confdefs.h <<\EOF
9138 #define HAVE_ISNAN 1
9139 EOF
9140
9141       cat >> confdefs.h <<\EOF
9142 #define HAVE_ISNANF 1
9143 EOF
9144
9145       if test x"long_double_math_on_this_cpu" = x"yes"; then
9146         cat >> confdefs.h <<\EOF
9147 #define HAVE_FINITEL 1
9148 EOF
9149
9150         cat >> confdefs.h <<\EOF
9151 #define HAVE_ISINFL 1
9152 EOF
9153
9154         cat >> confdefs.h <<\EOF
9155 #define HAVE_ISNANL 1
9156 EOF
9157
9158       fi
9159       ;;
9160     *-qnx6.1* | *-qnx6.2*)
9161       os_include_dir="os/qnx/qnx6.1"
9162       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9163        
9164       
9165   # If we're not using GNU ld, then there's no point in even trying these
9166   # tests.  Check for that first.  We should have already tested for gld
9167   # by now (in libtool), but require it now just to be safe...
9168   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9169   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9170   
9171
9172   # The name set by libtool depends on the version of libtool.  Shame on us
9173   # for depending on an impl detail, but c'est la vie.  Older versions used
9174   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9175   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9176   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9177   # set (hence we're using an older libtool), then set it.
9178   if test x${with_gnu_ld+set} != xset; then
9179     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9180       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9181       with_gnu_ld=no
9182     else
9183       with_gnu_ld=$ac_cv_prog_gnu_ld
9184     fi
9185   fi
9186
9187   # Start by getting the version number.  I think the libtool test already
9188   # does some of this, but throws away the result.
9189   
9190   ldver=`$LD --version 2>/dev/null | head -1 | \
9191          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9192   
9193   glibcpp_gnu_ld_version=`echo $ldver | \
9194          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9195
9196   # Set --gc-sections.
9197   if test "$with_gnu_ld" = "notbroken"; then
9198     # GNU ld it is!  Joy and bunny rabbits!
9199
9200     # All these tests are for C++; save the language and the compiler flags.
9201     # Need to do this so that g++ won't try to link in libstdc++
9202     ac_test_CFLAGS="${CFLAGS+set}"
9203     ac_save_CFLAGS="$CFLAGS"
9204     CFLAGS='-x c++  -Wl,--gc-sections'
9205
9206     # Check for -Wl,--gc-sections
9207     # XXX This test is broken at the moment, as symbols required for
9208     # linking are now in libsupc++ (not built yet.....). In addition,
9209     # this test has cored on solaris in the past. In addition,
9210     # --gc-sections doesn't really work at the moment (keeps on discarding
9211     # used sections, first .eh_frame and now some of the glibc sections for
9212     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9213     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9214 echo "configure:9215: checking for ld that supports -Wl,--gc-sections" >&5
9215     if test "$cross_compiling" = yes; then
9216   ac_sectionLDflags=yes
9217 else
9218   cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221
9222      int main(void)
9223      {
9224        try { throw 1; }
9225        catch (...) { };
9226        return 0;
9227      }
9228     
9229 EOF
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9231 then
9232   ac_sectionLDflags=yes
9233 else
9234   echo "configure: failed program was:" >&5
9235   cat conftest.$ac_ext >&5
9236   rm -fr conftest*
9237   ac_sectionLDflags=no
9238 fi
9239 rm -fr conftest*
9240 fi
9241
9242     if test "$ac_test_CFLAGS" = set; then
9243       CFLAGS="$ac_save_CFLAGS"
9244     else
9245       # this is the suspicious part
9246       CFLAGS=''
9247     fi
9248     if test "$ac_sectionLDflags" = "yes"; then
9249       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9250     fi
9251     echo "$ac_t""$ac_sectionLDflags" 1>&6
9252   fi
9253
9254   # Set linker optimization flags.
9255   if test x"$with_gnu_ld" = x"yes"; then
9256     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9257   fi
9258
9259   
9260   
9261
9262       
9263         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9264 echo "configure:9265: checking for main in -lm" >&5
9265 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9267   echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9269   ac_save_LIBS="$LIBS"
9270 LIBS="-lm  $LIBS"
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274
9275 int main() {
9276 main()
9277 ; return 0; }
9278 EOF
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280   rm -rf conftest*
9281   eval "ac_cv_lib_$ac_lib_var=yes"
9282 else
9283   echo "configure: failed program was:" >&5
9284   cat conftest.$ac_ext >&5
9285   rm -rf conftest*
9286   eval "ac_cv_lib_$ac_lib_var=no"
9287 fi
9288 rm -f conftest*
9289 LIBS="$ac_save_LIBS"
9290
9291 fi
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293   echo "$ac_t""yes" 1>&6
9294     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296   cat >> confdefs.h <<EOF
9297 #define $ac_tr_lib 1
9298 EOF
9299
9300   LIBS="-lm $LIBS"
9301
9302 else
9303   echo "$ac_t""no" 1>&6
9304 fi
9305
9306   for ac_func in nan copysignf
9307 do
9308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9309 echo "configure:9310: checking for $ac_func" >&5
9310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9311   echo $ac_n "(cached) $ac_c" 1>&6
9312 else
9313   cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9316 /* System header to define __stub macros and hopefully few prototypes,
9317     which can conflict with char $ac_func(); below.  */
9318 #include <assert.h>
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 /* We use char because int might match the return type of a gcc2
9321     builtin and then its argument prototype would still apply.  */
9322 char $ac_func();
9323
9324 int main() {
9325
9326 /* The GNU C library defines this for functions which it implements
9327     to always fail with ENOSYS.  Some functions are actually named
9328     something starting with __ and the normal name is an alias.  */
9329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330 choke me
9331 #else
9332 $ac_func();
9333 #endif
9334
9335 ; return 0; }
9336 EOF
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9338   rm -rf conftest*
9339   eval "ac_cv_func_$ac_func=yes"
9340 else
9341   echo "configure: failed program was:" >&5
9342   cat conftest.$ac_ext >&5
9343   rm -rf conftest*
9344   eval "ac_cv_func_$ac_func=no"
9345 fi
9346 rm -f conftest*
9347 fi
9348
9349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9350   echo "$ac_t""yes" 1>&6
9351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9352   cat >> confdefs.h <<EOF
9353 #define $ac_tr_func 1
9354 EOF
9355  
9356 else
9357   echo "$ac_t""no" 1>&6
9358 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9359 fi
9360 done
9361
9362
9363     for ac_func in __signbit
9364 do
9365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9366 echo "configure:9367: checking for $ac_func" >&5
9367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9368   echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9370   cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 /* System header to define __stub macros and hopefully few prototypes,
9374     which can conflict with char $ac_func(); below.  */
9375 #include <assert.h>
9376 /* Override any gcc2 internal prototype to avoid an error.  */
9377 /* We use char because int might match the return type of a gcc2
9378     builtin and then its argument prototype would still apply.  */
9379 char $ac_func();
9380
9381 int main() {
9382
9383 /* The GNU C library defines this for functions which it implements
9384     to always fail with ENOSYS.  Some functions are actually named
9385     something starting with __ and the normal name is an alias.  */
9386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9387 choke me
9388 #else
9389 $ac_func();
9390 #endif
9391
9392 ; return 0; }
9393 EOF
9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9395   rm -rf conftest*
9396   eval "ac_cv_func_$ac_func=yes"
9397 else
9398   echo "configure: failed program was:" >&5
9399   cat conftest.$ac_ext >&5
9400   rm -rf conftest*
9401   eval "ac_cv_func_$ac_func=no"
9402 fi
9403 rm -f conftest*
9404 fi
9405
9406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9407   echo "$ac_t""yes" 1>&6
9408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9409   cat >> confdefs.h <<EOF
9410 #define $ac_tr_func 1
9411 EOF
9412  
9413 else
9414   echo "$ac_t""no" 1>&6
9415 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9416 fi
9417 done
9418
9419   for ac_func in __signbitf
9420 do
9421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9422 echo "configure:9423: checking for $ac_func" >&5
9423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9424   echo $ac_n "(cached) $ac_c" 1>&6
9425 else
9426   cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 /* System header to define __stub macros and hopefully few prototypes,
9430     which can conflict with char $ac_func(); below.  */
9431 #include <assert.h>
9432 /* Override any gcc2 internal prototype to avoid an error.  */
9433 /* We use char because int might match the return type of a gcc2
9434     builtin and then its argument prototype would still apply.  */
9435 char $ac_func();
9436
9437 int main() {
9438
9439 /* The GNU C library defines this for functions which it implements
9440     to always fail with ENOSYS.  Some functions are actually named
9441     something starting with __ and the normal name is an alias.  */
9442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9443 choke me
9444 #else
9445 $ac_func();
9446 #endif
9447
9448 ; return 0; }
9449 EOF
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9451   rm -rf conftest*
9452   eval "ac_cv_func_$ac_func=yes"
9453 else
9454   echo "configure: failed program was:" >&5
9455   cat conftest.$ac_ext >&5
9456   rm -rf conftest*
9457   eval "ac_cv_func_$ac_func=no"
9458 fi
9459 rm -f conftest*
9460 fi
9461
9462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9463   echo "$ac_t""yes" 1>&6
9464     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9465   cat >> confdefs.h <<EOF
9466 #define $ac_tr_func 1
9467 EOF
9468  
9469 else
9470   echo "$ac_t""no" 1>&6
9471 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9472 fi
9473 done
9474
9475
9476           if test x$ac_cv_func_copysignl = x"yes"; then
9477     for ac_func in __signbitl
9478 do
9479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9480 echo "configure:9481: checking for $ac_func" >&5
9481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9482   echo $ac_n "(cached) $ac_c" 1>&6
9483 else
9484   cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 /* System header to define __stub macros and hopefully few prototypes,
9488     which can conflict with char $ac_func(); below.  */
9489 #include <assert.h>
9490 /* Override any gcc2 internal prototype to avoid an error.  */
9491 /* We use char because int might match the return type of a gcc2
9492     builtin and then its argument prototype would still apply.  */
9493 char $ac_func();
9494
9495 int main() {
9496
9497 /* The GNU C library defines this for functions which it implements
9498     to always fail with ENOSYS.  Some functions are actually named
9499     something starting with __ and the normal name is an alias.  */
9500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9501 choke me
9502 #else
9503 $ac_func();
9504 #endif
9505
9506 ; return 0; }
9507 EOF
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9509   rm -rf conftest*
9510   eval "ac_cv_func_$ac_func=yes"
9511 else
9512   echo "configure: failed program was:" >&5
9513   cat conftest.$ac_ext >&5
9514   rm -rf conftest*
9515   eval "ac_cv_func_$ac_func=no"
9516 fi
9517 rm -f conftest*
9518 fi
9519
9520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9521   echo "$ac_t""yes" 1>&6
9522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9523   cat >> confdefs.h <<EOF
9524 #define $ac_tr_func 1
9525 EOF
9526  
9527 else
9528   echo "$ac_t""no" 1>&6
9529 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9530 fi
9531 done
9532
9533   fi
9534
9535   if test -n "$LIBMATHOBJS"; then
9536     need_libmath=yes
9537   fi
9538   
9539
9540       
9541   
9542       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9543 echo "configure:9544: checking for mbstate_t" >&5
9544   cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <wchar.h>
9548 int main() {
9549 mbstate_t teststate;
9550 ; return 0; }
9551 EOF
9552 if { (eval echo configure:9553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9553   rm -rf conftest*
9554   have_mbstate_t=yes
9555 else
9556   echo "configure: failed program was:" >&5
9557   cat conftest.$ac_ext >&5
9558   rm -rf conftest*
9559   have_mbstate_t=no
9560 fi
9561 rm -f conftest*
9562   echo "$ac_t""$have_mbstate_t" 1>&6
9563   if test x"$have_mbstate_t" = xyes; then
9564     cat >> confdefs.h <<\EOF
9565 #define HAVE_MBSTATE_T 1
9566 EOF
9567
9568   fi
9569
9570     for ac_hdr in wchar.h
9571 do
9572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9574 echo "configure:9575: checking for $ac_hdr" >&5
9575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9576   echo $ac_n "(cached) $ac_c" 1>&6
9577 else
9578   cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 #include <$ac_hdr>
9582 EOF
9583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9584 { (eval echo configure:9585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9586 if test -z "$ac_err"; then
9587   rm -rf conftest*
9588   eval "ac_cv_header_$ac_safe=yes"
9589 else
9590   echo "$ac_err" >&5
9591   echo "configure: failed program was:" >&5
9592   cat conftest.$ac_ext >&5
9593   rm -rf conftest*
9594   eval "ac_cv_header_$ac_safe=no"
9595 fi
9596 rm -f conftest*
9597 fi
9598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9599   echo "$ac_t""yes" 1>&6
9600     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9601   cat >> confdefs.h <<EOF
9602 #define $ac_tr_hdr 1
9603 EOF
9604  ac_has_wchar_h=yes
9605 else
9606   echo "$ac_t""no" 1>&6
9607 ac_has_wchar_h=no
9608 fi
9609 done
9610
9611   for ac_hdr in wctype.h
9612 do
9613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9615 echo "configure:9616: checking for $ac_hdr" >&5
9616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9617   echo $ac_n "(cached) $ac_c" 1>&6
9618 else
9619   cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <$ac_hdr>
9623 EOF
9624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9625 { (eval echo configure:9626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9627 if test -z "$ac_err"; then
9628   rm -rf conftest*
9629   eval "ac_cv_header_$ac_safe=yes"
9630 else
9631   echo "$ac_err" >&5
9632   echo "configure: failed program was:" >&5
9633   cat conftest.$ac_ext >&5
9634   rm -rf conftest*
9635   eval "ac_cv_header_$ac_safe=no"
9636 fi
9637 rm -f conftest*
9638 fi
9639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9640   echo "$ac_t""yes" 1>&6
9641     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9642   cat >> confdefs.h <<EOF
9643 #define $ac_tr_hdr 1
9644 EOF
9645  ac_has_wctype_h=yes
9646 else
9647   echo "$ac_t""no" 1>&6
9648 ac_has_wctype_h=no
9649 fi
9650 done
9651
9652
9653     if test x"$ac_has_wchar_h" = xyes &&
9654      test x"$ac_has_wctype_h" = xyes &&
9655      test x"$enable_c_mbchar" != xno; then
9656
9657             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9658 echo "configure:9659: checking for WCHAR_MIN and WCHAR_MAX" >&5
9659     cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9662 #include <wchar.h>
9663 int main() {
9664 int i = WCHAR_MIN; int j = WCHAR_MAX;
9665 ; return 0; }
9666 EOF
9667 if { (eval echo configure:9668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668   rm -rf conftest*
9669   has_wchar_minmax=yes
9670 else
9671   echo "configure: failed program was:" >&5
9672   cat conftest.$ac_ext >&5
9673   rm -rf conftest*
9674   has_wchar_minmax=no
9675 fi
9676 rm -f conftest*
9677     echo "$ac_t""$has_wchar_minmax" 1>&6
9678
9679             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9680 echo "configure:9681: checking for WEOF" >&5
9681     cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684
9685       #include <wchar.h>
9686       #include <stddef.h>
9687 int main() {
9688 wint_t i = WEOF;
9689 ; return 0; }
9690 EOF
9691 if { (eval echo configure:9692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9692   rm -rf conftest*
9693   has_weof=yes
9694 else
9695   echo "configure: failed program was:" >&5
9696   cat conftest.$ac_ext >&5
9697   rm -rf conftest*
9698   has_weof=no
9699 fi
9700 rm -f conftest*
9701     echo "$ac_t""$has_weof" 1>&6
9702
9703         ac_wfuncs=yes
9704     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9705 do
9706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9707 echo "configure:9708: checking for $ac_func" >&5
9708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9709   echo $ac_n "(cached) $ac_c" 1>&6
9710 else
9711   cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 /* System header to define __stub macros and hopefully few prototypes,
9715     which can conflict with char $ac_func(); below.  */
9716 #include <assert.h>
9717 /* Override any gcc2 internal prototype to avoid an error.  */
9718 /* We use char because int might match the return type of a gcc2
9719     builtin and then its argument prototype would still apply.  */
9720 char $ac_func();
9721
9722 int main() {
9723
9724 /* The GNU C library defines this for functions which it implements
9725     to always fail with ENOSYS.  Some functions are actually named
9726     something starting with __ and the normal name is an alias.  */
9727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9728 choke me
9729 #else
9730 $ac_func();
9731 #endif
9732
9733 ; return 0; }
9734 EOF
9735 if { (eval echo configure:9736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9736   rm -rf conftest*
9737   eval "ac_cv_func_$ac_func=yes"
9738 else
9739   echo "configure: failed program was:" >&5
9740   cat conftest.$ac_ext >&5
9741   rm -rf conftest*
9742   eval "ac_cv_func_$ac_func=no"
9743 fi
9744 rm -f conftest*
9745 fi
9746
9747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9748   echo "$ac_t""yes" 1>&6
9749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9750   cat >> confdefs.h <<EOF
9751 #define $ac_tr_func 1
9752 EOF
9753  
9754 else
9755   echo "$ac_t""no" 1>&6
9756 \
9757     ac_wfuncs=no
9758 fi
9759 done
9760
9761
9762         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9763     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9764     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9765     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9766     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9767     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9768 do
9769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9770 echo "configure:9771: checking for $ac_func" >&5
9771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9772   echo $ac_n "(cached) $ac_c" 1>&6
9773 else
9774   cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 /* System header to define __stub macros and hopefully few prototypes,
9778     which can conflict with char $ac_func(); below.  */
9779 #include <assert.h>
9780 /* Override any gcc2 internal prototype to avoid an error.  */
9781 /* We use char because int might match the return type of a gcc2
9782     builtin and then its argument prototype would still apply.  */
9783 char $ac_func();
9784
9785 int main() {
9786
9787 /* The GNU C library defines this for functions which it implements
9788     to always fail with ENOSYS.  Some functions are actually named
9789     something starting with __ and the normal name is an alias.  */
9790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9791 choke me
9792 #else
9793 $ac_func();
9794 #endif
9795
9796 ; return 0; }
9797 EOF
9798 if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9799   rm -rf conftest*
9800   eval "ac_cv_func_$ac_func=yes"
9801 else
9802   echo "configure: failed program was:" >&5
9803   cat conftest.$ac_ext >&5
9804   rm -rf conftest*
9805   eval "ac_cv_func_$ac_func=no"
9806 fi
9807 rm -f conftest*
9808 fi
9809
9810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9811   echo "$ac_t""yes" 1>&6
9812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9813   cat >> confdefs.h <<EOF
9814 #define $ac_tr_func 1
9815 EOF
9816  
9817 else
9818   echo "$ac_t""no" 1>&6
9819 \
9820     ac_wfuncs=no
9821 fi
9822 done
9823
9824
9825     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9826 echo "configure:9827: checking for ISO C99 wchar_t support" >&5
9827     if test x"$has_weof" = xyes &&
9828        test x"$has_wchar_minmax" = xyes &&
9829        test x"$ac_wfuncs" = xyes; then
9830       ac_isoC99_wchar_t=yes
9831     else
9832       ac_isoC99_wchar_t=no
9833     fi
9834     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9835
9836             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9837 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9838 echo "configure:9839: checking for iconv.h" >&5
9839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9840   echo $ac_n "(cached) $ac_c" 1>&6
9841 else
9842   cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <iconv.h>
9846 EOF
9847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9848 { (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9850 if test -z "$ac_err"; then
9851   rm -rf conftest*
9852   eval "ac_cv_header_$ac_safe=yes"
9853 else
9854   echo "$ac_err" >&5
9855   echo "configure: failed program was:" >&5
9856   cat conftest.$ac_ext >&5
9857   rm -rf conftest*
9858   eval "ac_cv_header_$ac_safe=no"
9859 fi
9860 rm -f conftest*
9861 fi
9862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9863   echo "$ac_t""yes" 1>&6
9864   ac_has_iconv_h=yes
9865 else
9866   echo "$ac_t""no" 1>&6
9867 ac_has_iconv_h=no
9868 fi
9869
9870     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9871 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9872 echo "configure:9873: checking for langinfo.h" >&5
9873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9874   echo $ac_n "(cached) $ac_c" 1>&6
9875 else
9876   cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 #include <langinfo.h>
9880 EOF
9881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9882 { (eval echo configure:9883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9884 if test -z "$ac_err"; then
9885   rm -rf conftest*
9886   eval "ac_cv_header_$ac_safe=yes"
9887 else
9888   echo "$ac_err" >&5
9889   echo "configure: failed program was:" >&5
9890   cat conftest.$ac_ext >&5
9891   rm -rf conftest*
9892   eval "ac_cv_header_$ac_safe=no"
9893 fi
9894 rm -f conftest*
9895 fi
9896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9897   echo "$ac_t""yes" 1>&6
9898   ac_has_langinfo_h=yes
9899 else
9900   echo "$ac_t""no" 1>&6
9901 ac_has_langinfo_h=no
9902 fi
9903
9904
9905         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9906 echo "configure:9907: checking for iconv in -liconv" >&5
9907 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9909   echo $ac_n "(cached) $ac_c" 1>&6
9910 else
9911   ac_save_LIBS="$LIBS"
9912 LIBS="-liconv  $LIBS"
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* Override any gcc2 internal prototype to avoid an error.  */
9917 /* We use char because int might match the return type of a gcc2
9918     builtin and then its argument prototype would still apply.  */
9919 char iconv();
9920
9921 int main() {
9922 iconv()
9923 ; return 0; }
9924 EOF
9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9926   rm -rf conftest*
9927   eval "ac_cv_lib_$ac_lib_var=yes"
9928 else
9929   echo "configure: failed program was:" >&5
9930   cat conftest.$ac_ext >&5
9931   rm -rf conftest*
9932   eval "ac_cv_lib_$ac_lib_var=no"
9933 fi
9934 rm -f conftest*
9935 LIBS="$ac_save_LIBS"
9936
9937 fi
9938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9939   echo "$ac_t""yes" 1>&6
9940   libiconv="-liconv"
9941 else
9942   echo "$ac_t""no" 1>&6
9943 fi
9944
9945     ac_save_LIBS="$LIBS"
9946     LIBS="$LIBS $libiconv"
9947
9948     for ac_func in iconv_open iconv_close iconv nl_langinfo
9949 do
9950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9951 echo "configure:9952: checking for $ac_func" >&5
9952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9953   echo $ac_n "(cached) $ac_c" 1>&6
9954 else
9955   cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9958 /* System header to define __stub macros and hopefully few prototypes,
9959     which can conflict with char $ac_func(); below.  */
9960 #include <assert.h>
9961 /* Override any gcc2 internal prototype to avoid an error.  */
9962 /* We use char because int might match the return type of a gcc2
9963     builtin and then its argument prototype would still apply.  */
9964 char $ac_func();
9965
9966 int main() {
9967
9968 /* The GNU C library defines this for functions which it implements
9969     to always fail with ENOSYS.  Some functions are actually named
9970     something starting with __ and the normal name is an alias.  */
9971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972 choke me
9973 #else
9974 $ac_func();
9975 #endif
9976
9977 ; return 0; }
9978 EOF
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9980   rm -rf conftest*
9981   eval "ac_cv_func_$ac_func=yes"
9982 else
9983   echo "configure: failed program was:" >&5
9984   cat conftest.$ac_ext >&5
9985   rm -rf conftest*
9986   eval "ac_cv_func_$ac_func=no"
9987 fi
9988 rm -f conftest*
9989 fi
9990
9991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9992   echo "$ac_t""yes" 1>&6
9993     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9994   cat >> confdefs.h <<EOF
9995 #define $ac_tr_func 1
9996 EOF
9997  \
9998     ac_XPG2funcs=yes
9999 else
10000   echo "$ac_t""no" 1>&6
10001 ac_XPG2funcs=no
10002 fi
10003 done
10004
10005
10006     LIBS="$ac_save_LIBS"
10007
10008     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10009 echo "configure:10010: checking for XPG2 wchar_t support" >&5
10010     if test x"$ac_has_iconv_h" = xyes &&
10011        test x"$ac_has_langinfo_h" = xyes &&
10012        test x"$ac_XPG2funcs" = xyes; then
10013       ac_XPG2_wchar_t=yes
10014     else
10015       ac_XPG2_wchar_t=no
10016     fi
10017     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10018
10019             if test x"$ac_isoC99_wchar_t" = xyes && 
10020         test x"$ac_XPG2_wchar_t" = xyes; then
10021       cat >> confdefs.h <<\EOF
10022 #define _GLIBCPP_USE_WCHAR_T 1
10023 EOF
10024
10025       enable_wchar_t=yes
10026     fi
10027   fi
10028   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10029 echo "configure:10030: checking for enabled wchar_t specializations" >&5
10030   echo "$ac_t""$enable_wchar_t" 1>&6    
10031
10032       cat >> confdefs.h <<\EOF
10033 #define HAVE_COSF 1
10034 EOF
10035
10036       cat >> confdefs.h <<\EOF
10037 #define HAVE_COSL 1
10038 EOF
10039
10040       cat >> confdefs.h <<\EOF
10041 #define HAVE_COSHF 1
10042 EOF
10043
10044       cat >> confdefs.h <<\EOF
10045 #define HAVE_COSHL 1
10046 EOF
10047
10048       cat >> confdefs.h <<\EOF
10049 #define HAVE_LOGF 1
10050 EOF
10051
10052       cat >> confdefs.h <<\EOF
10053 #define HAVE_LOGL 1
10054 EOF
10055
10056       cat >> confdefs.h <<\EOF
10057 #define HAVE_LOG10F 1
10058 EOF
10059
10060       cat >> confdefs.h <<\EOF
10061 #define HAVE_LOG10L 1
10062 EOF
10063
10064       cat >> confdefs.h <<\EOF
10065 #define HAVE_SINF 1
10066 EOF
10067
10068       cat >> confdefs.h <<\EOF
10069 #define HAVE_SINL 1
10070 EOF
10071
10072       cat >> confdefs.h <<\EOF
10073 #define HAVE_SINHF 1
10074 EOF
10075
10076       cat >> confdefs.h <<\EOF
10077 #define HAVE_SINHL 1
10078 EOF
10079
10080       ;;
10081     *-solaris*)
10082       case "$target" in
10083         *-solaris2.5)
10084           os_include_dir="os/solaris/solaris2.5"
10085           ;;
10086         *-solaris2.6)
10087           os_include_dir="os/solaris/solaris2.6"
10088           ;;
10089         *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10090           os_include_dir="os/solaris/solaris2.7"
10091           ;;
10092       esac
10093       cat >> confdefs.h <<\EOF
10094 #define HAVE_STRTOF 1
10095 EOF
10096
10097       cat >> confdefs.h <<\EOF
10098 #define HAVE_STRTOLD 1
10099 EOF
10100
10101       cat >> confdefs.h <<\EOF
10102 #define HAVE_MMAP 1
10103 EOF
10104  
10105       cat >> confdefs.h <<\EOF
10106 #define HAVE_COPYSIGN 1
10107 EOF
10108
10109       cat >> confdefs.h <<\EOF
10110 #define HAVE_ISNAN 1
10111 EOF
10112
10113       cat >> confdefs.h <<\EOF
10114 #define HAVE_ISNANF 1
10115 EOF
10116
10117       cat >> confdefs.h <<\EOF
10118 #define HAVE_MODFF 1
10119 EOF
10120
10121       cat >> confdefs.h <<\EOF
10122 #define HAVE_HYPOT 1
10123 EOF
10124
10125       ;;
10126     *-windiss*)
10127       os_include_dir="os/windiss"
10128       cat >> confdefs.h <<\EOF
10129 #define HAVE_ACOSF 1
10130 EOF
10131
10132       cat >> confdefs.h <<\EOF
10133 #define HAVE_ASINF 1
10134 EOF
10135
10136       cat >> confdefs.h <<\EOF
10137 #define HAVE_ATAN2F 1
10138 EOF
10139
10140       cat >> confdefs.h <<\EOF
10141 #define HAVE_ATANF 1
10142 EOF
10143
10144       cat >> confdefs.h <<\EOF
10145 #define HAVE_CEILF 1
10146 EOF
10147
10148       cat >> confdefs.h <<\EOF
10149 #define HAVE_COPYSIGN 1
10150 EOF
10151
10152       cat >> confdefs.h <<\EOF
10153 #define HAVE_COPYSIGNF 1
10154 EOF
10155
10156       cat >> confdefs.h <<\EOF
10157 #define HAVE_COSF 1
10158 EOF
10159
10160       cat >> confdefs.h <<\EOF
10161 #define HAVE_COSHF 1
10162 EOF
10163
10164       cat >> confdefs.h <<\EOF
10165 #define HAVE_EXPF 1
10166 EOF
10167
10168       cat >> confdefs.h <<\EOF
10169 #define HAVE_FABSF 1
10170 EOF
10171
10172       cat >> confdefs.h <<\EOF
10173 #define HAVE_FLOORF 1
10174 EOF
10175
10176       cat >> confdefs.h <<\EOF
10177 #define HAVE_FMODF 1
10178 EOF
10179
10180       cat >> confdefs.h <<\EOF
10181 #define HAVE_FREXPF 1
10182 EOF
10183
10184       cat >> confdefs.h <<\EOF
10185 #define HAVE_LDEXPF 1
10186 EOF
10187
10188       cat >> confdefs.h <<\EOF
10189 #define HAVE_LOG10F 1
10190 EOF
10191
10192       cat >> confdefs.h <<\EOF
10193 #define HAVE_LOGF 1
10194 EOF
10195
10196       cat >> confdefs.h <<\EOF
10197 #define HAVE_MODFF 1
10198 EOF
10199
10200       cat >> confdefs.h <<\EOF
10201 #define HAVE_POWF 1
10202 EOF
10203
10204       cat >> confdefs.h <<\EOF
10205 #define HAVE_SINF 1
10206 EOF
10207
10208       cat >> confdefs.h <<\EOF
10209 #define HAVE_SINHF 1
10210 EOF
10211
10212       cat >> confdefs.h <<\EOF
10213 #define HAVE_SQRTF 1
10214 EOF
10215
10216       cat >> confdefs.h <<\EOF
10217 #define HAVE_TANF 1
10218 EOF
10219
10220       cat >> confdefs.h <<\EOF
10221 #define HAVE_TANHF 1
10222 EOF
10223
10224       ;;
10225     *)
10226       if test "x${with_newlib}" = "xyes"; then
10227         os_include_dir="os/newlib"
10228         cat >> confdefs.h <<\EOF
10229 #define HAVE_HYPOT 1
10230 EOF
10231
10232
10233         # GLIBCPP_CHECK_STDLIB_SUPPORT
10234         cat >> confdefs.h <<\EOF
10235 #define HAVE_STRTOF 1
10236 EOF
10237         
10238         cat >> confdefs.h <<\EOF
10239 #define HAVE_STRTOLD 1
10240 EOF
10241         
10242         # AC_FUNC_MMAP
10243         cat >> confdefs.h <<\EOF
10244 #define HAVE_MMAP 1
10245 EOF
10246
10247
10248         cat >> confdefs.h <<\EOF
10249 #define HAVE_ACOSF 1
10250 EOF
10251
10252         cat >> confdefs.h <<\EOF
10253 #define HAVE_ASINF 1
10254 EOF
10255
10256         cat >> confdefs.h <<\EOF
10257 #define HAVE_ATAN2F 1
10258 EOF
10259
10260         cat >> confdefs.h <<\EOF
10261 #define HAVE_ATANF 1
10262 EOF
10263
10264         cat >> confdefs.h <<\EOF
10265 #define HAVE_CEILF 1
10266 EOF
10267
10268         cat >> confdefs.h <<\EOF
10269 #define HAVE_COPYSIGN 1
10270 EOF
10271
10272         cat >> confdefs.h <<\EOF
10273 #define HAVE_COPYSIGNF 1
10274 EOF
10275
10276         cat >> confdefs.h <<\EOF
10277 #define HAVE_COSF 1
10278 EOF
10279
10280         cat >> confdefs.h <<\EOF
10281 #define HAVE_COSHF 1
10282 EOF
10283
10284         cat >> confdefs.h <<\EOF
10285 #define HAVE_EXPF 1
10286 EOF
10287
10288         cat >> confdefs.h <<\EOF
10289 #define HAVE_FABSF 1
10290 EOF
10291
10292         cat >> confdefs.h <<\EOF
10293 #define HAVE_FLOORF 1
10294 EOF
10295
10296         cat >> confdefs.h <<\EOF
10297 #define HAVE_FMODF 1
10298 EOF
10299
10300         cat >> confdefs.h <<\EOF
10301 #define HAVE_FREXPF 1
10302 EOF
10303
10304         cat >> confdefs.h <<\EOF
10305 #define HAVE_LDEXPF 1
10306 EOF
10307
10308         cat >> confdefs.h <<\EOF
10309 #define HAVE_LOG10F 1
10310 EOF
10311
10312         cat >> confdefs.h <<\EOF
10313 #define HAVE_LOGF 1
10314 EOF
10315
10316         cat >> confdefs.h <<\EOF
10317 #define HAVE_MODFF 1
10318 EOF
10319
10320         cat >> confdefs.h <<\EOF
10321 #define HAVE_POWF 1
10322 EOF
10323
10324         cat >> confdefs.h <<\EOF
10325 #define HAVE_SINF 1
10326 EOF
10327
10328         cat >> confdefs.h <<\EOF
10329 #define HAVE_SINHF 1
10330 EOF
10331
10332         cat >> confdefs.h <<\EOF
10333 #define HAVE_SQRTF 1
10334 EOF
10335
10336         cat >> confdefs.h <<\EOF
10337 #define HAVE_TANF 1
10338 EOF
10339
10340         cat >> confdefs.h <<\EOF
10341 #define HAVE_TANHF 1
10342 EOF
10343
10344       else
10345         { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10346       fi 
10347      ;;
10348   esac
10349
10350   # At some point, we should differentiate between architectures
10351   # like x86, which have long double versions, and alpha/powerpc/etc.,
10352   # which don't. For the time being, punt.
10353   if test x"long_double_math_on_this_cpu" = x"yes"; then
10354     cat >> confdefs.h <<\EOF
10355 #define HAVE_ACOSL 1
10356 EOF
10357
10358     cat >> confdefs.h <<\EOF
10359 #define HAVE_ASINL 1
10360 EOF
10361
10362     cat >> confdefs.h <<\EOF
10363 #define HAVE_ATAN2L 1
10364 EOF
10365
10366     cat >> confdefs.h <<\EOF
10367 #define HAVE_ATANL 1
10368 EOF
10369
10370     cat >> confdefs.h <<\EOF
10371 #define HAVE_CEILL 1
10372 EOF
10373
10374     cat >> confdefs.h <<\EOF
10375 #define HAVE_COPYSIGNL 1
10376 EOF
10377
10378     cat >> confdefs.h <<\EOF
10379 #define HAVE_COSL 1
10380 EOF
10381
10382     cat >> confdefs.h <<\EOF
10383 #define HAVE_COSHL 1
10384 EOF
10385
10386     cat >> confdefs.h <<\EOF
10387 #define HAVE_EXPL 1
10388 EOF
10389
10390     cat >> confdefs.h <<\EOF
10391 #define HAVE_FABSL 1
10392 EOF
10393
10394     cat >> confdefs.h <<\EOF
10395 #define HAVE_FLOORL 1
10396 EOF
10397
10398     cat >> confdefs.h <<\EOF
10399 #define HAVE_FMODL 1
10400 EOF
10401
10402     cat >> confdefs.h <<\EOF
10403 #define HAVE_FREXPL 1
10404 EOF
10405
10406     cat >> confdefs.h <<\EOF
10407 #define HAVE_LDEXPL 1
10408 EOF
10409
10410     cat >> confdefs.h <<\EOF
10411 #define HAVE_LOG10L 1
10412 EOF
10413
10414     cat >> confdefs.h <<\EOF
10415 #define HAVE_LOGL 1
10416 EOF
10417
10418     cat >> confdefs.h <<\EOF
10419 #define HAVE_MODFL 1
10420 EOF
10421
10422     cat >> confdefs.h <<\EOF
10423 #define HAVE_POWL 1
10424 EOF
10425
10426     cat >> confdefs.h <<\EOF
10427 #define HAVE_SINCOSL 1
10428 EOF
10429
10430     cat >> confdefs.h <<\EOF
10431 #define HAVE_SINL 1
10432 EOF
10433
10434     cat >> confdefs.h <<\EOF
10435 #define HAVE_SINHL 1
10436 EOF
10437
10438     cat >> confdefs.h <<\EOF
10439 #define HAVE_SQRTL 1
10440 EOF
10441
10442     cat >> confdefs.h <<\EOF
10443 #define HAVE_TANL 1
10444 EOF
10445
10446     cat >> confdefs.h <<\EOF
10447 #define HAVE_TANHL 1
10448 EOF
10449
10450   fi
10451
10452 else
10453
10454   # We are being configured natively. We can do more elaborate tests
10455   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10456   # working.
10457   GLIBCPP_IS_CROSS_COMPILING=false
10458   CANADIAN=no
10459
10460   # Check for available headers.
10461   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10462   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10463   sys/types.h
10464 do
10465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10467 echo "configure:10468: checking for $ac_hdr" >&5
10468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10469   echo $ac_n "(cached) $ac_c" 1>&6
10470 else
10471   cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <$ac_hdr>
10475 EOF
10476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10477 { (eval echo configure:10478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10479 if test -z "$ac_err"; then
10480   rm -rf conftest*
10481   eval "ac_cv_header_$ac_safe=yes"
10482 else
10483   echo "$ac_err" >&5
10484   echo "configure: failed program was:" >&5
10485   cat conftest.$ac_ext >&5
10486   rm -rf conftest*
10487   eval "ac_cv_header_$ac_safe=no"
10488 fi
10489 rm -f conftest*
10490 fi
10491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10492   echo "$ac_t""yes" 1>&6
10493     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10494   cat >> confdefs.h <<EOF
10495 #define $ac_tr_hdr 1
10496 EOF
10497  
10498 else
10499   echo "$ac_t""no" 1>&6
10500 fi
10501 done
10502
10503
10504   
10505   # All these tests are for C++; save the language and the compiler flags.
10506   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10507   # found in GLIBCPP_CONFIGURE.
10508   
10509   ac_ext=C
10510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10511 ac_cpp='$CXXCPP $CPPFLAGS'
10512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10514 cross_compiling=$ac_cv_prog_cxx_cross
10515
10516   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10517   ac_save_CXXFLAGS="$CXXFLAGS"
10518
10519   # Check for maintainer-mode bits.
10520   if test x"$USE_MAINTAINER_MODE" = xno; then
10521     WERROR=''
10522   else
10523     WERROR='-Werror'
10524   fi
10525
10526   # Check for -ffunction-sections -fdata-sections
10527   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10528 echo "configure:10529: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10529   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10530   cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533
10534 int main() {
10535 int foo;
10536   
10537 ; return 0; }
10538 EOF
10539 if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10540   rm -rf conftest*
10541   ac_fdsections=yes
10542 else
10543   echo "configure: failed program was:" >&5
10544   cat conftest.$ac_ext >&5
10545   rm -rf conftest*
10546   ac_fdsections=no
10547 fi
10548 rm -f conftest*
10549   if test "$ac_test_CXXFLAGS" = set; then
10550     CXXFLAGS="$ac_save_CXXFLAGS"
10551   else
10552     # this is the suspicious part
10553     CXXFLAGS=''
10554   fi
10555   if test x"$ac_fdsections" = x"yes"; then
10556     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10557   fi
10558   echo "$ac_t""$ac_fdsections" 1>&6
10559
10560   ac_ext=c
10561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CPP $CPPFLAGS'
10563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cc_cross
10566
10567   
10568   
10569
10570   
10571   # If we're not using GNU ld, then there's no point in even trying these
10572   # tests.  Check for that first.  We should have already tested for gld
10573   # by now (in libtool), but require it now just to be safe...
10574   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10575   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10576   
10577
10578   # The name set by libtool depends on the version of libtool.  Shame on us
10579   # for depending on an impl detail, but c'est la vie.  Older versions used
10580   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10581   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10582   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10583   # set (hence we're using an older libtool), then set it.
10584   if test x${with_gnu_ld+set} != xset; then
10585     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10586       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10587       with_gnu_ld=no
10588     else
10589       with_gnu_ld=$ac_cv_prog_gnu_ld
10590     fi
10591   fi
10592
10593   # Start by getting the version number.  I think the libtool test already
10594   # does some of this, but throws away the result.
10595   
10596   ldver=`$LD --version 2>/dev/null | head -1 | \
10597          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10598   
10599   glibcpp_gnu_ld_version=`echo $ldver | \
10600          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10601
10602   # Set --gc-sections.
10603   if test "$with_gnu_ld" = "notbroken"; then
10604     # GNU ld it is!  Joy and bunny rabbits!
10605
10606     # All these tests are for C++; save the language and the compiler flags.
10607     # Need to do this so that g++ won't try to link in libstdc++
10608     ac_test_CFLAGS="${CFLAGS+set}"
10609     ac_save_CFLAGS="$CFLAGS"
10610     CFLAGS='-x c++  -Wl,--gc-sections'
10611
10612     # Check for -Wl,--gc-sections
10613     # XXX This test is broken at the moment, as symbols required for
10614     # linking are now in libsupc++ (not built yet.....). In addition,
10615     # this test has cored on solaris in the past. In addition,
10616     # --gc-sections doesn't really work at the moment (keeps on discarding
10617     # used sections, first .eh_frame and now some of the glibc sections for
10618     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10619     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10620 echo "configure:10621: checking for ld that supports -Wl,--gc-sections" >&5
10621     if test "$cross_compiling" = yes; then
10622   ac_sectionLDflags=yes
10623 else
10624   cat > conftest.$ac_ext <<EOF
10625 #line 10626 "configure"
10626 #include "confdefs.h"
10627
10628      int main(void)
10629      {
10630        try { throw 1; }
10631        catch (...) { };
10632        return 0;
10633      }
10634     
10635 EOF
10636 if { (eval echo configure:10637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10637 then
10638   ac_sectionLDflags=yes
10639 else
10640   echo "configure: failed program was:" >&5
10641   cat conftest.$ac_ext >&5
10642   rm -fr conftest*
10643   ac_sectionLDflags=no
10644 fi
10645 rm -fr conftest*
10646 fi
10647
10648     if test "$ac_test_CFLAGS" = set; then
10649       CFLAGS="$ac_save_CFLAGS"
10650     else
10651       # this is the suspicious part
10652       CFLAGS=''
10653     fi
10654     if test "$ac_sectionLDflags" = "yes"; then
10655       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10656     fi
10657     echo "$ac_t""$ac_sectionLDflags" 1>&6
10658   fi
10659
10660   # Set linker optimization flags.
10661   if test x"$with_gnu_ld" = x"yes"; then
10662     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10663   fi
10664
10665   
10666   
10667
10668   
10669   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10670   ac_save_CXXFLAGS="$CXXFLAGS"
10671   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
10672
10673     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10674 echo "configure:10675: checking for sin in -lm" >&5
10675 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10677   echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10679   ac_save_LIBS="$LIBS"
10680 LIBS="-lm  $LIBS"
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 /* Override any gcc2 internal prototype to avoid an error.  */
10685 /* We use char because int might match the return type of a gcc2
10686     builtin and then its argument prototype would still apply.  */
10687 char sin();
10688
10689 int main() {
10690 sin()
10691 ; return 0; }
10692 EOF
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10694   rm -rf conftest*
10695   eval "ac_cv_lib_$ac_lib_var=yes"
10696 else
10697   echo "configure: failed program was:" >&5
10698   cat conftest.$ac_ext >&5
10699   rm -rf conftest*
10700   eval "ac_cv_lib_$ac_lib_var=no"
10701 fi
10702 rm -f conftest*
10703 LIBS="$ac_save_LIBS"
10704
10705 fi
10706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10707   echo "$ac_t""yes" 1>&6
10708   libm="-lm"
10709 else
10710   echo "$ac_t""no" 1>&6
10711 fi
10712
10713   ac_save_LIBS="$LIBS"
10714   LIBS="$LIBS $libm"
10715
10716     
10717   
10718   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10719 echo "configure:10720: checking for isinf declaration" >&5
10720   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10721     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10722   echo $ac_n "(cached) $ac_c" 1>&6
10723 else
10724   
10725       
10726       ac_ext=C
10727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10728 ac_cpp='$CXXCPP $CPPFLAGS'
10729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10731 cross_compiling=$ac_cv_prog_cxx_cross
10732
10733       cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 #include <math.h>
10737                       #ifdef HAVE_IEEEFP_H
10738                       #include <ieeefp.h>
10739                       #endif
10740                      
10741 int main() {
10742  isinf(0);
10743 ; return 0; }
10744 EOF
10745 if { (eval echo configure:10746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10746   rm -rf conftest*
10747   glibcpp_cv_func_isinf_use=yes
10748 else
10749   echo "configure: failed program was:" >&5
10750   cat conftest.$ac_ext >&5
10751   rm -rf conftest*
10752   glibcpp_cv_func_isinf_use=no
10753 fi
10754 rm -f conftest*
10755       ac_ext=c
10756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10757 ac_cpp='$CPP $CPPFLAGS'
10758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10760 cross_compiling=$ac_cv_prog_cc_cross
10761
10762     
10763 fi
10764
10765   fi
10766   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10767
10768   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10769     for ac_func in isinf
10770 do
10771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10772 echo "configure:10773: checking for $ac_func" >&5
10773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10774   echo $ac_n "(cached) $ac_c" 1>&6
10775 else
10776   cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes,
10780     which can conflict with char $ac_func(); below.  */
10781 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error.  */
10783 /* We use char because int might match the return type of a gcc2
10784     builtin and then its argument prototype would still apply.  */
10785 char $ac_func();
10786
10787 int main() {
10788
10789 /* The GNU C library defines this for functions which it implements
10790     to always fail with ENOSYS.  Some functions are actually named
10791     something starting with __ and the normal name is an alias.  */
10792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10793 choke me
10794 #else
10795 $ac_func();
10796 #endif
10797
10798 ; return 0; }
10799 EOF
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10801   rm -rf conftest*
10802   eval "ac_cv_func_$ac_func=yes"
10803 else
10804   echo "configure: failed program was:" >&5
10805   cat conftest.$ac_ext >&5
10806   rm -rf conftest*
10807   eval "ac_cv_func_$ac_func=no"
10808 fi
10809 rm -f conftest*
10810 fi
10811
10812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10813   echo "$ac_t""yes" 1>&6
10814     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10815   cat >> confdefs.h <<EOF
10816 #define $ac_tr_func 1
10817 EOF
10818  
10819 else
10820   echo "$ac_t""no" 1>&6
10821 fi
10822 done
10823
10824   else
10825     
10826   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10827 echo "configure:10828: checking for _isinf declaration" >&5
10828   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10829     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10830   echo $ac_n "(cached) $ac_c" 1>&6
10831 else
10832   
10833       
10834       ac_ext=C
10835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10836 ac_cpp='$CXXCPP $CPPFLAGS'
10837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10839 cross_compiling=$ac_cv_prog_cxx_cross
10840
10841       cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 #include <math.h>
10845                       #ifdef HAVE_IEEEFP_H
10846                       #include <ieeefp.h>
10847                       #endif
10848                      
10849 int main() {
10850  _isinf(0);
10851 ; return 0; }
10852 EOF
10853 if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10854   rm -rf conftest*
10855   glibcpp_cv_func__isinf_use=yes
10856 else
10857   echo "configure: failed program was:" >&5
10858   cat conftest.$ac_ext >&5
10859   rm -rf conftest*
10860   glibcpp_cv_func__isinf_use=no
10861 fi
10862 rm -f conftest*
10863       ac_ext=c
10864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10865 ac_cpp='$CPP $CPPFLAGS'
10866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10868 cross_compiling=$ac_cv_prog_cc_cross
10869
10870     
10871 fi
10872
10873   fi
10874   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10875
10876     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10877       for ac_func in _isinf
10878 do
10879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_func" >&5
10881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10882   echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10884   cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 /* System header to define __stub macros and hopefully few prototypes,
10888     which can conflict with char $ac_func(); below.  */
10889 #include <assert.h>
10890 /* Override any gcc2 internal prototype to avoid an error.  */
10891 /* We use char because int might match the return type of a gcc2
10892     builtin and then its argument prototype would still apply.  */
10893 char $ac_func();
10894
10895 int main() {
10896
10897 /* The GNU C library defines this for functions which it implements
10898     to always fail with ENOSYS.  Some functions are actually named
10899     something starting with __ and the normal name is an alias.  */
10900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10901 choke me
10902 #else
10903 $ac_func();
10904 #endif
10905
10906 ; return 0; }
10907 EOF
10908 if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10909   rm -rf conftest*
10910   eval "ac_cv_func_$ac_func=yes"
10911 else
10912   echo "configure: failed program was:" >&5
10913   cat conftest.$ac_ext >&5
10914   rm -rf conftest*
10915   eval "ac_cv_func_$ac_func=no"
10916 fi
10917 rm -f conftest*
10918 fi
10919
10920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10921   echo "$ac_t""yes" 1>&6
10922     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10923   cat >> confdefs.h <<EOF
10924 #define $ac_tr_func 1
10925 EOF
10926  
10927 else
10928   echo "$ac_t""no" 1>&6
10929 fi
10930 done
10931
10932     fi
10933   fi
10934
10935   
10936   
10937   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10938 echo "configure:10939: checking for isnan declaration" >&5
10939   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10940     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10941   echo $ac_n "(cached) $ac_c" 1>&6
10942 else
10943   
10944       
10945       ac_ext=C
10946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10947 ac_cpp='$CXXCPP $CPPFLAGS'
10948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10950 cross_compiling=$ac_cv_prog_cxx_cross
10951
10952       cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10955 #include <math.h>
10956                       #ifdef HAVE_IEEEFP_H
10957                       #include <ieeefp.h>
10958                       #endif
10959                      
10960 int main() {
10961  isnan(0);
10962 ; return 0; }
10963 EOF
10964 if { (eval echo configure:10965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10965   rm -rf conftest*
10966   glibcpp_cv_func_isnan_use=yes
10967 else
10968   echo "configure: failed program was:" >&5
10969   cat conftest.$ac_ext >&5
10970   rm -rf conftest*
10971   glibcpp_cv_func_isnan_use=no
10972 fi
10973 rm -f conftest*
10974       ac_ext=c
10975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10976 ac_cpp='$CPP $CPPFLAGS'
10977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10979 cross_compiling=$ac_cv_prog_cc_cross
10980
10981     
10982 fi
10983
10984   fi
10985   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10986
10987   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10988     for ac_func in isnan
10989 do
10990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10991 echo "configure:10992: checking for $ac_func" >&5
10992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10993   echo $ac_n "(cached) $ac_c" 1>&6
10994 else
10995   cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 /* System header to define __stub macros and hopefully few prototypes,
10999     which can conflict with char $ac_func(); below.  */
11000 #include <assert.h>
11001 /* Override any gcc2 internal prototype to avoid an error.  */
11002 /* We use char because int might match the return type of a gcc2
11003     builtin and then its argument prototype would still apply.  */
11004 char $ac_func();
11005
11006 int main() {
11007
11008 /* The GNU C library defines this for functions which it implements
11009     to always fail with ENOSYS.  Some functions are actually named
11010     something starting with __ and the normal name is an alias.  */
11011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11012 choke me
11013 #else
11014 $ac_func();
11015 #endif
11016
11017 ; return 0; }
11018 EOF
11019 if { (eval echo configure:11020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11020   rm -rf conftest*
11021   eval "ac_cv_func_$ac_func=yes"
11022 else
11023   echo "configure: failed program was:" >&5
11024   cat conftest.$ac_ext >&5
11025   rm -rf conftest*
11026   eval "ac_cv_func_$ac_func=no"
11027 fi
11028 rm -f conftest*
11029 fi
11030
11031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11032   echo "$ac_t""yes" 1>&6
11033     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11034   cat >> confdefs.h <<EOF
11035 #define $ac_tr_func 1
11036 EOF
11037  
11038 else
11039   echo "$ac_t""no" 1>&6
11040 fi
11041 done
11042
11043   else
11044     
11045   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11046 echo "configure:11047: checking for _isnan declaration" >&5
11047   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11048     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11049   echo $ac_n "(cached) $ac_c" 1>&6
11050 else
11051   
11052       
11053       ac_ext=C
11054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11055 ac_cpp='$CXXCPP $CPPFLAGS'
11056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11058 cross_compiling=$ac_cv_prog_cxx_cross
11059
11060       cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 #include <math.h>
11064                       #ifdef HAVE_IEEEFP_H
11065                       #include <ieeefp.h>
11066                       #endif
11067                      
11068 int main() {
11069  _isnan(0);
11070 ; return 0; }
11071 EOF
11072 if { (eval echo configure:11073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11073   rm -rf conftest*
11074   glibcpp_cv_func__isnan_use=yes
11075 else
11076   echo "configure: failed program was:" >&5
11077   cat conftest.$ac_ext >&5
11078   rm -rf conftest*
11079   glibcpp_cv_func__isnan_use=no
11080 fi
11081 rm -f conftest*
11082       ac_ext=c
11083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11084 ac_cpp='$CPP $CPPFLAGS'
11085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11087 cross_compiling=$ac_cv_prog_cc_cross
11088
11089     
11090 fi
11091
11092   fi
11093   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11094
11095     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11096       for ac_func in _isnan
11097 do
11098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11099 echo "configure:11100: checking for $ac_func" >&5
11100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11101   echo $ac_n "(cached) $ac_c" 1>&6
11102 else
11103   cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure"
11105 #include "confdefs.h"
11106 /* System header to define __stub macros and hopefully few prototypes,
11107     which can conflict with char $ac_func(); below.  */
11108 #include <assert.h>
11109 /* Override any gcc2 internal prototype to avoid an error.  */
11110 /* We use char because int might match the return type of a gcc2
11111     builtin and then its argument prototype would still apply.  */
11112 char $ac_func();
11113
11114 int main() {
11115
11116 /* The GNU C library defines this for functions which it implements
11117     to always fail with ENOSYS.  Some functions are actually named
11118     something starting with __ and the normal name is an alias.  */
11119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11120 choke me
11121 #else
11122 $ac_func();
11123 #endif
11124
11125 ; return 0; }
11126 EOF
11127 if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11128   rm -rf conftest*
11129   eval "ac_cv_func_$ac_func=yes"
11130 else
11131   echo "configure: failed program was:" >&5
11132   cat conftest.$ac_ext >&5
11133   rm -rf conftest*
11134   eval "ac_cv_func_$ac_func=no"
11135 fi
11136 rm -f conftest*
11137 fi
11138
11139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11140   echo "$ac_t""yes" 1>&6
11141     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11142   cat >> confdefs.h <<EOF
11143 #define $ac_tr_func 1
11144 EOF
11145  
11146 else
11147   echo "$ac_t""no" 1>&6
11148 fi
11149 done
11150
11151     fi
11152   fi
11153
11154   
11155   
11156   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11157 echo "configure:11158: checking for finite declaration" >&5
11158   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11159     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11160   echo $ac_n "(cached) $ac_c" 1>&6
11161 else
11162   
11163       
11164       ac_ext=C
11165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11169 cross_compiling=$ac_cv_prog_cxx_cross
11170
11171       cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 #include <math.h>
11175                       #ifdef HAVE_IEEEFP_H
11176                       #include <ieeefp.h>
11177                       #endif
11178                      
11179 int main() {
11180  finite(0);
11181 ; return 0; }
11182 EOF
11183 if { (eval echo configure:11184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11184   rm -rf conftest*
11185   glibcpp_cv_func_finite_use=yes
11186 else
11187   echo "configure: failed program was:" >&5
11188   cat conftest.$ac_ext >&5
11189   rm -rf conftest*
11190   glibcpp_cv_func_finite_use=no
11191 fi
11192 rm -f conftest*
11193       ac_ext=c
11194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11195 ac_cpp='$CPP $CPPFLAGS'
11196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11198 cross_compiling=$ac_cv_prog_cc_cross
11199
11200     
11201 fi
11202
11203   fi
11204   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11205
11206   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11207     for ac_func in finite
11208 do
11209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11210 echo "configure:11211: checking for $ac_func" >&5
11211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11212   echo $ac_n "(cached) $ac_c" 1>&6
11213 else
11214   cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11217 /* System header to define __stub macros and hopefully few prototypes,
11218     which can conflict with char $ac_func(); below.  */
11219 #include <assert.h>
11220 /* Override any gcc2 internal prototype to avoid an error.  */
11221 /* We use char because int might match the return type of a gcc2
11222     builtin and then its argument prototype would still apply.  */
11223 char $ac_func();
11224
11225 int main() {
11226
11227 /* The GNU C library defines this for functions which it implements
11228     to always fail with ENOSYS.  Some functions are actually named
11229     something starting with __ and the normal name is an alias.  */
11230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11231 choke me
11232 #else
11233 $ac_func();
11234 #endif
11235
11236 ; return 0; }
11237 EOF
11238 if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11239   rm -rf conftest*
11240   eval "ac_cv_func_$ac_func=yes"
11241 else
11242   echo "configure: failed program was:" >&5
11243   cat conftest.$ac_ext >&5
11244   rm -rf conftest*
11245   eval "ac_cv_func_$ac_func=no"
11246 fi
11247 rm -f conftest*
11248 fi
11249
11250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11251   echo "$ac_t""yes" 1>&6
11252     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11253   cat >> confdefs.h <<EOF
11254 #define $ac_tr_func 1
11255 EOF
11256  
11257 else
11258   echo "$ac_t""no" 1>&6
11259 fi
11260 done
11261
11262   else
11263     
11264   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11265 echo "configure:11266: checking for _finite declaration" >&5
11266   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11267     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11268   echo $ac_n "(cached) $ac_c" 1>&6
11269 else
11270   
11271       
11272       ac_ext=C
11273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11274 ac_cpp='$CXXCPP $CPPFLAGS'
11275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11277 cross_compiling=$ac_cv_prog_cxx_cross
11278
11279       cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 #include <math.h>
11283                       #ifdef HAVE_IEEEFP_H
11284                       #include <ieeefp.h>
11285                       #endif
11286                      
11287 int main() {
11288  _finite(0);
11289 ; return 0; }
11290 EOF
11291 if { (eval echo configure:11292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11292   rm -rf conftest*
11293   glibcpp_cv_func__finite_use=yes
11294 else
11295   echo "configure: failed program was:" >&5
11296   cat conftest.$ac_ext >&5
11297   rm -rf conftest*
11298   glibcpp_cv_func__finite_use=no
11299 fi
11300 rm -f conftest*
11301       ac_ext=c
11302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11303 ac_cpp='$CPP $CPPFLAGS'
11304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11306 cross_compiling=$ac_cv_prog_cc_cross
11307
11308     
11309 fi
11310
11311   fi
11312   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11313
11314     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11315       for ac_func in _finite
11316 do
11317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11318 echo "configure:11319: checking for $ac_func" >&5
11319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11320   echo $ac_n "(cached) $ac_c" 1>&6
11321 else
11322   cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure"
11324 #include "confdefs.h"
11325 /* System header to define __stub macros and hopefully few prototypes,
11326     which can conflict with char $ac_func(); below.  */
11327 #include <assert.h>
11328 /* Override any gcc2 internal prototype to avoid an error.  */
11329 /* We use char because int might match the return type of a gcc2
11330     builtin and then its argument prototype would still apply.  */
11331 char $ac_func();
11332
11333 int main() {
11334
11335 /* The GNU C library defines this for functions which it implements
11336     to always fail with ENOSYS.  Some functions are actually named
11337     something starting with __ and the normal name is an alias.  */
11338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11339 choke me
11340 #else
11341 $ac_func();
11342 #endif
11343
11344 ; return 0; }
11345 EOF
11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11347   rm -rf conftest*
11348   eval "ac_cv_func_$ac_func=yes"
11349 else
11350   echo "configure: failed program was:" >&5
11351   cat conftest.$ac_ext >&5
11352   rm -rf conftest*
11353   eval "ac_cv_func_$ac_func=no"
11354 fi
11355 rm -f conftest*
11356 fi
11357
11358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11359   echo "$ac_t""yes" 1>&6
11360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11361   cat >> confdefs.h <<EOF
11362 #define $ac_tr_func 1
11363 EOF
11364  
11365 else
11366   echo "$ac_t""no" 1>&6
11367 fi
11368 done
11369
11370     fi
11371   fi
11372
11373   
11374   
11375   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11376 echo "configure:11377: checking for copysign declaration" >&5
11377   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11378     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11379   echo $ac_n "(cached) $ac_c" 1>&6
11380 else
11381   
11382       
11383       ac_ext=C
11384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11385 ac_cpp='$CXXCPP $CPPFLAGS'
11386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11388 cross_compiling=$ac_cv_prog_cxx_cross
11389
11390       cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure"
11392 #include "confdefs.h"
11393 #include <math.h>
11394 int main() {
11395  copysign(0, 0);
11396 ; return 0; }
11397 EOF
11398 if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399   rm -rf conftest*
11400   glibcpp_cv_func_copysign_use=yes
11401 else
11402   echo "configure: failed program was:" >&5
11403   cat conftest.$ac_ext >&5
11404   rm -rf conftest*
11405   glibcpp_cv_func_copysign_use=no
11406 fi
11407 rm -f conftest*
11408       ac_ext=c
11409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11410 ac_cpp='$CPP $CPPFLAGS'
11411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11413 cross_compiling=$ac_cv_prog_cc_cross
11414
11415     
11416 fi
11417
11418   fi
11419   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11420
11421   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11422     for ac_func in copysign
11423 do
11424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11425 echo "configure:11426: checking for $ac_func" >&5
11426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11427   echo $ac_n "(cached) $ac_c" 1>&6
11428 else
11429   cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 /* System header to define __stub macros and hopefully few prototypes,
11433     which can conflict with char $ac_func(); below.  */
11434 #include <assert.h>
11435 /* Override any gcc2 internal prototype to avoid an error.  */
11436 /* We use char because int might match the return type of a gcc2
11437     builtin and then its argument prototype would still apply.  */
11438 char $ac_func();
11439
11440 int main() {
11441
11442 /* The GNU C library defines this for functions which it implements
11443     to always fail with ENOSYS.  Some functions are actually named
11444     something starting with __ and the normal name is an alias.  */
11445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11446 choke me
11447 #else
11448 $ac_func();
11449 #endif
11450
11451 ; return 0; }
11452 EOF
11453 if { (eval echo configure:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11454   rm -rf conftest*
11455   eval "ac_cv_func_$ac_func=yes"
11456 else
11457   echo "configure: failed program was:" >&5
11458   cat conftest.$ac_ext >&5
11459   rm -rf conftest*
11460   eval "ac_cv_func_$ac_func=no"
11461 fi
11462 rm -f conftest*
11463 fi
11464
11465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11466   echo "$ac_t""yes" 1>&6
11467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11468   cat >> confdefs.h <<EOF
11469 #define $ac_tr_func 1
11470 EOF
11471  
11472 else
11473   echo "$ac_t""no" 1>&6
11474 fi
11475 done
11476
11477   else
11478     
11479   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11480 echo "configure:11481: checking for _copysign declaration" >&5
11481   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11482     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11483   echo $ac_n "(cached) $ac_c" 1>&6
11484 else
11485   
11486       
11487       ac_ext=C
11488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11489 ac_cpp='$CXXCPP $CPPFLAGS'
11490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11492 cross_compiling=$ac_cv_prog_cxx_cross
11493
11494       cat > conftest.$ac_ext <<EOF
11495 #line 11496 "configure"
11496 #include "confdefs.h"
11497 #include <math.h>
11498 int main() {
11499  _copysign(0, 0);
11500 ; return 0; }
11501 EOF
11502 if { (eval echo configure:11503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11503   rm -rf conftest*
11504   glibcpp_cv_func__copysign_use=yes
11505 else
11506   echo "configure: failed program was:" >&5
11507   cat conftest.$ac_ext >&5
11508   rm -rf conftest*
11509   glibcpp_cv_func__copysign_use=no
11510 fi
11511 rm -f conftest*
11512       ac_ext=c
11513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11514 ac_cpp='$CPP $CPPFLAGS'
11515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11517 cross_compiling=$ac_cv_prog_cc_cross
11518
11519     
11520 fi
11521
11522   fi
11523   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11524
11525     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11526       for ac_func in _copysign
11527 do
11528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11529 echo "configure:11530: checking for $ac_func" >&5
11530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11531   echo $ac_n "(cached) $ac_c" 1>&6
11532 else
11533   cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 /* System header to define __stub macros and hopefully few prototypes,
11537     which can conflict with char $ac_func(); below.  */
11538 #include <assert.h>
11539 /* Override any gcc2 internal prototype to avoid an error.  */
11540 /* We use char because int might match the return type of a gcc2
11541     builtin and then its argument prototype would still apply.  */
11542 char $ac_func();
11543
11544 int main() {
11545
11546 /* The GNU C library defines this for functions which it implements
11547     to always fail with ENOSYS.  Some functions are actually named
11548     something starting with __ and the normal name is an alias.  */
11549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11550 choke me
11551 #else
11552 $ac_func();
11553 #endif
11554
11555 ; return 0; }
11556 EOF
11557 if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11558   rm -rf conftest*
11559   eval "ac_cv_func_$ac_func=yes"
11560 else
11561   echo "configure: failed program was:" >&5
11562   cat conftest.$ac_ext >&5
11563   rm -rf conftest*
11564   eval "ac_cv_func_$ac_func=no"
11565 fi
11566 rm -f conftest*
11567 fi
11568
11569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11570   echo "$ac_t""yes" 1>&6
11571     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11572   cat >> confdefs.h <<EOF
11573 #define $ac_tr_func 1
11574 EOF
11575  
11576 else
11577   echo "$ac_t""no" 1>&6
11578 fi
11579 done
11580
11581     fi
11582   fi
11583
11584   
11585   
11586   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11587 echo "configure:11588: checking for sincos declaration" >&5
11588   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11589     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11590   echo $ac_n "(cached) $ac_c" 1>&6
11591 else
11592   
11593       
11594       ac_ext=C
11595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11596 ac_cpp='$CXXCPP $CPPFLAGS'
11597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11599 cross_compiling=$ac_cv_prog_cxx_cross
11600
11601       cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 #include <math.h>
11605 int main() {
11606  sincos(0, 0, 0);
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11610   rm -rf conftest*
11611   glibcpp_cv_func_sincos_use=yes
11612 else
11613   echo "configure: failed program was:" >&5
11614   cat conftest.$ac_ext >&5
11615   rm -rf conftest*
11616   glibcpp_cv_func_sincos_use=no
11617 fi
11618 rm -f conftest*
11619       ac_ext=c
11620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11624 cross_compiling=$ac_cv_prog_cc_cross
11625
11626     
11627 fi
11628
11629   fi
11630   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11631
11632   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11633     for ac_func in sincos
11634 do
11635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11636 echo "configure:11637: checking for $ac_func" >&5
11637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11638   echo $ac_n "(cached) $ac_c" 1>&6
11639 else
11640   cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643 /* System header to define __stub macros and hopefully few prototypes,
11644     which can conflict with char $ac_func(); below.  */
11645 #include <assert.h>
11646 /* Override any gcc2 internal prototype to avoid an error.  */
11647 /* We use char because int might match the return type of a gcc2
11648     builtin and then its argument prototype would still apply.  */
11649 char $ac_func();
11650
11651 int main() {
11652
11653 /* The GNU C library defines this for functions which it implements
11654     to always fail with ENOSYS.  Some functions are actually named
11655     something starting with __ and the normal name is an alias.  */
11656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11657 choke me
11658 #else
11659 $ac_func();
11660 #endif
11661
11662 ; return 0; }
11663 EOF
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11665   rm -rf conftest*
11666   eval "ac_cv_func_$ac_func=yes"
11667 else
11668   echo "configure: failed program was:" >&5
11669   cat conftest.$ac_ext >&5
11670   rm -rf conftest*
11671   eval "ac_cv_func_$ac_func=no"
11672 fi
11673 rm -f conftest*
11674 fi
11675
11676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11677   echo "$ac_t""yes" 1>&6
11678     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11679   cat >> confdefs.h <<EOF
11680 #define $ac_tr_func 1
11681 EOF
11682  
11683 else
11684   echo "$ac_t""no" 1>&6
11685 fi
11686 done
11687
11688   else
11689     
11690   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11691 echo "configure:11692: checking for _sincos declaration" >&5
11692   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11693     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11694   echo $ac_n "(cached) $ac_c" 1>&6
11695 else
11696   
11697       
11698       ac_ext=C
11699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11700 ac_cpp='$CXXCPP $CPPFLAGS'
11701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11703 cross_compiling=$ac_cv_prog_cxx_cross
11704
11705       cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11708 #include <math.h>
11709 int main() {
11710  _sincos(0, 0, 0);
11711 ; return 0; }
11712 EOF
11713 if { (eval echo configure:11714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11714   rm -rf conftest*
11715   glibcpp_cv_func__sincos_use=yes
11716 else
11717   echo "configure: failed program was:" >&5
11718   cat conftest.$ac_ext >&5
11719   rm -rf conftest*
11720   glibcpp_cv_func__sincos_use=no
11721 fi
11722 rm -f conftest*
11723       ac_ext=c
11724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11728 cross_compiling=$ac_cv_prog_cc_cross
11729
11730     
11731 fi
11732
11733   fi
11734   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11735
11736     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11737       for ac_func in _sincos
11738 do
11739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11740 echo "configure:11741: checking for $ac_func" >&5
11741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11742   echo $ac_n "(cached) $ac_c" 1>&6
11743 else
11744   cat > conftest.$ac_ext <<EOF
11745 #line 11746 "configure"
11746 #include "confdefs.h"
11747 /* System header to define __stub macros and hopefully few prototypes,
11748     which can conflict with char $ac_func(); below.  */
11749 #include <assert.h>
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 /* We use char because int might match the return type of a gcc2
11752     builtin and then its argument prototype would still apply.  */
11753 char $ac_func();
11754
11755 int main() {
11756
11757 /* The GNU C library defines this for functions which it implements
11758     to always fail with ENOSYS.  Some functions are actually named
11759     something starting with __ and the normal name is an alias.  */
11760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11761 choke me
11762 #else
11763 $ac_func();
11764 #endif
11765
11766 ; return 0; }
11767 EOF
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11769   rm -rf conftest*
11770   eval "ac_cv_func_$ac_func=yes"
11771 else
11772   echo "configure: failed program was:" >&5
11773   cat conftest.$ac_ext >&5
11774   rm -rf conftest*
11775   eval "ac_cv_func_$ac_func=no"
11776 fi
11777 rm -f conftest*
11778 fi
11779
11780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11781   echo "$ac_t""yes" 1>&6
11782     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11783   cat >> confdefs.h <<EOF
11784 #define $ac_tr_func 1
11785 EOF
11786  
11787 else
11788   echo "$ac_t""no" 1>&6
11789 fi
11790 done
11791
11792     fi
11793   fi
11794
11795   
11796   
11797   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11798 echo "configure:11799: checking for fpclass declaration" >&5
11799   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11800     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11801   echo $ac_n "(cached) $ac_c" 1>&6
11802 else
11803   
11804       
11805       ac_ext=C
11806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11807 ac_cpp='$CXXCPP $CPPFLAGS'
11808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11810 cross_compiling=$ac_cv_prog_cxx_cross
11811
11812       cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 #include <math.h>
11816                       #ifdef HAVE_IEEEFP_H
11817                       #include <ieeefp.h>
11818                       #endif
11819                      
11820 int main() {
11821  fpclass(0);
11822 ; return 0; }
11823 EOF
11824 if { (eval echo configure:11825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11825   rm -rf conftest*
11826   glibcpp_cv_func_fpclass_use=yes
11827 else
11828   echo "configure: failed program was:" >&5
11829   cat conftest.$ac_ext >&5
11830   rm -rf conftest*
11831   glibcpp_cv_func_fpclass_use=no
11832 fi
11833 rm -f conftest*
11834       ac_ext=c
11835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11836 ac_cpp='$CPP $CPPFLAGS'
11837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11839 cross_compiling=$ac_cv_prog_cc_cross
11840
11841     
11842 fi
11843
11844   fi
11845   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11846
11847   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11848     for ac_func in fpclass
11849 do
11850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11851 echo "configure:11852: checking for $ac_func" >&5
11852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11853   echo $ac_n "(cached) $ac_c" 1>&6
11854 else
11855   cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858 /* System header to define __stub macros and hopefully few prototypes,
11859     which can conflict with char $ac_func(); below.  */
11860 #include <assert.h>
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 /* We use char because int might match the return type of a gcc2
11863     builtin and then its argument prototype would still apply.  */
11864 char $ac_func();
11865
11866 int main() {
11867
11868 /* The GNU C library defines this for functions which it implements
11869     to always fail with ENOSYS.  Some functions are actually named
11870     something starting with __ and the normal name is an alias.  */
11871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11872 choke me
11873 #else
11874 $ac_func();
11875 #endif
11876
11877 ; return 0; }
11878 EOF
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11880   rm -rf conftest*
11881   eval "ac_cv_func_$ac_func=yes"
11882 else
11883   echo "configure: failed program was:" >&5
11884   cat conftest.$ac_ext >&5
11885   rm -rf conftest*
11886   eval "ac_cv_func_$ac_func=no"
11887 fi
11888 rm -f conftest*
11889 fi
11890
11891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11892   echo "$ac_t""yes" 1>&6
11893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11894   cat >> confdefs.h <<EOF
11895 #define $ac_tr_func 1
11896 EOF
11897  
11898 else
11899   echo "$ac_t""no" 1>&6
11900 fi
11901 done
11902
11903   else
11904     
11905   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11906 echo "configure:11907: checking for _fpclass declaration" >&5
11907   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11908     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11909   echo $ac_n "(cached) $ac_c" 1>&6
11910 else
11911   
11912       
11913       ac_ext=C
11914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11915 ac_cpp='$CXXCPP $CPPFLAGS'
11916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11918 cross_compiling=$ac_cv_prog_cxx_cross
11919
11920       cat > conftest.$ac_ext <<EOF
11921 #line 11922 "configure"
11922 #include "confdefs.h"
11923 #include <math.h>
11924                       #ifdef HAVE_IEEEFP_H
11925                       #include <ieeefp.h>
11926                       #endif
11927                      
11928 int main() {
11929  _fpclass(0);
11930 ; return 0; }
11931 EOF
11932 if { (eval echo configure:11933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11933   rm -rf conftest*
11934   glibcpp_cv_func__fpclass_use=yes
11935 else
11936   echo "configure: failed program was:" >&5
11937   cat conftest.$ac_ext >&5
11938   rm -rf conftest*
11939   glibcpp_cv_func__fpclass_use=no
11940 fi
11941 rm -f conftest*
11942       ac_ext=c
11943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11944 ac_cpp='$CPP $CPPFLAGS'
11945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11947 cross_compiling=$ac_cv_prog_cc_cross
11948
11949     
11950 fi
11951
11952   fi
11953   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11954
11955     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11956       for ac_func in _fpclass
11957 do
11958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11959 echo "configure:11960: checking for $ac_func" >&5
11960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11961   echo $ac_n "(cached) $ac_c" 1>&6
11962 else
11963   cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11966 /* System header to define __stub macros and hopefully few prototypes,
11967     which can conflict with char $ac_func(); below.  */
11968 #include <assert.h>
11969 /* Override any gcc2 internal prototype to avoid an error.  */
11970 /* We use char because int might match the return type of a gcc2
11971     builtin and then its argument prototype would still apply.  */
11972 char $ac_func();
11973
11974 int main() {
11975
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11980 choke me
11981 #else
11982 $ac_func();
11983 #endif
11984
11985 ; return 0; }
11986 EOF
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11988   rm -rf conftest*
11989   eval "ac_cv_func_$ac_func=yes"
11990 else
11991   echo "configure: failed program was:" >&5
11992   cat conftest.$ac_ext >&5
11993   rm -rf conftest*
11994   eval "ac_cv_func_$ac_func=no"
11995 fi
11996 rm -f conftest*
11997 fi
11998
11999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12000   echo "$ac_t""yes" 1>&6
12001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12002   cat >> confdefs.h <<EOF
12003 #define $ac_tr_func 1
12004 EOF
12005  
12006 else
12007   echo "$ac_t""no" 1>&6
12008 fi
12009 done
12010
12011     fi
12012   fi
12013
12014   
12015   
12016   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12017 echo "configure:12018: checking for qfpclass declaration" >&5
12018   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12019     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12020   echo $ac_n "(cached) $ac_c" 1>&6
12021 else
12022   
12023       
12024       ac_ext=C
12025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12026 ac_cpp='$CXXCPP $CPPFLAGS'
12027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12029 cross_compiling=$ac_cv_prog_cxx_cross
12030
12031       cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12034 #include <math.h>
12035                       #ifdef HAVE_IEEEFP_H
12036                       #include <ieeefp.h>
12037                       #endif
12038                      
12039 int main() {
12040  qfpclass(0);
12041 ; return 0; }
12042 EOF
12043 if { (eval echo configure:12044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12044   rm -rf conftest*
12045   glibcpp_cv_func_qfpclass_use=yes
12046 else
12047   echo "configure: failed program was:" >&5
12048   cat conftest.$ac_ext >&5
12049   rm -rf conftest*
12050   glibcpp_cv_func_qfpclass_use=no
12051 fi
12052 rm -f conftest*
12053       ac_ext=c
12054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12055 ac_cpp='$CPP $CPPFLAGS'
12056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12058 cross_compiling=$ac_cv_prog_cc_cross
12059
12060     
12061 fi
12062
12063   fi
12064   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12065
12066   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12067     for ac_func in qfpclass
12068 do
12069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12070 echo "configure:12071: checking for $ac_func" >&5
12071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12072   echo $ac_n "(cached) $ac_c" 1>&6
12073 else
12074   cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure"
12076 #include "confdefs.h"
12077 /* System header to define __stub macros and hopefully few prototypes,
12078     which can conflict with char $ac_func(); below.  */
12079 #include <assert.h>
12080 /* Override any gcc2 internal prototype to avoid an error.  */
12081 /* We use char because int might match the return type of a gcc2
12082     builtin and then its argument prototype would still apply.  */
12083 char $ac_func();
12084
12085 int main() {
12086
12087 /* The GNU C library defines this for functions which it implements
12088     to always fail with ENOSYS.  Some functions are actually named
12089     something starting with __ and the normal name is an alias.  */
12090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12091 choke me
12092 #else
12093 $ac_func();
12094 #endif
12095
12096 ; return 0; }
12097 EOF
12098 if { (eval echo configure:12099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12099   rm -rf conftest*
12100   eval "ac_cv_func_$ac_func=yes"
12101 else
12102   echo "configure: failed program was:" >&5
12103   cat conftest.$ac_ext >&5
12104   rm -rf conftest*
12105   eval "ac_cv_func_$ac_func=no"
12106 fi
12107 rm -f conftest*
12108 fi
12109
12110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12111   echo "$ac_t""yes" 1>&6
12112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12113   cat >> confdefs.h <<EOF
12114 #define $ac_tr_func 1
12115 EOF
12116  
12117 else
12118   echo "$ac_t""no" 1>&6
12119 fi
12120 done
12121
12122   else
12123     
12124   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12125 echo "configure:12126: checking for _qfpclass declaration" >&5
12126   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12127     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12128   echo $ac_n "(cached) $ac_c" 1>&6
12129 else
12130   
12131       
12132       ac_ext=C
12133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12134 ac_cpp='$CXXCPP $CPPFLAGS'
12135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12137 cross_compiling=$ac_cv_prog_cxx_cross
12138
12139       cat > conftest.$ac_ext <<EOF
12140 #line 12141 "configure"
12141 #include "confdefs.h"
12142 #include <math.h>
12143                       #ifdef HAVE_IEEEFP_H
12144                       #include <ieeefp.h>
12145                       #endif
12146                      
12147 int main() {
12148  _qfpclass(0);
12149 ; return 0; }
12150 EOF
12151 if { (eval echo configure:12152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12152   rm -rf conftest*
12153   glibcpp_cv_func__qfpclass_use=yes
12154 else
12155   echo "configure: failed program was:" >&5
12156   cat conftest.$ac_ext >&5
12157   rm -rf conftest*
12158   glibcpp_cv_func__qfpclass_use=no
12159 fi
12160 rm -f conftest*
12161       ac_ext=c
12162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12163 ac_cpp='$CPP $CPPFLAGS'
12164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12166 cross_compiling=$ac_cv_prog_cc_cross
12167
12168     
12169 fi
12170
12171   fi
12172   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12173
12174     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12175       for ac_func in _qfpclass
12176 do
12177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12178 echo "configure:12179: checking for $ac_func" >&5
12179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12180   echo $ac_n "(cached) $ac_c" 1>&6
12181 else
12182   cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 /* System header to define __stub macros and hopefully few prototypes,
12186     which can conflict with char $ac_func(); below.  */
12187 #include <assert.h>
12188 /* Override any gcc2 internal prototype to avoid an error.  */
12189 /* We use char because int might match the return type of a gcc2
12190     builtin and then its argument prototype would still apply.  */
12191 char $ac_func();
12192
12193 int main() {
12194
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12199 choke me
12200 #else
12201 $ac_func();
12202 #endif
12203
12204 ; return 0; }
12205 EOF
12206 if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12207   rm -rf conftest*
12208   eval "ac_cv_func_$ac_func=yes"
12209 else
12210   echo "configure: failed program was:" >&5
12211   cat conftest.$ac_ext >&5
12212   rm -rf conftest*
12213   eval "ac_cv_func_$ac_func=no"
12214 fi
12215 rm -f conftest*
12216 fi
12217
12218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12219   echo "$ac_t""yes" 1>&6
12220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12221   cat >> confdefs.h <<EOF
12222 #define $ac_tr_func 1
12223 EOF
12224  
12225 else
12226   echo "$ac_t""no" 1>&6
12227 fi
12228 done
12229
12230     fi
12231   fi
12232
12233   
12234   
12235   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12236 echo "configure:12237: checking for hypot declaration" >&5
12237   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12238     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12239   echo $ac_n "(cached) $ac_c" 1>&6
12240 else
12241   
12242       
12243       ac_ext=C
12244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12245 ac_cpp='$CXXCPP $CPPFLAGS'
12246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12248 cross_compiling=$ac_cv_prog_cxx_cross
12249
12250       cat > conftest.$ac_ext <<EOF
12251 #line 12252 "configure"
12252 #include "confdefs.h"
12253 #include <math.h>
12254 int main() {
12255  hypot(0, 0);
12256 ; return 0; }
12257 EOF
12258 if { (eval echo configure:12259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12259   rm -rf conftest*
12260   glibcpp_cv_func_hypot_use=yes
12261 else
12262   echo "configure: failed program was:" >&5
12263   cat conftest.$ac_ext >&5
12264   rm -rf conftest*
12265   glibcpp_cv_func_hypot_use=no
12266 fi
12267 rm -f conftest*
12268       ac_ext=c
12269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12270 ac_cpp='$CPP $CPPFLAGS'
12271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12273 cross_compiling=$ac_cv_prog_cc_cross
12274
12275     
12276 fi
12277
12278   fi
12279   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12280
12281   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12282     for ac_func in hypot
12283 do
12284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12285 echo "configure:12286: checking for $ac_func" >&5
12286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12287   echo $ac_n "(cached) $ac_c" 1>&6
12288 else
12289   cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 /* System header to define __stub macros and hopefully few prototypes,
12293     which can conflict with char $ac_func(); below.  */
12294 #include <assert.h>
12295 /* Override any gcc2 internal prototype to avoid an error.  */
12296 /* We use char because int might match the return type of a gcc2
12297     builtin and then its argument prototype would still apply.  */
12298 char $ac_func();
12299
12300 int main() {
12301
12302 /* The GNU C library defines this for functions which it implements
12303     to always fail with ENOSYS.  Some functions are actually named
12304     something starting with __ and the normal name is an alias.  */
12305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12306 choke me
12307 #else
12308 $ac_func();
12309 #endif
12310
12311 ; return 0; }
12312 EOF
12313 if { (eval echo configure:12314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12314   rm -rf conftest*
12315   eval "ac_cv_func_$ac_func=yes"
12316 else
12317   echo "configure: failed program was:" >&5
12318   cat conftest.$ac_ext >&5
12319   rm -rf conftest*
12320   eval "ac_cv_func_$ac_func=no"
12321 fi
12322 rm -f conftest*
12323 fi
12324
12325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12326   echo "$ac_t""yes" 1>&6
12327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12328   cat >> confdefs.h <<EOF
12329 #define $ac_tr_func 1
12330 EOF
12331  
12332 else
12333   echo "$ac_t""no" 1>&6
12334 fi
12335 done
12336
12337   else
12338     
12339   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12340 echo "configure:12341: checking for _hypot declaration" >&5
12341   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12342     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12343   echo $ac_n "(cached) $ac_c" 1>&6
12344 else
12345   
12346       
12347       ac_ext=C
12348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12349 ac_cpp='$CXXCPP $CPPFLAGS'
12350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12352 cross_compiling=$ac_cv_prog_cxx_cross
12353
12354       cat > conftest.$ac_ext <<EOF
12355 #line 12356 "configure"
12356 #include "confdefs.h"
12357 #include <math.h>
12358 int main() {
12359  _hypot(0, 0);
12360 ; return 0; }
12361 EOF
12362 if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12363   rm -rf conftest*
12364   glibcpp_cv_func__hypot_use=yes
12365 else
12366   echo "configure: failed program was:" >&5
12367   cat conftest.$ac_ext >&5
12368   rm -rf conftest*
12369   glibcpp_cv_func__hypot_use=no
12370 fi
12371 rm -f conftest*
12372       ac_ext=c
12373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12377 cross_compiling=$ac_cv_prog_cc_cross
12378
12379     
12380 fi
12381
12382   fi
12383   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12384
12385     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12386       for ac_func in _hypot
12387 do
12388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12389 echo "configure:12390: checking for $ac_func" >&5
12390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12391   echo $ac_n "(cached) $ac_c" 1>&6
12392 else
12393   cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* System header to define __stub macros and hopefully few prototypes,
12397     which can conflict with char $ac_func(); below.  */
12398 #include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error.  */
12400 /* We use char because int might match the return type of a gcc2
12401     builtin and then its argument prototype would still apply.  */
12402 char $ac_func();
12403
12404 int main() {
12405
12406 /* The GNU C library defines this for functions which it implements
12407     to always fail with ENOSYS.  Some functions are actually named
12408     something starting with __ and the normal name is an alias.  */
12409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12410 choke me
12411 #else
12412 $ac_func();
12413 #endif
12414
12415 ; return 0; }
12416 EOF
12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12418   rm -rf conftest*
12419   eval "ac_cv_func_$ac_func=yes"
12420 else
12421   echo "configure: failed program was:" >&5
12422   cat conftest.$ac_ext >&5
12423   rm -rf conftest*
12424   eval "ac_cv_func_$ac_func=no"
12425 fi
12426 rm -f conftest*
12427 fi
12428
12429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12430   echo "$ac_t""yes" 1>&6
12431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12432   cat >> confdefs.h <<EOF
12433 #define $ac_tr_func 1
12434 EOF
12435  
12436 else
12437   echo "$ac_t""no" 1>&6
12438 fi
12439 done
12440
12441     fi
12442   fi
12443
12444
12445     
12446   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12447 echo "configure:12448: checking for float trig functions" >&5
12448   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12449   echo $ac_n "(cached) $ac_c" 1>&6
12450 else
12451   
12452     
12453     ac_ext=C
12454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12455 ac_cpp='$CXXCPP $CPPFLAGS'
12456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12458 cross_compiling=$ac_cv_prog_cxx_cross
12459
12460     cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12463 #include <math.h>
12464 int main() {
12465  `for x in acosf asinf atanf \
12466                                           cosf sinf tanf \
12467                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12468 ; return 0; }
12469 EOF
12470 if { (eval echo configure:12471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12471   rm -rf conftest*
12472   glibcpp_cv_func_float_trig_use=yes
12473 else
12474   echo "configure: failed program was:" >&5
12475   cat conftest.$ac_ext >&5
12476   rm -rf conftest*
12477   glibcpp_cv_func_float_trig_use=no
12478 fi
12479 rm -f conftest*
12480     ac_ext=c
12481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485 cross_compiling=$ac_cv_prog_cc_cross
12486
12487 fi
12488
12489   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12490   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12491     for ac_func in acosf asinf atanf \
12492                                           cosf sinf tanf \
12493                                           coshf sinhf tanhf
12494 do
12495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12496 echo "configure:12497: checking for $ac_func" >&5
12497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12498   echo $ac_n "(cached) $ac_c" 1>&6
12499 else
12500   cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 /* System header to define __stub macros and hopefully few prototypes,
12504     which can conflict with char $ac_func(); below.  */
12505 #include <assert.h>
12506 /* Override any gcc2 internal prototype to avoid an error.  */
12507 /* We use char because int might match the return type of a gcc2
12508     builtin and then its argument prototype would still apply.  */
12509 char $ac_func();
12510
12511 int main() {
12512
12513 /* The GNU C library defines this for functions which it implements
12514     to always fail with ENOSYS.  Some functions are actually named
12515     something starting with __ and the normal name is an alias.  */
12516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12517 choke me
12518 #else
12519 $ac_func();
12520 #endif
12521
12522 ; return 0; }
12523 EOF
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525   rm -rf conftest*
12526   eval "ac_cv_func_$ac_func=yes"
12527 else
12528   echo "configure: failed program was:" >&5
12529   cat conftest.$ac_ext >&5
12530   rm -rf conftest*
12531   eval "ac_cv_func_$ac_func=no"
12532 fi
12533 rm -f conftest*
12534 fi
12535
12536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12537   echo "$ac_t""yes" 1>&6
12538     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12539   cat >> confdefs.h <<EOF
12540 #define $ac_tr_func 1
12541 EOF
12542  
12543 else
12544   echo "$ac_t""no" 1>&6
12545 fi
12546 done
12547
12548   fi
12549
12550   
12551   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12552 echo "configure:12553: checking for float round functions" >&5
12553   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12554   echo $ac_n "(cached) $ac_c" 1>&6
12555 else
12556   
12557     
12558     ac_ext=C
12559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12560 ac_cpp='$CXXCPP $CPPFLAGS'
12561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12563 cross_compiling=$ac_cv_prog_cxx_cross
12564
12565     cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 #include <math.h>
12569 int main() {
12570  `for x in ceilf floorf; do echo "$x (0);"; done` 
12571 ; return 0; }
12572 EOF
12573 if { (eval echo configure:12574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12574   rm -rf conftest*
12575   glibcpp_cv_func_float_round_use=yes
12576 else
12577   echo "configure: failed program was:" >&5
12578   cat conftest.$ac_ext >&5
12579   rm -rf conftest*
12580   glibcpp_cv_func_float_round_use=no
12581 fi
12582 rm -f conftest*
12583     ac_ext=c
12584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12585 ac_cpp='$CPP $CPPFLAGS'
12586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12588 cross_compiling=$ac_cv_prog_cc_cross
12589
12590 fi
12591
12592   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12593   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12594     for ac_func in ceilf floorf
12595 do
12596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12597 echo "configure:12598: checking for $ac_func" >&5
12598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12599   echo $ac_n "(cached) $ac_c" 1>&6
12600 else
12601   cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure"
12603 #include "confdefs.h"
12604 /* System header to define __stub macros and hopefully few prototypes,
12605     which can conflict with char $ac_func(); below.  */
12606 #include <assert.h>
12607 /* Override any gcc2 internal prototype to avoid an error.  */
12608 /* We use char because int might match the return type of a gcc2
12609     builtin and then its argument prototype would still apply.  */
12610 char $ac_func();
12611
12612 int main() {
12613
12614 /* The GNU C library defines this for functions which it implements
12615     to always fail with ENOSYS.  Some functions are actually named
12616     something starting with __ and the normal name is an alias.  */
12617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12618 choke me
12619 #else
12620 $ac_func();
12621 #endif
12622
12623 ; return 0; }
12624 EOF
12625 if { (eval echo configure:12626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12626   rm -rf conftest*
12627   eval "ac_cv_func_$ac_func=yes"
12628 else
12629   echo "configure: failed program was:" >&5
12630   cat conftest.$ac_ext >&5
12631   rm -rf conftest*
12632   eval "ac_cv_func_$ac_func=no"
12633 fi
12634 rm -f conftest*
12635 fi
12636
12637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12638   echo "$ac_t""yes" 1>&6
12639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12640   cat >> confdefs.h <<EOF
12641 #define $ac_tr_func 1
12642 EOF
12643  
12644 else
12645   echo "$ac_t""no" 1>&6
12646 fi
12647 done
12648
12649   fi
12650
12651   
12652   
12653   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12654 echo "configure:12655: checking for expf declaration" >&5
12655   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12656     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12657   echo $ac_n "(cached) $ac_c" 1>&6
12658 else
12659   
12660       
12661       ac_ext=C
12662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12663 ac_cpp='$CXXCPP $CPPFLAGS'
12664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12666 cross_compiling=$ac_cv_prog_cxx_cross
12667
12668       cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671 #include <math.h>
12672                       #ifdef HAVE_IEEEFP_H
12673                       #include <ieeefp.h>
12674                       #endif
12675                      
12676 int main() {
12677  expf(0);
12678 ; return 0; }
12679 EOF
12680 if { (eval echo configure:12681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12681   rm -rf conftest*
12682   glibcpp_cv_func_expf_use=yes
12683 else
12684   echo "configure: failed program was:" >&5
12685   cat conftest.$ac_ext >&5
12686   rm -rf conftest*
12687   glibcpp_cv_func_expf_use=no
12688 fi
12689 rm -f conftest*
12690       ac_ext=c
12691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12695 cross_compiling=$ac_cv_prog_cc_cross
12696
12697     
12698 fi
12699
12700   fi
12701   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12702
12703   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12704     for ac_func in expf
12705 do
12706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12707 echo "configure:12708: checking for $ac_func" >&5
12708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12709   echo $ac_n "(cached) $ac_c" 1>&6
12710 else
12711   cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12714 /* System header to define __stub macros and hopefully few prototypes,
12715     which can conflict with char $ac_func(); below.  */
12716 #include <assert.h>
12717 /* Override any gcc2 internal prototype to avoid an error.  */
12718 /* We use char because int might match the return type of a gcc2
12719     builtin and then its argument prototype would still apply.  */
12720 char $ac_func();
12721
12722 int main() {
12723
12724 /* The GNU C library defines this for functions which it implements
12725     to always fail with ENOSYS.  Some functions are actually named
12726     something starting with __ and the normal name is an alias.  */
12727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12728 choke me
12729 #else
12730 $ac_func();
12731 #endif
12732
12733 ; return 0; }
12734 EOF
12735 if { (eval echo configure:12736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12736   rm -rf conftest*
12737   eval "ac_cv_func_$ac_func=yes"
12738 else
12739   echo "configure: failed program was:" >&5
12740   cat conftest.$ac_ext >&5
12741   rm -rf conftest*
12742   eval "ac_cv_func_$ac_func=no"
12743 fi
12744 rm -f conftest*
12745 fi
12746
12747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12748   echo "$ac_t""yes" 1>&6
12749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12750   cat >> confdefs.h <<EOF
12751 #define $ac_tr_func 1
12752 EOF
12753  
12754 else
12755   echo "$ac_t""no" 1>&6
12756 fi
12757 done
12758
12759   else
12760     
12761   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12762 echo "configure:12763: checking for _expf declaration" >&5
12763   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12764     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12765   echo $ac_n "(cached) $ac_c" 1>&6
12766 else
12767   
12768       
12769       ac_ext=C
12770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771 ac_cpp='$CXXCPP $CPPFLAGS'
12772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774 cross_compiling=$ac_cv_prog_cxx_cross
12775
12776       cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12779 #include <math.h>
12780                       #ifdef HAVE_IEEEFP_H
12781                       #include <ieeefp.h>
12782                       #endif
12783                      
12784 int main() {
12785  _expf(0);
12786 ; return 0; }
12787 EOF
12788 if { (eval echo configure:12789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12789   rm -rf conftest*
12790   glibcpp_cv_func__expf_use=yes
12791 else
12792   echo "configure: failed program was:" >&5
12793   cat conftest.$ac_ext >&5
12794   rm -rf conftest*
12795   glibcpp_cv_func__expf_use=no
12796 fi
12797 rm -f conftest*
12798       ac_ext=c
12799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12800 ac_cpp='$CPP $CPPFLAGS'
12801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12803 cross_compiling=$ac_cv_prog_cc_cross
12804
12805     
12806 fi
12807
12808   fi
12809   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12810
12811     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12812       for ac_func in _expf
12813 do
12814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12815 echo "configure:12816: checking for $ac_func" >&5
12816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12817   echo $ac_n "(cached) $ac_c" 1>&6
12818 else
12819   cat > conftest.$ac_ext <<EOF
12820 #line 12821 "configure"
12821 #include "confdefs.h"
12822 /* System header to define __stub macros and hopefully few prototypes,
12823     which can conflict with char $ac_func(); below.  */
12824 #include <assert.h>
12825 /* Override any gcc2 internal prototype to avoid an error.  */
12826 /* We use char because int might match the return type of a gcc2
12827     builtin and then its argument prototype would still apply.  */
12828 char $ac_func();
12829
12830 int main() {
12831
12832 /* The GNU C library defines this for functions which it implements
12833     to always fail with ENOSYS.  Some functions are actually named
12834     something starting with __ and the normal name is an alias.  */
12835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12836 choke me
12837 #else
12838 $ac_func();
12839 #endif
12840
12841 ; return 0; }
12842 EOF
12843 if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12844   rm -rf conftest*
12845   eval "ac_cv_func_$ac_func=yes"
12846 else
12847   echo "configure: failed program was:" >&5
12848   cat conftest.$ac_ext >&5
12849   rm -rf conftest*
12850   eval "ac_cv_func_$ac_func=no"
12851 fi
12852 rm -f conftest*
12853 fi
12854
12855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12856   echo "$ac_t""yes" 1>&6
12857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12858   cat >> confdefs.h <<EOF
12859 #define $ac_tr_func 1
12860 EOF
12861  
12862 else
12863   echo "$ac_t""no" 1>&6
12864 fi
12865 done
12866
12867     fi
12868   fi
12869
12870   
12871   
12872   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12873 echo "configure:12874: checking for isnanf declaration" >&5
12874   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12875     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12876   echo $ac_n "(cached) $ac_c" 1>&6
12877 else
12878   
12879       
12880       ac_ext=C
12881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12882 ac_cpp='$CXXCPP $CPPFLAGS'
12883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12885 cross_compiling=$ac_cv_prog_cxx_cross
12886
12887       cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 #include <math.h>
12891                       #ifdef HAVE_IEEEFP_H
12892                       #include <ieeefp.h>
12893                       #endif
12894                      
12895 int main() {
12896  isnanf(0);
12897 ; return 0; }
12898 EOF
12899 if { (eval echo configure:12900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12900   rm -rf conftest*
12901   glibcpp_cv_func_isnanf_use=yes
12902 else
12903   echo "configure: failed program was:" >&5
12904   cat conftest.$ac_ext >&5
12905   rm -rf conftest*
12906   glibcpp_cv_func_isnanf_use=no
12907 fi
12908 rm -f conftest*
12909       ac_ext=c
12910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12914 cross_compiling=$ac_cv_prog_cc_cross
12915
12916     
12917 fi
12918
12919   fi
12920   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12921
12922   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12923     for ac_func in isnanf
12924 do
12925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12926 echo "configure:12927: checking for $ac_func" >&5
12927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12928   echo $ac_n "(cached) $ac_c" 1>&6
12929 else
12930   cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 /* System header to define __stub macros and hopefully few prototypes,
12934     which can conflict with char $ac_func(); below.  */
12935 #include <assert.h>
12936 /* Override any gcc2 internal prototype to avoid an error.  */
12937 /* We use char because int might match the return type of a gcc2
12938     builtin and then its argument prototype would still apply.  */
12939 char $ac_func();
12940
12941 int main() {
12942
12943 /* The GNU C library defines this for functions which it implements
12944     to always fail with ENOSYS.  Some functions are actually named
12945     something starting with __ and the normal name is an alias.  */
12946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12947 choke me
12948 #else
12949 $ac_func();
12950 #endif
12951
12952 ; return 0; }
12953 EOF
12954 if { (eval echo configure:12955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12955   rm -rf conftest*
12956   eval "ac_cv_func_$ac_func=yes"
12957 else
12958   echo "configure: failed program was:" >&5
12959   cat conftest.$ac_ext >&5
12960   rm -rf conftest*
12961   eval "ac_cv_func_$ac_func=no"
12962 fi
12963 rm -f conftest*
12964 fi
12965
12966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12967   echo "$ac_t""yes" 1>&6
12968     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12969   cat >> confdefs.h <<EOF
12970 #define $ac_tr_func 1
12971 EOF
12972  
12973 else
12974   echo "$ac_t""no" 1>&6
12975 fi
12976 done
12977
12978   else
12979     
12980   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12981 echo "configure:12982: checking for _isnanf declaration" >&5
12982   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12983     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12984   echo $ac_n "(cached) $ac_c" 1>&6
12985 else
12986   
12987       
12988       ac_ext=C
12989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12990 ac_cpp='$CXXCPP $CPPFLAGS'
12991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12993 cross_compiling=$ac_cv_prog_cxx_cross
12994
12995       cat > conftest.$ac_ext <<EOF
12996 #line 12997 "configure"
12997 #include "confdefs.h"
12998 #include <math.h>
12999                       #ifdef HAVE_IEEEFP_H
13000                       #include <ieeefp.h>
13001                       #endif
13002                      
13003 int main() {
13004  _isnanf(0);
13005 ; return 0; }
13006 EOF
13007 if { (eval echo configure:13008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13008   rm -rf conftest*
13009   glibcpp_cv_func__isnanf_use=yes
13010 else
13011   echo "configure: failed program was:" >&5
13012   cat conftest.$ac_ext >&5
13013   rm -rf conftest*
13014   glibcpp_cv_func__isnanf_use=no
13015 fi
13016 rm -f conftest*
13017       ac_ext=c
13018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13022 cross_compiling=$ac_cv_prog_cc_cross
13023
13024     
13025 fi
13026
13027   fi
13028   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13029
13030     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13031       for ac_func in _isnanf
13032 do
13033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13034 echo "configure:13035: checking for $ac_func" >&5
13035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13036   echo $ac_n "(cached) $ac_c" 1>&6
13037 else
13038   cat > conftest.$ac_ext <<EOF
13039 #line 13040 "configure"
13040 #include "confdefs.h"
13041 /* System header to define __stub macros and hopefully few prototypes,
13042     which can conflict with char $ac_func(); below.  */
13043 #include <assert.h>
13044 /* Override any gcc2 internal prototype to avoid an error.  */
13045 /* We use char because int might match the return type of a gcc2
13046     builtin and then its argument prototype would still apply.  */
13047 char $ac_func();
13048
13049 int main() {
13050
13051 /* The GNU C library defines this for functions which it implements
13052     to always fail with ENOSYS.  Some functions are actually named
13053     something starting with __ and the normal name is an alias.  */
13054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13055 choke me
13056 #else
13057 $ac_func();
13058 #endif
13059
13060 ; return 0; }
13061 EOF
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13063   rm -rf conftest*
13064   eval "ac_cv_func_$ac_func=yes"
13065 else
13066   echo "configure: failed program was:" >&5
13067   cat conftest.$ac_ext >&5
13068   rm -rf conftest*
13069   eval "ac_cv_func_$ac_func=no"
13070 fi
13071 rm -f conftest*
13072 fi
13073
13074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13075   echo "$ac_t""yes" 1>&6
13076     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13077   cat >> confdefs.h <<EOF
13078 #define $ac_tr_func 1
13079 EOF
13080  
13081 else
13082   echo "$ac_t""no" 1>&6
13083 fi
13084 done
13085
13086     fi
13087   fi
13088
13089   
13090   
13091   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13092 echo "configure:13093: checking for isinff declaration" >&5
13093   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13094     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13095   echo $ac_n "(cached) $ac_c" 1>&6
13096 else
13097   
13098       
13099       ac_ext=C
13100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13101 ac_cpp='$CXXCPP $CPPFLAGS'
13102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13104 cross_compiling=$ac_cv_prog_cxx_cross
13105
13106       cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 #include <math.h>
13110                       #ifdef HAVE_IEEEFP_H
13111                       #include <ieeefp.h>
13112                       #endif
13113                      
13114 int main() {
13115  isinff(0);
13116 ; return 0; }
13117 EOF
13118 if { (eval echo configure:13119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13119   rm -rf conftest*
13120   glibcpp_cv_func_isinff_use=yes
13121 else
13122   echo "configure: failed program was:" >&5
13123   cat conftest.$ac_ext >&5
13124   rm -rf conftest*
13125   glibcpp_cv_func_isinff_use=no
13126 fi
13127 rm -f conftest*
13128       ac_ext=c
13129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13130 ac_cpp='$CPP $CPPFLAGS'
13131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13133 cross_compiling=$ac_cv_prog_cc_cross
13134
13135     
13136 fi
13137
13138   fi
13139   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13140
13141   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13142     for ac_func in isinff
13143 do
13144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13145 echo "configure:13146: checking for $ac_func" >&5
13146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13147   echo $ac_n "(cached) $ac_c" 1>&6
13148 else
13149   cat > conftest.$ac_ext <<EOF
13150 #line 13151 "configure"
13151 #include "confdefs.h"
13152 /* System header to define __stub macros and hopefully few prototypes,
13153     which can conflict with char $ac_func(); below.  */
13154 #include <assert.h>
13155 /* Override any gcc2 internal prototype to avoid an error.  */
13156 /* We use char because int might match the return type of a gcc2
13157     builtin and then its argument prototype would still apply.  */
13158 char $ac_func();
13159
13160 int main() {
13161
13162 /* The GNU C library defines this for functions which it implements
13163     to always fail with ENOSYS.  Some functions are actually named
13164     something starting with __ and the normal name is an alias.  */
13165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13166 choke me
13167 #else
13168 $ac_func();
13169 #endif
13170
13171 ; return 0; }
13172 EOF
13173 if { (eval echo configure:13174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13174   rm -rf conftest*
13175   eval "ac_cv_func_$ac_func=yes"
13176 else
13177   echo "configure: failed program was:" >&5
13178   cat conftest.$ac_ext >&5
13179   rm -rf conftest*
13180   eval "ac_cv_func_$ac_func=no"
13181 fi
13182 rm -f conftest*
13183 fi
13184
13185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13186   echo "$ac_t""yes" 1>&6
13187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13188   cat >> confdefs.h <<EOF
13189 #define $ac_tr_func 1
13190 EOF
13191  
13192 else
13193   echo "$ac_t""no" 1>&6
13194 fi
13195 done
13196
13197   else
13198     
13199   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13200 echo "configure:13201: checking for _isinff declaration" >&5
13201   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13202     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13203   echo $ac_n "(cached) $ac_c" 1>&6
13204 else
13205   
13206       
13207       ac_ext=C
13208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13209 ac_cpp='$CXXCPP $CPPFLAGS'
13210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13212 cross_compiling=$ac_cv_prog_cxx_cross
13213
13214       cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13217 #include <math.h>
13218                       #ifdef HAVE_IEEEFP_H
13219                       #include <ieeefp.h>
13220                       #endif
13221                      
13222 int main() {
13223  _isinff(0);
13224 ; return 0; }
13225 EOF
13226 if { (eval echo configure:13227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13227   rm -rf conftest*
13228   glibcpp_cv_func__isinff_use=yes
13229 else
13230   echo "configure: failed program was:" >&5
13231   cat conftest.$ac_ext >&5
13232   rm -rf conftest*
13233   glibcpp_cv_func__isinff_use=no
13234 fi
13235 rm -f conftest*
13236       ac_ext=c
13237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13238 ac_cpp='$CPP $CPPFLAGS'
13239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13241 cross_compiling=$ac_cv_prog_cc_cross
13242
13243     
13244 fi
13245
13246   fi
13247   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13248
13249     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13250       for ac_func in _isinff
13251 do
13252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13253 echo "configure:13254: checking for $ac_func" >&5
13254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13255   echo $ac_n "(cached) $ac_c" 1>&6
13256 else
13257   cat > conftest.$ac_ext <<EOF
13258 #line 13259 "configure"
13259 #include "confdefs.h"
13260 /* System header to define __stub macros and hopefully few prototypes,
13261     which can conflict with char $ac_func(); below.  */
13262 #include <assert.h>
13263 /* Override any gcc2 internal prototype to avoid an error.  */
13264 /* We use char because int might match the return type of a gcc2
13265     builtin and then its argument prototype would still apply.  */
13266 char $ac_func();
13267
13268 int main() {
13269
13270 /* The GNU C library defines this for functions which it implements
13271     to always fail with ENOSYS.  Some functions are actually named
13272     something starting with __ and the normal name is an alias.  */
13273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13274 choke me
13275 #else
13276 $ac_func();
13277 #endif
13278
13279 ; return 0; }
13280 EOF
13281 if { (eval echo configure:13282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13282   rm -rf conftest*
13283   eval "ac_cv_func_$ac_func=yes"
13284 else
13285   echo "configure: failed program was:" >&5
13286   cat conftest.$ac_ext >&5
13287   rm -rf conftest*
13288   eval "ac_cv_func_$ac_func=no"
13289 fi
13290 rm -f conftest*
13291 fi
13292
13293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13294   echo "$ac_t""yes" 1>&6
13295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13296   cat >> confdefs.h <<EOF
13297 #define $ac_tr_func 1
13298 EOF
13299  
13300 else
13301   echo "$ac_t""no" 1>&6
13302 fi
13303 done
13304
13305     fi
13306   fi
13307
13308   
13309   
13310   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13311 echo "configure:13312: checking for atan2f declaration" >&5
13312   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13313     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13314   echo $ac_n "(cached) $ac_c" 1>&6
13315 else
13316   
13317       
13318       ac_ext=C
13319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13320 ac_cpp='$CXXCPP $CPPFLAGS'
13321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13323 cross_compiling=$ac_cv_prog_cxx_cross
13324
13325       cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13328 #include <math.h>
13329 int main() {
13330  atan2f(0, 0);
13331 ; return 0; }
13332 EOF
13333 if { (eval echo configure:13334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13334   rm -rf conftest*
13335   glibcpp_cv_func_atan2f_use=yes
13336 else
13337   echo "configure: failed program was:" >&5
13338   cat conftest.$ac_ext >&5
13339   rm -rf conftest*
13340   glibcpp_cv_func_atan2f_use=no
13341 fi
13342 rm -f conftest*
13343       ac_ext=c
13344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13345 ac_cpp='$CPP $CPPFLAGS'
13346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13348 cross_compiling=$ac_cv_prog_cc_cross
13349
13350     
13351 fi
13352
13353   fi
13354   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13355
13356   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13357     for ac_func in atan2f
13358 do
13359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13360 echo "configure:13361: checking for $ac_func" >&5
13361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13362   echo $ac_n "(cached) $ac_c" 1>&6
13363 else
13364   cat > conftest.$ac_ext <<EOF
13365 #line 13366 "configure"
13366 #include "confdefs.h"
13367 /* System header to define __stub macros and hopefully few prototypes,
13368     which can conflict with char $ac_func(); below.  */
13369 #include <assert.h>
13370 /* Override any gcc2 internal prototype to avoid an error.  */
13371 /* We use char because int might match the return type of a gcc2
13372     builtin and then its argument prototype would still apply.  */
13373 char $ac_func();
13374
13375 int main() {
13376
13377 /* The GNU C library defines this for functions which it implements
13378     to always fail with ENOSYS.  Some functions are actually named
13379     something starting with __ and the normal name is an alias.  */
13380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381 choke me
13382 #else
13383 $ac_func();
13384 #endif
13385
13386 ; return 0; }
13387 EOF
13388 if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13389   rm -rf conftest*
13390   eval "ac_cv_func_$ac_func=yes"
13391 else
13392   echo "configure: failed program was:" >&5
13393   cat conftest.$ac_ext >&5
13394   rm -rf conftest*
13395   eval "ac_cv_func_$ac_func=no"
13396 fi
13397 rm -f conftest*
13398 fi
13399
13400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13401   echo "$ac_t""yes" 1>&6
13402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13403   cat >> confdefs.h <<EOF
13404 #define $ac_tr_func 1
13405 EOF
13406  
13407 else
13408   echo "$ac_t""no" 1>&6
13409 fi
13410 done
13411
13412   else
13413     
13414   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13415 echo "configure:13416: checking for _atan2f declaration" >&5
13416   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13417     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13418   echo $ac_n "(cached) $ac_c" 1>&6
13419 else
13420   
13421       
13422       ac_ext=C
13423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13424 ac_cpp='$CXXCPP $CPPFLAGS'
13425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13427 cross_compiling=$ac_cv_prog_cxx_cross
13428
13429       cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure"
13431 #include "confdefs.h"
13432 #include <math.h>
13433 int main() {
13434  _atan2f(0, 0);
13435 ; return 0; }
13436 EOF
13437 if { (eval echo configure:13438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13438   rm -rf conftest*
13439   glibcpp_cv_func__atan2f_use=yes
13440 else
13441   echo "configure: failed program was:" >&5
13442   cat conftest.$ac_ext >&5
13443   rm -rf conftest*
13444   glibcpp_cv_func__atan2f_use=no
13445 fi
13446 rm -f conftest*
13447       ac_ext=c
13448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13449 ac_cpp='$CPP $CPPFLAGS'
13450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13452 cross_compiling=$ac_cv_prog_cc_cross
13453
13454     
13455 fi
13456
13457   fi
13458   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13459
13460     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13461       for ac_func in _atan2f
13462 do
13463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13464 echo "configure:13465: checking for $ac_func" >&5
13465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13466   echo $ac_n "(cached) $ac_c" 1>&6
13467 else
13468   cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 /* System header to define __stub macros and hopefully few prototypes,
13472     which can conflict with char $ac_func(); below.  */
13473 #include <assert.h>
13474 /* Override any gcc2 internal prototype to avoid an error.  */
13475 /* We use char because int might match the return type of a gcc2
13476     builtin and then its argument prototype would still apply.  */
13477 char $ac_func();
13478
13479 int main() {
13480
13481 /* The GNU C library defines this for functions which it implements
13482     to always fail with ENOSYS.  Some functions are actually named
13483     something starting with __ and the normal name is an alias.  */
13484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13485 choke me
13486 #else
13487 $ac_func();
13488 #endif
13489
13490 ; return 0; }
13491 EOF
13492 if { (eval echo configure:13493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493   rm -rf conftest*
13494   eval "ac_cv_func_$ac_func=yes"
13495 else
13496   echo "configure: failed program was:" >&5
13497   cat conftest.$ac_ext >&5
13498   rm -rf conftest*
13499   eval "ac_cv_func_$ac_func=no"
13500 fi
13501 rm -f conftest*
13502 fi
13503
13504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13505   echo "$ac_t""yes" 1>&6
13506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13507   cat >> confdefs.h <<EOF
13508 #define $ac_tr_func 1
13509 EOF
13510  
13511 else
13512   echo "$ac_t""no" 1>&6
13513 fi
13514 done
13515
13516     fi
13517   fi
13518
13519   
13520   
13521   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13522 echo "configure:13523: checking for fabsf declaration" >&5
13523   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13524     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13525   echo $ac_n "(cached) $ac_c" 1>&6
13526 else
13527   
13528       
13529       ac_ext=C
13530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13531 ac_cpp='$CXXCPP $CPPFLAGS'
13532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13534 cross_compiling=$ac_cv_prog_cxx_cross
13535
13536       cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 #include <math.h>
13540                       #ifdef HAVE_IEEEFP_H
13541                       #include <ieeefp.h>
13542                       #endif
13543                      
13544 int main() {
13545  fabsf(0);
13546 ; return 0; }
13547 EOF
13548 if { (eval echo configure:13549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13549   rm -rf conftest*
13550   glibcpp_cv_func_fabsf_use=yes
13551 else
13552   echo "configure: failed program was:" >&5
13553   cat conftest.$ac_ext >&5
13554   rm -rf conftest*
13555   glibcpp_cv_func_fabsf_use=no
13556 fi
13557 rm -f conftest*
13558       ac_ext=c
13559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13560 ac_cpp='$CPP $CPPFLAGS'
13561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13563 cross_compiling=$ac_cv_prog_cc_cross
13564
13565     
13566 fi
13567
13568   fi
13569   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13570
13571   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13572     for ac_func in fabsf
13573 do
13574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13575 echo "configure:13576: checking for $ac_func" >&5
13576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13577   echo $ac_n "(cached) $ac_c" 1>&6
13578 else
13579   cat > conftest.$ac_ext <<EOF
13580 #line 13581 "configure"
13581 #include "confdefs.h"
13582 /* System header to define __stub macros and hopefully few prototypes,
13583     which can conflict with char $ac_func(); below.  */
13584 #include <assert.h>
13585 /* Override any gcc2 internal prototype to avoid an error.  */
13586 /* We use char because int might match the return type of a gcc2
13587     builtin and then its argument prototype would still apply.  */
13588 char $ac_func();
13589
13590 int main() {
13591
13592 /* The GNU C library defines this for functions which it implements
13593     to always fail with ENOSYS.  Some functions are actually named
13594     something starting with __ and the normal name is an alias.  */
13595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13596 choke me
13597 #else
13598 $ac_func();
13599 #endif
13600
13601 ; return 0; }
13602 EOF
13603 if { (eval echo configure:13604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13604   rm -rf conftest*
13605   eval "ac_cv_func_$ac_func=yes"
13606 else
13607   echo "configure: failed program was:" >&5
13608   cat conftest.$ac_ext >&5
13609   rm -rf conftest*
13610   eval "ac_cv_func_$ac_func=no"
13611 fi
13612 rm -f conftest*
13613 fi
13614
13615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13616   echo "$ac_t""yes" 1>&6
13617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13618   cat >> confdefs.h <<EOF
13619 #define $ac_tr_func 1
13620 EOF
13621  
13622 else
13623   echo "$ac_t""no" 1>&6
13624 fi
13625 done
13626
13627   else
13628     
13629   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13630 echo "configure:13631: checking for _fabsf declaration" >&5
13631   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13632     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13633   echo $ac_n "(cached) $ac_c" 1>&6
13634 else
13635   
13636       
13637       ac_ext=C
13638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13639 ac_cpp='$CXXCPP $CPPFLAGS'
13640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13642 cross_compiling=$ac_cv_prog_cxx_cross
13643
13644       cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 #include <math.h>
13648                       #ifdef HAVE_IEEEFP_H
13649                       #include <ieeefp.h>
13650                       #endif
13651                      
13652 int main() {
13653  _fabsf(0);
13654 ; return 0; }
13655 EOF
13656 if { (eval echo configure:13657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13657   rm -rf conftest*
13658   glibcpp_cv_func__fabsf_use=yes
13659 else
13660   echo "configure: failed program was:" >&5
13661   cat conftest.$ac_ext >&5
13662   rm -rf conftest*
13663   glibcpp_cv_func__fabsf_use=no
13664 fi
13665 rm -f conftest*
13666       ac_ext=c
13667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13671 cross_compiling=$ac_cv_prog_cc_cross
13672
13673     
13674 fi
13675
13676   fi
13677   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13678
13679     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13680       for ac_func in _fabsf
13681 do
13682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13683 echo "configure:13684: checking for $ac_func" >&5
13684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13685   echo $ac_n "(cached) $ac_c" 1>&6
13686 else
13687   cat > conftest.$ac_ext <<EOF
13688 #line 13689 "configure"
13689 #include "confdefs.h"
13690 /* System header to define __stub macros and hopefully few prototypes,
13691     which can conflict with char $ac_func(); below.  */
13692 #include <assert.h>
13693 /* Override any gcc2 internal prototype to avoid an error.  */
13694 /* We use char because int might match the return type of a gcc2
13695     builtin and then its argument prototype would still apply.  */
13696 char $ac_func();
13697
13698 int main() {
13699
13700 /* The GNU C library defines this for functions which it implements
13701     to always fail with ENOSYS.  Some functions are actually named
13702     something starting with __ and the normal name is an alias.  */
13703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13704 choke me
13705 #else
13706 $ac_func();
13707 #endif
13708
13709 ; return 0; }
13710 EOF
13711 if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13712   rm -rf conftest*
13713   eval "ac_cv_func_$ac_func=yes"
13714 else
13715   echo "configure: failed program was:" >&5
13716   cat conftest.$ac_ext >&5
13717   rm -rf conftest*
13718   eval "ac_cv_func_$ac_func=no"
13719 fi
13720 rm -f conftest*
13721 fi
13722
13723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13724   echo "$ac_t""yes" 1>&6
13725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13726   cat >> confdefs.h <<EOF
13727 #define $ac_tr_func 1
13728 EOF
13729  
13730 else
13731   echo "$ac_t""no" 1>&6
13732 fi
13733 done
13734
13735     fi
13736   fi
13737
13738   
13739   
13740   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13741 echo "configure:13742: checking for fmodf declaration" >&5
13742   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13743     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13744   echo $ac_n "(cached) $ac_c" 1>&6
13745 else
13746   
13747       
13748       ac_ext=C
13749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13750 ac_cpp='$CXXCPP $CPPFLAGS'
13751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13753 cross_compiling=$ac_cv_prog_cxx_cross
13754
13755       cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 #include <math.h>
13759 int main() {
13760  fmodf(0, 0);
13761 ; return 0; }
13762 EOF
13763 if { (eval echo configure:13764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13764   rm -rf conftest*
13765   glibcpp_cv_func_fmodf_use=yes
13766 else
13767   echo "configure: failed program was:" >&5
13768   cat conftest.$ac_ext >&5
13769   rm -rf conftest*
13770   glibcpp_cv_func_fmodf_use=no
13771 fi
13772 rm -f conftest*
13773       ac_ext=c
13774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13778 cross_compiling=$ac_cv_prog_cc_cross
13779
13780     
13781 fi
13782
13783   fi
13784   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13785
13786   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13787     for ac_func in fmodf
13788 do
13789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13790 echo "configure:13791: checking for $ac_func" >&5
13791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13792   echo $ac_n "(cached) $ac_c" 1>&6
13793 else
13794   cat > conftest.$ac_ext <<EOF
13795 #line 13796 "configure"
13796 #include "confdefs.h"
13797 /* System header to define __stub macros and hopefully few prototypes,
13798     which can conflict with char $ac_func(); below.  */
13799 #include <assert.h>
13800 /* Override any gcc2 internal prototype to avoid an error.  */
13801 /* We use char because int might match the return type of a gcc2
13802     builtin and then its argument prototype would still apply.  */
13803 char $ac_func();
13804
13805 int main() {
13806
13807 /* The GNU C library defines this for functions which it implements
13808     to always fail with ENOSYS.  Some functions are actually named
13809     something starting with __ and the normal name is an alias.  */
13810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13811 choke me
13812 #else
13813 $ac_func();
13814 #endif
13815
13816 ; return 0; }
13817 EOF
13818 if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13819   rm -rf conftest*
13820   eval "ac_cv_func_$ac_func=yes"
13821 else
13822   echo "configure: failed program was:" >&5
13823   cat conftest.$ac_ext >&5
13824   rm -rf conftest*
13825   eval "ac_cv_func_$ac_func=no"
13826 fi
13827 rm -f conftest*
13828 fi
13829
13830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13831   echo "$ac_t""yes" 1>&6
13832     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13833   cat >> confdefs.h <<EOF
13834 #define $ac_tr_func 1
13835 EOF
13836  
13837 else
13838   echo "$ac_t""no" 1>&6
13839 fi
13840 done
13841
13842   else
13843     
13844   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13845 echo "configure:13846: checking for _fmodf declaration" >&5
13846   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13847     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13848   echo $ac_n "(cached) $ac_c" 1>&6
13849 else
13850   
13851       
13852       ac_ext=C
13853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13854 ac_cpp='$CXXCPP $CPPFLAGS'
13855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13857 cross_compiling=$ac_cv_prog_cxx_cross
13858
13859       cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13862 #include <math.h>
13863 int main() {
13864  _fmodf(0, 0);
13865 ; return 0; }
13866 EOF
13867 if { (eval echo configure:13868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13868   rm -rf conftest*
13869   glibcpp_cv_func__fmodf_use=yes
13870 else
13871   echo "configure: failed program was:" >&5
13872   cat conftest.$ac_ext >&5
13873   rm -rf conftest*
13874   glibcpp_cv_func__fmodf_use=no
13875 fi
13876 rm -f conftest*
13877       ac_ext=c
13878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CPP $CPPFLAGS'
13880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cc_cross
13883
13884     
13885 fi
13886
13887   fi
13888   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13889
13890     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13891       for ac_func in _fmodf
13892 do
13893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13894 echo "configure:13895: checking for $ac_func" >&5
13895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13896   echo $ac_n "(cached) $ac_c" 1>&6
13897 else
13898   cat > conftest.$ac_ext <<EOF
13899 #line 13900 "configure"
13900 #include "confdefs.h"
13901 /* System header to define __stub macros and hopefully few prototypes,
13902     which can conflict with char $ac_func(); below.  */
13903 #include <assert.h>
13904 /* Override any gcc2 internal prototype to avoid an error.  */
13905 /* We use char because int might match the return type of a gcc2
13906     builtin and then its argument prototype would still apply.  */
13907 char $ac_func();
13908
13909 int main() {
13910
13911 /* The GNU C library defines this for functions which it implements
13912     to always fail with ENOSYS.  Some functions are actually named
13913     something starting with __ and the normal name is an alias.  */
13914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13915 choke me
13916 #else
13917 $ac_func();
13918 #endif
13919
13920 ; return 0; }
13921 EOF
13922 if { (eval echo configure:13923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13923   rm -rf conftest*
13924   eval "ac_cv_func_$ac_func=yes"
13925 else
13926   echo "configure: failed program was:" >&5
13927   cat conftest.$ac_ext >&5
13928   rm -rf conftest*
13929   eval "ac_cv_func_$ac_func=no"
13930 fi
13931 rm -f conftest*
13932 fi
13933
13934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13935   echo "$ac_t""yes" 1>&6
13936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13937   cat >> confdefs.h <<EOF
13938 #define $ac_tr_func 1
13939 EOF
13940  
13941 else
13942   echo "$ac_t""no" 1>&6
13943 fi
13944 done
13945
13946     fi
13947   fi
13948
13949   
13950   
13951   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13952 echo "configure:13953: checking for frexpf declaration" >&5
13953   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13954     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13955   echo $ac_n "(cached) $ac_c" 1>&6
13956 else
13957   
13958       
13959       ac_ext=C
13960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13961 ac_cpp='$CXXCPP $CPPFLAGS'
13962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13964 cross_compiling=$ac_cv_prog_cxx_cross
13965
13966       cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 #include <math.h>
13970 int main() {
13971  frexpf(0, 0);
13972 ; return 0; }
13973 EOF
13974 if { (eval echo configure:13975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13975   rm -rf conftest*
13976   glibcpp_cv_func_frexpf_use=yes
13977 else
13978   echo "configure: failed program was:" >&5
13979   cat conftest.$ac_ext >&5
13980   rm -rf conftest*
13981   glibcpp_cv_func_frexpf_use=no
13982 fi
13983 rm -f conftest*
13984       ac_ext=c
13985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13986 ac_cpp='$CPP $CPPFLAGS'
13987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13989 cross_compiling=$ac_cv_prog_cc_cross
13990
13991     
13992 fi
13993
13994   fi
13995   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13996
13997   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13998     for ac_func in frexpf
13999 do
14000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14001 echo "configure:14002: checking for $ac_func" >&5
14002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14003   echo $ac_n "(cached) $ac_c" 1>&6
14004 else
14005   cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* System header to define __stub macros and hopefully few prototypes,
14009     which can conflict with char $ac_func(); below.  */
14010 #include <assert.h>
14011 /* Override any gcc2 internal prototype to avoid an error.  */
14012 /* We use char because int might match the return type of a gcc2
14013     builtin and then its argument prototype would still apply.  */
14014 char $ac_func();
14015
14016 int main() {
14017
14018 /* The GNU C library defines this for functions which it implements
14019     to always fail with ENOSYS.  Some functions are actually named
14020     something starting with __ and the normal name is an alias.  */
14021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14022 choke me
14023 #else
14024 $ac_func();
14025 #endif
14026
14027 ; return 0; }
14028 EOF
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14030   rm -rf conftest*
14031   eval "ac_cv_func_$ac_func=yes"
14032 else
14033   echo "configure: failed program was:" >&5
14034   cat conftest.$ac_ext >&5
14035   rm -rf conftest*
14036   eval "ac_cv_func_$ac_func=no"
14037 fi
14038 rm -f conftest*
14039 fi
14040
14041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14042   echo "$ac_t""yes" 1>&6
14043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14044   cat >> confdefs.h <<EOF
14045 #define $ac_tr_func 1
14046 EOF
14047  
14048 else
14049   echo "$ac_t""no" 1>&6
14050 fi
14051 done
14052
14053   else
14054     
14055   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14056 echo "configure:14057: checking for _frexpf declaration" >&5
14057   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14058     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14059   echo $ac_n "(cached) $ac_c" 1>&6
14060 else
14061   
14062       
14063       ac_ext=C
14064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14065 ac_cpp='$CXXCPP $CPPFLAGS'
14066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068 cross_compiling=$ac_cv_prog_cxx_cross
14069
14070       cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 #include <math.h>
14074 int main() {
14075  _frexpf(0, 0);
14076 ; return 0; }
14077 EOF
14078 if { (eval echo configure:14079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14079   rm -rf conftest*
14080   glibcpp_cv_func__frexpf_use=yes
14081 else
14082   echo "configure: failed program was:" >&5
14083   cat conftest.$ac_ext >&5
14084   rm -rf conftest*
14085   glibcpp_cv_func__frexpf_use=no
14086 fi
14087 rm -f conftest*
14088       ac_ext=c
14089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14093 cross_compiling=$ac_cv_prog_cc_cross
14094
14095     
14096 fi
14097
14098   fi
14099   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14100
14101     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14102       for ac_func in _frexpf
14103 do
14104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14105 echo "configure:14106: checking for $ac_func" >&5
14106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14107   echo $ac_n "(cached) $ac_c" 1>&6
14108 else
14109   cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* System header to define __stub macros and hopefully few prototypes,
14113     which can conflict with char $ac_func(); below.  */
14114 #include <assert.h>
14115 /* Override any gcc2 internal prototype to avoid an error.  */
14116 /* We use char because int might match the return type of a gcc2
14117     builtin and then its argument prototype would still apply.  */
14118 char $ac_func();
14119
14120 int main() {
14121
14122 /* The GNU C library defines this for functions which it implements
14123     to always fail with ENOSYS.  Some functions are actually named
14124     something starting with __ and the normal name is an alias.  */
14125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14126 choke me
14127 #else
14128 $ac_func();
14129 #endif
14130
14131 ; return 0; }
14132 EOF
14133 if { (eval echo configure:14134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14134   rm -rf conftest*
14135   eval "ac_cv_func_$ac_func=yes"
14136 else
14137   echo "configure: failed program was:" >&5
14138   cat conftest.$ac_ext >&5
14139   rm -rf conftest*
14140   eval "ac_cv_func_$ac_func=no"
14141 fi
14142 rm -f conftest*
14143 fi
14144
14145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14146   echo "$ac_t""yes" 1>&6
14147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14148   cat >> confdefs.h <<EOF
14149 #define $ac_tr_func 1
14150 EOF
14151  
14152 else
14153   echo "$ac_t""no" 1>&6
14154 fi
14155 done
14156
14157     fi
14158   fi
14159
14160   
14161   
14162   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14163 echo "configure:14164: checking for hypotf declaration" >&5
14164   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14165     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14166   echo $ac_n "(cached) $ac_c" 1>&6
14167 else
14168   
14169       
14170       ac_ext=C
14171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14172 ac_cpp='$CXXCPP $CPPFLAGS'
14173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14175 cross_compiling=$ac_cv_prog_cxx_cross
14176
14177       cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14180 #include <math.h>
14181 int main() {
14182  hypotf(0, 0);
14183 ; return 0; }
14184 EOF
14185 if { (eval echo configure:14186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14186   rm -rf conftest*
14187   glibcpp_cv_func_hypotf_use=yes
14188 else
14189   echo "configure: failed program was:" >&5
14190   cat conftest.$ac_ext >&5
14191   rm -rf conftest*
14192   glibcpp_cv_func_hypotf_use=no
14193 fi
14194 rm -f conftest*
14195       ac_ext=c
14196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197 ac_cpp='$CPP $CPPFLAGS'
14198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200 cross_compiling=$ac_cv_prog_cc_cross
14201
14202     
14203 fi
14204
14205   fi
14206   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14207
14208   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14209     for ac_func in hypotf
14210 do
14211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14212 echo "configure:14213: checking for $ac_func" >&5
14213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14214   echo $ac_n "(cached) $ac_c" 1>&6
14215 else
14216   cat > conftest.$ac_ext <<EOF
14217 #line 14218 "configure"
14218 #include "confdefs.h"
14219 /* System header to define __stub macros and hopefully few prototypes,
14220     which can conflict with char $ac_func(); below.  */
14221 #include <assert.h>
14222 /* Override any gcc2 internal prototype to avoid an error.  */
14223 /* We use char because int might match the return type of a gcc2
14224     builtin and then its argument prototype would still apply.  */
14225 char $ac_func();
14226
14227 int main() {
14228
14229 /* The GNU C library defines this for functions which it implements
14230     to always fail with ENOSYS.  Some functions are actually named
14231     something starting with __ and the normal name is an alias.  */
14232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14233 choke me
14234 #else
14235 $ac_func();
14236 #endif
14237
14238 ; return 0; }
14239 EOF
14240 if { (eval echo configure:14241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14241   rm -rf conftest*
14242   eval "ac_cv_func_$ac_func=yes"
14243 else
14244   echo "configure: failed program was:" >&5
14245   cat conftest.$ac_ext >&5
14246   rm -rf conftest*
14247   eval "ac_cv_func_$ac_func=no"
14248 fi
14249 rm -f conftest*
14250 fi
14251
14252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14253   echo "$ac_t""yes" 1>&6
14254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14255   cat >> confdefs.h <<EOF
14256 #define $ac_tr_func 1
14257 EOF
14258  
14259 else
14260   echo "$ac_t""no" 1>&6
14261 fi
14262 done
14263
14264   else
14265     
14266   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14267 echo "configure:14268: checking for _hypotf declaration" >&5
14268   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14269     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14270   echo $ac_n "(cached) $ac_c" 1>&6
14271 else
14272   
14273       
14274       ac_ext=C
14275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14276 ac_cpp='$CXXCPP $CPPFLAGS'
14277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14279 cross_compiling=$ac_cv_prog_cxx_cross
14280
14281       cat > conftest.$ac_ext <<EOF
14282 #line 14283 "configure"
14283 #include "confdefs.h"
14284 #include <math.h>
14285 int main() {
14286  _hypotf(0, 0);
14287 ; return 0; }
14288 EOF
14289 if { (eval echo configure:14290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14290   rm -rf conftest*
14291   glibcpp_cv_func__hypotf_use=yes
14292 else
14293   echo "configure: failed program was:" >&5
14294   cat conftest.$ac_ext >&5
14295   rm -rf conftest*
14296   glibcpp_cv_func__hypotf_use=no
14297 fi
14298 rm -f conftest*
14299       ac_ext=c
14300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14301 ac_cpp='$CPP $CPPFLAGS'
14302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14304 cross_compiling=$ac_cv_prog_cc_cross
14305
14306     
14307 fi
14308
14309   fi
14310   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14311
14312     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14313       for ac_func in _hypotf
14314 do
14315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14316 echo "configure:14317: checking for $ac_func" >&5
14317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14318   echo $ac_n "(cached) $ac_c" 1>&6
14319 else
14320   cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14323 /* System header to define __stub macros and hopefully few prototypes,
14324     which can conflict with char $ac_func(); below.  */
14325 #include <assert.h>
14326 /* Override any gcc2 internal prototype to avoid an error.  */
14327 /* We use char because int might match the return type of a gcc2
14328     builtin and then its argument prototype would still apply.  */
14329 char $ac_func();
14330
14331 int main() {
14332
14333 /* The GNU C library defines this for functions which it implements
14334     to always fail with ENOSYS.  Some functions are actually named
14335     something starting with __ and the normal name is an alias.  */
14336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14337 choke me
14338 #else
14339 $ac_func();
14340 #endif
14341
14342 ; return 0; }
14343 EOF
14344 if { (eval echo configure:14345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14345   rm -rf conftest*
14346   eval "ac_cv_func_$ac_func=yes"
14347 else
14348   echo "configure: failed program was:" >&5
14349   cat conftest.$ac_ext >&5
14350   rm -rf conftest*
14351   eval "ac_cv_func_$ac_func=no"
14352 fi
14353 rm -f conftest*
14354 fi
14355
14356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14357   echo "$ac_t""yes" 1>&6
14358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14359   cat >> confdefs.h <<EOF
14360 #define $ac_tr_func 1
14361 EOF
14362  
14363 else
14364   echo "$ac_t""no" 1>&6
14365 fi
14366 done
14367
14368     fi
14369   fi
14370
14371   
14372   
14373   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14374 echo "configure:14375: checking for ldexpf declaration" >&5
14375   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14376     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14377   echo $ac_n "(cached) $ac_c" 1>&6
14378 else
14379   
14380       
14381       ac_ext=C
14382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14383 ac_cpp='$CXXCPP $CPPFLAGS'
14384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14386 cross_compiling=$ac_cv_prog_cxx_cross
14387
14388       cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 #include <math.h>
14392 int main() {
14393  ldexpf(0, 0);
14394 ; return 0; }
14395 EOF
14396 if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397   rm -rf conftest*
14398   glibcpp_cv_func_ldexpf_use=yes
14399 else
14400   echo "configure: failed program was:" >&5
14401   cat conftest.$ac_ext >&5
14402   rm -rf conftest*
14403   glibcpp_cv_func_ldexpf_use=no
14404 fi
14405 rm -f conftest*
14406       ac_ext=c
14407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14408 ac_cpp='$CPP $CPPFLAGS'
14409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14411 cross_compiling=$ac_cv_prog_cc_cross
14412
14413     
14414 fi
14415
14416   fi
14417   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14418
14419   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14420     for ac_func in ldexpf
14421 do
14422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14423 echo "configure:14424: checking for $ac_func" >&5
14424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14425   echo $ac_n "(cached) $ac_c" 1>&6
14426 else
14427   cat > conftest.$ac_ext <<EOF
14428 #line 14429 "configure"
14429 #include "confdefs.h"
14430 /* System header to define __stub macros and hopefully few prototypes,
14431     which can conflict with char $ac_func(); below.  */
14432 #include <assert.h>
14433 /* Override any gcc2 internal prototype to avoid an error.  */
14434 /* We use char because int might match the return type of a gcc2
14435     builtin and then its argument prototype would still apply.  */
14436 char $ac_func();
14437
14438 int main() {
14439
14440 /* The GNU C library defines this for functions which it implements
14441     to always fail with ENOSYS.  Some functions are actually named
14442     something starting with __ and the normal name is an alias.  */
14443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14444 choke me
14445 #else
14446 $ac_func();
14447 #endif
14448
14449 ; return 0; }
14450 EOF
14451 if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452   rm -rf conftest*
14453   eval "ac_cv_func_$ac_func=yes"
14454 else
14455   echo "configure: failed program was:" >&5
14456   cat conftest.$ac_ext >&5
14457   rm -rf conftest*
14458   eval "ac_cv_func_$ac_func=no"
14459 fi
14460 rm -f conftest*
14461 fi
14462
14463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14464   echo "$ac_t""yes" 1>&6
14465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14466   cat >> confdefs.h <<EOF
14467 #define $ac_tr_func 1
14468 EOF
14469  
14470 else
14471   echo "$ac_t""no" 1>&6
14472 fi
14473 done
14474
14475   else
14476     
14477   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14478 echo "configure:14479: checking for _ldexpf declaration" >&5
14479   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14480     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14481   echo $ac_n "(cached) $ac_c" 1>&6
14482 else
14483   
14484       
14485       ac_ext=C
14486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14487 ac_cpp='$CXXCPP $CPPFLAGS'
14488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14490 cross_compiling=$ac_cv_prog_cxx_cross
14491
14492       cat > conftest.$ac_ext <<EOF
14493 #line 14494 "configure"
14494 #include "confdefs.h"
14495 #include <math.h>
14496 int main() {
14497  _ldexpf(0, 0);
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14501   rm -rf conftest*
14502   glibcpp_cv_func__ldexpf_use=yes
14503 else
14504   echo "configure: failed program was:" >&5
14505   cat conftest.$ac_ext >&5
14506   rm -rf conftest*
14507   glibcpp_cv_func__ldexpf_use=no
14508 fi
14509 rm -f conftest*
14510       ac_ext=c
14511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14512 ac_cpp='$CPP $CPPFLAGS'
14513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14515 cross_compiling=$ac_cv_prog_cc_cross
14516
14517     
14518 fi
14519
14520   fi
14521   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14522
14523     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14524       for ac_func in _ldexpf
14525 do
14526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14527 echo "configure:14528: checking for $ac_func" >&5
14528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14529   echo $ac_n "(cached) $ac_c" 1>&6
14530 else
14531   cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 /* System header to define __stub macros and hopefully few prototypes,
14535     which can conflict with char $ac_func(); below.  */
14536 #include <assert.h>
14537 /* Override any gcc2 internal prototype to avoid an error.  */
14538 /* We use char because int might match the return type of a gcc2
14539     builtin and then its argument prototype would still apply.  */
14540 char $ac_func();
14541
14542 int main() {
14543
14544 /* The GNU C library defines this for functions which it implements
14545     to always fail with ENOSYS.  Some functions are actually named
14546     something starting with __ and the normal name is an alias.  */
14547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14548 choke me
14549 #else
14550 $ac_func();
14551 #endif
14552
14553 ; return 0; }
14554 EOF
14555 if { (eval echo configure:14556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14556   rm -rf conftest*
14557   eval "ac_cv_func_$ac_func=yes"
14558 else
14559   echo "configure: failed program was:" >&5
14560   cat conftest.$ac_ext >&5
14561   rm -rf conftest*
14562   eval "ac_cv_func_$ac_func=no"
14563 fi
14564 rm -f conftest*
14565 fi
14566
14567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14568   echo "$ac_t""yes" 1>&6
14569     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14570   cat >> confdefs.h <<EOF
14571 #define $ac_tr_func 1
14572 EOF
14573  
14574 else
14575   echo "$ac_t""no" 1>&6
14576 fi
14577 done
14578
14579     fi
14580   fi
14581
14582   
14583   
14584   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14585 echo "configure:14586: checking for logf declaration" >&5
14586   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14587     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14588   echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590   
14591       
14592       ac_ext=C
14593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14594 ac_cpp='$CXXCPP $CPPFLAGS'
14595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14597 cross_compiling=$ac_cv_prog_cxx_cross
14598
14599       cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <math.h>
14603                       #ifdef HAVE_IEEEFP_H
14604                       #include <ieeefp.h>
14605                       #endif
14606                      
14607 int main() {
14608  logf(0);
14609 ; return 0; }
14610 EOF
14611 if { (eval echo configure:14612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14612   rm -rf conftest*
14613   glibcpp_cv_func_logf_use=yes
14614 else
14615   echo "configure: failed program was:" >&5
14616   cat conftest.$ac_ext >&5
14617   rm -rf conftest*
14618   glibcpp_cv_func_logf_use=no
14619 fi
14620 rm -f conftest*
14621       ac_ext=c
14622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14623 ac_cpp='$CPP $CPPFLAGS'
14624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14626 cross_compiling=$ac_cv_prog_cc_cross
14627
14628     
14629 fi
14630
14631   fi
14632   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14633
14634   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14635     for ac_func in logf
14636 do
14637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14638 echo "configure:14639: checking for $ac_func" >&5
14639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14640   echo $ac_n "(cached) $ac_c" 1>&6
14641 else
14642   cat > conftest.$ac_ext <<EOF
14643 #line 14644 "configure"
14644 #include "confdefs.h"
14645 /* System header to define __stub macros and hopefully few prototypes,
14646     which can conflict with char $ac_func(); below.  */
14647 #include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 /* We use char because int might match the return type of a gcc2
14650     builtin and then its argument prototype would still apply.  */
14651 char $ac_func();
14652
14653 int main() {
14654
14655 /* The GNU C library defines this for functions which it implements
14656     to always fail with ENOSYS.  Some functions are actually named
14657     something starting with __ and the normal name is an alias.  */
14658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14659 choke me
14660 #else
14661 $ac_func();
14662 #endif
14663
14664 ; return 0; }
14665 EOF
14666 if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14667   rm -rf conftest*
14668   eval "ac_cv_func_$ac_func=yes"
14669 else
14670   echo "configure: failed program was:" >&5
14671   cat conftest.$ac_ext >&5
14672   rm -rf conftest*
14673   eval "ac_cv_func_$ac_func=no"
14674 fi
14675 rm -f conftest*
14676 fi
14677
14678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14679   echo "$ac_t""yes" 1>&6
14680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14681   cat >> confdefs.h <<EOF
14682 #define $ac_tr_func 1
14683 EOF
14684  
14685 else
14686   echo "$ac_t""no" 1>&6
14687 fi
14688 done
14689
14690   else
14691     
14692   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14693 echo "configure:14694: checking for _logf declaration" >&5
14694   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14695     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14696   echo $ac_n "(cached) $ac_c" 1>&6
14697 else
14698   
14699       
14700       ac_ext=C
14701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14702 ac_cpp='$CXXCPP $CPPFLAGS'
14703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14705 cross_compiling=$ac_cv_prog_cxx_cross
14706
14707       cat > conftest.$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14710 #include <math.h>
14711                       #ifdef HAVE_IEEEFP_H
14712                       #include <ieeefp.h>
14713                       #endif
14714                      
14715 int main() {
14716  _logf(0);
14717 ; return 0; }
14718 EOF
14719 if { (eval echo configure:14720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14720   rm -rf conftest*
14721   glibcpp_cv_func__logf_use=yes
14722 else
14723   echo "configure: failed program was:" >&5
14724   cat conftest.$ac_ext >&5
14725   rm -rf conftest*
14726   glibcpp_cv_func__logf_use=no
14727 fi
14728 rm -f conftest*
14729       ac_ext=c
14730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14731 ac_cpp='$CPP $CPPFLAGS'
14732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14734 cross_compiling=$ac_cv_prog_cc_cross
14735
14736     
14737 fi
14738
14739   fi
14740   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14741
14742     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14743       for ac_func in _logf
14744 do
14745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14746 echo "configure:14747: checking for $ac_func" >&5
14747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14748   echo $ac_n "(cached) $ac_c" 1>&6
14749 else
14750   cat > conftest.$ac_ext <<EOF
14751 #line 14752 "configure"
14752 #include "confdefs.h"
14753 /* System header to define __stub macros and hopefully few prototypes,
14754     which can conflict with char $ac_func(); below.  */
14755 #include <assert.h>
14756 /* Override any gcc2 internal prototype to avoid an error.  */
14757 /* We use char because int might match the return type of a gcc2
14758     builtin and then its argument prototype would still apply.  */
14759 char $ac_func();
14760
14761 int main() {
14762
14763 /* The GNU C library defines this for functions which it implements
14764     to always fail with ENOSYS.  Some functions are actually named
14765     something starting with __ and the normal name is an alias.  */
14766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14767 choke me
14768 #else
14769 $ac_func();
14770 #endif
14771
14772 ; return 0; }
14773 EOF
14774 if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14775   rm -rf conftest*
14776   eval "ac_cv_func_$ac_func=yes"
14777 else
14778   echo "configure: failed program was:" >&5
14779   cat conftest.$ac_ext >&5
14780   rm -rf conftest*
14781   eval "ac_cv_func_$ac_func=no"
14782 fi
14783 rm -f conftest*
14784 fi
14785
14786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14787   echo "$ac_t""yes" 1>&6
14788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14789   cat >> confdefs.h <<EOF
14790 #define $ac_tr_func 1
14791 EOF
14792  
14793 else
14794   echo "$ac_t""no" 1>&6
14795 fi
14796 done
14797
14798     fi
14799   fi
14800
14801   
14802   
14803   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14804 echo "configure:14805: checking for log10f declaration" >&5
14805   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14806     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14807   echo $ac_n "(cached) $ac_c" 1>&6
14808 else
14809   
14810       
14811       ac_ext=C
14812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14813 ac_cpp='$CXXCPP $CPPFLAGS'
14814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14816 cross_compiling=$ac_cv_prog_cxx_cross
14817
14818       cat > conftest.$ac_ext <<EOF
14819 #line 14820 "configure"
14820 #include "confdefs.h"
14821 #include <math.h>
14822                       #ifdef HAVE_IEEEFP_H
14823                       #include <ieeefp.h>
14824                       #endif
14825                      
14826 int main() {
14827  log10f(0);
14828 ; return 0; }
14829 EOF
14830 if { (eval echo configure:14831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14831   rm -rf conftest*
14832   glibcpp_cv_func_log10f_use=yes
14833 else
14834   echo "configure: failed program was:" >&5
14835   cat conftest.$ac_ext >&5
14836   rm -rf conftest*
14837   glibcpp_cv_func_log10f_use=no
14838 fi
14839 rm -f conftest*
14840       ac_ext=c
14841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14842 ac_cpp='$CPP $CPPFLAGS'
14843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14845 cross_compiling=$ac_cv_prog_cc_cross
14846
14847     
14848 fi
14849
14850   fi
14851   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14852
14853   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14854     for ac_func in log10f
14855 do
14856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14857 echo "configure:14858: checking for $ac_func" >&5
14858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14859   echo $ac_n "(cached) $ac_c" 1>&6
14860 else
14861   cat > conftest.$ac_ext <<EOF
14862 #line 14863 "configure"
14863 #include "confdefs.h"
14864 /* System header to define __stub macros and hopefully few prototypes,
14865     which can conflict with char $ac_func(); below.  */
14866 #include <assert.h>
14867 /* Override any gcc2 internal prototype to avoid an error.  */
14868 /* We use char because int might match the return type of a gcc2
14869     builtin and then its argument prototype would still apply.  */
14870 char $ac_func();
14871
14872 int main() {
14873
14874 /* The GNU C library defines this for functions which it implements
14875     to always fail with ENOSYS.  Some functions are actually named
14876     something starting with __ and the normal name is an alias.  */
14877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14878 choke me
14879 #else
14880 $ac_func();
14881 #endif
14882
14883 ; return 0; }
14884 EOF
14885 if { (eval echo configure:14886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14886   rm -rf conftest*
14887   eval "ac_cv_func_$ac_func=yes"
14888 else
14889   echo "configure: failed program was:" >&5
14890   cat conftest.$ac_ext >&5
14891   rm -rf conftest*
14892   eval "ac_cv_func_$ac_func=no"
14893 fi
14894 rm -f conftest*
14895 fi
14896
14897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14898   echo "$ac_t""yes" 1>&6
14899     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14900   cat >> confdefs.h <<EOF
14901 #define $ac_tr_func 1
14902 EOF
14903  
14904 else
14905   echo "$ac_t""no" 1>&6
14906 fi
14907 done
14908
14909   else
14910     
14911   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14912 echo "configure:14913: checking for _log10f declaration" >&5
14913   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14914     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14915   echo $ac_n "(cached) $ac_c" 1>&6
14916 else
14917   
14918       
14919       ac_ext=C
14920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14921 ac_cpp='$CXXCPP $CPPFLAGS'
14922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14924 cross_compiling=$ac_cv_prog_cxx_cross
14925
14926       cat > conftest.$ac_ext <<EOF
14927 #line 14928 "configure"
14928 #include "confdefs.h"
14929 #include <math.h>
14930                       #ifdef HAVE_IEEEFP_H
14931                       #include <ieeefp.h>
14932                       #endif
14933                      
14934 int main() {
14935  _log10f(0);
14936 ; return 0; }
14937 EOF
14938 if { (eval echo configure:14939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14939   rm -rf conftest*
14940   glibcpp_cv_func__log10f_use=yes
14941 else
14942   echo "configure: failed program was:" >&5
14943   cat conftest.$ac_ext >&5
14944   rm -rf conftest*
14945   glibcpp_cv_func__log10f_use=no
14946 fi
14947 rm -f conftest*
14948       ac_ext=c
14949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14950 ac_cpp='$CPP $CPPFLAGS'
14951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14953 cross_compiling=$ac_cv_prog_cc_cross
14954
14955     
14956 fi
14957
14958   fi
14959   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14960
14961     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14962       for ac_func in _log10f
14963 do
14964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14965 echo "configure:14966: checking for $ac_func" >&5
14966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14967   echo $ac_n "(cached) $ac_c" 1>&6
14968 else
14969   cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14972 /* System header to define __stub macros and hopefully few prototypes,
14973     which can conflict with char $ac_func(); below.  */
14974 #include <assert.h>
14975 /* Override any gcc2 internal prototype to avoid an error.  */
14976 /* We use char because int might match the return type of a gcc2
14977     builtin and then its argument prototype would still apply.  */
14978 char $ac_func();
14979
14980 int main() {
14981
14982 /* The GNU C library defines this for functions which it implements
14983     to always fail with ENOSYS.  Some functions are actually named
14984     something starting with __ and the normal name is an alias.  */
14985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14986 choke me
14987 #else
14988 $ac_func();
14989 #endif
14990
14991 ; return 0; }
14992 EOF
14993 if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14994   rm -rf conftest*
14995   eval "ac_cv_func_$ac_func=yes"
14996 else
14997   echo "configure: failed program was:" >&5
14998   cat conftest.$ac_ext >&5
14999   rm -rf conftest*
15000   eval "ac_cv_func_$ac_func=no"
15001 fi
15002 rm -f conftest*
15003 fi
15004
15005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15006   echo "$ac_t""yes" 1>&6
15007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15008   cat >> confdefs.h <<EOF
15009 #define $ac_tr_func 1
15010 EOF
15011  
15012 else
15013   echo "$ac_t""no" 1>&6
15014 fi
15015 done
15016
15017     fi
15018   fi
15019
15020   
15021   
15022   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15023 echo "configure:15024: checking for modff declaration" >&5
15024   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15025     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15026   echo $ac_n "(cached) $ac_c" 1>&6
15027 else
15028   
15029       
15030       ac_ext=C
15031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15032 ac_cpp='$CXXCPP $CPPFLAGS'
15033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15035 cross_compiling=$ac_cv_prog_cxx_cross
15036
15037       cat > conftest.$ac_ext <<EOF
15038 #line 15039 "configure"
15039 #include "confdefs.h"
15040 #include <math.h>
15041 int main() {
15042  modff(0, 0);
15043 ; return 0; }
15044 EOF
15045 if { (eval echo configure:15046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15046   rm -rf conftest*
15047   glibcpp_cv_func_modff_use=yes
15048 else
15049   echo "configure: failed program was:" >&5
15050   cat conftest.$ac_ext >&5
15051   rm -rf conftest*
15052   glibcpp_cv_func_modff_use=no
15053 fi
15054 rm -f conftest*
15055       ac_ext=c
15056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15057 ac_cpp='$CPP $CPPFLAGS'
15058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15060 cross_compiling=$ac_cv_prog_cc_cross
15061
15062     
15063 fi
15064
15065   fi
15066   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15067
15068   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15069     for ac_func in modff
15070 do
15071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15072 echo "configure:15073: checking for $ac_func" >&5
15073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15074   echo $ac_n "(cached) $ac_c" 1>&6
15075 else
15076   cat > conftest.$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 /* System header to define __stub macros and hopefully few prototypes,
15080     which can conflict with char $ac_func(); below.  */
15081 #include <assert.h>
15082 /* Override any gcc2 internal prototype to avoid an error.  */
15083 /* We use char because int might match the return type of a gcc2
15084     builtin and then its argument prototype would still apply.  */
15085 char $ac_func();
15086
15087 int main() {
15088
15089 /* The GNU C library defines this for functions which it implements
15090     to always fail with ENOSYS.  Some functions are actually named
15091     something starting with __ and the normal name is an alias.  */
15092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15093 choke me
15094 #else
15095 $ac_func();
15096 #endif
15097
15098 ; return 0; }
15099 EOF
15100 if { (eval echo configure:15101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15101   rm -rf conftest*
15102   eval "ac_cv_func_$ac_func=yes"
15103 else
15104   echo "configure: failed program was:" >&5
15105   cat conftest.$ac_ext >&5
15106   rm -rf conftest*
15107   eval "ac_cv_func_$ac_func=no"
15108 fi
15109 rm -f conftest*
15110 fi
15111
15112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15113   echo "$ac_t""yes" 1>&6
15114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15115   cat >> confdefs.h <<EOF
15116 #define $ac_tr_func 1
15117 EOF
15118  
15119 else
15120   echo "$ac_t""no" 1>&6
15121 fi
15122 done
15123
15124   else
15125     
15126   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15127 echo "configure:15128: checking for _modff declaration" >&5
15128   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15129     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15130   echo $ac_n "(cached) $ac_c" 1>&6
15131 else
15132   
15133       
15134       ac_ext=C
15135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15136 ac_cpp='$CXXCPP $CPPFLAGS'
15137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15139 cross_compiling=$ac_cv_prog_cxx_cross
15140
15141       cat > conftest.$ac_ext <<EOF
15142 #line 15143 "configure"
15143 #include "confdefs.h"
15144 #include <math.h>
15145 int main() {
15146  _modff(0, 0);
15147 ; return 0; }
15148 EOF
15149 if { (eval echo configure:15150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15150   rm -rf conftest*
15151   glibcpp_cv_func__modff_use=yes
15152 else
15153   echo "configure: failed program was:" >&5
15154   cat conftest.$ac_ext >&5
15155   rm -rf conftest*
15156   glibcpp_cv_func__modff_use=no
15157 fi
15158 rm -f conftest*
15159       ac_ext=c
15160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15161 ac_cpp='$CPP $CPPFLAGS'
15162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15164 cross_compiling=$ac_cv_prog_cc_cross
15165
15166     
15167 fi
15168
15169   fi
15170   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15171
15172     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15173       for ac_func in _modff
15174 do
15175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15176 echo "configure:15177: checking for $ac_func" >&5
15177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15178   echo $ac_n "(cached) $ac_c" 1>&6
15179 else
15180   cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 /* System header to define __stub macros and hopefully few prototypes,
15184     which can conflict with char $ac_func(); below.  */
15185 #include <assert.h>
15186 /* Override any gcc2 internal prototype to avoid an error.  */
15187 /* We use char because int might match the return type of a gcc2
15188     builtin and then its argument prototype would still apply.  */
15189 char $ac_func();
15190
15191 int main() {
15192
15193 /* The GNU C library defines this for functions which it implements
15194     to always fail with ENOSYS.  Some functions are actually named
15195     something starting with __ and the normal name is an alias.  */
15196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15197 choke me
15198 #else
15199 $ac_func();
15200 #endif
15201
15202 ; return 0; }
15203 EOF
15204 if { (eval echo configure:15205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15205   rm -rf conftest*
15206   eval "ac_cv_func_$ac_func=yes"
15207 else
15208   echo "configure: failed program was:" >&5
15209   cat conftest.$ac_ext >&5
15210   rm -rf conftest*
15211   eval "ac_cv_func_$ac_func=no"
15212 fi
15213 rm -f conftest*
15214 fi
15215
15216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15217   echo "$ac_t""yes" 1>&6
15218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15219   cat >> confdefs.h <<EOF
15220 #define $ac_tr_func 1
15221 EOF
15222  
15223 else
15224   echo "$ac_t""no" 1>&6
15225 fi
15226 done
15227
15228     fi
15229   fi
15230
15231   
15232   
15233   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15234 echo "configure:15235: checking for powf declaration" >&5
15235   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15236     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15237   echo $ac_n "(cached) $ac_c" 1>&6
15238 else
15239   
15240       
15241       ac_ext=C
15242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15243 ac_cpp='$CXXCPP $CPPFLAGS'
15244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15246 cross_compiling=$ac_cv_prog_cxx_cross
15247
15248       cat > conftest.$ac_ext <<EOF
15249 #line 15250 "configure"
15250 #include "confdefs.h"
15251 #include <math.h>
15252 int main() {
15253  powf(0, 0);
15254 ; return 0; }
15255 EOF
15256 if { (eval echo configure:15257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15257   rm -rf conftest*
15258   glibcpp_cv_func_powf_use=yes
15259 else
15260   echo "configure: failed program was:" >&5
15261   cat conftest.$ac_ext >&5
15262   rm -rf conftest*
15263   glibcpp_cv_func_powf_use=no
15264 fi
15265 rm -f conftest*
15266       ac_ext=c
15267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CPP $CPPFLAGS'
15269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cc_cross
15272
15273     
15274 fi
15275
15276   fi
15277   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15278
15279   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15280     for ac_func in powf
15281 do
15282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15283 echo "configure:15284: checking for $ac_func" >&5
15284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15285   echo $ac_n "(cached) $ac_c" 1>&6
15286 else
15287   cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* System header to define __stub macros and hopefully few prototypes,
15291     which can conflict with char $ac_func(); below.  */
15292 #include <assert.h>
15293 /* Override any gcc2 internal prototype to avoid an error.  */
15294 /* We use char because int might match the return type of a gcc2
15295     builtin and then its argument prototype would still apply.  */
15296 char $ac_func();
15297
15298 int main() {
15299
15300 /* The GNU C library defines this for functions which it implements
15301     to always fail with ENOSYS.  Some functions are actually named
15302     something starting with __ and the normal name is an alias.  */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304 choke me
15305 #else
15306 $ac_func();
15307 #endif
15308
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15312   rm -rf conftest*
15313   eval "ac_cv_func_$ac_func=yes"
15314 else
15315   echo "configure: failed program was:" >&5
15316   cat conftest.$ac_ext >&5
15317   rm -rf conftest*
15318   eval "ac_cv_func_$ac_func=no"
15319 fi
15320 rm -f conftest*
15321 fi
15322
15323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15324   echo "$ac_t""yes" 1>&6
15325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326   cat >> confdefs.h <<EOF
15327 #define $ac_tr_func 1
15328 EOF
15329  
15330 else
15331   echo "$ac_t""no" 1>&6
15332 fi
15333 done
15334
15335   else
15336     
15337   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15338 echo "configure:15339: checking for _powf declaration" >&5
15339   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15340     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15341   echo $ac_n "(cached) $ac_c" 1>&6
15342 else
15343   
15344       
15345       ac_ext=C
15346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15347 ac_cpp='$CXXCPP $CPPFLAGS'
15348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15350 cross_compiling=$ac_cv_prog_cxx_cross
15351
15352       cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355 #include <math.h>
15356 int main() {
15357  _powf(0, 0);
15358 ; return 0; }
15359 EOF
15360 if { (eval echo configure:15361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15361   rm -rf conftest*
15362   glibcpp_cv_func__powf_use=yes
15363 else
15364   echo "configure: failed program was:" >&5
15365   cat conftest.$ac_ext >&5
15366   rm -rf conftest*
15367   glibcpp_cv_func__powf_use=no
15368 fi
15369 rm -f conftest*
15370       ac_ext=c
15371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15375 cross_compiling=$ac_cv_prog_cc_cross
15376
15377     
15378 fi
15379
15380   fi
15381   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15382
15383     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15384       for ac_func in _powf
15385 do
15386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15387 echo "configure:15388: checking for $ac_func" >&5
15388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15389   echo $ac_n "(cached) $ac_c" 1>&6
15390 else
15391   cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 /* System header to define __stub macros and hopefully few prototypes,
15395     which can conflict with char $ac_func(); below.  */
15396 #include <assert.h>
15397 /* Override any gcc2 internal prototype to avoid an error.  */
15398 /* We use char because int might match the return type of a gcc2
15399     builtin and then its argument prototype would still apply.  */
15400 char $ac_func();
15401
15402 int main() {
15403
15404 /* The GNU C library defines this for functions which it implements
15405     to always fail with ENOSYS.  Some functions are actually named
15406     something starting with __ and the normal name is an alias.  */
15407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15408 choke me
15409 #else
15410 $ac_func();
15411 #endif
15412
15413 ; return 0; }
15414 EOF
15415 if { (eval echo configure:15416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15416   rm -rf conftest*
15417   eval "ac_cv_func_$ac_func=yes"
15418 else
15419   echo "configure: failed program was:" >&5
15420   cat conftest.$ac_ext >&5
15421   rm -rf conftest*
15422   eval "ac_cv_func_$ac_func=no"
15423 fi
15424 rm -f conftest*
15425 fi
15426
15427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15428   echo "$ac_t""yes" 1>&6
15429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15430   cat >> confdefs.h <<EOF
15431 #define $ac_tr_func 1
15432 EOF
15433  
15434 else
15435   echo "$ac_t""no" 1>&6
15436 fi
15437 done
15438
15439     fi
15440   fi
15441
15442   
15443   
15444   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15445 echo "configure:15446: checking for sqrtf declaration" >&5
15446   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15447     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15448   echo $ac_n "(cached) $ac_c" 1>&6
15449 else
15450   
15451       
15452       ac_ext=C
15453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15454 ac_cpp='$CXXCPP $CPPFLAGS'
15455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15457 cross_compiling=$ac_cv_prog_cxx_cross
15458
15459       cat > conftest.$ac_ext <<EOF
15460 #line 15461 "configure"
15461 #include "confdefs.h"
15462 #include <math.h>
15463                       #ifdef HAVE_IEEEFP_H
15464                       #include <ieeefp.h>
15465                       #endif
15466                      
15467 int main() {
15468  sqrtf(0);
15469 ; return 0; }
15470 EOF
15471 if { (eval echo configure:15472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15472   rm -rf conftest*
15473   glibcpp_cv_func_sqrtf_use=yes
15474 else
15475   echo "configure: failed program was:" >&5
15476   cat conftest.$ac_ext >&5
15477   rm -rf conftest*
15478   glibcpp_cv_func_sqrtf_use=no
15479 fi
15480 rm -f conftest*
15481       ac_ext=c
15482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15483 ac_cpp='$CPP $CPPFLAGS'
15484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15486 cross_compiling=$ac_cv_prog_cc_cross
15487
15488     
15489 fi
15490
15491   fi
15492   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15493
15494   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15495     for ac_func in sqrtf
15496 do
15497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15498 echo "configure:15499: checking for $ac_func" >&5
15499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15500   echo $ac_n "(cached) $ac_c" 1>&6
15501 else
15502   cat > conftest.$ac_ext <<EOF
15503 #line 15504 "configure"
15504 #include "confdefs.h"
15505 /* System header to define __stub macros and hopefully few prototypes,
15506     which can conflict with char $ac_func(); below.  */
15507 #include <assert.h>
15508 /* Override any gcc2 internal prototype to avoid an error.  */
15509 /* We use char because int might match the return type of a gcc2
15510     builtin and then its argument prototype would still apply.  */
15511 char $ac_func();
15512
15513 int main() {
15514
15515 /* The GNU C library defines this for functions which it implements
15516     to always fail with ENOSYS.  Some functions are actually named
15517     something starting with __ and the normal name is an alias.  */
15518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15519 choke me
15520 #else
15521 $ac_func();
15522 #endif
15523
15524 ; return 0; }
15525 EOF
15526 if { (eval echo configure:15527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15527   rm -rf conftest*
15528   eval "ac_cv_func_$ac_func=yes"
15529 else
15530   echo "configure: failed program was:" >&5
15531   cat conftest.$ac_ext >&5
15532   rm -rf conftest*
15533   eval "ac_cv_func_$ac_func=no"
15534 fi
15535 rm -f conftest*
15536 fi
15537
15538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15539   echo "$ac_t""yes" 1>&6
15540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15541   cat >> confdefs.h <<EOF
15542 #define $ac_tr_func 1
15543 EOF
15544  
15545 else
15546   echo "$ac_t""no" 1>&6
15547 fi
15548 done
15549
15550   else
15551     
15552   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15553 echo "configure:15554: checking for _sqrtf declaration" >&5
15554   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15555     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15556   echo $ac_n "(cached) $ac_c" 1>&6
15557 else
15558   
15559       
15560       ac_ext=C
15561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15562 ac_cpp='$CXXCPP $CPPFLAGS'
15563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15565 cross_compiling=$ac_cv_prog_cxx_cross
15566
15567       cat > conftest.$ac_ext <<EOF
15568 #line 15569 "configure"
15569 #include "confdefs.h"
15570 #include <math.h>
15571                       #ifdef HAVE_IEEEFP_H
15572                       #include <ieeefp.h>
15573                       #endif
15574                      
15575 int main() {
15576  _sqrtf(0);
15577 ; return 0; }
15578 EOF
15579 if { (eval echo configure:15580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15580   rm -rf conftest*
15581   glibcpp_cv_func__sqrtf_use=yes
15582 else
15583   echo "configure: failed program was:" >&5
15584   cat conftest.$ac_ext >&5
15585   rm -rf conftest*
15586   glibcpp_cv_func__sqrtf_use=no
15587 fi
15588 rm -f conftest*
15589       ac_ext=c
15590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15591 ac_cpp='$CPP $CPPFLAGS'
15592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15594 cross_compiling=$ac_cv_prog_cc_cross
15595
15596     
15597 fi
15598
15599   fi
15600   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15601
15602     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15603       for ac_func in _sqrtf
15604 do
15605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15606 echo "configure:15607: checking for $ac_func" >&5
15607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15608   echo $ac_n "(cached) $ac_c" 1>&6
15609 else
15610   cat > conftest.$ac_ext <<EOF
15611 #line 15612 "configure"
15612 #include "confdefs.h"
15613 /* System header to define __stub macros and hopefully few prototypes,
15614     which can conflict with char $ac_func(); below.  */
15615 #include <assert.h>
15616 /* Override any gcc2 internal prototype to avoid an error.  */
15617 /* We use char because int might match the return type of a gcc2
15618     builtin and then its argument prototype would still apply.  */
15619 char $ac_func();
15620
15621 int main() {
15622
15623 /* The GNU C library defines this for functions which it implements
15624     to always fail with ENOSYS.  Some functions are actually named
15625     something starting with __ and the normal name is an alias.  */
15626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15627 choke me
15628 #else
15629 $ac_func();
15630 #endif
15631
15632 ; return 0; }
15633 EOF
15634 if { (eval echo configure:15635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15635   rm -rf conftest*
15636   eval "ac_cv_func_$ac_func=yes"
15637 else
15638   echo "configure: failed program was:" >&5
15639   cat conftest.$ac_ext >&5
15640   rm -rf conftest*
15641   eval "ac_cv_func_$ac_func=no"
15642 fi
15643 rm -f conftest*
15644 fi
15645
15646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15647   echo "$ac_t""yes" 1>&6
15648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15649   cat >> confdefs.h <<EOF
15650 #define $ac_tr_func 1
15651 EOF
15652  
15653 else
15654   echo "$ac_t""no" 1>&6
15655 fi
15656 done
15657
15658     fi
15659   fi
15660
15661   
15662   
15663   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15664 echo "configure:15665: checking for sincosf declaration" >&5
15665   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15666     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15667   echo $ac_n "(cached) $ac_c" 1>&6
15668 else
15669   
15670       
15671       ac_ext=C
15672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15673 ac_cpp='$CXXCPP $CPPFLAGS'
15674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15676 cross_compiling=$ac_cv_prog_cxx_cross
15677
15678       cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure"
15680 #include "confdefs.h"
15681 #include <math.h>
15682 int main() {
15683  sincosf(0, 0, 0);
15684 ; return 0; }
15685 EOF
15686 if { (eval echo configure:15687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15687   rm -rf conftest*
15688   glibcpp_cv_func_sincosf_use=yes
15689 else
15690   echo "configure: failed program was:" >&5
15691   cat conftest.$ac_ext >&5
15692   rm -rf conftest*
15693   glibcpp_cv_func_sincosf_use=no
15694 fi
15695 rm -f conftest*
15696       ac_ext=c
15697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15698 ac_cpp='$CPP $CPPFLAGS'
15699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15701 cross_compiling=$ac_cv_prog_cc_cross
15702
15703     
15704 fi
15705
15706   fi
15707   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15708
15709   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15710     for ac_func in sincosf
15711 do
15712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15713 echo "configure:15714: checking for $ac_func" >&5
15714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15715   echo $ac_n "(cached) $ac_c" 1>&6
15716 else
15717   cat > conftest.$ac_ext <<EOF
15718 #line 15719 "configure"
15719 #include "confdefs.h"
15720 /* System header to define __stub macros and hopefully few prototypes,
15721     which can conflict with char $ac_func(); below.  */
15722 #include <assert.h>
15723 /* Override any gcc2 internal prototype to avoid an error.  */
15724 /* We use char because int might match the return type of a gcc2
15725     builtin and then its argument prototype would still apply.  */
15726 char $ac_func();
15727
15728 int main() {
15729
15730 /* The GNU C library defines this for functions which it implements
15731     to always fail with ENOSYS.  Some functions are actually named
15732     something starting with __ and the normal name is an alias.  */
15733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15734 choke me
15735 #else
15736 $ac_func();
15737 #endif
15738
15739 ; return 0; }
15740 EOF
15741 if { (eval echo configure:15742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15742   rm -rf conftest*
15743   eval "ac_cv_func_$ac_func=yes"
15744 else
15745   echo "configure: failed program was:" >&5
15746   cat conftest.$ac_ext >&5
15747   rm -rf conftest*
15748   eval "ac_cv_func_$ac_func=no"
15749 fi
15750 rm -f conftest*
15751 fi
15752
15753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15754   echo "$ac_t""yes" 1>&6
15755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15756   cat >> confdefs.h <<EOF
15757 #define $ac_tr_func 1
15758 EOF
15759  
15760 else
15761   echo "$ac_t""no" 1>&6
15762 fi
15763 done
15764
15765   else
15766     
15767   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15768 echo "configure:15769: checking for _sincosf declaration" >&5
15769   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15770     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15771   echo $ac_n "(cached) $ac_c" 1>&6
15772 else
15773   
15774       
15775       ac_ext=C
15776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15777 ac_cpp='$CXXCPP $CPPFLAGS'
15778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15780 cross_compiling=$ac_cv_prog_cxx_cross
15781
15782       cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15785 #include <math.h>
15786 int main() {
15787  _sincosf(0, 0, 0);
15788 ; return 0; }
15789 EOF
15790 if { (eval echo configure:15791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15791   rm -rf conftest*
15792   glibcpp_cv_func__sincosf_use=yes
15793 else
15794   echo "configure: failed program was:" >&5
15795   cat conftest.$ac_ext >&5
15796   rm -rf conftest*
15797   glibcpp_cv_func__sincosf_use=no
15798 fi
15799 rm -f conftest*
15800       ac_ext=c
15801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15802 ac_cpp='$CPP $CPPFLAGS'
15803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15805 cross_compiling=$ac_cv_prog_cc_cross
15806
15807     
15808 fi
15809
15810   fi
15811   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15812
15813     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15814       for ac_func in _sincosf
15815 do
15816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15817 echo "configure:15818: checking for $ac_func" >&5
15818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15819   echo $ac_n "(cached) $ac_c" 1>&6
15820 else
15821   cat > conftest.$ac_ext <<EOF
15822 #line 15823 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825     which can conflict with char $ac_func(); below.  */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error.  */
15828 /* We use char because int might match the return type of a gcc2
15829     builtin and then its argument prototype would still apply.  */
15830 char $ac_func();
15831
15832 int main() {
15833
15834 /* The GNU C library defines this for functions which it implements
15835     to always fail with ENOSYS.  Some functions are actually named
15836     something starting with __ and the normal name is an alias.  */
15837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15838 choke me
15839 #else
15840 $ac_func();
15841 #endif
15842
15843 ; return 0; }
15844 EOF
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846   rm -rf conftest*
15847   eval "ac_cv_func_$ac_func=yes"
15848 else
15849   echo "configure: failed program was:" >&5
15850   cat conftest.$ac_ext >&5
15851   rm -rf conftest*
15852   eval "ac_cv_func_$ac_func=no"
15853 fi
15854 rm -f conftest*
15855 fi
15856
15857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15858   echo "$ac_t""yes" 1>&6
15859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15860   cat >> confdefs.h <<EOF
15861 #define $ac_tr_func 1
15862 EOF
15863  
15864 else
15865   echo "$ac_t""no" 1>&6
15866 fi
15867 done
15868
15869     fi
15870   fi
15871
15872   
15873   
15874   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15875 echo "configure:15876: checking for finitef declaration" >&5
15876   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15877     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15878   echo $ac_n "(cached) $ac_c" 1>&6
15879 else
15880   
15881       
15882       ac_ext=C
15883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15884 ac_cpp='$CXXCPP $CPPFLAGS'
15885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15887 cross_compiling=$ac_cv_prog_cxx_cross
15888
15889       cat > conftest.$ac_ext <<EOF
15890 #line 15891 "configure"
15891 #include "confdefs.h"
15892 #include <math.h>
15893                       #ifdef HAVE_IEEEFP_H
15894                       #include <ieeefp.h>
15895                       #endif
15896                      
15897 int main() {
15898  finitef(0);
15899 ; return 0; }
15900 EOF
15901 if { (eval echo configure:15902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15902   rm -rf conftest*
15903   glibcpp_cv_func_finitef_use=yes
15904 else
15905   echo "configure: failed program was:" >&5
15906   cat conftest.$ac_ext >&5
15907   rm -rf conftest*
15908   glibcpp_cv_func_finitef_use=no
15909 fi
15910 rm -f conftest*
15911       ac_ext=c
15912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15913 ac_cpp='$CPP $CPPFLAGS'
15914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15916 cross_compiling=$ac_cv_prog_cc_cross
15917
15918     
15919 fi
15920
15921   fi
15922   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15923
15924   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15925     for ac_func in finitef
15926 do
15927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15928 echo "configure:15929: checking for $ac_func" >&5
15929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15930   echo $ac_n "(cached) $ac_c" 1>&6
15931 else
15932   cat > conftest.$ac_ext <<EOF
15933 #line 15934 "configure"
15934 #include "confdefs.h"
15935 /* System header to define __stub macros and hopefully few prototypes,
15936     which can conflict with char $ac_func(); below.  */
15937 #include <assert.h>
15938 /* Override any gcc2 internal prototype to avoid an error.  */
15939 /* We use char because int might match the return type of a gcc2
15940     builtin and then its argument prototype would still apply.  */
15941 char $ac_func();
15942
15943 int main() {
15944
15945 /* The GNU C library defines this for functions which it implements
15946     to always fail with ENOSYS.  Some functions are actually named
15947     something starting with __ and the normal name is an alias.  */
15948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15949 choke me
15950 #else
15951 $ac_func();
15952 #endif
15953
15954 ; return 0; }
15955 EOF
15956 if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15957   rm -rf conftest*
15958   eval "ac_cv_func_$ac_func=yes"
15959 else
15960   echo "configure: failed program was:" >&5
15961   cat conftest.$ac_ext >&5
15962   rm -rf conftest*
15963   eval "ac_cv_func_$ac_func=no"
15964 fi
15965 rm -f conftest*
15966 fi
15967
15968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15969   echo "$ac_t""yes" 1>&6
15970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15971   cat >> confdefs.h <<EOF
15972 #define $ac_tr_func 1
15973 EOF
15974  
15975 else
15976   echo "$ac_t""no" 1>&6
15977 fi
15978 done
15979
15980   else
15981     
15982   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15983 echo "configure:15984: checking for _finitef declaration" >&5
15984   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15985     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15986   echo $ac_n "(cached) $ac_c" 1>&6
15987 else
15988   
15989       
15990       ac_ext=C
15991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15992 ac_cpp='$CXXCPP $CPPFLAGS'
15993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15995 cross_compiling=$ac_cv_prog_cxx_cross
15996
15997       cat > conftest.$ac_ext <<EOF
15998 #line 15999 "configure"
15999 #include "confdefs.h"
16000 #include <math.h>
16001                       #ifdef HAVE_IEEEFP_H
16002                       #include <ieeefp.h>
16003                       #endif
16004                      
16005 int main() {
16006  _finitef(0);
16007 ; return 0; }
16008 EOF
16009 if { (eval echo configure:16010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16010   rm -rf conftest*
16011   glibcpp_cv_func__finitef_use=yes
16012 else
16013   echo "configure: failed program was:" >&5
16014   cat conftest.$ac_ext >&5
16015   rm -rf conftest*
16016   glibcpp_cv_func__finitef_use=no
16017 fi
16018 rm -f conftest*
16019       ac_ext=c
16020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16021 ac_cpp='$CPP $CPPFLAGS'
16022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16024 cross_compiling=$ac_cv_prog_cc_cross
16025
16026     
16027 fi
16028
16029   fi
16030   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16031
16032     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16033       for ac_func in _finitef
16034 do
16035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16036 echo "configure:16037: checking for $ac_func" >&5
16037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16038   echo $ac_n "(cached) $ac_c" 1>&6
16039 else
16040   cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16043 /* System header to define __stub macros and hopefully few prototypes,
16044     which can conflict with char $ac_func(); below.  */
16045 #include <assert.h>
16046 /* Override any gcc2 internal prototype to avoid an error.  */
16047 /* We use char because int might match the return type of a gcc2
16048     builtin and then its argument prototype would still apply.  */
16049 char $ac_func();
16050
16051 int main() {
16052
16053 /* The GNU C library defines this for functions which it implements
16054     to always fail with ENOSYS.  Some functions are actually named
16055     something starting with __ and the normal name is an alias.  */
16056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16057 choke me
16058 #else
16059 $ac_func();
16060 #endif
16061
16062 ; return 0; }
16063 EOF
16064 if { (eval echo configure:16065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16065   rm -rf conftest*
16066   eval "ac_cv_func_$ac_func=yes"
16067 else
16068   echo "configure: failed program was:" >&5
16069   cat conftest.$ac_ext >&5
16070   rm -rf conftest*
16071   eval "ac_cv_func_$ac_func=no"
16072 fi
16073 rm -f conftest*
16074 fi
16075
16076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16077   echo "$ac_t""yes" 1>&6
16078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16079   cat >> confdefs.h <<EOF
16080 #define $ac_tr_func 1
16081 EOF
16082  
16083 else
16084   echo "$ac_t""no" 1>&6
16085 fi
16086 done
16087
16088     fi
16089   fi
16090
16091
16092     
16093   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16094 echo "configure:16095: checking for long double trig functions" >&5
16095   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16096   echo $ac_n "(cached) $ac_c" 1>&6
16097 else
16098   
16099     
16100     ac_ext=C
16101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16102 ac_cpp='$CXXCPP $CPPFLAGS'
16103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16105 cross_compiling=$ac_cv_prog_cxx_cross
16106
16107     cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16110 #include <math.h>
16111 int main() {
16112  `for x in acosl asinl atanl \
16113                                           cosl sinl tanl \
16114                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16115 ; return 0; }
16116 EOF
16117 if { (eval echo configure:16118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16118   rm -rf conftest*
16119   glibcpp_cv_func_long_double_trig_use=yes
16120 else
16121   echo "configure: failed program was:" >&5
16122   cat conftest.$ac_ext >&5
16123   rm -rf conftest*
16124   glibcpp_cv_func_long_double_trig_use=no
16125 fi
16126 rm -f conftest*
16127     ac_ext=c
16128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16132 cross_compiling=$ac_cv_prog_cc_cross
16133
16134 fi
16135
16136   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16137   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16138     for ac_func in acosl asinl atanl \
16139                                           cosl sinl tanl \
16140                                           coshl sinhl tanhl
16141 do
16142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16143 echo "configure:16144: checking for $ac_func" >&5
16144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16145   echo $ac_n "(cached) $ac_c" 1>&6
16146 else
16147   cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 /* System header to define __stub macros and hopefully few prototypes,
16151     which can conflict with char $ac_func(); below.  */
16152 #include <assert.h>
16153 /* Override any gcc2 internal prototype to avoid an error.  */
16154 /* We use char because int might match the return type of a gcc2
16155     builtin and then its argument prototype would still apply.  */
16156 char $ac_func();
16157
16158 int main() {
16159
16160 /* The GNU C library defines this for functions which it implements
16161     to always fail with ENOSYS.  Some functions are actually named
16162     something starting with __ and the normal name is an alias.  */
16163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16164 choke me
16165 #else
16166 $ac_func();
16167 #endif
16168
16169 ; return 0; }
16170 EOF
16171 if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16172   rm -rf conftest*
16173   eval "ac_cv_func_$ac_func=yes"
16174 else
16175   echo "configure: failed program was:" >&5
16176   cat conftest.$ac_ext >&5
16177   rm -rf conftest*
16178   eval "ac_cv_func_$ac_func=no"
16179 fi
16180 rm -f conftest*
16181 fi
16182
16183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16184   echo "$ac_t""yes" 1>&6
16185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16186   cat >> confdefs.h <<EOF
16187 #define $ac_tr_func 1
16188 EOF
16189  
16190 else
16191   echo "$ac_t""no" 1>&6
16192 fi
16193 done
16194
16195   fi
16196
16197   
16198   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16199 echo "configure:16200: checking for long double round functions" >&5
16200   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16201   echo $ac_n "(cached) $ac_c" 1>&6
16202 else
16203   
16204     
16205     ac_ext=C
16206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16207 ac_cpp='$CXXCPP $CPPFLAGS'
16208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16210 cross_compiling=$ac_cv_prog_cxx_cross
16211
16212     cat > conftest.$ac_ext <<EOF
16213 #line 16214 "configure"
16214 #include "confdefs.h"
16215 #include <math.h>
16216 int main() {
16217  `for x in ceill floorl; do echo "$x (0);"; done` 
16218 ; return 0; }
16219 EOF
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16221   rm -rf conftest*
16222   glibcpp_cv_func_long_double_round_use=yes
16223 else
16224   echo "configure: failed program was:" >&5
16225   cat conftest.$ac_ext >&5
16226   rm -rf conftest*
16227   glibcpp_cv_func_long_double_round_use=no
16228 fi
16229 rm -f conftest*
16230     ac_ext=c
16231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16232 ac_cpp='$CPP $CPPFLAGS'
16233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16235 cross_compiling=$ac_cv_prog_cc_cross
16236
16237 fi
16238
16239   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16240   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16241     for ac_func in ceill floorl
16242 do
16243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16244 echo "configure:16245: checking for $ac_func" >&5
16245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16246   echo $ac_n "(cached) $ac_c" 1>&6
16247 else
16248   cat > conftest.$ac_ext <<EOF
16249 #line 16250 "configure"
16250 #include "confdefs.h"
16251 /* System header to define __stub macros and hopefully few prototypes,
16252     which can conflict with char $ac_func(); below.  */
16253 #include <assert.h>
16254 /* Override any gcc2 internal prototype to avoid an error.  */
16255 /* We use char because int might match the return type of a gcc2
16256     builtin and then its argument prototype would still apply.  */
16257 char $ac_func();
16258
16259 int main() {
16260
16261 /* The GNU C library defines this for functions which it implements
16262     to always fail with ENOSYS.  Some functions are actually named
16263     something starting with __ and the normal name is an alias.  */
16264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16265 choke me
16266 #else
16267 $ac_func();
16268 #endif
16269
16270 ; return 0; }
16271 EOF
16272 if { (eval echo configure:16273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16273   rm -rf conftest*
16274   eval "ac_cv_func_$ac_func=yes"
16275 else
16276   echo "configure: failed program was:" >&5
16277   cat conftest.$ac_ext >&5
16278   rm -rf conftest*
16279   eval "ac_cv_func_$ac_func=no"
16280 fi
16281 rm -f conftest*
16282 fi
16283
16284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16285   echo "$ac_t""yes" 1>&6
16286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16287   cat >> confdefs.h <<EOF
16288 #define $ac_tr_func 1
16289 EOF
16290  
16291 else
16292   echo "$ac_t""no" 1>&6
16293 fi
16294 done
16295
16296   fi
16297
16298   
16299   
16300   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16301 echo "configure:16302: checking for isnanl declaration" >&5
16302   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16303     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16304   echo $ac_n "(cached) $ac_c" 1>&6
16305 else
16306   
16307       
16308       ac_ext=C
16309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16310 ac_cpp='$CXXCPP $CPPFLAGS'
16311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16313 cross_compiling=$ac_cv_prog_cxx_cross
16314
16315       cat > conftest.$ac_ext <<EOF
16316 #line 16317 "configure"
16317 #include "confdefs.h"
16318 #include <math.h>
16319                       #ifdef HAVE_IEEEFP_H
16320                       #include <ieeefp.h>
16321                       #endif
16322                      
16323 int main() {
16324  isnanl(0);
16325 ; return 0; }
16326 EOF
16327 if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16328   rm -rf conftest*
16329   glibcpp_cv_func_isnanl_use=yes
16330 else
16331   echo "configure: failed program was:" >&5
16332   cat conftest.$ac_ext >&5
16333   rm -rf conftest*
16334   glibcpp_cv_func_isnanl_use=no
16335 fi
16336 rm -f conftest*
16337       ac_ext=c
16338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16339 ac_cpp='$CPP $CPPFLAGS'
16340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16342 cross_compiling=$ac_cv_prog_cc_cross
16343
16344     
16345 fi
16346
16347   fi
16348   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16349
16350   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16351     for ac_func in isnanl
16352 do
16353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16354 echo "configure:16355: checking for $ac_func" >&5
16355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16356   echo $ac_n "(cached) $ac_c" 1>&6
16357 else
16358   cat > conftest.$ac_ext <<EOF
16359 #line 16360 "configure"
16360 #include "confdefs.h"
16361 /* System header to define __stub macros and hopefully few prototypes,
16362     which can conflict with char $ac_func(); below.  */
16363 #include <assert.h>
16364 /* Override any gcc2 internal prototype to avoid an error.  */
16365 /* We use char because int might match the return type of a gcc2
16366     builtin and then its argument prototype would still apply.  */
16367 char $ac_func();
16368
16369 int main() {
16370
16371 /* The GNU C library defines this for functions which it implements
16372     to always fail with ENOSYS.  Some functions are actually named
16373     something starting with __ and the normal name is an alias.  */
16374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16375 choke me
16376 #else
16377 $ac_func();
16378 #endif
16379
16380 ; return 0; }
16381 EOF
16382 if { (eval echo configure:16383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16383   rm -rf conftest*
16384   eval "ac_cv_func_$ac_func=yes"
16385 else
16386   echo "configure: failed program was:" >&5
16387   cat conftest.$ac_ext >&5
16388   rm -rf conftest*
16389   eval "ac_cv_func_$ac_func=no"
16390 fi
16391 rm -f conftest*
16392 fi
16393
16394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16395   echo "$ac_t""yes" 1>&6
16396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16397   cat >> confdefs.h <<EOF
16398 #define $ac_tr_func 1
16399 EOF
16400  
16401 else
16402   echo "$ac_t""no" 1>&6
16403 fi
16404 done
16405
16406   else
16407     
16408   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16409 echo "configure:16410: checking for _isnanl declaration" >&5
16410   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16411     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16412   echo $ac_n "(cached) $ac_c" 1>&6
16413 else
16414   
16415       
16416       ac_ext=C
16417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16418 ac_cpp='$CXXCPP $CPPFLAGS'
16419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16421 cross_compiling=$ac_cv_prog_cxx_cross
16422
16423       cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 #include <math.h>
16427                       #ifdef HAVE_IEEEFP_H
16428                       #include <ieeefp.h>
16429                       #endif
16430                      
16431 int main() {
16432  _isnanl(0);
16433 ; return 0; }
16434 EOF
16435 if { (eval echo configure:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16436   rm -rf conftest*
16437   glibcpp_cv_func__isnanl_use=yes
16438 else
16439   echo "configure: failed program was:" >&5
16440   cat conftest.$ac_ext >&5
16441   rm -rf conftest*
16442   glibcpp_cv_func__isnanl_use=no
16443 fi
16444 rm -f conftest*
16445       ac_ext=c
16446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16447 ac_cpp='$CPP $CPPFLAGS'
16448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16450 cross_compiling=$ac_cv_prog_cc_cross
16451
16452     
16453 fi
16454
16455   fi
16456   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16457
16458     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16459       for ac_func in _isnanl
16460 do
16461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16462 echo "configure:16463: checking for $ac_func" >&5
16463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16464   echo $ac_n "(cached) $ac_c" 1>&6
16465 else
16466   cat > conftest.$ac_ext <<EOF
16467 #line 16468 "configure"
16468 #include "confdefs.h"
16469 /* System header to define __stub macros and hopefully few prototypes,
16470     which can conflict with char $ac_func(); below.  */
16471 #include <assert.h>
16472 /* Override any gcc2 internal prototype to avoid an error.  */
16473 /* We use char because int might match the return type of a gcc2
16474     builtin and then its argument prototype would still apply.  */
16475 char $ac_func();
16476
16477 int main() {
16478
16479 /* The GNU C library defines this for functions which it implements
16480     to always fail with ENOSYS.  Some functions are actually named
16481     something starting with __ and the normal name is an alias.  */
16482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16483 choke me
16484 #else
16485 $ac_func();
16486 #endif
16487
16488 ; return 0; }
16489 EOF
16490 if { (eval echo configure:16491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16491   rm -rf conftest*
16492   eval "ac_cv_func_$ac_func=yes"
16493 else
16494   echo "configure: failed program was:" >&5
16495   cat conftest.$ac_ext >&5
16496   rm -rf conftest*
16497   eval "ac_cv_func_$ac_func=no"
16498 fi
16499 rm -f conftest*
16500 fi
16501
16502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16503   echo "$ac_t""yes" 1>&6
16504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16505   cat >> confdefs.h <<EOF
16506 #define $ac_tr_func 1
16507 EOF
16508  
16509 else
16510   echo "$ac_t""no" 1>&6
16511 fi
16512 done
16513
16514     fi
16515   fi
16516
16517   
16518   
16519   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16520 echo "configure:16521: checking for isinfl declaration" >&5
16521   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16522     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16523   echo $ac_n "(cached) $ac_c" 1>&6
16524 else
16525   
16526       
16527       ac_ext=C
16528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16529 ac_cpp='$CXXCPP $CPPFLAGS'
16530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16532 cross_compiling=$ac_cv_prog_cxx_cross
16533
16534       cat > conftest.$ac_ext <<EOF
16535 #line 16536 "configure"
16536 #include "confdefs.h"
16537 #include <math.h>
16538                       #ifdef HAVE_IEEEFP_H
16539                       #include <ieeefp.h>
16540                       #endif
16541                      
16542 int main() {
16543  isinfl(0);
16544 ; return 0; }
16545 EOF
16546 if { (eval echo configure:16547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16547   rm -rf conftest*
16548   glibcpp_cv_func_isinfl_use=yes
16549 else
16550   echo "configure: failed program was:" >&5
16551   cat conftest.$ac_ext >&5
16552   rm -rf conftest*
16553   glibcpp_cv_func_isinfl_use=no
16554 fi
16555 rm -f conftest*
16556       ac_ext=c
16557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16558 ac_cpp='$CPP $CPPFLAGS'
16559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16561 cross_compiling=$ac_cv_prog_cc_cross
16562
16563     
16564 fi
16565
16566   fi
16567   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16568
16569   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16570     for ac_func in isinfl
16571 do
16572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16573 echo "configure:16574: checking for $ac_func" >&5
16574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16575   echo $ac_n "(cached) $ac_c" 1>&6
16576 else
16577   cat > conftest.$ac_ext <<EOF
16578 #line 16579 "configure"
16579 #include "confdefs.h"
16580 /* System header to define __stub macros and hopefully few prototypes,
16581     which can conflict with char $ac_func(); below.  */
16582 #include <assert.h>
16583 /* Override any gcc2 internal prototype to avoid an error.  */
16584 /* We use char because int might match the return type of a gcc2
16585     builtin and then its argument prototype would still apply.  */
16586 char $ac_func();
16587
16588 int main() {
16589
16590 /* The GNU C library defines this for functions which it implements
16591     to always fail with ENOSYS.  Some functions are actually named
16592     something starting with __ and the normal name is an alias.  */
16593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16594 choke me
16595 #else
16596 $ac_func();
16597 #endif
16598
16599 ; return 0; }
16600 EOF
16601 if { (eval echo configure:16602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16602   rm -rf conftest*
16603   eval "ac_cv_func_$ac_func=yes"
16604 else
16605   echo "configure: failed program was:" >&5
16606   cat conftest.$ac_ext >&5
16607   rm -rf conftest*
16608   eval "ac_cv_func_$ac_func=no"
16609 fi
16610 rm -f conftest*
16611 fi
16612
16613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16614   echo "$ac_t""yes" 1>&6
16615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16616   cat >> confdefs.h <<EOF
16617 #define $ac_tr_func 1
16618 EOF
16619  
16620 else
16621   echo "$ac_t""no" 1>&6
16622 fi
16623 done
16624
16625   else
16626     
16627   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16628 echo "configure:16629: checking for _isinfl declaration" >&5
16629   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16630     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16631   echo $ac_n "(cached) $ac_c" 1>&6
16632 else
16633   
16634       
16635       ac_ext=C
16636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16637 ac_cpp='$CXXCPP $CPPFLAGS'
16638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16640 cross_compiling=$ac_cv_prog_cxx_cross
16641
16642       cat > conftest.$ac_ext <<EOF
16643 #line 16644 "configure"
16644 #include "confdefs.h"
16645 #include <math.h>
16646                       #ifdef HAVE_IEEEFP_H
16647                       #include <ieeefp.h>
16648                       #endif
16649                      
16650 int main() {
16651  _isinfl(0);
16652 ; return 0; }
16653 EOF
16654 if { (eval echo configure:16655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16655   rm -rf conftest*
16656   glibcpp_cv_func__isinfl_use=yes
16657 else
16658   echo "configure: failed program was:" >&5
16659   cat conftest.$ac_ext >&5
16660   rm -rf conftest*
16661   glibcpp_cv_func__isinfl_use=no
16662 fi
16663 rm -f conftest*
16664       ac_ext=c
16665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16666 ac_cpp='$CPP $CPPFLAGS'
16667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16669 cross_compiling=$ac_cv_prog_cc_cross
16670
16671     
16672 fi
16673
16674   fi
16675   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16676
16677     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16678       for ac_func in _isinfl
16679 do
16680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16681 echo "configure:16682: checking for $ac_func" >&5
16682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16683   echo $ac_n "(cached) $ac_c" 1>&6
16684 else
16685   cat > conftest.$ac_ext <<EOF
16686 #line 16687 "configure"
16687 #include "confdefs.h"
16688 /* System header to define __stub macros and hopefully few prototypes,
16689     which can conflict with char $ac_func(); below.  */
16690 #include <assert.h>
16691 /* Override any gcc2 internal prototype to avoid an error.  */
16692 /* We use char because int might match the return type of a gcc2
16693     builtin and then its argument prototype would still apply.  */
16694 char $ac_func();
16695
16696 int main() {
16697
16698 /* The GNU C library defines this for functions which it implements
16699     to always fail with ENOSYS.  Some functions are actually named
16700     something starting with __ and the normal name is an alias.  */
16701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16702 choke me
16703 #else
16704 $ac_func();
16705 #endif
16706
16707 ; return 0; }
16708 EOF
16709 if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16710   rm -rf conftest*
16711   eval "ac_cv_func_$ac_func=yes"
16712 else
16713   echo "configure: failed program was:" >&5
16714   cat conftest.$ac_ext >&5
16715   rm -rf conftest*
16716   eval "ac_cv_func_$ac_func=no"
16717 fi
16718 rm -f conftest*
16719 fi
16720
16721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16722   echo "$ac_t""yes" 1>&6
16723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16724   cat >> confdefs.h <<EOF
16725 #define $ac_tr_func 1
16726 EOF
16727  
16728 else
16729   echo "$ac_t""no" 1>&6
16730 fi
16731 done
16732
16733     fi
16734   fi
16735
16736   
16737   
16738   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16739 echo "configure:16740: checking for copysignl declaration" >&5
16740   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16741     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16742   echo $ac_n "(cached) $ac_c" 1>&6
16743 else
16744   
16745       
16746       ac_ext=C
16747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16748 ac_cpp='$CXXCPP $CPPFLAGS'
16749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16751 cross_compiling=$ac_cv_prog_cxx_cross
16752
16753       cat > conftest.$ac_ext <<EOF
16754 #line 16755 "configure"
16755 #include "confdefs.h"
16756 #include <math.h>
16757 int main() {
16758  copysignl(0, 0);
16759 ; return 0; }
16760 EOF
16761 if { (eval echo configure:16762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16762   rm -rf conftest*
16763   glibcpp_cv_func_copysignl_use=yes
16764 else
16765   echo "configure: failed program was:" >&5
16766   cat conftest.$ac_ext >&5
16767   rm -rf conftest*
16768   glibcpp_cv_func_copysignl_use=no
16769 fi
16770 rm -f conftest*
16771       ac_ext=c
16772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16773 ac_cpp='$CPP $CPPFLAGS'
16774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16776 cross_compiling=$ac_cv_prog_cc_cross
16777
16778     
16779 fi
16780
16781   fi
16782   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16783
16784   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16785     for ac_func in copysignl
16786 do
16787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16788 echo "configure:16789: checking for $ac_func" >&5
16789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16790   echo $ac_n "(cached) $ac_c" 1>&6
16791 else
16792   cat > conftest.$ac_ext <<EOF
16793 #line 16794 "configure"
16794 #include "confdefs.h"
16795 /* System header to define __stub macros and hopefully few prototypes,
16796     which can conflict with char $ac_func(); below.  */
16797 #include <assert.h>
16798 /* Override any gcc2 internal prototype to avoid an error.  */
16799 /* We use char because int might match the return type of a gcc2
16800     builtin and then its argument prototype would still apply.  */
16801 char $ac_func();
16802
16803 int main() {
16804
16805 /* The GNU C library defines this for functions which it implements
16806     to always fail with ENOSYS.  Some functions are actually named
16807     something starting with __ and the normal name is an alias.  */
16808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16809 choke me
16810 #else
16811 $ac_func();
16812 #endif
16813
16814 ; return 0; }
16815 EOF
16816 if { (eval echo configure:16817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16817   rm -rf conftest*
16818   eval "ac_cv_func_$ac_func=yes"
16819 else
16820   echo "configure: failed program was:" >&5
16821   cat conftest.$ac_ext >&5
16822   rm -rf conftest*
16823   eval "ac_cv_func_$ac_func=no"
16824 fi
16825 rm -f conftest*
16826 fi
16827
16828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16829   echo "$ac_t""yes" 1>&6
16830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16831   cat >> confdefs.h <<EOF
16832 #define $ac_tr_func 1
16833 EOF
16834  
16835 else
16836   echo "$ac_t""no" 1>&6
16837 fi
16838 done
16839
16840   else
16841     
16842   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16843 echo "configure:16844: checking for _copysignl declaration" >&5
16844   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16845     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16846   echo $ac_n "(cached) $ac_c" 1>&6
16847 else
16848   
16849       
16850       ac_ext=C
16851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16852 ac_cpp='$CXXCPP $CPPFLAGS'
16853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16855 cross_compiling=$ac_cv_prog_cxx_cross
16856
16857       cat > conftest.$ac_ext <<EOF
16858 #line 16859 "configure"
16859 #include "confdefs.h"
16860 #include <math.h>
16861 int main() {
16862  _copysignl(0, 0);
16863 ; return 0; }
16864 EOF
16865 if { (eval echo configure:16866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16866   rm -rf conftest*
16867   glibcpp_cv_func__copysignl_use=yes
16868 else
16869   echo "configure: failed program was:" >&5
16870   cat conftest.$ac_ext >&5
16871   rm -rf conftest*
16872   glibcpp_cv_func__copysignl_use=no
16873 fi
16874 rm -f conftest*
16875       ac_ext=c
16876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877 ac_cpp='$CPP $CPPFLAGS'
16878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880 cross_compiling=$ac_cv_prog_cc_cross
16881
16882     
16883 fi
16884
16885   fi
16886   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16887
16888     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16889       for ac_func in _copysignl
16890 do
16891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16892 echo "configure:16893: checking for $ac_func" >&5
16893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16894   echo $ac_n "(cached) $ac_c" 1>&6
16895 else
16896   cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16899 /* System header to define __stub macros and hopefully few prototypes,
16900     which can conflict with char $ac_func(); below.  */
16901 #include <assert.h>
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 /* We use char because int might match the return type of a gcc2
16904     builtin and then its argument prototype would still apply.  */
16905 char $ac_func();
16906
16907 int main() {
16908
16909 /* The GNU C library defines this for functions which it implements
16910     to always fail with ENOSYS.  Some functions are actually named
16911     something starting with __ and the normal name is an alias.  */
16912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 choke me
16914 #else
16915 $ac_func();
16916 #endif
16917
16918 ; return 0; }
16919 EOF
16920 if { (eval echo configure:16921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16921   rm -rf conftest*
16922   eval "ac_cv_func_$ac_func=yes"
16923 else
16924   echo "configure: failed program was:" >&5
16925   cat conftest.$ac_ext >&5
16926   rm -rf conftest*
16927   eval "ac_cv_func_$ac_func=no"
16928 fi
16929 rm -f conftest*
16930 fi
16931
16932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16933   echo "$ac_t""yes" 1>&6
16934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16935   cat >> confdefs.h <<EOF
16936 #define $ac_tr_func 1
16937 EOF
16938  
16939 else
16940   echo "$ac_t""no" 1>&6
16941 fi
16942 done
16943
16944     fi
16945   fi
16946
16947   
16948   
16949   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16950 echo "configure:16951: checking for atan2l declaration" >&5
16951   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16952     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16953   echo $ac_n "(cached) $ac_c" 1>&6
16954 else
16955   
16956       
16957       ac_ext=C
16958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16959 ac_cpp='$CXXCPP $CPPFLAGS'
16960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16962 cross_compiling=$ac_cv_prog_cxx_cross
16963
16964       cat > conftest.$ac_ext <<EOF
16965 #line 16966 "configure"
16966 #include "confdefs.h"
16967 #include <math.h>
16968 int main() {
16969  atan2l(0, 0);
16970 ; return 0; }
16971 EOF
16972 if { (eval echo configure:16973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16973   rm -rf conftest*
16974   glibcpp_cv_func_atan2l_use=yes
16975 else
16976   echo "configure: failed program was:" >&5
16977   cat conftest.$ac_ext >&5
16978   rm -rf conftest*
16979   glibcpp_cv_func_atan2l_use=no
16980 fi
16981 rm -f conftest*
16982       ac_ext=c
16983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16984 ac_cpp='$CPP $CPPFLAGS'
16985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16987 cross_compiling=$ac_cv_prog_cc_cross
16988
16989     
16990 fi
16991
16992   fi
16993   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16994
16995   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16996     for ac_func in atan2l
16997 do
16998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16999 echo "configure:17000: checking for $ac_func" >&5
17000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17001   echo $ac_n "(cached) $ac_c" 1>&6
17002 else
17003   cat > conftest.$ac_ext <<EOF
17004 #line 17005 "configure"
17005 #include "confdefs.h"
17006 /* System header to define __stub macros and hopefully few prototypes,
17007     which can conflict with char $ac_func(); below.  */
17008 #include <assert.h>
17009 /* Override any gcc2 internal prototype to avoid an error.  */
17010 /* We use char because int might match the return type of a gcc2
17011     builtin and then its argument prototype would still apply.  */
17012 char $ac_func();
17013
17014 int main() {
17015
17016 /* The GNU C library defines this for functions which it implements
17017     to always fail with ENOSYS.  Some functions are actually named
17018     something starting with __ and the normal name is an alias.  */
17019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17020 choke me
17021 #else
17022 $ac_func();
17023 #endif
17024
17025 ; return 0; }
17026 EOF
17027 if { (eval echo configure:17028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17028   rm -rf conftest*
17029   eval "ac_cv_func_$ac_func=yes"
17030 else
17031   echo "configure: failed program was:" >&5
17032   cat conftest.$ac_ext >&5
17033   rm -rf conftest*
17034   eval "ac_cv_func_$ac_func=no"
17035 fi
17036 rm -f conftest*
17037 fi
17038
17039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17040   echo "$ac_t""yes" 1>&6
17041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17042   cat >> confdefs.h <<EOF
17043 #define $ac_tr_func 1
17044 EOF
17045  
17046 else
17047   echo "$ac_t""no" 1>&6
17048 fi
17049 done
17050
17051   else
17052     
17053   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17054 echo "configure:17055: checking for _atan2l declaration" >&5
17055   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17056     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17057   echo $ac_n "(cached) $ac_c" 1>&6
17058 else
17059   
17060       
17061       ac_ext=C
17062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17063 ac_cpp='$CXXCPP $CPPFLAGS'
17064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17066 cross_compiling=$ac_cv_prog_cxx_cross
17067
17068       cat > conftest.$ac_ext <<EOF
17069 #line 17070 "configure"
17070 #include "confdefs.h"
17071 #include <math.h>
17072 int main() {
17073  _atan2l(0, 0);
17074 ; return 0; }
17075 EOF
17076 if { (eval echo configure:17077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17077   rm -rf conftest*
17078   glibcpp_cv_func__atan2l_use=yes
17079 else
17080   echo "configure: failed program was:" >&5
17081   cat conftest.$ac_ext >&5
17082   rm -rf conftest*
17083   glibcpp_cv_func__atan2l_use=no
17084 fi
17085 rm -f conftest*
17086       ac_ext=c
17087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17088 ac_cpp='$CPP $CPPFLAGS'
17089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17091 cross_compiling=$ac_cv_prog_cc_cross
17092
17093     
17094 fi
17095
17096   fi
17097   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17098
17099     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17100       for ac_func in _atan2l
17101 do
17102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17103 echo "configure:17104: checking for $ac_func" >&5
17104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17105   echo $ac_n "(cached) $ac_c" 1>&6
17106 else
17107   cat > conftest.$ac_ext <<EOF
17108 #line 17109 "configure"
17109 #include "confdefs.h"
17110 /* System header to define __stub macros and hopefully few prototypes,
17111     which can conflict with char $ac_func(); below.  */
17112 #include <assert.h>
17113 /* Override any gcc2 internal prototype to avoid an error.  */
17114 /* We use char because int might match the return type of a gcc2
17115     builtin and then its argument prototype would still apply.  */
17116 char $ac_func();
17117
17118 int main() {
17119
17120 /* The GNU C library defines this for functions which it implements
17121     to always fail with ENOSYS.  Some functions are actually named
17122     something starting with __ and the normal name is an alias.  */
17123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17124 choke me
17125 #else
17126 $ac_func();
17127 #endif
17128
17129 ; return 0; }
17130 EOF
17131 if { (eval echo configure:17132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17132   rm -rf conftest*
17133   eval "ac_cv_func_$ac_func=yes"
17134 else
17135   echo "configure: failed program was:" >&5
17136   cat conftest.$ac_ext >&5
17137   rm -rf conftest*
17138   eval "ac_cv_func_$ac_func=no"
17139 fi
17140 rm -f conftest*
17141 fi
17142
17143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17144   echo "$ac_t""yes" 1>&6
17145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17146   cat >> confdefs.h <<EOF
17147 #define $ac_tr_func 1
17148 EOF
17149  
17150 else
17151   echo "$ac_t""no" 1>&6
17152 fi
17153 done
17154
17155     fi
17156   fi
17157
17158   
17159   
17160   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17161 echo "configure:17162: checking for expl declaration" >&5
17162   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17163     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17164   echo $ac_n "(cached) $ac_c" 1>&6
17165 else
17166   
17167       
17168       ac_ext=C
17169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17170 ac_cpp='$CXXCPP $CPPFLAGS'
17171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17173 cross_compiling=$ac_cv_prog_cxx_cross
17174
17175       cat > conftest.$ac_ext <<EOF
17176 #line 17177 "configure"
17177 #include "confdefs.h"
17178 #include <math.h>
17179                       #ifdef HAVE_IEEEFP_H
17180                       #include <ieeefp.h>
17181                       #endif
17182                      
17183 int main() {
17184  expl(0);
17185 ; return 0; }
17186 EOF
17187 if { (eval echo configure:17188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17188   rm -rf conftest*
17189   glibcpp_cv_func_expl_use=yes
17190 else
17191   echo "configure: failed program was:" >&5
17192   cat conftest.$ac_ext >&5
17193   rm -rf conftest*
17194   glibcpp_cv_func_expl_use=no
17195 fi
17196 rm -f conftest*
17197       ac_ext=c
17198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17199 ac_cpp='$CPP $CPPFLAGS'
17200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17202 cross_compiling=$ac_cv_prog_cc_cross
17203
17204     
17205 fi
17206
17207   fi
17208   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17209
17210   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17211     for ac_func in expl
17212 do
17213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17214 echo "configure:17215: checking for $ac_func" >&5
17215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17216   echo $ac_n "(cached) $ac_c" 1>&6
17217 else
17218   cat > conftest.$ac_ext <<EOF
17219 #line 17220 "configure"
17220 #include "confdefs.h"
17221 /* System header to define __stub macros and hopefully few prototypes,
17222     which can conflict with char $ac_func(); below.  */
17223 #include <assert.h>
17224 /* Override any gcc2 internal prototype to avoid an error.  */
17225 /* We use char because int might match the return type of a gcc2
17226     builtin and then its argument prototype would still apply.  */
17227 char $ac_func();
17228
17229 int main() {
17230
17231 /* The GNU C library defines this for functions which it implements
17232     to always fail with ENOSYS.  Some functions are actually named
17233     something starting with __ and the normal name is an alias.  */
17234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17235 choke me
17236 #else
17237 $ac_func();
17238 #endif
17239
17240 ; return 0; }
17241 EOF
17242 if { (eval echo configure:17243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17243   rm -rf conftest*
17244   eval "ac_cv_func_$ac_func=yes"
17245 else
17246   echo "configure: failed program was:" >&5
17247   cat conftest.$ac_ext >&5
17248   rm -rf conftest*
17249   eval "ac_cv_func_$ac_func=no"
17250 fi
17251 rm -f conftest*
17252 fi
17253
17254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17255   echo "$ac_t""yes" 1>&6
17256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17257   cat >> confdefs.h <<EOF
17258 #define $ac_tr_func 1
17259 EOF
17260  
17261 else
17262   echo "$ac_t""no" 1>&6
17263 fi
17264 done
17265
17266   else
17267     
17268   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17269 echo "configure:17270: checking for _expl declaration" >&5
17270   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17271     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17272   echo $ac_n "(cached) $ac_c" 1>&6
17273 else
17274   
17275       
17276       ac_ext=C
17277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17278 ac_cpp='$CXXCPP $CPPFLAGS'
17279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17281 cross_compiling=$ac_cv_prog_cxx_cross
17282
17283       cat > conftest.$ac_ext <<EOF
17284 #line 17285 "configure"
17285 #include "confdefs.h"
17286 #include <math.h>
17287                       #ifdef HAVE_IEEEFP_H
17288                       #include <ieeefp.h>
17289                       #endif
17290                      
17291 int main() {
17292  _expl(0);
17293 ; return 0; }
17294 EOF
17295 if { (eval echo configure:17296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17296   rm -rf conftest*
17297   glibcpp_cv_func__expl_use=yes
17298 else
17299   echo "configure: failed program was:" >&5
17300   cat conftest.$ac_ext >&5
17301   rm -rf conftest*
17302   glibcpp_cv_func__expl_use=no
17303 fi
17304 rm -f conftest*
17305       ac_ext=c
17306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17307 ac_cpp='$CPP $CPPFLAGS'
17308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17310 cross_compiling=$ac_cv_prog_cc_cross
17311
17312     
17313 fi
17314
17315   fi
17316   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17317
17318     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17319       for ac_func in _expl
17320 do
17321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17322 echo "configure:17323: checking for $ac_func" >&5
17323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17324   echo $ac_n "(cached) $ac_c" 1>&6
17325 else
17326   cat > conftest.$ac_ext <<EOF
17327 #line 17328 "configure"
17328 #include "confdefs.h"
17329 /* System header to define __stub macros and hopefully few prototypes,
17330     which can conflict with char $ac_func(); below.  */
17331 #include <assert.h>
17332 /* Override any gcc2 internal prototype to avoid an error.  */
17333 /* We use char because int might match the return type of a gcc2
17334     builtin and then its argument prototype would still apply.  */
17335 char $ac_func();
17336
17337 int main() {
17338
17339 /* The GNU C library defines this for functions which it implements
17340     to always fail with ENOSYS.  Some functions are actually named
17341     something starting with __ and the normal name is an alias.  */
17342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17343 choke me
17344 #else
17345 $ac_func();
17346 #endif
17347
17348 ; return 0; }
17349 EOF
17350 if { (eval echo configure:17351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17351   rm -rf conftest*
17352   eval "ac_cv_func_$ac_func=yes"
17353 else
17354   echo "configure: failed program was:" >&5
17355   cat conftest.$ac_ext >&5
17356   rm -rf conftest*
17357   eval "ac_cv_func_$ac_func=no"
17358 fi
17359 rm -f conftest*
17360 fi
17361
17362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17363   echo "$ac_t""yes" 1>&6
17364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17365   cat >> confdefs.h <<EOF
17366 #define $ac_tr_func 1
17367 EOF
17368  
17369 else
17370   echo "$ac_t""no" 1>&6
17371 fi
17372 done
17373
17374     fi
17375   fi
17376
17377   
17378   
17379   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17380 echo "configure:17381: checking for fabsl declaration" >&5
17381   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17382     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17383   echo $ac_n "(cached) $ac_c" 1>&6
17384 else
17385   
17386       
17387       ac_ext=C
17388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17389 ac_cpp='$CXXCPP $CPPFLAGS'
17390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17392 cross_compiling=$ac_cv_prog_cxx_cross
17393
17394       cat > conftest.$ac_ext <<EOF
17395 #line 17396 "configure"
17396 #include "confdefs.h"
17397 #include <math.h>
17398                       #ifdef HAVE_IEEEFP_H
17399                       #include <ieeefp.h>
17400                       #endif
17401                      
17402 int main() {
17403  fabsl(0);
17404 ; return 0; }
17405 EOF
17406 if { (eval echo configure:17407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17407   rm -rf conftest*
17408   glibcpp_cv_func_fabsl_use=yes
17409 else
17410   echo "configure: failed program was:" >&5
17411   cat conftest.$ac_ext >&5
17412   rm -rf conftest*
17413   glibcpp_cv_func_fabsl_use=no
17414 fi
17415 rm -f conftest*
17416       ac_ext=c
17417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17418 ac_cpp='$CPP $CPPFLAGS'
17419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17421 cross_compiling=$ac_cv_prog_cc_cross
17422
17423     
17424 fi
17425
17426   fi
17427   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17428
17429   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17430     for ac_func in fabsl
17431 do
17432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17433 echo "configure:17434: checking for $ac_func" >&5
17434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17435   echo $ac_n "(cached) $ac_c" 1>&6
17436 else
17437   cat > conftest.$ac_ext <<EOF
17438 #line 17439 "configure"
17439 #include "confdefs.h"
17440 /* System header to define __stub macros and hopefully few prototypes,
17441     which can conflict with char $ac_func(); below.  */
17442 #include <assert.h>
17443 /* Override any gcc2 internal prototype to avoid an error.  */
17444 /* We use char because int might match the return type of a gcc2
17445     builtin and then its argument prototype would still apply.  */
17446 char $ac_func();
17447
17448 int main() {
17449
17450 /* The GNU C library defines this for functions which it implements
17451     to always fail with ENOSYS.  Some functions are actually named
17452     something starting with __ and the normal name is an alias.  */
17453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17454 choke me
17455 #else
17456 $ac_func();
17457 #endif
17458
17459 ; return 0; }
17460 EOF
17461 if { (eval echo configure:17462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17462   rm -rf conftest*
17463   eval "ac_cv_func_$ac_func=yes"
17464 else
17465   echo "configure: failed program was:" >&5
17466   cat conftest.$ac_ext >&5
17467   rm -rf conftest*
17468   eval "ac_cv_func_$ac_func=no"
17469 fi
17470 rm -f conftest*
17471 fi
17472
17473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17474   echo "$ac_t""yes" 1>&6
17475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17476   cat >> confdefs.h <<EOF
17477 #define $ac_tr_func 1
17478 EOF
17479  
17480 else
17481   echo "$ac_t""no" 1>&6
17482 fi
17483 done
17484
17485   else
17486     
17487   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17488 echo "configure:17489: checking for _fabsl declaration" >&5
17489   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17490     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17491   echo $ac_n "(cached) $ac_c" 1>&6
17492 else
17493   
17494       
17495       ac_ext=C
17496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17497 ac_cpp='$CXXCPP $CPPFLAGS'
17498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17500 cross_compiling=$ac_cv_prog_cxx_cross
17501
17502       cat > conftest.$ac_ext <<EOF
17503 #line 17504 "configure"
17504 #include "confdefs.h"
17505 #include <math.h>
17506                       #ifdef HAVE_IEEEFP_H
17507                       #include <ieeefp.h>
17508                       #endif
17509                      
17510 int main() {
17511  _fabsl(0);
17512 ; return 0; }
17513 EOF
17514 if { (eval echo configure:17515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17515   rm -rf conftest*
17516   glibcpp_cv_func__fabsl_use=yes
17517 else
17518   echo "configure: failed program was:" >&5
17519   cat conftest.$ac_ext >&5
17520   rm -rf conftest*
17521   glibcpp_cv_func__fabsl_use=no
17522 fi
17523 rm -f conftest*
17524       ac_ext=c
17525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17526 ac_cpp='$CPP $CPPFLAGS'
17527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17529 cross_compiling=$ac_cv_prog_cc_cross
17530
17531     
17532 fi
17533
17534   fi
17535   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17536
17537     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17538       for ac_func in _fabsl
17539 do
17540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17541 echo "configure:17542: checking for $ac_func" >&5
17542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17543   echo $ac_n "(cached) $ac_c" 1>&6
17544 else
17545   cat > conftest.$ac_ext <<EOF
17546 #line 17547 "configure"
17547 #include "confdefs.h"
17548 /* System header to define __stub macros and hopefully few prototypes,
17549     which can conflict with char $ac_func(); below.  */
17550 #include <assert.h>
17551 /* Override any gcc2 internal prototype to avoid an error.  */
17552 /* We use char because int might match the return type of a gcc2
17553     builtin and then its argument prototype would still apply.  */
17554 char $ac_func();
17555
17556 int main() {
17557
17558 /* The GNU C library defines this for functions which it implements
17559     to always fail with ENOSYS.  Some functions are actually named
17560     something starting with __ and the normal name is an alias.  */
17561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17562 choke me
17563 #else
17564 $ac_func();
17565 #endif
17566
17567 ; return 0; }
17568 EOF
17569 if { (eval echo configure:17570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17570   rm -rf conftest*
17571   eval "ac_cv_func_$ac_func=yes"
17572 else
17573   echo "configure: failed program was:" >&5
17574   cat conftest.$ac_ext >&5
17575   rm -rf conftest*
17576   eval "ac_cv_func_$ac_func=no"
17577 fi
17578 rm -f conftest*
17579 fi
17580
17581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17582   echo "$ac_t""yes" 1>&6
17583     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17584   cat >> confdefs.h <<EOF
17585 #define $ac_tr_func 1
17586 EOF
17587  
17588 else
17589   echo "$ac_t""no" 1>&6
17590 fi
17591 done
17592
17593     fi
17594   fi
17595
17596   
17597   
17598   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17599 echo "configure:17600: checking for fmodl declaration" >&5
17600   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17601     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17602   echo $ac_n "(cached) $ac_c" 1>&6
17603 else
17604   
17605       
17606       ac_ext=C
17607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17608 ac_cpp='$CXXCPP $CPPFLAGS'
17609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17611 cross_compiling=$ac_cv_prog_cxx_cross
17612
17613       cat > conftest.$ac_ext <<EOF
17614 #line 17615 "configure"
17615 #include "confdefs.h"
17616 #include <math.h>
17617 int main() {
17618  fmodl(0, 0);
17619 ; return 0; }
17620 EOF
17621 if { (eval echo configure:17622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17622   rm -rf conftest*
17623   glibcpp_cv_func_fmodl_use=yes
17624 else
17625   echo "configure: failed program was:" >&5
17626   cat conftest.$ac_ext >&5
17627   rm -rf conftest*
17628   glibcpp_cv_func_fmodl_use=no
17629 fi
17630 rm -f conftest*
17631       ac_ext=c
17632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17633 ac_cpp='$CPP $CPPFLAGS'
17634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17636 cross_compiling=$ac_cv_prog_cc_cross
17637
17638     
17639 fi
17640
17641   fi
17642   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17643
17644   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17645     for ac_func in fmodl
17646 do
17647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17648 echo "configure:17649: checking for $ac_func" >&5
17649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17650   echo $ac_n "(cached) $ac_c" 1>&6
17651 else
17652   cat > conftest.$ac_ext <<EOF
17653 #line 17654 "configure"
17654 #include "confdefs.h"
17655 /* System header to define __stub macros and hopefully few prototypes,
17656     which can conflict with char $ac_func(); below.  */
17657 #include <assert.h>
17658 /* Override any gcc2 internal prototype to avoid an error.  */
17659 /* We use char because int might match the return type of a gcc2
17660     builtin and then its argument prototype would still apply.  */
17661 char $ac_func();
17662
17663 int main() {
17664
17665 /* The GNU C library defines this for functions which it implements
17666     to always fail with ENOSYS.  Some functions are actually named
17667     something starting with __ and the normal name is an alias.  */
17668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17669 choke me
17670 #else
17671 $ac_func();
17672 #endif
17673
17674 ; return 0; }
17675 EOF
17676 if { (eval echo configure:17677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17677   rm -rf conftest*
17678   eval "ac_cv_func_$ac_func=yes"
17679 else
17680   echo "configure: failed program was:" >&5
17681   cat conftest.$ac_ext >&5
17682   rm -rf conftest*
17683   eval "ac_cv_func_$ac_func=no"
17684 fi
17685 rm -f conftest*
17686 fi
17687
17688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17689   echo "$ac_t""yes" 1>&6
17690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17691   cat >> confdefs.h <<EOF
17692 #define $ac_tr_func 1
17693 EOF
17694  
17695 else
17696   echo "$ac_t""no" 1>&6
17697 fi
17698 done
17699
17700   else
17701     
17702   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17703 echo "configure:17704: checking for _fmodl declaration" >&5
17704   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17705     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17706   echo $ac_n "(cached) $ac_c" 1>&6
17707 else
17708   
17709       
17710       ac_ext=C
17711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17712 ac_cpp='$CXXCPP $CPPFLAGS'
17713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17715 cross_compiling=$ac_cv_prog_cxx_cross
17716
17717       cat > conftest.$ac_ext <<EOF
17718 #line 17719 "configure"
17719 #include "confdefs.h"
17720 #include <math.h>
17721 int main() {
17722  _fmodl(0, 0);
17723 ; return 0; }
17724 EOF
17725 if { (eval echo configure:17726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17726   rm -rf conftest*
17727   glibcpp_cv_func__fmodl_use=yes
17728 else
17729   echo "configure: failed program was:" >&5
17730   cat conftest.$ac_ext >&5
17731   rm -rf conftest*
17732   glibcpp_cv_func__fmodl_use=no
17733 fi
17734 rm -f conftest*
17735       ac_ext=c
17736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17737 ac_cpp='$CPP $CPPFLAGS'
17738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17740 cross_compiling=$ac_cv_prog_cc_cross
17741
17742     
17743 fi
17744
17745   fi
17746   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17747
17748     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17749       for ac_func in _fmodl
17750 do
17751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17752 echo "configure:17753: checking for $ac_func" >&5
17753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17754   echo $ac_n "(cached) $ac_c" 1>&6
17755 else
17756   cat > conftest.$ac_ext <<EOF
17757 #line 17758 "configure"
17758 #include "confdefs.h"
17759 /* System header to define __stub macros and hopefully few prototypes,
17760     which can conflict with char $ac_func(); below.  */
17761 #include <assert.h>
17762 /* Override any gcc2 internal prototype to avoid an error.  */
17763 /* We use char because int might match the return type of a gcc2
17764     builtin and then its argument prototype would still apply.  */
17765 char $ac_func();
17766
17767 int main() {
17768
17769 /* The GNU C library defines this for functions which it implements
17770     to always fail with ENOSYS.  Some functions are actually named
17771     something starting with __ and the normal name is an alias.  */
17772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17773 choke me
17774 #else
17775 $ac_func();
17776 #endif
17777
17778 ; return 0; }
17779 EOF
17780 if { (eval echo configure:17781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17781   rm -rf conftest*
17782   eval "ac_cv_func_$ac_func=yes"
17783 else
17784   echo "configure: failed program was:" >&5
17785   cat conftest.$ac_ext >&5
17786   rm -rf conftest*
17787   eval "ac_cv_func_$ac_func=no"
17788 fi
17789 rm -f conftest*
17790 fi
17791
17792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17793   echo "$ac_t""yes" 1>&6
17794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17795   cat >> confdefs.h <<EOF
17796 #define $ac_tr_func 1
17797 EOF
17798  
17799 else
17800   echo "$ac_t""no" 1>&6
17801 fi
17802 done
17803
17804     fi
17805   fi
17806
17807   
17808   
17809   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17810 echo "configure:17811: checking for frexpl declaration" >&5
17811   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17812     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17813   echo $ac_n "(cached) $ac_c" 1>&6
17814 else
17815   
17816       
17817       ac_ext=C
17818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17819 ac_cpp='$CXXCPP $CPPFLAGS'
17820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17822 cross_compiling=$ac_cv_prog_cxx_cross
17823
17824       cat > conftest.$ac_ext <<EOF
17825 #line 17826 "configure"
17826 #include "confdefs.h"
17827 #include <math.h>
17828 int main() {
17829  frexpl(0, 0);
17830 ; return 0; }
17831 EOF
17832 if { (eval echo configure:17833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17833   rm -rf conftest*
17834   glibcpp_cv_func_frexpl_use=yes
17835 else
17836   echo "configure: failed program was:" >&5
17837   cat conftest.$ac_ext >&5
17838   rm -rf conftest*
17839   glibcpp_cv_func_frexpl_use=no
17840 fi
17841 rm -f conftest*
17842       ac_ext=c
17843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17844 ac_cpp='$CPP $CPPFLAGS'
17845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17847 cross_compiling=$ac_cv_prog_cc_cross
17848
17849     
17850 fi
17851
17852   fi
17853   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17854
17855   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17856     for ac_func in frexpl
17857 do
17858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17859 echo "configure:17860: checking for $ac_func" >&5
17860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17861   echo $ac_n "(cached) $ac_c" 1>&6
17862 else
17863   cat > conftest.$ac_ext <<EOF
17864 #line 17865 "configure"
17865 #include "confdefs.h"
17866 /* System header to define __stub macros and hopefully few prototypes,
17867     which can conflict with char $ac_func(); below.  */
17868 #include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error.  */
17870 /* We use char because int might match the return type of a gcc2
17871     builtin and then its argument prototype would still apply.  */
17872 char $ac_func();
17873
17874 int main() {
17875
17876 /* The GNU C library defines this for functions which it implements
17877     to always fail with ENOSYS.  Some functions are actually named
17878     something starting with __ and the normal name is an alias.  */
17879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17880 choke me
17881 #else
17882 $ac_func();
17883 #endif
17884
17885 ; return 0; }
17886 EOF
17887 if { (eval echo configure:17888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17888   rm -rf conftest*
17889   eval "ac_cv_func_$ac_func=yes"
17890 else
17891   echo "configure: failed program was:" >&5
17892   cat conftest.$ac_ext >&5
17893   rm -rf conftest*
17894   eval "ac_cv_func_$ac_func=no"
17895 fi
17896 rm -f conftest*
17897 fi
17898
17899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17900   echo "$ac_t""yes" 1>&6
17901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17902   cat >> confdefs.h <<EOF
17903 #define $ac_tr_func 1
17904 EOF
17905  
17906 else
17907   echo "$ac_t""no" 1>&6
17908 fi
17909 done
17910
17911   else
17912     
17913   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17914 echo "configure:17915: checking for _frexpl declaration" >&5
17915   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17916     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17917   echo $ac_n "(cached) $ac_c" 1>&6
17918 else
17919   
17920       
17921       ac_ext=C
17922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17923 ac_cpp='$CXXCPP $CPPFLAGS'
17924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17926 cross_compiling=$ac_cv_prog_cxx_cross
17927
17928       cat > conftest.$ac_ext <<EOF
17929 #line 17930 "configure"
17930 #include "confdefs.h"
17931 #include <math.h>
17932 int main() {
17933  _frexpl(0, 0);
17934 ; return 0; }
17935 EOF
17936 if { (eval echo configure:17937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17937   rm -rf conftest*
17938   glibcpp_cv_func__frexpl_use=yes
17939 else
17940   echo "configure: failed program was:" >&5
17941   cat conftest.$ac_ext >&5
17942   rm -rf conftest*
17943   glibcpp_cv_func__frexpl_use=no
17944 fi
17945 rm -f conftest*
17946       ac_ext=c
17947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17951 cross_compiling=$ac_cv_prog_cc_cross
17952
17953     
17954 fi
17955
17956   fi
17957   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17958
17959     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17960       for ac_func in _frexpl
17961 do
17962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17963 echo "configure:17964: checking for $ac_func" >&5
17964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17965   echo $ac_n "(cached) $ac_c" 1>&6
17966 else
17967   cat > conftest.$ac_ext <<EOF
17968 #line 17969 "configure"
17969 #include "confdefs.h"
17970 /* System header to define __stub macros and hopefully few prototypes,
17971     which can conflict with char $ac_func(); below.  */
17972 #include <assert.h>
17973 /* Override any gcc2 internal prototype to avoid an error.  */
17974 /* We use char because int might match the return type of a gcc2
17975     builtin and then its argument prototype would still apply.  */
17976 char $ac_func();
17977
17978 int main() {
17979
17980 /* The GNU C library defines this for functions which it implements
17981     to always fail with ENOSYS.  Some functions are actually named
17982     something starting with __ and the normal name is an alias.  */
17983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17984 choke me
17985 #else
17986 $ac_func();
17987 #endif
17988
17989 ; return 0; }
17990 EOF
17991 if { (eval echo configure:17992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17992   rm -rf conftest*
17993   eval "ac_cv_func_$ac_func=yes"
17994 else
17995   echo "configure: failed program was:" >&5
17996   cat conftest.$ac_ext >&5
17997   rm -rf conftest*
17998   eval "ac_cv_func_$ac_func=no"
17999 fi
18000 rm -f conftest*
18001 fi
18002
18003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18004   echo "$ac_t""yes" 1>&6
18005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18006   cat >> confdefs.h <<EOF
18007 #define $ac_tr_func 1
18008 EOF
18009  
18010 else
18011   echo "$ac_t""no" 1>&6
18012 fi
18013 done
18014
18015     fi
18016   fi
18017
18018   
18019   
18020   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18021 echo "configure:18022: checking for hypotl declaration" >&5
18022   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18023     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18024   echo $ac_n "(cached) $ac_c" 1>&6
18025 else
18026   
18027       
18028       ac_ext=C
18029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18030 ac_cpp='$CXXCPP $CPPFLAGS'
18031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18033 cross_compiling=$ac_cv_prog_cxx_cross
18034
18035       cat > conftest.$ac_ext <<EOF
18036 #line 18037 "configure"
18037 #include "confdefs.h"
18038 #include <math.h>
18039 int main() {
18040  hypotl(0, 0);
18041 ; return 0; }
18042 EOF
18043 if { (eval echo configure:18044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18044   rm -rf conftest*
18045   glibcpp_cv_func_hypotl_use=yes
18046 else
18047   echo "configure: failed program was:" >&5
18048   cat conftest.$ac_ext >&5
18049   rm -rf conftest*
18050   glibcpp_cv_func_hypotl_use=no
18051 fi
18052 rm -f conftest*
18053       ac_ext=c
18054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18055 ac_cpp='$CPP $CPPFLAGS'
18056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18058 cross_compiling=$ac_cv_prog_cc_cross
18059
18060     
18061 fi
18062
18063   fi
18064   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18065
18066   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18067     for ac_func in hypotl
18068 do
18069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18070 echo "configure:18071: checking for $ac_func" >&5
18071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18072   echo $ac_n "(cached) $ac_c" 1>&6
18073 else
18074   cat > conftest.$ac_ext <<EOF
18075 #line 18076 "configure"
18076 #include "confdefs.h"
18077 /* System header to define __stub macros and hopefully few prototypes,
18078     which can conflict with char $ac_func(); below.  */
18079 #include <assert.h>
18080 /* Override any gcc2 internal prototype to avoid an error.  */
18081 /* We use char because int might match the return type of a gcc2
18082     builtin and then its argument prototype would still apply.  */
18083 char $ac_func();
18084
18085 int main() {
18086
18087 /* The GNU C library defines this for functions which it implements
18088     to always fail with ENOSYS.  Some functions are actually named
18089     something starting with __ and the normal name is an alias.  */
18090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18091 choke me
18092 #else
18093 $ac_func();
18094 #endif
18095
18096 ; return 0; }
18097 EOF
18098 if { (eval echo configure:18099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18099   rm -rf conftest*
18100   eval "ac_cv_func_$ac_func=yes"
18101 else
18102   echo "configure: failed program was:" >&5
18103   cat conftest.$ac_ext >&5
18104   rm -rf conftest*
18105   eval "ac_cv_func_$ac_func=no"
18106 fi
18107 rm -f conftest*
18108 fi
18109
18110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18111   echo "$ac_t""yes" 1>&6
18112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18113   cat >> confdefs.h <<EOF
18114 #define $ac_tr_func 1
18115 EOF
18116  
18117 else
18118   echo "$ac_t""no" 1>&6
18119 fi
18120 done
18121
18122   else
18123     
18124   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18125 echo "configure:18126: checking for _hypotl declaration" >&5
18126   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18127     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18128   echo $ac_n "(cached) $ac_c" 1>&6
18129 else
18130   
18131       
18132       ac_ext=C
18133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18134 ac_cpp='$CXXCPP $CPPFLAGS'
18135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18137 cross_compiling=$ac_cv_prog_cxx_cross
18138
18139       cat > conftest.$ac_ext <<EOF
18140 #line 18141 "configure"
18141 #include "confdefs.h"
18142 #include <math.h>
18143 int main() {
18144  _hypotl(0, 0);
18145 ; return 0; }
18146 EOF
18147 if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18148   rm -rf conftest*
18149   glibcpp_cv_func__hypotl_use=yes
18150 else
18151   echo "configure: failed program was:" >&5
18152   cat conftest.$ac_ext >&5
18153   rm -rf conftest*
18154   glibcpp_cv_func__hypotl_use=no
18155 fi
18156 rm -f conftest*
18157       ac_ext=c
18158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18159 ac_cpp='$CPP $CPPFLAGS'
18160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18162 cross_compiling=$ac_cv_prog_cc_cross
18163
18164     
18165 fi
18166
18167   fi
18168   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18169
18170     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18171       for ac_func in _hypotl
18172 do
18173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18174 echo "configure:18175: checking for $ac_func" >&5
18175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18176   echo $ac_n "(cached) $ac_c" 1>&6
18177 else
18178   cat > conftest.$ac_ext <<EOF
18179 #line 18180 "configure"
18180 #include "confdefs.h"
18181 /* System header to define __stub macros and hopefully few prototypes,
18182     which can conflict with char $ac_func(); below.  */
18183 #include <assert.h>
18184 /* Override any gcc2 internal prototype to avoid an error.  */
18185 /* We use char because int might match the return type of a gcc2
18186     builtin and then its argument prototype would still apply.  */
18187 char $ac_func();
18188
18189 int main() {
18190
18191 /* The GNU C library defines this for functions which it implements
18192     to always fail with ENOSYS.  Some functions are actually named
18193     something starting with __ and the normal name is an alias.  */
18194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18195 choke me
18196 #else
18197 $ac_func();
18198 #endif
18199
18200 ; return 0; }
18201 EOF
18202 if { (eval echo configure:18203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18203   rm -rf conftest*
18204   eval "ac_cv_func_$ac_func=yes"
18205 else
18206   echo "configure: failed program was:" >&5
18207   cat conftest.$ac_ext >&5
18208   rm -rf conftest*
18209   eval "ac_cv_func_$ac_func=no"
18210 fi
18211 rm -f conftest*
18212 fi
18213
18214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18215   echo "$ac_t""yes" 1>&6
18216     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18217   cat >> confdefs.h <<EOF
18218 #define $ac_tr_func 1
18219 EOF
18220  
18221 else
18222   echo "$ac_t""no" 1>&6
18223 fi
18224 done
18225
18226     fi
18227   fi
18228
18229   
18230   
18231   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18232 echo "configure:18233: checking for ldexpl declaration" >&5
18233   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18234     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18235   echo $ac_n "(cached) $ac_c" 1>&6
18236 else
18237   
18238       
18239       ac_ext=C
18240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18241 ac_cpp='$CXXCPP $CPPFLAGS'
18242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18244 cross_compiling=$ac_cv_prog_cxx_cross
18245
18246       cat > conftest.$ac_ext <<EOF
18247 #line 18248 "configure"
18248 #include "confdefs.h"
18249 #include <math.h>
18250 int main() {
18251  ldexpl(0, 0);
18252 ; return 0; }
18253 EOF
18254 if { (eval echo configure:18255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18255   rm -rf conftest*
18256   glibcpp_cv_func_ldexpl_use=yes
18257 else
18258   echo "configure: failed program was:" >&5
18259   cat conftest.$ac_ext >&5
18260   rm -rf conftest*
18261   glibcpp_cv_func_ldexpl_use=no
18262 fi
18263 rm -f conftest*
18264       ac_ext=c
18265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18266 ac_cpp='$CPP $CPPFLAGS'
18267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18269 cross_compiling=$ac_cv_prog_cc_cross
18270
18271     
18272 fi
18273
18274   fi
18275   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18276
18277   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18278     for ac_func in ldexpl
18279 do
18280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18281 echo "configure:18282: checking for $ac_func" >&5
18282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18283   echo $ac_n "(cached) $ac_c" 1>&6
18284 else
18285   cat > conftest.$ac_ext <<EOF
18286 #line 18287 "configure"
18287 #include "confdefs.h"
18288 /* System header to define __stub macros and hopefully few prototypes,
18289     which can conflict with char $ac_func(); below.  */
18290 #include <assert.h>
18291 /* Override any gcc2 internal prototype to avoid an error.  */
18292 /* We use char because int might match the return type of a gcc2
18293     builtin and then its argument prototype would still apply.  */
18294 char $ac_func();
18295
18296 int main() {
18297
18298 /* The GNU C library defines this for functions which it implements
18299     to always fail with ENOSYS.  Some functions are actually named
18300     something starting with __ and the normal name is an alias.  */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 choke me
18303 #else
18304 $ac_func();
18305 #endif
18306
18307 ; return 0; }
18308 EOF
18309 if { (eval echo configure:18310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18310   rm -rf conftest*
18311   eval "ac_cv_func_$ac_func=yes"
18312 else
18313   echo "configure: failed program was:" >&5
18314   cat conftest.$ac_ext >&5
18315   rm -rf conftest*
18316   eval "ac_cv_func_$ac_func=no"
18317 fi
18318 rm -f conftest*
18319 fi
18320
18321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18322   echo "$ac_t""yes" 1>&6
18323     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18324   cat >> confdefs.h <<EOF
18325 #define $ac_tr_func 1
18326 EOF
18327  
18328 else
18329   echo "$ac_t""no" 1>&6
18330 fi
18331 done
18332
18333   else
18334     
18335   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18336 echo "configure:18337: checking for _ldexpl declaration" >&5
18337   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18338     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18339   echo $ac_n "(cached) $ac_c" 1>&6
18340 else
18341   
18342       
18343       ac_ext=C
18344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18345 ac_cpp='$CXXCPP $CPPFLAGS'
18346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18348 cross_compiling=$ac_cv_prog_cxx_cross
18349
18350       cat > conftest.$ac_ext <<EOF
18351 #line 18352 "configure"
18352 #include "confdefs.h"
18353 #include <math.h>
18354 int main() {
18355  _ldexpl(0, 0);
18356 ; return 0; }
18357 EOF
18358 if { (eval echo configure:18359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18359   rm -rf conftest*
18360   glibcpp_cv_func__ldexpl_use=yes
18361 else
18362   echo "configure: failed program was:" >&5
18363   cat conftest.$ac_ext >&5
18364   rm -rf conftest*
18365   glibcpp_cv_func__ldexpl_use=no
18366 fi
18367 rm -f conftest*
18368       ac_ext=c
18369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18370 ac_cpp='$CPP $CPPFLAGS'
18371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18373 cross_compiling=$ac_cv_prog_cc_cross
18374
18375     
18376 fi
18377
18378   fi
18379   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18380
18381     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18382       for ac_func in _ldexpl
18383 do
18384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18385 echo "configure:18386: checking for $ac_func" >&5
18386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18387   echo $ac_n "(cached) $ac_c" 1>&6
18388 else
18389   cat > conftest.$ac_ext <<EOF
18390 #line 18391 "configure"
18391 #include "confdefs.h"
18392 /* System header to define __stub macros and hopefully few prototypes,
18393     which can conflict with char $ac_func(); below.  */
18394 #include <assert.h>
18395 /* Override any gcc2 internal prototype to avoid an error.  */
18396 /* We use char because int might match the return type of a gcc2
18397     builtin and then its argument prototype would still apply.  */
18398 char $ac_func();
18399
18400 int main() {
18401
18402 /* The GNU C library defines this for functions which it implements
18403     to always fail with ENOSYS.  Some functions are actually named
18404     something starting with __ and the normal name is an alias.  */
18405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18406 choke me
18407 #else
18408 $ac_func();
18409 #endif
18410
18411 ; return 0; }
18412 EOF
18413 if { (eval echo configure:18414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18414   rm -rf conftest*
18415   eval "ac_cv_func_$ac_func=yes"
18416 else
18417   echo "configure: failed program was:" >&5
18418   cat conftest.$ac_ext >&5
18419   rm -rf conftest*
18420   eval "ac_cv_func_$ac_func=no"
18421 fi
18422 rm -f conftest*
18423 fi
18424
18425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18426   echo "$ac_t""yes" 1>&6
18427     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18428   cat >> confdefs.h <<EOF
18429 #define $ac_tr_func 1
18430 EOF
18431  
18432 else
18433   echo "$ac_t""no" 1>&6
18434 fi
18435 done
18436
18437     fi
18438   fi
18439
18440   
18441   
18442   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18443 echo "configure:18444: checking for logl declaration" >&5
18444   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18445     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18446   echo $ac_n "(cached) $ac_c" 1>&6
18447 else
18448   
18449       
18450       ac_ext=C
18451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18452 ac_cpp='$CXXCPP $CPPFLAGS'
18453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18455 cross_compiling=$ac_cv_prog_cxx_cross
18456
18457       cat > conftest.$ac_ext <<EOF
18458 #line 18459 "configure"
18459 #include "confdefs.h"
18460 #include <math.h>
18461                       #ifdef HAVE_IEEEFP_H
18462                       #include <ieeefp.h>
18463                       #endif
18464                      
18465 int main() {
18466  logl(0);
18467 ; return 0; }
18468 EOF
18469 if { (eval echo configure:18470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18470   rm -rf conftest*
18471   glibcpp_cv_func_logl_use=yes
18472 else
18473   echo "configure: failed program was:" >&5
18474   cat conftest.$ac_ext >&5
18475   rm -rf conftest*
18476   glibcpp_cv_func_logl_use=no
18477 fi
18478 rm -f conftest*
18479       ac_ext=c
18480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18484 cross_compiling=$ac_cv_prog_cc_cross
18485
18486     
18487 fi
18488
18489   fi
18490   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18491
18492   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18493     for ac_func in logl
18494 do
18495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18496 echo "configure:18497: checking for $ac_func" >&5
18497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18498   echo $ac_n "(cached) $ac_c" 1>&6
18499 else
18500   cat > conftest.$ac_ext <<EOF
18501 #line 18502 "configure"
18502 #include "confdefs.h"
18503 /* System header to define __stub macros and hopefully few prototypes,
18504     which can conflict with char $ac_func(); below.  */
18505 #include <assert.h>
18506 /* Override any gcc2 internal prototype to avoid an error.  */
18507 /* We use char because int might match the return type of a gcc2
18508     builtin and then its argument prototype would still apply.  */
18509 char $ac_func();
18510
18511 int main() {
18512
18513 /* The GNU C library defines this for functions which it implements
18514     to always fail with ENOSYS.  Some functions are actually named
18515     something starting with __ and the normal name is an alias.  */
18516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18517 choke me
18518 #else
18519 $ac_func();
18520 #endif
18521
18522 ; return 0; }
18523 EOF
18524 if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18525   rm -rf conftest*
18526   eval "ac_cv_func_$ac_func=yes"
18527 else
18528   echo "configure: failed program was:" >&5
18529   cat conftest.$ac_ext >&5
18530   rm -rf conftest*
18531   eval "ac_cv_func_$ac_func=no"
18532 fi
18533 rm -f conftest*
18534 fi
18535
18536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18537   echo "$ac_t""yes" 1>&6
18538     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18539   cat >> confdefs.h <<EOF
18540 #define $ac_tr_func 1
18541 EOF
18542  
18543 else
18544   echo "$ac_t""no" 1>&6
18545 fi
18546 done
18547
18548   else
18549     
18550   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18551 echo "configure:18552: checking for _logl declaration" >&5
18552   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18553     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18554   echo $ac_n "(cached) $ac_c" 1>&6
18555 else
18556   
18557       
18558       ac_ext=C
18559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18560 ac_cpp='$CXXCPP $CPPFLAGS'
18561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18563 cross_compiling=$ac_cv_prog_cxx_cross
18564
18565       cat > conftest.$ac_ext <<EOF
18566 #line 18567 "configure"
18567 #include "confdefs.h"
18568 #include <math.h>
18569                       #ifdef HAVE_IEEEFP_H
18570                       #include <ieeefp.h>
18571                       #endif
18572                      
18573 int main() {
18574  _logl(0);
18575 ; return 0; }
18576 EOF
18577 if { (eval echo configure:18578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18578   rm -rf conftest*
18579   glibcpp_cv_func__logl_use=yes
18580 else
18581   echo "configure: failed program was:" >&5
18582   cat conftest.$ac_ext >&5
18583   rm -rf conftest*
18584   glibcpp_cv_func__logl_use=no
18585 fi
18586 rm -f conftest*
18587       ac_ext=c
18588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18589 ac_cpp='$CPP $CPPFLAGS'
18590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18592 cross_compiling=$ac_cv_prog_cc_cross
18593
18594     
18595 fi
18596
18597   fi
18598   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18599
18600     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18601       for ac_func in _logl
18602 do
18603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18604 echo "configure:18605: checking for $ac_func" >&5
18605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18606   echo $ac_n "(cached) $ac_c" 1>&6
18607 else
18608   cat > conftest.$ac_ext <<EOF
18609 #line 18610 "configure"
18610 #include "confdefs.h"
18611 /* System header to define __stub macros and hopefully few prototypes,
18612     which can conflict with char $ac_func(); below.  */
18613 #include <assert.h>
18614 /* Override any gcc2 internal prototype to avoid an error.  */
18615 /* We use char because int might match the return type of a gcc2
18616     builtin and then its argument prototype would still apply.  */
18617 char $ac_func();
18618
18619 int main() {
18620
18621 /* The GNU C library defines this for functions which it implements
18622     to always fail with ENOSYS.  Some functions are actually named
18623     something starting with __ and the normal name is an alias.  */
18624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18625 choke me
18626 #else
18627 $ac_func();
18628 #endif
18629
18630 ; return 0; }
18631 EOF
18632 if { (eval echo configure:18633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18633   rm -rf conftest*
18634   eval "ac_cv_func_$ac_func=yes"
18635 else
18636   echo "configure: failed program was:" >&5
18637   cat conftest.$ac_ext >&5
18638   rm -rf conftest*
18639   eval "ac_cv_func_$ac_func=no"
18640 fi
18641 rm -f conftest*
18642 fi
18643
18644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18645   echo "$ac_t""yes" 1>&6
18646     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18647   cat >> confdefs.h <<EOF
18648 #define $ac_tr_func 1
18649 EOF
18650  
18651 else
18652   echo "$ac_t""no" 1>&6
18653 fi
18654 done
18655
18656     fi
18657   fi
18658
18659   
18660   
18661   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18662 echo "configure:18663: checking for log10l declaration" >&5
18663   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18664     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18665   echo $ac_n "(cached) $ac_c" 1>&6
18666 else
18667   
18668       
18669       ac_ext=C
18670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18671 ac_cpp='$CXXCPP $CPPFLAGS'
18672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18674 cross_compiling=$ac_cv_prog_cxx_cross
18675
18676       cat > conftest.$ac_ext <<EOF
18677 #line 18678 "configure"
18678 #include "confdefs.h"
18679 #include <math.h>
18680                       #ifdef HAVE_IEEEFP_H
18681                       #include <ieeefp.h>
18682                       #endif
18683                      
18684 int main() {
18685  log10l(0);
18686 ; return 0; }
18687 EOF
18688 if { (eval echo configure:18689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18689   rm -rf conftest*
18690   glibcpp_cv_func_log10l_use=yes
18691 else
18692   echo "configure: failed program was:" >&5
18693   cat conftest.$ac_ext >&5
18694   rm -rf conftest*
18695   glibcpp_cv_func_log10l_use=no
18696 fi
18697 rm -f conftest*
18698       ac_ext=c
18699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18700 ac_cpp='$CPP $CPPFLAGS'
18701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18703 cross_compiling=$ac_cv_prog_cc_cross
18704
18705     
18706 fi
18707
18708   fi
18709   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18710
18711   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18712     for ac_func in log10l
18713 do
18714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18715 echo "configure:18716: checking for $ac_func" >&5
18716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18717   echo $ac_n "(cached) $ac_c" 1>&6
18718 else
18719   cat > conftest.$ac_ext <<EOF
18720 #line 18721 "configure"
18721 #include "confdefs.h"
18722 /* System header to define __stub macros and hopefully few prototypes,
18723     which can conflict with char $ac_func(); below.  */
18724 #include <assert.h>
18725 /* Override any gcc2 internal prototype to avoid an error.  */
18726 /* We use char because int might match the return type of a gcc2
18727     builtin and then its argument prototype would still apply.  */
18728 char $ac_func();
18729
18730 int main() {
18731
18732 /* The GNU C library defines this for functions which it implements
18733     to always fail with ENOSYS.  Some functions are actually named
18734     something starting with __ and the normal name is an alias.  */
18735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18736 choke me
18737 #else
18738 $ac_func();
18739 #endif
18740
18741 ; return 0; }
18742 EOF
18743 if { (eval echo configure:18744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18744   rm -rf conftest*
18745   eval "ac_cv_func_$ac_func=yes"
18746 else
18747   echo "configure: failed program was:" >&5
18748   cat conftest.$ac_ext >&5
18749   rm -rf conftest*
18750   eval "ac_cv_func_$ac_func=no"
18751 fi
18752 rm -f conftest*
18753 fi
18754
18755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18756   echo "$ac_t""yes" 1>&6
18757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18758   cat >> confdefs.h <<EOF
18759 #define $ac_tr_func 1
18760 EOF
18761  
18762 else
18763   echo "$ac_t""no" 1>&6
18764 fi
18765 done
18766
18767   else
18768     
18769   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18770 echo "configure:18771: checking for _log10l declaration" >&5
18771   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18772     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18773   echo $ac_n "(cached) $ac_c" 1>&6
18774 else
18775   
18776       
18777       ac_ext=C
18778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18779 ac_cpp='$CXXCPP $CPPFLAGS'
18780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18782 cross_compiling=$ac_cv_prog_cxx_cross
18783
18784       cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18787 #include <math.h>
18788                       #ifdef HAVE_IEEEFP_H
18789                       #include <ieeefp.h>
18790                       #endif
18791                      
18792 int main() {
18793  _log10l(0);
18794 ; return 0; }
18795 EOF
18796 if { (eval echo configure:18797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18797   rm -rf conftest*
18798   glibcpp_cv_func__log10l_use=yes
18799 else
18800   echo "configure: failed program was:" >&5
18801   cat conftest.$ac_ext >&5
18802   rm -rf conftest*
18803   glibcpp_cv_func__log10l_use=no
18804 fi
18805 rm -f conftest*
18806       ac_ext=c
18807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18808 ac_cpp='$CPP $CPPFLAGS'
18809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18811 cross_compiling=$ac_cv_prog_cc_cross
18812
18813     
18814 fi
18815
18816   fi
18817   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18818
18819     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18820       for ac_func in _log10l
18821 do
18822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18823 echo "configure:18824: checking for $ac_func" >&5
18824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18825   echo $ac_n "(cached) $ac_c" 1>&6
18826 else
18827   cat > conftest.$ac_ext <<EOF
18828 #line 18829 "configure"
18829 #include "confdefs.h"
18830 /* System header to define __stub macros and hopefully few prototypes,
18831     which can conflict with char $ac_func(); below.  */
18832 #include <assert.h>
18833 /* Override any gcc2 internal prototype to avoid an error.  */
18834 /* We use char because int might match the return type of a gcc2
18835     builtin and then its argument prototype would still apply.  */
18836 char $ac_func();
18837
18838 int main() {
18839
18840 /* The GNU C library defines this for functions which it implements
18841     to always fail with ENOSYS.  Some functions are actually named
18842     something starting with __ and the normal name is an alias.  */
18843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18844 choke me
18845 #else
18846 $ac_func();
18847 #endif
18848
18849 ; return 0; }
18850 EOF
18851 if { (eval echo configure:18852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18852   rm -rf conftest*
18853   eval "ac_cv_func_$ac_func=yes"
18854 else
18855   echo "configure: failed program was:" >&5
18856   cat conftest.$ac_ext >&5
18857   rm -rf conftest*
18858   eval "ac_cv_func_$ac_func=no"
18859 fi
18860 rm -f conftest*
18861 fi
18862
18863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18864   echo "$ac_t""yes" 1>&6
18865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18866   cat >> confdefs.h <<EOF
18867 #define $ac_tr_func 1
18868 EOF
18869  
18870 else
18871   echo "$ac_t""no" 1>&6
18872 fi
18873 done
18874
18875     fi
18876   fi
18877
18878   
18879   
18880   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18881 echo "configure:18882: checking for modfl declaration" >&5
18882   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18883     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18884   echo $ac_n "(cached) $ac_c" 1>&6
18885 else
18886   
18887       
18888       ac_ext=C
18889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18890 ac_cpp='$CXXCPP $CPPFLAGS'
18891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18893 cross_compiling=$ac_cv_prog_cxx_cross
18894
18895       cat > conftest.$ac_ext <<EOF
18896 #line 18897 "configure"
18897 #include "confdefs.h"
18898 #include <math.h>
18899 int main() {
18900  modfl(0, 0);
18901 ; return 0; }
18902 EOF
18903 if { (eval echo configure:18904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18904   rm -rf conftest*
18905   glibcpp_cv_func_modfl_use=yes
18906 else
18907   echo "configure: failed program was:" >&5
18908   cat conftest.$ac_ext >&5
18909   rm -rf conftest*
18910   glibcpp_cv_func_modfl_use=no
18911 fi
18912 rm -f conftest*
18913       ac_ext=c
18914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18915 ac_cpp='$CPP $CPPFLAGS'
18916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18918 cross_compiling=$ac_cv_prog_cc_cross
18919
18920     
18921 fi
18922
18923   fi
18924   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18925
18926   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18927     for ac_func in modfl
18928 do
18929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18930 echo "configure:18931: checking for $ac_func" >&5
18931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18932   echo $ac_n "(cached) $ac_c" 1>&6
18933 else
18934   cat > conftest.$ac_ext <<EOF
18935 #line 18936 "configure"
18936 #include "confdefs.h"
18937 /* System header to define __stub macros and hopefully few prototypes,
18938     which can conflict with char $ac_func(); below.  */
18939 #include <assert.h>
18940 /* Override any gcc2 internal prototype to avoid an error.  */
18941 /* We use char because int might match the return type of a gcc2
18942     builtin and then its argument prototype would still apply.  */
18943 char $ac_func();
18944
18945 int main() {
18946
18947 /* The GNU C library defines this for functions which it implements
18948     to always fail with ENOSYS.  Some functions are actually named
18949     something starting with __ and the normal name is an alias.  */
18950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18951 choke me
18952 #else
18953 $ac_func();
18954 #endif
18955
18956 ; return 0; }
18957 EOF
18958 if { (eval echo configure:18959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18959   rm -rf conftest*
18960   eval "ac_cv_func_$ac_func=yes"
18961 else
18962   echo "configure: failed program was:" >&5
18963   cat conftest.$ac_ext >&5
18964   rm -rf conftest*
18965   eval "ac_cv_func_$ac_func=no"
18966 fi
18967 rm -f conftest*
18968 fi
18969
18970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18971   echo "$ac_t""yes" 1>&6
18972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18973   cat >> confdefs.h <<EOF
18974 #define $ac_tr_func 1
18975 EOF
18976  
18977 else
18978   echo "$ac_t""no" 1>&6
18979 fi
18980 done
18981
18982   else
18983     
18984   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18985 echo "configure:18986: checking for _modfl declaration" >&5
18986   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18987     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18988   echo $ac_n "(cached) $ac_c" 1>&6
18989 else
18990   
18991       
18992       ac_ext=C
18993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18994 ac_cpp='$CXXCPP $CPPFLAGS'
18995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18997 cross_compiling=$ac_cv_prog_cxx_cross
18998
18999       cat > conftest.$ac_ext <<EOF
19000 #line 19001 "configure"
19001 #include "confdefs.h"
19002 #include <math.h>
19003 int main() {
19004  _modfl(0, 0);
19005 ; return 0; }
19006 EOF
19007 if { (eval echo configure:19008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19008   rm -rf conftest*
19009   glibcpp_cv_func__modfl_use=yes
19010 else
19011   echo "configure: failed program was:" >&5
19012   cat conftest.$ac_ext >&5
19013   rm -rf conftest*
19014   glibcpp_cv_func__modfl_use=no
19015 fi
19016 rm -f conftest*
19017       ac_ext=c
19018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19019 ac_cpp='$CPP $CPPFLAGS'
19020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19022 cross_compiling=$ac_cv_prog_cc_cross
19023
19024     
19025 fi
19026
19027   fi
19028   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19029
19030     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19031       for ac_func in _modfl
19032 do
19033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19034 echo "configure:19035: checking for $ac_func" >&5
19035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19036   echo $ac_n "(cached) $ac_c" 1>&6
19037 else
19038   cat > conftest.$ac_ext <<EOF
19039 #line 19040 "configure"
19040 #include "confdefs.h"
19041 /* System header to define __stub macros and hopefully few prototypes,
19042     which can conflict with char $ac_func(); below.  */
19043 #include <assert.h>
19044 /* Override any gcc2 internal prototype to avoid an error.  */
19045 /* We use char because int might match the return type of a gcc2
19046     builtin and then its argument prototype would still apply.  */
19047 char $ac_func();
19048
19049 int main() {
19050
19051 /* The GNU C library defines this for functions which it implements
19052     to always fail with ENOSYS.  Some functions are actually named
19053     something starting with __ and the normal name is an alias.  */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19055 choke me
19056 #else
19057 $ac_func();
19058 #endif
19059
19060 ; return 0; }
19061 EOF
19062 if { (eval echo configure:19063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19063   rm -rf conftest*
19064   eval "ac_cv_func_$ac_func=yes"
19065 else
19066   echo "configure: failed program was:" >&5
19067   cat conftest.$ac_ext >&5
19068   rm -rf conftest*
19069   eval "ac_cv_func_$ac_func=no"
19070 fi
19071 rm -f conftest*
19072 fi
19073
19074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19075   echo "$ac_t""yes" 1>&6
19076     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19077   cat >> confdefs.h <<EOF
19078 #define $ac_tr_func 1
19079 EOF
19080  
19081 else
19082   echo "$ac_t""no" 1>&6
19083 fi
19084 done
19085
19086     fi
19087   fi
19088
19089   
19090   
19091   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19092 echo "configure:19093: checking for powl declaration" >&5
19093   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19094     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19095   echo $ac_n "(cached) $ac_c" 1>&6
19096 else
19097   
19098       
19099       ac_ext=C
19100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19101 ac_cpp='$CXXCPP $CPPFLAGS'
19102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19104 cross_compiling=$ac_cv_prog_cxx_cross
19105
19106       cat > conftest.$ac_ext <<EOF
19107 #line 19108 "configure"
19108 #include "confdefs.h"
19109 #include <math.h>
19110 int main() {
19111  powl(0, 0);
19112 ; return 0; }
19113 EOF
19114 if { (eval echo configure:19115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19115   rm -rf conftest*
19116   glibcpp_cv_func_powl_use=yes
19117 else
19118   echo "configure: failed program was:" >&5
19119   cat conftest.$ac_ext >&5
19120   rm -rf conftest*
19121   glibcpp_cv_func_powl_use=no
19122 fi
19123 rm -f conftest*
19124       ac_ext=c
19125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19126 ac_cpp='$CPP $CPPFLAGS'
19127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19129 cross_compiling=$ac_cv_prog_cc_cross
19130
19131     
19132 fi
19133
19134   fi
19135   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19136
19137   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19138     for ac_func in powl
19139 do
19140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19141 echo "configure:19142: checking for $ac_func" >&5
19142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19143   echo $ac_n "(cached) $ac_c" 1>&6
19144 else
19145   cat > conftest.$ac_ext <<EOF
19146 #line 19147 "configure"
19147 #include "confdefs.h"
19148 /* System header to define __stub macros and hopefully few prototypes,
19149     which can conflict with char $ac_func(); below.  */
19150 #include <assert.h>
19151 /* Override any gcc2 internal prototype to avoid an error.  */
19152 /* We use char because int might match the return type of a gcc2
19153     builtin and then its argument prototype would still apply.  */
19154 char $ac_func();
19155
19156 int main() {
19157
19158 /* The GNU C library defines this for functions which it implements
19159     to always fail with ENOSYS.  Some functions are actually named
19160     something starting with __ and the normal name is an alias.  */
19161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19162 choke me
19163 #else
19164 $ac_func();
19165 #endif
19166
19167 ; return 0; }
19168 EOF
19169 if { (eval echo configure:19170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19170   rm -rf conftest*
19171   eval "ac_cv_func_$ac_func=yes"
19172 else
19173   echo "configure: failed program was:" >&5
19174   cat conftest.$ac_ext >&5
19175   rm -rf conftest*
19176   eval "ac_cv_func_$ac_func=no"
19177 fi
19178 rm -f conftest*
19179 fi
19180
19181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19182   echo "$ac_t""yes" 1>&6
19183     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19184   cat >> confdefs.h <<EOF
19185 #define $ac_tr_func 1
19186 EOF
19187  
19188 else
19189   echo "$ac_t""no" 1>&6
19190 fi
19191 done
19192
19193   else
19194     
19195   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19196 echo "configure:19197: checking for _powl declaration" >&5
19197   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19198     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19199   echo $ac_n "(cached) $ac_c" 1>&6
19200 else
19201   
19202       
19203       ac_ext=C
19204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19205 ac_cpp='$CXXCPP $CPPFLAGS'
19206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19208 cross_compiling=$ac_cv_prog_cxx_cross
19209
19210       cat > conftest.$ac_ext <<EOF
19211 #line 19212 "configure"
19212 #include "confdefs.h"
19213 #include <math.h>
19214 int main() {
19215  _powl(0, 0);
19216 ; return 0; }
19217 EOF
19218 if { (eval echo configure:19219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19219   rm -rf conftest*
19220   glibcpp_cv_func__powl_use=yes
19221 else
19222   echo "configure: failed program was:" >&5
19223   cat conftest.$ac_ext >&5
19224   rm -rf conftest*
19225   glibcpp_cv_func__powl_use=no
19226 fi
19227 rm -f conftest*
19228       ac_ext=c
19229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19230 ac_cpp='$CPP $CPPFLAGS'
19231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19233 cross_compiling=$ac_cv_prog_cc_cross
19234
19235     
19236 fi
19237
19238   fi
19239   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19240
19241     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19242       for ac_func in _powl
19243 do
19244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19245 echo "configure:19246: checking for $ac_func" >&5
19246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19247   echo $ac_n "(cached) $ac_c" 1>&6
19248 else
19249   cat > conftest.$ac_ext <<EOF
19250 #line 19251 "configure"
19251 #include "confdefs.h"
19252 /* System header to define __stub macros and hopefully few prototypes,
19253     which can conflict with char $ac_func(); below.  */
19254 #include <assert.h>
19255 /* Override any gcc2 internal prototype to avoid an error.  */
19256 /* We use char because int might match the return type of a gcc2
19257     builtin and then its argument prototype would still apply.  */
19258 char $ac_func();
19259
19260 int main() {
19261
19262 /* The GNU C library defines this for functions which it implements
19263     to always fail with ENOSYS.  Some functions are actually named
19264     something starting with __ and the normal name is an alias.  */
19265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19266 choke me
19267 #else
19268 $ac_func();
19269 #endif
19270
19271 ; return 0; }
19272 EOF
19273 if { (eval echo configure:19274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19274   rm -rf conftest*
19275   eval "ac_cv_func_$ac_func=yes"
19276 else
19277   echo "configure: failed program was:" >&5
19278   cat conftest.$ac_ext >&5
19279   rm -rf conftest*
19280   eval "ac_cv_func_$ac_func=no"
19281 fi
19282 rm -f conftest*
19283 fi
19284
19285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19286   echo "$ac_t""yes" 1>&6
19287     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19288   cat >> confdefs.h <<EOF
19289 #define $ac_tr_func 1
19290 EOF
19291  
19292 else
19293   echo "$ac_t""no" 1>&6
19294 fi
19295 done
19296
19297     fi
19298   fi
19299
19300   
19301   
19302   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19303 echo "configure:19304: checking for sqrtl declaration" >&5
19304   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19305     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19306   echo $ac_n "(cached) $ac_c" 1>&6
19307 else
19308   
19309       
19310       ac_ext=C
19311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19312 ac_cpp='$CXXCPP $CPPFLAGS'
19313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19315 cross_compiling=$ac_cv_prog_cxx_cross
19316
19317       cat > conftest.$ac_ext <<EOF
19318 #line 19319 "configure"
19319 #include "confdefs.h"
19320 #include <math.h>
19321                       #ifdef HAVE_IEEEFP_H
19322                       #include <ieeefp.h>
19323                       #endif
19324                      
19325 int main() {
19326  sqrtl(0);
19327 ; return 0; }
19328 EOF
19329 if { (eval echo configure:19330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19330   rm -rf conftest*
19331   glibcpp_cv_func_sqrtl_use=yes
19332 else
19333   echo "configure: failed program was:" >&5
19334   cat conftest.$ac_ext >&5
19335   rm -rf conftest*
19336   glibcpp_cv_func_sqrtl_use=no
19337 fi
19338 rm -f conftest*
19339       ac_ext=c
19340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19341 ac_cpp='$CPP $CPPFLAGS'
19342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19344 cross_compiling=$ac_cv_prog_cc_cross
19345
19346     
19347 fi
19348
19349   fi
19350   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19351
19352   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19353     for ac_func in sqrtl
19354 do
19355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19356 echo "configure:19357: checking for $ac_func" >&5
19357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19358   echo $ac_n "(cached) $ac_c" 1>&6
19359 else
19360   cat > conftest.$ac_ext <<EOF
19361 #line 19362 "configure"
19362 #include "confdefs.h"
19363 /* System header to define __stub macros and hopefully few prototypes,
19364     which can conflict with char $ac_func(); below.  */
19365 #include <assert.h>
19366 /* Override any gcc2 internal prototype to avoid an error.  */
19367 /* We use char because int might match the return type of a gcc2
19368     builtin and then its argument prototype would still apply.  */
19369 char $ac_func();
19370
19371 int main() {
19372
19373 /* The GNU C library defines this for functions which it implements
19374     to always fail with ENOSYS.  Some functions are actually named
19375     something starting with __ and the normal name is an alias.  */
19376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19377 choke me
19378 #else
19379 $ac_func();
19380 #endif
19381
19382 ; return 0; }
19383 EOF
19384 if { (eval echo configure:19385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19385   rm -rf conftest*
19386   eval "ac_cv_func_$ac_func=yes"
19387 else
19388   echo "configure: failed program was:" >&5
19389   cat conftest.$ac_ext >&5
19390   rm -rf conftest*
19391   eval "ac_cv_func_$ac_func=no"
19392 fi
19393 rm -f conftest*
19394 fi
19395
19396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19397   echo "$ac_t""yes" 1>&6
19398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19399   cat >> confdefs.h <<EOF
19400 #define $ac_tr_func 1
19401 EOF
19402  
19403 else
19404   echo "$ac_t""no" 1>&6
19405 fi
19406 done
19407
19408   else
19409     
19410   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19411 echo "configure:19412: checking for _sqrtl declaration" >&5
19412   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19413     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19414   echo $ac_n "(cached) $ac_c" 1>&6
19415 else
19416   
19417       
19418       ac_ext=C
19419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19420 ac_cpp='$CXXCPP $CPPFLAGS'
19421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19423 cross_compiling=$ac_cv_prog_cxx_cross
19424
19425       cat > conftest.$ac_ext <<EOF
19426 #line 19427 "configure"
19427 #include "confdefs.h"
19428 #include <math.h>
19429                       #ifdef HAVE_IEEEFP_H
19430                       #include <ieeefp.h>
19431                       #endif
19432                      
19433 int main() {
19434  _sqrtl(0);
19435 ; return 0; }
19436 EOF
19437 if { (eval echo configure:19438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19438   rm -rf conftest*
19439   glibcpp_cv_func__sqrtl_use=yes
19440 else
19441   echo "configure: failed program was:" >&5
19442   cat conftest.$ac_ext >&5
19443   rm -rf conftest*
19444   glibcpp_cv_func__sqrtl_use=no
19445 fi
19446 rm -f conftest*
19447       ac_ext=c
19448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19449 ac_cpp='$CPP $CPPFLAGS'
19450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19452 cross_compiling=$ac_cv_prog_cc_cross
19453
19454     
19455 fi
19456
19457   fi
19458   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19459
19460     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19461       for ac_func in _sqrtl
19462 do
19463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19464 echo "configure:19465: checking for $ac_func" >&5
19465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19466   echo $ac_n "(cached) $ac_c" 1>&6
19467 else
19468   cat > conftest.$ac_ext <<EOF
19469 #line 19470 "configure"
19470 #include "confdefs.h"
19471 /* System header to define __stub macros and hopefully few prototypes,
19472     which can conflict with char $ac_func(); below.  */
19473 #include <assert.h>
19474 /* Override any gcc2 internal prototype to avoid an error.  */
19475 /* We use char because int might match the return type of a gcc2
19476     builtin and then its argument prototype would still apply.  */
19477 char $ac_func();
19478
19479 int main() {
19480
19481 /* The GNU C library defines this for functions which it implements
19482     to always fail with ENOSYS.  Some functions are actually named
19483     something starting with __ and the normal name is an alias.  */
19484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19485 choke me
19486 #else
19487 $ac_func();
19488 #endif
19489
19490 ; return 0; }
19491 EOF
19492 if { (eval echo configure:19493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19493   rm -rf conftest*
19494   eval "ac_cv_func_$ac_func=yes"
19495 else
19496   echo "configure: failed program was:" >&5
19497   cat conftest.$ac_ext >&5
19498   rm -rf conftest*
19499   eval "ac_cv_func_$ac_func=no"
19500 fi
19501 rm -f conftest*
19502 fi
19503
19504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19505   echo "$ac_t""yes" 1>&6
19506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19507   cat >> confdefs.h <<EOF
19508 #define $ac_tr_func 1
19509 EOF
19510  
19511 else
19512   echo "$ac_t""no" 1>&6
19513 fi
19514 done
19515
19516     fi
19517   fi
19518
19519   
19520   
19521   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19522 echo "configure:19523: checking for sincosl declaration" >&5
19523   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19524     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19525   echo $ac_n "(cached) $ac_c" 1>&6
19526 else
19527   
19528       
19529       ac_ext=C
19530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19531 ac_cpp='$CXXCPP $CPPFLAGS'
19532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19534 cross_compiling=$ac_cv_prog_cxx_cross
19535
19536       cat > conftest.$ac_ext <<EOF
19537 #line 19538 "configure"
19538 #include "confdefs.h"
19539 #include <math.h>
19540 int main() {
19541  sincosl(0, 0, 0);
19542 ; return 0; }
19543 EOF
19544 if { (eval echo configure:19545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19545   rm -rf conftest*
19546   glibcpp_cv_func_sincosl_use=yes
19547 else
19548   echo "configure: failed program was:" >&5
19549   cat conftest.$ac_ext >&5
19550   rm -rf conftest*
19551   glibcpp_cv_func_sincosl_use=no
19552 fi
19553 rm -f conftest*
19554       ac_ext=c
19555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19556 ac_cpp='$CPP $CPPFLAGS'
19557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19559 cross_compiling=$ac_cv_prog_cc_cross
19560
19561     
19562 fi
19563
19564   fi
19565   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19566
19567   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19568     for ac_func in sincosl
19569 do
19570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19571 echo "configure:19572: checking for $ac_func" >&5
19572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19573   echo $ac_n "(cached) $ac_c" 1>&6
19574 else
19575   cat > conftest.$ac_ext <<EOF
19576 #line 19577 "configure"
19577 #include "confdefs.h"
19578 /* System header to define __stub macros and hopefully few prototypes,
19579     which can conflict with char $ac_func(); below.  */
19580 #include <assert.h>
19581 /* Override any gcc2 internal prototype to avoid an error.  */
19582 /* We use char because int might match the return type of a gcc2
19583     builtin and then its argument prototype would still apply.  */
19584 char $ac_func();
19585
19586 int main() {
19587
19588 /* The GNU C library defines this for functions which it implements
19589     to always fail with ENOSYS.  Some functions are actually named
19590     something starting with __ and the normal name is an alias.  */
19591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19592 choke me
19593 #else
19594 $ac_func();
19595 #endif
19596
19597 ; return 0; }
19598 EOF
19599 if { (eval echo configure:19600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19600   rm -rf conftest*
19601   eval "ac_cv_func_$ac_func=yes"
19602 else
19603   echo "configure: failed program was:" >&5
19604   cat conftest.$ac_ext >&5
19605   rm -rf conftest*
19606   eval "ac_cv_func_$ac_func=no"
19607 fi
19608 rm -f conftest*
19609 fi
19610
19611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19612   echo "$ac_t""yes" 1>&6
19613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19614   cat >> confdefs.h <<EOF
19615 #define $ac_tr_func 1
19616 EOF
19617  
19618 else
19619   echo "$ac_t""no" 1>&6
19620 fi
19621 done
19622
19623   else
19624     
19625   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19626 echo "configure:19627: checking for _sincosl declaration" >&5
19627   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19628     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19629   echo $ac_n "(cached) $ac_c" 1>&6
19630 else
19631   
19632       
19633       ac_ext=C
19634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19635 ac_cpp='$CXXCPP $CPPFLAGS'
19636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19638 cross_compiling=$ac_cv_prog_cxx_cross
19639
19640       cat > conftest.$ac_ext <<EOF
19641 #line 19642 "configure"
19642 #include "confdefs.h"
19643 #include <math.h>
19644 int main() {
19645  _sincosl(0, 0, 0);
19646 ; return 0; }
19647 EOF
19648 if { (eval echo configure:19649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19649   rm -rf conftest*
19650   glibcpp_cv_func__sincosl_use=yes
19651 else
19652   echo "configure: failed program was:" >&5
19653   cat conftest.$ac_ext >&5
19654   rm -rf conftest*
19655   glibcpp_cv_func__sincosl_use=no
19656 fi
19657 rm -f conftest*
19658       ac_ext=c
19659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19663 cross_compiling=$ac_cv_prog_cc_cross
19664
19665     
19666 fi
19667
19668   fi
19669   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19670
19671     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19672       for ac_func in _sincosl
19673 do
19674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19675 echo "configure:19676: checking for $ac_func" >&5
19676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19677   echo $ac_n "(cached) $ac_c" 1>&6
19678 else
19679   cat > conftest.$ac_ext <<EOF
19680 #line 19681 "configure"
19681 #include "confdefs.h"
19682 /* System header to define __stub macros and hopefully few prototypes,
19683     which can conflict with char $ac_func(); below.  */
19684 #include <assert.h>
19685 /* Override any gcc2 internal prototype to avoid an error.  */
19686 /* We use char because int might match the return type of a gcc2
19687     builtin and then its argument prototype would still apply.  */
19688 char $ac_func();
19689
19690 int main() {
19691
19692 /* The GNU C library defines this for functions which it implements
19693     to always fail with ENOSYS.  Some functions are actually named
19694     something starting with __ and the normal name is an alias.  */
19695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19696 choke me
19697 #else
19698 $ac_func();
19699 #endif
19700
19701 ; return 0; }
19702 EOF
19703 if { (eval echo configure:19704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19704   rm -rf conftest*
19705   eval "ac_cv_func_$ac_func=yes"
19706 else
19707   echo "configure: failed program was:" >&5
19708   cat conftest.$ac_ext >&5
19709   rm -rf conftest*
19710   eval "ac_cv_func_$ac_func=no"
19711 fi
19712 rm -f conftest*
19713 fi
19714
19715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19716   echo "$ac_t""yes" 1>&6
19717     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19718   cat >> confdefs.h <<EOF
19719 #define $ac_tr_func 1
19720 EOF
19721  
19722 else
19723   echo "$ac_t""no" 1>&6
19724 fi
19725 done
19726
19727     fi
19728   fi
19729
19730   
19731   
19732   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19733 echo "configure:19734: checking for finitel declaration" >&5
19734   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19735     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19736   echo $ac_n "(cached) $ac_c" 1>&6
19737 else
19738   
19739       
19740       ac_ext=C
19741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19745 cross_compiling=$ac_cv_prog_cxx_cross
19746
19747       cat > conftest.$ac_ext <<EOF
19748 #line 19749 "configure"
19749 #include "confdefs.h"
19750 #include <math.h>
19751                       #ifdef HAVE_IEEEFP_H
19752                       #include <ieeefp.h>
19753                       #endif
19754                      
19755 int main() {
19756  finitel(0);
19757 ; return 0; }
19758 EOF
19759 if { (eval echo configure:19760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19760   rm -rf conftest*
19761   glibcpp_cv_func_finitel_use=yes
19762 else
19763   echo "configure: failed program was:" >&5
19764   cat conftest.$ac_ext >&5
19765   rm -rf conftest*
19766   glibcpp_cv_func_finitel_use=no
19767 fi
19768 rm -f conftest*
19769       ac_ext=c
19770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19771 ac_cpp='$CPP $CPPFLAGS'
19772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19774 cross_compiling=$ac_cv_prog_cc_cross
19775
19776     
19777 fi
19778
19779   fi
19780   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19781
19782   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19783     for ac_func in finitel
19784 do
19785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19786 echo "configure:19787: checking for $ac_func" >&5
19787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19788   echo $ac_n "(cached) $ac_c" 1>&6
19789 else
19790   cat > conftest.$ac_ext <<EOF
19791 #line 19792 "configure"
19792 #include "confdefs.h"
19793 /* System header to define __stub macros and hopefully few prototypes,
19794     which can conflict with char $ac_func(); below.  */
19795 #include <assert.h>
19796 /* Override any gcc2 internal prototype to avoid an error.  */
19797 /* We use char because int might match the return type of a gcc2
19798     builtin and then its argument prototype would still apply.  */
19799 char $ac_func();
19800
19801 int main() {
19802
19803 /* The GNU C library defines this for functions which it implements
19804     to always fail with ENOSYS.  Some functions are actually named
19805     something starting with __ and the normal name is an alias.  */
19806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19807 choke me
19808 #else
19809 $ac_func();
19810 #endif
19811
19812 ; return 0; }
19813 EOF
19814 if { (eval echo configure:19815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19815   rm -rf conftest*
19816   eval "ac_cv_func_$ac_func=yes"
19817 else
19818   echo "configure: failed program was:" >&5
19819   cat conftest.$ac_ext >&5
19820   rm -rf conftest*
19821   eval "ac_cv_func_$ac_func=no"
19822 fi
19823 rm -f conftest*
19824 fi
19825
19826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19827   echo "$ac_t""yes" 1>&6
19828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19829   cat >> confdefs.h <<EOF
19830 #define $ac_tr_func 1
19831 EOF
19832  
19833 else
19834   echo "$ac_t""no" 1>&6
19835 fi
19836 done
19837
19838   else
19839     
19840   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19841 echo "configure:19842: checking for _finitel declaration" >&5
19842   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19843     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19844   echo $ac_n "(cached) $ac_c" 1>&6
19845 else
19846   
19847       
19848       ac_ext=C
19849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19850 ac_cpp='$CXXCPP $CPPFLAGS'
19851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19853 cross_compiling=$ac_cv_prog_cxx_cross
19854
19855       cat > conftest.$ac_ext <<EOF
19856 #line 19857 "configure"
19857 #include "confdefs.h"
19858 #include <math.h>
19859                       #ifdef HAVE_IEEEFP_H
19860                       #include <ieeefp.h>
19861                       #endif
19862                      
19863 int main() {
19864  _finitel(0);
19865 ; return 0; }
19866 EOF
19867 if { (eval echo configure:19868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19868   rm -rf conftest*
19869   glibcpp_cv_func__finitel_use=yes
19870 else
19871   echo "configure: failed program was:" >&5
19872   cat conftest.$ac_ext >&5
19873   rm -rf conftest*
19874   glibcpp_cv_func__finitel_use=no
19875 fi
19876 rm -f conftest*
19877       ac_ext=c
19878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19882 cross_compiling=$ac_cv_prog_cc_cross
19883
19884     
19885 fi
19886
19887   fi
19888   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19889
19890     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19891       for ac_func in _finitel
19892 do
19893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19894 echo "configure:19895: checking for $ac_func" >&5
19895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19896   echo $ac_n "(cached) $ac_c" 1>&6
19897 else
19898   cat > conftest.$ac_ext <<EOF
19899 #line 19900 "configure"
19900 #include "confdefs.h"
19901 /* System header to define __stub macros and hopefully few prototypes,
19902     which can conflict with char $ac_func(); below.  */
19903 #include <assert.h>
19904 /* Override any gcc2 internal prototype to avoid an error.  */
19905 /* We use char because int might match the return type of a gcc2
19906     builtin and then its argument prototype would still apply.  */
19907 char $ac_func();
19908
19909 int main() {
19910
19911 /* The GNU C library defines this for functions which it implements
19912     to always fail with ENOSYS.  Some functions are actually named
19913     something starting with __ and the normal name is an alias.  */
19914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19915 choke me
19916 #else
19917 $ac_func();
19918 #endif
19919
19920 ; return 0; }
19921 EOF
19922 if { (eval echo configure:19923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19923   rm -rf conftest*
19924   eval "ac_cv_func_$ac_func=yes"
19925 else
19926   echo "configure: failed program was:" >&5
19927   cat conftest.$ac_ext >&5
19928   rm -rf conftest*
19929   eval "ac_cv_func_$ac_func=no"
19930 fi
19931 rm -f conftest*
19932 fi
19933
19934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19935   echo "$ac_t""yes" 1>&6
19936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19937   cat >> confdefs.h <<EOF
19938 #define $ac_tr_func 1
19939 EOF
19940  
19941 else
19942   echo "$ac_t""no" 1>&6
19943 fi
19944 done
19945
19946     fi
19947   fi
19948
19949
19950         
19951     
19952   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19953 echo "configure:19954: checking for _float trig functions" >&5
19954   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19955   echo $ac_n "(cached) $ac_c" 1>&6
19956 else
19957   
19958     
19959     ac_ext=C
19960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19961 ac_cpp='$CXXCPP $CPPFLAGS'
19962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19964 cross_compiling=$ac_cv_prog_cxx_cross
19965
19966     cat > conftest.$ac_ext <<EOF
19967 #line 19968 "configure"
19968 #include "confdefs.h"
19969 #include <math.h>
19970 int main() {
19971  `for x in _acosf _asinf _atanf \
19972                                           _cosf _sinf _tanf \
19973                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19974 ; return 0; }
19975 EOF
19976 if { (eval echo configure:19977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19977   rm -rf conftest*
19978   glibcpp_cv_func__float_trig_use=yes
19979 else
19980   echo "configure: failed program was:" >&5
19981   cat conftest.$ac_ext >&5
19982   rm -rf conftest*
19983   glibcpp_cv_func__float_trig_use=no
19984 fi
19985 rm -f conftest*
19986     ac_ext=c
19987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19988 ac_cpp='$CPP $CPPFLAGS'
19989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19991 cross_compiling=$ac_cv_prog_cc_cross
19992
19993 fi
19994
19995   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19996   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19997     for ac_func in _acosf _asinf _atanf \
19998                                           _cosf _sinf _tanf \
19999                                           _coshf _sinhf _tanhf
20000 do
20001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20002 echo "configure:20003: checking for $ac_func" >&5
20003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20004   echo $ac_n "(cached) $ac_c" 1>&6
20005 else
20006   cat > conftest.$ac_ext <<EOF
20007 #line 20008 "configure"
20008 #include "confdefs.h"
20009 /* System header to define __stub macros and hopefully few prototypes,
20010     which can conflict with char $ac_func(); below.  */
20011 #include <assert.h>
20012 /* Override any gcc2 internal prototype to avoid an error.  */
20013 /* We use char because int might match the return type of a gcc2
20014     builtin and then its argument prototype would still apply.  */
20015 char $ac_func();
20016
20017 int main() {
20018
20019 /* The GNU C library defines this for functions which it implements
20020     to always fail with ENOSYS.  Some functions are actually named
20021     something starting with __ and the normal name is an alias.  */
20022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20023 choke me
20024 #else
20025 $ac_func();
20026 #endif
20027
20028 ; return 0; }
20029 EOF
20030 if { (eval echo configure:20031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20031   rm -rf conftest*
20032   eval "ac_cv_func_$ac_func=yes"
20033 else
20034   echo "configure: failed program was:" >&5
20035   cat conftest.$ac_ext >&5
20036   rm -rf conftest*
20037   eval "ac_cv_func_$ac_func=no"
20038 fi
20039 rm -f conftest*
20040 fi
20041
20042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20043   echo "$ac_t""yes" 1>&6
20044     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20045   cat >> confdefs.h <<EOF
20046 #define $ac_tr_func 1
20047 EOF
20048  
20049 else
20050   echo "$ac_t""no" 1>&6
20051 fi
20052 done
20053
20054   fi
20055
20056   
20057   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20058 echo "configure:20059: checking for _float round functions" >&5
20059   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20060   echo $ac_n "(cached) $ac_c" 1>&6
20061 else
20062   
20063     
20064     ac_ext=C
20065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20066 ac_cpp='$CXXCPP $CPPFLAGS'
20067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20069 cross_compiling=$ac_cv_prog_cxx_cross
20070
20071     cat > conftest.$ac_ext <<EOF
20072 #line 20073 "configure"
20073 #include "confdefs.h"
20074 #include <math.h>
20075 int main() {
20076  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20077 ; return 0; }
20078 EOF
20079 if { (eval echo configure:20080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20080   rm -rf conftest*
20081   glibcpp_cv_func__float_round_use=yes
20082 else
20083   echo "configure: failed program was:" >&5
20084   cat conftest.$ac_ext >&5
20085   rm -rf conftest*
20086   glibcpp_cv_func__float_round_use=no
20087 fi
20088 rm -f conftest*
20089     ac_ext=c
20090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20091 ac_cpp='$CPP $CPPFLAGS'
20092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20094 cross_compiling=$ac_cv_prog_cc_cross
20095
20096 fi
20097
20098   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20099   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20100     for ac_func in _ceilf _floorf
20101 do
20102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20103 echo "configure:20104: checking for $ac_func" >&5
20104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20105   echo $ac_n "(cached) $ac_c" 1>&6
20106 else
20107   cat > conftest.$ac_ext <<EOF
20108 #line 20109 "configure"
20109 #include "confdefs.h"
20110 /* System header to define __stub macros and hopefully few prototypes,
20111     which can conflict with char $ac_func(); below.  */
20112 #include <assert.h>
20113 /* Override any gcc2 internal prototype to avoid an error.  */
20114 /* We use char because int might match the return type of a gcc2
20115     builtin and then its argument prototype would still apply.  */
20116 char $ac_func();
20117
20118 int main() {
20119
20120 /* The GNU C library defines this for functions which it implements
20121     to always fail with ENOSYS.  Some functions are actually named
20122     something starting with __ and the normal name is an alias.  */
20123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20124 choke me
20125 #else
20126 $ac_func();
20127 #endif
20128
20129 ; return 0; }
20130 EOF
20131 if { (eval echo configure:20132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20132   rm -rf conftest*
20133   eval "ac_cv_func_$ac_func=yes"
20134 else
20135   echo "configure: failed program was:" >&5
20136   cat conftest.$ac_ext >&5
20137   rm -rf conftest*
20138   eval "ac_cv_func_$ac_func=no"
20139 fi
20140 rm -f conftest*
20141 fi
20142
20143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20144   echo "$ac_t""yes" 1>&6
20145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20146   cat >> confdefs.h <<EOF
20147 #define $ac_tr_func 1
20148 EOF
20149  
20150 else
20151   echo "$ac_t""no" 1>&6
20152 fi
20153 done
20154
20155   fi
20156
20157
20158     
20159   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20160 echo "configure:20161: checking for _long double trig functions" >&5
20161   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20162   echo $ac_n "(cached) $ac_c" 1>&6
20163 else
20164   
20165     
20166     ac_ext=C
20167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20168 ac_cpp='$CXXCPP $CPPFLAGS'
20169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20171 cross_compiling=$ac_cv_prog_cxx_cross
20172
20173     cat > conftest.$ac_ext <<EOF
20174 #line 20175 "configure"
20175 #include "confdefs.h"
20176 #include <math.h>
20177 int main() {
20178  `for x in _acosl _asinl _atanl \
20179                                           _cosl _sinl _tanl \
20180                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20181 ; return 0; }
20182 EOF
20183 if { (eval echo configure:20184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20184   rm -rf conftest*
20185   glibcpp_cv_func__long_double_trig_use=yes
20186 else
20187   echo "configure: failed program was:" >&5
20188   cat conftest.$ac_ext >&5
20189   rm -rf conftest*
20190   glibcpp_cv_func__long_double_trig_use=no
20191 fi
20192 rm -f conftest*
20193     ac_ext=c
20194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20195 ac_cpp='$CPP $CPPFLAGS'
20196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20198 cross_compiling=$ac_cv_prog_cc_cross
20199
20200 fi
20201
20202   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20203   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20204     for ac_func in _acosl _asinl _atanl \
20205                                           _cosl _sinl _tanl \
20206                                           _coshl _sinhl _tanhl
20207 do
20208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20209 echo "configure:20210: checking for $ac_func" >&5
20210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20211   echo $ac_n "(cached) $ac_c" 1>&6
20212 else
20213   cat > conftest.$ac_ext <<EOF
20214 #line 20215 "configure"
20215 #include "confdefs.h"
20216 /* System header to define __stub macros and hopefully few prototypes,
20217     which can conflict with char $ac_func(); below.  */
20218 #include <assert.h>
20219 /* Override any gcc2 internal prototype to avoid an error.  */
20220 /* We use char because int might match the return type of a gcc2
20221     builtin and then its argument prototype would still apply.  */
20222 char $ac_func();
20223
20224 int main() {
20225
20226 /* The GNU C library defines this for functions which it implements
20227     to always fail with ENOSYS.  Some functions are actually named
20228     something starting with __ and the normal name is an alias.  */
20229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20230 choke me
20231 #else
20232 $ac_func();
20233 #endif
20234
20235 ; return 0; }
20236 EOF
20237 if { (eval echo configure:20238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20238   rm -rf conftest*
20239   eval "ac_cv_func_$ac_func=yes"
20240 else
20241   echo "configure: failed program was:" >&5
20242   cat conftest.$ac_ext >&5
20243   rm -rf conftest*
20244   eval "ac_cv_func_$ac_func=no"
20245 fi
20246 rm -f conftest*
20247 fi
20248
20249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20250   echo "$ac_t""yes" 1>&6
20251     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20252   cat >> confdefs.h <<EOF
20253 #define $ac_tr_func 1
20254 EOF
20255  
20256 else
20257   echo "$ac_t""no" 1>&6
20258 fi
20259 done
20260
20261   fi
20262
20263   
20264   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20265 echo "configure:20266: checking for _long double round functions" >&5
20266   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20267   echo $ac_n "(cached) $ac_c" 1>&6
20268 else
20269   
20270     
20271     ac_ext=C
20272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20273 ac_cpp='$CXXCPP $CPPFLAGS'
20274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20276 cross_compiling=$ac_cv_prog_cxx_cross
20277
20278     cat > conftest.$ac_ext <<EOF
20279 #line 20280 "configure"
20280 #include "confdefs.h"
20281 #include <math.h>
20282 int main() {
20283  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20284 ; return 0; }
20285 EOF
20286 if { (eval echo configure:20287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20287   rm -rf conftest*
20288   glibcpp_cv_func__long_double_round_use=yes
20289 else
20290   echo "configure: failed program was:" >&5
20291   cat conftest.$ac_ext >&5
20292   rm -rf conftest*
20293   glibcpp_cv_func__long_double_round_use=no
20294 fi
20295 rm -f conftest*
20296     ac_ext=c
20297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20298 ac_cpp='$CPP $CPPFLAGS'
20299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20301 cross_compiling=$ac_cv_prog_cc_cross
20302
20303 fi
20304
20305   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20306   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20307     for ac_func in _ceill _floorl
20308 do
20309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20310 echo "configure:20311: checking for $ac_func" >&5
20311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20312   echo $ac_n "(cached) $ac_c" 1>&6
20313 else
20314   cat > conftest.$ac_ext <<EOF
20315 #line 20316 "configure"
20316 #include "confdefs.h"
20317 /* System header to define __stub macros and hopefully few prototypes,
20318     which can conflict with char $ac_func(); below.  */
20319 #include <assert.h>
20320 /* Override any gcc2 internal prototype to avoid an error.  */
20321 /* We use char because int might match the return type of a gcc2
20322     builtin and then its argument prototype would still apply.  */
20323 char $ac_func();
20324
20325 int main() {
20326
20327 /* The GNU C library defines this for functions which it implements
20328     to always fail with ENOSYS.  Some functions are actually named
20329     something starting with __ and the normal name is an alias.  */
20330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20331 choke me
20332 #else
20333 $ac_func();
20334 #endif
20335
20336 ; return 0; }
20337 EOF
20338 if { (eval echo configure:20339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20339   rm -rf conftest*
20340   eval "ac_cv_func_$ac_func=yes"
20341 else
20342   echo "configure: failed program was:" >&5
20343   cat conftest.$ac_ext >&5
20344   rm -rf conftest*
20345   eval "ac_cv_func_$ac_func=no"
20346 fi
20347 rm -f conftest*
20348 fi
20349
20350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20351   echo "$ac_t""yes" 1>&6
20352     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20353   cat >> confdefs.h <<EOF
20354 #define $ac_tr_func 1
20355 EOF
20356  
20357 else
20358   echo "$ac_t""no" 1>&6
20359 fi
20360 done
20361
20362   fi
20363
20364
20365   LIBS="$ac_save_LIBS"
20366   CXXFLAGS="$ac_save_CXXFLAGS"
20367
20368   
20369       
20370   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20371 echo "configure:20372: checking for __builtin_abs declaration" >&5
20372   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20373     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20374   echo $ac_n "(cached) $ac_c" 1>&6
20375 else
20376   
20377       
20378       ac_ext=C
20379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20380 ac_cpp='$CXXCPP $CPPFLAGS'
20381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20383 cross_compiling=$ac_cv_prog_cxx_cross
20384
20385       cat > conftest.$ac_ext <<EOF
20386 #line 20387 "configure"
20387 #include "confdefs.h"
20388 #include <math.h>
20389 int main() {
20390  __builtin_abs(0);
20391 ; return 0; }
20392 EOF
20393 if { (eval echo configure:20394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20394   rm -rf conftest*
20395   glibcpp_cv_func___builtin_abs_use=yes
20396 else
20397   echo "configure: failed program was:" >&5
20398   cat conftest.$ac_ext >&5
20399   rm -rf conftest*
20400   glibcpp_cv_func___builtin_abs_use=no
20401 fi
20402 rm -f conftest*
20403       ac_ext=c
20404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20408 cross_compiling=$ac_cv_prog_cc_cross
20409
20410     
20411 fi
20412
20413   fi
20414   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20415   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20416     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20417 echo "configure:20418: checking for __builtin_abs linkage" >&5
20418     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20419       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20420   echo $ac_n "(cached) $ac_c" 1>&6
20421 else
20422   
20423         cat > conftest.$ac_ext <<EOF
20424 #line 20425 "configure"
20425 #include "confdefs.h"
20426 #include <math.h>
20427 int main() {
20428  __builtin_abs(0);
20429 ; return 0; }
20430 EOF
20431 if { (eval echo configure:20432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20432   rm -rf conftest*
20433   glibcpp_cv_func___builtin_abs_link=yes
20434 else
20435   echo "configure: failed program was:" >&5
20436   cat conftest.$ac_ext >&5
20437   rm -rf conftest*
20438   glibcpp_cv_func___builtin_abs_link=no
20439 fi
20440 rm -f conftest*
20441       
20442 fi
20443
20444     fi
20445     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20446     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20447       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20448       cat >> confdefs.h <<EOF
20449 #define ${ac_tr_func} 1
20450 EOF
20451
20452     fi
20453   fi
20454
20455   
20456   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20457 echo "configure:20458: checking for __builtin_fabsf declaration" >&5
20458   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20459     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20460   echo $ac_n "(cached) $ac_c" 1>&6
20461 else
20462   
20463       
20464       ac_ext=C
20465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20466 ac_cpp='$CXXCPP $CPPFLAGS'
20467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20469 cross_compiling=$ac_cv_prog_cxx_cross
20470
20471       cat > conftest.$ac_ext <<EOF
20472 #line 20473 "configure"
20473 #include "confdefs.h"
20474 #include <math.h>
20475 int main() {
20476  __builtin_fabsf(0);
20477 ; return 0; }
20478 EOF
20479 if { (eval echo configure:20480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20480   rm -rf conftest*
20481   glibcpp_cv_func___builtin_fabsf_use=yes
20482 else
20483   echo "configure: failed program was:" >&5
20484   cat conftest.$ac_ext >&5
20485   rm -rf conftest*
20486   glibcpp_cv_func___builtin_fabsf_use=no
20487 fi
20488 rm -f conftest*
20489       ac_ext=c
20490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20494 cross_compiling=$ac_cv_prog_cc_cross
20495
20496     
20497 fi
20498
20499   fi
20500   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20501   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20502     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20503 echo "configure:20504: checking for __builtin_fabsf linkage" >&5
20504     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20505       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20506   echo $ac_n "(cached) $ac_c" 1>&6
20507 else
20508   
20509         cat > conftest.$ac_ext <<EOF
20510 #line 20511 "configure"
20511 #include "confdefs.h"
20512 #include <math.h>
20513 int main() {
20514  __builtin_fabsf(0);
20515 ; return 0; }
20516 EOF
20517 if { (eval echo configure:20518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20518   rm -rf conftest*
20519   glibcpp_cv_func___builtin_fabsf_link=yes
20520 else
20521   echo "configure: failed program was:" >&5
20522   cat conftest.$ac_ext >&5
20523   rm -rf conftest*
20524   glibcpp_cv_func___builtin_fabsf_link=no
20525 fi
20526 rm -f conftest*
20527       
20528 fi
20529
20530     fi
20531     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20532     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20533       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20534       cat >> confdefs.h <<EOF
20535 #define ${ac_tr_func} 1
20536 EOF
20537
20538     fi
20539   fi
20540
20541   
20542   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20543 echo "configure:20544: checking for __builtin_fabs declaration" >&5
20544   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20545     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20546   echo $ac_n "(cached) $ac_c" 1>&6
20547 else
20548   
20549       
20550       ac_ext=C
20551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20552 ac_cpp='$CXXCPP $CPPFLAGS'
20553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20555 cross_compiling=$ac_cv_prog_cxx_cross
20556
20557       cat > conftest.$ac_ext <<EOF
20558 #line 20559 "configure"
20559 #include "confdefs.h"
20560 #include <math.h>
20561 int main() {
20562  __builtin_fabs(0);
20563 ; return 0; }
20564 EOF
20565 if { (eval echo configure:20566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20566   rm -rf conftest*
20567   glibcpp_cv_func___builtin_fabs_use=yes
20568 else
20569   echo "configure: failed program was:" >&5
20570   cat conftest.$ac_ext >&5
20571   rm -rf conftest*
20572   glibcpp_cv_func___builtin_fabs_use=no
20573 fi
20574 rm -f conftest*
20575       ac_ext=c
20576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20577 ac_cpp='$CPP $CPPFLAGS'
20578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20580 cross_compiling=$ac_cv_prog_cc_cross
20581
20582     
20583 fi
20584
20585   fi
20586   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20587   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20588     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20589 echo "configure:20590: checking for __builtin_fabs linkage" >&5
20590     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20591       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20592   echo $ac_n "(cached) $ac_c" 1>&6
20593 else
20594   
20595         cat > conftest.$ac_ext <<EOF
20596 #line 20597 "configure"
20597 #include "confdefs.h"
20598 #include <math.h>
20599 int main() {
20600  __builtin_fabs(0);
20601 ; return 0; }
20602 EOF
20603 if { (eval echo configure:20604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20604   rm -rf conftest*
20605   glibcpp_cv_func___builtin_fabs_link=yes
20606 else
20607   echo "configure: failed program was:" >&5
20608   cat conftest.$ac_ext >&5
20609   rm -rf conftest*
20610   glibcpp_cv_func___builtin_fabs_link=no
20611 fi
20612 rm -f conftest*
20613       
20614 fi
20615
20616     fi
20617     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20618     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20619       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20620       cat >> confdefs.h <<EOF
20621 #define ${ac_tr_func} 1
20622 EOF
20623
20624     fi
20625   fi
20626
20627   
20628   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20629 echo "configure:20630: checking for __builtin_fabsl declaration" >&5
20630   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20631     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20632   echo $ac_n "(cached) $ac_c" 1>&6
20633 else
20634   
20635       
20636       ac_ext=C
20637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20641 cross_compiling=$ac_cv_prog_cxx_cross
20642
20643       cat > conftest.$ac_ext <<EOF
20644 #line 20645 "configure"
20645 #include "confdefs.h"
20646 #include <math.h>
20647 int main() {
20648  __builtin_fabsl(0);
20649 ; return 0; }
20650 EOF
20651 if { (eval echo configure:20652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20652   rm -rf conftest*
20653   glibcpp_cv_func___builtin_fabsl_use=yes
20654 else
20655   echo "configure: failed program was:" >&5
20656   cat conftest.$ac_ext >&5
20657   rm -rf conftest*
20658   glibcpp_cv_func___builtin_fabsl_use=no
20659 fi
20660 rm -f conftest*
20661       ac_ext=c
20662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20666 cross_compiling=$ac_cv_prog_cc_cross
20667
20668     
20669 fi
20670
20671   fi
20672   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20673   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20674     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20675 echo "configure:20676: checking for __builtin_fabsl linkage" >&5
20676     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20677       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20678   echo $ac_n "(cached) $ac_c" 1>&6
20679 else
20680   
20681         cat > conftest.$ac_ext <<EOF
20682 #line 20683 "configure"
20683 #include "confdefs.h"
20684 #include <math.h>
20685 int main() {
20686  __builtin_fabsl(0);
20687 ; return 0; }
20688 EOF
20689 if { (eval echo configure:20690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20690   rm -rf conftest*
20691   glibcpp_cv_func___builtin_fabsl_link=yes
20692 else
20693   echo "configure: failed program was:" >&5
20694   cat conftest.$ac_ext >&5
20695   rm -rf conftest*
20696   glibcpp_cv_func___builtin_fabsl_link=no
20697 fi
20698 rm -f conftest*
20699       
20700 fi
20701
20702     fi
20703     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20704     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20705       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20706       cat >> confdefs.h <<EOF
20707 #define ${ac_tr_func} 1
20708 EOF
20709
20710     fi
20711   fi
20712
20713   
20714   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20715 echo "configure:20716: checking for __builtin_labs declaration" >&5
20716   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20717     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20718   echo $ac_n "(cached) $ac_c" 1>&6
20719 else
20720   
20721       
20722       ac_ext=C
20723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20724 ac_cpp='$CXXCPP $CPPFLAGS'
20725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20727 cross_compiling=$ac_cv_prog_cxx_cross
20728
20729       cat > conftest.$ac_ext <<EOF
20730 #line 20731 "configure"
20731 #include "confdefs.h"
20732 #include <math.h>
20733 int main() {
20734  __builtin_labs(0);
20735 ; return 0; }
20736 EOF
20737 if { (eval echo configure:20738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20738   rm -rf conftest*
20739   glibcpp_cv_func___builtin_labs_use=yes
20740 else
20741   echo "configure: failed program was:" >&5
20742   cat conftest.$ac_ext >&5
20743   rm -rf conftest*
20744   glibcpp_cv_func___builtin_labs_use=no
20745 fi
20746 rm -f conftest*
20747       ac_ext=c
20748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20749 ac_cpp='$CPP $CPPFLAGS'
20750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20752 cross_compiling=$ac_cv_prog_cc_cross
20753
20754     
20755 fi
20756
20757   fi
20758   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20759   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20760     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20761 echo "configure:20762: checking for __builtin_labs linkage" >&5
20762     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20763       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20764   echo $ac_n "(cached) $ac_c" 1>&6
20765 else
20766   
20767         cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20770 #include <math.h>
20771 int main() {
20772  __builtin_labs(0);
20773 ; return 0; }
20774 EOF
20775 if { (eval echo configure:20776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20776   rm -rf conftest*
20777   glibcpp_cv_func___builtin_labs_link=yes
20778 else
20779   echo "configure: failed program was:" >&5
20780   cat conftest.$ac_ext >&5
20781   rm -rf conftest*
20782   glibcpp_cv_func___builtin_labs_link=no
20783 fi
20784 rm -f conftest*
20785       
20786 fi
20787
20788     fi
20789     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20790     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20791       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20792       cat >> confdefs.h <<EOF
20793 #define ${ac_tr_func} 1
20794 EOF
20795
20796     fi
20797   fi
20798
20799
20800   
20801   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20802 echo "configure:20803: checking for __builtin_sqrtf declaration" >&5
20803   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20804     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20805   echo $ac_n "(cached) $ac_c" 1>&6
20806 else
20807   
20808       
20809       ac_ext=C
20810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20811 ac_cpp='$CXXCPP $CPPFLAGS'
20812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20814 cross_compiling=$ac_cv_prog_cxx_cross
20815
20816       cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 #include <math.h>
20820 int main() {
20821  __builtin_sqrtf(0);
20822 ; return 0; }
20823 EOF
20824 if { (eval echo configure:20825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20825   rm -rf conftest*
20826   glibcpp_cv_func___builtin_sqrtf_use=yes
20827 else
20828   echo "configure: failed program was:" >&5
20829   cat conftest.$ac_ext >&5
20830   rm -rf conftest*
20831   glibcpp_cv_func___builtin_sqrtf_use=no
20832 fi
20833 rm -f conftest*
20834       ac_ext=c
20835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20836 ac_cpp='$CPP $CPPFLAGS'
20837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20839 cross_compiling=$ac_cv_prog_cc_cross
20840
20841     
20842 fi
20843
20844   fi
20845   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20846   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20847     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20848 echo "configure:20849: checking for __builtin_sqrtf linkage" >&5
20849     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20850       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20851   echo $ac_n "(cached) $ac_c" 1>&6
20852 else
20853   
20854         cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <math.h>
20858 int main() {
20859  __builtin_sqrtf(0);
20860 ; return 0; }
20861 EOF
20862 if { (eval echo configure:20863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20863   rm -rf conftest*
20864   glibcpp_cv_func___builtin_sqrtf_link=yes
20865 else
20866   echo "configure: failed program was:" >&5
20867   cat conftest.$ac_ext >&5
20868   rm -rf conftest*
20869   glibcpp_cv_func___builtin_sqrtf_link=no
20870 fi
20871 rm -f conftest*
20872       
20873 fi
20874
20875     fi
20876     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
20877     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
20878       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20879       cat >> confdefs.h <<EOF
20880 #define ${ac_tr_func} 1
20881 EOF
20882
20883     fi
20884   fi
20885
20886   
20887   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20888 echo "configure:20889: checking for __builtin_sqrt declaration" >&5
20889   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
20890     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20891   echo $ac_n "(cached) $ac_c" 1>&6
20892 else
20893   
20894       
20895       ac_ext=C
20896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20900 cross_compiling=$ac_cv_prog_cxx_cross
20901
20902       cat > conftest.$ac_ext <<EOF
20903 #line 20904 "configure"
20904 #include "confdefs.h"
20905 #include <math.h>
20906 int main() {
20907  __builtin_sqrt(0);
20908 ; return 0; }
20909 EOF
20910 if { (eval echo configure:20911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20911   rm -rf conftest*
20912   glibcpp_cv_func___builtin_sqrt_use=yes
20913 else
20914   echo "configure: failed program was:" >&5
20915   cat conftest.$ac_ext >&5
20916   rm -rf conftest*
20917   glibcpp_cv_func___builtin_sqrt_use=no
20918 fi
20919 rm -f conftest*
20920       ac_ext=c
20921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20922 ac_cpp='$CPP $CPPFLAGS'
20923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20925 cross_compiling=$ac_cv_prog_cc_cross
20926
20927     
20928 fi
20929
20930   fi
20931   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
20932   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
20933     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20934 echo "configure:20935: checking for __builtin_sqrt linkage" >&5
20935     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
20936       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20937   echo $ac_n "(cached) $ac_c" 1>&6
20938 else
20939   
20940         cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20943 #include <math.h>
20944 int main() {
20945  __builtin_sqrt(0);
20946 ; return 0; }
20947 EOF
20948 if { (eval echo configure:20949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20949   rm -rf conftest*
20950   glibcpp_cv_func___builtin_sqrt_link=yes
20951 else
20952   echo "configure: failed program was:" >&5
20953   cat conftest.$ac_ext >&5
20954   rm -rf conftest*
20955   glibcpp_cv_func___builtin_sqrt_link=no
20956 fi
20957 rm -f conftest*
20958       
20959 fi
20960
20961     fi
20962     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
20963     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
20964       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20965       cat >> confdefs.h <<EOF
20966 #define ${ac_tr_func} 1
20967 EOF
20968
20969     fi
20970   fi
20971
20972   
20973   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20974 echo "configure:20975: checking for __builtin_sqrtl declaration" >&5
20975   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
20976     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20977   echo $ac_n "(cached) $ac_c" 1>&6
20978 else
20979   
20980       
20981       ac_ext=C
20982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20986 cross_compiling=$ac_cv_prog_cxx_cross
20987
20988       cat > conftest.$ac_ext <<EOF
20989 #line 20990 "configure"
20990 #include "confdefs.h"
20991 #include <math.h>
20992 int main() {
20993  __builtin_sqrtl(0);
20994 ; return 0; }
20995 EOF
20996 if { (eval echo configure:20997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20997   rm -rf conftest*
20998   glibcpp_cv_func___builtin_sqrtl_use=yes
20999 else
21000   echo "configure: failed program was:" >&5
21001   cat conftest.$ac_ext >&5
21002   rm -rf conftest*
21003   glibcpp_cv_func___builtin_sqrtl_use=no
21004 fi
21005 rm -f conftest*
21006       ac_ext=c
21007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21008 ac_cpp='$CPP $CPPFLAGS'
21009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21011 cross_compiling=$ac_cv_prog_cc_cross
21012
21013     
21014 fi
21015
21016   fi
21017   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21018   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21019     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21020 echo "configure:21021: checking for __builtin_sqrtl linkage" >&5
21021     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21022       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21023   echo $ac_n "(cached) $ac_c" 1>&6
21024 else
21025   
21026         cat > conftest.$ac_ext <<EOF
21027 #line 21028 "configure"
21028 #include "confdefs.h"
21029 #include <math.h>
21030 int main() {
21031  __builtin_sqrtl(0);
21032 ; return 0; }
21033 EOF
21034 if { (eval echo configure:21035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21035   rm -rf conftest*
21036   glibcpp_cv_func___builtin_sqrtl_link=yes
21037 else
21038   echo "configure: failed program was:" >&5
21039   cat conftest.$ac_ext >&5
21040   rm -rf conftest*
21041   glibcpp_cv_func___builtin_sqrtl_link=no
21042 fi
21043 rm -f conftest*
21044       
21045 fi
21046
21047     fi
21048     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21049     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21050       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21051       cat >> confdefs.h <<EOF
21052 #define ${ac_tr_func} 1
21053 EOF
21054
21055     fi
21056   fi
21057
21058
21059   
21060   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21061 echo "configure:21062: checking for __builtin_sinf declaration" >&5
21062   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21063     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21064   echo $ac_n "(cached) $ac_c" 1>&6
21065 else
21066   
21067       
21068       ac_ext=C
21069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21070 ac_cpp='$CXXCPP $CPPFLAGS'
21071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21073 cross_compiling=$ac_cv_prog_cxx_cross
21074
21075       cat > conftest.$ac_ext <<EOF
21076 #line 21077 "configure"
21077 #include "confdefs.h"
21078 #include <math.h>
21079 int main() {
21080  __builtin_sinf(0);
21081 ; return 0; }
21082 EOF
21083 if { (eval echo configure:21084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21084   rm -rf conftest*
21085   glibcpp_cv_func___builtin_sinf_use=yes
21086 else
21087   echo "configure: failed program was:" >&5
21088   cat conftest.$ac_ext >&5
21089   rm -rf conftest*
21090   glibcpp_cv_func___builtin_sinf_use=no
21091 fi
21092 rm -f conftest*
21093       ac_ext=c
21094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21098 cross_compiling=$ac_cv_prog_cc_cross
21099
21100     
21101 fi
21102
21103   fi
21104   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21105   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21106     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21107 echo "configure:21108: checking for __builtin_sinf linkage" >&5
21108     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21109       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21110   echo $ac_n "(cached) $ac_c" 1>&6
21111 else
21112   
21113         cat > conftest.$ac_ext <<EOF
21114 #line 21115 "configure"
21115 #include "confdefs.h"
21116 #include <math.h>
21117 int main() {
21118  __builtin_sinf(0);
21119 ; return 0; }
21120 EOF
21121 if { (eval echo configure:21122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21122   rm -rf conftest*
21123   glibcpp_cv_func___builtin_sinf_link=yes
21124 else
21125   echo "configure: failed program was:" >&5
21126   cat conftest.$ac_ext >&5
21127   rm -rf conftest*
21128   glibcpp_cv_func___builtin_sinf_link=no
21129 fi
21130 rm -f conftest*
21131       
21132 fi
21133
21134     fi
21135     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21136     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21137       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21138       cat >> confdefs.h <<EOF
21139 #define ${ac_tr_func} 1
21140 EOF
21141
21142     fi
21143   fi
21144
21145   
21146   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21147 echo "configure:21148: checking for __builtin_sin declaration" >&5
21148   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21149     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21150   echo $ac_n "(cached) $ac_c" 1>&6
21151 else
21152   
21153       
21154       ac_ext=C
21155 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21158 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21159 cross_compiling=$ac_cv_prog_cxx_cross
21160
21161       cat > conftest.$ac_ext <<EOF
21162 #line 21163 "configure"
21163 #include "confdefs.h"
21164 #include <math.h>
21165 int main() {
21166  __builtin_sin(0);
21167 ; return 0; }
21168 EOF
21169 if { (eval echo configure:21170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21170   rm -rf conftest*
21171   glibcpp_cv_func___builtin_sin_use=yes
21172 else
21173   echo "configure: failed program was:" >&5
21174   cat conftest.$ac_ext >&5
21175   rm -rf conftest*
21176   glibcpp_cv_func___builtin_sin_use=no
21177 fi
21178 rm -f conftest*
21179       ac_ext=c
21180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21184 cross_compiling=$ac_cv_prog_cc_cross
21185
21186     
21187 fi
21188
21189   fi
21190   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21191   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21192     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21193 echo "configure:21194: checking for __builtin_sin linkage" >&5
21194     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21195       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21196   echo $ac_n "(cached) $ac_c" 1>&6
21197 else
21198   
21199         cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 #include <math.h>
21203 int main() {
21204  __builtin_sin(0);
21205 ; return 0; }
21206 EOF
21207 if { (eval echo configure:21208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21208   rm -rf conftest*
21209   glibcpp_cv_func___builtin_sin_link=yes
21210 else
21211   echo "configure: failed program was:" >&5
21212   cat conftest.$ac_ext >&5
21213   rm -rf conftest*
21214   glibcpp_cv_func___builtin_sin_link=no
21215 fi
21216 rm -f conftest*
21217       
21218 fi
21219
21220     fi
21221     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21222     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21223       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21224       cat >> confdefs.h <<EOF
21225 #define ${ac_tr_func} 1
21226 EOF
21227
21228     fi
21229   fi
21230
21231   
21232   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21233 echo "configure:21234: checking for __builtin_sinl declaration" >&5
21234   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21235     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21236   echo $ac_n "(cached) $ac_c" 1>&6
21237 else
21238   
21239       
21240       ac_ext=C
21241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21242 ac_cpp='$CXXCPP $CPPFLAGS'
21243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21245 cross_compiling=$ac_cv_prog_cxx_cross
21246
21247       cat > conftest.$ac_ext <<EOF
21248 #line 21249 "configure"
21249 #include "confdefs.h"
21250 #include <math.h>
21251 int main() {
21252  __builtin_sinl(0);
21253 ; return 0; }
21254 EOF
21255 if { (eval echo configure:21256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21256   rm -rf conftest*
21257   glibcpp_cv_func___builtin_sinl_use=yes
21258 else
21259   echo "configure: failed program was:" >&5
21260   cat conftest.$ac_ext >&5
21261   rm -rf conftest*
21262   glibcpp_cv_func___builtin_sinl_use=no
21263 fi
21264 rm -f conftest*
21265       ac_ext=c
21266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21267 ac_cpp='$CPP $CPPFLAGS'
21268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21270 cross_compiling=$ac_cv_prog_cc_cross
21271
21272     
21273 fi
21274
21275   fi
21276   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21277   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21278     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21279 echo "configure:21280: checking for __builtin_sinl linkage" >&5
21280     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21281       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21282   echo $ac_n "(cached) $ac_c" 1>&6
21283 else
21284   
21285         cat > conftest.$ac_ext <<EOF
21286 #line 21287 "configure"
21287 #include "confdefs.h"
21288 #include <math.h>
21289 int main() {
21290  __builtin_sinl(0);
21291 ; return 0; }
21292 EOF
21293 if { (eval echo configure:21294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21294   rm -rf conftest*
21295   glibcpp_cv_func___builtin_sinl_link=yes
21296 else
21297   echo "configure: failed program was:" >&5
21298   cat conftest.$ac_ext >&5
21299   rm -rf conftest*
21300   glibcpp_cv_func___builtin_sinl_link=no
21301 fi
21302 rm -f conftest*
21303       
21304 fi
21305
21306     fi
21307     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21308     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21309       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21310       cat >> confdefs.h <<EOF
21311 #define ${ac_tr_func} 1
21312 EOF
21313
21314     fi
21315   fi
21316
21317
21318   
21319   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21320 echo "configure:21321: checking for __builtin_cosf declaration" >&5
21321   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21322     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21323   echo $ac_n "(cached) $ac_c" 1>&6
21324 else
21325   
21326       
21327       ac_ext=C
21328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21329 ac_cpp='$CXXCPP $CPPFLAGS'
21330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21332 cross_compiling=$ac_cv_prog_cxx_cross
21333
21334       cat > conftest.$ac_ext <<EOF
21335 #line 21336 "configure"
21336 #include "confdefs.h"
21337 #include <math.h>
21338 int main() {
21339  __builtin_cosf(0);
21340 ; return 0; }
21341 EOF
21342 if { (eval echo configure:21343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21343   rm -rf conftest*
21344   glibcpp_cv_func___builtin_cosf_use=yes
21345 else
21346   echo "configure: failed program was:" >&5
21347   cat conftest.$ac_ext >&5
21348   rm -rf conftest*
21349   glibcpp_cv_func___builtin_cosf_use=no
21350 fi
21351 rm -f conftest*
21352       ac_ext=c
21353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21354 ac_cpp='$CPP $CPPFLAGS'
21355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21357 cross_compiling=$ac_cv_prog_cc_cross
21358
21359     
21360 fi
21361
21362   fi
21363   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21364   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21365     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21366 echo "configure:21367: checking for __builtin_cosf linkage" >&5
21367     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21368       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21369   echo $ac_n "(cached) $ac_c" 1>&6
21370 else
21371   
21372         cat > conftest.$ac_ext <<EOF
21373 #line 21374 "configure"
21374 #include "confdefs.h"
21375 #include <math.h>
21376 int main() {
21377  __builtin_cosf(0);
21378 ; return 0; }
21379 EOF
21380 if { (eval echo configure:21381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21381   rm -rf conftest*
21382   glibcpp_cv_func___builtin_cosf_link=yes
21383 else
21384   echo "configure: failed program was:" >&5
21385   cat conftest.$ac_ext >&5
21386   rm -rf conftest*
21387   glibcpp_cv_func___builtin_cosf_link=no
21388 fi
21389 rm -f conftest*
21390       
21391 fi
21392
21393     fi
21394     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21395     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21396       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21397       cat >> confdefs.h <<EOF
21398 #define ${ac_tr_func} 1
21399 EOF
21400
21401     fi
21402   fi
21403
21404   
21405   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21406 echo "configure:21407: checking for __builtin_cos declaration" >&5
21407   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21408     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21409   echo $ac_n "(cached) $ac_c" 1>&6
21410 else
21411   
21412       
21413       ac_ext=C
21414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21415 ac_cpp='$CXXCPP $CPPFLAGS'
21416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21418 cross_compiling=$ac_cv_prog_cxx_cross
21419
21420       cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 #include <math.h>
21424 int main() {
21425  __builtin_cos(0);
21426 ; return 0; }
21427 EOF
21428 if { (eval echo configure:21429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21429   rm -rf conftest*
21430   glibcpp_cv_func___builtin_cos_use=yes
21431 else
21432   echo "configure: failed program was:" >&5
21433   cat conftest.$ac_ext >&5
21434   rm -rf conftest*
21435   glibcpp_cv_func___builtin_cos_use=no
21436 fi
21437 rm -f conftest*
21438       ac_ext=c
21439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21440 ac_cpp='$CPP $CPPFLAGS'
21441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21443 cross_compiling=$ac_cv_prog_cc_cross
21444
21445     
21446 fi
21447
21448   fi
21449   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21450   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21451     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21452 echo "configure:21453: checking for __builtin_cos linkage" >&5
21453     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21454       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21455   echo $ac_n "(cached) $ac_c" 1>&6
21456 else
21457   
21458         cat > conftest.$ac_ext <<EOF
21459 #line 21460 "configure"
21460 #include "confdefs.h"
21461 #include <math.h>
21462 int main() {
21463  __builtin_cos(0);
21464 ; return 0; }
21465 EOF
21466 if { (eval echo configure:21467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21467   rm -rf conftest*
21468   glibcpp_cv_func___builtin_cos_link=yes
21469 else
21470   echo "configure: failed program was:" >&5
21471   cat conftest.$ac_ext >&5
21472   rm -rf conftest*
21473   glibcpp_cv_func___builtin_cos_link=no
21474 fi
21475 rm -f conftest*
21476       
21477 fi
21478
21479     fi
21480     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21481     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21482       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21483       cat >> confdefs.h <<EOF
21484 #define ${ac_tr_func} 1
21485 EOF
21486
21487     fi
21488   fi
21489
21490   
21491   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21492 echo "configure:21493: checking for __builtin_cosl declaration" >&5
21493   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21494     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21495   echo $ac_n "(cached) $ac_c" 1>&6
21496 else
21497   
21498       
21499       ac_ext=C
21500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21501 ac_cpp='$CXXCPP $CPPFLAGS'
21502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21504 cross_compiling=$ac_cv_prog_cxx_cross
21505
21506       cat > conftest.$ac_ext <<EOF
21507 #line 21508 "configure"
21508 #include "confdefs.h"
21509 #include <math.h>
21510 int main() {
21511  __builtin_cosl(0);
21512 ; return 0; }
21513 EOF
21514 if { (eval echo configure:21515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21515   rm -rf conftest*
21516   glibcpp_cv_func___builtin_cosl_use=yes
21517 else
21518   echo "configure: failed program was:" >&5
21519   cat conftest.$ac_ext >&5
21520   rm -rf conftest*
21521   glibcpp_cv_func___builtin_cosl_use=no
21522 fi
21523 rm -f conftest*
21524       ac_ext=c
21525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21526 ac_cpp='$CPP $CPPFLAGS'
21527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21529 cross_compiling=$ac_cv_prog_cc_cross
21530
21531     
21532 fi
21533
21534   fi
21535   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21536   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21537     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21538 echo "configure:21539: checking for __builtin_cosl linkage" >&5
21539     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21540       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21541   echo $ac_n "(cached) $ac_c" 1>&6
21542 else
21543   
21544         cat > conftest.$ac_ext <<EOF
21545 #line 21546 "configure"
21546 #include "confdefs.h"
21547 #include <math.h>
21548 int main() {
21549  __builtin_cosl(0);
21550 ; return 0; }
21551 EOF
21552 if { (eval echo configure:21553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21553   rm -rf conftest*
21554   glibcpp_cv_func___builtin_cosl_link=yes
21555 else
21556   echo "configure: failed program was:" >&5
21557   cat conftest.$ac_ext >&5
21558   rm -rf conftest*
21559   glibcpp_cv_func___builtin_cosl_link=no
21560 fi
21561 rm -f conftest*
21562       
21563 fi
21564
21565     fi
21566     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21567     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21568       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21569       cat >> confdefs.h <<EOF
21570 #define ${ac_tr_func} 1
21571 EOF
21572
21573     fi
21574   fi
21575
21576
21577               dummyvar=no
21578   if test x$dummyvar = x"yes"; then
21579     cat >> confdefs.h <<\EOF
21580 #define HAVE___BUILTIN_ABS 1
21581 EOF
21582
21583     cat >> confdefs.h <<\EOF
21584 #define HAVE___BUILTIN_LABS 1
21585 EOF
21586
21587     cat >> confdefs.h <<\EOF
21588 #define HAVE___BUILTIN_COS 1
21589 EOF
21590
21591     cat >> confdefs.h <<\EOF
21592 #define HAVE___BUILTIN_COSF 1
21593 EOF
21594
21595     cat >> confdefs.h <<\EOF
21596 #define HAVE___BUILTIN_COSL 1
21597 EOF
21598
21599     cat >> confdefs.h <<\EOF
21600 #define HAVE___BUILTIN_FABS 1
21601 EOF
21602
21603     cat >> confdefs.h <<\EOF
21604 #define HAVE___BUILTIN_FABSF 1
21605 EOF
21606
21607     cat >> confdefs.h <<\EOF
21608 #define HAVE___BUILTIN_FABSL 1
21609 EOF
21610
21611     cat >> confdefs.h <<\EOF
21612 #define HAVE___BUILTIN_SIN 1
21613 EOF
21614
21615     cat >> confdefs.h <<\EOF
21616 #define HAVE___BUILTIN_SINF 1
21617 EOF
21618
21619     cat >> confdefs.h <<\EOF
21620 #define HAVE___BUILTIN_SINL 1
21621 EOF
21622
21623     cat >> confdefs.h <<\EOF
21624 #define HAVE___BUILTIN_SQRT 1
21625 EOF
21626
21627     cat >> confdefs.h <<\EOF
21628 #define HAVE___BUILTIN_SQRTF 1
21629 EOF
21630
21631     cat >> confdefs.h <<\EOF
21632 #define HAVE___BUILTIN_SQRTL 1
21633 EOF
21634
21635   fi
21636
21637   
21638         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21639 echo "configure:21640: checking for main in -lm" >&5
21640 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21642   echo $ac_n "(cached) $ac_c" 1>&6
21643 else
21644   ac_save_LIBS="$LIBS"
21645 LIBS="-lm  $LIBS"
21646 cat > conftest.$ac_ext <<EOF
21647 #line 21648 "configure"
21648 #include "confdefs.h"
21649
21650 int main() {
21651 main()
21652 ; return 0; }
21653 EOF
21654 if { (eval echo configure:21655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21655   rm -rf conftest*
21656   eval "ac_cv_lib_$ac_lib_var=yes"
21657 else
21658   echo "configure: failed program was:" >&5
21659   cat conftest.$ac_ext >&5
21660   rm -rf conftest*
21661   eval "ac_cv_lib_$ac_lib_var=no"
21662 fi
21663 rm -f conftest*
21664 LIBS="$ac_save_LIBS"
21665
21666 fi
21667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21668   echo "$ac_t""yes" 1>&6
21669     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21670     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21671   cat >> confdefs.h <<EOF
21672 #define $ac_tr_lib 1
21673 EOF
21674
21675   LIBS="-lm $LIBS"
21676
21677 else
21678   echo "$ac_t""no" 1>&6
21679 fi
21680
21681   for ac_func in nan copysignf
21682 do
21683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21684 echo "configure:21685: checking for $ac_func" >&5
21685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21686   echo $ac_n "(cached) $ac_c" 1>&6
21687 else
21688   cat > conftest.$ac_ext <<EOF
21689 #line 21690 "configure"
21690 #include "confdefs.h"
21691 /* System header to define __stub macros and hopefully few prototypes,
21692     which can conflict with char $ac_func(); below.  */
21693 #include <assert.h>
21694 /* Override any gcc2 internal prototype to avoid an error.  */
21695 /* We use char because int might match the return type of a gcc2
21696     builtin and then its argument prototype would still apply.  */
21697 char $ac_func();
21698
21699 int main() {
21700
21701 /* The GNU C library defines this for functions which it implements
21702     to always fail with ENOSYS.  Some functions are actually named
21703     something starting with __ and the normal name is an alias.  */
21704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21705 choke me
21706 #else
21707 $ac_func();
21708 #endif
21709
21710 ; return 0; }
21711 EOF
21712 if { (eval echo configure:21713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21713   rm -rf conftest*
21714   eval "ac_cv_func_$ac_func=yes"
21715 else
21716   echo "configure: failed program was:" >&5
21717   cat conftest.$ac_ext >&5
21718   rm -rf conftest*
21719   eval "ac_cv_func_$ac_func=no"
21720 fi
21721 rm -f conftest*
21722 fi
21723
21724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21725   echo "$ac_t""yes" 1>&6
21726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21727   cat >> confdefs.h <<EOF
21728 #define $ac_tr_func 1
21729 EOF
21730  
21731 else
21732   echo "$ac_t""no" 1>&6
21733 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21734 fi
21735 done
21736
21737
21738     for ac_func in __signbit
21739 do
21740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21741 echo "configure:21742: checking for $ac_func" >&5
21742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21743   echo $ac_n "(cached) $ac_c" 1>&6
21744 else
21745   cat > conftest.$ac_ext <<EOF
21746 #line 21747 "configure"
21747 #include "confdefs.h"
21748 /* System header to define __stub macros and hopefully few prototypes,
21749     which can conflict with char $ac_func(); below.  */
21750 #include <assert.h>
21751 /* Override any gcc2 internal prototype to avoid an error.  */
21752 /* We use char because int might match the return type of a gcc2
21753     builtin and then its argument prototype would still apply.  */
21754 char $ac_func();
21755
21756 int main() {
21757
21758 /* The GNU C library defines this for functions which it implements
21759     to always fail with ENOSYS.  Some functions are actually named
21760     something starting with __ and the normal name is an alias.  */
21761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21762 choke me
21763 #else
21764 $ac_func();
21765 #endif
21766
21767 ; return 0; }
21768 EOF
21769 if { (eval echo configure:21770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21770   rm -rf conftest*
21771   eval "ac_cv_func_$ac_func=yes"
21772 else
21773   echo "configure: failed program was:" >&5
21774   cat conftest.$ac_ext >&5
21775   rm -rf conftest*
21776   eval "ac_cv_func_$ac_func=no"
21777 fi
21778 rm -f conftest*
21779 fi
21780
21781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21782   echo "$ac_t""yes" 1>&6
21783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21784   cat >> confdefs.h <<EOF
21785 #define $ac_tr_func 1
21786 EOF
21787  
21788 else
21789   echo "$ac_t""no" 1>&6
21790 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21791 fi
21792 done
21793
21794   for ac_func in __signbitf
21795 do
21796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21797 echo "configure:21798: checking for $ac_func" >&5
21798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21799   echo $ac_n "(cached) $ac_c" 1>&6
21800 else
21801   cat > conftest.$ac_ext <<EOF
21802 #line 21803 "configure"
21803 #include "confdefs.h"
21804 /* System header to define __stub macros and hopefully few prototypes,
21805     which can conflict with char $ac_func(); below.  */
21806 #include <assert.h>
21807 /* Override any gcc2 internal prototype to avoid an error.  */
21808 /* We use char because int might match the return type of a gcc2
21809     builtin and then its argument prototype would still apply.  */
21810 char $ac_func();
21811
21812 int main() {
21813
21814 /* The GNU C library defines this for functions which it implements
21815     to always fail with ENOSYS.  Some functions are actually named
21816     something starting with __ and the normal name is an alias.  */
21817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21818 choke me
21819 #else
21820 $ac_func();
21821 #endif
21822
21823 ; return 0; }
21824 EOF
21825 if { (eval echo configure:21826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21826   rm -rf conftest*
21827   eval "ac_cv_func_$ac_func=yes"
21828 else
21829   echo "configure: failed program was:" >&5
21830   cat conftest.$ac_ext >&5
21831   rm -rf conftest*
21832   eval "ac_cv_func_$ac_func=no"
21833 fi
21834 rm -f conftest*
21835 fi
21836
21837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21838   echo "$ac_t""yes" 1>&6
21839     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21840   cat >> confdefs.h <<EOF
21841 #define $ac_tr_func 1
21842 EOF
21843  
21844 else
21845   echo "$ac_t""no" 1>&6
21846 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21847 fi
21848 done
21849
21850
21851           if test x$ac_cv_func_copysignl = x"yes"; then
21852     for ac_func in __signbitl
21853 do
21854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21855 echo "configure:21856: checking for $ac_func" >&5
21856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21857   echo $ac_n "(cached) $ac_c" 1>&6
21858 else
21859   cat > conftest.$ac_ext <<EOF
21860 #line 21861 "configure"
21861 #include "confdefs.h"
21862 /* System header to define __stub macros and hopefully few prototypes,
21863     which can conflict with char $ac_func(); below.  */
21864 #include <assert.h>
21865 /* Override any gcc2 internal prototype to avoid an error.  */
21866 /* We use char because int might match the return type of a gcc2
21867     builtin and then its argument prototype would still apply.  */
21868 char $ac_func();
21869
21870 int main() {
21871
21872 /* The GNU C library defines this for functions which it implements
21873     to always fail with ENOSYS.  Some functions are actually named
21874     something starting with __ and the normal name is an alias.  */
21875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21876 choke me
21877 #else
21878 $ac_func();
21879 #endif
21880
21881 ; return 0; }
21882 EOF
21883 if { (eval echo configure:21884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21884   rm -rf conftest*
21885   eval "ac_cv_func_$ac_func=yes"
21886 else
21887   echo "configure: failed program was:" >&5
21888   cat conftest.$ac_ext >&5
21889   rm -rf conftest*
21890   eval "ac_cv_func_$ac_func=no"
21891 fi
21892 rm -f conftest*
21893 fi
21894
21895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21896   echo "$ac_t""yes" 1>&6
21897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21898   cat >> confdefs.h <<EOF
21899 #define $ac_tr_func 1
21900 EOF
21901  
21902 else
21903   echo "$ac_t""no" 1>&6
21904 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21905 fi
21906 done
21907
21908   fi
21909
21910   if test -n "$LIBMATHOBJS"; then
21911     need_libmath=yes
21912   fi
21913   
21914
21915   
21916   
21917       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21918 echo "configure:21919: checking for mbstate_t" >&5
21919   cat > conftest.$ac_ext <<EOF
21920 #line 21921 "configure"
21921 #include "confdefs.h"
21922 #include <wchar.h>
21923 int main() {
21924 mbstate_t teststate;
21925 ; return 0; }
21926 EOF
21927 if { (eval echo configure:21928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21928   rm -rf conftest*
21929   have_mbstate_t=yes
21930 else
21931   echo "configure: failed program was:" >&5
21932   cat conftest.$ac_ext >&5
21933   rm -rf conftest*
21934   have_mbstate_t=no
21935 fi
21936 rm -f conftest*
21937   echo "$ac_t""$have_mbstate_t" 1>&6
21938   if test x"$have_mbstate_t" = xyes; then
21939     cat >> confdefs.h <<\EOF
21940 #define HAVE_MBSTATE_T 1
21941 EOF
21942
21943   fi
21944
21945     for ac_hdr in wchar.h
21946 do
21947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21949 echo "configure:21950: checking for $ac_hdr" >&5
21950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21951   echo $ac_n "(cached) $ac_c" 1>&6
21952 else
21953   cat > conftest.$ac_ext <<EOF
21954 #line 21955 "configure"
21955 #include "confdefs.h"
21956 #include <$ac_hdr>
21957 EOF
21958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21959 { (eval echo configure:21960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21961 if test -z "$ac_err"; then
21962   rm -rf conftest*
21963   eval "ac_cv_header_$ac_safe=yes"
21964 else
21965   echo "$ac_err" >&5
21966   echo "configure: failed program was:" >&5
21967   cat conftest.$ac_ext >&5
21968   rm -rf conftest*
21969   eval "ac_cv_header_$ac_safe=no"
21970 fi
21971 rm -f conftest*
21972 fi
21973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21974   echo "$ac_t""yes" 1>&6
21975     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21976   cat >> confdefs.h <<EOF
21977 #define $ac_tr_hdr 1
21978 EOF
21979  ac_has_wchar_h=yes
21980 else
21981   echo "$ac_t""no" 1>&6
21982 ac_has_wchar_h=no
21983 fi
21984 done
21985
21986   for ac_hdr in wctype.h
21987 do
21988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21990 echo "configure:21991: checking for $ac_hdr" >&5
21991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21992   echo $ac_n "(cached) $ac_c" 1>&6
21993 else
21994   cat > conftest.$ac_ext <<EOF
21995 #line 21996 "configure"
21996 #include "confdefs.h"
21997 #include <$ac_hdr>
21998 EOF
21999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22000 { (eval echo configure:22001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22002 if test -z "$ac_err"; then
22003   rm -rf conftest*
22004   eval "ac_cv_header_$ac_safe=yes"
22005 else
22006   echo "$ac_err" >&5
22007   echo "configure: failed program was:" >&5
22008   cat conftest.$ac_ext >&5
22009   rm -rf conftest*
22010   eval "ac_cv_header_$ac_safe=no"
22011 fi
22012 rm -f conftest*
22013 fi
22014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22015   echo "$ac_t""yes" 1>&6
22016     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22017   cat >> confdefs.h <<EOF
22018 #define $ac_tr_hdr 1
22019 EOF
22020  ac_has_wctype_h=yes
22021 else
22022   echo "$ac_t""no" 1>&6
22023 ac_has_wctype_h=no
22024 fi
22025 done
22026
22027
22028     if test x"$ac_has_wchar_h" = xyes &&
22029      test x"$ac_has_wctype_h" = xyes &&
22030      test x"$enable_c_mbchar" != xno; then
22031
22032             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22033 echo "configure:22034: checking for WCHAR_MIN and WCHAR_MAX" >&5
22034     cat > conftest.$ac_ext <<EOF
22035 #line 22036 "configure"
22036 #include "confdefs.h"
22037 #include <wchar.h>
22038 int main() {
22039 int i = WCHAR_MIN; int j = WCHAR_MAX;
22040 ; return 0; }
22041 EOF
22042 if { (eval echo configure:22043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22043   rm -rf conftest*
22044   has_wchar_minmax=yes
22045 else
22046   echo "configure: failed program was:" >&5
22047   cat conftest.$ac_ext >&5
22048   rm -rf conftest*
22049   has_wchar_minmax=no
22050 fi
22051 rm -f conftest*
22052     echo "$ac_t""$has_wchar_minmax" 1>&6
22053
22054             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22055 echo "configure:22056: checking for WEOF" >&5
22056     cat > conftest.$ac_ext <<EOF
22057 #line 22058 "configure"
22058 #include "confdefs.h"
22059
22060       #include <wchar.h>
22061       #include <stddef.h>
22062 int main() {
22063 wint_t i = WEOF;
22064 ; return 0; }
22065 EOF
22066 if { (eval echo configure:22067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22067   rm -rf conftest*
22068   has_weof=yes
22069 else
22070   echo "configure: failed program was:" >&5
22071   cat conftest.$ac_ext >&5
22072   rm -rf conftest*
22073   has_weof=no
22074 fi
22075 rm -f conftest*
22076     echo "$ac_t""$has_weof" 1>&6
22077
22078         ac_wfuncs=yes
22079     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22080 do
22081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22082 echo "configure:22083: checking for $ac_func" >&5
22083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22084   echo $ac_n "(cached) $ac_c" 1>&6
22085 else
22086   cat > conftest.$ac_ext <<EOF
22087 #line 22088 "configure"
22088 #include "confdefs.h"
22089 /* System header to define __stub macros and hopefully few prototypes,
22090     which can conflict with char $ac_func(); below.  */
22091 #include <assert.h>
22092 /* Override any gcc2 internal prototype to avoid an error.  */
22093 /* We use char because int might match the return type of a gcc2
22094     builtin and then its argument prototype would still apply.  */
22095 char $ac_func();
22096
22097 int main() {
22098
22099 /* The GNU C library defines this for functions which it implements
22100     to always fail with ENOSYS.  Some functions are actually named
22101     something starting with __ and the normal name is an alias.  */
22102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22103 choke me
22104 #else
22105 $ac_func();
22106 #endif
22107
22108 ; return 0; }
22109 EOF
22110 if { (eval echo configure:22111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22111   rm -rf conftest*
22112   eval "ac_cv_func_$ac_func=yes"
22113 else
22114   echo "configure: failed program was:" >&5
22115   cat conftest.$ac_ext >&5
22116   rm -rf conftest*
22117   eval "ac_cv_func_$ac_func=no"
22118 fi
22119 rm -f conftest*
22120 fi
22121
22122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22123   echo "$ac_t""yes" 1>&6
22124     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22125   cat >> confdefs.h <<EOF
22126 #define $ac_tr_func 1
22127 EOF
22128  
22129 else
22130   echo "$ac_t""no" 1>&6
22131 \
22132     ac_wfuncs=no
22133 fi
22134 done
22135
22136
22137         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22138     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22139     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22140     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22141     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22142     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22143 do
22144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22145 echo "configure:22146: checking for $ac_func" >&5
22146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22147   echo $ac_n "(cached) $ac_c" 1>&6
22148 else
22149   cat > conftest.$ac_ext <<EOF
22150 #line 22151 "configure"
22151 #include "confdefs.h"
22152 /* System header to define __stub macros and hopefully few prototypes,
22153     which can conflict with char $ac_func(); below.  */
22154 #include <assert.h>
22155 /* Override any gcc2 internal prototype to avoid an error.  */
22156 /* We use char because int might match the return type of a gcc2
22157     builtin and then its argument prototype would still apply.  */
22158 char $ac_func();
22159
22160 int main() {
22161
22162 /* The GNU C library defines this for functions which it implements
22163     to always fail with ENOSYS.  Some functions are actually named
22164     something starting with __ and the normal name is an alias.  */
22165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22166 choke me
22167 #else
22168 $ac_func();
22169 #endif
22170
22171 ; return 0; }
22172 EOF
22173 if { (eval echo configure:22174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22174   rm -rf conftest*
22175   eval "ac_cv_func_$ac_func=yes"
22176 else
22177   echo "configure: failed program was:" >&5
22178   cat conftest.$ac_ext >&5
22179   rm -rf conftest*
22180   eval "ac_cv_func_$ac_func=no"
22181 fi
22182 rm -f conftest*
22183 fi
22184
22185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22186   echo "$ac_t""yes" 1>&6
22187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22188   cat >> confdefs.h <<EOF
22189 #define $ac_tr_func 1
22190 EOF
22191  
22192 else
22193   echo "$ac_t""no" 1>&6
22194 \
22195     ac_wfuncs=no
22196 fi
22197 done
22198
22199
22200     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22201 echo "configure:22202: checking for ISO C99 wchar_t support" >&5
22202     if test x"$has_weof" = xyes &&
22203        test x"$has_wchar_minmax" = xyes &&
22204        test x"$ac_wfuncs" = xyes; then
22205       ac_isoC99_wchar_t=yes
22206     else
22207       ac_isoC99_wchar_t=no
22208     fi
22209     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22210
22211             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22212 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22213 echo "configure:22214: checking for iconv.h" >&5
22214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22215   echo $ac_n "(cached) $ac_c" 1>&6
22216 else
22217   cat > conftest.$ac_ext <<EOF
22218 #line 22219 "configure"
22219 #include "confdefs.h"
22220 #include <iconv.h>
22221 EOF
22222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22223 { (eval echo configure:22224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22225 if test -z "$ac_err"; then
22226   rm -rf conftest*
22227   eval "ac_cv_header_$ac_safe=yes"
22228 else
22229   echo "$ac_err" >&5
22230   echo "configure: failed program was:" >&5
22231   cat conftest.$ac_ext >&5
22232   rm -rf conftest*
22233   eval "ac_cv_header_$ac_safe=no"
22234 fi
22235 rm -f conftest*
22236 fi
22237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22238   echo "$ac_t""yes" 1>&6
22239   ac_has_iconv_h=yes
22240 else
22241   echo "$ac_t""no" 1>&6
22242 ac_has_iconv_h=no
22243 fi
22244
22245     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22246 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22247 echo "configure:22248: checking for langinfo.h" >&5
22248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22249   echo $ac_n "(cached) $ac_c" 1>&6
22250 else
22251   cat > conftest.$ac_ext <<EOF
22252 #line 22253 "configure"
22253 #include "confdefs.h"
22254 #include <langinfo.h>
22255 EOF
22256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22257 { (eval echo configure:22258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22259 if test -z "$ac_err"; then
22260   rm -rf conftest*
22261   eval "ac_cv_header_$ac_safe=yes"
22262 else
22263   echo "$ac_err" >&5
22264   echo "configure: failed program was:" >&5
22265   cat conftest.$ac_ext >&5
22266   rm -rf conftest*
22267   eval "ac_cv_header_$ac_safe=no"
22268 fi
22269 rm -f conftest*
22270 fi
22271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22272   echo "$ac_t""yes" 1>&6
22273   ac_has_langinfo_h=yes
22274 else
22275   echo "$ac_t""no" 1>&6
22276 ac_has_langinfo_h=no
22277 fi
22278
22279
22280         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22281 echo "configure:22282: checking for iconv in -liconv" >&5
22282 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22284   echo $ac_n "(cached) $ac_c" 1>&6
22285 else
22286   ac_save_LIBS="$LIBS"
22287 LIBS="-liconv  $LIBS"
22288 cat > conftest.$ac_ext <<EOF
22289 #line 22290 "configure"
22290 #include "confdefs.h"
22291 /* Override any gcc2 internal prototype to avoid an error.  */
22292 /* We use char because int might match the return type of a gcc2
22293     builtin and then its argument prototype would still apply.  */
22294 char iconv();
22295
22296 int main() {
22297 iconv()
22298 ; return 0; }
22299 EOF
22300 if { (eval echo configure:22301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22301   rm -rf conftest*
22302   eval "ac_cv_lib_$ac_lib_var=yes"
22303 else
22304   echo "configure: failed program was:" >&5
22305   cat conftest.$ac_ext >&5
22306   rm -rf conftest*
22307   eval "ac_cv_lib_$ac_lib_var=no"
22308 fi
22309 rm -f conftest*
22310 LIBS="$ac_save_LIBS"
22311
22312 fi
22313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22314   echo "$ac_t""yes" 1>&6
22315   libiconv="-liconv"
22316 else
22317   echo "$ac_t""no" 1>&6
22318 fi
22319
22320     ac_save_LIBS="$LIBS"
22321     LIBS="$LIBS $libiconv"
22322
22323     for ac_func in iconv_open iconv_close iconv nl_langinfo
22324 do
22325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22326 echo "configure:22327: checking for $ac_func" >&5
22327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22328   echo $ac_n "(cached) $ac_c" 1>&6
22329 else
22330   cat > conftest.$ac_ext <<EOF
22331 #line 22332 "configure"
22332 #include "confdefs.h"
22333 /* System header to define __stub macros and hopefully few prototypes,
22334     which can conflict with char $ac_func(); below.  */
22335 #include <assert.h>
22336 /* Override any gcc2 internal prototype to avoid an error.  */
22337 /* We use char because int might match the return type of a gcc2
22338     builtin and then its argument prototype would still apply.  */
22339 char $ac_func();
22340
22341 int main() {
22342
22343 /* The GNU C library defines this for functions which it implements
22344     to always fail with ENOSYS.  Some functions are actually named
22345     something starting with __ and the normal name is an alias.  */
22346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22347 choke me
22348 #else
22349 $ac_func();
22350 #endif
22351
22352 ; return 0; }
22353 EOF
22354 if { (eval echo configure:22355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22355   rm -rf conftest*
22356   eval "ac_cv_func_$ac_func=yes"
22357 else
22358   echo "configure: failed program was:" >&5
22359   cat conftest.$ac_ext >&5
22360   rm -rf conftest*
22361   eval "ac_cv_func_$ac_func=no"
22362 fi
22363 rm -f conftest*
22364 fi
22365
22366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22367   echo "$ac_t""yes" 1>&6
22368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22369   cat >> confdefs.h <<EOF
22370 #define $ac_tr_func 1
22371 EOF
22372  \
22373     ac_XPG2funcs=yes
22374 else
22375   echo "$ac_t""no" 1>&6
22376 ac_XPG2funcs=no
22377 fi
22378 done
22379
22380
22381     LIBS="$ac_save_LIBS"
22382
22383     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22384 echo "configure:22385: checking for XPG2 wchar_t support" >&5
22385     if test x"$ac_has_iconv_h" = xyes &&
22386        test x"$ac_has_langinfo_h" = xyes &&
22387        test x"$ac_XPG2funcs" = xyes; then
22388       ac_XPG2_wchar_t=yes
22389     else
22390       ac_XPG2_wchar_t=no
22391     fi
22392     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22393
22394             if test x"$ac_isoC99_wchar_t" = xyes && 
22395         test x"$ac_XPG2_wchar_t" = xyes; then
22396       cat >> confdefs.h <<\EOF
22397 #define _GLIBCPP_USE_WCHAR_T 1
22398 EOF
22399
22400       enable_wchar_t=yes
22401     fi
22402   fi
22403   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22404 echo "configure:22405: checking for enabled wchar_t specializations" >&5
22405   echo "$ac_t""$enable_wchar_t" 1>&6    
22406
22407   
22408   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22409   ac_save_CXXFLAGS="$CXXFLAGS"
22410   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22411
22412   
22413   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22414 echo "configure:22415: checking for strtold declaration" >&5
22415   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22416     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22417   echo $ac_n "(cached) $ac_c" 1>&6
22418 else
22419   
22420       
22421       ac_ext=C
22422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22423 ac_cpp='$CXXCPP $CPPFLAGS'
22424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22426 cross_compiling=$ac_cv_prog_cxx_cross
22427
22428       cat > conftest.$ac_ext <<EOF
22429 #line 22430 "configure"
22430 #include "confdefs.h"
22431 #include <stdlib.h>
22432 int main() {
22433  strtold(0, 0);
22434 ; return 0; }
22435 EOF
22436 if { (eval echo configure:22437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22437   rm -rf conftest*
22438   glibcpp_cv_func_strtold_use=yes
22439 else
22440   echo "configure: failed program was:" >&5
22441   cat conftest.$ac_ext >&5
22442   rm -rf conftest*
22443   glibcpp_cv_func_strtold_use=no
22444 fi
22445 rm -f conftest*
22446       ac_ext=c
22447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22448 ac_cpp='$CPP $CPPFLAGS'
22449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22451 cross_compiling=$ac_cv_prog_cc_cross
22452
22453     
22454 fi
22455
22456   fi
22457   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22458   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22459     for ac_func in strtold
22460 do
22461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22462 echo "configure:22463: checking for $ac_func" >&5
22463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22464   echo $ac_n "(cached) $ac_c" 1>&6
22465 else
22466   cat > conftest.$ac_ext <<EOF
22467 #line 22468 "configure"
22468 #include "confdefs.h"
22469 /* System header to define __stub macros and hopefully few prototypes,
22470     which can conflict with char $ac_func(); below.  */
22471 #include <assert.h>
22472 /* Override any gcc2 internal prototype to avoid an error.  */
22473 /* We use char because int might match the return type of a gcc2
22474     builtin and then its argument prototype would still apply.  */
22475 char $ac_func();
22476
22477 int main() {
22478
22479 /* The GNU C library defines this for functions which it implements
22480     to always fail with ENOSYS.  Some functions are actually named
22481     something starting with __ and the normal name is an alias.  */
22482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22483 choke me
22484 #else
22485 $ac_func();
22486 #endif
22487
22488 ; return 0; }
22489 EOF
22490 if { (eval echo configure:22491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22491   rm -rf conftest*
22492   eval "ac_cv_func_$ac_func=yes"
22493 else
22494   echo "configure: failed program was:" >&5
22495   cat conftest.$ac_ext >&5
22496   rm -rf conftest*
22497   eval "ac_cv_func_$ac_func=no"
22498 fi
22499 rm -f conftest*
22500 fi
22501
22502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22503   echo "$ac_t""yes" 1>&6
22504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22505   cat >> confdefs.h <<EOF
22506 #define $ac_tr_func 1
22507 EOF
22508  
22509 else
22510   echo "$ac_t""no" 1>&6
22511 fi
22512 done
22513
22514   fi
22515
22516   
22517   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22518 echo "configure:22519: checking for strtof declaration" >&5
22519   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22520     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22521   echo $ac_n "(cached) $ac_c" 1>&6
22522 else
22523   
22524       
22525       ac_ext=C
22526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22527 ac_cpp='$CXXCPP $CPPFLAGS'
22528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22530 cross_compiling=$ac_cv_prog_cxx_cross
22531
22532       cat > conftest.$ac_ext <<EOF
22533 #line 22534 "configure"
22534 #include "confdefs.h"
22535 #include <stdlib.h>
22536 int main() {
22537  strtof(0, 0);
22538 ; return 0; }
22539 EOF
22540 if { (eval echo configure:22541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22541   rm -rf conftest*
22542   glibcpp_cv_func_strtof_use=yes
22543 else
22544   echo "configure: failed program was:" >&5
22545   cat conftest.$ac_ext >&5
22546   rm -rf conftest*
22547   glibcpp_cv_func_strtof_use=no
22548 fi
22549 rm -f conftest*
22550       ac_ext=c
22551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22552 ac_cpp='$CPP $CPPFLAGS'
22553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22555 cross_compiling=$ac_cv_prog_cc_cross
22556
22557     
22558 fi
22559
22560   fi
22561   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22562   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22563     for ac_func in strtof
22564 do
22565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22566 echo "configure:22567: checking for $ac_func" >&5
22567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22568   echo $ac_n "(cached) $ac_c" 1>&6
22569 else
22570   cat > conftest.$ac_ext <<EOF
22571 #line 22572 "configure"
22572 #include "confdefs.h"
22573 /* System header to define __stub macros and hopefully few prototypes,
22574     which can conflict with char $ac_func(); below.  */
22575 #include <assert.h>
22576 /* Override any gcc2 internal prototype to avoid an error.  */
22577 /* We use char because int might match the return type of a gcc2
22578     builtin and then its argument prototype would still apply.  */
22579 char $ac_func();
22580
22581 int main() {
22582
22583 /* The GNU C library defines this for functions which it implements
22584     to always fail with ENOSYS.  Some functions are actually named
22585     something starting with __ and the normal name is an alias.  */
22586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22587 choke me
22588 #else
22589 $ac_func();
22590 #endif
22591
22592 ; return 0; }
22593 EOF
22594 if { (eval echo configure:22595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22595   rm -rf conftest*
22596   eval "ac_cv_func_$ac_func=yes"
22597 else
22598   echo "configure: failed program was:" >&5
22599   cat conftest.$ac_ext >&5
22600   rm -rf conftest*
22601   eval "ac_cv_func_$ac_func=no"
22602 fi
22603 rm -f conftest*
22604 fi
22605
22606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22607   echo "$ac_t""yes" 1>&6
22608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22609   cat >> confdefs.h <<EOF
22610 #define $ac_tr_func 1
22611 EOF
22612  
22613 else
22614   echo "$ac_t""no" 1>&6
22615 fi
22616 done
22617
22618   fi
22619
22620   for ac_func in drand48
22621 do
22622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22623 echo "configure:22624: checking for $ac_func" >&5
22624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22625   echo $ac_n "(cached) $ac_c" 1>&6
22626 else
22627   cat > conftest.$ac_ext <<EOF
22628 #line 22629 "configure"
22629 #include "confdefs.h"
22630 /* System header to define __stub macros and hopefully few prototypes,
22631     which can conflict with char $ac_func(); below.  */
22632 #include <assert.h>
22633 /* Override any gcc2 internal prototype to avoid an error.  */
22634 /* We use char because int might match the return type of a gcc2
22635     builtin and then its argument prototype would still apply.  */
22636 char $ac_func();
22637
22638 int main() {
22639
22640 /* The GNU C library defines this for functions which it implements
22641     to always fail with ENOSYS.  Some functions are actually named
22642     something starting with __ and the normal name is an alias.  */
22643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22644 choke me
22645 #else
22646 $ac_func();
22647 #endif
22648
22649 ; return 0; }
22650 EOF
22651 if { (eval echo configure:22652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22652   rm -rf conftest*
22653   eval "ac_cv_func_$ac_func=yes"
22654 else
22655   echo "configure: failed program was:" >&5
22656   cat conftest.$ac_ext >&5
22657   rm -rf conftest*
22658   eval "ac_cv_func_$ac_func=no"
22659 fi
22660 rm -f conftest*
22661 fi
22662
22663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22664   echo "$ac_t""yes" 1>&6
22665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22666   cat >> confdefs.h <<EOF
22667 #define $ac_tr_func 1
22668 EOF
22669  
22670 else
22671   echo "$ac_t""no" 1>&6
22672 fi
22673 done
22674
22675
22676   CXXFLAGS="$ac_save_CXXFLAGS"
22677
22678
22679   # For showmanyc_helper().
22680   for ac_hdr in sys/ioctl.h sys/filio.h
22681 do
22682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22684 echo "configure:22685: checking for $ac_hdr" >&5
22685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22686   echo $ac_n "(cached) $ac_c" 1>&6
22687 else
22688   cat > conftest.$ac_ext <<EOF
22689 #line 22690 "configure"
22690 #include "confdefs.h"
22691 #include <$ac_hdr>
22692 EOF
22693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22694 { (eval echo configure:22695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22696 if test -z "$ac_err"; then
22697   rm -rf conftest*
22698   eval "ac_cv_header_$ac_safe=yes"
22699 else
22700   echo "$ac_err" >&5
22701   echo "configure: failed program was:" >&5
22702   cat conftest.$ac_ext >&5
22703   rm -rf conftest*
22704   eval "ac_cv_header_$ac_safe=no"
22705 fi
22706 rm -f conftest*
22707 fi
22708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22709   echo "$ac_t""yes" 1>&6
22710     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22711   cat >> confdefs.h <<EOF
22712 #define $ac_tr_hdr 1
22713 EOF
22714  
22715 else
22716   echo "$ac_t""no" 1>&6
22717 fi
22718 done
22719
22720   
22721   if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22722   echo $ac_n "(cached) $ac_c" 1>&6
22723 else
22724   
22725     cat > conftest.$ac_ext <<EOF
22726 #line 22727 "configure"
22727 #include "confdefs.h"
22728 #include <poll.h>
22729 int main() {
22730 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
22731 ; return 0; }
22732 EOF
22733 if { (eval echo configure:22734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22734   rm -rf conftest*
22735   glibcpp_cv_POLL=yes
22736 else
22737   echo "configure: failed program was:" >&5
22738   cat conftest.$ac_ext >&5
22739   rm -rf conftest*
22740   glibcpp_cv_POLL=no
22741 fi
22742 rm -f conftest*
22743   
22744 fi
22745
22746   if test x$glibcpp_cv_POLL = xyes; then
22747     cat >> confdefs.h <<\EOF
22748 #define HAVE_POLL 1
22749 EOF
22750
22751   fi
22752
22753   
22754   if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22755   echo $ac_n "(cached) $ac_c" 1>&6
22756 else
22757   
22758     cat > conftest.$ac_ext <<EOF
22759 #line 22760 "configure"
22760 #include "confdefs.h"
22761 #include <sys/stat.h>
22762 int main() {
22763 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
22764 ; return 0; }
22765 EOF
22766 if { (eval echo configure:22767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22767   rm -rf conftest*
22768   glibcpp_cv_S_ISREG=yes
22769 else
22770   echo "configure: failed program was:" >&5
22771   cat conftest.$ac_ext >&5
22772   rm -rf conftest*
22773   glibcpp_cv_S_ISREG=no
22774 fi
22775 rm -f conftest*
22776   
22777 fi
22778
22779   if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22780   echo $ac_n "(cached) $ac_c" 1>&6
22781 else
22782   
22783     cat > conftest.$ac_ext <<EOF
22784 #line 22785 "configure"
22785 #include "confdefs.h"
22786 #include <sys/stat.h>
22787 int main() {
22788 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
22789 ; return 0; }
22790 EOF
22791 if { (eval echo configure:22792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22792   rm -rf conftest*
22793   glibcpp_cv_S_IFREG=yes
22794 else
22795   echo "configure: failed program was:" >&5
22796   cat conftest.$ac_ext >&5
22797   rm -rf conftest*
22798   glibcpp_cv_S_IFREG=no
22799 fi
22800 rm -f conftest*
22801   
22802 fi
22803
22804   if test x$glibcpp_cv_S_ISREG = xyes; then
22805     cat >> confdefs.h <<\EOF
22806 #define HAVE_S_ISREG 1
22807 EOF
22808
22809   elif test x$glibcpp_cv_S_IFREG = xyes; then
22810     cat >> confdefs.h <<\EOF
22811 #define HAVE_S_IFREG 1
22812 EOF
22813
22814   fi
22815
22816
22817   
22818   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22819 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22820 echo "configure:22821: checking for locale.h" >&5
22821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22822   echo $ac_n "(cached) $ac_c" 1>&6
22823 else
22824   cat > conftest.$ac_ext <<EOF
22825 #line 22826 "configure"
22826 #include "confdefs.h"
22827 #include <locale.h>
22828 EOF
22829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22830 { (eval echo configure:22831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22832 if test -z "$ac_err"; then
22833   rm -rf conftest*
22834   eval "ac_cv_header_$ac_safe=yes"
22835 else
22836   echo "$ac_err" >&5
22837   echo "configure: failed program was:" >&5
22838   cat conftest.$ac_ext >&5
22839   rm -rf conftest*
22840   eval "ac_cv_header_$ac_safe=no"
22841 fi
22842 rm -f conftest*
22843 fi
22844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22845   echo "$ac_t""yes" 1>&6
22846   
22847     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22848 echo "configure:22849: checking for LC_MESSAGES" >&5
22849 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22850   echo $ac_n "(cached) $ac_c" 1>&6
22851 else
22852   cat > conftest.$ac_ext <<EOF
22853 #line 22854 "configure"
22854 #include "confdefs.h"
22855 #include <locale.h>
22856 int main() {
22857 return LC_MESSAGES
22858 ; return 0; }
22859 EOF
22860 if { (eval echo configure:22861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22861   rm -rf conftest*
22862   ac_cv_val_LC_MESSAGES=yes
22863 else
22864   echo "configure: failed program was:" >&5
22865   cat conftest.$ac_ext >&5
22866   rm -rf conftest*
22867   ac_cv_val_LC_MESSAGES=no
22868 fi
22869 rm -f conftest*
22870 fi
22871
22872 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22873     if test $ac_cv_val_LC_MESSAGES = yes; then
22874       cat >> confdefs.h <<\EOF
22875 #define HAVE_LC_MESSAGES 1
22876 EOF
22877
22878     fi
22879   
22880 else
22881   echo "$ac_t""no" 1>&6
22882 fi
22883
22884
22885
22886   cat > conftest.$ac_ext <<EOF
22887 #line 22888 "configure"
22888 #include "confdefs.h"
22889
22890   #include <setjmp.h>
22891   
22892 int main() {
22893 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22894 ; return 0; }
22895 EOF
22896 if { (eval echo configure:22897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22897   rm -rf conftest*
22898   cat >> confdefs.h <<\EOF
22899 #define HAVE_SIGSETJMP 1
22900 EOF
22901
22902   
22903 else
22904   echo "configure: failed program was:" >&5
22905   cat conftest.$ac_ext >&5
22906 fi
22907 rm -f conftest*
22908
22909   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22910 do
22911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22913 echo "configure:22914: checking for $ac_hdr" >&5
22914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22915   echo $ac_n "(cached) $ac_c" 1>&6
22916 else
22917   cat > conftest.$ac_ext <<EOF
22918 #line 22919 "configure"
22919 #include "confdefs.h"
22920 #include <$ac_hdr>
22921 EOF
22922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22923 { (eval echo configure:22924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22925 if test -z "$ac_err"; then
22926   rm -rf conftest*
22927   eval "ac_cv_header_$ac_safe=yes"
22928 else
22929   echo "$ac_err" >&5
22930   echo "configure: failed program was:" >&5
22931   cat conftest.$ac_ext >&5
22932   rm -rf conftest*
22933   eval "ac_cv_header_$ac_safe=no"
22934 fi
22935 rm -f conftest*
22936 fi
22937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22938   echo "$ac_t""yes" 1>&6
22939     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22940   cat >> confdefs.h <<EOF
22941 #define $ac_tr_hdr 1
22942 EOF
22943  
22944 else
22945   echo "$ac_t""no" 1>&6
22946 fi
22947 done
22948
22949 for ac_func in getpagesize
22950 do
22951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22952 echo "configure:22953: checking for $ac_func" >&5
22953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22954   echo $ac_n "(cached) $ac_c" 1>&6
22955 else
22956   cat > conftest.$ac_ext <<EOF
22957 #line 22958 "configure"
22958 #include "confdefs.h"
22959 /* System header to define __stub macros and hopefully few prototypes,
22960     which can conflict with char $ac_func(); below.  */
22961 #include <assert.h>
22962 /* Override any gcc2 internal prototype to avoid an error.  */
22963 /* We use char because int might match the return type of a gcc2
22964     builtin and then its argument prototype would still apply.  */
22965 char $ac_func();
22966
22967 int main() {
22968
22969 /* The GNU C library defines this for functions which it implements
22970     to always fail with ENOSYS.  Some functions are actually named
22971     something starting with __ and the normal name is an alias.  */
22972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22973 choke me
22974 #else
22975 $ac_func();
22976 #endif
22977
22978 ; return 0; }
22979 EOF
22980 if { (eval echo configure:22981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22981   rm -rf conftest*
22982   eval "ac_cv_func_$ac_func=yes"
22983 else
22984   echo "configure: failed program was:" >&5
22985   cat conftest.$ac_ext >&5
22986   rm -rf conftest*
22987   eval "ac_cv_func_$ac_func=no"
22988 fi
22989 rm -f conftest*
22990 fi
22991
22992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22993   echo "$ac_t""yes" 1>&6
22994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22995   cat >> confdefs.h <<EOF
22996 #define $ac_tr_func 1
22997 EOF
22998  
22999 else
23000   echo "$ac_t""no" 1>&6
23001 fi
23002 done
23003
23004 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23005 echo "configure:23006: checking for working mmap" >&5
23006 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23007   echo $ac_n "(cached) $ac_c" 1>&6
23008 else
23009   if test "$cross_compiling" = yes; then
23010   ac_cv_func_mmap_fixed_mapped=no
23011 else
23012   cat > conftest.$ac_ext <<EOF
23013 #line 23014 "configure"
23014 #include "confdefs.h"
23015
23016 /* Thanks to Mike Haertel and Jim Avera for this test.
23017    Here is a matrix of mmap possibilities:
23018         mmap private not fixed
23019         mmap private fixed at somewhere currently unmapped
23020         mmap private fixed at somewhere already mapped
23021         mmap shared not fixed
23022         mmap shared fixed at somewhere currently unmapped
23023         mmap shared fixed at somewhere already mapped
23024    For private mappings, we should verify that changes cannot be read()
23025    back from the file, nor mmap's back from the file at a different
23026    address.  (There have been systems where private was not correctly
23027    implemented like the infamous i386 svr4.0, and systems where the
23028    VM page cache was not coherent with the filesystem buffer cache
23029    like early versions of FreeBSD and possibly contemporary NetBSD.)
23030    For shared mappings, we should conversely verify that changes get
23031    propogated back to all the places they're supposed to be.
23032
23033    Grep wants private fixed already mapped.
23034    The main things grep needs to know about mmap are:
23035    * does it exist and is it safe to write into the mmap'd area
23036    * how to use it (BSD variants)  */
23037 #include <sys/types.h>
23038 #include <fcntl.h>
23039 #include <sys/mman.h>
23040
23041 #if HAVE_SYS_TYPES_H
23042 # include <sys/types.h>
23043 #endif
23044
23045 #if HAVE_STDLIB_H
23046 # include <stdlib.h>
23047 #endif
23048
23049 #if HAVE_SYS_STAT_H
23050 # include <sys/stat.h>
23051 #endif
23052
23053 #if HAVE_UNISTD_H
23054 # include <unistd.h>
23055 #endif
23056
23057 /* This mess was copied from the GNU getpagesize.h.  */
23058 #ifndef HAVE_GETPAGESIZE
23059
23060 /* Assume that all systems that can run configure have sys/param.h.  */
23061 # ifndef HAVE_SYS_PARAM_H
23062 #  define HAVE_SYS_PARAM_H 1
23063 # endif
23064
23065 # ifdef _SC_PAGESIZE
23066 #  define getpagesize() sysconf(_SC_PAGESIZE)
23067 # else /* no _SC_PAGESIZE */
23068 #  ifdef HAVE_SYS_PARAM_H
23069 #   include <sys/param.h>
23070 #   ifdef EXEC_PAGESIZE
23071 #    define getpagesize() EXEC_PAGESIZE
23072 #   else /* no EXEC_PAGESIZE */
23073 #    ifdef NBPG
23074 #     define getpagesize() NBPG * CLSIZE
23075 #     ifndef CLSIZE
23076 #      define CLSIZE 1
23077 #     endif /* no CLSIZE */
23078 #    else /* no NBPG */
23079 #     ifdef NBPC
23080 #      define getpagesize() NBPC
23081 #     else /* no NBPC */
23082 #      ifdef PAGESIZE
23083 #       define getpagesize() PAGESIZE
23084 #      endif /* PAGESIZE */
23085 #     endif /* no NBPC */
23086 #    endif /* no NBPG */
23087 #   endif /* no EXEC_PAGESIZE */
23088 #  else /* no HAVE_SYS_PARAM_H */
23089 #   define getpagesize() 8192   /* punt totally */
23090 #  endif /* no HAVE_SYS_PARAM_H */
23091 # endif /* no _SC_PAGESIZE */
23092
23093 #endif /* no HAVE_GETPAGESIZE */
23094
23095 #ifdef __cplusplus
23096 extern "C" { void *malloc(unsigned); }
23097 #else
23098 char *malloc();
23099 #endif
23100
23101 int
23102 main()
23103 {
23104         char *data, *data2, *data3;
23105         int i, pagesize;
23106         int fd;
23107
23108         pagesize = getpagesize();
23109
23110         /*
23111          * First, make a file with some known garbage in it.
23112          */
23113         data = malloc(pagesize);
23114         if (!data)
23115                 exit(1);
23116         for (i = 0; i < pagesize; ++i)
23117                 *(data + i) = rand();
23118         umask(0);
23119         fd = creat("conftestmmap", 0600);
23120         if (fd < 0)
23121                 exit(1);
23122         if (write(fd, data, pagesize) != pagesize)
23123                 exit(1);
23124         close(fd);
23125
23126         /*
23127          * Next, try to mmap the file at a fixed address which
23128          * already has something else allocated at it.  If we can,
23129          * also make sure that we see the same garbage.
23130          */
23131         fd = open("conftestmmap", O_RDWR);
23132         if (fd < 0)
23133                 exit(1);
23134         data2 = malloc(2 * pagesize);
23135         if (!data2)
23136                 exit(1);
23137         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23138         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23139             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23140                 exit(1);
23141         for (i = 0; i < pagesize; ++i)
23142                 if (*(data + i) != *(data2 + i))
23143                         exit(1);
23144
23145         /*
23146          * Finally, make sure that changes to the mapped area
23147          * do not percolate back to the file as seen by read().
23148          * (This is a bug on some variants of i386 svr4.0.)
23149          */
23150         for (i = 0; i < pagesize; ++i)
23151                 *(data2 + i) = *(data2 + i) + 1;
23152         data3 = malloc(pagesize);
23153         if (!data3)
23154                 exit(1);
23155         if (read(fd, data3, pagesize) != pagesize)
23156                 exit(1);
23157         for (i = 0; i < pagesize; ++i)
23158                 if (*(data + i) != *(data3 + i))
23159                         exit(1);
23160         close(fd);
23161         unlink("conftestmmap");
23162         exit(0);
23163 }
23164
23165 EOF
23166 if { (eval echo configure:23167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23167 then
23168   ac_cv_func_mmap_fixed_mapped=yes
23169 else
23170   echo "configure: failed program was:" >&5
23171   cat conftest.$ac_ext >&5
23172   rm -fr conftest*
23173   ac_cv_func_mmap_fixed_mapped=no
23174 fi
23175 rm -fr conftest*
23176 fi
23177
23178 fi
23179
23180 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23182   cat >> confdefs.h <<\EOF
23183 #define HAVE_MMAP 1
23184 EOF
23185
23186 fi
23187
23188 fi
23189
23190 # This depends on GLIBCPP_CHECK_LINKER_FEATURES, but without it assumes no.
23191 # Check whether --enable-symvers or --disable-symvers was given.
23192 if test "${enable_symvers+set}" = set; then
23193   enableval="$enable_symvers"
23194   case "$enableval" in
23195  yes) enable_symvers=yes ;;
23196  no)  enable_symvers=no ;;
23197  # other names here, just as sanity checks
23198  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23199  gnu) enable_symvers=$enableval ;;
23200  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23201  esac
23202 else
23203   enable_symvers=yes
23204 fi
23205
23206 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23207 # don't know enough about $LD to do tricks...
23208 if test x$enable_shared = xno ||
23209         test "x$LD" = x ||
23210         test x$glibcpp_gnu_ld_version = x; then
23211   enable_symvers=no
23212 fi
23213
23214 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23215 if test $enable_symvers != no; then
23216   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23217 echo "configure:23218: checking for shared libgcc" >&5
23218   ac_save_CFLAGS="$CFLAGS"
23219   CFLAGS=' -lgcc_s'
23220   cat > conftest.$ac_ext <<EOF
23221 #line 23222 "configure"
23222 #include "confdefs.h"
23223
23224 int main() {
23225 return 0
23226 ; return 0; }
23227 EOF
23228 if { (eval echo configure:23229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23229   rm -rf conftest*
23230   glibcpp_shared_libgcc=yes
23231 else
23232   echo "configure: failed program was:" >&5
23233   cat conftest.$ac_ext >&5
23234   rm -rf conftest*
23235   glibcpp_shared_libgcc=no
23236 fi
23237 rm -f conftest*
23238   CFLAGS="$ac_save_CFLAGS"
23239   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23240 fi
23241
23242 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23243 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23244 glibcpp_min_gnu_ld_version=21200
23245
23246 # Check to see if unspecified "yes" value can win, given results
23247 # above.
23248 if test $enable_symvers = yes ; then
23249   if test $with_gnu_ld = yes &&
23250     test $glibcpp_shared_libgcc = yes ;
23251   then
23252     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23253         enable_symvers=gnu
23254     else
23255       ac_test_CFLAGS="${CFLAGS+set}"
23256       ac_save_CFLAGS="$CFLAGS"
23257       CFLAGS='-shared -Wl,--version-script,conftest.map'
23258       enable_symvers=no
23259       
23260       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23261       
23262       cat > conftest.$ac_ext <<EOF
23263 #line 23264 "configure"
23264 #include "confdefs.h"
23265 int foo;
23266 int main() {
23267
23268 ; return 0; }
23269 EOF
23270 if { (eval echo configure:23271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23271   rm -rf conftest*
23272   enable_symvers=gnu
23273 else
23274   echo "configure: failed program was:" >&5
23275   cat conftest.$ac_ext >&5
23276 fi
23277 rm -f conftest*
23278       if test "$ac_test_CFLAGS" = set; then
23279         CFLAGS="$ac_save_CFLAGS"
23280       else
23281         # this is the suspicious part
23282         CFLAGS=''
23283       fi
23284       rm -f conftest.map
23285     fi
23286   else
23287     # just fail for now
23288     enable_symvers=no
23289   fi
23290 fi
23291
23292 case $enable_symvers in
23293   no)
23294       SYMVER_MAP=config/linker-map.dummy
23295       ;;
23296   gnu)
23297       SYMVER_MAP=config/linker-map.gnu
23298       cat >> confdefs.h <<\EOF
23299 #define _GLIBCPP_SYMVER 1
23300 EOF
23301
23302       ;;
23303 esac
23304
23305
23306
23307
23308 if test $enable_symvers != no; then
23309   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23310   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23311 else
23312   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23313   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23314 fi
23315 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23316 echo "configure:23317: checking versioning on shared library symbols" >&5
23317 echo "$ac_t""$enable_symvers" 1>&6
23318
23319
23320 # This depends on GLIBCPP_ENABLE_SYMVERS and GLIBCPP_IS_CROSS_COMPILING.
23321
23322
23323   if test  x"$GLIBCPP_IS_CROSS_COMPILING" = xfalse; then
23324     # Do checks for memory limit functions.
23325     
23326   setrlimit_have_headers=yes
23327   for ac_hdr in unistd.h sys/time.h sys/resource.h
23328 do
23329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23331 echo "configure:23332: checking for $ac_hdr" >&5
23332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23333   echo $ac_n "(cached) $ac_c" 1>&6
23334 else
23335   cat > conftest.$ac_ext <<EOF
23336 #line 23337 "configure"
23337 #include "confdefs.h"
23338 #include <$ac_hdr>
23339 EOF
23340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23341 { (eval echo configure:23342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23343 if test -z "$ac_err"; then
23344   rm -rf conftest*
23345   eval "ac_cv_header_$ac_safe=yes"
23346 else
23347   echo "$ac_err" >&5
23348   echo "configure: failed program was:" >&5
23349   cat conftest.$ac_ext >&5
23350   rm -rf conftest*
23351   eval "ac_cv_header_$ac_safe=no"
23352 fi
23353 rm -f conftest*
23354 fi
23355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23356   echo "$ac_t""yes" 1>&6
23357     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23358   cat >> confdefs.h <<EOF
23359 #define $ac_tr_hdr 1
23360 EOF
23361  
23362 else
23363   echo "$ac_t""no" 1>&6
23364 setrlimit_have_headers=no
23365 fi
23366 done
23367
23368   # If don't have the headers, then we can't run the tests now, and we
23369   # won't be seeing any of these during testsuite compilation.
23370   if test $setrlimit_have_headers = yes; then
23371     # Can't do these in a loop, else the resulting syntax is wrong.
23372     
23373   cat > conftest.$ac_ext <<EOF
23374 #line 23375 "configure"
23375 #include "confdefs.h"
23376 #include <unistd.h>
23377                   #include <sys/time.h>
23378                   #include <sys/resource.h>
23379                  
23380 int main() {
23381  int f = RLIMIT_DATA ; 
23382 ; return 0; }
23383 EOF
23384 if { (eval echo configure:23385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23385   rm -rf conftest*
23386   glibcpp_mresult=1
23387 else
23388   echo "configure: failed program was:" >&5
23389   cat conftest.$ac_ext >&5
23390   rm -rf conftest*
23391   glibcpp_mresult=0
23392 fi
23393 rm -f conftest*
23394   cat >> confdefs.h <<EOF
23395 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23396 EOF
23397
23398
23399     
23400   cat > conftest.$ac_ext <<EOF
23401 #line 23402 "configure"
23402 #include "confdefs.h"
23403 #include <unistd.h>
23404                   #include <sys/time.h>
23405                   #include <sys/resource.h>
23406                  
23407 int main() {
23408  int f = RLIMIT_RSS ; 
23409 ; return 0; }
23410 EOF
23411 if { (eval echo configure:23412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23412   rm -rf conftest*
23413   glibcpp_mresult=1
23414 else
23415   echo "configure: failed program was:" >&5
23416   cat conftest.$ac_ext >&5
23417   rm -rf conftest*
23418   glibcpp_mresult=0
23419 fi
23420 rm -f conftest*
23421   cat >> confdefs.h <<EOF
23422 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23423 EOF
23424
23425
23426     
23427   cat > conftest.$ac_ext <<EOF
23428 #line 23429 "configure"
23429 #include "confdefs.h"
23430 #include <unistd.h>
23431                   #include <sys/time.h>
23432                   #include <sys/resource.h>
23433                  
23434 int main() {
23435  int f = RLIMIT_VMEM ; 
23436 ; return 0; }
23437 EOF
23438 if { (eval echo configure:23439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23439   rm -rf conftest*
23440   glibcpp_mresult=1
23441 else
23442   echo "configure: failed program was:" >&5
23443   cat conftest.$ac_ext >&5
23444   rm -rf conftest*
23445   glibcpp_mresult=0
23446 fi
23447 rm -f conftest*
23448   cat >> confdefs.h <<EOF
23449 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23450 EOF
23451
23452
23453     
23454   cat > conftest.$ac_ext <<EOF
23455 #line 23456 "configure"
23456 #include "confdefs.h"
23457 #include <unistd.h>
23458                   #include <sys/time.h>
23459                   #include <sys/resource.h>
23460                  
23461 int main() {
23462  int f = RLIMIT_AS ; 
23463 ; return 0; }
23464 EOF
23465 if { (eval echo configure:23466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23466   rm -rf conftest*
23467   glibcpp_mresult=1
23468 else
23469   echo "configure: failed program was:" >&5
23470   cat conftest.$ac_ext >&5
23471   rm -rf conftest*
23472   glibcpp_mresult=0
23473 fi
23474 rm -f conftest*
23475   cat >> confdefs.h <<EOF
23476 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23477 EOF
23478
23479
23480
23481     # Check for rlimit, setrlimit.
23482     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23483   echo $ac_n "(cached) $ac_c" 1>&6
23484 else
23485   
23486       cat > conftest.$ac_ext <<EOF
23487 #line 23488 "configure"
23488 #include "confdefs.h"
23489 #include <unistd.h>
23490                   #include <sys/time.h>
23491                   #include <sys/resource.h>
23492                      
23493 int main() {
23494  struct rlimit r; setrlimit(0, &r);
23495 ; return 0; }
23496 EOF
23497 if { (eval echo configure:23498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23498   rm -rf conftest*
23499   ac_setrlimit=yes
23500 else
23501   echo "configure: failed program was:" >&5
23502   cat conftest.$ac_ext >&5
23503   rm -rf conftest*
23504   ac_setrlimit=no
23505 fi
23506 rm -f conftest*
23507     
23508 fi
23509
23510   fi
23511
23512   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23513 echo "configure:23514: checking for testsuite memory limit support" >&5
23514   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23515     ac_mem_limits=yes
23516     cat >> confdefs.h <<\EOF
23517 #define _GLIBCPP_MEM_LIMITS 1
23518 EOF
23519
23520   else
23521     ac_mem_limits=no
23522   fi
23523   echo "$ac_t""$ac_mem_limits" 1>&6
23524
23525
23526     # Look for setenv, so that extended locale tests can be performed.
23527     
23528   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23529 echo "configure:23530: checking for setenv declaration" >&5
23530   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23531     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23532   echo $ac_n "(cached) $ac_c" 1>&6
23533 else
23534   
23535       
23536       ac_ext=C
23537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23538 ac_cpp='$CXXCPP $CPPFLAGS'
23539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23541 cross_compiling=$ac_cv_prog_cxx_cross
23542
23543       cat > conftest.$ac_ext <<EOF
23544 #line 23545 "configure"
23545 #include "confdefs.h"
23546 #include <stdlib.h>
23547 int main() {
23548  setenv(0, 0, 0);
23549 ; return 0; }
23550 EOF
23551 if { (eval echo configure:23552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23552   rm -rf conftest*
23553   glibcpp_cv_func_setenv_use=yes
23554 else
23555   echo "configure: failed program was:" >&5
23556   cat conftest.$ac_ext >&5
23557   rm -rf conftest*
23558   glibcpp_cv_func_setenv_use=no
23559 fi
23560 rm -f conftest*
23561       ac_ext=c
23562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23563 ac_cpp='$CPP $CPPFLAGS'
23564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23566 cross_compiling=$ac_cv_prog_cc_cross
23567
23568     
23569 fi
23570
23571   fi
23572   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23573   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23574     for ac_func in setenv
23575 do
23576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23577 echo "configure:23578: checking for $ac_func" >&5
23578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23579   echo $ac_n "(cached) $ac_c" 1>&6
23580 else
23581   cat > conftest.$ac_ext <<EOF
23582 #line 23583 "configure"
23583 #include "confdefs.h"
23584 /* System header to define __stub macros and hopefully few prototypes,
23585     which can conflict with char $ac_func(); below.  */
23586 #include <assert.h>
23587 /* Override any gcc2 internal prototype to avoid an error.  */
23588 /* We use char because int might match the return type of a gcc2
23589     builtin and then its argument prototype would still apply.  */
23590 char $ac_func();
23591
23592 int main() {
23593
23594 /* The GNU C library defines this for functions which it implements
23595     to always fail with ENOSYS.  Some functions are actually named
23596     something starting with __ and the normal name is an alias.  */
23597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23598 choke me
23599 #else
23600 $ac_func();
23601 #endif
23602
23603 ; return 0; }
23604 EOF
23605 if { (eval echo configure:23606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23606   rm -rf conftest*
23607   eval "ac_cv_func_$ac_func=yes"
23608 else
23609   echo "configure: failed program was:" >&5
23610   cat conftest.$ac_ext >&5
23611   rm -rf conftest*
23612   eval "ac_cv_func_$ac_func=no"
23613 fi
23614 rm -f conftest*
23615 fi
23616
23617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23618   echo "$ac_t""yes" 1>&6
23619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23620   cat >> confdefs.h <<EOF
23621 #define $ac_tr_func 1
23622 EOF
23623  
23624 else
23625   echo "$ac_t""no" 1>&6
23626 fi
23627 done
23628
23629   fi
23630
23631   fi
23632
23633   # Export file names for ABI checking.
23634   baseline_dir="${glibcpp_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23635   
23636
23637   # Determine if checking the ABI is desirable.
23638   if test x$enable_symvers = xno; then
23639     enable_abi_check=no
23640   else
23641     case "$host" in
23642       *-*-cygwin*) 
23643         enable_abi_check=no ;;
23644       *) 
23645         enable_abi_check=yes ;;
23646     esac
23647   fi
23648
23649   
23650
23651 if test "$enable_wchar_t" = yes; then
23652   GLIBCPP_TEST_WCHAR_T_TRUE=
23653   GLIBCPP_TEST_WCHAR_T_FALSE='#'
23654 else
23655   GLIBCPP_TEST_WCHAR_T_TRUE='#'
23656   GLIBCPP_TEST_WCHAR_T_FALSE=
23657 fi      
23658   
23659
23660 if test "$enable_abi_check" = yes; then
23661   GLIBCPP_TEST_ABI_TRUE=
23662   GLIBCPP_TEST_ABI_FALSE='#'
23663 else
23664   GLIBCPP_TEST_ABI_TRUE='#'
23665   GLIBCPP_TEST_ABI_FALSE=
23666 fi
23667
23668
23669 # Propagate the target-specific source directories through the build chain.
23670 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23671 # uses it, and it only gets used in this file.)
23672 OS_INC_SRCDIR=config/${os_include_dir}
23673 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23674
23675
23676
23677 # Determine cross-compile flags and all AM_CONDITIONALs.
23678
23679
23680
23681 if test "$CANADIAN" = yes; then
23682   CANADIAN_TRUE=
23683   CANADIAN_FALSE='#'
23684 else
23685   CANADIAN_TRUE='#'
23686   CANADIAN_FALSE=
23687 fi
23688
23689
23690 if test "$need_libmath" = yes; then
23691   GLIBCPP_BUILD_LIBMATH_TRUE=
23692   GLIBCPP_BUILD_LIBMATH_FALSE='#'
23693 else
23694   GLIBCPP_BUILD_LIBMATH_TRUE='#'
23695   GLIBCPP_BUILD_LIBMATH_FALSE=
23696 fi
23697  
23698 cat > confcache <<\EOF
23699 # This file is a shell script that caches the results of configure
23700 # tests run on this system so they can be shared between configure
23701 # scripts and configure runs.  It is not useful on other systems.
23702 # If it contains results you don't want to keep, you may remove or edit it.
23703 #
23704 # By default, configure uses ./config.cache as the cache file,
23705 # creating it if it does not exist already.  You can give configure
23706 # the --cache-file=FILE option to use a different cache file; that is
23707 # what configure does when it calls configure scripts in
23708 # subdirectories, so they share the cache.
23709 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23710 # config.status only pays attention to the cache file if you give it the
23711 # --recheck option to rerun configure.
23712 #
23713 EOF
23714 # The following way of writing the cache mishandles newlines in values,
23715 # but we know of no workaround that is simple, portable, and efficient.
23716 # So, don't put newlines in cache variables' values.
23717 # Ultrix sh set writes to stderr and can't be redirected directly,
23718 # and sets the high bit in the cache file unless we assign to the vars.
23719 (set) 2>&1 |
23720   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23721   *ac_space=\ *)
23722     # `set' does not quote correctly, so add quotes (double-quote substitution
23723     # turns \\\\ into \\, and sed turns \\ into \).
23724     sed -n \
23725       -e "s/'/'\\\\''/g" \
23726       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23727     ;;
23728   *)
23729     # `set' quotes correctly as required by POSIX, so do not add quotes.
23730     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23731     ;;
23732   esac >> confcache
23733 if cmp -s $cache_file confcache; then
23734   :
23735 else
23736   if test -w $cache_file; then
23737     echo "updating cache $cache_file"
23738     cat confcache > $cache_file
23739   else
23740     echo "not updating unwritable cache $cache_file"
23741   fi
23742 fi
23743 rm -f confcache
23744
23745
23746 if test "${multilib}" = "yes"; then
23747   multilib_arg="--enable-multilib"
23748 else
23749   multilib_arg=
23750 fi
23751
23752 # Export all the install information
23753
23754 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23755 # exported correctly in GLIBCPP_CONFIGURE.
23756 glibcpp_toolexecdir=no
23757 glibcpp_toolexeclibdir=no
23758 glibcpp_prefixdir=${prefix}
23759
23760 # Process the option --with-gxx-include-dir=<path to include-files directory>
23761 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23762 echo "configure:23763: checking for --with-gxx-include-dir" >&5
23763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23764 if test "${with_gxx_include_dir+set}" = set; then
23765   withval="$with_gxx_include_dir"
23766   case "${withval}" in
23767   yes)
23768     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23769     gxx_include_dir=no
23770     ;;
23771   no)
23772     gxx_include_dir=no
23773     ;;
23774   *)
23775     gxx_include_dir=${withval}
23776     ;;
23777 esac
23778 else
23779   gxx_include_dir=no
23780 fi
23781
23782 echo "$ac_t""$gxx_include_dir" 1>&6
23783
23784 # Process the option "--enable-version-specific-runtime-libs"
23785 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23786 echo "configure:23787: checking for --enable-version-specific-runtime-libs" >&5
23787 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23788 if test "${enable_version_specific_runtime_libs+set}" = set; then
23789   enableval="$enable_version_specific_runtime_libs"
23790   case "$enableval" in
23791  yes) version_specific_libs=yes ;;
23792  no)  version_specific_libs=no ;;
23793  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23794  esac
23795 else
23796   version_specific_libs=no
23797 fi
23798 # Option set, now we can test it.
23799 echo "$ac_t""$version_specific_libs" 1>&6
23800
23801 # Default case for install directory for include files.
23802 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23803   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23804 fi
23805
23806 # Version-specific runtime libs processing.
23807 if test $version_specific_libs = yes; then
23808   # Need the gcc compiler version to know where to install libraries
23809   # and header files if --enable-version-specific-runtime-libs option
23810   # is selected.
23811   if test x"$gxx_include_dir" = x"no"; then
23812     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23813   fi
23814   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23815   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23816 fi
23817
23818 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23819 # Install a library built with a cross compiler in tooldir, not libdir.
23820 if test x"$glibcpp_toolexecdir" = x"no"; then
23821   if test -n "$with_cross_host" &&
23822      test x"$with_cross_host" != x"no"; then
23823     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23824     glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23825   else
23826     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23827     glibcpp_toolexeclibdir='$(libdir)'
23828   fi
23829   multi_os_directory=`$CC -print-multi-os-directory`
23830   case $multi_os_directory in
23831   .) ;; # Avoid trailing /.
23832   *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23833   esac
23834 fi
23835
23836 echo $ac_n "checking for install location""... $ac_c" 1>&6
23837 echo "configure:23838: checking for install location" >&5
23838 echo "$ac_t""$gxx_include_dir" 1>&6
23839
23840
23841
23842
23843
23844
23845
23846 # Export all the include and flag information to Makefiles.
23847
23848   # Root level of the build directory include sources.
23849   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23850
23851   # Passed down for canadian crosses.
23852   if test x"$CANADIAN" = xyes; then
23853     TOPLEVEL_INCLUDES='-I$(includedir)'
23854   fi
23855
23856   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23857
23858   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23859
23860   # Now, export this to all the little Makefiles....
23861   
23862   
23863   
23864   
23865
23866
23867   # Optimization flags that are probably a good idea for thrill-seekers. Just
23868   # uncomment the lines below and make, everything else is ready to go...
23869   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23870   OPTIMIZE_CXXFLAGS=
23871   
23872
23873   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23874   
23875
23876
23877 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23878    grep "enable shared" > /dev/null; then
23879   LIBSUPCXX_PICFLAGS=-prefer-pic
23880 else
23881   LIBSUPCXX_PICFLAGS=
23882 fi
23883
23884
23885 # Generate the various Makefiles, include files, and scripts.
23886 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am,
23887 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
23888 # will end up installed in the correct place. To work around this not being 
23889 # passed # down from config-ml.in -> top_srcdir/Makefile.am ->
23890 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23891 trap '' 1 2 15
23892 cat > confcache <<\EOF
23893 # This file is a shell script that caches the results of configure
23894 # tests run on this system so they can be shared between configure
23895 # scripts and configure runs.  It is not useful on other systems.
23896 # If it contains results you don't want to keep, you may remove or edit it.
23897 #
23898 # By default, configure uses ./config.cache as the cache file,
23899 # creating it if it does not exist already.  You can give configure
23900 # the --cache-file=FILE option to use a different cache file; that is
23901 # what configure does when it calls configure scripts in
23902 # subdirectories, so they share the cache.
23903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23904 # config.status only pays attention to the cache file if you give it the
23905 # --recheck option to rerun configure.
23906 #
23907 EOF
23908 # The following way of writing the cache mishandles newlines in values,
23909 # but we know of no workaround that is simple, portable, and efficient.
23910 # So, don't put newlines in cache variables' values.
23911 # Ultrix sh set writes to stderr and can't be redirected directly,
23912 # and sets the high bit in the cache file unless we assign to the vars.
23913 (set) 2>&1 |
23914   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23915   *ac_space=\ *)
23916     # `set' does not quote correctly, so add quotes (double-quote substitution
23917     # turns \\\\ into \\, and sed turns \\ into \).
23918     sed -n \
23919       -e "s/'/'\\\\''/g" \
23920       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23921     ;;
23922   *)
23923     # `set' quotes correctly as required by POSIX, so do not add quotes.
23924     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23925     ;;
23926   esac >> confcache
23927 if cmp -s $cache_file confcache; then
23928   :
23929 else
23930   if test -w $cache_file; then
23931     echo "updating cache $cache_file"
23932     cat confcache > $cache_file
23933   else
23934     echo "not updating unwritable cache $cache_file"
23935   fi
23936 fi
23937 rm -f confcache
23938
23939 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23940
23941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23942 # Let make expand exec_prefix.
23943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23944
23945 # Any assignment to VPATH causes Sun make to only execute
23946 # the first set of double-colon rules, so remove it if not needed.
23947 # If there is a colon in the path, we need to keep it.
23948 if test "x$srcdir" = x.; then
23949   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23950 fi
23951
23952 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23953
23954 DEFS=-DHAVE_CONFIG_H
23955
23956 # Without the "./", some shells look in PATH for config.status.
23957 : ${CONFIG_STATUS=./config.status}
23958
23959 echo creating $CONFIG_STATUS
23960 rm -f $CONFIG_STATUS
23961 cat > $CONFIG_STATUS <<EOF
23962 #! /bin/sh
23963 # Generated automatically by configure.
23964 # Run this file to recreate the current configuration.
23965 # This directory was configured as follows,
23966 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23967 #
23968 # $0 $ac_configure_args
23969 #
23970 # Compiler output produced by configure, useful for debugging
23971 # configure, is in ./config.log if it exists.
23972
23973 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23974 for ac_option
23975 do
23976   case "\$ac_option" in
23977   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23978     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23979     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23980   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23981     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23982     exit 0 ;;
23983   -help | --help | --hel | --he | --h)
23984     echo "\$ac_cs_usage"; exit 0 ;;
23985   *) echo "\$ac_cs_usage"; exit 1 ;;
23986   esac
23987 done
23988
23989 ac_given_srcdir=$srcdir
23990 ac_given_INSTALL="$INSTALL"
23991
23992 trap 'rm -fr `echo "Makefile \
23993 include/Makefile src/Makefile \
23994 libmath/Makefile libsupc++/Makefile \
23995 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23996 EOF
23997 cat >> $CONFIG_STATUS <<EOF
23998
23999 # Protect against being on the right side of a sed subst in config.status.
24000 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24001  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24002 $ac_vpsub
24003 $extrasub
24004 s%@SHELL@%$SHELL%g
24005 s%@CFLAGS@%$CFLAGS%g
24006 s%@CPPFLAGS@%$CPPFLAGS%g
24007 s%@CXXFLAGS@%$CXXFLAGS%g
24008 s%@FFLAGS@%$FFLAGS%g
24009 s%@DEFS@%$DEFS%g
24010 s%@LDFLAGS@%$LDFLAGS%g
24011 s%@LIBS@%$LIBS%g
24012 s%@exec_prefix@%$exec_prefix%g
24013 s%@prefix@%$prefix%g
24014 s%@program_transform_name@%$program_transform_name%g
24015 s%@bindir@%$bindir%g
24016 s%@sbindir@%$sbindir%g
24017 s%@libexecdir@%$libexecdir%g
24018 s%@datadir@%$datadir%g
24019 s%@sysconfdir@%$sysconfdir%g
24020 s%@sharedstatedir@%$sharedstatedir%g
24021 s%@localstatedir@%$localstatedir%g
24022 s%@libdir@%$libdir%g
24023 s%@includedir@%$includedir%g
24024 s%@oldincludedir@%$oldincludedir%g
24025 s%@infodir@%$infodir%g
24026 s%@mandir@%$mandir%g
24027 s%@PACKAGE@%$PACKAGE%g
24028 s%@libtool_VERSION@%$libtool_VERSION%g
24029 s%@toplevel_srcdir@%$toplevel_srcdir%g
24030 s%@host@%$host%g
24031 s%@host_alias@%$host_alias%g
24032 s%@host_cpu@%$host_cpu%g
24033 s%@host_vendor@%$host_vendor%g
24034 s%@host_os@%$host_os%g
24035 s%@target@%$target%g
24036 s%@target_alias@%$target_alias%g
24037 s%@target_cpu@%$target_cpu%g
24038 s%@target_vendor@%$target_vendor%g
24039 s%@target_os@%$target_os%g
24040 s%@build@%$build%g
24041 s%@build_alias@%$build_alias%g
24042 s%@build_cpu@%$build_cpu%g
24043 s%@build_vendor@%$build_vendor%g
24044 s%@build_os@%$build_os%g
24045 s%@glibcpp_builddir@%$glibcpp_builddir%g
24046 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24047 s%@AWK@%$AWK%g
24048 s%@LN_S@%$LN_S%g
24049 s%@glibcpp_basedir@%$glibcpp_basedir%g
24050 s%@CC@%$CC%g
24051 s%@glibcpp_CXX@%$glibcpp_CXX%g
24052 s%@AS@%$AS%g
24053 s%@AR@%$AR%g
24054 s%@RANLIB@%$RANLIB%g
24055 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24056 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24057 s%@INSTALL_DATA@%$INSTALL_DATA%g
24058 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24059 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24060 s%@MAINT@%$MAINT%g
24061 s%@EXEEXT@%$EXEEXT%g
24062 s%@VERSION@%$VERSION%g
24063 s%@ACLOCAL@%$ACLOCAL%g
24064 s%@AUTOCONF@%$AUTOCONF%g
24065 s%@AUTOMAKE@%$AUTOMAKE%g
24066 s%@AUTOHEADER@%$AUTOHEADER%g
24067 s%@MAKEINFO@%$MAKEINFO%g
24068 s%@SET_MAKE@%$SET_MAKE%g
24069 s%@OBJEXT@%$OBJEXT%g
24070 s%@STRIP@%$STRIP%g
24071 s%@LIBTOOL@%$LIBTOOL%g
24072 s%@CXXCPP@%$CXXCPP%g
24073 s%@enable_shared@%$enable_shared%g
24074 s%@enable_static@%$enable_static%g
24075 s%@ifGNUmake@%$ifGNUmake%g
24076 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24077 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24078 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24079 s%@glibcpp_PCHFLAGS@%$glibcpp_PCHFLAGS%g
24080 s%@CSTDIO_H@%$CSTDIO_H%g
24081 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24082 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24083 s%@CPP@%$CPP%g
24084 s%@check_msgfmt@%$check_msgfmt%g
24085 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24086 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24087 s%@glibcpp_localedir@%$glibcpp_localedir%g
24088 s%@USE_NLS@%$USE_NLS%g
24089 s%@CLOCALE_H@%$CLOCALE_H%g
24090 s%@CCODECVT_H@%$CCODECVT_H%g
24091 s%@CMESSAGES_H@%$CMESSAGES_H%g
24092 s%@CCODECVT_CC@%$CCODECVT_CC%g
24093 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24094 s%@CCTYPE_CC@%$CCTYPE_CC%g
24095 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24096 s%@CMONEY_CC@%$CMONEY_CC%g
24097 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24098 s%@CTIME_H@%$CTIME_H%g
24099 s%@CTIME_CC@%$CTIME_CC%g
24100 s%@CLOCALE_CC@%$CLOCALE_CC%g
24101 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24102 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24103 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24104 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24105 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24106 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24107 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24108 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24109 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24110 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24111 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24112 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24113 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24114 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24115 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24116 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24117 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24118 s%@WERROR@%$WERROR%g
24119 s%@SYMVER_MAP@%$SYMVER_MAP%g
24120 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24121 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24122 s%@baseline_dir@%$baseline_dir%g
24123 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24124 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24125 s%@GLIBCPP_TEST_ABI_TRUE@%$GLIBCPP_TEST_ABI_TRUE%g
24126 s%@GLIBCPP_TEST_ABI_FALSE@%$GLIBCPP_TEST_ABI_FALSE%g
24127 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24128 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24129 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24130 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24131 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24132 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24133 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24134 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24135 s%@gxx_include_dir@%$gxx_include_dir%g
24136 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24137 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24138 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24139 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24140 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24141 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24142 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24143 s%@WARN_FLAGS@%$WARN_FLAGS%g
24144 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24145
24146 CEOF
24147 EOF
24148
24149 cat >> $CONFIG_STATUS <<\EOF
24150
24151 # Split the substitutions into bite-sized pieces for seds with
24152 # small command number limits, like on Digital OSF/1 and HP-UX.
24153 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24154 ac_file=1 # Number of current file.
24155 ac_beg=1 # First line for current file.
24156 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24157 ac_more_lines=:
24158 ac_sed_cmds=""
24159 while $ac_more_lines; do
24160   if test $ac_beg -gt 1; then
24161     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24162   else
24163     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24164   fi
24165   if test ! -s conftest.s$ac_file; then
24166     ac_more_lines=false
24167     rm -f conftest.s$ac_file
24168   else
24169     if test -z "$ac_sed_cmds"; then
24170       ac_sed_cmds="sed -f conftest.s$ac_file"
24171     else
24172       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24173     fi
24174     ac_file=`expr $ac_file + 1`
24175     ac_beg=$ac_end
24176     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24177   fi
24178 done
24179 if test -z "$ac_sed_cmds"; then
24180   ac_sed_cmds=cat
24181 fi
24182 EOF
24183
24184 cat >> $CONFIG_STATUS <<EOF
24185
24186 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24187 include/Makefile src/Makefile \
24188 libmath/Makefile libsupc++/Makefile \
24189 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24190 EOF
24191 cat >> $CONFIG_STATUS <<\EOF
24192 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24193   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24194   case "$ac_file" in
24195   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24196        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24197   *) ac_file_in="${ac_file}.in" ;;
24198   esac
24199
24200   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24201
24202   # Remove last slash and all that follows it.  Not all systems have dirname.
24203   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24204   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24205     # The file is in a subdirectory.
24206     test ! -d "$ac_dir" && mkdir "$ac_dir"
24207     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24208     # A "../" for each directory in $ac_dir_suffix.
24209     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24210   else
24211     ac_dir_suffix= ac_dots=
24212   fi
24213
24214   case "$ac_given_srcdir" in
24215   .)  srcdir=.
24216       if test -z "$ac_dots"; then top_srcdir=.
24217       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24218   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24219   *) # Relative path.
24220     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24221     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24222   esac
24223
24224   case "$ac_given_INSTALL" in
24225   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24226   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24227   esac
24228
24229   echo creating "$ac_file"
24230   rm -f "$ac_file"
24231   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24232   case "$ac_file" in
24233   *Makefile*) ac_comsub="1i\\
24234 # $configure_input" ;;
24235   *) ac_comsub= ;;
24236   esac
24237
24238   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24239   sed -e "$ac_comsub
24240 s%@configure_input@%$configure_input%g
24241 s%@srcdir@%$srcdir%g
24242 s%@top_srcdir@%$top_srcdir%g
24243 s%@INSTALL@%$INSTALL%g
24244 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24245 fi; done
24246 rm -f conftest.s*
24247
24248 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24249 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24250 #
24251 # ac_d sets the value in "#define NAME VALUE" lines.
24252 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24253 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24254 ac_dC='\3'
24255 ac_dD='%g'
24256 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24257 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24258 ac_uB='\([      ]\)%\1#\2define\3'
24259 ac_uC=' '
24260 ac_uD='\4%g'
24261 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24262 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24263 ac_eB='$%\1#\2define\3'
24264 ac_eC=' '
24265 ac_eD='%g'
24266
24267 if test "${CONFIG_HEADERS+set}" != set; then
24268 EOF
24269 cat >> $CONFIG_STATUS <<EOF
24270   CONFIG_HEADERS="config.h"
24271 EOF
24272 cat >> $CONFIG_STATUS <<\EOF
24273 fi
24274 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24275   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24276   case "$ac_file" in
24277   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24278        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24279   *) ac_file_in="${ac_file}.in" ;;
24280   esac
24281
24282   echo creating $ac_file
24283
24284   rm -f conftest.frag conftest.in conftest.out
24285   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24286   cat $ac_file_inputs > conftest.in
24287
24288 EOF
24289
24290 # Transform confdefs.h into a sed script conftest.vals that substitutes
24291 # the proper values into config.h.in to produce config.h.  And first:
24292 # Protect against being on the right side of a sed subst in config.status.
24293 # Protect against being in an unquoted here document in config.status.
24294 rm -f conftest.vals
24295 cat > conftest.hdr <<\EOF
24296 s/[\\&%]/\\&/g
24297 s%[\\$`]%\\&%g
24298 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24299 s%ac_d%ac_u%gp
24300 s%ac_u%ac_e%gp
24301 EOF
24302 sed -n -f conftest.hdr confdefs.h > conftest.vals
24303 rm -f conftest.hdr
24304
24305 # This sed command replaces #undef with comments.  This is necessary, for
24306 # example, in the case of _POSIX_SOURCE, which is predefined and required
24307 # on some systems where configure will not decide to define it.
24308 cat >> conftest.vals <<\EOF
24309 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24310 EOF
24311
24312 # Break up conftest.vals because some shells have a limit on
24313 # the size of here documents, and old seds have small limits too.
24314
24315 rm -f conftest.tail
24316 while :
24317 do
24318   ac_lines=`grep -c . conftest.vals`
24319   # grep -c gives empty output for an empty file on some AIX systems.
24320   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24321   # Write a limited-size here document to conftest.frag.
24322   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24323   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24324   echo 'CEOF
24325   sed -f conftest.frag conftest.in > conftest.out
24326   rm -f conftest.in
24327   mv conftest.out conftest.in
24328 ' >> $CONFIG_STATUS
24329   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24330   rm -f conftest.vals
24331   mv conftest.tail conftest.vals
24332 done
24333 rm -f conftest.vals
24334
24335 cat >> $CONFIG_STATUS <<\EOF
24336   rm -f conftest.frag conftest.h
24337   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24338   cat conftest.in >> conftest.h
24339   rm -f conftest.in
24340   if cmp -s $ac_file conftest.h 2>/dev/null; then
24341     echo "$ac_file is unchanged"
24342     rm -f conftest.h
24343   else
24344     # Remove last slash and all that follows it.  Not all systems have dirname.
24345       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24346       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24347       # The file is in a subdirectory.
24348       test ! -d "$ac_dir" && mkdir "$ac_dir"
24349     fi
24350     rm -f $ac_file
24351     mv conftest.h $ac_file
24352   fi
24353 fi; done
24354
24355 EOF
24356 cat >> $CONFIG_STATUS <<EOF
24357
24358 srcdir=${srcdir}
24359 host=${host}
24360 target=${target}
24361 with_target_subdir=${with_target_subdir}
24362 with_build_subdir=${with_build_subdir}
24363 with_multisubdir=${with_multisubdir}
24364 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24365 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24366 glibcpp_basedir=${glibcpp_basedir}
24367 CC="${CC}"
24368 CXX="${CXX}"
24369 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24370
24371 EOF
24372 cat >> $CONFIG_STATUS <<\EOF
24373 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24374 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24375  if test -n "$CONFIG_FILES"; then
24376    if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24377      LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24378      # Ony modify Makefiles that are just being created.
24379      case " $CONFIG_FILES" in
24380        *" Makefile"*)
24381          ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24382          ;;
24383      esac
24384      case $CONFIG_FILES in
24385        *src/Makefile*)
24386          grep '^MULTISUBDIR =' Makefile >> src/Makefile
24387          ;;
24388      esac
24389      case $CONFIG_FILES in
24390        *libsupc++/Makefile*)
24391          grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24392          ;;
24393      esac
24394      case $CONFIG_FILES in
24395        *testsuite/Makefile*)
24396          grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24397          ;;
24398      esac
24399    fi
24400  fi
24401  chmod +x scripts/check_survey
24402  chmod +x scripts/testsuite_flags
24403 exit 0
24404 EOF
24405 chmod +x $CONFIG_STATUS
24406 rm -fr confdefs* $ac_clean_files
24407 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24408
24409
24410
24411 # Sanity checking & User-visible messages.
24412 # Checks down here, otherwise they get scrolled off before
24413 # the user will notice.
24414
24415 # Trying to get more people to read documentation.  Possibly remove
24416 # check and warn all the time. There is no "informational" AC_MSG_
24417 # macro, so these are going to be printed even when --quiet/--silent
24418 # is given.
24419 if test ! -f stamp-sanity-warned; then
24420   touch stamp-sanity-warned
24421   echo ""
24422   echo "Please make certain that you read the installation information here:"
24423   echo "  faster => ${srcdir}/docs/html/install.html"
24424   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24425   echo ""
24426   echo "and the configuration information here:"
24427   echo "  faster => ${srcdir}/docs/html/configopts.html"
24428   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24429   echo ""
24430   echo "before proceeding with ${_cv_gnu_make_command}."
24431   echo ""
24432 fi