OSDN Git Service

* config.table: Accept i[345867]86 variant.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-cstdio         enable stdio for target io package.
38   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
39   "
40 ac_help="$ac_help
41   --enable-clocale        enable model for target locale package.
42   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
43   "
44 ac_help="$ac_help
45   --enable-nls            use Native Language Support (default)"
46 ac_help="$ac_help
47   --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57   --enable-libunwind-exceptions  force use of libunwind for exceptions"
58 ac_help="$ac_help
59   --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
62                                   [default=]"
63 ac_help="$ac_help
64   --enable-debug          build extra debug library [default=no]"
65 ac_help="$ac_help
66   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
67                         library;[default=none]"
68 ac_help="$ac_help
69   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71   --with-gxx-include-dir  the installation directory for include files"
72 ac_help="$ac_help
73   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
74
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
108
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
115
116 ac_prev=
117 for ac_option
118 do
119
120   # If the previous option needs an argument, assign it.
121   if test -n "$ac_prev"; then
122     eval "$ac_prev=\$ac_option"
123     ac_prev=
124     continue
125   fi
126
127   case "$ac_option" in
128   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129   *) ac_optarg= ;;
130   esac
131
132   # Accept the important Cygnus configure options, so we can diagnose typos.
133
134   case "$ac_option" in
135
136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
137     ac_prev=bindir ;;
138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139     bindir="$ac_optarg" ;;
140
141   -build | --build | --buil | --bui | --bu)
142     ac_prev=build ;;
143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144     build="$ac_optarg" ;;
145
146   -cache-file | --cache-file | --cache-fil | --cache-fi \
147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148     ac_prev=cache_file ;;
149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151     cache_file="$ac_optarg" ;;
152
153   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154     ac_prev=datadir ;;
155   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156   | --da=*)
157     datadir="$ac_optarg" ;;
158
159   -disable-* | --disable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     eval "enable_${ac_feature}=no" ;;
167
168   -enable-* | --enable-*)
169     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170     # Reject names that are not valid shell variable names.
171     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173     fi
174     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175     case "$ac_option" in
176       *=*) ;;
177       *) ac_optarg=yes ;;
178     esac
179     eval "enable_${ac_feature}='$ac_optarg'" ;;
180
181   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183   | --exec | --exe | --ex)
184     ac_prev=exec_prefix ;;
185   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187   | --exec=* | --exe=* | --ex=*)
188     exec_prefix="$ac_optarg" ;;
189
190   -gas | --gas | --ga | --g)
191     # Obsolete; use --with-gas.
192     with_gas=yes ;;
193
194   -help | --help | --hel | --he)
195     # Omit some internal or obsolete options to make the list less imposing.
196     # This message is too long to be a string in the A/UX 3.1 sh.
197     cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201   --cache-file=FILE       cache test results in FILE
202   --help                  print this message
203   --no-create             do not create output files
204   --quiet, --silent       do not print \`checking...' messages
205   --version               print the version of autoconf that created configure
206 Directory and file names:
207   --prefix=PREFIX         install architecture-independent files in PREFIX
208                           [$ac_default_prefix]
209   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
210                           [same as prefix]
211   --bindir=DIR            user executables in DIR [EPREFIX/bin]
212   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
213   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
214   --datadir=DIR           read-only architecture-independent data in DIR
215                           [PREFIX/share]
216   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
217   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
218                           [PREFIX/com]
219   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
220   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
221   --includedir=DIR        C header files in DIR [PREFIX/include]
222   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
223   --infodir=DIR           info documentation in DIR [PREFIX/info]
224   --mandir=DIR            man documentation in DIR [PREFIX/man]
225   --srcdir=DIR            find the sources in DIR [configure dir or ..]
226   --program-prefix=PREFIX prepend PREFIX to installed program names
227   --program-suffix=SUFFIX append SUFFIX to installed program names
228   --program-transform-name=PROGRAM
229                           run sed PROGRAM on installed program names
230 EOF
231     cat << EOF
232 Host type:
233   --build=BUILD           configure for building on BUILD [BUILD=HOST]
234   --host=HOST             configure for HOST [guessed]
235   --target=TARGET         configure for TARGET [TARGET=HOST]
236 Features and packages:
237   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
238   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
239   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
240   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
241   --x-includes=DIR        X include files are in DIR
242   --x-libraries=DIR       X library files are in DIR
243 EOF
244     if test -n "$ac_help"; then
245       echo "--enable and --with options recognized:$ac_help"
246     fi
247     exit 0 ;;
248
249   -host | --host | --hos | --ho)
250     ac_prev=host ;;
251   -host=* | --host=* | --hos=* | --ho=*)
252     host="$ac_optarg" ;;
253
254   -includedir | --includedir | --includedi | --included | --include \
255   | --includ | --inclu | --incl | --inc)
256     ac_prev=includedir ;;
257   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258   | --includ=* | --inclu=* | --incl=* | --inc=*)
259     includedir="$ac_optarg" ;;
260
261   -infodir | --infodir | --infodi | --infod | --info | --inf)
262     ac_prev=infodir ;;
263   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264     infodir="$ac_optarg" ;;
265
266   -libdir | --libdir | --libdi | --libd)
267     ac_prev=libdir ;;
268   -libdir=* | --libdir=* | --libdi=* | --libd=*)
269     libdir="$ac_optarg" ;;
270
271   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272   | --libexe | --libex | --libe)
273     ac_prev=libexecdir ;;
274   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275   | --libexe=* | --libex=* | --libe=*)
276     libexecdir="$ac_optarg" ;;
277
278   -localstatedir | --localstatedir | --localstatedi | --localstated \
279   | --localstate | --localstat | --localsta | --localst \
280   | --locals | --local | --loca | --loc | --lo)
281     ac_prev=localstatedir ;;
282   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285     localstatedir="$ac_optarg" ;;
286
287   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288     ac_prev=mandir ;;
289   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290     mandir="$ac_optarg" ;;
291
292   -nfp | --nfp | --nf)
293     # Obsolete; use --without-fp.
294     with_fp=no ;;
295
296   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297   | --no-cr | --no-c)
298     no_create=yes ;;
299
300   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302     no_recursion=yes ;;
303
304   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306   | --oldin | --oldi | --old | --ol | --o)
307     ac_prev=oldincludedir ;;
308   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311     oldincludedir="$ac_optarg" ;;
312
313   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314     ac_prev=prefix ;;
315   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316     prefix="$ac_optarg" ;;
317
318   -program-prefix | --program-prefix | --program-prefi | --program-pref \
319   | --program-pre | --program-pr | --program-p)
320     ac_prev=program_prefix ;;
321   -program-prefix=* | --program-prefix=* | --program-prefi=* \
322   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323     program_prefix="$ac_optarg" ;;
324
325   -program-suffix | --program-suffix | --program-suffi | --program-suff \
326   | --program-suf | --program-su | --program-s)
327     ac_prev=program_suffix ;;
328   -program-suffix=* | --program-suffix=* | --program-suffi=* \
329   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330     program_suffix="$ac_optarg" ;;
331
332   -program-transform-name | --program-transform-name \
333   | --program-transform-nam | --program-transform-na \
334   | --program-transform-n | --program-transform- \
335   | --program-transform | --program-transfor \
336   | --program-transfo | --program-transf \
337   | --program-trans | --program-tran \
338   | --progr-tra | --program-tr | --program-t)
339     ac_prev=program_transform_name ;;
340   -program-transform-name=* | --program-transform-name=* \
341   | --program-transform-nam=* | --program-transform-na=* \
342   | --program-transform-n=* | --program-transform-=* \
343   | --program-transform=* | --program-transfor=* \
344   | --program-transfo=* | --program-transf=* \
345   | --program-trans=* | --program-tran=* \
346   | --progr-tra=* | --program-tr=* | --program-t=*)
347     program_transform_name="$ac_optarg" ;;
348
349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350   | -silent | --silent | --silen | --sile | --sil)
351     silent=yes ;;
352
353   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354     ac_prev=sbindir ;;
355   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356   | --sbi=* | --sb=*)
357     sbindir="$ac_optarg" ;;
358
359   -sharedstatedir | --sharedstatedir | --sharedstatedi \
360   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361   | --sharedst | --shareds | --shared | --share | --shar \
362   | --sha | --sh)
363     ac_prev=sharedstatedir ;;
364   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367   | --sha=* | --sh=*)
368     sharedstatedir="$ac_optarg" ;;
369
370   -site | --site | --sit)
371     ac_prev=site ;;
372   -site=* | --site=* | --sit=*)
373     site="$ac_optarg" ;;
374
375   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376     ac_prev=srcdir ;;
377   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378     srcdir="$ac_optarg" ;;
379
380   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381   | --syscon | --sysco | --sysc | --sys | --sy)
382     ac_prev=sysconfdir ;;
383   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385     sysconfdir="$ac_optarg" ;;
386
387   -target | --target | --targe | --targ | --tar | --ta | --t)
388     ac_prev=target ;;
389   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390     target="$ac_optarg" ;;
391
392   -v | -verbose | --verbose | --verbos | --verbo | --verb)
393     verbose=yes ;;
394
395   -version | --version | --versio | --versi | --vers)
396     echo "configure generated by autoconf version 2.13"
397     exit 0 ;;
398
399   -with-* | --with-*)
400     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401     # Reject names that are not valid shell variable names.
402     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404     fi
405     ac_package=`echo $ac_package| sed 's/-/_/g'`
406     case "$ac_option" in
407       *=*) ;;
408       *) ac_optarg=yes ;;
409     esac
410     eval "with_${ac_package}='$ac_optarg'" ;;
411
412   -without-* | --without-*)
413     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414     # Reject names that are not valid shell variable names.
415     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417     fi
418     ac_package=`echo $ac_package| sed 's/-/_/g'`
419     eval "with_${ac_package}=no" ;;
420
421   --x)
422     # Obsolete; use --with-x.
423     with_x=yes ;;
424
425   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426   | --x-incl | --x-inc | --x-in | --x-i)
427     ac_prev=x_includes ;;
428   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430     x_includes="$ac_optarg" ;;
431
432   -x-libraries | --x-libraries | --x-librarie | --x-librari \
433   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434     ac_prev=x_libraries ;;
435   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437     x_libraries="$ac_optarg" ;;
438
439   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440     ;;
441
442   *)
443     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444       echo "configure: warning: $ac_option: invalid host type" 1>&2
445     fi
446     if test "x$nonopt" != xNONE; then
447       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448     fi
449     nonopt="$ac_option"
450     ;;
451
452   esac
453 done
454
455 if test -n "$ac_prev"; then
456   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 fi
458
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470   exec 6>/dev/null
471 else
472   exec 6>&1
473 fi
474 exec 5>./config.log
475
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
480
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
485 do
486   case "$ac_arg" in
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c) ;;
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494   esac
495 done
496
497 # NLS nuisances.
498 # Only set these to C if already set.  These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
506
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
511
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
515
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518   ac_srcdir_defaulted=yes
519   # Try the directory containing this script, then its parent.
520   ac_prog=$0
521   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523   srcdir=$ac_confdir
524   if test ! -r $srcdir/$ac_unique_file; then
525     srcdir=..
526   fi
527 else
528   ac_srcdir_defaulted=no
529 fi
530 if test ! -r $srcdir/$ac_unique_file; then
531   if test "$ac_srcdir_defaulted" = yes; then
532     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533   else
534     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535   fi
536 fi
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541   if test "x$prefix" != xNONE; then
542     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543   else
544     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545   fi
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported.  Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
590
591 PACKAGE=libstdc++
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
595
596
597
598       # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600   enableval="$enable_multilib"
601   case "${enableval}" in
602     yes) multilib=yes ;;
603     no)  multilib=no ;;
604     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605    esac
606 else
607   multilib=yes
608 fi
609
610   # When building with srcdir == objdir, links to the source files will
611   # be created in directories within the target_subdir.  We have to
612   # adjust toplevel_srcdir accordingly, so that configure finds
613   # install-sh and other auxiliary files that live in the top-level
614   # source directory.
615   if test "${srcdir}" = "."; then
616     if test -z "${with_target_subdir}"; then
617       toprel=".."
618     else
619       if test "${with_target_subdir}" != "."; then
620         toprel="${with_multisrctop}../.."
621       else
622         toprel="${with_multisrctop}.."
623       fi
624     fi
625   else
626     toprel=".."
627   fi
628   ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630   if test -f $ac_dir/install-sh; then
631     ac_aux_dir=$ac_dir
632     ac_install_sh="$ac_aux_dir/install-sh -c"
633     break
634   elif 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   fi
639 done
640 if test -z "$ac_aux_dir"; then
641   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
642 fi
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646
647   toplevel_srcdir=\${top_srcdir}/$toprel
648   
649
650
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
652 #
653 # You will slowly go insane if you do not grok the following fact:  when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/.  `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf.  Therefore, 'target' and
657 # 'host' will always be the same.  This makes sense both for native and
658 # cross compilers, just think about it for a little while.  :-)
659 #
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
662 #
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure.  In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 #    same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 #    as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699   case $nonopt in
700   NONE)
701     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703     fi ;;
704   *) host_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720   case $nonopt in
721   NONE) target_alias=$host_alias ;;
722   *) target_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738   case $nonopt in
739   NONE) build_alias=$host_alias ;;
740   *) build_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751   test "$program_prefix$program_suffix$program_transform_name" = \
752     NONENONEs,x,x, &&
753   program_prefix=${target_alias}-
754
755 target_alias=${target_alias-$target}
756
757
758 # Runs configure.target, 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 mawk gawk 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   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
918   
919
920   # Never versions of autoconf add an underscore to these functions.
921   # Prevent future problems ...
922   
923   
924   
925   
926
927   # AC_PROG_CC
928   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
929   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
930   # are probably using a cross compiler, which will not be able to fully
931   # link an executable.  This is addressed in later versions of autoconf.
932
933   
934
935       
936   # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   if test -n "$CC"; then
944   ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
947   ac_dummy="$PATH"
948   for ac_dir in $ac_dummy; do
949     test -z "$ac_dir" && ac_dir=.
950     if test -f $ac_dir/$ac_word; then
951       ac_cv_prog_CC="gcc"
952       break
953     fi
954   done
955   IFS="$ac_save_ifs"
956 fi
957 fi
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960   echo "$ac_t""$CC" 1>&6
961 else
962   echo "$ac_t""no" 1>&6
963 fi
964
965   if test -z "$CC"; then
966     # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   if test -n "$CC"; then
974   ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
977   ac_prog_rejected=no
978   ac_dummy="$PATH"
979   for ac_dir in $ac_dummy; do
980     test -z "$ac_dir" && ac_dir=.
981     if test -f $ac_dir/$ac_word; then
982       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983         ac_prog_rejected=yes
984         continue
985       fi
986       ac_cv_prog_CC="cc"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992   # We found a bogon in the path, so make sure we never use it.
993   set dummy $ac_cv_prog_CC
994   shift
995   if test $# -gt 0; then
996     # We chose a different compiler from the bogus one.
997     # However, it has the same basename, so the bogon will be chosen
998     # first if we set CC to just the basename; use the full file name.
999     shift
1000     set dummy "$ac_dir/$ac_word" "$@"
1001     shift
1002     ac_cv_prog_CC="$@"
1003   fi
1004 fi
1005 fi
1006 fi
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009   echo "$ac_t""$CC" 1>&6
1010 else
1011   echo "$ac_t""no" 1>&6
1012 fi
1013
1014     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015   fi
1016
1017   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022   cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024   yes;
1025 #endif
1026 EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028   ac_cv_prog_gcc=yes
1029 else
1030   ac_cv_prog_gcc=no
1031 fi
1032 fi
1033
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036   if test $ac_cv_prog_gcc = yes; then
1037     GCC=yes
1038           ac_test_CFLAGS="${CFLAGS+set}"
1039     ac_save_CFLAGS="$CFLAGS"
1040     CFLAGS=
1041     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048   ac_cv_prog_cc_g=yes
1049 else
1050   ac_cv_prog_cc_g=no
1051 fi
1052 rm -f conftest*
1053
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057     if test "$ac_test_CFLAGS" = set; then
1058       CFLAGS="$ac_save_CFLAGS"
1059     elif test $ac_cv_prog_cc_g = yes; then
1060       CFLAGS="-g -O2"
1061     else
1062       CFLAGS="-O2"
1063     fi
1064   else
1065     GCC=
1066     test "${CFLAGS+set}" = set || CFLAGS="-g"
1067   fi
1068   
1069
1070   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1071   # will try to link in libstdc++.
1072   
1073
1074       
1075   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076   # flags that come in CXX while configuring libstdc++.  They're different
1077   # from those used for all other target libraries.  If CXX is set in
1078   # the environment, respect that here.
1079   glibcpp_CXX=$CXX
1080   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1081 do
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087   echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089   if test -n "$glibcpp_CXX"; then
1090   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1093   ac_dummy="$PATH"
1094   for ac_dir in $ac_dummy; do
1095     test -z "$ac_dir" && ac_dir=.
1096     if test -f $ac_dir/$ac_word; then
1097       ac_cv_prog_glibcpp_CXX="$ac_prog"
1098       break
1099     fi
1100   done
1101   IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106   echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108   echo "$ac_t""no" 1>&6
1109 fi
1110
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1114
1115   
1116   CXX=$glibcpp_CXX
1117   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1118
1119   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126   yes;
1127 #endif
1128 EOF
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130   ac_cv_prog_gxx=yes
1131 else
1132   ac_cv_prog_gxx=no
1133 fi
1134 fi
1135
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1137
1138   if test $ac_cv_prog_gxx = yes; then
1139     GXX=yes
1140                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141     ac_save_CXXFLAGS="$CXXFLAGS"
1142     CXXFLAGS=
1143     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150   ac_cv_prog_cxx_g=yes
1151 else
1152   ac_cv_prog_cxx_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159     if test "$ac_test_CXXFLAGS" = set; then
1160       CXXFLAGS="$ac_save_CXXFLAGS"
1161     elif test $ac_cv_prog_cxx_g = yes; then
1162       CXXFLAGS="-g -O2"
1163     else
1164       CXXFLAGS="-O2"
1165     fi
1166   else
1167     GXX=
1168     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169   fi
1170   
1171
1172   # For directory versioning (e.g., headers) and other variables.
1173   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175   gcc_version=`$glibcpp_CXX -dumpversion`
1176   echo "$ac_t""$gcc_version" 1>&6
1177
1178   # For some reason, gettext needs this.
1179   
1180         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix  $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error.  */
1192 /* We use char because int might match the return type of a gcc2
1193     builtin and then its argument prototype would still apply.  */
1194 char strerror();
1195
1196 int main() {
1197 strerror()
1198 ; return 0; }
1199 EOF
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201   rm -rf conftest*
1202   eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204   echo "configure: failed program was:" >&5
1205   cat conftest.$ac_ext >&5
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=no"
1208 fi
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1211
1212 fi
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214   echo "$ac_t""yes" 1>&6
1215   LIBS="$LIBS -lcposix"
1216 else
1217   echo "$ac_t""no" 1>&6
1218 fi
1219
1220   
1221
1222
1223   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228   echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230   if test -n "$AS"; then
1231   ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       ac_cv_prog_AS="${ac_tool_prefix}as"
1239       break
1240     fi
1241   done
1242   IFS="$ac_save_ifs"
1243   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1244 fi
1245 fi
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248   echo "$ac_t""$AS" 1>&6
1249 else
1250   echo "$ac_t""no" 1>&6
1251 fi
1252
1253
1254
1255   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   if test -n "$AR"; then
1263   ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1266   ac_dummy="$PATH"
1267   for ac_dir in $ac_dummy; do
1268     test -z "$ac_dir" && ac_dir=.
1269     if test -f $ac_dir/$ac_word; then
1270       ac_cv_prog_AR="${ac_tool_prefix}ar"
1271       break
1272     fi
1273   done
1274   IFS="$ac_save_ifs"
1275   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1276 fi
1277 fi
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280   echo "$ac_t""$AR" 1>&6
1281 else
1282   echo "$ac_t""no" 1>&6
1283 fi
1284
1285
1286
1287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   if test -n "$RANLIB"; then
1295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298   ac_dummy="$PATH"
1299   for ac_dir in $ac_dummy; do
1300     test -z "$ac_dir" && ac_dir=.
1301     if test -f $ac_dir/$ac_word; then
1302       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303       break
1304     fi
1305   done
1306   IFS="$ac_save_ifs"
1307 fi
1308 fi
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311   echo "$ac_t""$RANLIB" 1>&6
1312 else
1313   echo "$ac_t""no" 1>&6
1314 fi
1315
1316
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319   # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$RANLIB"; then
1327   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_RANLIB="ranlib"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344   echo "$ac_t""$RANLIB" 1>&6
1345 else
1346   echo "$ac_t""no" 1>&6
1347 fi
1348
1349 else
1350   RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353
1354   # Find a good install program.  We prefer a C program (faster),
1355 # so one script is as good as another.  But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1372   for ac_dir in $PATH; do
1373     # Account for people who put trailing slashes in PATH elements.
1374     case "$ac_dir/" in
1375     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376     *)
1377       # OSF1 and SCO ODT 3.0 have their own names for install.
1378       # Don't use installbsd from OSF since it installs stuff as root
1379       # by default.
1380       for ac_prog in ginstall scoinst install; do
1381         if test -f $ac_dir/$ac_prog; then
1382           if test $ac_prog = install &&
1383             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384             # AIX install.  It has an incompatible calling convention.
1385             :
1386           else
1387             ac_cv_path_install="$ac_dir/$ac_prog -c"
1388             break 2
1389           fi
1390         fi
1391       done
1392       ;;
1393     esac
1394   done
1395   IFS="$ac_save_IFS"
1396
1397 fi
1398   if test "${ac_cv_path_install+set}" = set; then
1399     INSTALL="$ac_cv_path_install"
1400   else
1401     # As a last resort, use the slow shell script.  We don't cache a
1402     # path for INSTALL within a source directory, because that will
1403     # break other packages using the cache if that directory is
1404     # removed, or if the path is relative.
1405     INSTALL="$ac_install_sh"
1406   fi
1407 fi
1408 echo "$ac_t""$INSTALL" 1>&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418
1419   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423   enableval="$enable_maintainer_mode"
1424   USE_MAINTAINER_MODE=$enableval
1425 else
1426   USE_MAINTAINER_MODE=no
1427 fi
1428
1429   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430   
1431
1432 if test $USE_MAINTAINER_MODE = yes; then
1433   MAINTAINER_MODE_TRUE=
1434   MAINTAINER_MODE_FALSE='#'
1435 else
1436   MAINTAINER_MODE_TRUE='#'
1437   MAINTAINER_MODE_FALSE=
1438 fi
1439   MAINT=$MAINTAINER_MODE_TRUE
1440   
1441
1442
1443   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1444   # at least currently, we never actually build a program, so we never
1445   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1446   # fails, because we are probably configuring with a cross compiler
1447   # which can't create executables.  So we include AC_EXEEXT to keep
1448   # automake happy, but we don't execute it, since we don't care about
1449   # the result.
1450   if false; then
1451     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452     # to nothing, so nothing would remain between `then' and `fi' if it
1453     # were not for the `:' below.
1454     :
1455     
1456
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460   echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463   ac_cv_exeext=.exe
1464 else
1465   rm -f conftest*
1466   echo 'int main () { return 0; }' > conftest.$ac_ext
1467   ac_cv_exeext=
1468   if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469     for file in conftest.*; do
1470       case $file in
1471       *.$ac_ext | *.c | *.o | *.obj) ;;
1472       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473       esac
1474     done
1475   else
1476     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1477   fi
1478   rm -f conftest*
1479   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 fi
1481 fi
1482
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1487
1488   fi
1489
1490   case ${glibcpp_basedir} in
1491     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493   esac
1494
1495   # Find platform-specific directories containing configuration info.  In
1496   # addition to possibly modifying the same flags, it also sets up symlinks.
1497   
1498   . ${glibcpp_basedir}/configure.target
1499   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501
1502
1503
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments.  Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517    if test "$*" = "X"; then
1518       # -L didn't work.
1519       set X `ls -t $srcdir/configure conftestfile`
1520    fi
1521    if test "$*" != "X $srcdir/configure conftestfile" \
1522       && test "$*" != "X conftestfile $srcdir/configure"; then
1523
1524       # If neither matched, then we have a broken ls.  This can happen
1525       # if, for instance, CONFIG_SHELL is bash and it inherits a
1526       # broken ls alias from the environment.  This has actually
1527       # happened.  Such a system could not be considered "sane".
1528       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1530    fi
1531
1532    test "$2" = conftestfile
1533    )
1534 then
1535    # Ok.
1536    :
1537 else
1538    { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1540 fi
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544   program_transform_name=
1545 else
1546   # Double any \ or $.  echo might interpret backslashes.
1547   cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551   rm -f conftestsed
1552 fi
1553 test "$program_prefix" != NONE &&
1554   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566   echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568   cat > conftestmake <<\EOF
1569 all:
1570         @echo 'ac_maketemp="${MAKE}"'
1571 EOF
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575   eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577   eval ac_cv_prog_make_${ac_make}_set=no
1578 fi
1579 rm -f conftestmake
1580 fi
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582   echo "$ac_t""yes" 1>&6
1583   SET_MAKE=
1584 else
1585   echo "$ac_t""no" 1>&6
1586   SET_MAKE="MAKE=${MAKE-make}"
1587 fi
1588
1589
1590 PACKAGE=$PACKAGE
1591
1592 VERSION=$gcc_version
1593
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 fi
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1599 EOF
1600
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1603 EOF
1604
1605
1606
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf.  Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614    ACLOCAL=aclocal-${am__api_version}
1615    echo "$ac_t""found" 1>&6
1616 else
1617    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618    echo "$ac_t""missing" 1>&6
1619 fi
1620
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf.  Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627    AUTOCONF=autoconf
1628    echo "$ac_t""found" 1>&6
1629 else
1630    AUTOCONF="$missing_dir/missing autoconf"
1631    echo "$ac_t""missing" 1>&6
1632 fi
1633
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf.  Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640    AUTOMAKE=automake-${am__api_version}
1641    echo "$ac_t""found" 1>&6
1642 else
1643    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644    echo "$ac_t""missing" 1>&6
1645 fi
1646
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf.  Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653    AUTOHEADER=autoheader
1654    echo "$ac_t""found" 1>&6
1655 else
1656    AUTOHEADER="$missing_dir/missing autoheader"
1657    echo "$ac_t""missing" 1>&6
1658 fi
1659
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf.  Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666    MAKEINFO=makeinfo
1667    echo "$ac_t""found" 1>&6
1668 else
1669    MAKEINFO="$missing_dir/missing makeinfo"
1670    echo "$ac_t""missing" 1>&6
1671 fi
1672
1673
1674
1675
1676
1677
1678
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681   enableval="$enable_shared"
1682   p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1686 *)
1687   enable_shared=no
1688   # Look at the argument we got.  We use all the common list separators.
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690   for pkg in $enableval; do
1691     if test "X$pkg" = "X$p"; then
1692       enable_shared=yes
1693     fi
1694   done
1695   IFS="$ac_save_ifs"
1696   ;;
1697 esac
1698 else
1699   enable_shared=yes
1700 fi
1701
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704   enableval="$enable_static"
1705   p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1709 *)
1710   enable_static=no
1711   # Look at the argument we got.  We use all the common list separators.
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713   for pkg in $enableval; do
1714     if test "X$pkg" = "X$p"; then
1715       enable_static=yes
1716     fi
1717   done
1718   IFS="$ac_save_ifs"
1719   ;;
1720 esac
1721 else
1722   enable_static=yes
1723 fi
1724
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727   enableval="$enable_fast_install"
1728   p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1732 *)
1733   enable_fast_install=no
1734   # Look at the argument we got.  We use all the common list separators.
1735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736   for pkg in $enableval; do
1737     if test "X$pkg" = "X$p"; then
1738       enable_fast_install=yes
1739     fi
1740   done
1741   IFS="$ac_save_ifs"
1742   ;;
1743 esac
1744 else
1745   enable_fast_install=yes
1746 fi
1747
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750   withval="$with_gnu_ld"
1751   test "$withval" = no || with_gnu_ld=yes
1752 else
1753   with_gnu_ld=no
1754 fi
1755
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758   # Check if gcc -print-prog-name=ld gives a path.
1759   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761   case $host in
1762   *-*-mingw*)
1763     # gcc leaves a trailing carriage return which upsets mingw
1764     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765   *)
1766     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767   esac
1768   case $ac_prog in
1769     # Accept absolute paths.
1770     [\\/]* | [A-Za-z]:[\\/]*)
1771       re_direlt='/[^/][^/]*/\.\./'
1772       # Canonicalize the path of ld
1773       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776       done
1777       test -z "$LD" && LD="$ac_prog"
1778       ;;
1779   "")
1780     # If it fails, then pretend we aren't using GCC.
1781     ac_prog=ld
1782     ;;
1783   *)
1784     # If it is relative, then search for the first ld in PATH.
1785     with_gnu_ld=unknown
1786     ;;
1787   esac
1788 elif test "$with_gnu_ld" = yes; then
1789   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1794 fi
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796   echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798   if test -z "$LD"; then
1799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800   for ac_dir in $PATH; do
1801     test -z "$ac_dir" && ac_dir=.
1802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803       lt_cv_path_LD="$ac_dir/$ac_prog"
1804       # Check to see if the program is GNU ld.  I'd rather use --version,
1805       # but apparently some GNU ld's only accept -v.
1806       # Break only if it was the GNU/non-GNU ld that we prefer.
1807       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808         test "$with_gnu_ld" != no && break
1809       else
1810         test "$with_gnu_ld" != yes && break
1811       fi
1812     fi
1813   done
1814   IFS="$ac_save_ifs"
1815 else
1816   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 fi
1818 fi
1819
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822   echo "$ac_t""$LD" 1>&6
1823 else
1824   echo "$ac_t""no" 1>&6
1825 fi
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834   lt_cv_prog_gnu_ld=yes
1835 else
1836   lt_cv_prog_gnu_ld=no
1837 fi
1838 fi
1839
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1842
1843
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   lt_cv_ld_reload_flag='-r'
1850 fi
1851
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   if test -n "$NM"; then
1862   # Let the user override the test.
1863   lt_cv_path_NM="$NM"
1864 else
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867     test -z "$ac_dir" && ac_dir=.
1868     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870       # Check to see if the nm accepts a BSD-compat flag.
1871       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872       #   nm: unknown option "B" ignored
1873       # Tru64's nm complains that /dev/null is an invalid object file
1874       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875         lt_cv_path_NM="$tmp_nm -B"
1876         break
1877       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878         lt_cv_path_NM="$tmp_nm -p"
1879         break
1880       else
1881         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882         continue # so that we can try to find one that supports BSD flags
1883       fi
1884     fi
1885   done
1886   IFS="$ac_save_ifs"
1887   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 fi
1889 fi
1890
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1893
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897   echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899   lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1912
1913 case $host_os in
1914 aix*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 beos*)
1919   lt_cv_deplibs_check_method=pass_all
1920   ;;
1921
1922 bsdi4*)
1923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924   lt_cv_file_magic_cmd='/usr/bin/file -L'
1925   lt_cv_file_magic_test_file=/shlib/libc.so
1926   ;;
1927
1928 cygwin* | mingw* |pw32*)
1929   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930   lt_cv_file_magic_cmd='$OBJDUMP -f'
1931   ;;
1932
1933 darwin* | rhapsody*)
1934   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935   lt_cv_file_magic_cmd='/usr/bin/file -L'
1936   case "$host_os" in
1937   rhapsody* | darwin1.012)
1938     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939     ;;
1940   *) # Darwin 1.3 on
1941     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942     ;;
1943   esac
1944   ;;
1945
1946 freebsd* )
1947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948     case $host_cpu in
1949     i*86 )
1950       # Not sure whether the presence of OpenBSD here was a mistake.
1951       # Let's accept both of them until this is cleared up.
1952       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953       lt_cv_file_magic_cmd=/usr/bin/file
1954       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955       ;;
1956     esac
1957   else
1958     lt_cv_deplibs_check_method=pass_all
1959   fi
1960   ;;
1961
1962 gnu*)
1963   lt_cv_deplibs_check_method=pass_all
1964   ;;
1965
1966 hpux10.20*|hpux11*)
1967   case $host_cpu in
1968   hppa*)
1969     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970     lt_cv_file_magic_cmd=/usr/bin/file
1971     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972     ;;
1973   ia64*)
1974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975     lt_cv_file_magic_cmd=/usr/bin/file
1976     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977     ;;
1978   esac
1979   ;;
1980
1981 irix5* | irix6*)
1982   case $host_os in
1983   irix5*)
1984     # this will be overridden with pass_all, but let us keep it just in case
1985     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1986     ;;
1987   *)
1988     case $LD in
1989     *-32|*"-32 ") libmagic=32-bit;;
1990     *-n32|*"-n32 ") libmagic=N32;;
1991     *-64|*"-64 ") libmagic=64-bit;;
1992     *) libmagic=never-match;;
1993     esac
1994     # this will be overridden with pass_all, but let us keep it just in case
1995     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996     ;;
1997   esac
1998   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999   lt_cv_deplibs_check_method=pass_all
2000   ;;
2001
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004   case $host_cpu in
2005   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006     lt_cv_deplibs_check_method=pass_all ;;
2007   *)
2008     # glibc up to 2.1.1 does not perform some relocations on ARM
2009     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010   esac
2011   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2012   ;;
2013
2014 netbsd*)
2015   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017   else
2018     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2019   fi
2020   ;;
2021
2022 newsos6)
2023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024   lt_cv_file_magic_cmd=/usr/bin/file
2025   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2026   ;;
2027
2028 osf3* | osf4* | osf5*)
2029   # this will be overridden with pass_all, but let us keep it just in case
2030   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031   lt_cv_file_magic_test_file=/shlib/libc.so
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 sco3.2v5*)
2036   lt_cv_deplibs_check_method=pass_all
2037   ;;
2038
2039 solaris*)
2040   lt_cv_deplibs_check_method=pass_all
2041   lt_cv_file_magic_test_file=/lib/libc.so
2042   ;;
2043
2044 sysv5uw[78]* | sysv4*uw2*)
2045   lt_cv_deplibs_check_method=pass_all
2046   ;;
2047
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049   case $host_vendor in
2050   ncr)
2051     lt_cv_deplibs_check_method=pass_all
2052     ;;
2053   motorola)
2054     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]'
2055     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056     ;;
2057   esac
2058   ;;
2059 esac
2060
2061 fi
2062
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2066
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070   echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072   rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075   for ac_file in conftest.*; do
2076     case $ac_file in
2077     *.c) ;;
2078     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079     esac
2080   done
2081 else
2082   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 fi
2084 rm -f conftest*
2085 fi
2086
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2090
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100   echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102   case $MAGIC_CMD in
2103   /*)
2104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105   ;;
2106   ?:/*)
2107   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2108   ;;
2109   *)
2110   ac_save_MAGIC_CMD="$MAGIC_CMD"
2111   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2112   ac_dummy="/usr/bin:$PATH"
2113   for ac_dir in $ac_dummy; do
2114     test -z "$ac_dir" && ac_dir=.
2115     if test -f $ac_dir/${ac_tool_prefix}file; then
2116       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117       if test -n "$file_magic_test_file"; then
2118         case $deplibs_check_method in
2119         "file_magic "*)
2120           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123             egrep "$file_magic_regex" > /dev/null; then
2124             :
2125           else
2126             cat <<EOF 1>&2
2127
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such.  This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem.  Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2136
2137 EOF
2138           fi ;;
2139         esac
2140       fi
2141       break
2142     fi
2143   done
2144   IFS="$ac_save_ifs"
2145   MAGIC_CMD="$ac_save_MAGIC_CMD"
2146   ;;
2147 esac
2148 fi
2149
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152   echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154   echo "$ac_t""no" 1>&6
2155 fi
2156
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158   if test -n "$ac_tool_prefix"; then
2159     echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   case $MAGIC_CMD in
2165   /*)
2166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167   ;;
2168   ?:/*)
2169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2170   ;;
2171   *)
2172   ac_save_MAGIC_CMD="$MAGIC_CMD"
2173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2174   ac_dummy="/usr/bin:$PATH"
2175   for ac_dir in $ac_dummy; do
2176     test -z "$ac_dir" && ac_dir=.
2177     if test -f $ac_dir/file; then
2178       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179       if test -n "$file_magic_test_file"; then
2180         case $deplibs_check_method in
2181         "file_magic "*)
2182           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185             egrep "$file_magic_regex" > /dev/null; then
2186             :
2187           else
2188             cat <<EOF 1>&2
2189
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such.  This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem.  Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2198
2199 EOF
2200           fi ;;
2201         esac
2202       fi
2203       break
2204     fi
2205   done
2206   IFS="$ac_save_ifs"
2207   MAGIC_CMD="$ac_save_MAGIC_CMD"
2208   ;;
2209 esac
2210 fi
2211
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214   echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216   echo "$ac_t""no" 1>&6
2217 fi
2218
2219   else
2220     MAGIC_CMD=:
2221   fi
2222 fi
2223
2224   fi
2225   ;;
2226 esac
2227
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2233   echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235   if test -n "$RANLIB"; then
2236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2237 else
2238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2239   ac_dummy="$PATH"
2240   for ac_dir in $ac_dummy; do
2241     test -z "$ac_dir" && ac_dir=.
2242     if test -f $ac_dir/$ac_word; then
2243       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2244       break
2245     fi
2246   done
2247   IFS="$ac_save_ifs"
2248 fi
2249 fi
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252   echo "$ac_t""$RANLIB" 1>&6
2253 else
2254   echo "$ac_t""no" 1>&6
2255 fi
2256
2257
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260   # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265   echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267   if test -n "$RANLIB"; then
2268   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 else
2270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2271   ac_dummy="$PATH"
2272   for ac_dir in $ac_dummy; do
2273     test -z "$ac_dir" && ac_dir=.
2274     if test -f $ac_dir/$ac_word; then
2275       ac_cv_prog_RANLIB="ranlib"
2276       break
2277     fi
2278   done
2279   IFS="$ac_save_ifs"
2280   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2281 fi
2282 fi
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285   echo "$ac_t""$RANLIB" 1>&6
2286 else
2287   echo "$ac_t""no" 1>&6
2288 fi
2289
2290 else
2291   RANLIB=":"
2292 fi
2293 fi
2294
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300   echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302   if test -n "$STRIP"; then
2303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2306   ac_dummy="$PATH"
2307   for ac_dir in $ac_dummy; do
2308     test -z "$ac_dir" && ac_dir=.
2309     if test -f $ac_dir/$ac_word; then
2310       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311       break
2312     fi
2313   done
2314   IFS="$ac_save_ifs"
2315 fi
2316 fi
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319   echo "$ac_t""$STRIP" 1>&6
2320 else
2321   echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327   # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332   echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334   if test -n "$STRIP"; then
2335   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2338   ac_dummy="$PATH"
2339   for ac_dir in $ac_dummy; do
2340     test -z "$ac_dir" && ac_dir=.
2341     if test -f $ac_dir/$ac_word; then
2342       ac_cv_prog_STRIP="strip"
2343       break
2344     fi
2345   done
2346   IFS="$ac_save_ifs"
2347   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2348 fi
2349 fi
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352   echo "$ac_t""$STRIP" 1>&6
2353 else
2354   echo "$ac_t""no" 1>&6
2355 fi
2356
2357 else
2358   STRIP=":"
2359 fi
2360 fi
2361
2362
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2371
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374   enableval="$enable_libtool_lock"
2375   :
2376 fi
2377
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383   withval="$with_pic"
2384   pic_mode="$withval"
2385 else
2386   pic_mode=default
2387 fi
2388
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396   # Find out which ABI we are using.
2397   echo '#line 2398 "configure"' > conftest.$ac_ext
2398   if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399    if test "$lt_cv_prog_gnu_ld" = yes; then
2400     case `/usr/bin/file conftest.$ac_objext` in
2401     *32-bit*)
2402       LD="${LD-ld} -melf32bsmip"
2403       ;;
2404     *N32*)
2405       LD="${LD-ld} -melf32bmipn32"
2406       ;;
2407     *64-bit*)
2408       LD="${LD-ld} -melf64bmip"
2409       ;;
2410     esac
2411    else
2412     case `/usr/bin/file conftest.$ac_objext` in
2413     *32-bit*)
2414       LD="${LD-ld} -32"
2415       ;;
2416     *N32*)
2417       LD="${LD-ld} -n32"
2418       ;;
2419     *64-bit*)
2420       LD="${LD-ld} -64"
2421       ;;
2422     esac
2423    fi
2424   fi
2425   rm -rf conftest*
2426   ;;
2427
2428 ia64-*-hpux*)
2429   # Find out which ABI we are using.
2430   echo 'int i;' > conftest.$ac_ext
2431   if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432     case "`/usr/bin/file conftest.o`" in
2433     *ELF-32*)
2434       HPUX_IA64_MODE="32"
2435       ;;
2436     *ELF-64*)
2437       HPUX_IA64_MODE="64"
2438       ;;
2439     esac
2440   fi
2441   rm -rf conftest*
2442   ;;
2443
2444 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2445   # Find out which ABI we are using.
2446   echo 'int i;' > conftest.$ac_ext
2447   if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448     case "`/usr/bin/file conftest.o`" in
2449     *32-bit*)
2450       case $host in
2451         x86_64-*linux*)
2452           LD="${LD-ld} -m elf_i386"
2453           ;;
2454         ppc64-*linux*)
2455           LD="${LD-ld} -m elf32ppclinux"
2456           ;;
2457         s390x-*linux*)
2458           LD="${LD-ld} -m elf_s390"
2459           ;;
2460         sparc64-*linux*)
2461           LD="${LD-ld} -m elf32_sparc"
2462           ;;
2463       esac
2464       ;;
2465     *64-bit*)
2466       case $host in
2467         x86_64-*linux*)
2468           LD="${LD-ld} -m elf_x86_64"
2469           ;;
2470         ppc*-*linux*|powerpc*-*linux*)
2471           LD="${LD-ld} -m elf64ppc"
2472           ;;
2473         s390*-*linux*)
2474           LD="${LD-ld} -m elf64_s390"
2475           ;;
2476         sparc*-*linux*)
2477           LD="${LD-ld} -m elf64_sparc"
2478           ;;
2479       esac
2480       ;;
2481     esac
2482   fi
2483   rm -rf conftest*
2484   ;;
2485
2486 *-*-sco3.2v5*)
2487   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2488   SAVE_CFLAGS="$CFLAGS"
2489   CFLAGS="$CFLAGS -belf"
2490   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether the C compiler needs -belf" >&5
2492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   
2496      ac_ext=c
2497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cc_cross
2502
2503      cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506
2507 int main() {
2508
2509 ; return 0; }
2510 EOF
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512   rm -rf conftest*
2513   lt_cv_cc_needs_belf=yes
2514 else
2515   echo "configure: failed program was:" >&5
2516   cat conftest.$ac_ext >&5
2517   rm -rf conftest*
2518   lt_cv_cc_needs_belf=no
2519 fi
2520 rm -f conftest*
2521      ac_ext=c
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2527
2528 fi
2529
2530 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2531   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2532     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2533     CFLAGS="$SAVE_CFLAGS"
2534   fi
2535   ;;
2536
2537
2538 esac
2539
2540 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2541 echo "configure:2542: checking how to run the C++ preprocessor" >&5
2542 if test -z "$CXXCPP"; then
2543 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2544   echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546   ac_ext=C
2547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CXXCPP $CPPFLAGS'
2549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cxx_cross
2552   CXXCPP="${CXX-g++} -E"
2553   cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <stdlib.h>
2557 EOF
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2562   :
2563 else
2564   echo "$ac_err" >&5
2565   echo "configure: failed program was:" >&5
2566   cat conftest.$ac_ext >&5
2567   rm -rf conftest*
2568   CXXCPP=/lib/cpp
2569 fi
2570 rm -f conftest*
2571   ac_cv_prog_CXXCPP="$CXXCPP"
2572 ac_ext=c
2573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2577 cross_compiling=$ac_cv_prog_cc_cross
2578 fi
2579 fi
2580 CXXCPP="$ac_cv_prog_CXXCPP"
2581 echo "$ac_t""$CXXCPP" 1>&6
2582
2583
2584 # Save cache, so that ltconfig can load it
2585 cat > confcache <<\EOF
2586 # This file is a shell script that caches the results of configure
2587 # tests run on this system so they can be shared between configure
2588 # scripts and configure runs.  It is not useful on other systems.
2589 # If it contains results you don't want to keep, you may remove or edit it.
2590 #
2591 # By default, configure uses ./config.cache as the cache file,
2592 # creating it if it does not exist already.  You can give configure
2593 # the --cache-file=FILE option to use a different cache file; that is
2594 # what configure does when it calls configure scripts in
2595 # subdirectories, so they share the cache.
2596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2597 # config.status only pays attention to the cache file if you give it the
2598 # --recheck option to rerun configure.
2599 #
2600 EOF
2601 # The following way of writing the cache mishandles newlines in values,
2602 # but we know of no workaround that is simple, portable, and efficient.
2603 # So, don't put newlines in cache variables' values.
2604 # Ultrix sh set writes to stderr and can't be redirected directly,
2605 # and sets the high bit in the cache file unless we assign to the vars.
2606 (set) 2>&1 |
2607   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2608   *ac_space=\ *)
2609     # `set' does not quote correctly, so add quotes (double-quote substitution
2610     # turns \\\\ into \\, and sed turns \\ into \).
2611     sed -n \
2612       -e "s/'/'\\\\''/g" \
2613       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2614     ;;
2615   *)
2616     # `set' quotes correctly as required by POSIX, so do not add quotes.
2617     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2618     ;;
2619   esac >> confcache
2620 if cmp -s $cache_file confcache; then
2621   :
2622 else
2623   if test -w $cache_file; then
2624     echo "updating cache $cache_file"
2625     cat confcache > $cache_file
2626   else
2627     echo "not updating unwritable cache $cache_file"
2628   fi
2629 fi
2630 rm -f confcache
2631
2632
2633 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2634 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2635 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2636 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2637 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2638 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2639 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2641 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2643
2644 # Reload cache, that may have been modified by ltconfig
2645 if test -r "$cache_file"; then
2646   echo "loading cache $cache_file"
2647   . $cache_file
2648 else
2649   echo "creating cache $cache_file"
2650   > $cache_file
2651 fi
2652
2653
2654 # This can be used to rebuild libtool when needed
2655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2656
2657 # Always use our own libtool.
2658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2659
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2663
2664
2665
2666 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2667 lt_save_CC="$CC"
2668 lt_save_CFLAGS="$CFLAGS"
2669 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2670 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2671 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2672 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2673 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2674 deplibs_check_method="$deplibs_check_method" \
2675 file_magic_cmd="$file_magic_cmd" \
2676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2677 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2678 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2679 CC="$lt_save_CC"
2680 CFLAGS="$lt_save_CFLAGS"
2681
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2685
2686   
2687
2688   
2689          
2690          
2691
2692
2693
2694 # Check for c++ or library specific bits that don't require linking.
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698   echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700   _cv_gnu_make_command='' ;
2701           for a in "${MAKE-make}" make gmake gnumake ; do
2702                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703                   then
2704                           _cv_gnu_make_command=$a ;
2705                           break;
2706                   fi
2707           done ;
2708   
2709 fi
2710
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712   if test  "x$_cv_gnu_make_command" != "x"  ; then
2713           ifGNUmake='' ;
2714   else
2715           ifGNUmake='#' ;
2716   fi
2717   
2718
2719 #GLIBCPP_CHECK_COMPILER_VERSION
2720
2721   ac_test_CXXFLAGS="${CXXFLAGS+set}"
2722   ac_save_CXXFLAGS="$CXXFLAGS"
2723   CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2724
2725   echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2726 echo "configure:2727: checking for compiler that seems to compile .gch files" >&5
2727   if test x${glibcpp_pch_comp+set} != xset; then
2728     if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2729   echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731   
2732       
2733       ac_ext=C
2734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2738 cross_compiling=$ac_cv_prog_cxx_cross
2739
2740       cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <math.h>
2744                      
2745 int main() {
2746  (0);
2747 ; return 0; }
2748 EOF
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750   rm -rf conftest*
2751   glibcpp_pch_comp=yes
2752 else
2753   echo "configure: failed program was:" >&5
2754   cat conftest.$ac_ext >&5
2755   rm -rf conftest*
2756   glibcpp_pch_comp=no
2757 fi
2758 rm -f conftest*
2759       ac_ext=c
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2765
2766     
2767 fi
2768
2769   fi
2770   echo "$ac_t""$glibcpp_pch_comp" 1>&6
2771
2772   CXXFLAGS="$ac_save_CXXFLAGS"
2773   
2774
2775 if test "$glibcpp_pch_comp" = yes; then
2776   GLIBCPP_BUILD_PCH_TRUE=
2777   GLIBCPP_BUILD_PCH_FALSE='#'
2778 else
2779   GLIBCPP_BUILD_PCH_TRUE='#'
2780   GLIBCPP_BUILD_PCH_FALSE=
2781 fi
2782
2783
2784 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2785 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2786 echo "configure:2787: checking how to run the C preprocessor" >&5
2787 # On Suns, sometimes $CPP names a directory.
2788 if test -n "$CPP" && test -d "$CPP"; then
2789   CPP=
2790 fi
2791 if test -z "$CPP"; then
2792 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2793   echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795     # This must be in double quotes, not single quotes, because CPP may get
2796   # substituted into the Makefile and "${CC-cc}" will confuse make.
2797   CPP="${CC-cc} -E"
2798   # On the NeXT, cc -E runs the code through the compiler's parser,
2799   # not just through cpp.
2800   cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2805 EOF
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2810   :
2811 else
2812   echo "$ac_err" >&5
2813   echo "configure: failed program was:" >&5
2814   cat conftest.$ac_ext >&5
2815   rm -rf conftest*
2816   CPP="${CC-cc} -E -traditional-cpp"
2817   cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <assert.h>
2821 Syntax Error
2822 EOF
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2827   :
2828 else
2829   echo "$ac_err" >&5
2830   echo "configure: failed program was:" >&5
2831   cat conftest.$ac_ext >&5
2832   rm -rf conftest*
2833   CPP="${CC-cc} -nologo -E"
2834   cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <assert.h>
2838 Syntax Error
2839 EOF
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2844   :
2845 else
2846   echo "$ac_err" >&5
2847   echo "configure: failed program was:" >&5
2848   cat conftest.$ac_ext >&5
2849   rm -rf conftest*
2850   CPP=/lib/cpp
2851 fi
2852 rm -f conftest*
2853 fi
2854 rm -f conftest*
2855 fi
2856 rm -f conftest*
2857   ac_cv_prog_CPP="$CPP"
2858 fi
2859   CPP="$ac_cv_prog_CPP"
2860 else
2861   ac_cv_prog_CPP="$CPP"
2862 fi
2863 echo "$ac_t""$CPP" 1>&6
2864
2865
2866   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2867 echo "configure:2868: checking for cstdio to use" >&5
2868   # Check whether --enable-cstdio or --disable-cstdio was given.
2869 if test "${enable_cstdio+set}" = set; then
2870   enableval="$enable_cstdio"
2871   if test x$enable_cstdio = xno; then
2872      enable_cstdio=stdio
2873   fi
2874 else
2875   enable_cstdio=stdio
2876 fi
2877
2878
2879   enable_cstdio_flag=$enable_cstdio
2880
2881     case x${enable_cstdio_flag} in
2882     xlibio)
2883       CSTDIO_H=config/io/c_io_libio.h
2884       BASIC_FILE_H=config/io/basic_file_libio.h
2885       BASIC_FILE_CC=config/io/basic_file_libio.cc
2886       echo "$ac_t""libio" 1>&6
2887
2888       # see if we are on a system with libio native (ie, linux)
2889       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for libio.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893   echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895   cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <libio.h>
2899 EOF
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904   rm -rf conftest*
2905   eval "ac_cv_header_$ac_safe=yes"
2906 else
2907   echo "$ac_err" >&5
2908   echo "configure: failed program was:" >&5
2909   cat conftest.$ac_ext >&5
2910   rm -rf conftest*
2911   eval "ac_cv_header_$ac_safe=no"
2912 fi
2913 rm -f conftest*
2914 fi
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916   echo "$ac_t""yes" 1>&6
2917   has_libio=yes
2918 else
2919   echo "$ac_t""no" 1>&6
2920 has_libio=no
2921 fi
2922
2923
2924       # Need to check and see what version of glibc is being used. If
2925       # it's not glibc-2.2 or higher, then we'll need to go ahead and
2926       # compile most of libio for linux systems.
2927       if test x$has_libio = x"yes"; then
2928         case "$target" in
2929           *-*-linux*)
2930               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2931 echo "configure:2932: checking for glibc version >= 2.2" >&5
2932               cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935
2936             #include <features.h>
2937               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2938                     ok
2939               #endif
2940               
2941 EOF
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943   egrep "ok" >/dev/null 2>&1; then
2944   rm -rf conftest*
2945   glibc_satisfactory=yes
2946 else
2947   rm -rf conftest*
2948   glibc_satisfactory=no
2949 fi
2950 rm -f conftest*
2951
2952               echo "$ac_t""$glibc_satisfactory" 1>&6
2953             ;;
2954         esac
2955
2956         # XXX at the moment, admit defeat and force the recompilation
2957         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2958         glibc_satisfactory=no
2959
2960         if test x$glibc_satisfactory = x"yes"; then
2961            need_libio=no
2962            need_wlibio=no
2963         else
2964            need_libio=yes
2965            # bkoz XXX need to add checks to enable this
2966            # pme XXX here's a first pass at such a check
2967            if test x$enable_c_mbchar != xno; then
2968               need_wlibio=yes
2969            else
2970               need_wlibio=no
2971            fi
2972         fi
2973
2974       else
2975          # Using libio, but <libio.h> doesn't exist on the target system. . .
2976          need_libio=yes
2977          # bkoz XXX need to add checks to enable this
2978          # pme XXX here's a first pass at such a check
2979          if test x$enable_c_mbchar != xno; then
2980              need_wlibio=yes
2981          else
2982              need_wlibio=no
2983          fi
2984       fi
2985       ;;
2986     xstdio | x | xno | xnone | xyes)
2987       # default
2988       CSTDIO_H=config/io/c_io_stdio.h
2989       BASIC_FILE_H=config/io/basic_file_stdio.h
2990       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2991       echo "$ac_t""stdio" 1>&6
2992
2993       # We're not using stdio.
2994       need_libio=no
2995       need_wlibio=no
2996       ;;
2997     *)
2998       echo "$enable_cstdio is an unknown io package" 1>&2
2999       exit 1
3000       ;;
3001   esac
3002   
3003   
3004   
3005
3006   # 2000-08-04 bkoz hack
3007   CCODECVT_C=config/io/c_io_libio_codecvt.c
3008   
3009   # 2000-08-04 bkoz hack
3010
3011   
3012
3013 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3014   GLIBCPP_BUILD_LIBIO_TRUE=
3015   GLIBCPP_BUILD_LIBIO_FALSE='#'
3016 else
3017   GLIBCPP_BUILD_LIBIO_TRUE='#'
3018   GLIBCPP_BUILD_LIBIO_FALSE=
3019 fi
3020   
3021
3022 if test "$need_libio" = yes; then
3023   GLIBCPP_NEED_LIBIO_TRUE=
3024   GLIBCPP_NEED_LIBIO_FALSE='#'
3025 else
3026   GLIBCPP_NEED_LIBIO_TRUE='#'
3027   GLIBCPP_NEED_LIBIO_FALSE=
3028 fi
3029   
3030
3031 if test "$need_wlibio" = yes; then
3032   GLIBCPP_NEED_WLIBIO_TRUE=
3033   GLIBCPP_NEED_WLIBIO_FALSE='#'
3034 else
3035   GLIBCPP_NEED_WLIBIO_TRUE='#'
3036   GLIBCPP_NEED_WLIBIO_FALSE=
3037 fi
3038   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3039     libio_la=../libio/libio.la
3040   else
3041     libio_la=
3042   fi
3043   
3044
3045
3046   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for clocale to use" >&5
3048   # Check whether --enable-clocale or --disable-clocale was given.
3049 if test "${enable_clocale+set}" = set; then
3050   enableval="$enable_clocale"
3051   if test x$enable_clocale = xno; then
3052      enable_clocale=no
3053   fi
3054 else
3055   enable_clocale=no
3056 fi
3057
3058
3059   enable_clocale_flag=$enable_clocale
3060
3061       if test x$enable_clocale_flag = xno; then
3062     case x${target_os} in
3063       xlinux* | xgnu*)
3064         cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067
3068         #include <features.h>
3069         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3070           _GLIBCPP_ok
3071         #endif
3072         
3073 EOF
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3076   rm -rf conftest*
3077   enable_clocale_flag=gnu
3078 else
3079   rm -rf conftest*
3080   enable_clocale_flag=generic
3081 fi
3082 rm -f conftest*
3083
3084
3085         # Test for bugs early in glibc-2.2.x series
3086         if test x$enable_clocale_flag = xgnu; then
3087           if test "$cross_compiling" = yes; then
3088   enable_clocale_flag=generic
3089 else
3090   cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093
3094           #define _GNU_SOURCE 1
3095           #include <locale.h>
3096           #include <string.h>
3097           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3098           extern __typeof(newlocale) __newlocale;
3099           extern __typeof(duplocale) __duplocale;
3100           extern __typeof(strcoll_l) __strcoll_l;
3101           #endif
3102           int main()
3103           {
3104             const char __one[] = "Äuglein Augmen";
3105             const char __two[] = "Äuglein";
3106             int i;
3107             int j;
3108             __locale_t  loc;
3109             __locale_t  loc_dup;
3110             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3111             loc_dup = __duplocale(loc);
3112             i = __strcoll_l(__one, __two, loc);
3113             j = __strcoll_l(__one, __two, loc_dup);
3114             return 0;
3115           }
3116           
3117 EOF
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3119 then
3120   enable_clocale_flag=gnu
3121 else
3122   echo "configure: failed program was:" >&5
3123   cat conftest.$ac_ext >&5
3124   rm -fr conftest*
3125   enable_clocale_flag=generic
3126 fi
3127 rm -fr conftest*
3128 fi
3129
3130         fi
3131
3132         # ... at some point put __strxfrm_l tests in as well.
3133         ;;
3134       *)
3135         enable_clocale_flag=generic
3136         ;;
3137     esac
3138   fi
3139
3140     # Check whether --enable-nls or --disable-nls was given.
3141 if test "${enable_nls+set}" = set; then
3142   enableval="$enable_nls"
3143   :
3144 else
3145   enable_nls=yes
3146 fi
3147
3148   USE_NLS=no
3149
3150     case x${enable_clocale_flag} in
3151     xgeneric)
3152       echo "$ac_t""generic" 1>&6
3153
3154       CLOCALE_H=config/locale/generic/c_locale.h
3155       CLOCALE_CC=config/locale/generic/c_locale.cc
3156       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3157       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3158       CCOLLATE_CC=config/locale/generic/collate_members.cc
3159       CCTYPE_CC=config/locale/generic/ctype_members.cc
3160       CMESSAGES_H=config/locale/generic/messages_members.h
3161       CMESSAGES_CC=config/locale/generic/messages_members.cc
3162       CMONEY_CC=config/locale/generic/monetary_members.cc
3163       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3164       CTIME_H=config/locale/generic/time_members.h
3165       CTIME_CC=config/locale/generic/time_members.cc
3166       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3167       ;;
3168     xgnu)
3169       echo "$ac_t""gnu" 1>&6
3170
3171       # Declare intention to use gettext, and add support for specific
3172       # languages.
3173       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3174       ALL_LINGUAS="de fr"
3175
3176       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3177       # Extract the first word of "msgfmt", so it can be a program name with args.
3178 set dummy msgfmt; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3182   echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184   if test -n "$check_msgfmt"; then
3185   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3186 else
3187   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3188   ac_dummy="$PATH"
3189   for ac_dir in $ac_dummy; do
3190     test -z "$ac_dir" && ac_dir=.
3191     if test -f $ac_dir/$ac_word; then
3192       ac_cv_prog_check_msgfmt="yes"
3193       break
3194     fi
3195   done
3196   IFS="$ac_save_ifs"
3197   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3198 fi
3199 fi
3200 check_msgfmt="$ac_cv_prog_check_msgfmt"
3201 if test -n "$check_msgfmt"; then
3202   echo "$ac_t""$check_msgfmt" 1>&6
3203 else
3204   echo "$ac_t""no" 1>&6
3205 fi
3206
3207       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3208         USE_NLS=yes
3209       fi
3210       # Export the build objects.
3211       for ling in $ALL_LINGUAS; do \
3212         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3213         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3214       done
3215       
3216       
3217
3218       CLOCALE_H=config/locale/gnu/c_locale.h
3219       CLOCALE_CC=config/locale/gnu/c_locale.cc
3220       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3221       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3222       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3223       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3224       CMESSAGES_H=config/locale/gnu/messages_members.h
3225       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3226       CMONEY_CC=config/locale/gnu/monetary_members.cc
3227       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3228       CTIME_H=config/locale/gnu/time_members.h
3229       CTIME_CC=config/locale/gnu/time_members.cc
3230       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3231       ;;
3232     xieee_1003.1-2001)
3233       echo "$ac_t""IEEE 1003.1" 1>&6
3234
3235       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3236       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3237       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3238       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3239       CCOLLATE_CC=config/locale/generic/collate_members.cc
3240       CCTYPE_CC=config/locale/generic/ctype_members.cc
3241       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3242       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3243       CMONEY_CC=config/locale/generic/monetary_members.cc
3244       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3245       CTIME_H=config/locale/generic/time_members.h
3246       CTIME_CC=config/locale/generic/time_members.cc
3247       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3248       ;;
3249     *)
3250       echo "$enable_clocale is an unknown locale package" 1>&2
3251       exit 1
3252       ;;
3253   esac
3254
3255   # This is where the testsuite looks for locale catalogs, using the
3256   # -DLOCALEDIR define during testsuite compilation.
3257   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3258   
3259
3260   # A standalone libintl (e.g., GNU libintl) may be in use.
3261   if test $USE_NLS = yes; then
3262     for ac_hdr in libintl.h
3263 do
3264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_hdr" >&5
3267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268   echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270   cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <$ac_hdr>
3274 EOF
3275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3279   rm -rf conftest*
3280   eval "ac_cv_header_$ac_safe=yes"
3281 else
3282   echo "$ac_err" >&5
3283   echo "configure: failed program was:" >&5
3284   cat conftest.$ac_ext >&5
3285   rm -rf conftest*
3286   eval "ac_cv_header_$ac_safe=no"
3287 fi
3288 rm -f conftest*
3289 fi
3290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291   echo "$ac_t""yes" 1>&6
3292     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293   cat >> confdefs.h <<EOF
3294 #define $ac_tr_hdr 1
3295 EOF
3296  
3297 else
3298   echo "$ac_t""no" 1>&6
3299 USE_NLS=no
3300 fi
3301 done
3302
3303     
3304 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3305 echo "configure:3306: checking for library containing gettext" >&5
3306 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3307   echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309   ac_func_search_save_LIBS="$LIBS"
3310 ac_cv_search_gettext="no"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error.  */
3315 /* We use char because int might match the return type of a gcc2
3316     builtin and then its argument prototype would still apply.  */
3317 char gettext();
3318
3319 int main() {
3320 gettext()
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324   rm -rf conftest*
3325   ac_cv_search_gettext="none required"
3326 else
3327   echo "configure: failed program was:" >&5
3328   cat conftest.$ac_ext >&5
3329 fi
3330 rm -f conftest*
3331 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3332 LIBS="-l$i  $ac_func_search_save_LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error.  */
3337 /* We use char because int might match the return type of a gcc2
3338     builtin and then its argument prototype would still apply.  */
3339 char gettext();
3340
3341 int main() {
3342 gettext()
3343 ; return 0; }
3344 EOF
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346   rm -rf conftest*
3347   ac_cv_search_gettext="-l$i"
3348 break
3349 else
3350   echo "configure: failed program was:" >&5
3351   cat conftest.$ac_ext >&5
3352 fi
3353 rm -f conftest*
3354 done
3355 LIBS="$ac_func_search_save_LIBS"
3356 fi
3357
3358 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3359 if test "$ac_cv_search_gettext" != "no"; then
3360   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3361   
3362 else :
3363   USE_NLS=no
3364 fi
3365   fi
3366   if test $USE_NLS = yes; then
3367     cat >> confdefs.h <<\EOF
3368 #define _GLIBCPP_USE_NLS 1
3369 EOF
3370
3371   fi
3372
3373   
3374   
3375   
3376   
3377   
3378   
3379   
3380   
3381   
3382   
3383   
3384   
3385   
3386   
3387
3388 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3389 echo "configure:3390: checking for c header strategy to use" >&5
3390 # Check whether --enable-cheaders or --disable-cheaders was given.
3391 if test "${enable_cheaders+set}" = set; then
3392   enableval="$enable_cheaders"
3393   
3394   case "$enableval" in
3395    c)
3396         enable_cheaders=c
3397         ;;
3398    c_std)
3399         enable_cheaders=c_std
3400         ;;
3401    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3402         ;;
3403   esac
3404 else
3405   enable_cheaders=c_std
3406 fi
3407
3408   echo "$ac_t""$enable_cheaders" 1>&6
3409
3410     case "$enable_cheaders" in
3411     c_std)
3412         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3413         ;;
3414     c)
3415         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3416         ;;
3417   esac
3418
3419   
3420   
3421
3422 if test "$enable_cheaders" = c; then
3423   GLIBCPP_C_HEADERS_C_TRUE=
3424   GLIBCPP_C_HEADERS_C_FALSE='#'
3425 else
3426   GLIBCPP_C_HEADERS_C_TRUE='#'
3427   GLIBCPP_C_HEADERS_C_FALSE=
3428 fi
3429   
3430
3431 if test "$enable_cheaders" = c_std; then
3432   GLIBCPP_C_HEADERS_C_STD_TRUE=
3433   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3434 else
3435   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3436   GLIBCPP_C_HEADERS_C_STD_FALSE=
3437 fi
3438   
3439
3440 if test "$c_compatibility" = yes; then
3441   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3442   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3443 else
3444   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3445   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3446 fi
3447
3448 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3449 if test "${enable_c_mbchar+set}" = set; then
3450   enableval="$enable_c_mbchar"
3451   case "$enableval" in
3452  yes) enable_c_mbchar=yes ;;
3453  no)  enable_c_mbchar=no ;;
3454  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3455  esac
3456 else
3457   enable_c_mbchar=yes
3458 fi
3459
3460   
3461   # Check whether --enable-c99 or --disable-c99 was given.
3462 if test "${enable_c99+set}" = set; then
3463   enableval="$enable_c99"
3464     case "$enableval" in
3465    yes) enable_c99=yes ;;
3466    no)  enable_c99=no ;;
3467    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3468    esac
3469 else
3470   enable_c99=yes
3471 fi
3472
3473   
3474   ac_ext=C
3475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3476 ac_cpp='$CXXCPP $CPPFLAGS'
3477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3479 cross_compiling=$ac_cv_prog_cxx_cross
3480
3481
3482   # Check for the existence of <math.h> functions used if C99 is enabled.
3483   ac_c99_math=yes;
3484   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3485 echo "configure:3486: checking for ISO C99 support in <math.h>" >&5
3486   cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <math.h>
3490 int main() {
3491 fpclassify(0.0);
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495   :
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_math=no
3501 fi
3502 rm -f conftest*
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <math.h>
3507 int main() {
3508 isfinite(0.0);
3509 ; return 0; }
3510 EOF
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512   :
3513 else
3514   echo "configure: failed program was:" >&5
3515   cat conftest.$ac_ext >&5
3516   rm -rf conftest*
3517   ac_c99_math=no
3518 fi
3519 rm -f conftest*
3520   cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <math.h>
3524 int main() {
3525 isinf(0.0);
3526 ; return 0; }
3527 EOF
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529   :
3530 else
3531   echo "configure: failed program was:" >&5
3532   cat conftest.$ac_ext >&5
3533   rm -rf conftest*
3534   ac_c99_math=no
3535 fi
3536 rm -f conftest*
3537   cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <math.h>
3541 int main() {
3542 isnan(0.0);
3543 ; return 0; }
3544 EOF
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546   :
3547 else
3548   echo "configure: failed program was:" >&5
3549   cat conftest.$ac_ext >&5
3550   rm -rf conftest*
3551   ac_c99_math=no
3552 fi
3553 rm -f conftest*
3554   cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <math.h>
3558 int main() {
3559 isnormal(0.0);
3560 ; return 0; }
3561 EOF
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563   :
3564 else
3565   echo "configure: failed program was:" >&5
3566   cat conftest.$ac_ext >&5
3567   rm -rf conftest*
3568   ac_c99_math=no
3569 fi
3570 rm -f conftest*
3571   cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <math.h>
3575 int main() {
3576 signbit(0.0);
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580   :
3581 else
3582   echo "configure: failed program was:" >&5
3583   cat conftest.$ac_ext >&5
3584   rm -rf conftest*
3585   ac_c99_math=no
3586 fi
3587 rm -f conftest*
3588   cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <math.h>
3592 int main() {
3593 isgreater(0.0,0.0);
3594 ; return 0; }
3595 EOF
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597   :
3598 else
3599   echo "configure: failed program was:" >&5
3600   cat conftest.$ac_ext >&5
3601   rm -rf conftest*
3602   ac_c99_math=no
3603 fi
3604 rm -f conftest*
3605   cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <math.h>
3609 int main() {
3610 isgreaterequal(0.0,0.0);
3611 ; return 0; }
3612 EOF
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614   :
3615 else
3616   echo "configure: failed program was:" >&5
3617   cat conftest.$ac_ext >&5
3618   rm -rf conftest*
3619   ac_c99_math=no
3620 fi
3621 rm -f conftest*
3622   cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <math.h>
3626 int main() {
3627 isless(0.0,0.0);
3628 ; return 0; }
3629 EOF
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631   :
3632 else
3633   echo "configure: failed program was:" >&5
3634   cat conftest.$ac_ext >&5
3635   rm -rf conftest*
3636   ac_c99_math=no
3637 fi
3638 rm -f conftest*
3639   cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <math.h>
3643 int main() {
3644 islessequal(0.0,0.0);
3645 ; return 0; }
3646 EOF
3647 if { (eval echo configure:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648   :
3649 else
3650   echo "configure: failed program was:" >&5
3651   cat conftest.$ac_ext >&5
3652   rm -rf conftest*
3653   ac_c99_math=no
3654 fi
3655 rm -f conftest*
3656   cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <math.h>
3660 int main() {
3661 islessgreater(0.0,0.0);
3662 ; return 0; }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665   :
3666 else
3667   echo "configure: failed program was:" >&5
3668   cat conftest.$ac_ext >&5
3669   rm -rf conftest*
3670   ac_c99_math=no
3671 fi
3672 rm -f conftest*
3673   cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <math.h>
3677 int main() {
3678 isunordered(0.0,0.0);
3679 ; return 0; }
3680 EOF
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682   :
3683 else
3684   echo "configure: failed program was:" >&5
3685   cat conftest.$ac_ext >&5
3686   rm -rf conftest*
3687   ac_c99_math=no
3688 fi
3689 rm -f conftest*
3690   echo "$ac_t""$ac_c99_math" 1>&6
3691
3692   # Check for the existence in <stdio.h> of vscanf, et. al.
3693   ac_c99_stdio=yes;
3694   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3695 echo "configure:3696: checking for ISO C99 support in <stdio.h>" >&5
3696   cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <stdio.h>
3700 int main() {
3701 snprintf("12", 0, "%i");
3702 ; return 0; }
3703 EOF
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705   :
3706 else
3707   echo "configure: failed program was:" >&5
3708   cat conftest.$ac_ext >&5
3709   rm -rf conftest*
3710   ac_c99_stdio=no
3711 fi
3712 rm -f conftest*
3713   cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <stdio.h>
3717                   #include <stdarg.h>
3718                   void foo(char* fmt, ...)
3719                   {va_list args; va_start(args, fmt);
3720                   vfscanf(stderr, "%i", args);}
3721 int main() {
3722
3723 ; return 0; }
3724 EOF
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726   :
3727 else
3728   echo "configure: failed program was:" >&5
3729   cat conftest.$ac_ext >&5
3730   rm -rf conftest*
3731   ac_c99_stdio=no
3732 fi
3733 rm -f conftest*
3734   cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <stdio.h>
3738                   #include <stdarg.h>
3739                   void foo(char* fmt, ...)
3740                   {va_list args; va_start(args, fmt);
3741                   vscanf("%i", args);}
3742 int main() {
3743
3744 ; return 0; }
3745 EOF
3746 if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3747   :
3748 else
3749   echo "configure: failed program was:" >&5
3750   cat conftest.$ac_ext >&5
3751   rm -rf conftest*
3752   ac_c99_stdio=no
3753 fi
3754 rm -f conftest*
3755   cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <stdio.h>
3759                   #include <stdarg.h>
3760                   void foo(char* fmt, ...)
3761                   {va_list args; va_start(args, fmt);
3762                   vsnprintf(fmt, 0, "%i", args);}
3763 int main() {
3764
3765 ; return 0; }
3766 EOF
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768   :
3769 else
3770   echo "configure: failed program was:" >&5
3771   cat conftest.$ac_ext >&5
3772   rm -rf conftest*
3773   ac_c99_stdio=no
3774 fi
3775 rm -f conftest*
3776   cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <stdio.h>
3780                   #include <stdarg.h>
3781                   void foo(char* fmt, ...)
3782                   {va_list args; va_start(args, fmt);
3783                   vsscanf(fmt, "%i", args);}
3784 int main() {
3785
3786 ; return 0; }
3787 EOF
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3789   :
3790 else
3791   echo "configure: failed program was:" >&5
3792   cat conftest.$ac_ext >&5
3793   rm -rf conftest*
3794   ac_c99_stdio=no
3795 fi
3796 rm -f conftest*
3797   echo "$ac_t""$ac_c99_stdio" 1>&6
3798
3799   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3800   ac_c99_stdlib=yes;
3801   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3802 echo "configure:3803: checking for lldiv_t declaration" >&5
3803   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3804   echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806   
3807   cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <stdlib.h>
3811 int main() {
3812  lldiv_t mydivt;
3813 ; return 0; }
3814 EOF
3815 if { (eval echo configure:3816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816   rm -rf conftest*
3817   ac_c99_lldiv_t=yes
3818 else
3819   echo "configure: failed program was:" >&5
3820   cat conftest.$ac_ext >&5
3821   rm -rf conftest*
3822   ac_c99_lldiv_t=no
3823 fi
3824 rm -f conftest*
3825   
3826 fi
3827
3828   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3829
3830   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3831 echo "configure:3832: checking for ISO C99 support in <stdlib.h>" >&5
3832   cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <stdlib.h>
3836 int main() {
3837 char* tmp; strtof("gnu", &tmp);
3838 ; return 0; }
3839 EOF
3840 if { (eval echo configure:3841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3841   :
3842 else
3843   echo "configure: failed program was:" >&5
3844   cat conftest.$ac_ext >&5
3845   rm -rf conftest*
3846   ac_c99_stdlib=no
3847 fi
3848 rm -f conftest*
3849   cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <stdlib.h>
3853 int main() {
3854 char* tmp; strtold("gnu", &tmp);
3855 ; return 0; }
3856 EOF
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858   :
3859 else
3860   echo "configure: failed program was:" >&5
3861   cat conftest.$ac_ext >&5
3862   rm -rf conftest*
3863   ac_c99_stdlib=no
3864 fi
3865 rm -f conftest*
3866   cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <stdlib.h>
3870 int main() {
3871 llabs(10);
3872 ; return 0; }
3873 EOF
3874 if { (eval echo configure:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875   :
3876 else
3877   echo "configure: failed program was:" >&5
3878   cat conftest.$ac_ext >&5
3879   rm -rf conftest*
3880   ac_c99_stdlib=no
3881 fi
3882 rm -f conftest*
3883   cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <stdlib.h>
3887 int main() {
3888 lldiv(10,1);
3889 ; return 0; }
3890 EOF
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892   :
3893 else
3894   echo "configure: failed program was:" >&5
3895   cat conftest.$ac_ext >&5
3896   rm -rf conftest*
3897   ac_c99_stdlib=no
3898 fi
3899 rm -f conftest*
3900   cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 #include <stdlib.h>
3904 int main() {
3905 atoll("10");
3906 ; return 0; }
3907 EOF
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909   :
3910 else
3911   echo "configure: failed program was:" >&5
3912   cat conftest.$ac_ext >&5
3913   rm -rf conftest*
3914   ac_c99_stdlib=no
3915 fi
3916 rm -f conftest*
3917   cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <stdlib.h>
3921 int main() {
3922 _Exit(0);
3923 ; return 0; }
3924 EOF
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926   :
3927 else
3928   echo "configure: failed program was:" >&5
3929   cat conftest.$ac_ext >&5
3930   rm -rf conftest*
3931   ac_c99_stdlib=no
3932 fi
3933 rm -f conftest*
3934   if test x"$ac_c99_lldiv_t" = x"no"; then
3935     ac_c99_stdlib=no;
3936   fi;
3937   echo "$ac_t""$ac_c99_stdlib" 1>&6
3938
3939   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3940   # XXX the wchar.h checks should be rolled into the general C99 bits.
3941   ac_c99_wchar=yes;
3942   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3943 echo "configure:3944: checking for additional ISO C99 support in <wchar.h>" >&5
3944   cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 #include <wchar.h>
3948 int main() {
3949 wcstold(L"10.0", NULL);
3950 ; return 0; }
3951 EOF
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953   :
3954 else
3955   echo "configure: failed program was:" >&5
3956   cat conftest.$ac_ext >&5
3957   rm -rf conftest*
3958   ac_c99_wchar=no
3959 fi
3960 rm -f conftest*
3961   cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 #include <wchar.h>
3965 int main() {
3966 wcstoll(L"10", NULL, 10);
3967 ; return 0; }
3968 EOF
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970   :
3971 else
3972   echo "configure: failed program was:" >&5
3973   cat conftest.$ac_ext >&5
3974   rm -rf conftest*
3975   ac_c99_wchar=no
3976 fi
3977 rm -f conftest*
3978   cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <wchar.h>
3982 int main() {
3983 wcstoull(L"10", NULL, 10);
3984 ; return 0; }
3985 EOF
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987   :
3988 else
3989   echo "configure: failed program was:" >&5
3990   cat conftest.$ac_ext >&5
3991   rm -rf conftest*
3992   ac_c99_wchar=no
3993 fi
3994 rm -f conftest*
3995   echo "$ac_t""$ac_c99_wchar" 1>&6
3996
3997   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3998 echo "configure:3999: checking for enabled ISO C99 support" >&5
3999   if test x"$ac_c99_math" = x"no" ||
4000      test x"$ac_c99_stdio" = x"no" ||
4001      test x"$ac_c99_stdlib" = x"no" ||
4002      test x"$ac_c99_wchar" = x"no"; then
4003     enable_c99=no;
4004   fi;
4005   echo "$ac_t""$enable_c99" 1>&6
4006
4007   # Option parsed, now set things appropriately
4008   if test x"$enable_c99" = x"yes"; then
4009     cat >> confdefs.h <<\EOF
4010 #define _GLIBCPP_USE_C99 1
4011 EOF
4012
4013   fi
4014
4015   ac_ext=c
4016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4020 cross_compiling=$ac_cv_prog_cc_cross
4021
4022
4023   
4024   # Check whether --enable-long-long or --disable-long-long was given.
4025 if test "${enable_long_long+set}" = set; then
4026   enableval="$enable_long_long"
4027     case "$enableval" in
4028    yes) enable_long_long=yes ;;
4029    no)  enable_long_long=no ;;
4030    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4031    esac
4032 else
4033   enable_long_long=yes
4034 fi
4035
4036   
4037   ac_ext=C
4038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4039 ac_cpp='$CXXCPP $CPPFLAGS'
4040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4042 cross_compiling=$ac_cv_prog_cxx_cross
4043
4044
4045   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4046 echo "configure:4047: checking for enabled long long I/O support" >&5
4047   # iostreams require strtoll, strtoull to compile
4048   cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <stdlib.h>
4052 int main() {
4053 char* tmp; strtoll("gnu", &tmp, 10);
4054 ; return 0; }
4055 EOF
4056 if { (eval echo configure:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057   :
4058 else
4059   echo "configure: failed program was:" >&5
4060   cat conftest.$ac_ext >&5
4061   rm -rf conftest*
4062   enable_long_long=no
4063 fi
4064 rm -f conftest*
4065   cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <stdlib.h>
4069 int main() {
4070 char* tmp; strtoull("gnu", &tmp, 10);
4071 ; return 0; }
4072 EOF
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074   :
4075 else
4076   echo "configure: failed program was:" >&5
4077   cat conftest.$ac_ext >&5
4078   rm -rf conftest*
4079   enable_long_long=no
4080 fi
4081 rm -f conftest*
4082
4083   # Option parsed, now set things appropriately
4084   if test x"$enable_long_long" = xyes; then
4085     cat >> confdefs.h <<\EOF
4086 #define _GLIBCPP_USE_LONG_LONG 1
4087 EOF
4088
4089   fi
4090   echo "$ac_t""$enable_long_long" 1>&6
4091
4092   ac_ext=c
4093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4097 cross_compiling=$ac_cv_prog_cc_cross
4098
4099
4100
4101   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4102 echo "configure:4103: checking for thread model used by GCC" >&5
4103   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4104   echo "$ac_t""$target_thread_file" 1>&6
4105
4106   if test $target_thread_file != single; then
4107     cat >> confdefs.h <<\EOF
4108 #define HAVE_GTHR_DEFAULT 1
4109 EOF
4110
4111     cat >> confdefs.h <<\EOF
4112 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4113 EOF
4114
4115   fi
4116
4117   glibcpp_thread_h=gthr-$target_thread_file.h
4118   
4119
4120
4121   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4122 echo "configure:4123: checking for exception model to use" >&5
4123   
4124   ac_ext=C
4125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4126 ac_cpp='$CXXCPP $CPPFLAGS'
4127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4129 cross_compiling=$ac_cv_prog_cxx_cross
4130
4131   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4132 if test "${enable_sjlj_exceptions+set}" = set; then
4133   enableval="$enable_sjlj_exceptions"
4134   :
4135 else
4136                        cat > conftest.$ac_ext << EOF
4137 #line 4138 "configure"
4138 struct S { ~S(); };
4139 void bar();
4140 void foo()
4141 {
4142   S s;
4143   bar();
4144 }
4145 EOF
4146    old_CXXFLAGS="$CXXFLAGS"
4147    CXXFLAGS=-S
4148    if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4150        enable_sjlj_exceptions=yes
4151      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4152        enable_sjlj_exceptions=no
4153      fi
4154    fi
4155    CXXFLAGS="$old_CXXFLAGS"
4156    rm -f conftest*
4157 fi
4158
4159    if test x$enable_sjlj_exceptions = xyes; then
4160      cat >> confdefs.h <<\EOF
4161 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4162 EOF
4163
4164      ac_exception_model_name=sjlj
4165    elif test x$enable_sjlj_exceptions = xno; then
4166      ac_exception_model_name="call frame"
4167    else
4168      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4169    fi
4170    ac_ext=c
4171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4175 cross_compiling=$ac_cv_prog_cc_cross
4176
4177    echo "$ac_t""$ac_exception_model_name" 1>&6
4178
4179
4180   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4181 echo "configure:4182: checking for use of libunwind" >&5
4182   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4183 if test "${enable_libunwind_exceptions+set}" = set; then
4184   enableval="$enable_libunwind_exceptions"
4185   use_libunwind_exceptions=$enableval
4186 else
4187   use_libunwind_exceptions=no
4188 fi
4189
4190   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4191     if test x"$use_libunwind_exceptions" = xyes; then
4192     LIBUNWIND_FLAG="-lunwind"
4193   else
4194     LIBUNWIND_FLAG=""
4195   fi
4196   
4197
4198 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4199 if test "${enable_concept_checks+set}" = set; then
4200   enableval="$enable_concept_checks"
4201   case "$enableval" in
4202  yes) enable_concept_checks=yes ;;
4203  no)  enable_concept_checks=no ;;
4204  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4205  esac
4206 else
4207   enable_concept_checks=no
4208 fi
4209 if test x"$enable_concept_checks" = xyes; then
4210   cat >> confdefs.h <<\EOF
4211 #define _GLIBCPP_CONCEPT_CHECKS 1
4212 EOF
4213
4214 fi
4215
4216 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4217 echo "configure:4218: checking for extra compiler flags for building" >&5
4218 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4219 if test "${enable_cxx_flags+set}" = set; then
4220   enableval="$enable_cxx_flags"
4221   case "x$enable_cxx_flags" in
4222   xyes)
4223     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4224   xno | xnone | x)
4225     enable_cxx_flags='' ;;
4226   *)
4227     enable_cxx_flags="$enableval" ;;
4228 esac
4229 else
4230   enable_cxx_flags=
4231 fi
4232
4233
4234 if test -n "$enable_cxx_flags"; then
4235   for f in $enable_cxx_flags; do
4236     case "$f" in
4237       -fhonor-std)  ;;
4238       -*)  ;;
4239       *)   # and we're trying to pass /what/ exactly?
4240            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4241     esac
4242   done
4243 fi
4244 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4245 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4246
4247
4248 # Check whether --enable-debug or --disable-debug was given.
4249 if test "${enable_debug+set}" = set; then
4250   enableval="$enable_debug"
4251   case "${enableval}" in
4252  yes) enable_debug=yes ;;
4253  no)  enable_debug=no ;;
4254  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4255  esac
4256 else
4257   enable_debug=no
4258 fi
4259 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4260 echo "configure:4261: checking for additional debug build" >&5
4261 echo "$ac_t""$enable_debug" 1>&6
4262
4263
4264 if test "$enable_debug" = yes; then
4265   GLIBCPP_BUILD_DEBUG_TRUE=
4266   GLIBCPP_BUILD_DEBUG_FALSE='#'
4267 else
4268   GLIBCPP_BUILD_DEBUG_TRUE='#'
4269   GLIBCPP_BUILD_DEBUG_FALSE=
4270 fi
4271
4272 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4273 if test "${enable_debug_flags+set}" = set; then
4274   enableval="$enable_debug_flags"
4275   case "${enableval}" in
4276  none)  ;;
4277  -*) enable_debug_flags="${enableval}" ;;
4278  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4279  esac
4280 else
4281   enable_debug_flags=none
4282 fi
4283
4284 case x"$enable_debug" in
4285     xyes)
4286         case "$enable_debug_flags" in
4287           none)
4288             DEBUG_FLAGS="-g3 -O0";;
4289           -*) #valid input
4290             DEBUG_FLAGS="${enableval}"
4291         esac
4292         ;;
4293     xno)
4294         DEBUG_FLAGS=""
4295         ;;
4296 esac
4297
4298
4299 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4300 echo "configure:4301: checking for debug build flags" >&5
4301 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4302
4303
4304 # No surprises, no surprises...
4305 if test $ATOMICITYH = cpu/generic ; then
4306   echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4307   if test $target_thread_file = single; then
4308     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4309     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4310   else
4311     echo "configure: warning: They will be faked using a mutex." 1>&2
4312     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4313   fi
4314 fi
4315
4316
4317 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4318
4319   # We are being configured with some form of cross compiler.
4320   GLIBCPP_IS_CROSS_COMPILING=1
4321
4322   # This lets us hard-code the functionality we know we'll have in the cross
4323   # target environment.  "Let" is a sugar-coated word placed on an especially
4324   # dull and tedious hack, actually.
4325   #
4326   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4327   # that involve linking, can't be used:
4328   #    "cannot open sim-crt0.o"
4329   #    "cannot open crt0.o"
4330   # etc.  All this is because there currently exists no unified, consistent
4331   # way for top level CC information to be passed down to target directories:
4332   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4333   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4334   # crosses can be removed.
4335
4336   # If Canadian cross, then don't pick up tools from the build directory.
4337   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4338   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4339     CANADIAN=yes
4340   else
4341     CANADIAN=no
4342   fi
4343
4344   # Construct crosses by hand, eliminating bits that need ld...
4345   # GLIBCPP_CHECK_COMPILER_FEATURES
4346   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4347   # GLIBCPP_CHECK_MATH_SUPPORT
4348
4349   case "$target" in
4350     *-linux*)
4351       os_include_dir="os/gnu-linux"
4352       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4353         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4354         fp.h locale.h float.h inttypes.h
4355 do
4356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_hdr" >&5
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4360   echo $ac_n "(cached) $ac_c" 1>&6
4361 else
4362   cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <$ac_hdr>
4366 EOF
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4371   rm -rf conftest*
4372   eval "ac_cv_header_$ac_safe=yes"
4373 else
4374   echo "$ac_err" >&5
4375   echo "configure: failed program was:" >&5
4376   cat conftest.$ac_ext >&5
4377   rm -rf conftest*
4378   eval "ac_cv_header_$ac_safe=no"
4379 fi
4380 rm -f conftest*
4381 fi
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383   echo "$ac_t""yes" 1>&6
4384     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4385   cat >> confdefs.h <<EOF
4386 #define $ac_tr_hdr 1
4387 EOF
4388  
4389 else
4390   echo "$ac_t""no" 1>&6
4391 fi
4392 done
4393
4394       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4395       
4396       
4397   # If we're not using GNU ld, then there's no point in even trying these
4398   # tests.  Check for that first.  We should have already tested for gld
4399   # by now (in libtool), but require it now just to be safe...
4400   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4401   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4402   
4403
4404   # The name set by libtool depends on the version of libtool.  Shame on us
4405   # for depending on an impl detail, but c'est la vie.  Older versions used
4406   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4407   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4408   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4409   # set (hence we're using an older libtool), then set it.
4410   if test x${with_gnu_ld+set} != xset; then
4411     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4412       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4413       with_gnu_ld=no
4414     else
4415       with_gnu_ld=$ac_cv_prog_gnu_ld
4416     fi
4417   fi
4418
4419   # Start by getting the version number.  I think the libtool test already
4420   # does some of this, but throws away the result.
4421   
4422   ldver=`$LD --version 2>/dev/null | head -1 | \
4423          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4424   
4425   glibcpp_gnu_ld_version=`echo $ldver | \
4426          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4427
4428   # Set --gc-sections.
4429   if test "$with_gnu_ld" = "notbroken"; then
4430     # GNU ld it is!  Joy and bunny rabbits!
4431
4432     # All these tests are for C++; save the language and the compiler flags.
4433     # Need to do this so that g++ won't try to link in libstdc++
4434     ac_test_CFLAGS="${CFLAGS+set}"
4435     ac_save_CFLAGS="$CFLAGS"
4436     CFLAGS='-x c++  -Wl,--gc-sections'
4437
4438     # Check for -Wl,--gc-sections
4439     # XXX This test is broken at the moment, as symbols required for
4440     # linking are now in libsupc++ (not built yet.....). In addition,
4441     # this test has cored on solaris in the past. In addition,
4442     # --gc-sections doesn't really work at the moment (keeps on discarding
4443     # used sections, first .eh_frame and now some of the glibc sections for
4444     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4445     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4446 echo "configure:4447: checking for ld that supports -Wl,--gc-sections" >&5
4447     if test "$cross_compiling" = yes; then
4448   ac_sectionLDflags=yes
4449 else
4450   cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453
4454      int main(void)
4455      {
4456        try { throw 1; }
4457        catch (...) { };
4458        return 0;
4459      }
4460     
4461 EOF
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4463 then
4464   ac_sectionLDflags=yes
4465 else
4466   echo "configure: failed program was:" >&5
4467   cat conftest.$ac_ext >&5
4468   rm -fr conftest*
4469   ac_sectionLDflags=no
4470 fi
4471 rm -fr conftest*
4472 fi
4473
4474     if test "$ac_test_CFLAGS" = set; then
4475       CFLAGS="$ac_save_CFLAGS"
4476     else
4477       # this is the suspicious part
4478       CFLAGS=''
4479     fi
4480     if test "$ac_sectionLDflags" = "yes"; then
4481       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4482     fi
4483     echo "$ac_t""$ac_sectionLDflags" 1>&6
4484   fi
4485
4486   # Set linker optimization flags.
4487   if test x"$with_gnu_ld" = x"yes"; then
4488     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4489   fi
4490
4491   
4492   
4493
4494       
4495     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4496 echo "configure:4497: checking for main in -lm" >&5
4497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499   echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501   ac_save_LIBS="$LIBS"
4502 LIBS="-lm  $LIBS"
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506
4507 int main() {
4508 main()
4509 ; return 0; }
4510 EOF
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512   rm -rf conftest*
4513   eval "ac_cv_lib_$ac_lib_var=yes"
4514 else
4515   echo "configure: failed program was:" >&5
4516   cat conftest.$ac_ext >&5
4517   rm -rf conftest*
4518   eval "ac_cv_lib_$ac_lib_var=no"
4519 fi
4520 rm -f conftest*
4521 LIBS="$ac_save_LIBS"
4522
4523 fi
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525   echo "$ac_t""yes" 1>&6
4526     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4527     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4528   cat >> confdefs.h <<EOF
4529 #define $ac_tr_lib 1
4530 EOF
4531
4532   LIBS="-lm $LIBS"
4533
4534 else
4535   echo "$ac_t""no" 1>&6
4536 fi
4537
4538   for ac_func in nan copysignf
4539 do
4540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_func" >&5
4542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4543   echo $ac_n "(cached) $ac_c" 1>&6
4544 else
4545   cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549     which can conflict with char $ac_func(); below.  */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error.  */
4552 /* We use char because int might match the return type of a gcc2
4553     builtin and then its argument prototype would still apply.  */
4554 char $ac_func();
4555
4556 int main() {
4557
4558 /* The GNU C library defines this for functions which it implements
4559     to always fail with ENOSYS.  Some functions are actually named
4560     something starting with __ and the normal name is an alias.  */
4561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4562 choke me
4563 #else
4564 $ac_func();
4565 #endif
4566
4567 ; return 0; }
4568 EOF
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570   rm -rf conftest*
4571   eval "ac_cv_func_$ac_func=yes"
4572 else
4573   echo "configure: failed program was:" >&5
4574   cat conftest.$ac_ext >&5
4575   rm -rf conftest*
4576   eval "ac_cv_func_$ac_func=no"
4577 fi
4578 rm -f conftest*
4579 fi
4580
4581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4582   echo "$ac_t""yes" 1>&6
4583     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4584   cat >> confdefs.h <<EOF
4585 #define $ac_tr_func 1
4586 EOF
4587  
4588 else
4589   echo "$ac_t""no" 1>&6
4590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4591 fi
4592 done
4593
4594
4595     for ac_func in __signbit
4596 do
4597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_func" >&5
4599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4600   echo $ac_n "(cached) $ac_c" 1>&6
4601 else
4602   cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* System header to define __stub macros and hopefully few prototypes,
4606     which can conflict with char $ac_func(); below.  */
4607 #include <assert.h>
4608 /* Override any gcc2 internal prototype to avoid an error.  */
4609 /* We use char because int might match the return type of a gcc2
4610     builtin and then its argument prototype would still apply.  */
4611 char $ac_func();
4612
4613 int main() {
4614
4615 /* The GNU C library defines this for functions which it implements
4616     to always fail with ENOSYS.  Some functions are actually named
4617     something starting with __ and the normal name is an alias.  */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 choke me
4620 #else
4621 $ac_func();
4622 #endif
4623
4624 ; return 0; }
4625 EOF
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627   rm -rf conftest*
4628   eval "ac_cv_func_$ac_func=yes"
4629 else
4630   echo "configure: failed program was:" >&5
4631   cat conftest.$ac_ext >&5
4632   rm -rf conftest*
4633   eval "ac_cv_func_$ac_func=no"
4634 fi
4635 rm -f conftest*
4636 fi
4637
4638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4639   echo "$ac_t""yes" 1>&6
4640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4641   cat >> confdefs.h <<EOF
4642 #define $ac_tr_func 1
4643 EOF
4644  
4645 else
4646   echo "$ac_t""no" 1>&6
4647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4648 fi
4649 done
4650
4651   for ac_func in __signbitf
4652 do
4653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_func" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4656   echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658   cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 /* System header to define __stub macros and hopefully few prototypes,
4662     which can conflict with char $ac_func(); below.  */
4663 #include <assert.h>
4664 /* Override any gcc2 internal prototype to avoid an error.  */
4665 /* We use char because int might match the return type of a gcc2
4666     builtin and then its argument prototype would still apply.  */
4667 char $ac_func();
4668
4669 int main() {
4670
4671 /* The GNU C library defines this for functions which it implements
4672     to always fail with ENOSYS.  Some functions are actually named
4673     something starting with __ and the normal name is an alias.  */
4674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4675 choke me
4676 #else
4677 $ac_func();
4678 #endif
4679
4680 ; return 0; }
4681 EOF
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683   rm -rf conftest*
4684   eval "ac_cv_func_$ac_func=yes"
4685 else
4686   echo "configure: failed program was:" >&5
4687   cat conftest.$ac_ext >&5
4688   rm -rf conftest*
4689   eval "ac_cv_func_$ac_func=no"
4690 fi
4691 rm -f conftest*
4692 fi
4693
4694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4695   echo "$ac_t""yes" 1>&6
4696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4697   cat >> confdefs.h <<EOF
4698 #define $ac_tr_func 1
4699 EOF
4700  
4701 else
4702   echo "$ac_t""no" 1>&6
4703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4704 fi
4705 done
4706
4707
4708           if test x$ac_cv_func_copysignl = x"yes"; then
4709     for ac_func in __signbitl
4710 do
4711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_func" >&5
4713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4714   echo $ac_n "(cached) $ac_c" 1>&6
4715 else
4716   cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 /* System header to define __stub macros and hopefully few prototypes,
4720     which can conflict with char $ac_func(); below.  */
4721 #include <assert.h>
4722 /* Override any gcc2 internal prototype to avoid an error.  */
4723 /* We use char because int might match the return type of a gcc2
4724     builtin and then its argument prototype would still apply.  */
4725 char $ac_func();
4726
4727 int main() {
4728
4729 /* The GNU C library defines this for functions which it implements
4730     to always fail with ENOSYS.  Some functions are actually named
4731     something starting with __ and the normal name is an alias.  */
4732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733 choke me
4734 #else
4735 $ac_func();
4736 #endif
4737
4738 ; return 0; }
4739 EOF
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741   rm -rf conftest*
4742   eval "ac_cv_func_$ac_func=yes"
4743 else
4744   echo "configure: failed program was:" >&5
4745   cat conftest.$ac_ext >&5
4746   rm -rf conftest*
4747   eval "ac_cv_func_$ac_func=no"
4748 fi
4749 rm -f conftest*
4750 fi
4751
4752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4753   echo "$ac_t""yes" 1>&6
4754     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4755   cat >> confdefs.h <<EOF
4756 #define $ac_tr_func 1
4757 EOF
4758  
4759 else
4760   echo "$ac_t""no" 1>&6
4761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4762 fi
4763 done
4764
4765   fi
4766
4767   if test -n "$LIBMATHOBJS"; then
4768     need_libmath=yes
4769   fi
4770   
4771   
4772
4773 if test "$need_libmath" = yes; then
4774   GLIBCPP_BUILD_LIBMATH_TRUE=
4775   GLIBCPP_BUILD_LIBMATH_FALSE='#'
4776 else
4777   GLIBCPP_BUILD_LIBMATH_TRUE='#'
4778   GLIBCPP_BUILD_LIBMATH_FALSE=
4779 fi
4780
4781       
4782     enable_wchar_t=no
4783
4784       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4785 echo "configure:4786: checking for mbstate_t" >&5
4786   cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 #include <wchar.h>
4790 int main() {
4791 mbstate_t teststate;
4792 ; return 0; }
4793 EOF
4794 if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4795   rm -rf conftest*
4796   have_mbstate_t=yes
4797 else
4798   echo "configure: failed program was:" >&5
4799   cat conftest.$ac_ext >&5
4800   rm -rf conftest*
4801   have_mbstate_t=no
4802 fi
4803 rm -f conftest*
4804   echo "$ac_t""$have_mbstate_t" 1>&6
4805   if test x"$have_mbstate_t" = xyes; then
4806     cat >> confdefs.h <<\EOF
4807 #define HAVE_MBSTATE_T 1
4808 EOF
4809
4810   fi
4811
4812     for ac_hdr in wchar.h
4813 do
4814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_hdr" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818   echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820   cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <$ac_hdr>
4824 EOF
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4829   rm -rf conftest*
4830   eval "ac_cv_header_$ac_safe=yes"
4831 else
4832   echo "$ac_err" >&5
4833   echo "configure: failed program was:" >&5
4834   cat conftest.$ac_ext >&5
4835   rm -rf conftest*
4836   eval "ac_cv_header_$ac_safe=no"
4837 fi
4838 rm -f conftest*
4839 fi
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841   echo "$ac_t""yes" 1>&6
4842     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4843   cat >> confdefs.h <<EOF
4844 #define $ac_tr_hdr 1
4845 EOF
4846  ac_has_wchar_h=yes
4847 else
4848   echo "$ac_t""no" 1>&6
4849 ac_has_wchar_h=no
4850 fi
4851 done
4852
4853   for ac_hdr in wctype.h
4854 do
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859   echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861   cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <$ac_hdr>
4865 EOF
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4870   rm -rf conftest*
4871   eval "ac_cv_header_$ac_safe=yes"
4872 else
4873   echo "$ac_err" >&5
4874   echo "configure: failed program was:" >&5
4875   cat conftest.$ac_ext >&5
4876   rm -rf conftest*
4877   eval "ac_cv_header_$ac_safe=no"
4878 fi
4879 rm -f conftest*
4880 fi
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882   echo "$ac_t""yes" 1>&6
4883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884   cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4886 EOF
4887  ac_has_wctype_h=yes
4888 else
4889   echo "$ac_t""no" 1>&6
4890 ac_has_wctype_h=no
4891 fi
4892 done
4893
4894
4895     if test x"$ac_has_wchar_h" = xyes &&
4896      test x"$ac_has_wctype_h" = xyes &&
4897      test x"$enable_c_mbchar" != xno; then
4898
4899             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4900 echo "configure:4901: checking for WCHAR_MIN and WCHAR_MAX" >&5
4901     cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 #include <wchar.h>
4905 int main() {
4906 int i = WCHAR_MIN; int j = WCHAR_MAX;
4907 ; return 0; }
4908 EOF
4909 if { (eval echo configure:4910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4910   rm -rf conftest*
4911   has_wchar_minmax=yes
4912 else
4913   echo "configure: failed program was:" >&5
4914   cat conftest.$ac_ext >&5
4915   rm -rf conftest*
4916   has_wchar_minmax=no
4917 fi
4918 rm -f conftest*
4919     echo "$ac_t""$has_wchar_minmax" 1>&6
4920
4921             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4922 echo "configure:4923: checking for WEOF" >&5
4923     cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926
4927       #include <wchar.h>
4928       #include <stddef.h>
4929 int main() {
4930 wint_t i = WEOF;
4931 ; return 0; }
4932 EOF
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934   rm -rf conftest*
4935   has_weof=yes
4936 else
4937   echo "configure: failed program was:" >&5
4938   cat conftest.$ac_ext >&5
4939   rm -rf conftest*
4940   has_weof=no
4941 fi
4942 rm -f conftest*
4943     echo "$ac_t""$has_weof" 1>&6
4944
4945         ac_wfuncs=yes
4946     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4947 do
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951   echo $ac_n "(cached) $ac_c" 1>&6
4952 else
4953   cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957     which can conflict with char $ac_func(); below.  */
4958 #include <assert.h>
4959 /* Override any gcc2 internal prototype to avoid an error.  */
4960 /* We use char because int might match the return type of a gcc2
4961     builtin and then its argument prototype would still apply.  */
4962 char $ac_func();
4963
4964 int main() {
4965
4966 /* The GNU C library defines this for functions which it implements
4967     to always fail with ENOSYS.  Some functions are actually named
4968     something starting with __ and the normal name is an alias.  */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 choke me
4971 #else
4972 $ac_func();
4973 #endif
4974
4975 ; return 0; }
4976 EOF
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978   rm -rf conftest*
4979   eval "ac_cv_func_$ac_func=yes"
4980 else
4981   echo "configure: failed program was:" >&5
4982   cat conftest.$ac_ext >&5
4983   rm -rf conftest*
4984   eval "ac_cv_func_$ac_func=no"
4985 fi
4986 rm -f conftest*
4987 fi
4988
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990   echo "$ac_t""yes" 1>&6
4991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992   cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4994 EOF
4995  
4996 else
4997   echo "$ac_t""no" 1>&6
4998 \
4999     ac_wfuncs=no
5000 fi
5001 done
5002
5003
5004         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5005     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5006     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5007     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5008     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5009     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5010 do
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014   echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016   cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes,
5020     which can conflict with char $ac_func(); below.  */
5021 #include <assert.h>
5022 /* Override any gcc2 internal prototype to avoid an error.  */
5023 /* We use char because int might match the return type of a gcc2
5024     builtin and then its argument prototype would still apply.  */
5025 char $ac_func();
5026
5027 int main() {
5028
5029 /* The GNU C library defines this for functions which it implements
5030     to always fail with ENOSYS.  Some functions are actually named
5031     something starting with __ and the normal name is an alias.  */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 choke me
5034 #else
5035 $ac_func();
5036 #endif
5037
5038 ; return 0; }
5039 EOF
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041   rm -rf conftest*
5042   eval "ac_cv_func_$ac_func=yes"
5043 else
5044   echo "configure: failed program was:" >&5
5045   cat conftest.$ac_ext >&5
5046   rm -rf conftest*
5047   eval "ac_cv_func_$ac_func=no"
5048 fi
5049 rm -f conftest*
5050 fi
5051
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053   echo "$ac_t""yes" 1>&6
5054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055   cat >> confdefs.h <<EOF
5056 #define $ac_tr_func 1
5057 EOF
5058  
5059 else
5060   echo "$ac_t""no" 1>&6
5061 \
5062     ac_wfuncs=no
5063 fi
5064 done
5065
5066
5067     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5068 echo "configure:5069: checking for ISO C99 wchar_t support" >&5
5069     if test x"$has_weof" = xyes &&
5070        test x"$has_wchar_minmax" = xyes &&
5071        test x"$ac_wfuncs" = xyes; then
5072       ac_isoC99_wchar_t=yes
5073     else
5074       ac_isoC99_wchar_t=no
5075     fi
5076     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5077
5078             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5080 echo "configure:5081: checking for iconv.h" >&5
5081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5082   echo $ac_n "(cached) $ac_c" 1>&6
5083 else
5084   cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 #include <iconv.h>
5088 EOF
5089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5090 { (eval echo configure:5091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5092 if test -z "$ac_err"; then
5093   rm -rf conftest*
5094   eval "ac_cv_header_$ac_safe=yes"
5095 else
5096   echo "$ac_err" >&5
5097   echo "configure: failed program was:" >&5
5098   cat conftest.$ac_ext >&5
5099   rm -rf conftest*
5100   eval "ac_cv_header_$ac_safe=no"
5101 fi
5102 rm -f conftest*
5103 fi
5104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5105   echo "$ac_t""yes" 1>&6
5106   ac_has_iconv_h=yes
5107 else
5108   echo "$ac_t""no" 1>&6
5109 ac_has_iconv_h=no
5110 fi
5111
5112     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for langinfo.h" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116   echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118   cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <langinfo.h>
5122 EOF
5123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5127   rm -rf conftest*
5128   eval "ac_cv_header_$ac_safe=yes"
5129 else
5130   echo "$ac_err" >&5
5131   echo "configure: failed program was:" >&5
5132   cat conftest.$ac_ext >&5
5133   rm -rf conftest*
5134   eval "ac_cv_header_$ac_safe=no"
5135 fi
5136 rm -f conftest*
5137 fi
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139   echo "$ac_t""yes" 1>&6
5140   ac_has_langinfo_h=yes
5141 else
5142   echo "$ac_t""no" 1>&6
5143 ac_has_langinfo_h=no
5144 fi
5145
5146
5147         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5148 echo "configure:5149: checking for iconv in -liconv" >&5
5149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5151   echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153   ac_save_LIBS="$LIBS"
5154 LIBS="-liconv  $LIBS"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* Override any gcc2 internal prototype to avoid an error.  */
5159 /* We use char because int might match the return type of a gcc2
5160     builtin and then its argument prototype would still apply.  */
5161 char iconv();
5162
5163 int main() {
5164 iconv()
5165 ; return 0; }
5166 EOF
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168   rm -rf conftest*
5169   eval "ac_cv_lib_$ac_lib_var=yes"
5170 else
5171   echo "configure: failed program was:" >&5
5172   cat conftest.$ac_ext >&5
5173   rm -rf conftest*
5174   eval "ac_cv_lib_$ac_lib_var=no"
5175 fi
5176 rm -f conftest*
5177 LIBS="$ac_save_LIBS"
5178
5179 fi
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5181   echo "$ac_t""yes" 1>&6
5182   libiconv="-liconv"
5183 else
5184   echo "$ac_t""no" 1>&6
5185 fi
5186
5187     ac_save_LIBS="$LIBS"
5188     LIBS="$LIBS $libiconv"
5189
5190     for ac_func in iconv_open iconv_close iconv nl_langinfo
5191 do
5192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_func" >&5
5194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5195   echo $ac_n "(cached) $ac_c" 1>&6
5196 else
5197   cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201     which can conflict with char $ac_func(); below.  */
5202 #include <assert.h>
5203 /* Override any gcc2 internal prototype to avoid an error.  */
5204 /* We use char because int might match the return type of a gcc2
5205     builtin and then its argument prototype would still apply.  */
5206 char $ac_func();
5207
5208 int main() {
5209
5210 /* The GNU C library defines this for functions which it implements
5211     to always fail with ENOSYS.  Some functions are actually named
5212     something starting with __ and the normal name is an alias.  */
5213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5214 choke me
5215 #else
5216 $ac_func();
5217 #endif
5218
5219 ; return 0; }
5220 EOF
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222   rm -rf conftest*
5223   eval "ac_cv_func_$ac_func=yes"
5224 else
5225   echo "configure: failed program was:" >&5
5226   cat conftest.$ac_ext >&5
5227   rm -rf conftest*
5228   eval "ac_cv_func_$ac_func=no"
5229 fi
5230 rm -f conftest*
5231 fi
5232
5233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5234   echo "$ac_t""yes" 1>&6
5235     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5236   cat >> confdefs.h <<EOF
5237 #define $ac_tr_func 1
5238 EOF
5239  \
5240     ac_XPG2funcs=yes
5241 else
5242   echo "$ac_t""no" 1>&6
5243 ac_XPG2funcs=no
5244 fi
5245 done
5246
5247
5248     LIBS="$ac_save_LIBS"
5249
5250     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5251 echo "configure:5252: checking for XPG2 wchar_t support" >&5
5252     if test x"$ac_has_iconv_h" = xyes &&
5253        test x"$ac_has_langinfo_h" = xyes &&
5254        test x"$ac_XPG2funcs" = xyes; then
5255       ac_XPG2_wchar_t=yes
5256     else
5257       ac_XPG2_wchar_t=no
5258     fi
5259     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5260
5261             if test x"$ac_isoC99_wchar_t" = xyes && 
5262         test x"$ac_XPG2_wchar_t" = xyes; then
5263       cat >> confdefs.h <<\EOF
5264 #define _GLIBCPP_USE_WCHAR_T 1
5265 EOF
5266
5267       enable_wchar_t=yes
5268     fi
5269   fi
5270   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5271 echo "configure:5272: checking for enabled wchar_t specializations" >&5
5272   echo "$ac_t""$enable_wchar_t" 1>&6    
5273   
5274
5275 if test "$enable_wchar_t" = yes; then
5276   GLIBCPP_TEST_WCHAR_T_TRUE=
5277   GLIBCPP_TEST_WCHAR_T_FALSE='#'
5278 else
5279   GLIBCPP_TEST_WCHAR_T_TRUE='#'
5280   GLIBCPP_TEST_WCHAR_T_FALSE=
5281 fi      
5282
5283       cat >> confdefs.h <<\EOF
5284 #define HAVE_COPYSIGN 1
5285 EOF
5286
5287       cat >> confdefs.h <<\EOF
5288 #define HAVE_COPYSIGNF 1
5289 EOF
5290
5291       cat >> confdefs.h <<\EOF
5292 #define HAVE_FINITE 1
5293 EOF
5294
5295       cat >> confdefs.h <<\EOF
5296 #define HAVE_FINITEF 1
5297 EOF
5298
5299       cat >> confdefs.h <<\EOF
5300 #define HAVE_FREXPF 1
5301 EOF
5302
5303       cat >> confdefs.h <<\EOF
5304 #define HAVE_HYPOTF 1
5305 EOF
5306
5307       cat >> confdefs.h <<\EOF
5308 #define HAVE_ISINF 1
5309 EOF
5310
5311       cat >> confdefs.h <<\EOF
5312 #define HAVE_ISINFF 1
5313 EOF
5314
5315       cat >> confdefs.h <<\EOF
5316 #define HAVE_ISNAN 1
5317 EOF
5318
5319       cat >> confdefs.h <<\EOF
5320 #define HAVE_ISNANF 1
5321 EOF
5322
5323       cat >> confdefs.h <<\EOF
5324 #define HAVE_SINCOS 1
5325 EOF
5326
5327       cat >> confdefs.h <<\EOF
5328 #define HAVE_SINCOSF 1
5329 EOF
5330
5331       if test x"long_double_math_on_this_cpu" = x"yes"; then
5332         cat >> confdefs.h <<\EOF
5333 #define HAVE_FINITEL 1
5334 EOF
5335
5336         cat >> confdefs.h <<\EOF
5337 #define HAVE_HYPOTL 1
5338 EOF
5339
5340         cat >> confdefs.h <<\EOF
5341 #define HAVE_ISINFL 1
5342 EOF
5343
5344         cat >> confdefs.h <<\EOF
5345 #define HAVE_ISNANL 1
5346 EOF
5347
5348       fi
5349       ;;
5350     *-hpux*)
5351       # Check for available headers.
5352       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5353         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5354         fp.h locale.h float.h inttypes.h
5355 do
5356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_hdr" >&5
5359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5360   echo $ac_n "(cached) $ac_c" 1>&6
5361 else
5362   cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #include <$ac_hdr>
5366 EOF
5367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5368 { (eval echo configure:5369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5370 if test -z "$ac_err"; then
5371   rm -rf conftest*
5372   eval "ac_cv_header_$ac_safe=yes"
5373 else
5374   echo "$ac_err" >&5
5375   echo "configure: failed program was:" >&5
5376   cat conftest.$ac_ext >&5
5377   rm -rf conftest*
5378   eval "ac_cv_header_$ac_safe=no"
5379 fi
5380 rm -f conftest*
5381 fi
5382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5383   echo "$ac_t""yes" 1>&6
5384     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5385   cat >> confdefs.h <<EOF
5386 #define $ac_tr_hdr 1
5387 EOF
5388  
5389 else
5390   echo "$ac_t""no" 1>&6
5391 fi
5392 done
5393
5394       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5395       
5396       
5397   # If we're not using GNU ld, then there's no point in even trying these
5398   # tests.  Check for that first.  We should have already tested for gld
5399   # by now (in libtool), but require it now just to be safe...
5400   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5401   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5402   
5403
5404   # The name set by libtool depends on the version of libtool.  Shame on us
5405   # for depending on an impl detail, but c'est la vie.  Older versions used
5406   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5407   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5408   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5409   # set (hence we're using an older libtool), then set it.
5410   if test x${with_gnu_ld+set} != xset; then
5411     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5412       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5413       with_gnu_ld=no
5414     else
5415       with_gnu_ld=$ac_cv_prog_gnu_ld
5416     fi
5417   fi
5418
5419   # Start by getting the version number.  I think the libtool test already
5420   # does some of this, but throws away the result.
5421   
5422   ldver=`$LD --version 2>/dev/null | head -1 | \
5423          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5424   
5425   glibcpp_gnu_ld_version=`echo $ldver | \
5426          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5427
5428   # Set --gc-sections.
5429   if test "$with_gnu_ld" = "notbroken"; then
5430     # GNU ld it is!  Joy and bunny rabbits!
5431
5432     # All these tests are for C++; save the language and the compiler flags.
5433     # Need to do this so that g++ won't try to link in libstdc++
5434     ac_test_CFLAGS="${CFLAGS+set}"
5435     ac_save_CFLAGS="$CFLAGS"
5436     CFLAGS='-x c++  -Wl,--gc-sections'
5437
5438     # Check for -Wl,--gc-sections
5439     # XXX This test is broken at the moment, as symbols required for
5440     # linking are now in libsupc++ (not built yet.....). In addition,
5441     # this test has cored on solaris in the past. In addition,
5442     # --gc-sections doesn't really work at the moment (keeps on discarding
5443     # used sections, first .eh_frame and now some of the glibc sections for
5444     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5445     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5446 echo "configure:5447: checking for ld that supports -Wl,--gc-sections" >&5
5447     if test "$cross_compiling" = yes; then
5448   ac_sectionLDflags=yes
5449 else
5450   cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453
5454      int main(void)
5455      {
5456        try { throw 1; }
5457        catch (...) { };
5458        return 0;
5459      }
5460     
5461 EOF
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5463 then
5464   ac_sectionLDflags=yes
5465 else
5466   echo "configure: failed program was:" >&5
5467   cat conftest.$ac_ext >&5
5468   rm -fr conftest*
5469   ac_sectionLDflags=no
5470 fi
5471 rm -fr conftest*
5472 fi
5473
5474     if test "$ac_test_CFLAGS" = set; then
5475       CFLAGS="$ac_save_CFLAGS"
5476     else
5477       # this is the suspicious part
5478       CFLAGS=''
5479     fi
5480     if test "$ac_sectionLDflags" = "yes"; then
5481       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5482     fi
5483     echo "$ac_t""$ac_sectionLDflags" 1>&6
5484   fi
5485
5486   # Set linker optimization flags.
5487   if test x"$with_gnu_ld" = x"yes"; then
5488     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5489   fi
5490
5491   
5492   
5493
5494       
5495     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5496 echo "configure:5497: checking for main in -lm" >&5
5497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5499   echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501   ac_save_LIBS="$LIBS"
5502 LIBS="-lm  $LIBS"
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506
5507 int main() {
5508 main()
5509 ; return 0; }
5510 EOF
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512   rm -rf conftest*
5513   eval "ac_cv_lib_$ac_lib_var=yes"
5514 else
5515   echo "configure: failed program was:" >&5
5516   cat conftest.$ac_ext >&5
5517   rm -rf conftest*
5518   eval "ac_cv_lib_$ac_lib_var=no"
5519 fi
5520 rm -f conftest*
5521 LIBS="$ac_save_LIBS"
5522
5523 fi
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525   echo "$ac_t""yes" 1>&6
5526     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5527     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5528   cat >> confdefs.h <<EOF
5529 #define $ac_tr_lib 1
5530 EOF
5531
5532   LIBS="-lm $LIBS"
5533
5534 else
5535   echo "$ac_t""no" 1>&6
5536 fi
5537
5538   for ac_func in nan copysignf
5539 do
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543   echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545   cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549     which can conflict with char $ac_func(); below.  */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error.  */
5552 /* We use char because int might match the return type of a gcc2
5553     builtin and then its argument prototype would still apply.  */
5554 char $ac_func();
5555
5556 int main() {
5557
5558 /* The GNU C library defines this for functions which it implements
5559     to always fail with ENOSYS.  Some functions are actually named
5560     something starting with __ and the normal name is an alias.  */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5566
5567 ; return 0; }
5568 EOF
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570   rm -rf conftest*
5571   eval "ac_cv_func_$ac_func=yes"
5572 else
5573   echo "configure: failed program was:" >&5
5574   cat conftest.$ac_ext >&5
5575   rm -rf conftest*
5576   eval "ac_cv_func_$ac_func=no"
5577 fi
5578 rm -f conftest*
5579 fi
5580
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582   echo "$ac_t""yes" 1>&6
5583     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584   cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5586 EOF
5587  
5588 else
5589   echo "$ac_t""no" 1>&6
5590 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5591 fi
5592 done
5593
5594
5595     for ac_func in __signbit
5596 do
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600   echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602   cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606     which can conflict with char $ac_func(); below.  */
5607 #include <assert.h>
5608 /* Override any gcc2 internal prototype to avoid an error.  */
5609 /* We use char because int might match the return type of a gcc2
5610     builtin and then its argument prototype would still apply.  */
5611 char $ac_func();
5612
5613 int main() {
5614
5615 /* The GNU C library defines this for functions which it implements
5616     to always fail with ENOSYS.  Some functions are actually named
5617     something starting with __ and the normal name is an alias.  */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 $ac_func();
5622 #endif
5623
5624 ; return 0; }
5625 EOF
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627   rm -rf conftest*
5628   eval "ac_cv_func_$ac_func=yes"
5629 else
5630   echo "configure: failed program was:" >&5
5631   cat conftest.$ac_ext >&5
5632   rm -rf conftest*
5633   eval "ac_cv_func_$ac_func=no"
5634 fi
5635 rm -f conftest*
5636 fi
5637
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639   echo "$ac_t""yes" 1>&6
5640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641   cat >> confdefs.h <<EOF
5642 #define $ac_tr_func 1
5643 EOF
5644  
5645 else
5646   echo "$ac_t""no" 1>&6
5647 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5648 fi
5649 done
5650
5651   for ac_func in __signbitf
5652 do
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656   echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658   cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662     which can conflict with char $ac_func(); below.  */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error.  */
5665 /* We use char because int might match the return type of a gcc2
5666     builtin and then its argument prototype would still apply.  */
5667 char $ac_func();
5668
5669 int main() {
5670
5671 /* The GNU C library defines this for functions which it implements
5672     to always fail with ENOSYS.  Some functions are actually named
5673     something starting with __ and the normal name is an alias.  */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5679
5680 ; return 0; }
5681 EOF
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683   rm -rf conftest*
5684   eval "ac_cv_func_$ac_func=yes"
5685 else
5686   echo "configure: failed program was:" >&5
5687   cat conftest.$ac_ext >&5
5688   rm -rf conftest*
5689   eval "ac_cv_func_$ac_func=no"
5690 fi
5691 rm -f conftest*
5692 fi
5693
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695   echo "$ac_t""yes" 1>&6
5696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697   cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5699 EOF
5700  
5701 else
5702   echo "$ac_t""no" 1>&6
5703 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5704 fi
5705 done
5706
5707
5708           if test x$ac_cv_func_copysignl = x"yes"; then
5709     for ac_func in __signbitl
5710 do
5711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5712 echo "configure:5713: checking for $ac_func" >&5
5713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5714   echo $ac_n "(cached) $ac_c" 1>&6
5715 else
5716   cat > conftest.$ac_ext <<EOF
5717 #line 5718 "configure"
5718 #include "confdefs.h"
5719 /* System header to define __stub macros and hopefully few prototypes,
5720     which can conflict with char $ac_func(); below.  */
5721 #include <assert.h>
5722 /* Override any gcc2 internal prototype to avoid an error.  */
5723 /* We use char because int might match the return type of a gcc2
5724     builtin and then its argument prototype would still apply.  */
5725 char $ac_func();
5726
5727 int main() {
5728
5729 /* The GNU C library defines this for functions which it implements
5730     to always fail with ENOSYS.  Some functions are actually named
5731     something starting with __ and the normal name is an alias.  */
5732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 choke me
5734 #else
5735 $ac_func();
5736 #endif
5737
5738 ; return 0; }
5739 EOF
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5741   rm -rf conftest*
5742   eval "ac_cv_func_$ac_func=yes"
5743 else
5744   echo "configure: failed program was:" >&5
5745   cat conftest.$ac_ext >&5
5746   rm -rf conftest*
5747   eval "ac_cv_func_$ac_func=no"
5748 fi
5749 rm -f conftest*
5750 fi
5751
5752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5753   echo "$ac_t""yes" 1>&6
5754     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5755   cat >> confdefs.h <<EOF
5756 #define $ac_tr_func 1
5757 EOF
5758  
5759 else
5760   echo "$ac_t""no" 1>&6
5761 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5762 fi
5763 done
5764
5765   fi
5766
5767   if test -n "$LIBMATHOBJS"; then
5768     need_libmath=yes
5769   fi
5770   
5771   
5772
5773 if test "$need_libmath" = yes; then
5774   GLIBCPP_BUILD_LIBMATH_TRUE=
5775   GLIBCPP_BUILD_LIBMATH_FALSE='#'
5776 else
5777   GLIBCPP_BUILD_LIBMATH_TRUE='#'
5778   GLIBCPP_BUILD_LIBMATH_FALSE=
5779 fi
5780
5781       
5782     enable_wchar_t=no
5783
5784       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5785 echo "configure:5786: checking for mbstate_t" >&5
5786   cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <wchar.h>
5790 int main() {
5791 mbstate_t teststate;
5792 ; return 0; }
5793 EOF
5794 if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5795   rm -rf conftest*
5796   have_mbstate_t=yes
5797 else
5798   echo "configure: failed program was:" >&5
5799   cat conftest.$ac_ext >&5
5800   rm -rf conftest*
5801   have_mbstate_t=no
5802 fi
5803 rm -f conftest*
5804   echo "$ac_t""$have_mbstate_t" 1>&6
5805   if test x"$have_mbstate_t" = xyes; then
5806     cat >> confdefs.h <<\EOF
5807 #define HAVE_MBSTATE_T 1
5808 EOF
5809
5810   fi
5811
5812     for ac_hdr in wchar.h
5813 do
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818   echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820   cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <$ac_hdr>
5824 EOF
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5829   rm -rf conftest*
5830   eval "ac_cv_header_$ac_safe=yes"
5831 else
5832   echo "$ac_err" >&5
5833   echo "configure: failed program was:" >&5
5834   cat conftest.$ac_ext >&5
5835   rm -rf conftest*
5836   eval "ac_cv_header_$ac_safe=no"
5837 fi
5838 rm -f conftest*
5839 fi
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841   echo "$ac_t""yes" 1>&6
5842     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843   cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5845 EOF
5846  ac_has_wchar_h=yes
5847 else
5848   echo "$ac_t""no" 1>&6
5849 ac_has_wchar_h=no
5850 fi
5851 done
5852
5853   for ac_hdr in wctype.h
5854 do
5855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5857 echo "configure:5858: checking for $ac_hdr" >&5
5858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5859   echo $ac_n "(cached) $ac_c" 1>&6
5860 else
5861   cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 #include <$ac_hdr>
5865 EOF
5866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5867 { (eval echo configure:5868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5869 if test -z "$ac_err"; then
5870   rm -rf conftest*
5871   eval "ac_cv_header_$ac_safe=yes"
5872 else
5873   echo "$ac_err" >&5
5874   echo "configure: failed program was:" >&5
5875   cat conftest.$ac_ext >&5
5876   rm -rf conftest*
5877   eval "ac_cv_header_$ac_safe=no"
5878 fi
5879 rm -f conftest*
5880 fi
5881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5882   echo "$ac_t""yes" 1>&6
5883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5884   cat >> confdefs.h <<EOF
5885 #define $ac_tr_hdr 1
5886 EOF
5887  ac_has_wctype_h=yes
5888 else
5889   echo "$ac_t""no" 1>&6
5890 ac_has_wctype_h=no
5891 fi
5892 done
5893
5894
5895     if test x"$ac_has_wchar_h" = xyes &&
5896      test x"$ac_has_wctype_h" = xyes &&
5897      test x"$enable_c_mbchar" != xno; then
5898
5899             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5900 echo "configure:5901: checking for WCHAR_MIN and WCHAR_MAX" >&5
5901     cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <wchar.h>
5905 int main() {
5906 int i = WCHAR_MIN; int j = WCHAR_MAX;
5907 ; return 0; }
5908 EOF
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910   rm -rf conftest*
5911   has_wchar_minmax=yes
5912 else
5913   echo "configure: failed program was:" >&5
5914   cat conftest.$ac_ext >&5
5915   rm -rf conftest*
5916   has_wchar_minmax=no
5917 fi
5918 rm -f conftest*
5919     echo "$ac_t""$has_wchar_minmax" 1>&6
5920
5921             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5922 echo "configure:5923: checking for WEOF" >&5
5923     cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926
5927       #include <wchar.h>
5928       #include <stddef.h>
5929 int main() {
5930 wint_t i = WEOF;
5931 ; return 0; }
5932 EOF
5933 if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934   rm -rf conftest*
5935   has_weof=yes
5936 else
5937   echo "configure: failed program was:" >&5
5938   cat conftest.$ac_ext >&5
5939   rm -rf conftest*
5940   has_weof=no
5941 fi
5942 rm -f conftest*
5943     echo "$ac_t""$has_weof" 1>&6
5944
5945         ac_wfuncs=yes
5946     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5947 do
5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_func" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5951   echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953   cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957     which can conflict with char $ac_func(); below.  */
5958 #include <assert.h>
5959 /* Override any gcc2 internal prototype to avoid an error.  */
5960 /* We use char because int might match the return type of a gcc2
5961     builtin and then its argument prototype would still apply.  */
5962 char $ac_func();
5963
5964 int main() {
5965
5966 /* The GNU C library defines this for functions which it implements
5967     to always fail with ENOSYS.  Some functions are actually named
5968     something starting with __ and the normal name is an alias.  */
5969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 choke me
5971 #else
5972 $ac_func();
5973 #endif
5974
5975 ; return 0; }
5976 EOF
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978   rm -rf conftest*
5979   eval "ac_cv_func_$ac_func=yes"
5980 else
5981   echo "configure: failed program was:" >&5
5982   cat conftest.$ac_ext >&5
5983   rm -rf conftest*
5984   eval "ac_cv_func_$ac_func=no"
5985 fi
5986 rm -f conftest*
5987 fi
5988
5989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5990   echo "$ac_t""yes" 1>&6
5991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5992   cat >> confdefs.h <<EOF
5993 #define $ac_tr_func 1
5994 EOF
5995  
5996 else
5997   echo "$ac_t""no" 1>&6
5998 \
5999     ac_wfuncs=no
6000 fi
6001 done
6002
6003
6004         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6005     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6006     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6007     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6008     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6009     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6010 do
6011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6012 echo "configure:6013: checking for $ac_func" >&5
6013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6014   echo $ac_n "(cached) $ac_c" 1>&6
6015 else
6016   cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 /* System header to define __stub macros and hopefully few prototypes,
6020     which can conflict with char $ac_func(); below.  */
6021 #include <assert.h>
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 /* We use char because int might match the return type of a gcc2
6024     builtin and then its argument prototype would still apply.  */
6025 char $ac_func();
6026
6027 int main() {
6028
6029 /* The GNU C library defines this for functions which it implements
6030     to always fail with ENOSYS.  Some functions are actually named
6031     something starting with __ and the normal name is an alias.  */
6032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6033 choke me
6034 #else
6035 $ac_func();
6036 #endif
6037
6038 ; return 0; }
6039 EOF
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6041   rm -rf conftest*
6042   eval "ac_cv_func_$ac_func=yes"
6043 else
6044   echo "configure: failed program was:" >&5
6045   cat conftest.$ac_ext >&5
6046   rm -rf conftest*
6047   eval "ac_cv_func_$ac_func=no"
6048 fi
6049 rm -f conftest*
6050 fi
6051
6052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6053   echo "$ac_t""yes" 1>&6
6054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055   cat >> confdefs.h <<EOF
6056 #define $ac_tr_func 1
6057 EOF
6058  
6059 else
6060   echo "$ac_t""no" 1>&6
6061 \
6062     ac_wfuncs=no
6063 fi
6064 done
6065
6066
6067     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6068 echo "configure:6069: checking for ISO C99 wchar_t support" >&5
6069     if test x"$has_weof" = xyes &&
6070        test x"$has_wchar_minmax" = xyes &&
6071        test x"$ac_wfuncs" = xyes; then
6072       ac_isoC99_wchar_t=yes
6073     else
6074       ac_isoC99_wchar_t=no
6075     fi
6076     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6077
6078             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for iconv.h" >&5
6081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6082   echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084   cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <iconv.h>
6088 EOF
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6093   rm -rf conftest*
6094   eval "ac_cv_header_$ac_safe=yes"
6095 else
6096   echo "$ac_err" >&5
6097   echo "configure: failed program was:" >&5
6098   cat conftest.$ac_ext >&5
6099   rm -rf conftest*
6100   eval "ac_cv_header_$ac_safe=no"
6101 fi
6102 rm -f conftest*
6103 fi
6104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6105   echo "$ac_t""yes" 1>&6
6106   ac_has_iconv_h=yes
6107 else
6108   echo "$ac_t""no" 1>&6
6109 ac_has_iconv_h=no
6110 fi
6111
6112     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6113 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6114 echo "configure:6115: checking for langinfo.h" >&5
6115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6116   echo $ac_n "(cached) $ac_c" 1>&6
6117 else
6118   cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <langinfo.h>
6122 EOF
6123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6124 { (eval echo configure:6125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6126 if test -z "$ac_err"; then
6127   rm -rf conftest*
6128   eval "ac_cv_header_$ac_safe=yes"
6129 else
6130   echo "$ac_err" >&5
6131   echo "configure: failed program was:" >&5
6132   cat conftest.$ac_ext >&5
6133   rm -rf conftest*
6134   eval "ac_cv_header_$ac_safe=no"
6135 fi
6136 rm -f conftest*
6137 fi
6138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6139   echo "$ac_t""yes" 1>&6
6140   ac_has_langinfo_h=yes
6141 else
6142   echo "$ac_t""no" 1>&6
6143 ac_has_langinfo_h=no
6144 fi
6145
6146
6147         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6148 echo "configure:6149: checking for iconv in -liconv" >&5
6149 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6151   echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153   ac_save_LIBS="$LIBS"
6154 LIBS="-liconv  $LIBS"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* Override any gcc2 internal prototype to avoid an error.  */
6159 /* We use char because int might match the return type of a gcc2
6160     builtin and then its argument prototype would still apply.  */
6161 char iconv();
6162
6163 int main() {
6164 iconv()
6165 ; return 0; }
6166 EOF
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168   rm -rf conftest*
6169   eval "ac_cv_lib_$ac_lib_var=yes"
6170 else
6171   echo "configure: failed program was:" >&5
6172   cat conftest.$ac_ext >&5
6173   rm -rf conftest*
6174   eval "ac_cv_lib_$ac_lib_var=no"
6175 fi
6176 rm -f conftest*
6177 LIBS="$ac_save_LIBS"
6178
6179 fi
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181   echo "$ac_t""yes" 1>&6
6182   libiconv="-liconv"
6183 else
6184   echo "$ac_t""no" 1>&6
6185 fi
6186
6187     ac_save_LIBS="$LIBS"
6188     LIBS="$LIBS $libiconv"
6189
6190     for ac_func in iconv_open iconv_close iconv nl_langinfo
6191 do
6192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_func" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6195   echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197   cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201     which can conflict with char $ac_func(); below.  */
6202 #include <assert.h>
6203 /* Override any gcc2 internal prototype to avoid an error.  */
6204 /* We use char because int might match the return type of a gcc2
6205     builtin and then its argument prototype would still apply.  */
6206 char $ac_func();
6207
6208 int main() {
6209
6210 /* The GNU C library defines this for functions which it implements
6211     to always fail with ENOSYS.  Some functions are actually named
6212     something starting with __ and the normal name is an alias.  */
6213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6214 choke me
6215 #else
6216 $ac_func();
6217 #endif
6218
6219 ; return 0; }
6220 EOF
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222   rm -rf conftest*
6223   eval "ac_cv_func_$ac_func=yes"
6224 else
6225   echo "configure: failed program was:" >&5
6226   cat conftest.$ac_ext >&5
6227   rm -rf conftest*
6228   eval "ac_cv_func_$ac_func=no"
6229 fi
6230 rm -f conftest*
6231 fi
6232
6233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6234   echo "$ac_t""yes" 1>&6
6235     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6236   cat >> confdefs.h <<EOF
6237 #define $ac_tr_func 1
6238 EOF
6239  \
6240     ac_XPG2funcs=yes
6241 else
6242   echo "$ac_t""no" 1>&6
6243 ac_XPG2funcs=no
6244 fi
6245 done
6246
6247
6248     LIBS="$ac_save_LIBS"
6249
6250     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6251 echo "configure:6252: checking for XPG2 wchar_t support" >&5
6252     if test x"$ac_has_iconv_h" = xyes &&
6253        test x"$ac_has_langinfo_h" = xyes &&
6254        test x"$ac_XPG2funcs" = xyes; then
6255       ac_XPG2_wchar_t=yes
6256     else
6257       ac_XPG2_wchar_t=no
6258     fi
6259     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6260
6261             if test x"$ac_isoC99_wchar_t" = xyes && 
6262         test x"$ac_XPG2_wchar_t" = xyes; then
6263       cat >> confdefs.h <<\EOF
6264 #define _GLIBCPP_USE_WCHAR_T 1
6265 EOF
6266
6267       enable_wchar_t=yes
6268     fi
6269   fi
6270   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6271 echo "configure:6272: checking for enabled wchar_t specializations" >&5
6272   echo "$ac_t""$enable_wchar_t" 1>&6    
6273   
6274
6275 if test "$enable_wchar_t" = yes; then
6276   GLIBCPP_TEST_WCHAR_T_TRUE=
6277   GLIBCPP_TEST_WCHAR_T_FALSE='#'
6278 else
6279   GLIBCPP_TEST_WCHAR_T_TRUE='#'
6280   GLIBCPP_TEST_WCHAR_T_FALSE=
6281 fi      
6282
6283       os_include_dir="os/hpux"
6284       cat >> confdefs.h <<\EOF
6285 #define HAVE_COPYSIGN 1
6286 EOF
6287
6288       cat >> confdefs.h <<\EOF
6289 #define HAVE_COPYSIGNF 1
6290 EOF
6291
6292       cat >> confdefs.h <<\EOF
6293 #define HAVE_FREXPF 1
6294 EOF
6295
6296       cat >> confdefs.h <<\EOF
6297 #define HAVE_HYPOT 1
6298 EOF
6299
6300       case "$target" in
6301         *-hpux10*)
6302           cat >> confdefs.h <<\EOF
6303 #define HAVE_FINITE 1
6304 EOF
6305
6306           cat >> confdefs.h <<\EOF
6307 #define HAVE_FINITEF 1
6308 EOF
6309
6310           cat >> confdefs.h <<\EOF
6311 #define HAVE_ISINF 1
6312 EOF
6313
6314           cat >> confdefs.h <<\EOF
6315 #define HAVE_ISINFF 1
6316 EOF
6317
6318           cat >> confdefs.h <<\EOF
6319 #define HAVE_ISNAN 1
6320 EOF
6321
6322           cat >> confdefs.h <<\EOF
6323 #define HAVE_ISNANF 1
6324 EOF
6325
6326           ;;
6327       esac
6328
6329       ;;
6330     *-netbsd*)
6331       # Check for available headers.
6332       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6333         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6334         fp.h locale.h float.h inttypes.h
6335 do
6336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6338 echo "configure:6339: checking for $ac_hdr" >&5
6339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6340   echo $ac_n "(cached) $ac_c" 1>&6
6341 else
6342   cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6345 #include <$ac_hdr>
6346 EOF
6347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6348 { (eval echo configure:6349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6350 if test -z "$ac_err"; then
6351   rm -rf conftest*
6352   eval "ac_cv_header_$ac_safe=yes"
6353 else
6354   echo "$ac_err" >&5
6355   echo "configure: failed program was:" >&5
6356   cat conftest.$ac_ext >&5
6357   rm -rf conftest*
6358   eval "ac_cv_header_$ac_safe=no"
6359 fi
6360 rm -f conftest*
6361 fi
6362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6363   echo "$ac_t""yes" 1>&6
6364     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6365   cat >> confdefs.h <<EOF
6366 #define $ac_tr_hdr 1
6367 EOF
6368  
6369 else
6370   echo "$ac_t""no" 1>&6
6371 fi
6372 done
6373
6374       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6375        
6376       
6377   # If we're not using GNU ld, then there's no point in even trying these
6378   # tests.  Check for that first.  We should have already tested for gld
6379   # by now (in libtool), but require it now just to be safe...
6380   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6381   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6382   
6383
6384   # The name set by libtool depends on the version of libtool.  Shame on us
6385   # for depending on an impl detail, but c'est la vie.  Older versions used
6386   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6387   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6388   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6389   # set (hence we're using an older libtool), then set it.
6390   if test x${with_gnu_ld+set} != xset; then
6391     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6392       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6393       with_gnu_ld=no
6394     else
6395       with_gnu_ld=$ac_cv_prog_gnu_ld
6396     fi
6397   fi
6398
6399   # Start by getting the version number.  I think the libtool test already
6400   # does some of this, but throws away the result.
6401   
6402   ldver=`$LD --version 2>/dev/null | head -1 | \
6403          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6404   
6405   glibcpp_gnu_ld_version=`echo $ldver | \
6406          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6407
6408   # Set --gc-sections.
6409   if test "$with_gnu_ld" = "notbroken"; then
6410     # GNU ld it is!  Joy and bunny rabbits!
6411
6412     # All these tests are for C++; save the language and the compiler flags.
6413     # Need to do this so that g++ won't try to link in libstdc++
6414     ac_test_CFLAGS="${CFLAGS+set}"
6415     ac_save_CFLAGS="$CFLAGS"
6416     CFLAGS='-x c++  -Wl,--gc-sections'
6417
6418     # Check for -Wl,--gc-sections
6419     # XXX This test is broken at the moment, as symbols required for
6420     # linking are now in libsupc++ (not built yet.....). In addition,
6421     # this test has cored on solaris in the past. In addition,
6422     # --gc-sections doesn't really work at the moment (keeps on discarding
6423     # used sections, first .eh_frame and now some of the glibc sections for
6424     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6425     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6426 echo "configure:6427: checking for ld that supports -Wl,--gc-sections" >&5
6427     if test "$cross_compiling" = yes; then
6428   ac_sectionLDflags=yes
6429 else
6430   cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433
6434      int main(void)
6435      {
6436        try { throw 1; }
6437        catch (...) { };
6438        return 0;
6439      }
6440     
6441 EOF
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6443 then
6444   ac_sectionLDflags=yes
6445 else
6446   echo "configure: failed program was:" >&5
6447   cat conftest.$ac_ext >&5
6448   rm -fr conftest*
6449   ac_sectionLDflags=no
6450 fi
6451 rm -fr conftest*
6452 fi
6453
6454     if test "$ac_test_CFLAGS" = set; then
6455       CFLAGS="$ac_save_CFLAGS"
6456     else
6457       # this is the suspicious part
6458       CFLAGS=''
6459     fi
6460     if test "$ac_sectionLDflags" = "yes"; then
6461       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6462     fi
6463     echo "$ac_t""$ac_sectionLDflags" 1>&6
6464   fi
6465
6466   # Set linker optimization flags.
6467   if test x"$with_gnu_ld" = x"yes"; then
6468     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6469   fi
6470
6471   
6472   
6473
6474       
6475     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6476 echo "configure:6477: checking for main in -lm" >&5
6477 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479   echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481   ac_save_LIBS="$LIBS"
6482 LIBS="-lm  $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486
6487 int main() {
6488 main()
6489 ; return 0; }
6490 EOF
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492   rm -rf conftest*
6493   eval "ac_cv_lib_$ac_lib_var=yes"
6494 else
6495   echo "configure: failed program was:" >&5
6496   cat conftest.$ac_ext >&5
6497   rm -rf conftest*
6498   eval "ac_cv_lib_$ac_lib_var=no"
6499 fi
6500 rm -f conftest*
6501 LIBS="$ac_save_LIBS"
6502
6503 fi
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6505   echo "$ac_t""yes" 1>&6
6506     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6507     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6508   cat >> confdefs.h <<EOF
6509 #define $ac_tr_lib 1
6510 EOF
6511
6512   LIBS="-lm $LIBS"
6513
6514 else
6515   echo "$ac_t""no" 1>&6
6516 fi
6517
6518   for ac_func in nan copysignf
6519 do
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523   echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525   cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529     which can conflict with char $ac_func(); below.  */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error.  */
6532 /* We use char because int might match the return type of a gcc2
6533     builtin and then its argument prototype would still apply.  */
6534 char $ac_func();
6535
6536 int main() {
6537
6538 /* The GNU C library defines this for functions which it implements
6539     to always fail with ENOSYS.  Some functions are actually named
6540     something starting with __ and the normal name is an alias.  */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 $ac_func();
6545 #endif
6546
6547 ; return 0; }
6548 EOF
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550   rm -rf conftest*
6551   eval "ac_cv_func_$ac_func=yes"
6552 else
6553   echo "configure: failed program was:" >&5
6554   cat conftest.$ac_ext >&5
6555   rm -rf conftest*
6556   eval "ac_cv_func_$ac_func=no"
6557 fi
6558 rm -f conftest*
6559 fi
6560
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562   echo "$ac_t""yes" 1>&6
6563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564   cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6566 EOF
6567  
6568 else
6569   echo "$ac_t""no" 1>&6
6570 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6571 fi
6572 done
6573
6574
6575     for ac_func in __signbit
6576 do
6577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_func" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6580   echo $ac_n "(cached) $ac_c" 1>&6
6581 else
6582   cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586     which can conflict with char $ac_func(); below.  */
6587 #include <assert.h>
6588 /* Override any gcc2 internal prototype to avoid an error.  */
6589 /* We use char because int might match the return type of a gcc2
6590     builtin and then its argument prototype would still apply.  */
6591 char $ac_func();
6592
6593 int main() {
6594
6595 /* The GNU C library defines this for functions which it implements
6596     to always fail with ENOSYS.  Some functions are actually named
6597     something starting with __ and the normal name is an alias.  */
6598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6599 choke me
6600 #else
6601 $ac_func();
6602 #endif
6603
6604 ; return 0; }
6605 EOF
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6607   rm -rf conftest*
6608   eval "ac_cv_func_$ac_func=yes"
6609 else
6610   echo "configure: failed program was:" >&5
6611   cat conftest.$ac_ext >&5
6612   rm -rf conftest*
6613   eval "ac_cv_func_$ac_func=no"
6614 fi
6615 rm -f conftest*
6616 fi
6617
6618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6619   echo "$ac_t""yes" 1>&6
6620     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621   cat >> confdefs.h <<EOF
6622 #define $ac_tr_func 1
6623 EOF
6624  
6625 else
6626   echo "$ac_t""no" 1>&6
6627 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6628 fi
6629 done
6630
6631   for ac_func in __signbitf
6632 do
6633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6634 echo "configure:6635: checking for $ac_func" >&5
6635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6636   echo $ac_n "(cached) $ac_c" 1>&6
6637 else
6638   cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* System header to define __stub macros and hopefully few prototypes,
6642     which can conflict with char $ac_func(); below.  */
6643 #include <assert.h>
6644 /* Override any gcc2 internal prototype to avoid an error.  */
6645 /* We use char because int might match the return type of a gcc2
6646     builtin and then its argument prototype would still apply.  */
6647 char $ac_func();
6648
6649 int main() {
6650
6651 /* The GNU C library defines this for functions which it implements
6652     to always fail with ENOSYS.  Some functions are actually named
6653     something starting with __ and the normal name is an alias.  */
6654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6655 choke me
6656 #else
6657 $ac_func();
6658 #endif
6659
6660 ; return 0; }
6661 EOF
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663   rm -rf conftest*
6664   eval "ac_cv_func_$ac_func=yes"
6665 else
6666   echo "configure: failed program was:" >&5
6667   cat conftest.$ac_ext >&5
6668   rm -rf conftest*
6669   eval "ac_cv_func_$ac_func=no"
6670 fi
6671 rm -f conftest*
6672 fi
6673
6674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6675   echo "$ac_t""yes" 1>&6
6676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6677   cat >> confdefs.h <<EOF
6678 #define $ac_tr_func 1
6679 EOF
6680  
6681 else
6682   echo "$ac_t""no" 1>&6
6683 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6684 fi
6685 done
6686
6687
6688           if test x$ac_cv_func_copysignl = x"yes"; then
6689     for ac_func in __signbitl
6690 do
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700     which can conflict with char $ac_func(); below.  */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error.  */
6703 /* We use char because int might match the return type of a gcc2
6704     builtin and then its argument prototype would still apply.  */
6705 char $ac_func();
6706
6707 int main() {
6708
6709 /* The GNU C library defines this for functions which it implements
6710     to always fail with ENOSYS.  Some functions are actually named
6711     something starting with __ and the normal name is an alias.  */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6717
6718 ; return 0; }
6719 EOF
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721   rm -rf conftest*
6722   eval "ac_cv_func_$ac_func=yes"
6723 else
6724   echo "configure: failed program was:" >&5
6725   cat conftest.$ac_ext >&5
6726   rm -rf conftest*
6727   eval "ac_cv_func_$ac_func=no"
6728 fi
6729 rm -f conftest*
6730 fi
6731
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733   echo "$ac_t""yes" 1>&6
6734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735   cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6737 EOF
6738  
6739 else
6740   echo "$ac_t""no" 1>&6
6741 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6742 fi
6743 done
6744
6745   fi
6746
6747   if test -n "$LIBMATHOBJS"; then
6748     need_libmath=yes
6749   fi
6750   
6751   
6752
6753 if test "$need_libmath" = yes; then
6754   GLIBCPP_BUILD_LIBMATH_TRUE=
6755   GLIBCPP_BUILD_LIBMATH_FALSE='#'
6756 else
6757   GLIBCPP_BUILD_LIBMATH_TRUE='#'
6758   GLIBCPP_BUILD_LIBMATH_FALSE=
6759 fi
6760
6761       
6762     enable_wchar_t=no
6763
6764       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6765 echo "configure:6766: checking for mbstate_t" >&5
6766   cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <wchar.h>
6770 int main() {
6771 mbstate_t teststate;
6772 ; return 0; }
6773 EOF
6774 if { (eval echo configure:6775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6775   rm -rf conftest*
6776   have_mbstate_t=yes
6777 else
6778   echo "configure: failed program was:" >&5
6779   cat conftest.$ac_ext >&5
6780   rm -rf conftest*
6781   have_mbstate_t=no
6782 fi
6783 rm -f conftest*
6784   echo "$ac_t""$have_mbstate_t" 1>&6
6785   if test x"$have_mbstate_t" = xyes; then
6786     cat >> confdefs.h <<\EOF
6787 #define HAVE_MBSTATE_T 1
6788 EOF
6789
6790   fi
6791
6792     for ac_hdr in wchar.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_wchar_h=yes
6827 else
6828   echo "$ac_t""no" 1>&6
6829 ac_has_wchar_h=no
6830 fi
6831 done
6832
6833   for ac_hdr in wctype.h
6834 do
6835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6837 echo "configure:6838: checking for $ac_hdr" >&5
6838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6839   echo $ac_n "(cached) $ac_c" 1>&6
6840 else
6841   cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 #include <$ac_hdr>
6845 EOF
6846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6847 { (eval echo configure:6848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6849 if test -z "$ac_err"; then
6850   rm -rf conftest*
6851   eval "ac_cv_header_$ac_safe=yes"
6852 else
6853   echo "$ac_err" >&5
6854   echo "configure: failed program was:" >&5
6855   cat conftest.$ac_ext >&5
6856   rm -rf conftest*
6857   eval "ac_cv_header_$ac_safe=no"
6858 fi
6859 rm -f conftest*
6860 fi
6861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6862   echo "$ac_t""yes" 1>&6
6863     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6864   cat >> confdefs.h <<EOF
6865 #define $ac_tr_hdr 1
6866 EOF
6867  ac_has_wctype_h=yes
6868 else
6869   echo "$ac_t""no" 1>&6
6870 ac_has_wctype_h=no
6871 fi
6872 done
6873
6874
6875     if test x"$ac_has_wchar_h" = xyes &&
6876      test x"$ac_has_wctype_h" = xyes &&
6877      test x"$enable_c_mbchar" != xno; then
6878
6879             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6880 echo "configure:6881: checking for WCHAR_MIN and WCHAR_MAX" >&5
6881     cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <wchar.h>
6885 int main() {
6886 int i = WCHAR_MIN; int j = WCHAR_MAX;
6887 ; return 0; }
6888 EOF
6889 if { (eval echo configure:6890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6890   rm -rf conftest*
6891   has_wchar_minmax=yes
6892 else
6893   echo "configure: failed program was:" >&5
6894   cat conftest.$ac_ext >&5
6895   rm -rf conftest*
6896   has_wchar_minmax=no
6897 fi
6898 rm -f conftest*
6899     echo "$ac_t""$has_wchar_minmax" 1>&6
6900
6901             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6902 echo "configure:6903: checking for WEOF" >&5
6903     cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906
6907       #include <wchar.h>
6908       #include <stddef.h>
6909 int main() {
6910 wint_t i = WEOF;
6911 ; return 0; }
6912 EOF
6913 if { (eval echo configure:6914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6914   rm -rf conftest*
6915   has_weof=yes
6916 else
6917   echo "configure: failed program was:" >&5
6918   cat conftest.$ac_ext >&5
6919   rm -rf conftest*
6920   has_weof=no
6921 fi
6922 rm -f conftest*
6923     echo "$ac_t""$has_weof" 1>&6
6924
6925         ac_wfuncs=yes
6926     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6927 do
6928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_func" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6931   echo $ac_n "(cached) $ac_c" 1>&6
6932 else
6933   cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6936 /* System header to define __stub macros and hopefully few prototypes,
6937     which can conflict with char $ac_func(); below.  */
6938 #include <assert.h>
6939 /* Override any gcc2 internal prototype to avoid an error.  */
6940 /* We use char because int might match the return type of a gcc2
6941     builtin and then its argument prototype would still apply.  */
6942 char $ac_func();
6943
6944 int main() {
6945
6946 /* The GNU C library defines this for functions which it implements
6947     to always fail with ENOSYS.  Some functions are actually named
6948     something starting with __ and the normal name is an alias.  */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 choke me
6951 #else
6952 $ac_func();
6953 #endif
6954
6955 ; return 0; }
6956 EOF
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6958   rm -rf conftest*
6959   eval "ac_cv_func_$ac_func=yes"
6960 else
6961   echo "configure: failed program was:" >&5
6962   cat conftest.$ac_ext >&5
6963   rm -rf conftest*
6964   eval "ac_cv_func_$ac_func=no"
6965 fi
6966 rm -f conftest*
6967 fi
6968
6969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6970   echo "$ac_t""yes" 1>&6
6971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6972   cat >> confdefs.h <<EOF
6973 #define $ac_tr_func 1
6974 EOF
6975  
6976 else
6977   echo "$ac_t""no" 1>&6
6978 \
6979     ac_wfuncs=no
6980 fi
6981 done
6982
6983
6984         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6985     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6986     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6987     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6988     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6989     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6990 do
6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6992 echo "configure:6993: checking for $ac_func" >&5
6993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6994   echo $ac_n "(cached) $ac_c" 1>&6
6995 else
6996   cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* System header to define __stub macros and hopefully few prototypes,
7000     which can conflict with char $ac_func(); below.  */
7001 #include <assert.h>
7002 /* Override any gcc2 internal prototype to avoid an error.  */
7003 /* We use char because int might match the return type of a gcc2
7004     builtin and then its argument prototype would still apply.  */
7005 char $ac_func();
7006
7007 int main() {
7008
7009 /* The GNU C library defines this for functions which it implements
7010     to always fail with ENOSYS.  Some functions are actually named
7011     something starting with __ and the normal name is an alias.  */
7012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7013 choke me
7014 #else
7015 $ac_func();
7016 #endif
7017
7018 ; return 0; }
7019 EOF
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021   rm -rf conftest*
7022   eval "ac_cv_func_$ac_func=yes"
7023 else
7024   echo "configure: failed program was:" >&5
7025   cat conftest.$ac_ext >&5
7026   rm -rf conftest*
7027   eval "ac_cv_func_$ac_func=no"
7028 fi
7029 rm -f conftest*
7030 fi
7031
7032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7033   echo "$ac_t""yes" 1>&6
7034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7035   cat >> confdefs.h <<EOF
7036 #define $ac_tr_func 1
7037 EOF
7038  
7039 else
7040   echo "$ac_t""no" 1>&6
7041 \
7042     ac_wfuncs=no
7043 fi
7044 done
7045
7046
7047     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7048 echo "configure:7049: checking for ISO C99 wchar_t support" >&5
7049     if test x"$has_weof" = xyes &&
7050        test x"$has_wchar_minmax" = xyes &&
7051        test x"$ac_wfuncs" = xyes; then
7052       ac_isoC99_wchar_t=yes
7053     else
7054       ac_isoC99_wchar_t=no
7055     fi
7056     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7057
7058             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7059 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7060 echo "configure:7061: checking for iconv.h" >&5
7061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7062   echo $ac_n "(cached) $ac_c" 1>&6
7063 else
7064   cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 #include <iconv.h>
7068 EOF
7069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7070 { (eval echo configure:7071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7072 if test -z "$ac_err"; then
7073   rm -rf conftest*
7074   eval "ac_cv_header_$ac_safe=yes"
7075 else
7076   echo "$ac_err" >&5
7077   echo "configure: failed program was:" >&5
7078   cat conftest.$ac_ext >&5
7079   rm -rf conftest*
7080   eval "ac_cv_header_$ac_safe=no"
7081 fi
7082 rm -f conftest*
7083 fi
7084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7085   echo "$ac_t""yes" 1>&6
7086   ac_has_iconv_h=yes
7087 else
7088   echo "$ac_t""no" 1>&6
7089 ac_has_iconv_h=no
7090 fi
7091
7092     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7093 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7094 echo "configure:7095: checking for langinfo.h" >&5
7095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7096   echo $ac_n "(cached) $ac_c" 1>&6
7097 else
7098   cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <langinfo.h>
7102 EOF
7103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7104 { (eval echo configure:7105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7106 if test -z "$ac_err"; then
7107   rm -rf conftest*
7108   eval "ac_cv_header_$ac_safe=yes"
7109 else
7110   echo "$ac_err" >&5
7111   echo "configure: failed program was:" >&5
7112   cat conftest.$ac_ext >&5
7113   rm -rf conftest*
7114   eval "ac_cv_header_$ac_safe=no"
7115 fi
7116 rm -f conftest*
7117 fi
7118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7119   echo "$ac_t""yes" 1>&6
7120   ac_has_langinfo_h=yes
7121 else
7122   echo "$ac_t""no" 1>&6
7123 ac_has_langinfo_h=no
7124 fi
7125
7126
7127         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7128 echo "configure:7129: checking for iconv in -liconv" >&5
7129 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7131   echo $ac_n "(cached) $ac_c" 1>&6
7132 else
7133   ac_save_LIBS="$LIBS"
7134 LIBS="-liconv  $LIBS"
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error.  */
7139 /* We use char because int might match the return type of a gcc2
7140     builtin and then its argument prototype would still apply.  */
7141 char iconv();
7142
7143 int main() {
7144 iconv()
7145 ; return 0; }
7146 EOF
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148   rm -rf conftest*
7149   eval "ac_cv_lib_$ac_lib_var=yes"
7150 else
7151   echo "configure: failed program was:" >&5
7152   cat conftest.$ac_ext >&5
7153   rm -rf conftest*
7154   eval "ac_cv_lib_$ac_lib_var=no"
7155 fi
7156 rm -f conftest*
7157 LIBS="$ac_save_LIBS"
7158
7159 fi
7160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7161   echo "$ac_t""yes" 1>&6
7162   libiconv="-liconv"
7163 else
7164   echo "$ac_t""no" 1>&6
7165 fi
7166
7167     ac_save_LIBS="$LIBS"
7168     LIBS="$LIBS $libiconv"
7169
7170     for ac_func in iconv_open iconv_close iconv nl_langinfo
7171 do
7172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_func" >&5
7174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7175   echo $ac_n "(cached) $ac_c" 1>&6
7176 else
7177   cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 /* System header to define __stub macros and hopefully few prototypes,
7181     which can conflict with char $ac_func(); below.  */
7182 #include <assert.h>
7183 /* Override any gcc2 internal prototype to avoid an error.  */
7184 /* We use char because int might match the return type of a gcc2
7185     builtin and then its argument prototype would still apply.  */
7186 char $ac_func();
7187
7188 int main() {
7189
7190 /* The GNU C library defines this for functions which it implements
7191     to always fail with ENOSYS.  Some functions are actually named
7192     something starting with __ and the normal name is an alias.  */
7193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7194 choke me
7195 #else
7196 $ac_func();
7197 #endif
7198
7199 ; return 0; }
7200 EOF
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202   rm -rf conftest*
7203   eval "ac_cv_func_$ac_func=yes"
7204 else
7205   echo "configure: failed program was:" >&5
7206   cat conftest.$ac_ext >&5
7207   rm -rf conftest*
7208   eval "ac_cv_func_$ac_func=no"
7209 fi
7210 rm -f conftest*
7211 fi
7212
7213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7214   echo "$ac_t""yes" 1>&6
7215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7216   cat >> confdefs.h <<EOF
7217 #define $ac_tr_func 1
7218 EOF
7219  \
7220     ac_XPG2funcs=yes
7221 else
7222   echo "$ac_t""no" 1>&6
7223 ac_XPG2funcs=no
7224 fi
7225 done
7226
7227
7228     LIBS="$ac_save_LIBS"
7229
7230     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7231 echo "configure:7232: checking for XPG2 wchar_t support" >&5
7232     if test x"$ac_has_iconv_h" = xyes &&
7233        test x"$ac_has_langinfo_h" = xyes &&
7234        test x"$ac_XPG2funcs" = xyes; then
7235       ac_XPG2_wchar_t=yes
7236     else
7237       ac_XPG2_wchar_t=no
7238     fi
7239     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7240
7241             if test x"$ac_isoC99_wchar_t" = xyes && 
7242         test x"$ac_XPG2_wchar_t" = xyes; then
7243       cat >> confdefs.h <<\EOF
7244 #define _GLIBCPP_USE_WCHAR_T 1
7245 EOF
7246
7247       enable_wchar_t=yes
7248     fi
7249   fi
7250   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7251 echo "configure:7252: checking for enabled wchar_t specializations" >&5
7252   echo "$ac_t""$enable_wchar_t" 1>&6    
7253   
7254
7255 if test "$enable_wchar_t" = yes; then
7256   GLIBCPP_TEST_WCHAR_T_TRUE=
7257   GLIBCPP_TEST_WCHAR_T_FALSE='#'
7258 else
7259   GLIBCPP_TEST_WCHAR_T_TRUE='#'
7260   GLIBCPP_TEST_WCHAR_T_FALSE=
7261 fi      
7262
7263       os_include_dir="os/bsd/netbsd"
7264       cat >> confdefs.h <<\EOF
7265 #define HAVE_COPYSIGN 1
7266 EOF
7267
7268       cat >> confdefs.h <<\EOF
7269 #define HAVE_COPYSIGNF 1
7270 EOF
7271
7272       cat >> confdefs.h <<\EOF
7273 #define HAVE_FINITEF 1
7274 EOF
7275
7276       cat >> confdefs.h <<\EOF
7277 #define HAVE_FINITE 1
7278 EOF
7279
7280       cat >> confdefs.h <<\EOF
7281 #define HAVE_FREXPF 1
7282 EOF
7283
7284       cat >> confdefs.h <<\EOF
7285 #define HAVE_HYPOTF 1
7286 EOF
7287
7288       cat >> confdefs.h <<\EOF
7289 #define HAVE_ISINF 1
7290 EOF
7291
7292       cat >> confdefs.h <<\EOF
7293 #define HAVE_ISINFF 1
7294 EOF
7295
7296       cat >> confdefs.h <<\EOF
7297 #define HAVE_ISNAN 1
7298 EOF
7299
7300       cat >> confdefs.h <<\EOF
7301 #define HAVE_ISNANF 1
7302 EOF
7303
7304       if test x"long_double_math_on_this_cpu" = x"yes"; then
7305         cat >> confdefs.h <<\EOF
7306 #define HAVE_FINITEL 1
7307 EOF
7308
7309         cat >> confdefs.h <<\EOF
7310 #define HAVE_ISINFL 1
7311 EOF
7312
7313         cat >> confdefs.h <<\EOF
7314 #define HAVE_ISNANL 1
7315 EOF
7316
7317       fi
7318       ;;
7319     *-freebsd*)
7320       # Check for available headers.
7321       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7322         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7323         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7324         sys/time.h unistd.h
7325 do
7326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_hdr" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <$ac_hdr>
7336 EOF
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7341   rm -rf conftest*
7342   eval "ac_cv_header_$ac_safe=yes"
7343 else
7344   echo "$ac_err" >&5
7345   echo "configure: failed program was:" >&5
7346   cat conftest.$ac_ext >&5
7347   rm -rf conftest*
7348   eval "ac_cv_header_$ac_safe=no"
7349 fi
7350 rm -f conftest*
7351 fi
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353   echo "$ac_t""yes" 1>&6
7354     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7355   cat >> confdefs.h <<EOF
7356 #define $ac_tr_hdr 1
7357 EOF
7358  
7359 else
7360   echo "$ac_t""no" 1>&6
7361 fi
7362 done
7363
7364       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7365        
7366       
7367   # If we're not using GNU ld, then there's no point in even trying these
7368   # tests.  Check for that first.  We should have already tested for gld
7369   # by now (in libtool), but require it now just to be safe...
7370   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7371   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7372   
7373
7374   # The name set by libtool depends on the version of libtool.  Shame on us
7375   # for depending on an impl detail, but c'est la vie.  Older versions used
7376   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7377   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7378   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7379   # set (hence we're using an older libtool), then set it.
7380   if test x${with_gnu_ld+set} != xset; then
7381     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7382       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7383       with_gnu_ld=no
7384     else
7385       with_gnu_ld=$ac_cv_prog_gnu_ld
7386     fi
7387   fi
7388
7389   # Start by getting the version number.  I think the libtool test already
7390   # does some of this, but throws away the result.
7391   
7392   ldver=`$LD --version 2>/dev/null | head -1 | \
7393          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7394   
7395   glibcpp_gnu_ld_version=`echo $ldver | \
7396          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7397
7398   # Set --gc-sections.
7399   if test "$with_gnu_ld" = "notbroken"; then
7400     # GNU ld it is!  Joy and bunny rabbits!
7401
7402     # All these tests are for C++; save the language and the compiler flags.
7403     # Need to do this so that g++ won't try to link in libstdc++
7404     ac_test_CFLAGS="${CFLAGS+set}"
7405     ac_save_CFLAGS="$CFLAGS"
7406     CFLAGS='-x c++  -Wl,--gc-sections'
7407
7408     # Check for -Wl,--gc-sections
7409     # XXX This test is broken at the moment, as symbols required for
7410     # linking are now in libsupc++ (not built yet.....). In addition,
7411     # this test has cored on solaris in the past. In addition,
7412     # --gc-sections doesn't really work at the moment (keeps on discarding
7413     # used sections, first .eh_frame and now some of the glibc sections for
7414     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7415     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7416 echo "configure:7417: checking for ld that supports -Wl,--gc-sections" >&5
7417     if test "$cross_compiling" = yes; then
7418   ac_sectionLDflags=yes
7419 else
7420   cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423
7424      int main(void)
7425      {
7426        try { throw 1; }
7427        catch (...) { };
7428        return 0;
7429      }
7430     
7431 EOF
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7433 then
7434   ac_sectionLDflags=yes
7435 else
7436   echo "configure: failed program was:" >&5
7437   cat conftest.$ac_ext >&5
7438   rm -fr conftest*
7439   ac_sectionLDflags=no
7440 fi
7441 rm -fr conftest*
7442 fi
7443
7444     if test "$ac_test_CFLAGS" = set; then
7445       CFLAGS="$ac_save_CFLAGS"
7446     else
7447       # this is the suspicious part
7448       CFLAGS=''
7449     fi
7450     if test "$ac_sectionLDflags" = "yes"; then
7451       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7452     fi
7453     echo "$ac_t""$ac_sectionLDflags" 1>&6
7454   fi
7455
7456   # Set linker optimization flags.
7457   if test x"$with_gnu_ld" = x"yes"; then
7458     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7459   fi
7460
7461   
7462   
7463
7464       
7465     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7466 echo "configure:7467: checking for main in -lm" >&5
7467 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469   echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471   ac_save_LIBS="$LIBS"
7472 LIBS="-lm  $LIBS"
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476
7477 int main() {
7478 main()
7479 ; return 0; }
7480 EOF
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482   rm -rf conftest*
7483   eval "ac_cv_lib_$ac_lib_var=yes"
7484 else
7485   echo "configure: failed program was:" >&5
7486   cat conftest.$ac_ext >&5
7487   rm -rf conftest*
7488   eval "ac_cv_lib_$ac_lib_var=no"
7489 fi
7490 rm -f conftest*
7491 LIBS="$ac_save_LIBS"
7492
7493 fi
7494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7495   echo "$ac_t""yes" 1>&6
7496     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7497     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7498   cat >> confdefs.h <<EOF
7499 #define $ac_tr_lib 1
7500 EOF
7501
7502   LIBS="-lm $LIBS"
7503
7504 else
7505   echo "$ac_t""no" 1>&6
7506 fi
7507
7508   for ac_func in nan copysignf
7509 do
7510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_func" >&5
7512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7513   echo $ac_n "(cached) $ac_c" 1>&6
7514 else
7515   cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519     which can conflict with char $ac_func(); below.  */
7520 #include <assert.h>
7521 /* Override any gcc2 internal prototype to avoid an error.  */
7522 /* We use char because int might match the return type of a gcc2
7523     builtin and then its argument prototype would still apply.  */
7524 char $ac_func();
7525
7526 int main() {
7527
7528 /* The GNU C library defines this for functions which it implements
7529     to always fail with ENOSYS.  Some functions are actually named
7530     something starting with __ and the normal name is an alias.  */
7531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7532 choke me
7533 #else
7534 $ac_func();
7535 #endif
7536
7537 ; return 0; }
7538 EOF
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540   rm -rf conftest*
7541   eval "ac_cv_func_$ac_func=yes"
7542 else
7543   echo "configure: failed program was:" >&5
7544   cat conftest.$ac_ext >&5
7545   rm -rf conftest*
7546   eval "ac_cv_func_$ac_func=no"
7547 fi
7548 rm -f conftest*
7549 fi
7550
7551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7552   echo "$ac_t""yes" 1>&6
7553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7554   cat >> confdefs.h <<EOF
7555 #define $ac_tr_func 1
7556 EOF
7557  
7558 else
7559   echo "$ac_t""no" 1>&6
7560 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7561 fi
7562 done
7563
7564
7565     for ac_func in __signbit
7566 do
7567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_func" >&5
7569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7570   echo $ac_n "(cached) $ac_c" 1>&6
7571 else
7572   cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* System header to define __stub macros and hopefully few prototypes,
7576     which can conflict with char $ac_func(); below.  */
7577 #include <assert.h>
7578 /* Override any gcc2 internal prototype to avoid an error.  */
7579 /* We use char because int might match the return type of a gcc2
7580     builtin and then its argument prototype would still apply.  */
7581 char $ac_func();
7582
7583 int main() {
7584
7585 /* The GNU C library defines this for functions which it implements
7586     to always fail with ENOSYS.  Some functions are actually named
7587     something starting with __ and the normal name is an alias.  */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 choke me
7590 #else
7591 $ac_func();
7592 #endif
7593
7594 ; return 0; }
7595 EOF
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7597   rm -rf conftest*
7598   eval "ac_cv_func_$ac_func=yes"
7599 else
7600   echo "configure: failed program was:" >&5
7601   cat conftest.$ac_ext >&5
7602   rm -rf conftest*
7603   eval "ac_cv_func_$ac_func=no"
7604 fi
7605 rm -f conftest*
7606 fi
7607
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7609   echo "$ac_t""yes" 1>&6
7610     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7611   cat >> confdefs.h <<EOF
7612 #define $ac_tr_func 1
7613 EOF
7614  
7615 else
7616   echo "$ac_t""no" 1>&6
7617 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7618 fi
7619 done
7620
7621   for ac_func in __signbitf
7622 do
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626   echo $ac_n "(cached) $ac_c" 1>&6
7627 else
7628   cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632     which can conflict with char $ac_func(); below.  */
7633 #include <assert.h>
7634 /* Override any gcc2 internal prototype to avoid an error.  */
7635 /* We use char because int might match the return type of a gcc2
7636     builtin and then its argument prototype would still apply.  */
7637 char $ac_func();
7638
7639 int main() {
7640
7641 /* The GNU C library defines this for functions which it implements
7642     to always fail with ENOSYS.  Some functions are actually named
7643     something starting with __ and the normal name is an alias.  */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 choke me
7646 #else
7647 $ac_func();
7648 #endif
7649
7650 ; return 0; }
7651 EOF
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653   rm -rf conftest*
7654   eval "ac_cv_func_$ac_func=yes"
7655 else
7656   echo "configure: failed program was:" >&5
7657   cat conftest.$ac_ext >&5
7658   rm -rf conftest*
7659   eval "ac_cv_func_$ac_func=no"
7660 fi
7661 rm -f conftest*
7662 fi
7663
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665   echo "$ac_t""yes" 1>&6
7666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667   cat >> confdefs.h <<EOF
7668 #define $ac_tr_func 1
7669 EOF
7670  
7671 else
7672   echo "$ac_t""no" 1>&6
7673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7674 fi
7675 done
7676
7677
7678           if test x$ac_cv_func_copysignl = x"yes"; then
7679     for ac_func in __signbitl
7680 do
7681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7682 echo "configure:7683: checking for $ac_func" >&5
7683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7684   echo $ac_n "(cached) $ac_c" 1>&6
7685 else
7686   cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7689 /* System header to define __stub macros and hopefully few prototypes,
7690     which can conflict with char $ac_func(); below.  */
7691 #include <assert.h>
7692 /* Override any gcc2 internal prototype to avoid an error.  */
7693 /* We use char because int might match the return type of a gcc2
7694     builtin and then its argument prototype would still apply.  */
7695 char $ac_func();
7696
7697 int main() {
7698
7699 /* The GNU C library defines this for functions which it implements
7700     to always fail with ENOSYS.  Some functions are actually named
7701     something starting with __ and the normal name is an alias.  */
7702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7703 choke me
7704 #else
7705 $ac_func();
7706 #endif
7707
7708 ; return 0; }
7709 EOF
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7711   rm -rf conftest*
7712   eval "ac_cv_func_$ac_func=yes"
7713 else
7714   echo "configure: failed program was:" >&5
7715   cat conftest.$ac_ext >&5
7716   rm -rf conftest*
7717   eval "ac_cv_func_$ac_func=no"
7718 fi
7719 rm -f conftest*
7720 fi
7721
7722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7723   echo "$ac_t""yes" 1>&6
7724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7725   cat >> confdefs.h <<EOF
7726 #define $ac_tr_func 1
7727 EOF
7728  
7729 else
7730   echo "$ac_t""no" 1>&6
7731 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7732 fi
7733 done
7734
7735   fi
7736
7737   if test -n "$LIBMATHOBJS"; then
7738     need_libmath=yes
7739   fi
7740   
7741   
7742
7743 if test "$need_libmath" = yes; then
7744   GLIBCPP_BUILD_LIBMATH_TRUE=
7745   GLIBCPP_BUILD_LIBMATH_FALSE='#'
7746 else
7747   GLIBCPP_BUILD_LIBMATH_TRUE='#'
7748   GLIBCPP_BUILD_LIBMATH_FALSE=
7749 fi
7750
7751       
7752     enable_wchar_t=no
7753
7754       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7755 echo "configure:7756: checking for mbstate_t" >&5
7756   cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 #include <wchar.h>
7760 int main() {
7761 mbstate_t teststate;
7762 ; return 0; }
7763 EOF
7764 if { (eval echo configure:7765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7765   rm -rf conftest*
7766   have_mbstate_t=yes
7767 else
7768   echo "configure: failed program was:" >&5
7769   cat conftest.$ac_ext >&5
7770   rm -rf conftest*
7771   have_mbstate_t=no
7772 fi
7773 rm -f conftest*
7774   echo "$ac_t""$have_mbstate_t" 1>&6
7775   if test x"$have_mbstate_t" = xyes; then
7776     cat >> confdefs.h <<\EOF
7777 #define HAVE_MBSTATE_T 1
7778 EOF
7779
7780   fi
7781
7782     for ac_hdr in wchar.h
7783 do
7784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_hdr" >&5
7787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7788   echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790   cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 #include <$ac_hdr>
7794 EOF
7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7798 if test -z "$ac_err"; then
7799   rm -rf conftest*
7800   eval "ac_cv_header_$ac_safe=yes"
7801 else
7802   echo "$ac_err" >&5
7803   echo "configure: failed program was:" >&5
7804   cat conftest.$ac_ext >&5
7805   rm -rf conftest*
7806   eval "ac_cv_header_$ac_safe=no"
7807 fi
7808 rm -f conftest*
7809 fi
7810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7811   echo "$ac_t""yes" 1>&6
7812     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7813   cat >> confdefs.h <<EOF
7814 #define $ac_tr_hdr 1
7815 EOF
7816  ac_has_wchar_h=yes
7817 else
7818   echo "$ac_t""no" 1>&6
7819 ac_has_wchar_h=no
7820 fi
7821 done
7822
7823   for ac_hdr in wctype.h
7824 do
7825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_hdr" >&5
7828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7829   echo $ac_n "(cached) $ac_c" 1>&6
7830 else
7831   cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <$ac_hdr>
7835 EOF
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7840   rm -rf conftest*
7841   eval "ac_cv_header_$ac_safe=yes"
7842 else
7843   echo "$ac_err" >&5
7844   echo "configure: failed program was:" >&5
7845   cat conftest.$ac_ext >&5
7846   rm -rf conftest*
7847   eval "ac_cv_header_$ac_safe=no"
7848 fi
7849 rm -f conftest*
7850 fi
7851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7852   echo "$ac_t""yes" 1>&6
7853     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7854   cat >> confdefs.h <<EOF
7855 #define $ac_tr_hdr 1
7856 EOF
7857  ac_has_wctype_h=yes
7858 else
7859   echo "$ac_t""no" 1>&6
7860 ac_has_wctype_h=no
7861 fi
7862 done
7863
7864
7865     if test x"$ac_has_wchar_h" = xyes &&
7866      test x"$ac_has_wctype_h" = xyes &&
7867      test x"$enable_c_mbchar" != xno; then
7868
7869             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7870 echo "configure:7871: checking for WCHAR_MIN and WCHAR_MAX" >&5
7871     cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <wchar.h>
7875 int main() {
7876 int i = WCHAR_MIN; int j = WCHAR_MAX;
7877 ; return 0; }
7878 EOF
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880   rm -rf conftest*
7881   has_wchar_minmax=yes
7882 else
7883   echo "configure: failed program was:" >&5
7884   cat conftest.$ac_ext >&5
7885   rm -rf conftest*
7886   has_wchar_minmax=no
7887 fi
7888 rm -f conftest*
7889     echo "$ac_t""$has_wchar_minmax" 1>&6
7890
7891             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7892 echo "configure:7893: checking for WEOF" >&5
7893     cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896
7897       #include <wchar.h>
7898       #include <stddef.h>
7899 int main() {
7900 wint_t i = WEOF;
7901 ; return 0; }
7902 EOF
7903 if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7904   rm -rf conftest*
7905   has_weof=yes
7906 else
7907   echo "configure: failed program was:" >&5
7908   cat conftest.$ac_ext >&5
7909   rm -rf conftest*
7910   has_weof=no
7911 fi
7912 rm -f conftest*
7913     echo "$ac_t""$has_weof" 1>&6
7914
7915         ac_wfuncs=yes
7916     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7917 do
7918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_func" >&5
7920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7921   echo $ac_n "(cached) $ac_c" 1>&6
7922 else
7923   cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* System header to define __stub macros and hopefully few prototypes,
7927     which can conflict with char $ac_func(); below.  */
7928 #include <assert.h>
7929 /* Override any gcc2 internal prototype to avoid an error.  */
7930 /* We use char because int might match the return type of a gcc2
7931     builtin and then its argument prototype would still apply.  */
7932 char $ac_func();
7933
7934 int main() {
7935
7936 /* The GNU C library defines this for functions which it implements
7937     to always fail with ENOSYS.  Some functions are actually named
7938     something starting with __ and the normal name is an alias.  */
7939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7940 choke me
7941 #else
7942 $ac_func();
7943 #endif
7944
7945 ; return 0; }
7946 EOF
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7948   rm -rf conftest*
7949   eval "ac_cv_func_$ac_func=yes"
7950 else
7951   echo "configure: failed program was:" >&5
7952   cat conftest.$ac_ext >&5
7953   rm -rf conftest*
7954   eval "ac_cv_func_$ac_func=no"
7955 fi
7956 rm -f conftest*
7957 fi
7958
7959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7960   echo "$ac_t""yes" 1>&6
7961     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7962   cat >> confdefs.h <<EOF
7963 #define $ac_tr_func 1
7964 EOF
7965  
7966 else
7967   echo "$ac_t""no" 1>&6
7968 \
7969     ac_wfuncs=no
7970 fi
7971 done
7972
7973
7974         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7975     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7976     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7977     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7978     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7979     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7980 do
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984   echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986   cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990     which can conflict with char $ac_func(); below.  */
7991 #include <assert.h>
7992 /* Override any gcc2 internal prototype to avoid an error.  */
7993 /* We use char because int might match the return type of a gcc2
7994     builtin and then its argument prototype would still apply.  */
7995 char $ac_func();
7996
7997 int main() {
7998
7999 /* The GNU C library defines this for functions which it implements
8000     to always fail with ENOSYS.  Some functions are actually named
8001     something starting with __ and the normal name is an alias.  */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 choke me
8004 #else
8005 $ac_func();
8006 #endif
8007
8008 ; return 0; }
8009 EOF
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011   rm -rf conftest*
8012   eval "ac_cv_func_$ac_func=yes"
8013 else
8014   echo "configure: failed program was:" >&5
8015   cat conftest.$ac_ext >&5
8016   rm -rf conftest*
8017   eval "ac_cv_func_$ac_func=no"
8018 fi
8019 rm -f conftest*
8020 fi
8021
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023   echo "$ac_t""yes" 1>&6
8024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025   cat >> confdefs.h <<EOF
8026 #define $ac_tr_func 1
8027 EOF
8028  
8029 else
8030   echo "$ac_t""no" 1>&6
8031 \
8032     ac_wfuncs=no
8033 fi
8034 done
8035
8036
8037     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8038 echo "configure:8039: checking for ISO C99 wchar_t support" >&5
8039     if test x"$has_weof" = xyes &&
8040        test x"$has_wchar_minmax" = xyes &&
8041        test x"$ac_wfuncs" = xyes; then
8042       ac_isoC99_wchar_t=yes
8043     else
8044       ac_isoC99_wchar_t=no
8045     fi
8046     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8047
8048             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8049 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8050 echo "configure:8051: checking for iconv.h" >&5
8051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8052   echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8054   cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include <iconv.h>
8058 EOF
8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8062 if test -z "$ac_err"; then
8063   rm -rf conftest*
8064   eval "ac_cv_header_$ac_safe=yes"
8065 else
8066   echo "$ac_err" >&5
8067   echo "configure: failed program was:" >&5
8068   cat conftest.$ac_ext >&5
8069   rm -rf conftest*
8070   eval "ac_cv_header_$ac_safe=no"
8071 fi
8072 rm -f conftest*
8073 fi
8074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8075   echo "$ac_t""yes" 1>&6
8076   ac_has_iconv_h=yes
8077 else
8078   echo "$ac_t""no" 1>&6
8079 ac_has_iconv_h=no
8080 fi
8081
8082     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8083 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8084 echo "configure:8085: checking for langinfo.h" >&5
8085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8086   echo $ac_n "(cached) $ac_c" 1>&6
8087 else
8088   cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 #include <langinfo.h>
8092 EOF
8093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8094 { (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8096 if test -z "$ac_err"; then
8097   rm -rf conftest*
8098   eval "ac_cv_header_$ac_safe=yes"
8099 else
8100   echo "$ac_err" >&5
8101   echo "configure: failed program was:" >&5
8102   cat conftest.$ac_ext >&5
8103   rm -rf conftest*
8104   eval "ac_cv_header_$ac_safe=no"
8105 fi
8106 rm -f conftest*
8107 fi
8108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8109   echo "$ac_t""yes" 1>&6
8110   ac_has_langinfo_h=yes
8111 else
8112   echo "$ac_t""no" 1>&6
8113 ac_has_langinfo_h=no
8114 fi
8115
8116
8117         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8118 echo "configure:8119: checking for iconv in -liconv" >&5
8119 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8121   echo $ac_n "(cached) $ac_c" 1>&6
8122 else
8123   ac_save_LIBS="$LIBS"
8124 LIBS="-liconv  $LIBS"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error.  */
8129 /* We use char because int might match the return type of a gcc2
8130     builtin and then its argument prototype would still apply.  */
8131 char iconv();
8132
8133 int main() {
8134 iconv()
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_lib_$ac_lib_var=yes"
8140 else
8141   echo "configure: failed program was:" >&5
8142   cat conftest.$ac_ext >&5
8143   rm -rf conftest*
8144   eval "ac_cv_lib_$ac_lib_var=no"
8145 fi
8146 rm -f conftest*
8147 LIBS="$ac_save_LIBS"
8148
8149 fi
8150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8151   echo "$ac_t""yes" 1>&6
8152   libiconv="-liconv"
8153 else
8154   echo "$ac_t""no" 1>&6
8155 fi
8156
8157     ac_save_LIBS="$LIBS"
8158     LIBS="$LIBS $libiconv"
8159
8160     for ac_func in iconv_open iconv_close iconv nl_langinfo
8161 do
8162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8163 echo "configure:8164: checking for $ac_func" >&5
8164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8165   echo $ac_n "(cached) $ac_c" 1>&6
8166 else
8167   cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* System header to define __stub macros and hopefully few prototypes,
8171     which can conflict with char $ac_func(); below.  */
8172 #include <assert.h>
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 /* We use char because int might match the return type of a gcc2
8175     builtin and then its argument prototype would still apply.  */
8176 char $ac_func();
8177
8178 int main() {
8179
8180 /* The GNU C library defines this for functions which it implements
8181     to always fail with ENOSYS.  Some functions are actually named
8182     something starting with __ and the normal name is an alias.  */
8183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8184 choke me
8185 #else
8186 $ac_func();
8187 #endif
8188
8189 ; return 0; }
8190 EOF
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8192   rm -rf conftest*
8193   eval "ac_cv_func_$ac_func=yes"
8194 else
8195   echo "configure: failed program was:" >&5
8196   cat conftest.$ac_ext >&5
8197   rm -rf conftest*
8198   eval "ac_cv_func_$ac_func=no"
8199 fi
8200 rm -f conftest*
8201 fi
8202
8203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8204   echo "$ac_t""yes" 1>&6
8205     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8206   cat >> confdefs.h <<EOF
8207 #define $ac_tr_func 1
8208 EOF
8209  \
8210     ac_XPG2funcs=yes
8211 else
8212   echo "$ac_t""no" 1>&6
8213 ac_XPG2funcs=no
8214 fi
8215 done
8216
8217
8218     LIBS="$ac_save_LIBS"
8219
8220     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8221 echo "configure:8222: checking for XPG2 wchar_t support" >&5
8222     if test x"$ac_has_iconv_h" = xyes &&
8223        test x"$ac_has_langinfo_h" = xyes &&
8224        test x"$ac_XPG2funcs" = xyes; then
8225       ac_XPG2_wchar_t=yes
8226     else
8227       ac_XPG2_wchar_t=no
8228     fi
8229     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8230
8231             if test x"$ac_isoC99_wchar_t" = xyes && 
8232         test x"$ac_XPG2_wchar_t" = xyes; then
8233       cat >> confdefs.h <<\EOF
8234 #define _GLIBCPP_USE_WCHAR_T 1
8235 EOF
8236
8237       enable_wchar_t=yes
8238     fi
8239   fi
8240   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8241 echo "configure:8242: checking for enabled wchar_t specializations" >&5
8242   echo "$ac_t""$enable_wchar_t" 1>&6    
8243   
8244
8245 if test "$enable_wchar_t" = yes; then
8246   GLIBCPP_TEST_WCHAR_T_TRUE=
8247   GLIBCPP_TEST_WCHAR_T_FALSE='#'
8248 else
8249   GLIBCPP_TEST_WCHAR_T_TRUE='#'
8250   GLIBCPP_TEST_WCHAR_T_FALSE=
8251 fi      
8252
8253       os_include_dir="os/bsd/freebsd"
8254       cat >> confdefs.h <<\EOF
8255 #define HAVE_LC_MESSAGES 1
8256 EOF
8257
8258       cat >> confdefs.h <<\EOF
8259 #define HAVE_DRAND48 1
8260 EOF
8261
8262       cat >> confdefs.h <<\EOF
8263 #define HAVE_GETPAGESIZE 1
8264 EOF
8265
8266       cat >> confdefs.h <<\EOF
8267 #define HAVE_SETENV 1
8268 EOF
8269
8270       cat >> confdefs.h <<\EOF
8271 #define HAVE_SIGSETJMP 1
8272 EOF
8273
8274       cat >> confdefs.h <<\EOF
8275 #define HAVE_COPYSIGN 1
8276 EOF
8277
8278       cat >> confdefs.h <<\EOF
8279 #define HAVE_COPYSIGNF 1
8280 EOF
8281
8282       cat >> confdefs.h <<\EOF
8283 #define HAVE_FINITEF 1
8284 EOF
8285
8286       cat >> confdefs.h <<\EOF
8287 #define HAVE_FINITE 1
8288 EOF
8289
8290       cat >> confdefs.h <<\EOF
8291 #define HAVE_FREXPF 1
8292 EOF
8293
8294       cat >> confdefs.h <<\EOF
8295 #define HAVE_HYPOT 1
8296 EOF
8297
8298       cat >> confdefs.h <<\EOF
8299 #define HAVE_HYPOTF 1
8300 EOF
8301
8302       cat >> confdefs.h <<\EOF
8303 #define HAVE_ISINF 1
8304 EOF
8305
8306       cat >> confdefs.h <<\EOF
8307 #define HAVE_ISNAN 1
8308 EOF
8309
8310       cat >> confdefs.h <<\EOF
8311 #define HAVE_ISNANF 1
8312 EOF
8313
8314       if test x"long_double_math_on_this_cpu" = x"yes"; then
8315         cat >> confdefs.h <<\EOF
8316 #define HAVE_FINITEL 1
8317 EOF
8318
8319         cat >> confdefs.h <<\EOF
8320 #define HAVE_ISINFL 1
8321 EOF
8322
8323         cat >> confdefs.h <<\EOF
8324 #define HAVE_ISNANL 1
8325 EOF
8326
8327       fi
8328       ;;
8329     *-mingw32*)
8330       for ac_hdr in sys/types.h locale.h float.h
8331 do
8332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8334 echo "configure:8335: checking for $ac_hdr" >&5
8335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8336   echo $ac_n "(cached) $ac_c" 1>&6
8337 else
8338   cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 #include <$ac_hdr>
8342 EOF
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346 if test -z "$ac_err"; then
8347   rm -rf conftest*
8348   eval "ac_cv_header_$ac_safe=yes"
8349 else
8350   echo "$ac_err" >&5
8351   echo "configure: failed program was:" >&5
8352   cat conftest.$ac_ext >&5
8353   rm -rf conftest*
8354   eval "ac_cv_header_$ac_safe=no"
8355 fi
8356 rm -f conftest*
8357 fi
8358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8359   echo "$ac_t""yes" 1>&6
8360     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8361   cat >> confdefs.h <<EOF
8362 #define $ac_tr_hdr 1
8363 EOF
8364  
8365 else
8366   echo "$ac_t""no" 1>&6
8367 fi
8368 done
8369
8370       
8371   # If we're not using GNU ld, then there's no point in even trying these
8372   # tests.  Check for that first.  We should have already tested for gld
8373   # by now (in libtool), but require it now just to be safe...
8374   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8375   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8376   
8377
8378   # The name set by libtool depends on the version of libtool.  Shame on us
8379   # for depending on an impl detail, but c'est la vie.  Older versions used
8380   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8381   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8382   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8383   # set (hence we're using an older libtool), then set it.
8384   if test x${with_gnu_ld+set} != xset; then
8385     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8386       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8387       with_gnu_ld=no
8388     else
8389       with_gnu_ld=$ac_cv_prog_gnu_ld
8390     fi
8391   fi
8392
8393   # Start by getting the version number.  I think the libtool test already
8394   # does some of this, but throws away the result.
8395   
8396   ldver=`$LD --version 2>/dev/null | head -1 | \
8397          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8398   
8399   glibcpp_gnu_ld_version=`echo $ldver | \
8400          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8401
8402   # Set --gc-sections.
8403   if test "$with_gnu_ld" = "notbroken"; then
8404     # GNU ld it is!  Joy and bunny rabbits!
8405
8406     # All these tests are for C++; save the language and the compiler flags.
8407     # Need to do this so that g++ won't try to link in libstdc++
8408     ac_test_CFLAGS="${CFLAGS+set}"
8409     ac_save_CFLAGS="$CFLAGS"
8410     CFLAGS='-x c++  -Wl,--gc-sections'
8411
8412     # Check for -Wl,--gc-sections
8413     # XXX This test is broken at the moment, as symbols required for
8414     # linking are now in libsupc++ (not built yet.....). In addition,
8415     # this test has cored on solaris in the past. In addition,
8416     # --gc-sections doesn't really work at the moment (keeps on discarding
8417     # used sections, first .eh_frame and now some of the glibc sections for
8418     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8419     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8420 echo "configure:8421: checking for ld that supports -Wl,--gc-sections" >&5
8421     if test "$cross_compiling" = yes; then
8422   ac_sectionLDflags=yes
8423 else
8424   cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427
8428      int main(void)
8429      {
8430        try { throw 1; }
8431        catch (...) { };
8432        return 0;
8433      }
8434     
8435 EOF
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437 then
8438   ac_sectionLDflags=yes
8439 else
8440   echo "configure: failed program was:" >&5
8441   cat conftest.$ac_ext >&5
8442   rm -fr conftest*
8443   ac_sectionLDflags=no
8444 fi
8445 rm -fr conftest*
8446 fi
8447
8448     if test "$ac_test_CFLAGS" = set; then
8449       CFLAGS="$ac_save_CFLAGS"
8450     else
8451       # this is the suspicious part
8452       CFLAGS=''
8453     fi
8454     if test "$ac_sectionLDflags" = "yes"; then
8455       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8456     fi
8457     echo "$ac_t""$ac_sectionLDflags" 1>&6
8458   fi
8459
8460   # Set linker optimization flags.
8461   if test x"$with_gnu_ld" = x"yes"; then
8462     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8463   fi
8464
8465   
8466   
8467
8468       
8469     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8470 echo "configure:8471: checking for main in -lm" >&5
8471 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8473   echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475   ac_save_LIBS="$LIBS"
8476 LIBS="-lm  $LIBS"
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480
8481 int main() {
8482 main()
8483 ; return 0; }
8484 EOF
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8486   rm -rf conftest*
8487   eval "ac_cv_lib_$ac_lib_var=yes"
8488 else
8489   echo "configure: failed program was:" >&5
8490   cat conftest.$ac_ext >&5
8491   rm -rf conftest*
8492   eval "ac_cv_lib_$ac_lib_var=no"
8493 fi
8494 rm -f conftest*
8495 LIBS="$ac_save_LIBS"
8496
8497 fi
8498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8499   echo "$ac_t""yes" 1>&6
8500     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8501     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8502   cat >> confdefs.h <<EOF
8503 #define $ac_tr_lib 1
8504 EOF
8505
8506   LIBS="-lm $LIBS"
8507
8508 else
8509   echo "$ac_t""no" 1>&6
8510 fi
8511
8512   for ac_func in nan copysignf
8513 do
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517   echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519   cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523     which can conflict with char $ac_func(); below.  */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 /* We use char because int might match the return type of a gcc2
8527     builtin and then its argument prototype would still apply.  */
8528 char $ac_func();
8529
8530 int main() {
8531
8532 /* The GNU C library defines this for functions which it implements
8533     to always fail with ENOSYS.  Some functions are actually named
8534     something starting with __ and the normal name is an alias.  */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8540
8541 ; return 0; }
8542 EOF
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544   rm -rf conftest*
8545   eval "ac_cv_func_$ac_func=yes"
8546 else
8547   echo "configure: failed program was:" >&5
8548   cat conftest.$ac_ext >&5
8549   rm -rf conftest*
8550   eval "ac_cv_func_$ac_func=no"
8551 fi
8552 rm -f conftest*
8553 fi
8554
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556   echo "$ac_t""yes" 1>&6
8557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558   cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8560 EOF
8561  
8562 else
8563   echo "$ac_t""no" 1>&6
8564 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8565 fi
8566 done
8567
8568
8569     for ac_func in __signbit
8570 do
8571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_func" >&5
8573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8574   echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8576   cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* System header to define __stub macros and hopefully few prototypes,
8580     which can conflict with char $ac_func(); below.  */
8581 #include <assert.h>
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 /* We use char because int might match the return type of a gcc2
8584     builtin and then its argument prototype would still apply.  */
8585 char $ac_func();
8586
8587 int main() {
8588
8589 /* The GNU C library defines this for functions which it implements
8590     to always fail with ENOSYS.  Some functions are actually named
8591     something starting with __ and the normal name is an alias.  */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 $ac_func();
8596 #endif
8597
8598 ; return 0; }
8599 EOF
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601   rm -rf conftest*
8602   eval "ac_cv_func_$ac_func=yes"
8603 else
8604   echo "configure: failed program was:" >&5
8605   cat conftest.$ac_ext >&5
8606   rm -rf conftest*
8607   eval "ac_cv_func_$ac_func=no"
8608 fi
8609 rm -f conftest*
8610 fi
8611
8612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8613   echo "$ac_t""yes" 1>&6
8614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8615   cat >> confdefs.h <<EOF
8616 #define $ac_tr_func 1
8617 EOF
8618  
8619 else
8620   echo "$ac_t""no" 1>&6
8621 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8622 fi
8623 done
8624
8625   for ac_func in __signbitf
8626 do
8627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8628 echo "configure:8629: checking for $ac_func" >&5
8629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8630   echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8632   cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* System header to define __stub macros and hopefully few prototypes,
8636     which can conflict with char $ac_func(); below.  */
8637 #include <assert.h>
8638 /* Override any gcc2 internal prototype to avoid an error.  */
8639 /* We use char because int might match the return type of a gcc2
8640     builtin and then its argument prototype would still apply.  */
8641 char $ac_func();
8642
8643 int main() {
8644
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 $ac_func();
8652 #endif
8653
8654 ; return 0; }
8655 EOF
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657   rm -rf conftest*
8658   eval "ac_cv_func_$ac_func=yes"
8659 else
8660   echo "configure: failed program was:" >&5
8661   cat conftest.$ac_ext >&5
8662   rm -rf conftest*
8663   eval "ac_cv_func_$ac_func=no"
8664 fi
8665 rm -f conftest*
8666 fi
8667
8668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8669   echo "$ac_t""yes" 1>&6
8670     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8671   cat >> confdefs.h <<EOF
8672 #define $ac_tr_func 1
8673 EOF
8674  
8675 else
8676   echo "$ac_t""no" 1>&6
8677 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8678 fi
8679 done
8680
8681
8682           if test x$ac_cv_func_copysignl = x"yes"; then
8683     for ac_func in __signbitl
8684 do
8685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8686 echo "configure:8687: checking for $ac_func" >&5
8687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8688   echo $ac_n "(cached) $ac_c" 1>&6
8689 else
8690   cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8693 /* System header to define __stub macros and hopefully few prototypes,
8694     which can conflict with char $ac_func(); below.  */
8695 #include <assert.h>
8696 /* Override any gcc2 internal prototype to avoid an error.  */
8697 /* We use char because int might match the return type of a gcc2
8698     builtin and then its argument prototype would still apply.  */
8699 char $ac_func();
8700
8701 int main() {
8702
8703 /* The GNU C library defines this for functions which it implements
8704     to always fail with ENOSYS.  Some functions are actually named
8705     something starting with __ and the normal name is an alias.  */
8706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8707 choke me
8708 #else
8709 $ac_func();
8710 #endif
8711
8712 ; return 0; }
8713 EOF
8714 if { (eval echo configure:8715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715   rm -rf conftest*
8716   eval "ac_cv_func_$ac_func=yes"
8717 else
8718   echo "configure: failed program was:" >&5
8719   cat conftest.$ac_ext >&5
8720   rm -rf conftest*
8721   eval "ac_cv_func_$ac_func=no"
8722 fi
8723 rm -f conftest*
8724 fi
8725
8726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8727   echo "$ac_t""yes" 1>&6
8728     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8729   cat >> confdefs.h <<EOF
8730 #define $ac_tr_func 1
8731 EOF
8732  
8733 else
8734   echo "$ac_t""no" 1>&6
8735 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8736 fi
8737 done
8738
8739   fi
8740
8741   if test -n "$LIBMATHOBJS"; then
8742     need_libmath=yes
8743   fi
8744   
8745   
8746
8747 if test "$need_libmath" = yes; then
8748   GLIBCPP_BUILD_LIBMATH_TRUE=
8749   GLIBCPP_BUILD_LIBMATH_FALSE='#'
8750 else
8751   GLIBCPP_BUILD_LIBMATH_TRUE='#'
8752   GLIBCPP_BUILD_LIBMATH_FALSE=
8753 fi
8754
8755       
8756     enable_wchar_t=no
8757
8758       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8759 echo "configure:8760: checking for mbstate_t" >&5
8760   cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 #include <wchar.h>
8764 int main() {
8765 mbstate_t teststate;
8766 ; return 0; }
8767 EOF
8768 if { (eval echo configure:8769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8769   rm -rf conftest*
8770   have_mbstate_t=yes
8771 else
8772   echo "configure: failed program was:" >&5
8773   cat conftest.$ac_ext >&5
8774   rm -rf conftest*
8775   have_mbstate_t=no
8776 fi
8777 rm -f conftest*
8778   echo "$ac_t""$have_mbstate_t" 1>&6
8779   if test x"$have_mbstate_t" = xyes; then
8780     cat >> confdefs.h <<\EOF
8781 #define HAVE_MBSTATE_T 1
8782 EOF
8783
8784   fi
8785
8786     for ac_hdr in wchar.h
8787 do
8788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_hdr" >&5
8791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8792   echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794   cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 #include <$ac_hdr>
8798 EOF
8799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8800 { (eval echo configure:8801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8802 if test -z "$ac_err"; then
8803   rm -rf conftest*
8804   eval "ac_cv_header_$ac_safe=yes"
8805 else
8806   echo "$ac_err" >&5
8807   echo "configure: failed program was:" >&5
8808   cat conftest.$ac_ext >&5
8809   rm -rf conftest*
8810   eval "ac_cv_header_$ac_safe=no"
8811 fi
8812 rm -f conftest*
8813 fi
8814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815   echo "$ac_t""yes" 1>&6
8816     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8817   cat >> confdefs.h <<EOF
8818 #define $ac_tr_hdr 1
8819 EOF
8820  ac_has_wchar_h=yes
8821 else
8822   echo "$ac_t""no" 1>&6
8823 ac_has_wchar_h=no
8824 fi
8825 done
8826
8827   for ac_hdr in wctype.h
8828 do
8829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8831 echo "configure:8832: checking for $ac_hdr" >&5
8832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8833   echo $ac_n "(cached) $ac_c" 1>&6
8834 else
8835   cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8838 #include <$ac_hdr>
8839 EOF
8840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8841 { (eval echo configure:8842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8843 if test -z "$ac_err"; then
8844   rm -rf conftest*
8845   eval "ac_cv_header_$ac_safe=yes"
8846 else
8847   echo "$ac_err" >&5
8848   echo "configure: failed program was:" >&5
8849   cat conftest.$ac_ext >&5
8850   rm -rf conftest*
8851   eval "ac_cv_header_$ac_safe=no"
8852 fi
8853 rm -f conftest*
8854 fi
8855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8856   echo "$ac_t""yes" 1>&6
8857     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8858   cat >> confdefs.h <<EOF
8859 #define $ac_tr_hdr 1
8860 EOF
8861  ac_has_wctype_h=yes
8862 else
8863   echo "$ac_t""no" 1>&6
8864 ac_has_wctype_h=no
8865 fi
8866 done
8867
8868
8869     if test x"$ac_has_wchar_h" = xyes &&
8870      test x"$ac_has_wctype_h" = xyes &&
8871      test x"$enable_c_mbchar" != xno; then
8872
8873             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8874 echo "configure:8875: checking for WCHAR_MIN and WCHAR_MAX" >&5
8875     cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 #include <wchar.h>
8879 int main() {
8880 int i = WCHAR_MIN; int j = WCHAR_MAX;
8881 ; return 0; }
8882 EOF
8883 if { (eval echo configure:8884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8884   rm -rf conftest*
8885   has_wchar_minmax=yes
8886 else
8887   echo "configure: failed program was:" >&5
8888   cat conftest.$ac_ext >&5
8889   rm -rf conftest*
8890   has_wchar_minmax=no
8891 fi
8892 rm -f conftest*
8893     echo "$ac_t""$has_wchar_minmax" 1>&6
8894
8895             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8896 echo "configure:8897: checking for WEOF" >&5
8897     cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900
8901       #include <wchar.h>
8902       #include <stddef.h>
8903 int main() {
8904 wint_t i = WEOF;
8905 ; return 0; }
8906 EOF
8907 if { (eval echo configure:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8908   rm -rf conftest*
8909   has_weof=yes
8910 else
8911   echo "configure: failed program was:" >&5
8912   cat conftest.$ac_ext >&5
8913   rm -rf conftest*
8914   has_weof=no
8915 fi
8916 rm -f conftest*
8917     echo "$ac_t""$has_weof" 1>&6
8918
8919         ac_wfuncs=yes
8920     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8921 do
8922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8923 echo "configure:8924: checking for $ac_func" >&5
8924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8925   echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8927   cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* System header to define __stub macros and hopefully few prototypes,
8931     which can conflict with char $ac_func(); below.  */
8932 #include <assert.h>
8933 /* Override any gcc2 internal prototype to avoid an error.  */
8934 /* We use char because int might match the return type of a gcc2
8935     builtin and then its argument prototype would still apply.  */
8936 char $ac_func();
8937
8938 int main() {
8939
8940 /* The GNU C library defines this for functions which it implements
8941     to always fail with ENOSYS.  Some functions are actually named
8942     something starting with __ and the normal name is an alias.  */
8943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8944 choke me
8945 #else
8946 $ac_func();
8947 #endif
8948
8949 ; return 0; }
8950 EOF
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8952   rm -rf conftest*
8953   eval "ac_cv_func_$ac_func=yes"
8954 else
8955   echo "configure: failed program was:" >&5
8956   cat conftest.$ac_ext >&5
8957   rm -rf conftest*
8958   eval "ac_cv_func_$ac_func=no"
8959 fi
8960 rm -f conftest*
8961 fi
8962
8963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8964   echo "$ac_t""yes" 1>&6
8965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8966   cat >> confdefs.h <<EOF
8967 #define $ac_tr_func 1
8968 EOF
8969  
8970 else
8971   echo "$ac_t""no" 1>&6
8972 \
8973     ac_wfuncs=no
8974 fi
8975 done
8976
8977
8978         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8979     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8980     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8981     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8982     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8983     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8984 do
8985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_func" >&5
8987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8988   echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990   cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993 /* System header to define __stub macros and hopefully few prototypes,
8994     which can conflict with char $ac_func(); below.  */
8995 #include <assert.h>
8996 /* Override any gcc2 internal prototype to avoid an error.  */
8997 /* We use char because int might match the return type of a gcc2
8998     builtin and then its argument prototype would still apply.  */
8999 char $ac_func();
9000
9001 int main() {
9002
9003 /* The GNU C library defines this for functions which it implements
9004     to always fail with ENOSYS.  Some functions are actually named
9005     something starting with __ and the normal name is an alias.  */
9006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 choke me
9008 #else
9009 $ac_func();
9010 #endif
9011
9012 ; return 0; }
9013 EOF
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9015   rm -rf conftest*
9016   eval "ac_cv_func_$ac_func=yes"
9017 else
9018   echo "configure: failed program was:" >&5
9019   cat conftest.$ac_ext >&5
9020   rm -rf conftest*
9021   eval "ac_cv_func_$ac_func=no"
9022 fi
9023 rm -f conftest*
9024 fi
9025
9026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9027   echo "$ac_t""yes" 1>&6
9028     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9029   cat >> confdefs.h <<EOF
9030 #define $ac_tr_func 1
9031 EOF
9032  
9033 else
9034   echo "$ac_t""no" 1>&6
9035 \
9036     ac_wfuncs=no
9037 fi
9038 done
9039
9040
9041     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9042 echo "configure:9043: checking for ISO C99 wchar_t support" >&5
9043     if test x"$has_weof" = xyes &&
9044        test x"$has_wchar_minmax" = xyes &&
9045        test x"$ac_wfuncs" = xyes; then
9046       ac_isoC99_wchar_t=yes
9047     else
9048       ac_isoC99_wchar_t=no
9049     fi
9050     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9051
9052             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9053 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9054 echo "configure:9055: checking for iconv.h" >&5
9055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9056   echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058   cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 #include <iconv.h>
9062 EOF
9063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9064 { (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9066 if test -z "$ac_err"; then
9067   rm -rf conftest*
9068   eval "ac_cv_header_$ac_safe=yes"
9069 else
9070   echo "$ac_err" >&5
9071   echo "configure: failed program was:" >&5
9072   cat conftest.$ac_ext >&5
9073   rm -rf conftest*
9074   eval "ac_cv_header_$ac_safe=no"
9075 fi
9076 rm -f conftest*
9077 fi
9078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9079   echo "$ac_t""yes" 1>&6
9080   ac_has_iconv_h=yes
9081 else
9082   echo "$ac_t""no" 1>&6
9083 ac_has_iconv_h=no
9084 fi
9085
9086     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9087 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9088 echo "configure:9089: checking for langinfo.h" >&5
9089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9090   echo $ac_n "(cached) $ac_c" 1>&6
9091 else
9092   cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include <langinfo.h>
9096 EOF
9097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9098 { (eval echo configure:9099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9100 if test -z "$ac_err"; then
9101   rm -rf conftest*
9102   eval "ac_cv_header_$ac_safe=yes"
9103 else
9104   echo "$ac_err" >&5
9105   echo "configure: failed program was:" >&5
9106   cat conftest.$ac_ext >&5
9107   rm -rf conftest*
9108   eval "ac_cv_header_$ac_safe=no"
9109 fi
9110 rm -f conftest*
9111 fi
9112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9113   echo "$ac_t""yes" 1>&6
9114   ac_has_langinfo_h=yes
9115 else
9116   echo "$ac_t""no" 1>&6
9117 ac_has_langinfo_h=no
9118 fi
9119
9120
9121         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9122 echo "configure:9123: checking for iconv in -liconv" >&5
9123 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9125   echo $ac_n "(cached) $ac_c" 1>&6
9126 else
9127   ac_save_LIBS="$LIBS"
9128 LIBS="-liconv  $LIBS"
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 /* Override any gcc2 internal prototype to avoid an error.  */
9133 /* We use char because int might match the return type of a gcc2
9134     builtin and then its argument prototype would still apply.  */
9135 char iconv();
9136
9137 int main() {
9138 iconv()
9139 ; return 0; }
9140 EOF
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9142   rm -rf conftest*
9143   eval "ac_cv_lib_$ac_lib_var=yes"
9144 else
9145   echo "configure: failed program was:" >&5
9146   cat conftest.$ac_ext >&5
9147   rm -rf conftest*
9148   eval "ac_cv_lib_$ac_lib_var=no"
9149 fi
9150 rm -f conftest*
9151 LIBS="$ac_save_LIBS"
9152
9153 fi
9154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9155   echo "$ac_t""yes" 1>&6
9156   libiconv="-liconv"
9157 else
9158   echo "$ac_t""no" 1>&6
9159 fi
9160
9161     ac_save_LIBS="$LIBS"
9162     LIBS="$LIBS $libiconv"
9163
9164     for ac_func in iconv_open iconv_close iconv nl_langinfo
9165 do
9166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9167 echo "configure:9168: checking for $ac_func" >&5
9168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9169   echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9171   cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 /* System header to define __stub macros and hopefully few prototypes,
9175     which can conflict with char $ac_func(); below.  */
9176 #include <assert.h>
9177 /* Override any gcc2 internal prototype to avoid an error.  */
9178 /* We use char because int might match the return type of a gcc2
9179     builtin and then its argument prototype would still apply.  */
9180 char $ac_func();
9181
9182 int main() {
9183
9184 /* The GNU C library defines this for functions which it implements
9185     to always fail with ENOSYS.  Some functions are actually named
9186     something starting with __ and the normal name is an alias.  */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9188 choke me
9189 #else
9190 $ac_func();
9191 #endif
9192
9193 ; return 0; }
9194 EOF
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196   rm -rf conftest*
9197   eval "ac_cv_func_$ac_func=yes"
9198 else
9199   echo "configure: failed program was:" >&5
9200   cat conftest.$ac_ext >&5
9201   rm -rf conftest*
9202   eval "ac_cv_func_$ac_func=no"
9203 fi
9204 rm -f conftest*
9205 fi
9206
9207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9208   echo "$ac_t""yes" 1>&6
9209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9210   cat >> confdefs.h <<EOF
9211 #define $ac_tr_func 1
9212 EOF
9213  \
9214     ac_XPG2funcs=yes
9215 else
9216   echo "$ac_t""no" 1>&6
9217 ac_XPG2funcs=no
9218 fi
9219 done
9220
9221
9222     LIBS="$ac_save_LIBS"
9223
9224     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9225 echo "configure:9226: checking for XPG2 wchar_t support" >&5
9226     if test x"$ac_has_iconv_h" = xyes &&
9227        test x"$ac_has_langinfo_h" = xyes &&
9228        test x"$ac_XPG2funcs" = xyes; then
9229       ac_XPG2_wchar_t=yes
9230     else
9231       ac_XPG2_wchar_t=no
9232     fi
9233     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9234
9235             if test x"$ac_isoC99_wchar_t" = xyes && 
9236         test x"$ac_XPG2_wchar_t" = xyes; then
9237       cat >> confdefs.h <<\EOF
9238 #define _GLIBCPP_USE_WCHAR_T 1
9239 EOF
9240
9241       enable_wchar_t=yes
9242     fi
9243   fi
9244   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9245 echo "configure:9246: checking for enabled wchar_t specializations" >&5
9246   echo "$ac_t""$enable_wchar_t" 1>&6    
9247   
9248
9249 if test "$enable_wchar_t" = yes; then
9250   GLIBCPP_TEST_WCHAR_T_TRUE=
9251   GLIBCPP_TEST_WCHAR_T_FALSE='#'
9252 else
9253   GLIBCPP_TEST_WCHAR_T_TRUE='#'
9254   GLIBCPP_TEST_WCHAR_T_FALSE=
9255 fi      
9256
9257       os_include_dir="os/mingw32"
9258       ;;
9259     *-windiss*)
9260       os_include_dir="os/windiss"
9261       ;;
9262     *-qnx6.[12]*)
9263       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9264        
9265       
9266   # If we're not using GNU ld, then there's no point in even trying these
9267   # tests.  Check for that first.  We should have already tested for gld
9268   # by now (in libtool), but require it now just to be safe...
9269   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9270   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9271   
9272
9273   # The name set by libtool depends on the version of libtool.  Shame on us
9274   # for depending on an impl detail, but c'est la vie.  Older versions used
9275   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9276   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9277   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9278   # set (hence we're using an older libtool), then set it.
9279   if test x${with_gnu_ld+set} != xset; then
9280     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9281       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9282       with_gnu_ld=no
9283     else
9284       with_gnu_ld=$ac_cv_prog_gnu_ld
9285     fi
9286   fi
9287
9288   # Start by getting the version number.  I think the libtool test already
9289   # does some of this, but throws away the result.
9290   
9291   ldver=`$LD --version 2>/dev/null | head -1 | \
9292          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9293   
9294   glibcpp_gnu_ld_version=`echo $ldver | \
9295          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9296
9297   # Set --gc-sections.
9298   if test "$with_gnu_ld" = "notbroken"; then
9299     # GNU ld it is!  Joy and bunny rabbits!
9300
9301     # All these tests are for C++; save the language and the compiler flags.
9302     # Need to do this so that g++ won't try to link in libstdc++
9303     ac_test_CFLAGS="${CFLAGS+set}"
9304     ac_save_CFLAGS="$CFLAGS"
9305     CFLAGS='-x c++  -Wl,--gc-sections'
9306
9307     # Check for -Wl,--gc-sections
9308     # XXX This test is broken at the moment, as symbols required for
9309     # linking are now in libsupc++ (not built yet.....). In addition,
9310     # this test has cored on solaris in the past. In addition,
9311     # --gc-sections doesn't really work at the moment (keeps on discarding
9312     # used sections, first .eh_frame and now some of the glibc sections for
9313     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9314     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9315 echo "configure:9316: checking for ld that supports -Wl,--gc-sections" >&5
9316     if test "$cross_compiling" = yes; then
9317   ac_sectionLDflags=yes
9318 else
9319   cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322
9323      int main(void)
9324      {
9325        try { throw 1; }
9326        catch (...) { };
9327        return 0;
9328      }
9329     
9330 EOF
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9332 then
9333   ac_sectionLDflags=yes
9334 else
9335   echo "configure: failed program was:" >&5
9336   cat conftest.$ac_ext >&5
9337   rm -fr conftest*
9338   ac_sectionLDflags=no
9339 fi
9340 rm -fr conftest*
9341 fi
9342
9343     if test "$ac_test_CFLAGS" = set; then
9344       CFLAGS="$ac_save_CFLAGS"
9345     else
9346       # this is the suspicious part
9347       CFLAGS=''
9348     fi
9349     if test "$ac_sectionLDflags" = "yes"; then
9350       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9351     fi
9352     echo "$ac_t""$ac_sectionLDflags" 1>&6
9353   fi
9354
9355   # Set linker optimization flags.
9356   if test x"$with_gnu_ld" = x"yes"; then
9357     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9358   fi
9359
9360   
9361   
9362
9363       
9364     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9365 echo "configure:9366: checking for main in -lm" >&5
9366 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9368   echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9370   ac_save_LIBS="$LIBS"
9371 LIBS="-lm  $LIBS"
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375
9376 int main() {
9377 main()
9378 ; return 0; }
9379 EOF
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381   rm -rf conftest*
9382   eval "ac_cv_lib_$ac_lib_var=yes"
9383 else
9384   echo "configure: failed program was:" >&5
9385   cat conftest.$ac_ext >&5
9386   rm -rf conftest*
9387   eval "ac_cv_lib_$ac_lib_var=no"
9388 fi
9389 rm -f conftest*
9390 LIBS="$ac_save_LIBS"
9391
9392 fi
9393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9394   echo "$ac_t""yes" 1>&6
9395     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9396     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9397   cat >> confdefs.h <<EOF
9398 #define $ac_tr_lib 1
9399 EOF
9400
9401   LIBS="-lm $LIBS"
9402
9403 else
9404   echo "$ac_t""no" 1>&6
9405 fi
9406
9407   for ac_func in nan copysignf
9408 do
9409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9410 echo "configure:9411: checking for $ac_func" >&5
9411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9412   echo $ac_n "(cached) $ac_c" 1>&6
9413 else
9414   cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9417 /* System header to define __stub macros and hopefully few prototypes,
9418     which can conflict with char $ac_func(); below.  */
9419 #include <assert.h>
9420 /* Override any gcc2 internal prototype to avoid an error.  */
9421 /* We use char because int might match the return type of a gcc2
9422     builtin and then its argument prototype would still apply.  */
9423 char $ac_func();
9424
9425 int main() {
9426
9427 /* The GNU C library defines this for functions which it implements
9428     to always fail with ENOSYS.  Some functions are actually named
9429     something starting with __ and the normal name is an alias.  */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 choke me
9432 #else
9433 $ac_func();
9434 #endif
9435
9436 ; return 0; }
9437 EOF
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9439   rm -rf conftest*
9440   eval "ac_cv_func_$ac_func=yes"
9441 else
9442   echo "configure: failed program was:" >&5
9443   cat conftest.$ac_ext >&5
9444   rm -rf conftest*
9445   eval "ac_cv_func_$ac_func=no"
9446 fi
9447 rm -f conftest*
9448 fi
9449
9450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9451   echo "$ac_t""yes" 1>&6
9452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9453   cat >> confdefs.h <<EOF
9454 #define $ac_tr_func 1
9455 EOF
9456  
9457 else
9458   echo "$ac_t""no" 1>&6
9459 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9460 fi
9461 done
9462
9463
9464     for ac_func in __signbit
9465 do
9466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9467 echo "configure:9468: checking for $ac_func" >&5
9468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9469   echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471   cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* System header to define __stub macros and hopefully few prototypes,
9475     which can conflict with char $ac_func(); below.  */
9476 #include <assert.h>
9477 /* Override any gcc2 internal prototype to avoid an error.  */
9478 /* We use char because int might match the return type of a gcc2
9479     builtin and then its argument prototype would still apply.  */
9480 char $ac_func();
9481
9482 int main() {
9483
9484 /* The GNU C library defines this for functions which it implements
9485     to always fail with ENOSYS.  Some functions are actually named
9486     something starting with __ and the normal name is an alias.  */
9487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9488 choke me
9489 #else
9490 $ac_func();
9491 #endif
9492
9493 ; return 0; }
9494 EOF
9495 if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9496   rm -rf conftest*
9497   eval "ac_cv_func_$ac_func=yes"
9498 else
9499   echo "configure: failed program was:" >&5
9500   cat conftest.$ac_ext >&5
9501   rm -rf conftest*
9502   eval "ac_cv_func_$ac_func=no"
9503 fi
9504 rm -f conftest*
9505 fi
9506
9507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9508   echo "$ac_t""yes" 1>&6
9509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9510   cat >> confdefs.h <<EOF
9511 #define $ac_tr_func 1
9512 EOF
9513  
9514 else
9515   echo "$ac_t""no" 1>&6
9516 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9517 fi
9518 done
9519
9520   for ac_func in __signbitf
9521 do
9522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9523 echo "configure:9524: checking for $ac_func" >&5
9524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9525   echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9527   cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 /* System header to define __stub macros and hopefully few prototypes,
9531     which can conflict with char $ac_func(); below.  */
9532 #include <assert.h>
9533 /* Override any gcc2 internal prototype to avoid an error.  */
9534 /* We use char because int might match the return type of a gcc2
9535     builtin and then its argument prototype would still apply.  */
9536 char $ac_func();
9537
9538 int main() {
9539
9540 /* The GNU C library defines this for functions which it implements
9541     to always fail with ENOSYS.  Some functions are actually named
9542     something starting with __ and the normal name is an alias.  */
9543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9544 choke me
9545 #else
9546 $ac_func();
9547 #endif
9548
9549 ; return 0; }
9550 EOF
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9552   rm -rf conftest*
9553   eval "ac_cv_func_$ac_func=yes"
9554 else
9555   echo "configure: failed program was:" >&5
9556   cat conftest.$ac_ext >&5
9557   rm -rf conftest*
9558   eval "ac_cv_func_$ac_func=no"
9559 fi
9560 rm -f conftest*
9561 fi
9562
9563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9564   echo "$ac_t""yes" 1>&6
9565     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9566   cat >> confdefs.h <<EOF
9567 #define $ac_tr_func 1
9568 EOF
9569  
9570 else
9571   echo "$ac_t""no" 1>&6
9572 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9573 fi
9574 done
9575
9576
9577           if test x$ac_cv_func_copysignl = x"yes"; then
9578     for ac_func in __signbitl
9579 do
9580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9581 echo "configure:9582: checking for $ac_func" >&5
9582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9583   echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9585   cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 /* System header to define __stub macros and hopefully few prototypes,
9589     which can conflict with char $ac_func(); below.  */
9590 #include <assert.h>
9591 /* Override any gcc2 internal prototype to avoid an error.  */
9592 /* We use char because int might match the return type of a gcc2
9593     builtin and then its argument prototype would still apply.  */
9594 char $ac_func();
9595
9596 int main() {
9597
9598 /* The GNU C library defines this for functions which it implements
9599     to always fail with ENOSYS.  Some functions are actually named
9600     something starting with __ and the normal name is an alias.  */
9601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9602 choke me
9603 #else
9604 $ac_func();
9605 #endif
9606
9607 ; return 0; }
9608 EOF
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9610   rm -rf conftest*
9611   eval "ac_cv_func_$ac_func=yes"
9612 else
9613   echo "configure: failed program was:" >&5
9614   cat conftest.$ac_ext >&5
9615   rm -rf conftest*
9616   eval "ac_cv_func_$ac_func=no"
9617 fi
9618 rm -f conftest*
9619 fi
9620
9621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9622   echo "$ac_t""yes" 1>&6
9623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9624   cat >> confdefs.h <<EOF
9625 #define $ac_tr_func 1
9626 EOF
9627  
9628 else
9629   echo "$ac_t""no" 1>&6
9630 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9631 fi
9632 done
9633
9634   fi
9635
9636   if test -n "$LIBMATHOBJS"; then
9637     need_libmath=yes
9638   fi
9639   
9640   
9641
9642 if test "$need_libmath" = yes; then
9643   GLIBCPP_BUILD_LIBMATH_TRUE=
9644   GLIBCPP_BUILD_LIBMATH_FALSE='#'
9645 else
9646   GLIBCPP_BUILD_LIBMATH_TRUE='#'
9647   GLIBCPP_BUILD_LIBMATH_FALSE=
9648 fi
9649
9650       
9651     enable_wchar_t=no
9652
9653       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9654 echo "configure:9655: checking for mbstate_t" >&5
9655   cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <wchar.h>
9659 int main() {
9660 mbstate_t teststate;
9661 ; return 0; }
9662 EOF
9663 if { (eval echo configure:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664   rm -rf conftest*
9665   have_mbstate_t=yes
9666 else
9667   echo "configure: failed program was:" >&5
9668   cat conftest.$ac_ext >&5
9669   rm -rf conftest*
9670   have_mbstate_t=no
9671 fi
9672 rm -f conftest*
9673   echo "$ac_t""$have_mbstate_t" 1>&6
9674   if test x"$have_mbstate_t" = xyes; then
9675     cat >> confdefs.h <<\EOF
9676 #define HAVE_MBSTATE_T 1
9677 EOF
9678
9679   fi
9680
9681     for ac_hdr in wchar.h
9682 do
9683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9685 echo "configure:9686: checking for $ac_hdr" >&5
9686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9687   echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689   cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <$ac_hdr>
9693 EOF
9694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9695 { (eval echo configure:9696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9697 if test -z "$ac_err"; then
9698   rm -rf conftest*
9699   eval "ac_cv_header_$ac_safe=yes"
9700 else
9701   echo "$ac_err" >&5
9702   echo "configure: failed program was:" >&5
9703   cat conftest.$ac_ext >&5
9704   rm -rf conftest*
9705   eval "ac_cv_header_$ac_safe=no"
9706 fi
9707 rm -f conftest*
9708 fi
9709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9710   echo "$ac_t""yes" 1>&6
9711     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9712   cat >> confdefs.h <<EOF
9713 #define $ac_tr_hdr 1
9714 EOF
9715  ac_has_wchar_h=yes
9716 else
9717   echo "$ac_t""no" 1>&6
9718 ac_has_wchar_h=no
9719 fi
9720 done
9721
9722   for ac_hdr in wctype.h
9723 do
9724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726 echo "configure:9727: checking for $ac_hdr" >&5
9727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728   echo $ac_n "(cached) $ac_c" 1>&6
9729 else
9730   cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 #include <$ac_hdr>
9734 EOF
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738 if test -z "$ac_err"; then
9739   rm -rf conftest*
9740   eval "ac_cv_header_$ac_safe=yes"
9741 else
9742   echo "$ac_err" >&5
9743   echo "configure: failed program was:" >&5
9744   cat conftest.$ac_ext >&5
9745   rm -rf conftest*
9746   eval "ac_cv_header_$ac_safe=no"
9747 fi
9748 rm -f conftest*
9749 fi
9750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751   echo "$ac_t""yes" 1>&6
9752     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753   cat >> confdefs.h <<EOF
9754 #define $ac_tr_hdr 1
9755 EOF
9756  ac_has_wctype_h=yes
9757 else
9758   echo "$ac_t""no" 1>&6
9759 ac_has_wctype_h=no
9760 fi
9761 done
9762
9763
9764     if test x"$ac_has_wchar_h" = xyes &&
9765      test x"$ac_has_wctype_h" = xyes &&
9766      test x"$enable_c_mbchar" != xno; then
9767
9768             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9769 echo "configure:9770: checking for WCHAR_MIN and WCHAR_MAX" >&5
9770     cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <wchar.h>
9774 int main() {
9775 int i = WCHAR_MIN; int j = WCHAR_MAX;
9776 ; return 0; }
9777 EOF
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9779   rm -rf conftest*
9780   has_wchar_minmax=yes
9781 else
9782   echo "configure: failed program was:" >&5
9783   cat conftest.$ac_ext >&5
9784   rm -rf conftest*
9785   has_wchar_minmax=no
9786 fi
9787 rm -f conftest*
9788     echo "$ac_t""$has_wchar_minmax" 1>&6
9789
9790             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9791 echo "configure:9792: checking for WEOF" >&5
9792     cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795
9796       #include <wchar.h>
9797       #include <stddef.h>
9798 int main() {
9799 wint_t i = WEOF;
9800 ; return 0; }
9801 EOF
9802 if { (eval echo configure:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9803   rm -rf conftest*
9804   has_weof=yes
9805 else
9806   echo "configure: failed program was:" >&5
9807   cat conftest.$ac_ext >&5
9808   rm -rf conftest*
9809   has_weof=no
9810 fi
9811 rm -f conftest*
9812     echo "$ac_t""$has_weof" 1>&6
9813
9814         ac_wfuncs=yes
9815     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9816 do
9817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9818 echo "configure:9819: checking for $ac_func" >&5
9819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9820   echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822   cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 /* System header to define __stub macros and hopefully few prototypes,
9826     which can conflict with char $ac_func(); below.  */
9827 #include <assert.h>
9828 /* Override any gcc2 internal prototype to avoid an error.  */
9829 /* We use char because int might match the return type of a gcc2
9830     builtin and then its argument prototype would still apply.  */
9831 char $ac_func();
9832
9833 int main() {
9834
9835 /* The GNU C library defines this for functions which it implements
9836     to always fail with ENOSYS.  Some functions are actually named
9837     something starting with __ and the normal name is an alias.  */
9838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 choke me
9840 #else
9841 $ac_func();
9842 #endif
9843
9844 ; return 0; }
9845 EOF
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847   rm -rf conftest*
9848   eval "ac_cv_func_$ac_func=yes"
9849 else
9850   echo "configure: failed program was:" >&5
9851   cat conftest.$ac_ext >&5
9852   rm -rf conftest*
9853   eval "ac_cv_func_$ac_func=no"
9854 fi
9855 rm -f conftest*
9856 fi
9857
9858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9859   echo "$ac_t""yes" 1>&6
9860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9861   cat >> confdefs.h <<EOF
9862 #define $ac_tr_func 1
9863 EOF
9864  
9865 else
9866   echo "$ac_t""no" 1>&6
9867 \
9868     ac_wfuncs=no
9869 fi
9870 done
9871
9872
9873         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9874     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9875     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9876     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9877     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9878     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9879 do
9880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9881 echo "configure:9882: checking for $ac_func" >&5
9882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9883   echo $ac_n "(cached) $ac_c" 1>&6
9884 else
9885   cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* System header to define __stub macros and hopefully few prototypes,
9889     which can conflict with char $ac_func(); below.  */
9890 #include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error.  */
9892 /* We use char because int might match the return type of a gcc2
9893     builtin and then its argument prototype would still apply.  */
9894 char $ac_func();
9895
9896 int main() {
9897
9898 /* The GNU C library defines this for functions which it implements
9899     to always fail with ENOSYS.  Some functions are actually named
9900     something starting with __ and the normal name is an alias.  */
9901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9902 choke me
9903 #else
9904 $ac_func();
9905 #endif
9906
9907 ; return 0; }
9908 EOF
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910   rm -rf conftest*
9911   eval "ac_cv_func_$ac_func=yes"
9912 else
9913   echo "configure: failed program was:" >&5
9914   cat conftest.$ac_ext >&5
9915   rm -rf conftest*
9916   eval "ac_cv_func_$ac_func=no"
9917 fi
9918 rm -f conftest*
9919 fi
9920
9921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9922   echo "$ac_t""yes" 1>&6
9923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9924   cat >> confdefs.h <<EOF
9925 #define $ac_tr_func 1
9926 EOF
9927  
9928 else
9929   echo "$ac_t""no" 1>&6
9930 \
9931     ac_wfuncs=no
9932 fi
9933 done
9934
9935
9936     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9937 echo "configure:9938: checking for ISO C99 wchar_t support" >&5
9938     if test x"$has_weof" = xyes &&
9939        test x"$has_wchar_minmax" = xyes &&
9940        test x"$ac_wfuncs" = xyes; then
9941       ac_isoC99_wchar_t=yes
9942     else
9943       ac_isoC99_wchar_t=no
9944     fi
9945     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9946
9947             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9948 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9949 echo "configure:9950: checking for iconv.h" >&5
9950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9951   echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953   cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 #include <iconv.h>
9957 EOF
9958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9959 { (eval echo configure:9960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9961 if test -z "$ac_err"; then
9962   rm -rf conftest*
9963   eval "ac_cv_header_$ac_safe=yes"
9964 else
9965   echo "$ac_err" >&5
9966   echo "configure: failed program was:" >&5
9967   cat conftest.$ac_ext >&5
9968   rm -rf conftest*
9969   eval "ac_cv_header_$ac_safe=no"
9970 fi
9971 rm -f conftest*
9972 fi
9973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9974   echo "$ac_t""yes" 1>&6
9975   ac_has_iconv_h=yes
9976 else
9977   echo "$ac_t""no" 1>&6
9978 ac_has_iconv_h=no
9979 fi
9980
9981     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9982 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9983 echo "configure:9984: checking for langinfo.h" >&5
9984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9985   echo $ac_n "(cached) $ac_c" 1>&6
9986 else
9987   cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <langinfo.h>
9991 EOF
9992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9993 { (eval echo configure:9994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9995 if test -z "$ac_err"; then
9996   rm -rf conftest*
9997   eval "ac_cv_header_$ac_safe=yes"
9998 else
9999   echo "$ac_err" >&5
10000   echo "configure: failed program was:" >&5
10001   cat conftest.$ac_ext >&5
10002   rm -rf conftest*
10003   eval "ac_cv_header_$ac_safe=no"
10004 fi
10005 rm -f conftest*
10006 fi
10007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10008   echo "$ac_t""yes" 1>&6
10009   ac_has_langinfo_h=yes
10010 else
10011   echo "$ac_t""no" 1>&6
10012 ac_has_langinfo_h=no
10013 fi
10014
10015
10016         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10017 echo "configure:10018: checking for iconv in -liconv" >&5
10018 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020   echo $ac_n "(cached) $ac_c" 1>&6
10021 else
10022   ac_save_LIBS="$LIBS"
10023 LIBS="-liconv  $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error.  */
10028 /* We use char because int might match the return type of a gcc2
10029     builtin and then its argument prototype would still apply.  */
10030 char iconv();
10031
10032 int main() {
10033 iconv()
10034 ; return 0; }
10035 EOF
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037   rm -rf conftest*
10038   eval "ac_cv_lib_$ac_lib_var=yes"
10039 else
10040   echo "configure: failed program was:" >&5
10041   cat conftest.$ac_ext >&5
10042   rm -rf conftest*
10043   eval "ac_cv_lib_$ac_lib_var=no"
10044 fi
10045 rm -f conftest*
10046 LIBS="$ac_save_LIBS"
10047
10048 fi
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050   echo "$ac_t""yes" 1>&6
10051   libiconv="-liconv"
10052 else
10053   echo "$ac_t""no" 1>&6
10054 fi
10055
10056     ac_save_LIBS="$LIBS"
10057     LIBS="$LIBS $libiconv"
10058
10059     for ac_func in iconv_open iconv_close iconv nl_langinfo
10060 do
10061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10062 echo "configure:10063: checking for $ac_func" >&5
10063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10064   echo $ac_n "(cached) $ac_c" 1>&6
10065 else
10066   cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 /* System header to define __stub macros and hopefully few prototypes,
10070     which can conflict with char $ac_func(); below.  */
10071 #include <assert.h>
10072 /* Override any gcc2 internal prototype to avoid an error.  */
10073 /* We use char because int might match the return type of a gcc2
10074     builtin and then its argument prototype would still apply.  */
10075 char $ac_func();
10076
10077 int main() {
10078
10079 /* The GNU C library defines this for functions which it implements
10080     to always fail with ENOSYS.  Some functions are actually named
10081     something starting with __ and the normal name is an alias.  */
10082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10083 choke me
10084 #else
10085 $ac_func();
10086 #endif
10087
10088 ; return 0; }
10089 EOF
10090 if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10091   rm -rf conftest*
10092   eval "ac_cv_func_$ac_func=yes"
10093 else
10094   echo "configure: failed program was:" >&5
10095   cat conftest.$ac_ext >&5
10096   rm -rf conftest*
10097   eval "ac_cv_func_$ac_func=no"
10098 fi
10099 rm -f conftest*
10100 fi
10101
10102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10103   echo "$ac_t""yes" 1>&6
10104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10105   cat >> confdefs.h <<EOF
10106 #define $ac_tr_func 1
10107 EOF
10108  \
10109     ac_XPG2funcs=yes
10110 else
10111   echo "$ac_t""no" 1>&6
10112 ac_XPG2funcs=no
10113 fi
10114 done
10115
10116
10117     LIBS="$ac_save_LIBS"
10118
10119     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10120 echo "configure:10121: checking for XPG2 wchar_t support" >&5
10121     if test x"$ac_has_iconv_h" = xyes &&
10122        test x"$ac_has_langinfo_h" = xyes &&
10123        test x"$ac_XPG2funcs" = xyes; then
10124       ac_XPG2_wchar_t=yes
10125     else
10126       ac_XPG2_wchar_t=no
10127     fi
10128     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10129
10130             if test x"$ac_isoC99_wchar_t" = xyes && 
10131         test x"$ac_XPG2_wchar_t" = xyes; then
10132       cat >> confdefs.h <<\EOF
10133 #define _GLIBCPP_USE_WCHAR_T 1
10134 EOF
10135
10136       enable_wchar_t=yes
10137     fi
10138   fi
10139   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10140 echo "configure:10141: checking for enabled wchar_t specializations" >&5
10141   echo "$ac_t""$enable_wchar_t" 1>&6    
10142   
10143
10144 if test "$enable_wchar_t" = yes; then
10145   GLIBCPP_TEST_WCHAR_T_TRUE=
10146   GLIBCPP_TEST_WCHAR_T_FALSE='#'
10147 else
10148   GLIBCPP_TEST_WCHAR_T_TRUE='#'
10149   GLIBCPP_TEST_WCHAR_T_FALSE=
10150 fi      
10151
10152       os_include_dir="os/qnx/qnx6.1"
10153       cat >> confdefs.h <<\EOF
10154 #define HAVE_COSF 1
10155 EOF
10156
10157       cat >> confdefs.h <<\EOF
10158 #define HAVE_COSL 1
10159 EOF
10160
10161       cat >> confdefs.h <<\EOF
10162 #define HAVE_COSHF 1
10163 EOF
10164
10165       cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHL 1
10167 EOF
10168
10169       cat >> confdefs.h <<\EOF
10170 #define HAVE_LOGF 1
10171 EOF
10172
10173       cat >> confdefs.h <<\EOF
10174 #define HAVE_LOGL 1
10175 EOF
10176
10177       cat >> confdefs.h <<\EOF
10178 #define HAVE_LOG10F 1
10179 EOF
10180
10181       cat >> confdefs.h <<\EOF
10182 #define HAVE_LOG10L 1
10183 EOF
10184
10185       cat >> confdefs.h <<\EOF
10186 #define HAVE_SINF 1
10187 EOF
10188
10189       cat >> confdefs.h <<\EOF
10190 #define HAVE_SINL 1
10191 EOF
10192
10193       cat >> confdefs.h <<\EOF
10194 #define HAVE_SINHF 1
10195 EOF
10196
10197       cat >> confdefs.h <<\EOF
10198 #define HAVE_SINHL 1
10199 EOF
10200
10201       ;;
10202     *)
10203       os_include_dir="os/newlib"
10204       cat >> confdefs.h <<\EOF
10205 #define HAVE_HYPOT 1
10206 EOF
10207
10208       ;;
10209   esac
10210
10211   case "$target" in
10212     *-mingw32*)
10213       ;;
10214     *-windiss*)
10215       cat >> confdefs.h <<\EOF
10216 #define HAVE_ACOSF 1
10217 EOF
10218
10219       cat >> confdefs.h <<\EOF
10220 #define HAVE_ASINF 1
10221 EOF
10222
10223       cat >> confdefs.h <<\EOF
10224 #define HAVE_ATAN2F 1
10225 EOF
10226
10227       cat >> confdefs.h <<\EOF
10228 #define HAVE_ATANF 1
10229 EOF
10230
10231       cat >> confdefs.h <<\EOF
10232 #define HAVE_CEILF 1
10233 EOF
10234
10235       cat >> confdefs.h <<\EOF
10236 #define HAVE_COPYSIGN 1
10237 EOF
10238
10239       cat >> confdefs.h <<\EOF
10240 #define HAVE_COPYSIGNF 1
10241 EOF
10242
10243       cat >> confdefs.h <<\EOF
10244 #define HAVE_COSF 1
10245 EOF
10246
10247       cat >> confdefs.h <<\EOF
10248 #define HAVE_COSHF 1
10249 EOF
10250
10251       cat >> confdefs.h <<\EOF
10252 #define HAVE_EXPF 1
10253 EOF
10254
10255       cat >> confdefs.h <<\EOF
10256 #define HAVE_FABSF 1
10257 EOF
10258
10259       cat >> confdefs.h <<\EOF
10260 #define HAVE_FLOORF 1
10261 EOF
10262
10263       cat >> confdefs.h <<\EOF
10264 #define HAVE_FMODF 1
10265 EOF
10266
10267       cat >> confdefs.h <<\EOF
10268 #define HAVE_FREXPF 1
10269 EOF
10270
10271       cat >> confdefs.h <<\EOF
10272 #define HAVE_LDEXPF 1
10273 EOF
10274
10275       cat >> confdefs.h <<\EOF
10276 #define HAVE_LOG10F 1
10277 EOF
10278
10279       cat >> confdefs.h <<\EOF
10280 #define HAVE_LOGF 1
10281 EOF
10282
10283       cat >> confdefs.h <<\EOF
10284 #define HAVE_MODFF 1
10285 EOF
10286
10287       cat >> confdefs.h <<\EOF
10288 #define HAVE_POWF 1
10289 EOF
10290
10291       cat >> confdefs.h <<\EOF
10292 #define HAVE_SINF 1
10293 EOF
10294
10295       cat >> confdefs.h <<\EOF
10296 #define HAVE_SINHF 1
10297 EOF
10298
10299       cat >> confdefs.h <<\EOF
10300 #define HAVE_SQRTF 1
10301 EOF
10302
10303       cat >> confdefs.h <<\EOF
10304 #define HAVE_TANF 1
10305 EOF
10306
10307       cat >> confdefs.h <<\EOF
10308 #define HAVE_TANHF 1
10309 EOF
10310
10311       ;;
10312     *-freebsd*)
10313       # Must replicate generic section since we don't have strtof or strtold.
10314       cat >> confdefs.h <<\EOF
10315 #define HAVE_MMAP 1
10316 EOF
10317
10318       cat >> confdefs.h <<\EOF
10319 #define HAVE_ACOSF 1
10320 EOF
10321
10322       cat >> confdefs.h <<\EOF
10323 #define HAVE_ASINF 1
10324 EOF
10325
10326       cat >> confdefs.h <<\EOF
10327 #define HAVE_ATAN2F 1
10328 EOF
10329
10330       cat >> confdefs.h <<\EOF
10331 #define HAVE_ATANF 1
10332 EOF
10333
10334       cat >> confdefs.h <<\EOF
10335 #define HAVE_CEILF 1
10336 EOF
10337
10338       cat >> confdefs.h <<\EOF
10339 #define HAVE_COPYSIGN 1
10340 EOF
10341
10342       cat >> confdefs.h <<\EOF
10343 #define HAVE_COPYSIGNF 1
10344 EOF
10345
10346       cat >> confdefs.h <<\EOF
10347 #define HAVE_COSF 1
10348 EOF
10349
10350       cat >> confdefs.h <<\EOF
10351 #define HAVE_COSHF 1
10352 EOF
10353
10354       cat >> confdefs.h <<\EOF
10355 #define HAVE_EXPF 1
10356 EOF
10357
10358       cat >> confdefs.h <<\EOF
10359 #define HAVE_FABSF 1
10360 EOF
10361
10362       cat >> confdefs.h <<\EOF
10363 #define HAVE_FLOORF 1
10364 EOF
10365
10366       cat >> confdefs.h <<\EOF
10367 #define HAVE_FMODF 1
10368 EOF
10369
10370       cat >> confdefs.h <<\EOF
10371 #define HAVE_FREXPF 1
10372 EOF
10373
10374       cat >> confdefs.h <<\EOF
10375 #define HAVE_LDEXPF 1
10376 EOF
10377
10378       cat >> confdefs.h <<\EOF
10379 #define HAVE_LOG10F 1
10380 EOF
10381
10382       cat >> confdefs.h <<\EOF
10383 #define HAVE_LOGF 1
10384 EOF
10385
10386       cat >> confdefs.h <<\EOF
10387 #define HAVE_MODFF 1
10388 EOF
10389
10390       cat >> confdefs.h <<\EOF
10391 #define HAVE_POWF 1
10392 EOF
10393
10394       cat >> confdefs.h <<\EOF
10395 #define HAVE_SINF 1
10396 EOF
10397
10398       cat >> confdefs.h <<\EOF
10399 #define HAVE_SINHF 1
10400 EOF
10401
10402       cat >> confdefs.h <<\EOF
10403 #define HAVE_SQRTF 1
10404 EOF
10405
10406       cat >> confdefs.h <<\EOF
10407 #define HAVE_TANF 1
10408 EOF
10409
10410       cat >> confdefs.h <<\EOF
10411 #define HAVE_TANHF 1
10412 EOF
10413
10414       ;;
10415     *)
10416       # GLIBCPP_CHECK_STDLIB_SUPPORT
10417       cat >> confdefs.h <<\EOF
10418 #define HAVE_STRTOF 1
10419 EOF
10420         
10421       cat >> confdefs.h <<\EOF
10422 #define HAVE_STRTOLD 1
10423 EOF
10424         
10425       # AC_FUNC_MMAP
10426       cat >> confdefs.h <<\EOF
10427 #define HAVE_MMAP 1
10428 EOF
10429
10430
10431       cat >> confdefs.h <<\EOF
10432 #define HAVE_ACOSF 1
10433 EOF
10434
10435       cat >> confdefs.h <<\EOF
10436 #define HAVE_ASINF 1
10437 EOF
10438
10439       cat >> confdefs.h <<\EOF
10440 #define HAVE_ATAN2F 1
10441 EOF
10442
10443       cat >> confdefs.h <<\EOF
10444 #define HAVE_ATANF 1
10445 EOF
10446
10447       cat >> confdefs.h <<\EOF
10448 #define HAVE_CEILF 1
10449 EOF
10450
10451       cat >> confdefs.h <<\EOF
10452 #define HAVE_COPYSIGN 1
10453 EOF
10454
10455       cat >> confdefs.h <<\EOF
10456 #define HAVE_COPYSIGNF 1
10457 EOF
10458
10459       cat >> confdefs.h <<\EOF
10460 #define HAVE_COSF 1
10461 EOF
10462
10463       cat >> confdefs.h <<\EOF
10464 #define HAVE_COSHF 1
10465 EOF
10466
10467       cat >> confdefs.h <<\EOF
10468 #define HAVE_EXPF 1
10469 EOF
10470
10471       cat >> confdefs.h <<\EOF
10472 #define HAVE_FABSF 1
10473 EOF
10474
10475       cat >> confdefs.h <<\EOF
10476 #define HAVE_FLOORF 1
10477 EOF
10478
10479       cat >> confdefs.h <<\EOF
10480 #define HAVE_FMODF 1
10481 EOF
10482
10483       cat >> confdefs.h <<\EOF
10484 #define HAVE_FREXPF 1
10485 EOF
10486
10487       cat >> confdefs.h <<\EOF
10488 #define HAVE_LDEXPF 1
10489 EOF
10490
10491       cat >> confdefs.h <<\EOF
10492 #define HAVE_LOG10F 1
10493 EOF
10494
10495       cat >> confdefs.h <<\EOF
10496 #define HAVE_LOGF 1
10497 EOF
10498
10499       cat >> confdefs.h <<\EOF
10500 #define HAVE_MODFF 1
10501 EOF
10502
10503       cat >> confdefs.h <<\EOF
10504 #define HAVE_POWF 1
10505 EOF
10506
10507       cat >> confdefs.h <<\EOF
10508 #define HAVE_SINF 1
10509 EOF
10510
10511       cat >> confdefs.h <<\EOF
10512 #define HAVE_SINHF 1
10513 EOF
10514
10515       cat >> confdefs.h <<\EOF
10516 #define HAVE_SQRTF 1
10517 EOF
10518
10519       cat >> confdefs.h <<\EOF
10520 #define HAVE_TANF 1
10521 EOF
10522
10523       cat >> confdefs.h <<\EOF
10524 #define HAVE_TANHF 1
10525 EOF
10526
10527       ;;
10528   esac
10529
10530   # At some point, we should differentiate between architectures
10531   # like x86, which have long double versions, and alpha/powerpc/etc.,
10532   # which don't. For the time being, punt.
10533   if test x"long_double_math_on_this_cpu" = x"yes"; then
10534     cat >> confdefs.h <<\EOF
10535 #define HAVE_ACOSL 1
10536 EOF
10537
10538     cat >> confdefs.h <<\EOF
10539 #define HAVE_ASINL 1
10540 EOF
10541
10542     cat >> confdefs.h <<\EOF
10543 #define HAVE_ATAN2L 1
10544 EOF
10545
10546     cat >> confdefs.h <<\EOF
10547 #define HAVE_ATANL 1
10548 EOF
10549
10550     cat >> confdefs.h <<\EOF
10551 #define HAVE_CEILL 1
10552 EOF
10553
10554     cat >> confdefs.h <<\EOF
10555 #define HAVE_COPYSIGNL 1
10556 EOF
10557
10558     cat >> confdefs.h <<\EOF
10559 #define HAVE_COSL 1
10560 EOF
10561
10562     cat >> confdefs.h <<\EOF
10563 #define HAVE_COSHL 1
10564 EOF
10565
10566     cat >> confdefs.h <<\EOF
10567 #define HAVE_EXPL 1
10568 EOF
10569
10570     cat >> confdefs.h <<\EOF
10571 #define HAVE_FABSL 1
10572 EOF
10573
10574     cat >> confdefs.h <<\EOF
10575 #define HAVE_FLOORL 1
10576 EOF
10577
10578     cat >> confdefs.h <<\EOF
10579 #define HAVE_FMODL 1
10580 EOF
10581
10582     cat >> confdefs.h <<\EOF
10583 #define HAVE_FREXPL 1
10584 EOF
10585
10586     cat >> confdefs.h <<\EOF
10587 #define HAVE_LDEXPL 1
10588 EOF
10589
10590     cat >> confdefs.h <<\EOF
10591 #define HAVE_LOG10L 1
10592 EOF
10593
10594     cat >> confdefs.h <<\EOF
10595 #define HAVE_LOGL 1
10596 EOF
10597
10598     cat >> confdefs.h <<\EOF
10599 #define HAVE_MODFL 1
10600 EOF
10601
10602     cat >> confdefs.h <<\EOF
10603 #define HAVE_POWL 1
10604 EOF
10605
10606     cat >> confdefs.h <<\EOF
10607 #define HAVE_SINCOSL 1
10608 EOF
10609
10610     cat >> confdefs.h <<\EOF
10611 #define HAVE_SINL 1
10612 EOF
10613
10614     cat >> confdefs.h <<\EOF
10615 #define HAVE_SINHL 1
10616 EOF
10617
10618     cat >> confdefs.h <<\EOF
10619 #define HAVE_SQRTL 1
10620 EOF
10621
10622     cat >> confdefs.h <<\EOF
10623 #define HAVE_TANL 1
10624 EOF
10625
10626     cat >> confdefs.h <<\EOF
10627 #define HAVE_TANHL 1
10628 EOF
10629
10630   fi
10631
10632 else
10633
10634   # We are being configured natively. We can do more elaborate tests
10635   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10636   # working.
10637   GLIBCPP_IS_CROSS_COMPILING=0
10638   CANADIAN=no
10639
10640   # Check for available headers.
10641   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10642   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10643   sys/types.h
10644 do
10645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10647 echo "configure:10648: checking for $ac_hdr" >&5
10648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10649   echo $ac_n "(cached) $ac_c" 1>&6
10650 else
10651   cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 #include <$ac_hdr>
10655 EOF
10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10659 if test -z "$ac_err"; then
10660   rm -rf conftest*
10661   eval "ac_cv_header_$ac_safe=yes"
10662 else
10663   echo "$ac_err" >&5
10664   echo "configure: failed program was:" >&5
10665   cat conftest.$ac_ext >&5
10666   rm -rf conftest*
10667   eval "ac_cv_header_$ac_safe=no"
10668 fi
10669 rm -f conftest*
10670 fi
10671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10672   echo "$ac_t""yes" 1>&6
10673     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10674   cat >> confdefs.h <<EOF
10675 #define $ac_tr_hdr 1
10676 EOF
10677  
10678 else
10679   echo "$ac_t""no" 1>&6
10680 fi
10681 done
10682
10683
10684   
10685   # All these tests are for C++; save the language and the compiler flags.
10686   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10687   # found in GLIBCPP_CONFIGURE.
10688   
10689   ac_ext=C
10690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691 ac_cpp='$CXXCPP $CPPFLAGS'
10692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694 cross_compiling=$ac_cv_prog_cxx_cross
10695
10696   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10697   ac_save_CXXFLAGS="$CXXFLAGS"
10698
10699   # Check for maintainer-mode bits.
10700   if test x"$USE_MAINTAINER_MODE" = xno; then
10701     WERROR=''
10702   else
10703     WERROR='-Werror'
10704   fi
10705
10706   # Check for -ffunction-sections -fdata-sections
10707   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10708 echo "configure:10709: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10709   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10710   cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713
10714 int main() {
10715 int foo;
10716   
10717 ; return 0; }
10718 EOF
10719 if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10720   rm -rf conftest*
10721   ac_fdsections=yes
10722 else
10723   echo "configure: failed program was:" >&5
10724   cat conftest.$ac_ext >&5
10725   rm -rf conftest*
10726   ac_fdsections=no
10727 fi
10728 rm -f conftest*
10729   if test "$ac_test_CXXFLAGS" = set; then
10730     CXXFLAGS="$ac_save_CXXFLAGS"
10731   else
10732     # this is the suspicious part
10733     CXXFLAGS=''
10734   fi
10735   if test x"$ac_fdsections" = x"yes"; then
10736     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10737   fi
10738   echo "$ac_t""$ac_fdsections" 1>&6
10739
10740   ac_ext=c
10741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10745 cross_compiling=$ac_cv_prog_cc_cross
10746
10747   
10748   
10749
10750   
10751   # If we're not using GNU ld, then there's no point in even trying these
10752   # tests.  Check for that first.  We should have already tested for gld
10753   # by now (in libtool), but require it now just to be safe...
10754   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10755   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10756   
10757
10758   # The name set by libtool depends on the version of libtool.  Shame on us
10759   # for depending on an impl detail, but c'est la vie.  Older versions used
10760   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10761   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10762   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10763   # set (hence we're using an older libtool), then set it.
10764   if test x${with_gnu_ld+set} != xset; then
10765     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10766       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10767       with_gnu_ld=no
10768     else
10769       with_gnu_ld=$ac_cv_prog_gnu_ld
10770     fi
10771   fi
10772
10773   # Start by getting the version number.  I think the libtool test already
10774   # does some of this, but throws away the result.
10775   
10776   ldver=`$LD --version 2>/dev/null | head -1 | \
10777          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10778   
10779   glibcpp_gnu_ld_version=`echo $ldver | \
10780          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10781
10782   # Set --gc-sections.
10783   if test "$with_gnu_ld" = "notbroken"; then
10784     # GNU ld it is!  Joy and bunny rabbits!
10785
10786     # All these tests are for C++; save the language and the compiler flags.
10787     # Need to do this so that g++ won't try to link in libstdc++
10788     ac_test_CFLAGS="${CFLAGS+set}"
10789     ac_save_CFLAGS="$CFLAGS"
10790     CFLAGS='-x c++  -Wl,--gc-sections'
10791
10792     # Check for -Wl,--gc-sections
10793     # XXX This test is broken at the moment, as symbols required for
10794     # linking are now in libsupc++ (not built yet.....). In addition,
10795     # this test has cored on solaris in the past. In addition,
10796     # --gc-sections doesn't really work at the moment (keeps on discarding
10797     # used sections, first .eh_frame and now some of the glibc sections for
10798     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10799     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10800 echo "configure:10801: checking for ld that supports -Wl,--gc-sections" >&5
10801     if test "$cross_compiling" = yes; then
10802   ac_sectionLDflags=yes
10803 else
10804   cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807
10808      int main(void)
10809      {
10810        try { throw 1; }
10811        catch (...) { };
10812        return 0;
10813      }
10814     
10815 EOF
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10817 then
10818   ac_sectionLDflags=yes
10819 else
10820   echo "configure: failed program was:" >&5
10821   cat conftest.$ac_ext >&5
10822   rm -fr conftest*
10823   ac_sectionLDflags=no
10824 fi
10825 rm -fr conftest*
10826 fi
10827
10828     if test "$ac_test_CFLAGS" = set; then
10829       CFLAGS="$ac_save_CFLAGS"
10830     else
10831       # this is the suspicious part
10832       CFLAGS=''
10833     fi
10834     if test "$ac_sectionLDflags" = "yes"; then
10835       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10836     fi
10837     echo "$ac_t""$ac_sectionLDflags" 1>&6
10838   fi
10839
10840   # Set linker optimization flags.
10841   if test x"$with_gnu_ld" = x"yes"; then
10842     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10843   fi
10844
10845   
10846   
10847
10848   
10849   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10850   ac_save_CXXFLAGS="$CXXFLAGS"
10851   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10852
10853     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10854 echo "configure:10855: checking for sin in -lm" >&5
10855 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10857   echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10859   ac_save_LIBS="$LIBS"
10860 LIBS="-lm  $LIBS"
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 /* Override any gcc2 internal prototype to avoid an error.  */
10865 /* We use char because int might match the return type of a gcc2
10866     builtin and then its argument prototype would still apply.  */
10867 char sin();
10868
10869 int main() {
10870 sin()
10871 ; return 0; }
10872 EOF
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10874   rm -rf conftest*
10875   eval "ac_cv_lib_$ac_lib_var=yes"
10876 else
10877   echo "configure: failed program was:" >&5
10878   cat conftest.$ac_ext >&5
10879   rm -rf conftest*
10880   eval "ac_cv_lib_$ac_lib_var=no"
10881 fi
10882 rm -f conftest*
10883 LIBS="$ac_save_LIBS"
10884
10885 fi
10886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10887   echo "$ac_t""yes" 1>&6
10888   libm="-lm"
10889 else
10890   echo "$ac_t""no" 1>&6
10891 fi
10892
10893   ac_save_LIBS="$LIBS"
10894   LIBS="$LIBS $libm"
10895
10896     
10897   
10898   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10899 echo "configure:10900: checking for isinf declaration" >&5
10900   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10901     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10902   echo $ac_n "(cached) $ac_c" 1>&6
10903 else
10904   
10905       
10906       ac_ext=C
10907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10908 ac_cpp='$CXXCPP $CPPFLAGS'
10909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10911 cross_compiling=$ac_cv_prog_cxx_cross
10912
10913       cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure"
10915 #include "confdefs.h"
10916 #include <math.h>
10917                       #ifdef HAVE_IEEEFP_H
10918                       #include <ieeefp.h>
10919                       #endif
10920                      
10921 int main() {
10922  isinf(0);
10923 ; return 0; }
10924 EOF
10925 if { (eval echo configure:10926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10926   rm -rf conftest*
10927   glibcpp_cv_func_isinf_use=yes
10928 else
10929   echo "configure: failed program was:" >&5
10930   cat conftest.$ac_ext >&5
10931   rm -rf conftest*
10932   glibcpp_cv_func_isinf_use=no
10933 fi
10934 rm -f conftest*
10935       ac_ext=c
10936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10940 cross_compiling=$ac_cv_prog_cc_cross
10941
10942     
10943 fi
10944
10945   fi
10946   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10947
10948   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10949     for ac_func in isinf
10950 do
10951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10952 echo "configure:10953: checking for $ac_func" >&5
10953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10954   echo $ac_n "(cached) $ac_c" 1>&6
10955 else
10956   cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 /* System header to define __stub macros and hopefully few prototypes,
10960     which can conflict with char $ac_func(); below.  */
10961 #include <assert.h>
10962 /* Override any gcc2 internal prototype to avoid an error.  */
10963 /* We use char because int might match the return type of a gcc2
10964     builtin and then its argument prototype would still apply.  */
10965 char $ac_func();
10966
10967 int main() {
10968
10969 /* The GNU C library defines this for functions which it implements
10970     to always fail with ENOSYS.  Some functions are actually named
10971     something starting with __ and the normal name is an alias.  */
10972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10973 choke me
10974 #else
10975 $ac_func();
10976 #endif
10977
10978 ; return 0; }
10979 EOF
10980 if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10981   rm -rf conftest*
10982   eval "ac_cv_func_$ac_func=yes"
10983 else
10984   echo "configure: failed program was:" >&5
10985   cat conftest.$ac_ext >&5
10986   rm -rf conftest*
10987   eval "ac_cv_func_$ac_func=no"
10988 fi
10989 rm -f conftest*
10990 fi
10991
10992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10993   echo "$ac_t""yes" 1>&6
10994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10995   cat >> confdefs.h <<EOF
10996 #define $ac_tr_func 1
10997 EOF
10998  
10999 else
11000   echo "$ac_t""no" 1>&6
11001 fi
11002 done
11003
11004   else
11005     
11006   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11007 echo "configure:11008: checking for _isinf declaration" >&5
11008   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11009     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11010   echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11012   
11013       
11014       ac_ext=C
11015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11016 ac_cpp='$CXXCPP $CPPFLAGS'
11017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11019 cross_compiling=$ac_cv_prog_cxx_cross
11020
11021       cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11024 #include <math.h>
11025                       #ifdef HAVE_IEEEFP_H
11026                       #include <ieeefp.h>
11027                       #endif
11028                      
11029 int main() {
11030  _isinf(0);
11031 ; return 0; }
11032 EOF
11033 if { (eval echo configure:11034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11034   rm -rf conftest*
11035   glibcpp_cv_func__isinf_use=yes
11036 else
11037   echo "configure: failed program was:" >&5
11038   cat conftest.$ac_ext >&5
11039   rm -rf conftest*
11040   glibcpp_cv_func__isinf_use=no
11041 fi
11042 rm -f conftest*
11043       ac_ext=c
11044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11045 ac_cpp='$CPP $CPPFLAGS'
11046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11048 cross_compiling=$ac_cv_prog_cc_cross
11049
11050     
11051 fi
11052
11053   fi
11054   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11055
11056     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11057       for ac_func in _isinf
11058 do
11059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11060 echo "configure:11061: checking for $ac_func" >&5
11061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11062   echo $ac_n "(cached) $ac_c" 1>&6
11063 else
11064   cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* System header to define __stub macros and hopefully few prototypes,
11068     which can conflict with char $ac_func(); below.  */
11069 #include <assert.h>
11070 /* Override any gcc2 internal prototype to avoid an error.  */
11071 /* We use char because int might match the return type of a gcc2
11072     builtin and then its argument prototype would still apply.  */
11073 char $ac_func();
11074
11075 int main() {
11076
11077 /* The GNU C library defines this for functions which it implements
11078     to always fail with ENOSYS.  Some functions are actually named
11079     something starting with __ and the normal name is an alias.  */
11080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11081 choke me
11082 #else
11083 $ac_func();
11084 #endif
11085
11086 ; return 0; }
11087 EOF
11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11089   rm -rf conftest*
11090   eval "ac_cv_func_$ac_func=yes"
11091 else
11092   echo "configure: failed program was:" >&5
11093   cat conftest.$ac_ext >&5
11094   rm -rf conftest*
11095   eval "ac_cv_func_$ac_func=no"
11096 fi
11097 rm -f conftest*
11098 fi
11099
11100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11101   echo "$ac_t""yes" 1>&6
11102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11103   cat >> confdefs.h <<EOF
11104 #define $ac_tr_func 1
11105 EOF
11106  
11107 else
11108   echo "$ac_t""no" 1>&6
11109 fi
11110 done
11111
11112     fi
11113   fi
11114
11115   
11116   
11117   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11118 echo "configure:11119: checking for isnan declaration" >&5
11119   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11120     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11121   echo $ac_n "(cached) $ac_c" 1>&6
11122 else
11123   
11124       
11125       ac_ext=C
11126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127 ac_cpp='$CXXCPP $CPPFLAGS'
11128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130 cross_compiling=$ac_cv_prog_cxx_cross
11131
11132       cat > conftest.$ac_ext <<EOF
11133 #line 11134 "configure"
11134 #include "confdefs.h"
11135 #include <math.h>
11136                       #ifdef HAVE_IEEEFP_H
11137                       #include <ieeefp.h>
11138                       #endif
11139                      
11140 int main() {
11141  isnan(0);
11142 ; return 0; }
11143 EOF
11144 if { (eval echo configure:11145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11145   rm -rf conftest*
11146   glibcpp_cv_func_isnan_use=yes
11147 else
11148   echo "configure: failed program was:" >&5
11149   cat conftest.$ac_ext >&5
11150   rm -rf conftest*
11151   glibcpp_cv_func_isnan_use=no
11152 fi
11153 rm -f conftest*
11154       ac_ext=c
11155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11156 ac_cpp='$CPP $CPPFLAGS'
11157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11159 cross_compiling=$ac_cv_prog_cc_cross
11160
11161     
11162 fi
11163
11164   fi
11165   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11166
11167   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11168     for ac_func in isnan
11169 do
11170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11171 echo "configure:11172: checking for $ac_func" >&5
11172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11173   echo $ac_n "(cached) $ac_c" 1>&6
11174 else
11175   cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11178 /* System header to define __stub macros and hopefully few prototypes,
11179     which can conflict with char $ac_func(); below.  */
11180 #include <assert.h>
11181 /* Override any gcc2 internal prototype to avoid an error.  */
11182 /* We use char because int might match the return type of a gcc2
11183     builtin and then its argument prototype would still apply.  */
11184 char $ac_func();
11185
11186 int main() {
11187
11188 /* The GNU C library defines this for functions which it implements
11189     to always fail with ENOSYS.  Some functions are actually named
11190     something starting with __ and the normal name is an alias.  */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11192 choke me
11193 #else
11194 $ac_func();
11195 #endif
11196
11197 ; return 0; }
11198 EOF
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11200   rm -rf conftest*
11201   eval "ac_cv_func_$ac_func=yes"
11202 else
11203   echo "configure: failed program was:" >&5
11204   cat conftest.$ac_ext >&5
11205   rm -rf conftest*
11206   eval "ac_cv_func_$ac_func=no"
11207 fi
11208 rm -f conftest*
11209 fi
11210
11211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11212   echo "$ac_t""yes" 1>&6
11213     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11214   cat >> confdefs.h <<EOF
11215 #define $ac_tr_func 1
11216 EOF
11217  
11218 else
11219   echo "$ac_t""no" 1>&6
11220 fi
11221 done
11222
11223   else
11224     
11225   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11226 echo "configure:11227: checking for _isnan declaration" >&5
11227   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11228     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11229   echo $ac_n "(cached) $ac_c" 1>&6
11230 else
11231   
11232       
11233       ac_ext=C
11234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11235 ac_cpp='$CXXCPP $CPPFLAGS'
11236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11238 cross_compiling=$ac_cv_prog_cxx_cross
11239
11240       cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 #include <math.h>
11244                       #ifdef HAVE_IEEEFP_H
11245                       #include <ieeefp.h>
11246                       #endif
11247                      
11248 int main() {
11249  _isnan(0);
11250 ; return 0; }
11251 EOF
11252 if { (eval echo configure:11253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11253   rm -rf conftest*
11254   glibcpp_cv_func__isnan_use=yes
11255 else
11256   echo "configure: failed program was:" >&5
11257   cat conftest.$ac_ext >&5
11258   rm -rf conftest*
11259   glibcpp_cv_func__isnan_use=no
11260 fi
11261 rm -f conftest*
11262       ac_ext=c
11263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11267 cross_compiling=$ac_cv_prog_cc_cross
11268
11269     
11270 fi
11271
11272   fi
11273   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11274
11275     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11276       for ac_func in _isnan
11277 do
11278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11279 echo "configure:11280: checking for $ac_func" >&5
11280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11281   echo $ac_n "(cached) $ac_c" 1>&6
11282 else
11283   cat > conftest.$ac_ext <<EOF
11284 #line 11285 "configure"
11285 #include "confdefs.h"
11286 /* System header to define __stub macros and hopefully few prototypes,
11287     which can conflict with char $ac_func(); below.  */
11288 #include <assert.h>
11289 /* Override any gcc2 internal prototype to avoid an error.  */
11290 /* We use char because int might match the return type of a gcc2
11291     builtin and then its argument prototype would still apply.  */
11292 char $ac_func();
11293
11294 int main() {
11295
11296 /* The GNU C library defines this for functions which it implements
11297     to always fail with ENOSYS.  Some functions are actually named
11298     something starting with __ and the normal name is an alias.  */
11299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11300 choke me
11301 #else
11302 $ac_func();
11303 #endif
11304
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308   rm -rf conftest*
11309   eval "ac_cv_func_$ac_func=yes"
11310 else
11311   echo "configure: failed program was:" >&5
11312   cat conftest.$ac_ext >&5
11313   rm -rf conftest*
11314   eval "ac_cv_func_$ac_func=no"
11315 fi
11316 rm -f conftest*
11317 fi
11318
11319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11320   echo "$ac_t""yes" 1>&6
11321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11322   cat >> confdefs.h <<EOF
11323 #define $ac_tr_func 1
11324 EOF
11325  
11326 else
11327   echo "$ac_t""no" 1>&6
11328 fi
11329 done
11330
11331     fi
11332   fi
11333
11334   
11335   
11336   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11337 echo "configure:11338: checking for finite declaration" >&5
11338   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11339     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11340   echo $ac_n "(cached) $ac_c" 1>&6
11341 else
11342   
11343       
11344       ac_ext=C
11345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11346 ac_cpp='$CXXCPP $CPPFLAGS'
11347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11349 cross_compiling=$ac_cv_prog_cxx_cross
11350
11351       cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 #include <math.h>
11355                       #ifdef HAVE_IEEEFP_H
11356                       #include <ieeefp.h>
11357                       #endif
11358                      
11359 int main() {
11360  finite(0);
11361 ; return 0; }
11362 EOF
11363 if { (eval echo configure:11364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11364   rm -rf conftest*
11365   glibcpp_cv_func_finite_use=yes
11366 else
11367   echo "configure: failed program was:" >&5
11368   cat conftest.$ac_ext >&5
11369   rm -rf conftest*
11370   glibcpp_cv_func_finite_use=no
11371 fi
11372 rm -f conftest*
11373       ac_ext=c
11374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11375 ac_cpp='$CPP $CPPFLAGS'
11376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11378 cross_compiling=$ac_cv_prog_cc_cross
11379
11380     
11381 fi
11382
11383   fi
11384   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11385
11386   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11387     for ac_func in finite
11388 do
11389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11390 echo "configure:11391: checking for $ac_func" >&5
11391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11392   echo $ac_n "(cached) $ac_c" 1>&6
11393 else
11394   cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 /* System header to define __stub macros and hopefully few prototypes,
11398     which can conflict with char $ac_func(); below.  */
11399 #include <assert.h>
11400 /* Override any gcc2 internal prototype to avoid an error.  */
11401 /* We use char because int might match the return type of a gcc2
11402     builtin and then its argument prototype would still apply.  */
11403 char $ac_func();
11404
11405 int main() {
11406
11407 /* The GNU C library defines this for functions which it implements
11408     to always fail with ENOSYS.  Some functions are actually named
11409     something starting with __ and the normal name is an alias.  */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 choke me
11412 #else
11413 $ac_func();
11414 #endif
11415
11416 ; return 0; }
11417 EOF
11418 if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11419   rm -rf conftest*
11420   eval "ac_cv_func_$ac_func=yes"
11421 else
11422   echo "configure: failed program was:" >&5
11423   cat conftest.$ac_ext >&5
11424   rm -rf conftest*
11425   eval "ac_cv_func_$ac_func=no"
11426 fi
11427 rm -f conftest*
11428 fi
11429
11430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11431   echo "$ac_t""yes" 1>&6
11432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11433   cat >> confdefs.h <<EOF
11434 #define $ac_tr_func 1
11435 EOF
11436  
11437 else
11438   echo "$ac_t""no" 1>&6
11439 fi
11440 done
11441
11442   else
11443     
11444   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11445 echo "configure:11446: checking for _finite declaration" >&5
11446   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11447     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11448   echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11450   
11451       
11452       ac_ext=C
11453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11454 ac_cpp='$CXXCPP $CPPFLAGS'
11455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11457 cross_compiling=$ac_cv_prog_cxx_cross
11458
11459       cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 #include <math.h>
11463                       #ifdef HAVE_IEEEFP_H
11464                       #include <ieeefp.h>
11465                       #endif
11466                      
11467 int main() {
11468  _finite(0);
11469 ; return 0; }
11470 EOF
11471 if { (eval echo configure:11472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11472   rm -rf conftest*
11473   glibcpp_cv_func__finite_use=yes
11474 else
11475   echo "configure: failed program was:" >&5
11476   cat conftest.$ac_ext >&5
11477   rm -rf conftest*
11478   glibcpp_cv_func__finite_use=no
11479 fi
11480 rm -f conftest*
11481       ac_ext=c
11482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11486 cross_compiling=$ac_cv_prog_cc_cross
11487
11488     
11489 fi
11490
11491   fi
11492   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11493
11494     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11495       for ac_func in _finite
11496 do
11497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11498 echo "configure:11499: checking for $ac_func" >&5
11499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11500   echo $ac_n "(cached) $ac_c" 1>&6
11501 else
11502   cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 /* System header to define __stub macros and hopefully few prototypes,
11506     which can conflict with char $ac_func(); below.  */
11507 #include <assert.h>
11508 /* Override any gcc2 internal prototype to avoid an error.  */
11509 /* We use char because int might match the return type of a gcc2
11510     builtin and then its argument prototype would still apply.  */
11511 char $ac_func();
11512
11513 int main() {
11514
11515 /* The GNU C library defines this for functions which it implements
11516     to always fail with ENOSYS.  Some functions are actually named
11517     something starting with __ and the normal name is an alias.  */
11518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11519 choke me
11520 #else
11521 $ac_func();
11522 #endif
11523
11524 ; return 0; }
11525 EOF
11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527   rm -rf conftest*
11528   eval "ac_cv_func_$ac_func=yes"
11529 else
11530   echo "configure: failed program was:" >&5
11531   cat conftest.$ac_ext >&5
11532   rm -rf conftest*
11533   eval "ac_cv_func_$ac_func=no"
11534 fi
11535 rm -f conftest*
11536 fi
11537
11538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11539   echo "$ac_t""yes" 1>&6
11540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11541   cat >> confdefs.h <<EOF
11542 #define $ac_tr_func 1
11543 EOF
11544  
11545 else
11546   echo "$ac_t""no" 1>&6
11547 fi
11548 done
11549
11550     fi
11551   fi
11552
11553   
11554   
11555   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11556 echo "configure:11557: checking for copysign declaration" >&5
11557   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11558     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11559   echo $ac_n "(cached) $ac_c" 1>&6
11560 else
11561   
11562       
11563       ac_ext=C
11564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11565 ac_cpp='$CXXCPP $CPPFLAGS'
11566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11568 cross_compiling=$ac_cv_prog_cxx_cross
11569
11570       cat > conftest.$ac_ext <<EOF
11571 #line 11572 "configure"
11572 #include "confdefs.h"
11573 #include <math.h>
11574 int main() {
11575  copysign(0, 0);
11576 ; return 0; }
11577 EOF
11578 if { (eval echo configure:11579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11579   rm -rf conftest*
11580   glibcpp_cv_func_copysign_use=yes
11581 else
11582   echo "configure: failed program was:" >&5
11583   cat conftest.$ac_ext >&5
11584   rm -rf conftest*
11585   glibcpp_cv_func_copysign_use=no
11586 fi
11587 rm -f conftest*
11588       ac_ext=c
11589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CPP $CPPFLAGS'
11591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cc_cross
11594
11595     
11596 fi
11597
11598   fi
11599   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11600
11601   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11602     for ac_func in copysign
11603 do
11604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11605 echo "configure:11606: checking for $ac_func" >&5
11606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11607   echo $ac_n "(cached) $ac_c" 1>&6
11608 else
11609   cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613     which can conflict with char $ac_func(); below.  */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error.  */
11616 /* We use char because int might match the return type of a gcc2
11617     builtin and then its argument prototype would still apply.  */
11618 char $ac_func();
11619
11620 int main() {
11621
11622 /* The GNU C library defines this for functions which it implements
11623     to always fail with ENOSYS.  Some functions are actually named
11624     something starting with __ and the normal name is an alias.  */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11626 choke me
11627 #else
11628 $ac_func();
11629 #endif
11630
11631 ; return 0; }
11632 EOF
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634   rm -rf conftest*
11635   eval "ac_cv_func_$ac_func=yes"
11636 else
11637   echo "configure: failed program was:" >&5
11638   cat conftest.$ac_ext >&5
11639   rm -rf conftest*
11640   eval "ac_cv_func_$ac_func=no"
11641 fi
11642 rm -f conftest*
11643 fi
11644
11645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11646   echo "$ac_t""yes" 1>&6
11647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11648   cat >> confdefs.h <<EOF
11649 #define $ac_tr_func 1
11650 EOF
11651  
11652 else
11653   echo "$ac_t""no" 1>&6
11654 fi
11655 done
11656
11657   else
11658     
11659   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11660 echo "configure:11661: checking for _copysign declaration" >&5
11661   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11662     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11663   echo $ac_n "(cached) $ac_c" 1>&6
11664 else
11665   
11666       
11667       ac_ext=C
11668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11669 ac_cpp='$CXXCPP $CPPFLAGS'
11670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11672 cross_compiling=$ac_cv_prog_cxx_cross
11673
11674       cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 #include <math.h>
11678 int main() {
11679  _copysign(0, 0);
11680 ; return 0; }
11681 EOF
11682 if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11683   rm -rf conftest*
11684   glibcpp_cv_func__copysign_use=yes
11685 else
11686   echo "configure: failed program was:" >&5
11687   cat conftest.$ac_ext >&5
11688   rm -rf conftest*
11689   glibcpp_cv_func__copysign_use=no
11690 fi
11691 rm -f conftest*
11692       ac_ext=c
11693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11694 ac_cpp='$CPP $CPPFLAGS'
11695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11697 cross_compiling=$ac_cv_prog_cc_cross
11698
11699     
11700 fi
11701
11702   fi
11703   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11704
11705     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11706       for ac_func in _copysign
11707 do
11708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11709 echo "configure:11710: checking for $ac_func" >&5
11710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11711   echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713   cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717     which can conflict with char $ac_func(); below.  */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error.  */
11720 /* We use char because int might match the return type of a gcc2
11721     builtin and then its argument prototype would still apply.  */
11722 char $ac_func();
11723
11724 int main() {
11725
11726 /* The GNU C library defines this for functions which it implements
11727     to always fail with ENOSYS.  Some functions are actually named
11728     something starting with __ and the normal name is an alias.  */
11729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11730 choke me
11731 #else
11732 $ac_func();
11733 #endif
11734
11735 ; return 0; }
11736 EOF
11737 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11738   rm -rf conftest*
11739   eval "ac_cv_func_$ac_func=yes"
11740 else
11741   echo "configure: failed program was:" >&5
11742   cat conftest.$ac_ext >&5
11743   rm -rf conftest*
11744   eval "ac_cv_func_$ac_func=no"
11745 fi
11746 rm -f conftest*
11747 fi
11748
11749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11750   echo "$ac_t""yes" 1>&6
11751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11752   cat >> confdefs.h <<EOF
11753 #define $ac_tr_func 1
11754 EOF
11755  
11756 else
11757   echo "$ac_t""no" 1>&6
11758 fi
11759 done
11760
11761     fi
11762   fi
11763
11764   
11765   
11766   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11767 echo "configure:11768: checking for sincos declaration" >&5
11768   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11769     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11770   echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11772   
11773       
11774       ac_ext=C
11775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11776 ac_cpp='$CXXCPP $CPPFLAGS'
11777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11779 cross_compiling=$ac_cv_prog_cxx_cross
11780
11781       cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 #include <math.h>
11785 int main() {
11786  sincos(0, 0, 0);
11787 ; return 0; }
11788 EOF
11789 if { (eval echo configure:11790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11790   rm -rf conftest*
11791   glibcpp_cv_func_sincos_use=yes
11792 else
11793   echo "configure: failed program was:" >&5
11794   cat conftest.$ac_ext >&5
11795   rm -rf conftest*
11796   glibcpp_cv_func_sincos_use=no
11797 fi
11798 rm -f conftest*
11799       ac_ext=c
11800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11804 cross_compiling=$ac_cv_prog_cc_cross
11805
11806     
11807 fi
11808
11809   fi
11810   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11811
11812   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11813     for ac_func in sincos
11814 do
11815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11816 echo "configure:11817: checking for $ac_func" >&5
11817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11818   echo $ac_n "(cached) $ac_c" 1>&6
11819 else
11820   cat > conftest.$ac_ext <<EOF
11821 #line 11822 "configure"
11822 #include "confdefs.h"
11823 /* System header to define __stub macros and hopefully few prototypes,
11824     which can conflict with char $ac_func(); below.  */
11825 #include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error.  */
11827 /* We use char because int might match the return type of a gcc2
11828     builtin and then its argument prototype would still apply.  */
11829 char $ac_func();
11830
11831 int main() {
11832
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11837 choke me
11838 #else
11839 $ac_func();
11840 #endif
11841
11842 ; return 0; }
11843 EOF
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845   rm -rf conftest*
11846   eval "ac_cv_func_$ac_func=yes"
11847 else
11848   echo "configure: failed program was:" >&5
11849   cat conftest.$ac_ext >&5
11850   rm -rf conftest*
11851   eval "ac_cv_func_$ac_func=no"
11852 fi
11853 rm -f conftest*
11854 fi
11855
11856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11857   echo "$ac_t""yes" 1>&6
11858     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11859   cat >> confdefs.h <<EOF
11860 #define $ac_tr_func 1
11861 EOF
11862  
11863 else
11864   echo "$ac_t""no" 1>&6
11865 fi
11866 done
11867
11868   else
11869     
11870   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11871 echo "configure:11872: checking for _sincos declaration" >&5
11872   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11873     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11874   echo $ac_n "(cached) $ac_c" 1>&6
11875 else
11876   
11877       
11878       ac_ext=C
11879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11880 ac_cpp='$CXXCPP $CPPFLAGS'
11881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11883 cross_compiling=$ac_cv_prog_cxx_cross
11884
11885       cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 #include <math.h>
11889 int main() {
11890  _sincos(0, 0, 0);
11891 ; return 0; }
11892 EOF
11893 if { (eval echo configure:11894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11894   rm -rf conftest*
11895   glibcpp_cv_func__sincos_use=yes
11896 else
11897   echo "configure: failed program was:" >&5
11898   cat conftest.$ac_ext >&5
11899   rm -rf conftest*
11900   glibcpp_cv_func__sincos_use=no
11901 fi
11902 rm -f conftest*
11903       ac_ext=c
11904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11908 cross_compiling=$ac_cv_prog_cc_cross
11909
11910     
11911 fi
11912
11913   fi
11914   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11915
11916     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11917       for ac_func in _sincos
11918 do
11919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11920 echo "configure:11921: checking for $ac_func" >&5
11921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11922   echo $ac_n "(cached) $ac_c" 1>&6
11923 else
11924   cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure"
11926 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes,
11928     which can conflict with char $ac_func(); below.  */
11929 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error.  */
11931 /* We use char because int might match the return type of a gcc2
11932     builtin and then its argument prototype would still apply.  */
11933 char $ac_func();
11934
11935 int main() {
11936
11937 /* The GNU C library defines this for functions which it implements
11938     to always fail with ENOSYS.  Some functions are actually named
11939     something starting with __ and the normal name is an alias.  */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 $ac_func();
11944 #endif
11945
11946 ; return 0; }
11947 EOF
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11949   rm -rf conftest*
11950   eval "ac_cv_func_$ac_func=yes"
11951 else
11952   echo "configure: failed program was:" >&5
11953   cat conftest.$ac_ext >&5
11954   rm -rf conftest*
11955   eval "ac_cv_func_$ac_func=no"
11956 fi
11957 rm -f conftest*
11958 fi
11959
11960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11961   echo "$ac_t""yes" 1>&6
11962     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11963   cat >> confdefs.h <<EOF
11964 #define $ac_tr_func 1
11965 EOF
11966  
11967 else
11968   echo "$ac_t""no" 1>&6
11969 fi
11970 done
11971
11972     fi
11973   fi
11974
11975   
11976   
11977   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11978 echo "configure:11979: checking for fpclass declaration" >&5
11979   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11980     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11981   echo $ac_n "(cached) $ac_c" 1>&6
11982 else
11983   
11984       
11985       ac_ext=C
11986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11987 ac_cpp='$CXXCPP $CPPFLAGS'
11988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11990 cross_compiling=$ac_cv_prog_cxx_cross
11991
11992       cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 #include <math.h>
11996                       #ifdef HAVE_IEEEFP_H
11997                       #include <ieeefp.h>
11998                       #endif
11999                      
12000 int main() {
12001  fpclass(0);
12002 ; return 0; }
12003 EOF
12004 if { (eval echo configure:12005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12005   rm -rf conftest*
12006   glibcpp_cv_func_fpclass_use=yes
12007 else
12008   echo "configure: failed program was:" >&5
12009   cat conftest.$ac_ext >&5
12010   rm -rf conftest*
12011   glibcpp_cv_func_fpclass_use=no
12012 fi
12013 rm -f conftest*
12014       ac_ext=c
12015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12016 ac_cpp='$CPP $CPPFLAGS'
12017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12019 cross_compiling=$ac_cv_prog_cc_cross
12020
12021     
12022 fi
12023
12024   fi
12025   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12026
12027   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12028     for ac_func in fpclass
12029 do
12030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12031 echo "configure:12032: checking for $ac_func" >&5
12032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12033   echo $ac_n "(cached) $ac_c" 1>&6
12034 else
12035   cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* System header to define __stub macros and hopefully few prototypes,
12039     which can conflict with char $ac_func(); below.  */
12040 #include <assert.h>
12041 /* Override any gcc2 internal prototype to avoid an error.  */
12042 /* We use char because int might match the return type of a gcc2
12043     builtin and then its argument prototype would still apply.  */
12044 char $ac_func();
12045
12046 int main() {
12047
12048 /* The GNU C library defines this for functions which it implements
12049     to always fail with ENOSYS.  Some functions are actually named
12050     something starting with __ and the normal name is an alias.  */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12052 choke me
12053 #else
12054 $ac_func();
12055 #endif
12056
12057 ; return 0; }
12058 EOF
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060   rm -rf conftest*
12061   eval "ac_cv_func_$ac_func=yes"
12062 else
12063   echo "configure: failed program was:" >&5
12064   cat conftest.$ac_ext >&5
12065   rm -rf conftest*
12066   eval "ac_cv_func_$ac_func=no"
12067 fi
12068 rm -f conftest*
12069 fi
12070
12071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12072   echo "$ac_t""yes" 1>&6
12073     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12074   cat >> confdefs.h <<EOF
12075 #define $ac_tr_func 1
12076 EOF
12077  
12078 else
12079   echo "$ac_t""no" 1>&6
12080 fi
12081 done
12082
12083   else
12084     
12085   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12086 echo "configure:12087: checking for _fpclass declaration" >&5
12087   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12088     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12089   echo $ac_n "(cached) $ac_c" 1>&6
12090 else
12091   
12092       
12093       ac_ext=C
12094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12095 ac_cpp='$CXXCPP $CPPFLAGS'
12096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12098 cross_compiling=$ac_cv_prog_cxx_cross
12099
12100       cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 #include <math.h>
12104                       #ifdef HAVE_IEEEFP_H
12105                       #include <ieeefp.h>
12106                       #endif
12107                      
12108 int main() {
12109  _fpclass(0);
12110 ; return 0; }
12111 EOF
12112 if { (eval echo configure:12113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12113   rm -rf conftest*
12114   glibcpp_cv_func__fpclass_use=yes
12115 else
12116   echo "configure: failed program was:" >&5
12117   cat conftest.$ac_ext >&5
12118   rm -rf conftest*
12119   glibcpp_cv_func__fpclass_use=no
12120 fi
12121 rm -f conftest*
12122       ac_ext=c
12123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12124 ac_cpp='$CPP $CPPFLAGS'
12125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12127 cross_compiling=$ac_cv_prog_cc_cross
12128
12129     
12130 fi
12131
12132   fi
12133   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12134
12135     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12136       for ac_func in _fpclass
12137 do
12138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12139 echo "configure:12140: checking for $ac_func" >&5
12140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12141   echo $ac_n "(cached) $ac_c" 1>&6
12142 else
12143   cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* System header to define __stub macros and hopefully few prototypes,
12147     which can conflict with char $ac_func(); below.  */
12148 #include <assert.h>
12149 /* Override any gcc2 internal prototype to avoid an error.  */
12150 /* We use char because int might match the return type of a gcc2
12151     builtin and then its argument prototype would still apply.  */
12152 char $ac_func();
12153
12154 int main() {
12155
12156 /* The GNU C library defines this for functions which it implements
12157     to always fail with ENOSYS.  Some functions are actually named
12158     something starting with __ and the normal name is an alias.  */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 choke me
12161 #else
12162 $ac_func();
12163 #endif
12164
12165 ; return 0; }
12166 EOF
12167 if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12168   rm -rf conftest*
12169   eval "ac_cv_func_$ac_func=yes"
12170 else
12171   echo "configure: failed program was:" >&5
12172   cat conftest.$ac_ext >&5
12173   rm -rf conftest*
12174   eval "ac_cv_func_$ac_func=no"
12175 fi
12176 rm -f conftest*
12177 fi
12178
12179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12180   echo "$ac_t""yes" 1>&6
12181     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12182   cat >> confdefs.h <<EOF
12183 #define $ac_tr_func 1
12184 EOF
12185  
12186 else
12187   echo "$ac_t""no" 1>&6
12188 fi
12189 done
12190
12191     fi
12192   fi
12193
12194   
12195   
12196   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12197 echo "configure:12198: checking for qfpclass declaration" >&5
12198   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12199     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12200   echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12202   
12203       
12204       ac_ext=C
12205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12206 ac_cpp='$CXXCPP $CPPFLAGS'
12207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12209 cross_compiling=$ac_cv_prog_cxx_cross
12210
12211       cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 #include <math.h>
12215                       #ifdef HAVE_IEEEFP_H
12216                       #include <ieeefp.h>
12217                       #endif
12218                      
12219 int main() {
12220  qfpclass(0);
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12224   rm -rf conftest*
12225   glibcpp_cv_func_qfpclass_use=yes
12226 else
12227   echo "configure: failed program was:" >&5
12228   cat conftest.$ac_ext >&5
12229   rm -rf conftest*
12230   glibcpp_cv_func_qfpclass_use=no
12231 fi
12232 rm -f conftest*
12233       ac_ext=c
12234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12235 ac_cpp='$CPP $CPPFLAGS'
12236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12238 cross_compiling=$ac_cv_prog_cc_cross
12239
12240     
12241 fi
12242
12243   fi
12244   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12245
12246   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12247     for ac_func in qfpclass
12248 do
12249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12250 echo "configure:12251: checking for $ac_func" >&5
12251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12252   echo $ac_n "(cached) $ac_c" 1>&6
12253 else
12254   cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 /* System header to define __stub macros and hopefully few prototypes,
12258     which can conflict with char $ac_func(); below.  */
12259 #include <assert.h>
12260 /* Override any gcc2 internal prototype to avoid an error.  */
12261 /* We use char because int might match the return type of a gcc2
12262     builtin and then its argument prototype would still apply.  */
12263 char $ac_func();
12264
12265 int main() {
12266
12267 /* The GNU C library defines this for functions which it implements
12268     to always fail with ENOSYS.  Some functions are actually named
12269     something starting with __ and the normal name is an alias.  */
12270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12271 choke me
12272 #else
12273 $ac_func();
12274 #endif
12275
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12279   rm -rf conftest*
12280   eval "ac_cv_func_$ac_func=yes"
12281 else
12282   echo "configure: failed program was:" >&5
12283   cat conftest.$ac_ext >&5
12284   rm -rf conftest*
12285   eval "ac_cv_func_$ac_func=no"
12286 fi
12287 rm -f conftest*
12288 fi
12289
12290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12291   echo "$ac_t""yes" 1>&6
12292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12293   cat >> confdefs.h <<EOF
12294 #define $ac_tr_func 1
12295 EOF
12296  
12297 else
12298   echo "$ac_t""no" 1>&6
12299 fi
12300 done
12301
12302   else
12303     
12304   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12305 echo "configure:12306: checking for _qfpclass declaration" >&5
12306   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12307     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12308   echo $ac_n "(cached) $ac_c" 1>&6
12309 else
12310   
12311       
12312       ac_ext=C
12313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12314 ac_cpp='$CXXCPP $CPPFLAGS'
12315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12317 cross_compiling=$ac_cv_prog_cxx_cross
12318
12319       cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 #include <math.h>
12323                       #ifdef HAVE_IEEEFP_H
12324                       #include <ieeefp.h>
12325                       #endif
12326                      
12327 int main() {
12328  _qfpclass(0);
12329 ; return 0; }
12330 EOF
12331 if { (eval echo configure:12332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12332   rm -rf conftest*
12333   glibcpp_cv_func__qfpclass_use=yes
12334 else
12335   echo "configure: failed program was:" >&5
12336   cat conftest.$ac_ext >&5
12337   rm -rf conftest*
12338   glibcpp_cv_func__qfpclass_use=no
12339 fi
12340 rm -f conftest*
12341       ac_ext=c
12342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12343 ac_cpp='$CPP $CPPFLAGS'
12344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12346 cross_compiling=$ac_cv_prog_cc_cross
12347
12348     
12349 fi
12350
12351   fi
12352   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12353
12354     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12355       for ac_func in _qfpclass
12356 do
12357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12358 echo "configure:12359: checking for $ac_func" >&5
12359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12360   echo $ac_n "(cached) $ac_c" 1>&6
12361 else
12362   cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 /* System header to define __stub macros and hopefully few prototypes,
12366     which can conflict with char $ac_func(); below.  */
12367 #include <assert.h>
12368 /* Override any gcc2 internal prototype to avoid an error.  */
12369 /* We use char because int might match the return type of a gcc2
12370     builtin and then its argument prototype would still apply.  */
12371 char $ac_func();
12372
12373 int main() {
12374
12375 /* The GNU C library defines this for functions which it implements
12376     to always fail with ENOSYS.  Some functions are actually named
12377     something starting with __ and the normal name is an alias.  */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 $ac_func();
12382 #endif
12383
12384 ; return 0; }
12385 EOF
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387   rm -rf conftest*
12388   eval "ac_cv_func_$ac_func=yes"
12389 else
12390   echo "configure: failed program was:" >&5
12391   cat conftest.$ac_ext >&5
12392   rm -rf conftest*
12393   eval "ac_cv_func_$ac_func=no"
12394 fi
12395 rm -f conftest*
12396 fi
12397
12398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12399   echo "$ac_t""yes" 1>&6
12400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12401   cat >> confdefs.h <<EOF
12402 #define $ac_tr_func 1
12403 EOF
12404  
12405 else
12406   echo "$ac_t""no" 1>&6
12407 fi
12408 done
12409
12410     fi
12411   fi
12412
12413   
12414   
12415   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12416 echo "configure:12417: checking for hypot declaration" >&5
12417   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12418     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12419   echo $ac_n "(cached) $ac_c" 1>&6
12420 else
12421   
12422       
12423       ac_ext=C
12424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12428 cross_compiling=$ac_cv_prog_cxx_cross
12429
12430       cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 #include <math.h>
12434 int main() {
12435  hypot(0, 0);
12436 ; return 0; }
12437 EOF
12438 if { (eval echo configure:12439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12439   rm -rf conftest*
12440   glibcpp_cv_func_hypot_use=yes
12441 else
12442   echo "configure: failed program was:" >&5
12443   cat conftest.$ac_ext >&5
12444   rm -rf conftest*
12445   glibcpp_cv_func_hypot_use=no
12446 fi
12447 rm -f conftest*
12448       ac_ext=c
12449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12450 ac_cpp='$CPP $CPPFLAGS'
12451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12453 cross_compiling=$ac_cv_prog_cc_cross
12454
12455     
12456 fi
12457
12458   fi
12459   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12460
12461   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12462     for ac_func in hypot
12463 do
12464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12465 echo "configure:12466: checking for $ac_func" >&5
12466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12467   echo $ac_n "(cached) $ac_c" 1>&6
12468 else
12469   cat > conftest.$ac_ext <<EOF
12470 #line 12471 "configure"
12471 #include "confdefs.h"
12472 /* System header to define __stub macros and hopefully few prototypes,
12473     which can conflict with char $ac_func(); below.  */
12474 #include <assert.h>
12475 /* Override any gcc2 internal prototype to avoid an error.  */
12476 /* We use char because int might match the return type of a gcc2
12477     builtin and then its argument prototype would still apply.  */
12478 char $ac_func();
12479
12480 int main() {
12481
12482 /* The GNU C library defines this for functions which it implements
12483     to always fail with ENOSYS.  Some functions are actually named
12484     something starting with __ and the normal name is an alias.  */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 $ac_func();
12489 #endif
12490
12491 ; return 0; }
12492 EOF
12493 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12494   rm -rf conftest*
12495   eval "ac_cv_func_$ac_func=yes"
12496 else
12497   echo "configure: failed program was:" >&5
12498   cat conftest.$ac_ext >&5
12499   rm -rf conftest*
12500   eval "ac_cv_func_$ac_func=no"
12501 fi
12502 rm -f conftest*
12503 fi
12504
12505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12506   echo "$ac_t""yes" 1>&6
12507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12508   cat >> confdefs.h <<EOF
12509 #define $ac_tr_func 1
12510 EOF
12511  
12512 else
12513   echo "$ac_t""no" 1>&6
12514 fi
12515 done
12516
12517   else
12518     
12519   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12520 echo "configure:12521: checking for _hypot declaration" >&5
12521   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12522     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12523   echo $ac_n "(cached) $ac_c" 1>&6
12524 else
12525   
12526       
12527       ac_ext=C
12528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12529 ac_cpp='$CXXCPP $CPPFLAGS'
12530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12532 cross_compiling=$ac_cv_prog_cxx_cross
12533
12534       cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 #include <math.h>
12538 int main() {
12539  _hypot(0, 0);
12540 ; return 0; }
12541 EOF
12542 if { (eval echo configure:12543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12543   rm -rf conftest*
12544   glibcpp_cv_func__hypot_use=yes
12545 else
12546   echo "configure: failed program was:" >&5
12547   cat conftest.$ac_ext >&5
12548   rm -rf conftest*
12549   glibcpp_cv_func__hypot_use=no
12550 fi
12551 rm -f conftest*
12552       ac_ext=c
12553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12554 ac_cpp='$CPP $CPPFLAGS'
12555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12557 cross_compiling=$ac_cv_prog_cc_cross
12558
12559     
12560 fi
12561
12562   fi
12563   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12564
12565     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12566       for ac_func in _hypot
12567 do
12568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12569 echo "configure:12570: checking for $ac_func" >&5
12570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12571   echo $ac_n "(cached) $ac_c" 1>&6
12572 else
12573   cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 /* System header to define __stub macros and hopefully few prototypes,
12577     which can conflict with char $ac_func(); below.  */
12578 #include <assert.h>
12579 /* Override any gcc2 internal prototype to avoid an error.  */
12580 /* We use char because int might match the return type of a gcc2
12581     builtin and then its argument prototype would still apply.  */
12582 char $ac_func();
12583
12584 int main() {
12585
12586 /* The GNU C library defines this for functions which it implements
12587     to always fail with ENOSYS.  Some functions are actually named
12588     something starting with __ and the normal name is an alias.  */
12589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12590 choke me
12591 #else
12592 $ac_func();
12593 #endif
12594
12595 ; return 0; }
12596 EOF
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12598   rm -rf conftest*
12599   eval "ac_cv_func_$ac_func=yes"
12600 else
12601   echo "configure: failed program was:" >&5
12602   cat conftest.$ac_ext >&5
12603   rm -rf conftest*
12604   eval "ac_cv_func_$ac_func=no"
12605 fi
12606 rm -f conftest*
12607 fi
12608
12609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12610   echo "$ac_t""yes" 1>&6
12611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12612   cat >> confdefs.h <<EOF
12613 #define $ac_tr_func 1
12614 EOF
12615  
12616 else
12617   echo "$ac_t""no" 1>&6
12618 fi
12619 done
12620
12621     fi
12622   fi
12623
12624
12625     
12626   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12627 echo "configure:12628: checking for float trig functions" >&5
12628   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12629   echo $ac_n "(cached) $ac_c" 1>&6
12630 else
12631   
12632     
12633     ac_ext=C
12634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12635 ac_cpp='$CXXCPP $CPPFLAGS'
12636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12638 cross_compiling=$ac_cv_prog_cxx_cross
12639
12640     cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 #include <math.h>
12644 int main() {
12645  `for x in acosf asinf atanf \
12646                                           cosf sinf tanf \
12647                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12648 ; return 0; }
12649 EOF
12650 if { (eval echo configure:12651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12651   rm -rf conftest*
12652   glibcpp_cv_func_float_trig_use=yes
12653 else
12654   echo "configure: failed program was:" >&5
12655   cat conftest.$ac_ext >&5
12656   rm -rf conftest*
12657   glibcpp_cv_func_float_trig_use=no
12658 fi
12659 rm -f conftest*
12660     ac_ext=c
12661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12665 cross_compiling=$ac_cv_prog_cc_cross
12666
12667 fi
12668
12669   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12670   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12671     for ac_func in acosf asinf atanf \
12672                                           cosf sinf tanf \
12673                                           coshf sinhf tanhf
12674 do
12675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12676 echo "configure:12677: checking for $ac_func" >&5
12677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12678   echo $ac_n "(cached) $ac_c" 1>&6
12679 else
12680   cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12683 /* System header to define __stub macros and hopefully few prototypes,
12684     which can conflict with char $ac_func(); below.  */
12685 #include <assert.h>
12686 /* Override any gcc2 internal prototype to avoid an error.  */
12687 /* We use char because int might match the return type of a gcc2
12688     builtin and then its argument prototype would still apply.  */
12689 char $ac_func();
12690
12691 int main() {
12692
12693 /* The GNU C library defines this for functions which it implements
12694     to always fail with ENOSYS.  Some functions are actually named
12695     something starting with __ and the normal name is an alias.  */
12696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697 choke me
12698 #else
12699 $ac_func();
12700 #endif
12701
12702 ; return 0; }
12703 EOF
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12705   rm -rf conftest*
12706   eval "ac_cv_func_$ac_func=yes"
12707 else
12708   echo "configure: failed program was:" >&5
12709   cat conftest.$ac_ext >&5
12710   rm -rf conftest*
12711   eval "ac_cv_func_$ac_func=no"
12712 fi
12713 rm -f conftest*
12714 fi
12715
12716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12717   echo "$ac_t""yes" 1>&6
12718     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12719   cat >> confdefs.h <<EOF
12720 #define $ac_tr_func 1
12721 EOF
12722  
12723 else
12724   echo "$ac_t""no" 1>&6
12725 fi
12726 done
12727
12728   fi
12729
12730   
12731   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12732 echo "configure:12733: checking for float round functions" >&5
12733   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12734   echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12736   
12737     
12738     ac_ext=C
12739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12740 ac_cpp='$CXXCPP $CPPFLAGS'
12741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12743 cross_compiling=$ac_cv_prog_cxx_cross
12744
12745     cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 #include <math.h>
12749 int main() {
12750  `for x in ceilf floorf; do echo "$x (0);"; done` 
12751 ; return 0; }
12752 EOF
12753 if { (eval echo configure:12754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12754   rm -rf conftest*
12755   glibcpp_cv_func_float_round_use=yes
12756 else
12757   echo "configure: failed program was:" >&5
12758   cat conftest.$ac_ext >&5
12759   rm -rf conftest*
12760   glibcpp_cv_func_float_round_use=no
12761 fi
12762 rm -f conftest*
12763     ac_ext=c
12764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12765 ac_cpp='$CPP $CPPFLAGS'
12766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12768 cross_compiling=$ac_cv_prog_cc_cross
12769
12770 fi
12771
12772   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12773   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12774     for ac_func in ceilf floorf
12775 do
12776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12777 echo "configure:12778: checking for $ac_func" >&5
12778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12779   echo $ac_n "(cached) $ac_c" 1>&6
12780 else
12781   cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 /* System header to define __stub macros and hopefully few prototypes,
12785     which can conflict with char $ac_func(); below.  */
12786 #include <assert.h>
12787 /* Override any gcc2 internal prototype to avoid an error.  */
12788 /* We use char because int might match the return type of a gcc2
12789     builtin and then its argument prototype would still apply.  */
12790 char $ac_func();
12791
12792 int main() {
12793
12794 /* The GNU C library defines this for functions which it implements
12795     to always fail with ENOSYS.  Some functions are actually named
12796     something starting with __ and the normal name is an alias.  */
12797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12798 choke me
12799 #else
12800 $ac_func();
12801 #endif
12802
12803 ; return 0; }
12804 EOF
12805 if { (eval echo configure:12806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12806   rm -rf conftest*
12807   eval "ac_cv_func_$ac_func=yes"
12808 else
12809   echo "configure: failed program was:" >&5
12810   cat conftest.$ac_ext >&5
12811   rm -rf conftest*
12812   eval "ac_cv_func_$ac_func=no"
12813 fi
12814 rm -f conftest*
12815 fi
12816
12817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12818   echo "$ac_t""yes" 1>&6
12819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12820   cat >> confdefs.h <<EOF
12821 #define $ac_tr_func 1
12822 EOF
12823  
12824 else
12825   echo "$ac_t""no" 1>&6
12826 fi
12827 done
12828
12829   fi
12830
12831   
12832   
12833   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12834 echo "configure:12835: checking for expf declaration" >&5
12835   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12836     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12837   echo $ac_n "(cached) $ac_c" 1>&6
12838 else
12839   
12840       
12841       ac_ext=C
12842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12843 ac_cpp='$CXXCPP $CPPFLAGS'
12844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12846 cross_compiling=$ac_cv_prog_cxx_cross
12847
12848       cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <math.h>
12852                       #ifdef HAVE_IEEEFP_H
12853                       #include <ieeefp.h>
12854                       #endif
12855                      
12856 int main() {
12857  expf(0);
12858 ; return 0; }
12859 EOF
12860 if { (eval echo configure:12861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12861   rm -rf conftest*
12862   glibcpp_cv_func_expf_use=yes
12863 else
12864   echo "configure: failed program was:" >&5
12865   cat conftest.$ac_ext >&5
12866   rm -rf conftest*
12867   glibcpp_cv_func_expf_use=no
12868 fi
12869 rm -f conftest*
12870       ac_ext=c
12871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12872 ac_cpp='$CPP $CPPFLAGS'
12873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12875 cross_compiling=$ac_cv_prog_cc_cross
12876
12877     
12878 fi
12879
12880   fi
12881   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12882
12883   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12884     for ac_func in expf
12885 do
12886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12887 echo "configure:12888: checking for $ac_func" >&5
12888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12889   echo $ac_n "(cached) $ac_c" 1>&6
12890 else
12891   cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 /* System header to define __stub macros and hopefully few prototypes,
12895     which can conflict with char $ac_func(); below.  */
12896 #include <assert.h>
12897 /* Override any gcc2 internal prototype to avoid an error.  */
12898 /* We use char because int might match the return type of a gcc2
12899     builtin and then its argument prototype would still apply.  */
12900 char $ac_func();
12901
12902 int main() {
12903
12904 /* The GNU C library defines this for functions which it implements
12905     to always fail with ENOSYS.  Some functions are actually named
12906     something starting with __ and the normal name is an alias.  */
12907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12908 choke me
12909 #else
12910 $ac_func();
12911 #endif
12912
12913 ; return 0; }
12914 EOF
12915 if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916   rm -rf conftest*
12917   eval "ac_cv_func_$ac_func=yes"
12918 else
12919   echo "configure: failed program was:" >&5
12920   cat conftest.$ac_ext >&5
12921   rm -rf conftest*
12922   eval "ac_cv_func_$ac_func=no"
12923 fi
12924 rm -f conftest*
12925 fi
12926
12927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12928   echo "$ac_t""yes" 1>&6
12929     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12930   cat >> confdefs.h <<EOF
12931 #define $ac_tr_func 1
12932 EOF
12933  
12934 else
12935   echo "$ac_t""no" 1>&6
12936 fi
12937 done
12938
12939   else
12940     
12941   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12942 echo "configure:12943: checking for _expf declaration" >&5
12943   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12944     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12945   echo $ac_n "(cached) $ac_c" 1>&6
12946 else
12947   
12948       
12949       ac_ext=C
12950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12951 ac_cpp='$CXXCPP $CPPFLAGS'
12952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12954 cross_compiling=$ac_cv_prog_cxx_cross
12955
12956       cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12959 #include <math.h>
12960                       #ifdef HAVE_IEEEFP_H
12961                       #include <ieeefp.h>
12962                       #endif
12963                      
12964 int main() {
12965  _expf(0);
12966 ; return 0; }
12967 EOF
12968 if { (eval echo configure:12969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12969   rm -rf conftest*
12970   glibcpp_cv_func__expf_use=yes
12971 else
12972   echo "configure: failed program was:" >&5
12973   cat conftest.$ac_ext >&5
12974   rm -rf conftest*
12975   glibcpp_cv_func__expf_use=no
12976 fi
12977 rm -f conftest*
12978       ac_ext=c
12979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12980 ac_cpp='$CPP $CPPFLAGS'
12981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12983 cross_compiling=$ac_cv_prog_cc_cross
12984
12985     
12986 fi
12987
12988   fi
12989   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12990
12991     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12992       for ac_func in _expf
12993 do
12994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12995 echo "configure:12996: checking for $ac_func" >&5
12996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12997   echo $ac_n "(cached) $ac_c" 1>&6
12998 else
12999   cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 /* System header to define __stub macros and hopefully few prototypes,
13003     which can conflict with char $ac_func(); below.  */
13004 #include <assert.h>
13005 /* Override any gcc2 internal prototype to avoid an error.  */
13006 /* We use char because int might match the return type of a gcc2
13007     builtin and then its argument prototype would still apply.  */
13008 char $ac_func();
13009
13010 int main() {
13011
13012 /* The GNU C library defines this for functions which it implements
13013     to always fail with ENOSYS.  Some functions are actually named
13014     something starting with __ and the normal name is an alias.  */
13015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13016 choke me
13017 #else
13018 $ac_func();
13019 #endif
13020
13021 ; return 0; }
13022 EOF
13023 if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13024   rm -rf conftest*
13025   eval "ac_cv_func_$ac_func=yes"
13026 else
13027   echo "configure: failed program was:" >&5
13028   cat conftest.$ac_ext >&5
13029   rm -rf conftest*
13030   eval "ac_cv_func_$ac_func=no"
13031 fi
13032 rm -f conftest*
13033 fi
13034
13035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13036   echo "$ac_t""yes" 1>&6
13037     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13038   cat >> confdefs.h <<EOF
13039 #define $ac_tr_func 1
13040 EOF
13041  
13042 else
13043   echo "$ac_t""no" 1>&6
13044 fi
13045 done
13046
13047     fi
13048   fi
13049
13050   
13051   
13052   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13053 echo "configure:13054: checking for isnanf declaration" >&5
13054   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13055     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13056   echo $ac_n "(cached) $ac_c" 1>&6
13057 else
13058   
13059       
13060       ac_ext=C
13061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13062 ac_cpp='$CXXCPP $CPPFLAGS'
13063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13065 cross_compiling=$ac_cv_prog_cxx_cross
13066
13067       cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 #include <math.h>
13071                       #ifdef HAVE_IEEEFP_H
13072                       #include <ieeefp.h>
13073                       #endif
13074                      
13075 int main() {
13076  isnanf(0);
13077 ; return 0; }
13078 EOF
13079 if { (eval echo configure:13080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13080   rm -rf conftest*
13081   glibcpp_cv_func_isnanf_use=yes
13082 else
13083   echo "configure: failed program was:" >&5
13084   cat conftest.$ac_ext >&5
13085   rm -rf conftest*
13086   glibcpp_cv_func_isnanf_use=no
13087 fi
13088 rm -f conftest*
13089       ac_ext=c
13090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13091 ac_cpp='$CPP $CPPFLAGS'
13092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13094 cross_compiling=$ac_cv_prog_cc_cross
13095
13096     
13097 fi
13098
13099   fi
13100   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13101
13102   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13103     for ac_func in isnanf
13104 do
13105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13106 echo "configure:13107: checking for $ac_func" >&5
13107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13108   echo $ac_n "(cached) $ac_c" 1>&6
13109 else
13110   cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13113 /* System header to define __stub macros and hopefully few prototypes,
13114     which can conflict with char $ac_func(); below.  */
13115 #include <assert.h>
13116 /* Override any gcc2 internal prototype to avoid an error.  */
13117 /* We use char because int might match the return type of a gcc2
13118     builtin and then its argument prototype would still apply.  */
13119 char $ac_func();
13120
13121 int main() {
13122
13123 /* The GNU C library defines this for functions which it implements
13124     to always fail with ENOSYS.  Some functions are actually named
13125     something starting with __ and the normal name is an alias.  */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 $ac_func();
13130 #endif
13131
13132 ; return 0; }
13133 EOF
13134 if { (eval echo configure:13135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13135   rm -rf conftest*
13136   eval "ac_cv_func_$ac_func=yes"
13137 else
13138   echo "configure: failed program was:" >&5
13139   cat conftest.$ac_ext >&5
13140   rm -rf conftest*
13141   eval "ac_cv_func_$ac_func=no"
13142 fi
13143 rm -f conftest*
13144 fi
13145
13146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13147   echo "$ac_t""yes" 1>&6
13148     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13149   cat >> confdefs.h <<EOF
13150 #define $ac_tr_func 1
13151 EOF
13152  
13153 else
13154   echo "$ac_t""no" 1>&6
13155 fi
13156 done
13157
13158   else
13159     
13160   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13161 echo "configure:13162: checking for _isnanf declaration" >&5
13162   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13163     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13164   echo $ac_n "(cached) $ac_c" 1>&6
13165 else
13166   
13167       
13168       ac_ext=C
13169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13170 ac_cpp='$CXXCPP $CPPFLAGS'
13171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13173 cross_compiling=$ac_cv_prog_cxx_cross
13174
13175       cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 #include <math.h>
13179                       #ifdef HAVE_IEEEFP_H
13180                       #include <ieeefp.h>
13181                       #endif
13182                      
13183 int main() {
13184  _isnanf(0);
13185 ; return 0; }
13186 EOF
13187 if { (eval echo configure:13188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13188   rm -rf conftest*
13189   glibcpp_cv_func__isnanf_use=yes
13190 else
13191   echo "configure: failed program was:" >&5
13192   cat conftest.$ac_ext >&5
13193   rm -rf conftest*
13194   glibcpp_cv_func__isnanf_use=no
13195 fi
13196 rm -f conftest*
13197       ac_ext=c
13198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13202 cross_compiling=$ac_cv_prog_cc_cross
13203
13204     
13205 fi
13206
13207   fi
13208   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13209
13210     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13211       for ac_func in _isnanf
13212 do
13213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13214 echo "configure:13215: checking for $ac_func" >&5
13215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13216   echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13218   cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 /* System header to define __stub macros and hopefully few prototypes,
13222     which can conflict with char $ac_func(); below.  */
13223 #include <assert.h>
13224 /* Override any gcc2 internal prototype to avoid an error.  */
13225 /* We use char because int might match the return type of a gcc2
13226     builtin and then its argument prototype would still apply.  */
13227 char $ac_func();
13228
13229 int main() {
13230
13231 /* The GNU C library defines this for functions which it implements
13232     to always fail with ENOSYS.  Some functions are actually named
13233     something starting with __ and the normal name is an alias.  */
13234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13235 choke me
13236 #else
13237 $ac_func();
13238 #endif
13239
13240 ; return 0; }
13241 EOF
13242 if { (eval echo configure:13243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13243   rm -rf conftest*
13244   eval "ac_cv_func_$ac_func=yes"
13245 else
13246   echo "configure: failed program was:" >&5
13247   cat conftest.$ac_ext >&5
13248   rm -rf conftest*
13249   eval "ac_cv_func_$ac_func=no"
13250 fi
13251 rm -f conftest*
13252 fi
13253
13254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13255   echo "$ac_t""yes" 1>&6
13256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13257   cat >> confdefs.h <<EOF
13258 #define $ac_tr_func 1
13259 EOF
13260  
13261 else
13262   echo "$ac_t""no" 1>&6
13263 fi
13264 done
13265
13266     fi
13267   fi
13268
13269   
13270   
13271   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13272 echo "configure:13273: checking for isinff declaration" >&5
13273   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13274     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13275   echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277   
13278       
13279       ac_ext=C
13280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13281 ac_cpp='$CXXCPP $CPPFLAGS'
13282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13284 cross_compiling=$ac_cv_prog_cxx_cross
13285
13286       cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13289 #include <math.h>
13290                       #ifdef HAVE_IEEEFP_H
13291                       #include <ieeefp.h>
13292                       #endif
13293                      
13294 int main() {
13295  isinff(0);
13296 ; return 0; }
13297 EOF
13298 if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13299   rm -rf conftest*
13300   glibcpp_cv_func_isinff_use=yes
13301 else
13302   echo "configure: failed program was:" >&5
13303   cat conftest.$ac_ext >&5
13304   rm -rf conftest*
13305   glibcpp_cv_func_isinff_use=no
13306 fi
13307 rm -f conftest*
13308       ac_ext=c
13309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13310 ac_cpp='$CPP $CPPFLAGS'
13311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13313 cross_compiling=$ac_cv_prog_cc_cross
13314
13315     
13316 fi
13317
13318   fi
13319   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13320
13321   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13322     for ac_func in isinff
13323 do
13324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13325 echo "configure:13326: checking for $ac_func" >&5
13326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13327   echo $ac_n "(cached) $ac_c" 1>&6
13328 else
13329   cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* System header to define __stub macros and hopefully few prototypes,
13333     which can conflict with char $ac_func(); below.  */
13334 #include <assert.h>
13335 /* Override any gcc2 internal prototype to avoid an error.  */
13336 /* We use char because int might match the return type of a gcc2
13337     builtin and then its argument prototype would still apply.  */
13338 char $ac_func();
13339
13340 int main() {
13341
13342 /* The GNU C library defines this for functions which it implements
13343     to always fail with ENOSYS.  Some functions are actually named
13344     something starting with __ and the normal name is an alias.  */
13345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13346 choke me
13347 #else
13348 $ac_func();
13349 #endif
13350
13351 ; return 0; }
13352 EOF
13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13354   rm -rf conftest*
13355   eval "ac_cv_func_$ac_func=yes"
13356 else
13357   echo "configure: failed program was:" >&5
13358   cat conftest.$ac_ext >&5
13359   rm -rf conftest*
13360   eval "ac_cv_func_$ac_func=no"
13361 fi
13362 rm -f conftest*
13363 fi
13364
13365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13366   echo "$ac_t""yes" 1>&6
13367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13368   cat >> confdefs.h <<EOF
13369 #define $ac_tr_func 1
13370 EOF
13371  
13372 else
13373   echo "$ac_t""no" 1>&6
13374 fi
13375 done
13376
13377   else
13378     
13379   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13380 echo "configure:13381: checking for _isinff declaration" >&5
13381   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13382     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13383   echo $ac_n "(cached) $ac_c" 1>&6
13384 else
13385   
13386       
13387       ac_ext=C
13388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13389 ac_cpp='$CXXCPP $CPPFLAGS'
13390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13392 cross_compiling=$ac_cv_prog_cxx_cross
13393
13394       cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 #include <math.h>
13398                       #ifdef HAVE_IEEEFP_H
13399                       #include <ieeefp.h>
13400                       #endif
13401                      
13402 int main() {
13403  _isinff(0);
13404 ; return 0; }
13405 EOF
13406 if { (eval echo configure:13407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13407   rm -rf conftest*
13408   glibcpp_cv_func__isinff_use=yes
13409 else
13410   echo "configure: failed program was:" >&5
13411   cat conftest.$ac_ext >&5
13412   rm -rf conftest*
13413   glibcpp_cv_func__isinff_use=no
13414 fi
13415 rm -f conftest*
13416       ac_ext=c
13417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CPP $CPPFLAGS'
13419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cc_cross
13422
13423     
13424 fi
13425
13426   fi
13427   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13428
13429     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13430       for ac_func in _isinff
13431 do
13432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13433 echo "configure:13434: checking for $ac_func" >&5
13434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13435   echo $ac_n "(cached) $ac_c" 1>&6
13436 else
13437   cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 /* System header to define __stub macros and hopefully few prototypes,
13441     which can conflict with char $ac_func(); below.  */
13442 #include <assert.h>
13443 /* Override any gcc2 internal prototype to avoid an error.  */
13444 /* We use char because int might match the return type of a gcc2
13445     builtin and then its argument prototype would still apply.  */
13446 char $ac_func();
13447
13448 int main() {
13449
13450 /* The GNU C library defines this for functions which it implements
13451     to always fail with ENOSYS.  Some functions are actually named
13452     something starting with __ and the normal name is an alias.  */
13453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13454 choke me
13455 #else
13456 $ac_func();
13457 #endif
13458
13459 ; return 0; }
13460 EOF
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13462   rm -rf conftest*
13463   eval "ac_cv_func_$ac_func=yes"
13464 else
13465   echo "configure: failed program was:" >&5
13466   cat conftest.$ac_ext >&5
13467   rm -rf conftest*
13468   eval "ac_cv_func_$ac_func=no"
13469 fi
13470 rm -f conftest*
13471 fi
13472
13473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13474   echo "$ac_t""yes" 1>&6
13475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13476   cat >> confdefs.h <<EOF
13477 #define $ac_tr_func 1
13478 EOF
13479  
13480 else
13481   echo "$ac_t""no" 1>&6
13482 fi
13483 done
13484
13485     fi
13486   fi
13487
13488   
13489   
13490   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13491 echo "configure:13492: checking for atan2f declaration" >&5
13492   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13493     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13494   echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13496   
13497       
13498       ac_ext=C
13499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13500 ac_cpp='$CXXCPP $CPPFLAGS'
13501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13503 cross_compiling=$ac_cv_prog_cxx_cross
13504
13505       cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <math.h>
13509 int main() {
13510  atan2f(0, 0);
13511 ; return 0; }
13512 EOF
13513 if { (eval echo configure:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13514   rm -rf conftest*
13515   glibcpp_cv_func_atan2f_use=yes
13516 else
13517   echo "configure: failed program was:" >&5
13518   cat conftest.$ac_ext >&5
13519   rm -rf conftest*
13520   glibcpp_cv_func_atan2f_use=no
13521 fi
13522 rm -f conftest*
13523       ac_ext=c
13524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cc_cross
13529
13530     
13531 fi
13532
13533   fi
13534   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13535
13536   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13537     for ac_func in atan2f
13538 do
13539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13540 echo "configure:13541: checking for $ac_func" >&5
13541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13542   echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13544   cat > conftest.$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13547 /* System header to define __stub macros and hopefully few prototypes,
13548     which can conflict with char $ac_func(); below.  */
13549 #include <assert.h>
13550 /* Override any gcc2 internal prototype to avoid an error.  */
13551 /* We use char because int might match the return type of a gcc2
13552     builtin and then its argument prototype would still apply.  */
13553 char $ac_func();
13554
13555 int main() {
13556
13557 /* The GNU C library defines this for functions which it implements
13558     to always fail with ENOSYS.  Some functions are actually named
13559     something starting with __ and the normal name is an alias.  */
13560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13561 choke me
13562 #else
13563 $ac_func();
13564 #endif
13565
13566 ; return 0; }
13567 EOF
13568 if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13569   rm -rf conftest*
13570   eval "ac_cv_func_$ac_func=yes"
13571 else
13572   echo "configure: failed program was:" >&5
13573   cat conftest.$ac_ext >&5
13574   rm -rf conftest*
13575   eval "ac_cv_func_$ac_func=no"
13576 fi
13577 rm -f conftest*
13578 fi
13579
13580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13581   echo "$ac_t""yes" 1>&6
13582     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13583   cat >> confdefs.h <<EOF
13584 #define $ac_tr_func 1
13585 EOF
13586  
13587 else
13588   echo "$ac_t""no" 1>&6
13589 fi
13590 done
13591
13592   else
13593     
13594   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13595 echo "configure:13596: checking for _atan2f declaration" >&5
13596   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13597     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13598   echo $ac_n "(cached) $ac_c" 1>&6
13599 else
13600   
13601       
13602       ac_ext=C
13603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13604 ac_cpp='$CXXCPP $CPPFLAGS'
13605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13607 cross_compiling=$ac_cv_prog_cxx_cross
13608
13609       cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 #include <math.h>
13613 int main() {
13614  _atan2f(0, 0);
13615 ; return 0; }
13616 EOF
13617 if { (eval echo configure:13618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13618   rm -rf conftest*
13619   glibcpp_cv_func__atan2f_use=yes
13620 else
13621   echo "configure: failed program was:" >&5
13622   cat conftest.$ac_ext >&5
13623   rm -rf conftest*
13624   glibcpp_cv_func__atan2f_use=no
13625 fi
13626 rm -f conftest*
13627       ac_ext=c
13628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13629 ac_cpp='$CPP $CPPFLAGS'
13630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13632 cross_compiling=$ac_cv_prog_cc_cross
13633
13634     
13635 fi
13636
13637   fi
13638   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13639
13640     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13641       for ac_func in _atan2f
13642 do
13643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13644 echo "configure:13645: checking for $ac_func" >&5
13645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13646   echo $ac_n "(cached) $ac_c" 1>&6
13647 else
13648   cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure"
13650 #include "confdefs.h"
13651 /* System header to define __stub macros and hopefully few prototypes,
13652     which can conflict with char $ac_func(); below.  */
13653 #include <assert.h>
13654 /* Override any gcc2 internal prototype to avoid an error.  */
13655 /* We use char because int might match the return type of a gcc2
13656     builtin and then its argument prototype would still apply.  */
13657 char $ac_func();
13658
13659 int main() {
13660
13661 /* The GNU C library defines this for functions which it implements
13662     to always fail with ENOSYS.  Some functions are actually named
13663     something starting with __ and the normal name is an alias.  */
13664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13665 choke me
13666 #else
13667 $ac_func();
13668 #endif
13669
13670 ; return 0; }
13671 EOF
13672 if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13673   rm -rf conftest*
13674   eval "ac_cv_func_$ac_func=yes"
13675 else
13676   echo "configure: failed program was:" >&5
13677   cat conftest.$ac_ext >&5
13678   rm -rf conftest*
13679   eval "ac_cv_func_$ac_func=no"
13680 fi
13681 rm -f conftest*
13682 fi
13683
13684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13685   echo "$ac_t""yes" 1>&6
13686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13687   cat >> confdefs.h <<EOF
13688 #define $ac_tr_func 1
13689 EOF
13690  
13691 else
13692   echo "$ac_t""no" 1>&6
13693 fi
13694 done
13695
13696     fi
13697   fi
13698
13699   
13700   
13701   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13702 echo "configure:13703: checking for fabsf declaration" >&5
13703   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13704     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13705   echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13707   
13708       
13709       ac_ext=C
13710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13711 ac_cpp='$CXXCPP $CPPFLAGS'
13712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13714 cross_compiling=$ac_cv_prog_cxx_cross
13715
13716       cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <math.h>
13720                       #ifdef HAVE_IEEEFP_H
13721                       #include <ieeefp.h>
13722                       #endif
13723                      
13724 int main() {
13725  fabsf(0);
13726 ; return 0; }
13727 EOF
13728 if { (eval echo configure:13729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13729   rm -rf conftest*
13730   glibcpp_cv_func_fabsf_use=yes
13731 else
13732   echo "configure: failed program was:" >&5
13733   cat conftest.$ac_ext >&5
13734   rm -rf conftest*
13735   glibcpp_cv_func_fabsf_use=no
13736 fi
13737 rm -f conftest*
13738       ac_ext=c
13739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13743 cross_compiling=$ac_cv_prog_cc_cross
13744
13745     
13746 fi
13747
13748   fi
13749   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13750
13751   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13752     for ac_func in fabsf
13753 do
13754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13755 echo "configure:13756: checking for $ac_func" >&5
13756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13757   echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759   cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* System header to define __stub macros and hopefully few prototypes,
13763     which can conflict with char $ac_func(); below.  */
13764 #include <assert.h>
13765 /* Override any gcc2 internal prototype to avoid an error.  */
13766 /* We use char because int might match the return type of a gcc2
13767     builtin and then its argument prototype would still apply.  */
13768 char $ac_func();
13769
13770 int main() {
13771
13772 /* The GNU C library defines this for functions which it implements
13773     to always fail with ENOSYS.  Some functions are actually named
13774     something starting with __ and the normal name is an alias.  */
13775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13776 choke me
13777 #else
13778 $ac_func();
13779 #endif
13780
13781 ; return 0; }
13782 EOF
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784   rm -rf conftest*
13785   eval "ac_cv_func_$ac_func=yes"
13786 else
13787   echo "configure: failed program was:" >&5
13788   cat conftest.$ac_ext >&5
13789   rm -rf conftest*
13790   eval "ac_cv_func_$ac_func=no"
13791 fi
13792 rm -f conftest*
13793 fi
13794
13795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13796   echo "$ac_t""yes" 1>&6
13797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13798   cat >> confdefs.h <<EOF
13799 #define $ac_tr_func 1
13800 EOF
13801  
13802 else
13803   echo "$ac_t""no" 1>&6
13804 fi
13805 done
13806
13807   else
13808     
13809   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13810 echo "configure:13811: checking for _fabsf declaration" >&5
13811   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13812     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13813   echo $ac_n "(cached) $ac_c" 1>&6
13814 else
13815   
13816       
13817       ac_ext=C
13818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13819 ac_cpp='$CXXCPP $CPPFLAGS'
13820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13822 cross_compiling=$ac_cv_prog_cxx_cross
13823
13824       cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 #include <math.h>
13828                       #ifdef HAVE_IEEEFP_H
13829                       #include <ieeefp.h>
13830                       #endif
13831                      
13832 int main() {
13833  _fabsf(0);
13834 ; return 0; }
13835 EOF
13836 if { (eval echo configure:13837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13837   rm -rf conftest*
13838   glibcpp_cv_func__fabsf_use=yes
13839 else
13840   echo "configure: failed program was:" >&5
13841   cat conftest.$ac_ext >&5
13842   rm -rf conftest*
13843   glibcpp_cv_func__fabsf_use=no
13844 fi
13845 rm -f conftest*
13846       ac_ext=c
13847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cc_cross
13852
13853     
13854 fi
13855
13856   fi
13857   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13858
13859     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13860       for ac_func in _fabsf
13861 do
13862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13863 echo "configure:13864: checking for $ac_func" >&5
13864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13865   echo $ac_n "(cached) $ac_c" 1>&6
13866 else
13867   cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 /* System header to define __stub macros and hopefully few prototypes,
13871     which can conflict with char $ac_func(); below.  */
13872 #include <assert.h>
13873 /* Override any gcc2 internal prototype to avoid an error.  */
13874 /* We use char because int might match the return type of a gcc2
13875     builtin and then its argument prototype would still apply.  */
13876 char $ac_func();
13877
13878 int main() {
13879
13880 /* The GNU C library defines this for functions which it implements
13881     to always fail with ENOSYS.  Some functions are actually named
13882     something starting with __ and the normal name is an alias.  */
13883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13884 choke me
13885 #else
13886 $ac_func();
13887 #endif
13888
13889 ; return 0; }
13890 EOF
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892   rm -rf conftest*
13893   eval "ac_cv_func_$ac_func=yes"
13894 else
13895   echo "configure: failed program was:" >&5
13896   cat conftest.$ac_ext >&5
13897   rm -rf conftest*
13898   eval "ac_cv_func_$ac_func=no"
13899 fi
13900 rm -f conftest*
13901 fi
13902
13903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13904   echo "$ac_t""yes" 1>&6
13905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13906   cat >> confdefs.h <<EOF
13907 #define $ac_tr_func 1
13908 EOF
13909  
13910 else
13911   echo "$ac_t""no" 1>&6
13912 fi
13913 done
13914
13915     fi
13916   fi
13917
13918   
13919   
13920   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13921 echo "configure:13922: checking for fmodf declaration" >&5
13922   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13923     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13924   echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13926   
13927       
13928       ac_ext=C
13929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13930 ac_cpp='$CXXCPP $CPPFLAGS'
13931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13933 cross_compiling=$ac_cv_prog_cxx_cross
13934
13935       cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <math.h>
13939 int main() {
13940  fmodf(0, 0);
13941 ; return 0; }
13942 EOF
13943 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13944   rm -rf conftest*
13945   glibcpp_cv_func_fmodf_use=yes
13946 else
13947   echo "configure: failed program was:" >&5
13948   cat conftest.$ac_ext >&5
13949   rm -rf conftest*
13950   glibcpp_cv_func_fmodf_use=no
13951 fi
13952 rm -f conftest*
13953       ac_ext=c
13954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13958 cross_compiling=$ac_cv_prog_cc_cross
13959
13960     
13961 fi
13962
13963   fi
13964   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13965
13966   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13967     for ac_func in fmodf
13968 do
13969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13970 echo "configure:13971: checking for $ac_func" >&5
13971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13972   echo $ac_n "(cached) $ac_c" 1>&6
13973 else
13974   cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* System header to define __stub macros and hopefully few prototypes,
13978     which can conflict with char $ac_func(); below.  */
13979 #include <assert.h>
13980 /* Override any gcc2 internal prototype to avoid an error.  */
13981 /* We use char because int might match the return type of a gcc2
13982     builtin and then its argument prototype would still apply.  */
13983 char $ac_func();
13984
13985 int main() {
13986
13987 /* The GNU C library defines this for functions which it implements
13988     to always fail with ENOSYS.  Some functions are actually named
13989     something starting with __ and the normal name is an alias.  */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 choke me
13992 #else
13993 $ac_func();
13994 #endif
13995
13996 ; return 0; }
13997 EOF
13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13999   rm -rf conftest*
14000   eval "ac_cv_func_$ac_func=yes"
14001 else
14002   echo "configure: failed program was:" >&5
14003   cat conftest.$ac_ext >&5
14004   rm -rf conftest*
14005   eval "ac_cv_func_$ac_func=no"
14006 fi
14007 rm -f conftest*
14008 fi
14009
14010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14011   echo "$ac_t""yes" 1>&6
14012     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14013   cat >> confdefs.h <<EOF
14014 #define $ac_tr_func 1
14015 EOF
14016  
14017 else
14018   echo "$ac_t""no" 1>&6
14019 fi
14020 done
14021
14022   else
14023     
14024   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14025 echo "configure:14026: checking for _fmodf declaration" >&5
14026   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14027     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14028   echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14030   
14031       
14032       ac_ext=C
14033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14034 ac_cpp='$CXXCPP $CPPFLAGS'
14035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14037 cross_compiling=$ac_cv_prog_cxx_cross
14038
14039       cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 #include <math.h>
14043 int main() {
14044  _fmodf(0, 0);
14045 ; return 0; }
14046 EOF
14047 if { (eval echo configure:14048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14048   rm -rf conftest*
14049   glibcpp_cv_func__fmodf_use=yes
14050 else
14051   echo "configure: failed program was:" >&5
14052   cat conftest.$ac_ext >&5
14053   rm -rf conftest*
14054   glibcpp_cv_func__fmodf_use=no
14055 fi
14056 rm -f conftest*
14057       ac_ext=c
14058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CPP $CPPFLAGS'
14060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cc_cross
14063
14064     
14065 fi
14066
14067   fi
14068   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14069
14070     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14071       for ac_func in _fmodf
14072 do
14073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14074 echo "configure:14075: checking for $ac_func" >&5
14075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076   echo $ac_n "(cached) $ac_c" 1>&6
14077 else
14078   cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* System header to define __stub macros and hopefully few prototypes,
14082     which can conflict with char $ac_func(); below.  */
14083 #include <assert.h>
14084 /* Override any gcc2 internal prototype to avoid an error.  */
14085 /* We use char because int might match the return type of a gcc2
14086     builtin and then its argument prototype would still apply.  */
14087 char $ac_func();
14088
14089 int main() {
14090
14091 /* The GNU C library defines this for functions which it implements
14092     to always fail with ENOSYS.  Some functions are actually named
14093     something starting with __ and the normal name is an alias.  */
14094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14095 choke me
14096 #else
14097 $ac_func();
14098 #endif
14099
14100 ; return 0; }
14101 EOF
14102 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14103   rm -rf conftest*
14104   eval "ac_cv_func_$ac_func=yes"
14105 else
14106   echo "configure: failed program was:" >&5
14107   cat conftest.$ac_ext >&5
14108   rm -rf conftest*
14109   eval "ac_cv_func_$ac_func=no"
14110 fi
14111 rm -f conftest*
14112 fi
14113
14114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14115   echo "$ac_t""yes" 1>&6
14116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14117   cat >> confdefs.h <<EOF
14118 #define $ac_tr_func 1
14119 EOF
14120  
14121 else
14122   echo "$ac_t""no" 1>&6
14123 fi
14124 done
14125
14126     fi
14127   fi
14128
14129   
14130   
14131   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14132 echo "configure:14133: checking for frexpf declaration" >&5
14133   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14134     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14135   echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14137   
14138       
14139       ac_ext=C
14140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14141 ac_cpp='$CXXCPP $CPPFLAGS'
14142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14144 cross_compiling=$ac_cv_prog_cxx_cross
14145
14146       cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 #include <math.h>
14150 int main() {
14151  frexpf(0, 0);
14152 ; return 0; }
14153 EOF
14154 if { (eval echo configure:14155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14155   rm -rf conftest*
14156   glibcpp_cv_func_frexpf_use=yes
14157 else
14158   echo "configure: failed program was:" >&5
14159   cat conftest.$ac_ext >&5
14160   rm -rf conftest*
14161   glibcpp_cv_func_frexpf_use=no
14162 fi
14163 rm -f conftest*
14164       ac_ext=c
14165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14166 ac_cpp='$CPP $CPPFLAGS'
14167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14169 cross_compiling=$ac_cv_prog_cc_cross
14170
14171     
14172 fi
14173
14174   fi
14175   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14176
14177   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14178     for ac_func in frexpf
14179 do
14180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14181 echo "configure:14182: checking for $ac_func" >&5
14182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14183   echo $ac_n "(cached) $ac_c" 1>&6
14184 else
14185   cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189     which can conflict with char $ac_func(); below.  */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error.  */
14192 /* We use char because int might match the return type of a gcc2
14193     builtin and then its argument prototype would still apply.  */
14194 char $ac_func();
14195
14196 int main() {
14197
14198 /* The GNU C library defines this for functions which it implements
14199     to always fail with ENOSYS.  Some functions are actually named
14200     something starting with __ and the normal name is an alias.  */
14201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14202 choke me
14203 #else
14204 $ac_func();
14205 #endif
14206
14207 ; return 0; }
14208 EOF
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210   rm -rf conftest*
14211   eval "ac_cv_func_$ac_func=yes"
14212 else
14213   echo "configure: failed program was:" >&5
14214   cat conftest.$ac_ext >&5
14215   rm -rf conftest*
14216   eval "ac_cv_func_$ac_func=no"
14217 fi
14218 rm -f conftest*
14219 fi
14220
14221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14222   echo "$ac_t""yes" 1>&6
14223     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14224   cat >> confdefs.h <<EOF
14225 #define $ac_tr_func 1
14226 EOF
14227  
14228 else
14229   echo "$ac_t""no" 1>&6
14230 fi
14231 done
14232
14233   else
14234     
14235   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14236 echo "configure:14237: checking for _frexpf declaration" >&5
14237   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14238     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14239   echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14241   
14242       
14243       ac_ext=C
14244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14245 ac_cpp='$CXXCPP $CPPFLAGS'
14246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14248 cross_compiling=$ac_cv_prog_cxx_cross
14249
14250       cat > conftest.$ac_ext <<EOF
14251 #line 14252 "configure"
14252 #include "confdefs.h"
14253 #include <math.h>
14254 int main() {
14255  _frexpf(0, 0);
14256 ; return 0; }
14257 EOF
14258 if { (eval echo configure:14259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14259   rm -rf conftest*
14260   glibcpp_cv_func__frexpf_use=yes
14261 else
14262   echo "configure: failed program was:" >&5
14263   cat conftest.$ac_ext >&5
14264   rm -rf conftest*
14265   glibcpp_cv_func__frexpf_use=no
14266 fi
14267 rm -f conftest*
14268       ac_ext=c
14269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CPP $CPPFLAGS'
14271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cc_cross
14274
14275     
14276 fi
14277
14278   fi
14279   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14280
14281     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14282       for ac_func in _frexpf
14283 do
14284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14285 echo "configure:14286: checking for $ac_func" >&5
14286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14287   echo $ac_n "(cached) $ac_c" 1>&6
14288 else
14289   cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 /* System header to define __stub macros and hopefully few prototypes,
14293     which can conflict with char $ac_func(); below.  */
14294 #include <assert.h>
14295 /* Override any gcc2 internal prototype to avoid an error.  */
14296 /* We use char because int might match the return type of a gcc2
14297     builtin and then its argument prototype would still apply.  */
14298 char $ac_func();
14299
14300 int main() {
14301
14302 /* The GNU C library defines this for functions which it implements
14303     to always fail with ENOSYS.  Some functions are actually named
14304     something starting with __ and the normal name is an alias.  */
14305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14306 choke me
14307 #else
14308 $ac_func();
14309 #endif
14310
14311 ; return 0; }
14312 EOF
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314   rm -rf conftest*
14315   eval "ac_cv_func_$ac_func=yes"
14316 else
14317   echo "configure: failed program was:" >&5
14318   cat conftest.$ac_ext >&5
14319   rm -rf conftest*
14320   eval "ac_cv_func_$ac_func=no"
14321 fi
14322 rm -f conftest*
14323 fi
14324
14325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14326   echo "$ac_t""yes" 1>&6
14327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14328   cat >> confdefs.h <<EOF
14329 #define $ac_tr_func 1
14330 EOF
14331  
14332 else
14333   echo "$ac_t""no" 1>&6
14334 fi
14335 done
14336
14337     fi
14338   fi
14339
14340   
14341   
14342   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14343 echo "configure:14344: checking for hypotf declaration" >&5
14344   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14345     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14346   echo $ac_n "(cached) $ac_c" 1>&6
14347 else
14348   
14349       
14350       ac_ext=C
14351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14352 ac_cpp='$CXXCPP $CPPFLAGS'
14353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14355 cross_compiling=$ac_cv_prog_cxx_cross
14356
14357       cat > conftest.$ac_ext <<EOF
14358 #line 14359 "configure"
14359 #include "confdefs.h"
14360 #include <math.h>
14361 int main() {
14362  hypotf(0, 0);
14363 ; return 0; }
14364 EOF
14365 if { (eval echo configure:14366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14366   rm -rf conftest*
14367   glibcpp_cv_func_hypotf_use=yes
14368 else
14369   echo "configure: failed program was:" >&5
14370   cat conftest.$ac_ext >&5
14371   rm -rf conftest*
14372   glibcpp_cv_func_hypotf_use=no
14373 fi
14374 rm -f conftest*
14375       ac_ext=c
14376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CPP $CPPFLAGS'
14378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cc_cross
14381
14382     
14383 fi
14384
14385   fi
14386   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14387
14388   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14389     for ac_func in hypotf
14390 do
14391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14392 echo "configure:14393: checking for $ac_func" >&5
14393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14394   echo $ac_n "(cached) $ac_c" 1>&6
14395 else
14396   cat > conftest.$ac_ext <<EOF
14397 #line 14398 "configure"
14398 #include "confdefs.h"
14399 /* System header to define __stub macros and hopefully few prototypes,
14400     which can conflict with char $ac_func(); below.  */
14401 #include <assert.h>
14402 /* Override any gcc2 internal prototype to avoid an error.  */
14403 /* We use char because int might match the return type of a gcc2
14404     builtin and then its argument prototype would still apply.  */
14405 char $ac_func();
14406
14407 int main() {
14408
14409 /* The GNU C library defines this for functions which it implements
14410     to always fail with ENOSYS.  Some functions are actually named
14411     something starting with __ and the normal name is an alias.  */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14413 choke me
14414 #else
14415 $ac_func();
14416 #endif
14417
14418 ; return 0; }
14419 EOF
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14421   rm -rf conftest*
14422   eval "ac_cv_func_$ac_func=yes"
14423 else
14424   echo "configure: failed program was:" >&5
14425   cat conftest.$ac_ext >&5
14426   rm -rf conftest*
14427   eval "ac_cv_func_$ac_func=no"
14428 fi
14429 rm -f conftest*
14430 fi
14431
14432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14433   echo "$ac_t""yes" 1>&6
14434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14435   cat >> confdefs.h <<EOF
14436 #define $ac_tr_func 1
14437 EOF
14438  
14439 else
14440   echo "$ac_t""no" 1>&6
14441 fi
14442 done
14443
14444   else
14445     
14446   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14447 echo "configure:14448: checking for _hypotf declaration" >&5
14448   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14449     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14450   echo $ac_n "(cached) $ac_c" 1>&6
14451 else
14452   
14453       
14454       ac_ext=C
14455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14456 ac_cpp='$CXXCPP $CPPFLAGS'
14457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14459 cross_compiling=$ac_cv_prog_cxx_cross
14460
14461       cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14464 #include <math.h>
14465 int main() {
14466  _hypotf(0, 0);
14467 ; return 0; }
14468 EOF
14469 if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14470   rm -rf conftest*
14471   glibcpp_cv_func__hypotf_use=yes
14472 else
14473   echo "configure: failed program was:" >&5
14474   cat conftest.$ac_ext >&5
14475   rm -rf conftest*
14476   glibcpp_cv_func__hypotf_use=no
14477 fi
14478 rm -f conftest*
14479       ac_ext=c
14480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14481 ac_cpp='$CPP $CPPFLAGS'
14482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14484 cross_compiling=$ac_cv_prog_cc_cross
14485
14486     
14487 fi
14488
14489   fi
14490   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14491
14492     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14493       for ac_func in _hypotf
14494 do
14495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14496 echo "configure:14497: checking for $ac_func" >&5
14497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14498   echo $ac_n "(cached) $ac_c" 1>&6
14499 else
14500   cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14503 /* System header to define __stub macros and hopefully few prototypes,
14504     which can conflict with char $ac_func(); below.  */
14505 #include <assert.h>
14506 /* Override any gcc2 internal prototype to avoid an error.  */
14507 /* We use char because int might match the return type of a gcc2
14508     builtin and then its argument prototype would still apply.  */
14509 char $ac_func();
14510
14511 int main() {
14512
14513 /* The GNU C library defines this for functions which it implements
14514     to always fail with ENOSYS.  Some functions are actually named
14515     something starting with __ and the normal name is an alias.  */
14516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14517 choke me
14518 #else
14519 $ac_func();
14520 #endif
14521
14522 ; return 0; }
14523 EOF
14524 if { (eval echo configure:14525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14525   rm -rf conftest*
14526   eval "ac_cv_func_$ac_func=yes"
14527 else
14528   echo "configure: failed program was:" >&5
14529   cat conftest.$ac_ext >&5
14530   rm -rf conftest*
14531   eval "ac_cv_func_$ac_func=no"
14532 fi
14533 rm -f conftest*
14534 fi
14535
14536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14537   echo "$ac_t""yes" 1>&6
14538     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14539   cat >> confdefs.h <<EOF
14540 #define $ac_tr_func 1
14541 EOF
14542  
14543 else
14544   echo "$ac_t""no" 1>&6
14545 fi
14546 done
14547
14548     fi
14549   fi
14550
14551   
14552   
14553   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14554 echo "configure:14555: checking for ldexpf declaration" >&5
14555   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14556     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14557   echo $ac_n "(cached) $ac_c" 1>&6
14558 else
14559   
14560       
14561       ac_ext=C
14562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563 ac_cpp='$CXXCPP $CPPFLAGS'
14564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566 cross_compiling=$ac_cv_prog_cxx_cross
14567
14568       cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 #include <math.h>
14572 int main() {
14573  ldexpf(0, 0);
14574 ; return 0; }
14575 EOF
14576 if { (eval echo configure:14577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14577   rm -rf conftest*
14578   glibcpp_cv_func_ldexpf_use=yes
14579 else
14580   echo "configure: failed program was:" >&5
14581   cat conftest.$ac_ext >&5
14582   rm -rf conftest*
14583   glibcpp_cv_func_ldexpf_use=no
14584 fi
14585 rm -f conftest*
14586       ac_ext=c
14587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14588 ac_cpp='$CPP $CPPFLAGS'
14589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14591 cross_compiling=$ac_cv_prog_cc_cross
14592
14593     
14594 fi
14595
14596   fi
14597   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14598
14599   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14600     for ac_func in ldexpf
14601 do
14602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14603 echo "configure:14604: checking for $ac_func" >&5
14604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14605   echo $ac_n "(cached) $ac_c" 1>&6
14606 else
14607   cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14610 /* System header to define __stub macros and hopefully few prototypes,
14611     which can conflict with char $ac_func(); below.  */
14612 #include <assert.h>
14613 /* Override any gcc2 internal prototype to avoid an error.  */
14614 /* We use char because int might match the return type of a gcc2
14615     builtin and then its argument prototype would still apply.  */
14616 char $ac_func();
14617
14618 int main() {
14619
14620 /* The GNU C library defines this for functions which it implements
14621     to always fail with ENOSYS.  Some functions are actually named
14622     something starting with __ and the normal name is an alias.  */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 $ac_func();
14627 #endif
14628
14629 ; return 0; }
14630 EOF
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632   rm -rf conftest*
14633   eval "ac_cv_func_$ac_func=yes"
14634 else
14635   echo "configure: failed program was:" >&5
14636   cat conftest.$ac_ext >&5
14637   rm -rf conftest*
14638   eval "ac_cv_func_$ac_func=no"
14639 fi
14640 rm -f conftest*
14641 fi
14642
14643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14644   echo "$ac_t""yes" 1>&6
14645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14646   cat >> confdefs.h <<EOF
14647 #define $ac_tr_func 1
14648 EOF
14649  
14650 else
14651   echo "$ac_t""no" 1>&6
14652 fi
14653 done
14654
14655   else
14656     
14657   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14658 echo "configure:14659: checking for _ldexpf declaration" >&5
14659   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14660     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14661   echo $ac_n "(cached) $ac_c" 1>&6
14662 else
14663   
14664       
14665       ac_ext=C
14666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14667 ac_cpp='$CXXCPP $CPPFLAGS'
14668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14670 cross_compiling=$ac_cv_prog_cxx_cross
14671
14672       cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 #include <math.h>
14676 int main() {
14677  _ldexpf(0, 0);
14678 ; return 0; }
14679 EOF
14680 if { (eval echo configure:14681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14681   rm -rf conftest*
14682   glibcpp_cv_func__ldexpf_use=yes
14683 else
14684   echo "configure: failed program was:" >&5
14685   cat conftest.$ac_ext >&5
14686   rm -rf conftest*
14687   glibcpp_cv_func__ldexpf_use=no
14688 fi
14689 rm -f conftest*
14690       ac_ext=c
14691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14695 cross_compiling=$ac_cv_prog_cc_cross
14696
14697     
14698 fi
14699
14700   fi
14701   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14702
14703     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14704       for ac_func in _ldexpf
14705 do
14706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14707 echo "configure:14708: checking for $ac_func" >&5
14708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14709   echo $ac_n "(cached) $ac_c" 1>&6
14710 else
14711   cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 /* System header to define __stub macros and hopefully few prototypes,
14715     which can conflict with char $ac_func(); below.  */
14716 #include <assert.h>
14717 /* Override any gcc2 internal prototype to avoid an error.  */
14718 /* We use char because int might match the return type of a gcc2
14719     builtin and then its argument prototype would still apply.  */
14720 char $ac_func();
14721
14722 int main() {
14723
14724 /* The GNU C library defines this for functions which it implements
14725     to always fail with ENOSYS.  Some functions are actually named
14726     something starting with __ and the normal name is an alias.  */
14727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14728 choke me
14729 #else
14730 $ac_func();
14731 #endif
14732
14733 ; return 0; }
14734 EOF
14735 if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14736   rm -rf conftest*
14737   eval "ac_cv_func_$ac_func=yes"
14738 else
14739   echo "configure: failed program was:" >&5
14740   cat conftest.$ac_ext >&5
14741   rm -rf conftest*
14742   eval "ac_cv_func_$ac_func=no"
14743 fi
14744 rm -f conftest*
14745 fi
14746
14747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14748   echo "$ac_t""yes" 1>&6
14749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14750   cat >> confdefs.h <<EOF
14751 #define $ac_tr_func 1
14752 EOF
14753  
14754 else
14755   echo "$ac_t""no" 1>&6
14756 fi
14757 done
14758
14759     fi
14760   fi
14761
14762   
14763   
14764   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14765 echo "configure:14766: checking for logf declaration" >&5
14766   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14767     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14768   echo $ac_n "(cached) $ac_c" 1>&6
14769 else
14770   
14771       
14772       ac_ext=C
14773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14774 ac_cpp='$CXXCPP $CPPFLAGS'
14775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14777 cross_compiling=$ac_cv_prog_cxx_cross
14778
14779       cat > conftest.$ac_ext <<EOF
14780 #line 14781 "configure"
14781 #include "confdefs.h"
14782 #include <math.h>
14783                       #ifdef HAVE_IEEEFP_H
14784                       #include <ieeefp.h>
14785                       #endif
14786                      
14787 int main() {
14788  logf(0);
14789 ; return 0; }
14790 EOF
14791 if { (eval echo configure:14792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14792   rm -rf conftest*
14793   glibcpp_cv_func_logf_use=yes
14794 else
14795   echo "configure: failed program was:" >&5
14796   cat conftest.$ac_ext >&5
14797   rm -rf conftest*
14798   glibcpp_cv_func_logf_use=no
14799 fi
14800 rm -f conftest*
14801       ac_ext=c
14802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14806 cross_compiling=$ac_cv_prog_cc_cross
14807
14808     
14809 fi
14810
14811   fi
14812   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14813
14814   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14815     for ac_func in logf
14816 do
14817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14818 echo "configure:14819: checking for $ac_func" >&5
14819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14820   echo $ac_n "(cached) $ac_c" 1>&6
14821 else
14822   cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825 /* System header to define __stub macros and hopefully few prototypes,
14826     which can conflict with char $ac_func(); below.  */
14827 #include <assert.h>
14828 /* Override any gcc2 internal prototype to avoid an error.  */
14829 /* We use char because int might match the return type of a gcc2
14830     builtin and then its argument prototype would still apply.  */
14831 char $ac_func();
14832
14833 int main() {
14834
14835 /* The GNU C library defines this for functions which it implements
14836     to always fail with ENOSYS.  Some functions are actually named
14837     something starting with __ and the normal name is an alias.  */
14838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14839 choke me
14840 #else
14841 $ac_func();
14842 #endif
14843
14844 ; return 0; }
14845 EOF
14846 if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14847   rm -rf conftest*
14848   eval "ac_cv_func_$ac_func=yes"
14849 else
14850   echo "configure: failed program was:" >&5
14851   cat conftest.$ac_ext >&5
14852   rm -rf conftest*
14853   eval "ac_cv_func_$ac_func=no"
14854 fi
14855 rm -f conftest*
14856 fi
14857
14858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14859   echo "$ac_t""yes" 1>&6
14860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14861   cat >> confdefs.h <<EOF
14862 #define $ac_tr_func 1
14863 EOF
14864  
14865 else
14866   echo "$ac_t""no" 1>&6
14867 fi
14868 done
14869
14870   else
14871     
14872   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14873 echo "configure:14874: checking for _logf declaration" >&5
14874   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14875     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14876   echo $ac_n "(cached) $ac_c" 1>&6
14877 else
14878   
14879       
14880       ac_ext=C
14881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14882 ac_cpp='$CXXCPP $CPPFLAGS'
14883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14885 cross_compiling=$ac_cv_prog_cxx_cross
14886
14887       cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 #include <math.h>
14891                       #ifdef HAVE_IEEEFP_H
14892                       #include <ieeefp.h>
14893                       #endif
14894                      
14895 int main() {
14896  _logf(0);
14897 ; return 0; }
14898 EOF
14899 if { (eval echo configure:14900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14900   rm -rf conftest*
14901   glibcpp_cv_func__logf_use=yes
14902 else
14903   echo "configure: failed program was:" >&5
14904   cat conftest.$ac_ext >&5
14905   rm -rf conftest*
14906   glibcpp_cv_func__logf_use=no
14907 fi
14908 rm -f conftest*
14909       ac_ext=c
14910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14911 ac_cpp='$CPP $CPPFLAGS'
14912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14914 cross_compiling=$ac_cv_prog_cc_cross
14915
14916     
14917 fi
14918
14919   fi
14920   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14921
14922     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14923       for ac_func in _logf
14924 do
14925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14926 echo "configure:14927: checking for $ac_func" >&5
14927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14928   echo $ac_n "(cached) $ac_c" 1>&6
14929 else
14930   cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 /* System header to define __stub macros and hopefully few prototypes,
14934     which can conflict with char $ac_func(); below.  */
14935 #include <assert.h>
14936 /* Override any gcc2 internal prototype to avoid an error.  */
14937 /* We use char because int might match the return type of a gcc2
14938     builtin and then its argument prototype would still apply.  */
14939 char $ac_func();
14940
14941 int main() {
14942
14943 /* The GNU C library defines this for functions which it implements
14944     to always fail with ENOSYS.  Some functions are actually named
14945     something starting with __ and the normal name is an alias.  */
14946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14947 choke me
14948 #else
14949 $ac_func();
14950 #endif
14951
14952 ; return 0; }
14953 EOF
14954 if { (eval echo configure:14955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14955   rm -rf conftest*
14956   eval "ac_cv_func_$ac_func=yes"
14957 else
14958   echo "configure: failed program was:" >&5
14959   cat conftest.$ac_ext >&5
14960   rm -rf conftest*
14961   eval "ac_cv_func_$ac_func=no"
14962 fi
14963 rm -f conftest*
14964 fi
14965
14966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14967   echo "$ac_t""yes" 1>&6
14968     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14969   cat >> confdefs.h <<EOF
14970 #define $ac_tr_func 1
14971 EOF
14972  
14973 else
14974   echo "$ac_t""no" 1>&6
14975 fi
14976 done
14977
14978     fi
14979   fi
14980
14981   
14982   
14983   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14984 echo "configure:14985: checking for log10f declaration" >&5
14985   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14986     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14987   echo $ac_n "(cached) $ac_c" 1>&6
14988 else
14989   
14990       
14991       ac_ext=C
14992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14993 ac_cpp='$CXXCPP $CPPFLAGS'
14994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14996 cross_compiling=$ac_cv_prog_cxx_cross
14997
14998       cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15001 #include <math.h>
15002                       #ifdef HAVE_IEEEFP_H
15003                       #include <ieeefp.h>
15004                       #endif
15005                      
15006 int main() {
15007  log10f(0);
15008 ; return 0; }
15009 EOF
15010 if { (eval echo configure:15011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15011   rm -rf conftest*
15012   glibcpp_cv_func_log10f_use=yes
15013 else
15014   echo "configure: failed program was:" >&5
15015   cat conftest.$ac_ext >&5
15016   rm -rf conftest*
15017   glibcpp_cv_func_log10f_use=no
15018 fi
15019 rm -f conftest*
15020       ac_ext=c
15021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15022 ac_cpp='$CPP $CPPFLAGS'
15023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15025 cross_compiling=$ac_cv_prog_cc_cross
15026
15027     
15028 fi
15029
15030   fi
15031   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15032
15033   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15034     for ac_func in log10f
15035 do
15036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15037 echo "configure:15038: checking for $ac_func" >&5
15038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15039   echo $ac_n "(cached) $ac_c" 1>&6
15040 else
15041   cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 /* System header to define __stub macros and hopefully few prototypes,
15045     which can conflict with char $ac_func(); below.  */
15046 #include <assert.h>
15047 /* Override any gcc2 internal prototype to avoid an error.  */
15048 /* We use char because int might match the return type of a gcc2
15049     builtin and then its argument prototype would still apply.  */
15050 char $ac_func();
15051
15052 int main() {
15053
15054 /* The GNU C library defines this for functions which it implements
15055     to always fail with ENOSYS.  Some functions are actually named
15056     something starting with __ and the normal name is an alias.  */
15057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15058 choke me
15059 #else
15060 $ac_func();
15061 #endif
15062
15063 ; return 0; }
15064 EOF
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066   rm -rf conftest*
15067   eval "ac_cv_func_$ac_func=yes"
15068 else
15069   echo "configure: failed program was:" >&5
15070   cat conftest.$ac_ext >&5
15071   rm -rf conftest*
15072   eval "ac_cv_func_$ac_func=no"
15073 fi
15074 rm -f conftest*
15075 fi
15076
15077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15078   echo "$ac_t""yes" 1>&6
15079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15080   cat >> confdefs.h <<EOF
15081 #define $ac_tr_func 1
15082 EOF
15083  
15084 else
15085   echo "$ac_t""no" 1>&6
15086 fi
15087 done
15088
15089   else
15090     
15091   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15092 echo "configure:15093: checking for _log10f declaration" >&5
15093   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15094     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15095   echo $ac_n "(cached) $ac_c" 1>&6
15096 else
15097   
15098       
15099       ac_ext=C
15100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15101 ac_cpp='$CXXCPP $CPPFLAGS'
15102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15104 cross_compiling=$ac_cv_prog_cxx_cross
15105
15106       cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15109 #include <math.h>
15110                       #ifdef HAVE_IEEEFP_H
15111                       #include <ieeefp.h>
15112                       #endif
15113                      
15114 int main() {
15115  _log10f(0);
15116 ; return 0; }
15117 EOF
15118 if { (eval echo configure:15119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15119   rm -rf conftest*
15120   glibcpp_cv_func__log10f_use=yes
15121 else
15122   echo "configure: failed program was:" >&5
15123   cat conftest.$ac_ext >&5
15124   rm -rf conftest*
15125   glibcpp_cv_func__log10f_use=no
15126 fi
15127 rm -f conftest*
15128       ac_ext=c
15129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15133 cross_compiling=$ac_cv_prog_cc_cross
15134
15135     
15136 fi
15137
15138   fi
15139   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15140
15141     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15142       for ac_func in _log10f
15143 do
15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15145 echo "configure:15146: checking for $ac_func" >&5
15146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15147   echo $ac_n "(cached) $ac_c" 1>&6
15148 else
15149   cat > conftest.$ac_ext <<EOF
15150 #line 15151 "configure"
15151 #include "confdefs.h"
15152 /* System header to define __stub macros and hopefully few prototypes,
15153     which can conflict with char $ac_func(); below.  */
15154 #include <assert.h>
15155 /* Override any gcc2 internal prototype to avoid an error.  */
15156 /* We use char because int might match the return type of a gcc2
15157     builtin and then its argument prototype would still apply.  */
15158 char $ac_func();
15159
15160 int main() {
15161
15162 /* The GNU C library defines this for functions which it implements
15163     to always fail with ENOSYS.  Some functions are actually named
15164     something starting with __ and the normal name is an alias.  */
15165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15166 choke me
15167 #else
15168 $ac_func();
15169 #endif
15170
15171 ; return 0; }
15172 EOF
15173 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15174   rm -rf conftest*
15175   eval "ac_cv_func_$ac_func=yes"
15176 else
15177   echo "configure: failed program was:" >&5
15178   cat conftest.$ac_ext >&5
15179   rm -rf conftest*
15180   eval "ac_cv_func_$ac_func=no"
15181 fi
15182 rm -f conftest*
15183 fi
15184
15185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15186   echo "$ac_t""yes" 1>&6
15187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15188   cat >> confdefs.h <<EOF
15189 #define $ac_tr_func 1
15190 EOF
15191  
15192 else
15193   echo "$ac_t""no" 1>&6
15194 fi
15195 done
15196
15197     fi
15198   fi
15199
15200   
15201   
15202   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15203 echo "configure:15204: checking for modff declaration" >&5
15204   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15205     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15206   echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15208   
15209       
15210       ac_ext=C
15211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15212 ac_cpp='$CXXCPP $CPPFLAGS'
15213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15215 cross_compiling=$ac_cv_prog_cxx_cross
15216
15217       cat > conftest.$ac_ext <<EOF
15218 #line 15219 "configure"
15219 #include "confdefs.h"
15220 #include <math.h>
15221 int main() {
15222  modff(0, 0);
15223 ; return 0; }
15224 EOF
15225 if { (eval echo configure:15226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15226   rm -rf conftest*
15227   glibcpp_cv_func_modff_use=yes
15228 else
15229   echo "configure: failed program was:" >&5
15230   cat conftest.$ac_ext >&5
15231   rm -rf conftest*
15232   glibcpp_cv_func_modff_use=no
15233 fi
15234 rm -f conftest*
15235       ac_ext=c
15236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15237 ac_cpp='$CPP $CPPFLAGS'
15238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15240 cross_compiling=$ac_cv_prog_cc_cross
15241
15242     
15243 fi
15244
15245   fi
15246   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15247
15248   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15249     for ac_func in modff
15250 do
15251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15252 echo "configure:15253: checking for $ac_func" >&5
15253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15254   echo $ac_n "(cached) $ac_c" 1>&6
15255 else
15256   cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 /* System header to define __stub macros and hopefully few prototypes,
15260     which can conflict with char $ac_func(); below.  */
15261 #include <assert.h>
15262 /* Override any gcc2 internal prototype to avoid an error.  */
15263 /* We use char because int might match the return type of a gcc2
15264     builtin and then its argument prototype would still apply.  */
15265 char $ac_func();
15266
15267 int main() {
15268
15269 /* The GNU C library defines this for functions which it implements
15270     to always fail with ENOSYS.  Some functions are actually named
15271     something starting with __ and the normal name is an alias.  */
15272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15273 choke me
15274 #else
15275 $ac_func();
15276 #endif
15277
15278 ; return 0; }
15279 EOF
15280 if { (eval echo configure:15281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15281   rm -rf conftest*
15282   eval "ac_cv_func_$ac_func=yes"
15283 else
15284   echo "configure: failed program was:" >&5
15285   cat conftest.$ac_ext >&5
15286   rm -rf conftest*
15287   eval "ac_cv_func_$ac_func=no"
15288 fi
15289 rm -f conftest*
15290 fi
15291
15292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15293   echo "$ac_t""yes" 1>&6
15294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15295   cat >> confdefs.h <<EOF
15296 #define $ac_tr_func 1
15297 EOF
15298  
15299 else
15300   echo "$ac_t""no" 1>&6
15301 fi
15302 done
15303
15304   else
15305     
15306   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15307 echo "configure:15308: checking for _modff declaration" >&5
15308   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15309     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15310   echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15312   
15313       
15314       ac_ext=C
15315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15316 ac_cpp='$CXXCPP $CPPFLAGS'
15317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15319 cross_compiling=$ac_cv_prog_cxx_cross
15320
15321       cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 #include <math.h>
15325 int main() {
15326  _modff(0, 0);
15327 ; return 0; }
15328 EOF
15329 if { (eval echo configure:15330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15330   rm -rf conftest*
15331   glibcpp_cv_func__modff_use=yes
15332 else
15333   echo "configure: failed program was:" >&5
15334   cat conftest.$ac_ext >&5
15335   rm -rf conftest*
15336   glibcpp_cv_func__modff_use=no
15337 fi
15338 rm -f conftest*
15339       ac_ext=c
15340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15344 cross_compiling=$ac_cv_prog_cc_cross
15345
15346     
15347 fi
15348
15349   fi
15350   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15351
15352     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15353       for ac_func in _modff
15354 do
15355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15356 echo "configure:15357: checking for $ac_func" >&5
15357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15358   echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15360   cat > conftest.$ac_ext <<EOF
15361 #line 15362 "configure"
15362 #include "confdefs.h"
15363 /* System header to define __stub macros and hopefully few prototypes,
15364     which can conflict with char $ac_func(); below.  */
15365 #include <assert.h>
15366 /* Override any gcc2 internal prototype to avoid an error.  */
15367 /* We use char because int might match the return type of a gcc2
15368     builtin and then its argument prototype would still apply.  */
15369 char $ac_func();
15370
15371 int main() {
15372
15373 /* The GNU C library defines this for functions which it implements
15374     to always fail with ENOSYS.  Some functions are actually named
15375     something starting with __ and the normal name is an alias.  */
15376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15377 choke me
15378 #else
15379 $ac_func();
15380 #endif
15381
15382 ; return 0; }
15383 EOF
15384 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15385   rm -rf conftest*
15386   eval "ac_cv_func_$ac_func=yes"
15387 else
15388   echo "configure: failed program was:" >&5
15389   cat conftest.$ac_ext >&5
15390   rm -rf conftest*
15391   eval "ac_cv_func_$ac_func=no"
15392 fi
15393 rm -f conftest*
15394 fi
15395
15396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15397   echo "$ac_t""yes" 1>&6
15398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15399   cat >> confdefs.h <<EOF
15400 #define $ac_tr_func 1
15401 EOF
15402  
15403 else
15404   echo "$ac_t""no" 1>&6
15405 fi
15406 done
15407
15408     fi
15409   fi
15410
15411   
15412   
15413   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15414 echo "configure:15415: checking for powf declaration" >&5
15415   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15416     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15417   echo $ac_n "(cached) $ac_c" 1>&6
15418 else
15419   
15420       
15421       ac_ext=C
15422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15423 ac_cpp='$CXXCPP $CPPFLAGS'
15424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15426 cross_compiling=$ac_cv_prog_cxx_cross
15427
15428       cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include <math.h>
15432 int main() {
15433  powf(0, 0);
15434 ; return 0; }
15435 EOF
15436 if { (eval echo configure:15437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15437   rm -rf conftest*
15438   glibcpp_cv_func_powf_use=yes
15439 else
15440   echo "configure: failed program was:" >&5
15441   cat conftest.$ac_ext >&5
15442   rm -rf conftest*
15443   glibcpp_cv_func_powf_use=no
15444 fi
15445 rm -f conftest*
15446       ac_ext=c
15447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15448 ac_cpp='$CPP $CPPFLAGS'
15449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15451 cross_compiling=$ac_cv_prog_cc_cross
15452
15453     
15454 fi
15455
15456   fi
15457   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15458
15459   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15460     for ac_func in powf
15461 do
15462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15463 echo "configure:15464: checking for $ac_func" >&5
15464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15465   echo $ac_n "(cached) $ac_c" 1>&6
15466 else
15467   cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471     which can conflict with char $ac_func(); below.  */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error.  */
15474 /* We use char because int might match the return type of a gcc2
15475     builtin and then its argument prototype would still apply.  */
15476 char $ac_func();
15477
15478 int main() {
15479
15480 /* The GNU C library defines this for functions which it implements
15481     to always fail with ENOSYS.  Some functions are actually named
15482     something starting with __ and the normal name is an alias.  */
15483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15484 choke me
15485 #else
15486 $ac_func();
15487 #endif
15488
15489 ; return 0; }
15490 EOF
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15492   rm -rf conftest*
15493   eval "ac_cv_func_$ac_func=yes"
15494 else
15495   echo "configure: failed program was:" >&5
15496   cat conftest.$ac_ext >&5
15497   rm -rf conftest*
15498   eval "ac_cv_func_$ac_func=no"
15499 fi
15500 rm -f conftest*
15501 fi
15502
15503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15504   echo "$ac_t""yes" 1>&6
15505     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15506   cat >> confdefs.h <<EOF
15507 #define $ac_tr_func 1
15508 EOF
15509  
15510 else
15511   echo "$ac_t""no" 1>&6
15512 fi
15513 done
15514
15515   else
15516     
15517   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15518 echo "configure:15519: checking for _powf declaration" >&5
15519   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15520     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15521   echo $ac_n "(cached) $ac_c" 1>&6
15522 else
15523   
15524       
15525       ac_ext=C
15526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15527 ac_cpp='$CXXCPP $CPPFLAGS'
15528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15530 cross_compiling=$ac_cv_prog_cxx_cross
15531
15532       cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 #include <math.h>
15536 int main() {
15537  _powf(0, 0);
15538 ; return 0; }
15539 EOF
15540 if { (eval echo configure:15541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15541   rm -rf conftest*
15542   glibcpp_cv_func__powf_use=yes
15543 else
15544   echo "configure: failed program was:" >&5
15545   cat conftest.$ac_ext >&5
15546   rm -rf conftest*
15547   glibcpp_cv_func__powf_use=no
15548 fi
15549 rm -f conftest*
15550       ac_ext=c
15551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15552 ac_cpp='$CPP $CPPFLAGS'
15553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15555 cross_compiling=$ac_cv_prog_cc_cross
15556
15557     
15558 fi
15559
15560   fi
15561   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15562
15563     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15564       for ac_func in _powf
15565 do
15566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15567 echo "configure:15568: checking for $ac_func" >&5
15568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15569   echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15571   cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 /* System header to define __stub macros and hopefully few prototypes,
15575     which can conflict with char $ac_func(); below.  */
15576 #include <assert.h>
15577 /* Override any gcc2 internal prototype to avoid an error.  */
15578 /* We use char because int might match the return type of a gcc2
15579     builtin and then its argument prototype would still apply.  */
15580 char $ac_func();
15581
15582 int main() {
15583
15584 /* The GNU C library defines this for functions which it implements
15585     to always fail with ENOSYS.  Some functions are actually named
15586     something starting with __ and the normal name is an alias.  */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 choke me
15589 #else
15590 $ac_func();
15591 #endif
15592
15593 ; return 0; }
15594 EOF
15595 if { (eval echo configure:15596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596   rm -rf conftest*
15597   eval "ac_cv_func_$ac_func=yes"
15598 else
15599   echo "configure: failed program was:" >&5
15600   cat conftest.$ac_ext >&5
15601   rm -rf conftest*
15602   eval "ac_cv_func_$ac_func=no"
15603 fi
15604 rm -f conftest*
15605 fi
15606
15607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15608   echo "$ac_t""yes" 1>&6
15609     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15610   cat >> confdefs.h <<EOF
15611 #define $ac_tr_func 1
15612 EOF
15613  
15614 else
15615   echo "$ac_t""no" 1>&6
15616 fi
15617 done
15618
15619     fi
15620   fi
15621
15622   
15623   
15624   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15625 echo "configure:15626: checking for sqrtf declaration" >&5
15626   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15627     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15628   echo $ac_n "(cached) $ac_c" 1>&6
15629 else
15630   
15631       
15632       ac_ext=C
15633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15634 ac_cpp='$CXXCPP $CPPFLAGS'
15635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15637 cross_compiling=$ac_cv_prog_cxx_cross
15638
15639       cat > conftest.$ac_ext <<EOF
15640 #line 15641 "configure"
15641 #include "confdefs.h"
15642 #include <math.h>
15643                       #ifdef HAVE_IEEEFP_H
15644                       #include <ieeefp.h>
15645                       #endif
15646                      
15647 int main() {
15648  sqrtf(0);
15649 ; return 0; }
15650 EOF
15651 if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15652   rm -rf conftest*
15653   glibcpp_cv_func_sqrtf_use=yes
15654 else
15655   echo "configure: failed program was:" >&5
15656   cat conftest.$ac_ext >&5
15657   rm -rf conftest*
15658   glibcpp_cv_func_sqrtf_use=no
15659 fi
15660 rm -f conftest*
15661       ac_ext=c
15662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15666 cross_compiling=$ac_cv_prog_cc_cross
15667
15668     
15669 fi
15670
15671   fi
15672   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15673
15674   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15675     for ac_func in sqrtf
15676 do
15677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15678 echo "configure:15679: checking for $ac_func" >&5
15679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15680   echo $ac_n "(cached) $ac_c" 1>&6
15681 else
15682   cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 /* System header to define __stub macros and hopefully few prototypes,
15686     which can conflict with char $ac_func(); below.  */
15687 #include <assert.h>
15688 /* Override any gcc2 internal prototype to avoid an error.  */
15689 /* We use char because int might match the return type of a gcc2
15690     builtin and then its argument prototype would still apply.  */
15691 char $ac_func();
15692
15693 int main() {
15694
15695 /* The GNU C library defines this for functions which it implements
15696     to always fail with ENOSYS.  Some functions are actually named
15697     something starting with __ and the normal name is an alias.  */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 $ac_func();
15702 #endif
15703
15704 ; return 0; }
15705 EOF
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707   rm -rf conftest*
15708   eval "ac_cv_func_$ac_func=yes"
15709 else
15710   echo "configure: failed program was:" >&5
15711   cat conftest.$ac_ext >&5
15712   rm -rf conftest*
15713   eval "ac_cv_func_$ac_func=no"
15714 fi
15715 rm -f conftest*
15716 fi
15717
15718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15719   echo "$ac_t""yes" 1>&6
15720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15721   cat >> confdefs.h <<EOF
15722 #define $ac_tr_func 1
15723 EOF
15724  
15725 else
15726   echo "$ac_t""no" 1>&6
15727 fi
15728 done
15729
15730   else
15731     
15732   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15733 echo "configure:15734: checking for _sqrtf declaration" >&5
15734   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15735     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15736   echo $ac_n "(cached) $ac_c" 1>&6
15737 else
15738   
15739       
15740       ac_ext=C
15741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15742 ac_cpp='$CXXCPP $CPPFLAGS'
15743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15745 cross_compiling=$ac_cv_prog_cxx_cross
15746
15747       cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 #include <math.h>
15751                       #ifdef HAVE_IEEEFP_H
15752                       #include <ieeefp.h>
15753                       #endif
15754                      
15755 int main() {
15756  _sqrtf(0);
15757 ; return 0; }
15758 EOF
15759 if { (eval echo configure:15760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15760   rm -rf conftest*
15761   glibcpp_cv_func__sqrtf_use=yes
15762 else
15763   echo "configure: failed program was:" >&5
15764   cat conftest.$ac_ext >&5
15765   rm -rf conftest*
15766   glibcpp_cv_func__sqrtf_use=no
15767 fi
15768 rm -f conftest*
15769       ac_ext=c
15770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15771 ac_cpp='$CPP $CPPFLAGS'
15772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15774 cross_compiling=$ac_cv_prog_cc_cross
15775
15776     
15777 fi
15778
15779   fi
15780   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15781
15782     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15783       for ac_func in _sqrtf
15784 do
15785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15786 echo "configure:15787: checking for $ac_func" >&5
15787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15788   echo $ac_n "(cached) $ac_c" 1>&6
15789 else
15790   cat > conftest.$ac_ext <<EOF
15791 #line 15792 "configure"
15792 #include "confdefs.h"
15793 /* System header to define __stub macros and hopefully few prototypes,
15794     which can conflict with char $ac_func(); below.  */
15795 #include <assert.h>
15796 /* Override any gcc2 internal prototype to avoid an error.  */
15797 /* We use char because int might match the return type of a gcc2
15798     builtin and then its argument prototype would still apply.  */
15799 char $ac_func();
15800
15801 int main() {
15802
15803 /* The GNU C library defines this for functions which it implements
15804     to always fail with ENOSYS.  Some functions are actually named
15805     something starting with __ and the normal name is an alias.  */
15806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 choke me
15808 #else
15809 $ac_func();
15810 #endif
15811
15812 ; return 0; }
15813 EOF
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815   rm -rf conftest*
15816   eval "ac_cv_func_$ac_func=yes"
15817 else
15818   echo "configure: failed program was:" >&5
15819   cat conftest.$ac_ext >&5
15820   rm -rf conftest*
15821   eval "ac_cv_func_$ac_func=no"
15822 fi
15823 rm -f conftest*
15824 fi
15825
15826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15827   echo "$ac_t""yes" 1>&6
15828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15829   cat >> confdefs.h <<EOF
15830 #define $ac_tr_func 1
15831 EOF
15832  
15833 else
15834   echo "$ac_t""no" 1>&6
15835 fi
15836 done
15837
15838     fi
15839   fi
15840
15841   
15842   
15843   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15844 echo "configure:15845: checking for sincosf declaration" >&5
15845   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15846     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15847   echo $ac_n "(cached) $ac_c" 1>&6
15848 else
15849   
15850       
15851       ac_ext=C
15852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15853 ac_cpp='$CXXCPP $CPPFLAGS'
15854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15856 cross_compiling=$ac_cv_prog_cxx_cross
15857
15858       cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 #include <math.h>
15862 int main() {
15863  sincosf(0, 0, 0);
15864 ; return 0; }
15865 EOF
15866 if { (eval echo configure:15867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15867   rm -rf conftest*
15868   glibcpp_cv_func_sincosf_use=yes
15869 else
15870   echo "configure: failed program was:" >&5
15871   cat conftest.$ac_ext >&5
15872   rm -rf conftest*
15873   glibcpp_cv_func_sincosf_use=no
15874 fi
15875 rm -f conftest*
15876       ac_ext=c
15877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15878 ac_cpp='$CPP $CPPFLAGS'
15879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15881 cross_compiling=$ac_cv_prog_cc_cross
15882
15883     
15884 fi
15885
15886   fi
15887   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15888
15889   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15890     for ac_func in sincosf
15891 do
15892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15893 echo "configure:15894: checking for $ac_func" >&5
15894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15895   echo $ac_n "(cached) $ac_c" 1>&6
15896 else
15897   cat > conftest.$ac_ext <<EOF
15898 #line 15899 "configure"
15899 #include "confdefs.h"
15900 /* System header to define __stub macros and hopefully few prototypes,
15901     which can conflict with char $ac_func(); below.  */
15902 #include <assert.h>
15903 /* Override any gcc2 internal prototype to avoid an error.  */
15904 /* We use char because int might match the return type of a gcc2
15905     builtin and then its argument prototype would still apply.  */
15906 char $ac_func();
15907
15908 int main() {
15909
15910 /* The GNU C library defines this for functions which it implements
15911     to always fail with ENOSYS.  Some functions are actually named
15912     something starting with __ and the normal name is an alias.  */
15913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15914 choke me
15915 #else
15916 $ac_func();
15917 #endif
15918
15919 ; return 0; }
15920 EOF
15921 if { (eval echo configure:15922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15922   rm -rf conftest*
15923   eval "ac_cv_func_$ac_func=yes"
15924 else
15925   echo "configure: failed program was:" >&5
15926   cat conftest.$ac_ext >&5
15927   rm -rf conftest*
15928   eval "ac_cv_func_$ac_func=no"
15929 fi
15930 rm -f conftest*
15931 fi
15932
15933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15934   echo "$ac_t""yes" 1>&6
15935     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15936   cat >> confdefs.h <<EOF
15937 #define $ac_tr_func 1
15938 EOF
15939  
15940 else
15941   echo "$ac_t""no" 1>&6
15942 fi
15943 done
15944
15945   else
15946     
15947   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15948 echo "configure:15949: checking for _sincosf declaration" >&5
15949   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15950     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15951   echo $ac_n "(cached) $ac_c" 1>&6
15952 else
15953   
15954       
15955       ac_ext=C
15956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15957 ac_cpp='$CXXCPP $CPPFLAGS'
15958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15960 cross_compiling=$ac_cv_prog_cxx_cross
15961
15962       cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15965 #include <math.h>
15966 int main() {
15967  _sincosf(0, 0, 0);
15968 ; return 0; }
15969 EOF
15970 if { (eval echo configure:15971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15971   rm -rf conftest*
15972   glibcpp_cv_func__sincosf_use=yes
15973 else
15974   echo "configure: failed program was:" >&5
15975   cat conftest.$ac_ext >&5
15976   rm -rf conftest*
15977   glibcpp_cv_func__sincosf_use=no
15978 fi
15979 rm -f conftest*
15980       ac_ext=c
15981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15985 cross_compiling=$ac_cv_prog_cc_cross
15986
15987     
15988 fi
15989
15990   fi
15991   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15992
15993     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15994       for ac_func in _sincosf
15995 do
15996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15997 echo "configure:15998: checking for $ac_func" >&5
15998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15999   echo $ac_n "(cached) $ac_c" 1>&6
16000 else
16001   cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 /* System header to define __stub macros and hopefully few prototypes,
16005     which can conflict with char $ac_func(); below.  */
16006 #include <assert.h>
16007 /* Override any gcc2 internal prototype to avoid an error.  */
16008 /* We use char because int might match the return type of a gcc2
16009     builtin and then its argument prototype would still apply.  */
16010 char $ac_func();
16011
16012 int main() {
16013
16014 /* The GNU C library defines this for functions which it implements
16015     to always fail with ENOSYS.  Some functions are actually named
16016     something starting with __ and the normal name is an alias.  */
16017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16018 choke me
16019 #else
16020 $ac_func();
16021 #endif
16022
16023 ; return 0; }
16024 EOF
16025 if { (eval echo configure:16026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16026   rm -rf conftest*
16027   eval "ac_cv_func_$ac_func=yes"
16028 else
16029   echo "configure: failed program was:" >&5
16030   cat conftest.$ac_ext >&5
16031   rm -rf conftest*
16032   eval "ac_cv_func_$ac_func=no"
16033 fi
16034 rm -f conftest*
16035 fi
16036
16037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16038   echo "$ac_t""yes" 1>&6
16039     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16040   cat >> confdefs.h <<EOF
16041 #define $ac_tr_func 1
16042 EOF
16043  
16044 else
16045   echo "$ac_t""no" 1>&6
16046 fi
16047 done
16048
16049     fi
16050   fi
16051
16052   
16053   
16054   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16055 echo "configure:16056: checking for finitef declaration" >&5
16056   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16057     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16058   echo $ac_n "(cached) $ac_c" 1>&6
16059 else
16060   
16061       
16062       ac_ext=C
16063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16064 ac_cpp='$CXXCPP $CPPFLAGS'
16065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16067 cross_compiling=$ac_cv_prog_cxx_cross
16068
16069       cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 #include <math.h>
16073                       #ifdef HAVE_IEEEFP_H
16074                       #include <ieeefp.h>
16075                       #endif
16076                      
16077 int main() {
16078  finitef(0);
16079 ; return 0; }
16080 EOF
16081 if { (eval echo configure:16082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16082   rm -rf conftest*
16083   glibcpp_cv_func_finitef_use=yes
16084 else
16085   echo "configure: failed program was:" >&5
16086   cat conftest.$ac_ext >&5
16087   rm -rf conftest*
16088   glibcpp_cv_func_finitef_use=no
16089 fi
16090 rm -f conftest*
16091       ac_ext=c
16092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16093 ac_cpp='$CPP $CPPFLAGS'
16094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16096 cross_compiling=$ac_cv_prog_cc_cross
16097
16098     
16099 fi
16100
16101   fi
16102   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16103
16104   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16105     for ac_func in finitef
16106 do
16107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16108 echo "configure:16109: checking for $ac_func" >&5
16109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16110   echo $ac_n "(cached) $ac_c" 1>&6
16111 else
16112   cat > conftest.$ac_ext <<EOF
16113 #line 16114 "configure"
16114 #include "confdefs.h"
16115 /* System header to define __stub macros and hopefully few prototypes,
16116     which can conflict with char $ac_func(); below.  */
16117 #include <assert.h>
16118 /* Override any gcc2 internal prototype to avoid an error.  */
16119 /* We use char because int might match the return type of a gcc2
16120     builtin and then its argument prototype would still apply.  */
16121 char $ac_func();
16122
16123 int main() {
16124
16125 /* The GNU C library defines this for functions which it implements
16126     to always fail with ENOSYS.  Some functions are actually named
16127     something starting with __ and the normal name is an alias.  */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 $ac_func();
16132 #endif
16133
16134 ; return 0; }
16135 EOF
16136 if { (eval echo configure:16137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16137   rm -rf conftest*
16138   eval "ac_cv_func_$ac_func=yes"
16139 else
16140   echo "configure: failed program was:" >&5
16141   cat conftest.$ac_ext >&5
16142   rm -rf conftest*
16143   eval "ac_cv_func_$ac_func=no"
16144 fi
16145 rm -f conftest*
16146 fi
16147
16148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16149   echo "$ac_t""yes" 1>&6
16150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16151   cat >> confdefs.h <<EOF
16152 #define $ac_tr_func 1
16153 EOF
16154  
16155 else
16156   echo "$ac_t""no" 1>&6
16157 fi
16158 done
16159
16160   else
16161     
16162   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16163 echo "configure:16164: checking for _finitef declaration" >&5
16164   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16165     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16166   echo $ac_n "(cached) $ac_c" 1>&6
16167 else
16168   
16169       
16170       ac_ext=C
16171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16172 ac_cpp='$CXXCPP $CPPFLAGS'
16173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16175 cross_compiling=$ac_cv_prog_cxx_cross
16176
16177       cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16180 #include <math.h>
16181                       #ifdef HAVE_IEEEFP_H
16182                       #include <ieeefp.h>
16183                       #endif
16184                      
16185 int main() {
16186  _finitef(0);
16187 ; return 0; }
16188 EOF
16189 if { (eval echo configure:16190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16190   rm -rf conftest*
16191   glibcpp_cv_func__finitef_use=yes
16192 else
16193   echo "configure: failed program was:" >&5
16194   cat conftest.$ac_ext >&5
16195   rm -rf conftest*
16196   glibcpp_cv_func__finitef_use=no
16197 fi
16198 rm -f conftest*
16199       ac_ext=c
16200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16204 cross_compiling=$ac_cv_prog_cc_cross
16205
16206     
16207 fi
16208
16209   fi
16210   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16211
16212     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16213       for ac_func in _finitef
16214 do
16215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16216 echo "configure:16217: checking for $ac_func" >&5
16217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16218   echo $ac_n "(cached) $ac_c" 1>&6
16219 else
16220   cat > conftest.$ac_ext <<EOF
16221 #line 16222 "configure"
16222 #include "confdefs.h"
16223 /* System header to define __stub macros and hopefully few prototypes,
16224     which can conflict with char $ac_func(); below.  */
16225 #include <assert.h>
16226 /* Override any gcc2 internal prototype to avoid an error.  */
16227 /* We use char because int might match the return type of a gcc2
16228     builtin and then its argument prototype would still apply.  */
16229 char $ac_func();
16230
16231 int main() {
16232
16233 /* The GNU C library defines this for functions which it implements
16234     to always fail with ENOSYS.  Some functions are actually named
16235     something starting with __ and the normal name is an alias.  */
16236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16237 choke me
16238 #else
16239 $ac_func();
16240 #endif
16241
16242 ; return 0; }
16243 EOF
16244 if { (eval echo configure:16245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16245   rm -rf conftest*
16246   eval "ac_cv_func_$ac_func=yes"
16247 else
16248   echo "configure: failed program was:" >&5
16249   cat conftest.$ac_ext >&5
16250   rm -rf conftest*
16251   eval "ac_cv_func_$ac_func=no"
16252 fi
16253 rm -f conftest*
16254 fi
16255
16256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16257   echo "$ac_t""yes" 1>&6
16258     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16259   cat >> confdefs.h <<EOF
16260 #define $ac_tr_func 1
16261 EOF
16262  
16263 else
16264   echo "$ac_t""no" 1>&6
16265 fi
16266 done
16267
16268     fi
16269   fi
16270
16271
16272     
16273   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16274 echo "configure:16275: checking for long double trig functions" >&5
16275   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16276   echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16278   
16279     
16280     ac_ext=C
16281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16282 ac_cpp='$CXXCPP $CPPFLAGS'
16283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16285 cross_compiling=$ac_cv_prog_cxx_cross
16286
16287     cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16290 #include <math.h>
16291 int main() {
16292  `for x in acosl asinl atanl \
16293                                           cosl sinl tanl \
16294                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16295 ; return 0; }
16296 EOF
16297 if { (eval echo configure:16298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16298   rm -rf conftest*
16299   glibcpp_cv_func_long_double_trig_use=yes
16300 else
16301   echo "configure: failed program was:" >&5
16302   cat conftest.$ac_ext >&5
16303   rm -rf conftest*
16304   glibcpp_cv_func_long_double_trig_use=no
16305 fi
16306 rm -f conftest*
16307     ac_ext=c
16308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16309 ac_cpp='$CPP $CPPFLAGS'
16310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16312 cross_compiling=$ac_cv_prog_cc_cross
16313
16314 fi
16315
16316   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16317   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16318     for ac_func in acosl asinl atanl \
16319                                           cosl sinl tanl \
16320                                           coshl sinhl tanhl
16321 do
16322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16323 echo "configure:16324: checking for $ac_func" >&5
16324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16325   echo $ac_n "(cached) $ac_c" 1>&6
16326 else
16327   cat > conftest.$ac_ext <<EOF
16328 #line 16329 "configure"
16329 #include "confdefs.h"
16330 /* System header to define __stub macros and hopefully few prototypes,
16331     which can conflict with char $ac_func(); below.  */
16332 #include <assert.h>
16333 /* Override any gcc2 internal prototype to avoid an error.  */
16334 /* We use char because int might match the return type of a gcc2
16335     builtin and then its argument prototype would still apply.  */
16336 char $ac_func();
16337
16338 int main() {
16339
16340 /* The GNU C library defines this for functions which it implements
16341     to always fail with ENOSYS.  Some functions are actually named
16342     something starting with __ and the normal name is an alias.  */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16344 choke me
16345 #else
16346 $ac_func();
16347 #endif
16348
16349 ; return 0; }
16350 EOF
16351 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16352   rm -rf conftest*
16353   eval "ac_cv_func_$ac_func=yes"
16354 else
16355   echo "configure: failed program was:" >&5
16356   cat conftest.$ac_ext >&5
16357   rm -rf conftest*
16358   eval "ac_cv_func_$ac_func=no"
16359 fi
16360 rm -f conftest*
16361 fi
16362
16363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16364   echo "$ac_t""yes" 1>&6
16365     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16366   cat >> confdefs.h <<EOF
16367 #define $ac_tr_func 1
16368 EOF
16369  
16370 else
16371   echo "$ac_t""no" 1>&6
16372 fi
16373 done
16374
16375   fi
16376
16377   
16378   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16379 echo "configure:16380: checking for long double round functions" >&5
16380   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16381   echo $ac_n "(cached) $ac_c" 1>&6
16382 else
16383   
16384     
16385     ac_ext=C
16386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16390 cross_compiling=$ac_cv_prog_cxx_cross
16391
16392     cat > conftest.$ac_ext <<EOF
16393 #line 16394 "configure"
16394 #include "confdefs.h"
16395 #include <math.h>
16396 int main() {
16397  `for x in ceill floorl; do echo "$x (0);"; done` 
16398 ; return 0; }
16399 EOF
16400 if { (eval echo configure:16401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16401   rm -rf conftest*
16402   glibcpp_cv_func_long_double_round_use=yes
16403 else
16404   echo "configure: failed program was:" >&5
16405   cat conftest.$ac_ext >&5
16406   rm -rf conftest*
16407   glibcpp_cv_func_long_double_round_use=no
16408 fi
16409 rm -f conftest*
16410     ac_ext=c
16411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16412 ac_cpp='$CPP $CPPFLAGS'
16413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16415 cross_compiling=$ac_cv_prog_cc_cross
16416
16417 fi
16418
16419   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16420   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16421     for ac_func in ceill floorl
16422 do
16423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16424 echo "configure:16425: checking for $ac_func" >&5
16425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16426   echo $ac_n "(cached) $ac_c" 1>&6
16427 else
16428   cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 /* System header to define __stub macros and hopefully few prototypes,
16432     which can conflict with char $ac_func(); below.  */
16433 #include <assert.h>
16434 /* Override any gcc2 internal prototype to avoid an error.  */
16435 /* We use char because int might match the return type of a gcc2
16436     builtin and then its argument prototype would still apply.  */
16437 char $ac_func();
16438
16439 int main() {
16440
16441 /* The GNU C library defines this for functions which it implements
16442     to always fail with ENOSYS.  Some functions are actually named
16443     something starting with __ and the normal name is an alias.  */
16444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16445 choke me
16446 #else
16447 $ac_func();
16448 #endif
16449
16450 ; return 0; }
16451 EOF
16452 if { (eval echo configure:16453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16453   rm -rf conftest*
16454   eval "ac_cv_func_$ac_func=yes"
16455 else
16456   echo "configure: failed program was:" >&5
16457   cat conftest.$ac_ext >&5
16458   rm -rf conftest*
16459   eval "ac_cv_func_$ac_func=no"
16460 fi
16461 rm -f conftest*
16462 fi
16463
16464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16465   echo "$ac_t""yes" 1>&6
16466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16467   cat >> confdefs.h <<EOF
16468 #define $ac_tr_func 1
16469 EOF
16470  
16471 else
16472   echo "$ac_t""no" 1>&6
16473 fi
16474 done
16475
16476   fi
16477
16478   
16479   
16480   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16481 echo "configure:16482: checking for isnanl declaration" >&5
16482   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16483     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16484   echo $ac_n "(cached) $ac_c" 1>&6
16485 else
16486   
16487       
16488       ac_ext=C
16489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16490 ac_cpp='$CXXCPP $CPPFLAGS'
16491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16493 cross_compiling=$ac_cv_prog_cxx_cross
16494
16495       cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16498 #include <math.h>
16499                       #ifdef HAVE_IEEEFP_H
16500                       #include <ieeefp.h>
16501                       #endif
16502                      
16503 int main() {
16504  isnanl(0);
16505 ; return 0; }
16506 EOF
16507 if { (eval echo configure:16508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16508   rm -rf conftest*
16509   glibcpp_cv_func_isnanl_use=yes
16510 else
16511   echo "configure: failed program was:" >&5
16512   cat conftest.$ac_ext >&5
16513   rm -rf conftest*
16514   glibcpp_cv_func_isnanl_use=no
16515 fi
16516 rm -f conftest*
16517       ac_ext=c
16518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16519 ac_cpp='$CPP $CPPFLAGS'
16520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16522 cross_compiling=$ac_cv_prog_cc_cross
16523
16524     
16525 fi
16526
16527   fi
16528   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16529
16530   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16531     for ac_func in isnanl
16532 do
16533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16534 echo "configure:16535: checking for $ac_func" >&5
16535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16536   echo $ac_n "(cached) $ac_c" 1>&6
16537 else
16538   cat > conftest.$ac_ext <<EOF
16539 #line 16540 "configure"
16540 #include "confdefs.h"
16541 /* System header to define __stub macros and hopefully few prototypes,
16542     which can conflict with char $ac_func(); below.  */
16543 #include <assert.h>
16544 /* Override any gcc2 internal prototype to avoid an error.  */
16545 /* We use char because int might match the return type of a gcc2
16546     builtin and then its argument prototype would still apply.  */
16547 char $ac_func();
16548
16549 int main() {
16550
16551 /* The GNU C library defines this for functions which it implements
16552     to always fail with ENOSYS.  Some functions are actually named
16553     something starting with __ and the normal name is an alias.  */
16554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16555 choke me
16556 #else
16557 $ac_func();
16558 #endif
16559
16560 ; return 0; }
16561 EOF
16562 if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16563   rm -rf conftest*
16564   eval "ac_cv_func_$ac_func=yes"
16565 else
16566   echo "configure: failed program was:" >&5
16567   cat conftest.$ac_ext >&5
16568   rm -rf conftest*
16569   eval "ac_cv_func_$ac_func=no"
16570 fi
16571 rm -f conftest*
16572 fi
16573
16574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16575   echo "$ac_t""yes" 1>&6
16576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16577   cat >> confdefs.h <<EOF
16578 #define $ac_tr_func 1
16579 EOF
16580  
16581 else
16582   echo "$ac_t""no" 1>&6
16583 fi
16584 done
16585
16586   else
16587     
16588   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16589 echo "configure:16590: checking for _isnanl declaration" >&5
16590   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16591     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16592   echo $ac_n "(cached) $ac_c" 1>&6
16593 else
16594   
16595       
16596       ac_ext=C
16597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16598 ac_cpp='$CXXCPP $CPPFLAGS'
16599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16601 cross_compiling=$ac_cv_prog_cxx_cross
16602
16603       cat > conftest.$ac_ext <<EOF
16604 #line 16605 "configure"
16605 #include "confdefs.h"
16606 #include <math.h>
16607                       #ifdef HAVE_IEEEFP_H
16608                       #include <ieeefp.h>
16609                       #endif
16610                      
16611 int main() {
16612  _isnanl(0);
16613 ; return 0; }
16614 EOF
16615 if { (eval echo configure:16616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16616   rm -rf conftest*
16617   glibcpp_cv_func__isnanl_use=yes
16618 else
16619   echo "configure: failed program was:" >&5
16620   cat conftest.$ac_ext >&5
16621   rm -rf conftest*
16622   glibcpp_cv_func__isnanl_use=no
16623 fi
16624 rm -f conftest*
16625       ac_ext=c
16626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16630 cross_compiling=$ac_cv_prog_cc_cross
16631
16632     
16633 fi
16634
16635   fi
16636   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16637
16638     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16639       for ac_func in _isnanl
16640 do
16641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16642 echo "configure:16643: checking for $ac_func" >&5
16643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16644   echo $ac_n "(cached) $ac_c" 1>&6
16645 else
16646   cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16649 /* System header to define __stub macros and hopefully few prototypes,
16650     which can conflict with char $ac_func(); below.  */
16651 #include <assert.h>
16652 /* Override any gcc2 internal prototype to avoid an error.  */
16653 /* We use char because int might match the return type of a gcc2
16654     builtin and then its argument prototype would still apply.  */
16655 char $ac_func();
16656
16657 int main() {
16658
16659 /* The GNU C library defines this for functions which it implements
16660     to always fail with ENOSYS.  Some functions are actually named
16661     something starting with __ and the normal name is an alias.  */
16662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16663 choke me
16664 #else
16665 $ac_func();
16666 #endif
16667
16668 ; return 0; }
16669 EOF
16670 if { (eval echo configure:16671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16671   rm -rf conftest*
16672   eval "ac_cv_func_$ac_func=yes"
16673 else
16674   echo "configure: failed program was:" >&5
16675   cat conftest.$ac_ext >&5
16676   rm -rf conftest*
16677   eval "ac_cv_func_$ac_func=no"
16678 fi
16679 rm -f conftest*
16680 fi
16681
16682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16683   echo "$ac_t""yes" 1>&6
16684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16685   cat >> confdefs.h <<EOF
16686 #define $ac_tr_func 1
16687 EOF
16688  
16689 else
16690   echo "$ac_t""no" 1>&6
16691 fi
16692 done
16693
16694     fi
16695   fi
16696
16697   
16698   
16699   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16700 echo "configure:16701: checking for isinfl declaration" >&5
16701   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16702     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16703   echo $ac_n "(cached) $ac_c" 1>&6
16704 else
16705   
16706       
16707       ac_ext=C
16708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16709 ac_cpp='$CXXCPP $CPPFLAGS'
16710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16712 cross_compiling=$ac_cv_prog_cxx_cross
16713
16714       cat > conftest.$ac_ext <<EOF
16715 #line 16716 "configure"
16716 #include "confdefs.h"
16717 #include <math.h>
16718                       #ifdef HAVE_IEEEFP_H
16719                       #include <ieeefp.h>
16720                       #endif
16721                      
16722 int main() {
16723  isinfl(0);
16724 ; return 0; }
16725 EOF
16726 if { (eval echo configure:16727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16727   rm -rf conftest*
16728   glibcpp_cv_func_isinfl_use=yes
16729 else
16730   echo "configure: failed program was:" >&5
16731   cat conftest.$ac_ext >&5
16732   rm -rf conftest*
16733   glibcpp_cv_func_isinfl_use=no
16734 fi
16735 rm -f conftest*
16736       ac_ext=c
16737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16738 ac_cpp='$CPP $CPPFLAGS'
16739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16741 cross_compiling=$ac_cv_prog_cc_cross
16742
16743     
16744 fi
16745
16746   fi
16747   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16748
16749   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16750     for ac_func in isinfl
16751 do
16752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16753 echo "configure:16754: checking for $ac_func" >&5
16754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16755   echo $ac_n "(cached) $ac_c" 1>&6
16756 else
16757   cat > conftest.$ac_ext <<EOF
16758 #line 16759 "configure"
16759 #include "confdefs.h"
16760 /* System header to define __stub macros and hopefully few prototypes,
16761     which can conflict with char $ac_func(); below.  */
16762 #include <assert.h>
16763 /* Override any gcc2 internal prototype to avoid an error.  */
16764 /* We use char because int might match the return type of a gcc2
16765     builtin and then its argument prototype would still apply.  */
16766 char $ac_func();
16767
16768 int main() {
16769
16770 /* The GNU C library defines this for functions which it implements
16771     to always fail with ENOSYS.  Some functions are actually named
16772     something starting with __ and the normal name is an alias.  */
16773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16774 choke me
16775 #else
16776 $ac_func();
16777 #endif
16778
16779 ; return 0; }
16780 EOF
16781 if { (eval echo configure:16782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16782   rm -rf conftest*
16783   eval "ac_cv_func_$ac_func=yes"
16784 else
16785   echo "configure: failed program was:" >&5
16786   cat conftest.$ac_ext >&5
16787   rm -rf conftest*
16788   eval "ac_cv_func_$ac_func=no"
16789 fi
16790 rm -f conftest*
16791 fi
16792
16793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16794   echo "$ac_t""yes" 1>&6
16795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16796   cat >> confdefs.h <<EOF
16797 #define $ac_tr_func 1
16798 EOF
16799  
16800 else
16801   echo "$ac_t""no" 1>&6
16802 fi
16803 done
16804
16805   else
16806     
16807   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16808 echo "configure:16809: checking for _isinfl declaration" >&5
16809   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16810     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16811   echo $ac_n "(cached) $ac_c" 1>&6
16812 else
16813   
16814       
16815       ac_ext=C
16816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16817 ac_cpp='$CXXCPP $CPPFLAGS'
16818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16820 cross_compiling=$ac_cv_prog_cxx_cross
16821
16822       cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825 #include <math.h>
16826                       #ifdef HAVE_IEEEFP_H
16827                       #include <ieeefp.h>
16828                       #endif
16829                      
16830 int main() {
16831  _isinfl(0);
16832 ; return 0; }
16833 EOF
16834 if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16835   rm -rf conftest*
16836   glibcpp_cv_func__isinfl_use=yes
16837 else
16838   echo "configure: failed program was:" >&5
16839   cat conftest.$ac_ext >&5
16840   rm -rf conftest*
16841   glibcpp_cv_func__isinfl_use=no
16842 fi
16843 rm -f conftest*
16844       ac_ext=c
16845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846 ac_cpp='$CPP $CPPFLAGS'
16847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849 cross_compiling=$ac_cv_prog_cc_cross
16850
16851     
16852 fi
16853
16854   fi
16855   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16856
16857     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16858       for ac_func in _isinfl
16859 do
16860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16861 echo "configure:16862: checking for $ac_func" >&5
16862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16863   echo $ac_n "(cached) $ac_c" 1>&6
16864 else
16865   cat > conftest.$ac_ext <<EOF
16866 #line 16867 "configure"
16867 #include "confdefs.h"
16868 /* System header to define __stub macros and hopefully few prototypes,
16869     which can conflict with char $ac_func(); below.  */
16870 #include <assert.h>
16871 /* Override any gcc2 internal prototype to avoid an error.  */
16872 /* We use char because int might match the return type of a gcc2
16873     builtin and then its argument prototype would still apply.  */
16874 char $ac_func();
16875
16876 int main() {
16877
16878 /* The GNU C library defines this for functions which it implements
16879     to always fail with ENOSYS.  Some functions are actually named
16880     something starting with __ and the normal name is an alias.  */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16882 choke me
16883 #else
16884 $ac_func();
16885 #endif
16886
16887 ; return 0; }
16888 EOF
16889 if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16890   rm -rf conftest*
16891   eval "ac_cv_func_$ac_func=yes"
16892 else
16893   echo "configure: failed program was:" >&5
16894   cat conftest.$ac_ext >&5
16895   rm -rf conftest*
16896   eval "ac_cv_func_$ac_func=no"
16897 fi
16898 rm -f conftest*
16899 fi
16900
16901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16902   echo "$ac_t""yes" 1>&6
16903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16904   cat >> confdefs.h <<EOF
16905 #define $ac_tr_func 1
16906 EOF
16907  
16908 else
16909   echo "$ac_t""no" 1>&6
16910 fi
16911 done
16912
16913     fi
16914   fi
16915
16916   
16917   
16918   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16919 echo "configure:16920: checking for copysignl declaration" >&5
16920   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16921     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16922   echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924   
16925       
16926       ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16932
16933       cat > conftest.$ac_ext <<EOF
16934 #line 16935 "configure"
16935 #include "confdefs.h"
16936 #include <math.h>
16937 int main() {
16938  copysignl(0, 0);
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942   rm -rf conftest*
16943   glibcpp_cv_func_copysignl_use=yes
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   glibcpp_cv_func_copysignl_use=no
16949 fi
16950 rm -f conftest*
16951       ac_ext=c
16952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cc_cross
16957
16958     
16959 fi
16960
16961   fi
16962   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16963
16964   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16965     for ac_func in copysignl
16966 do
16967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16968 echo "configure:16969: checking for $ac_func" >&5
16969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16970   echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972   cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 /* System header to define __stub macros and hopefully few prototypes,
16976     which can conflict with char $ac_func(); below.  */
16977 #include <assert.h>
16978 /* Override any gcc2 internal prototype to avoid an error.  */
16979 /* We use char because int might match the return type of a gcc2
16980     builtin and then its argument prototype would still apply.  */
16981 char $ac_func();
16982
16983 int main() {
16984
16985 /* The GNU C library defines this for functions which it implements
16986     to always fail with ENOSYS.  Some functions are actually named
16987     something starting with __ and the normal name is an alias.  */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 $ac_func();
16992 #endif
16993
16994 ; return 0; }
16995 EOF
16996 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997   rm -rf conftest*
16998   eval "ac_cv_func_$ac_func=yes"
16999 else
17000   echo "configure: failed program was:" >&5
17001   cat conftest.$ac_ext >&5
17002   rm -rf conftest*
17003   eval "ac_cv_func_$ac_func=no"
17004 fi
17005 rm -f conftest*
17006 fi
17007
17008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17009   echo "$ac_t""yes" 1>&6
17010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17011   cat >> confdefs.h <<EOF
17012 #define $ac_tr_func 1
17013 EOF
17014  
17015 else
17016   echo "$ac_t""no" 1>&6
17017 fi
17018 done
17019
17020   else
17021     
17022   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17023 echo "configure:17024: checking for _copysignl declaration" >&5
17024   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17025     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17026   echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17028   
17029       
17030       ac_ext=C
17031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17032 ac_cpp='$CXXCPP $CPPFLAGS'
17033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17035 cross_compiling=$ac_cv_prog_cxx_cross
17036
17037       cat > conftest.$ac_ext <<EOF
17038 #line 17039 "configure"
17039 #include "confdefs.h"
17040 #include <math.h>
17041 int main() {
17042  _copysignl(0, 0);
17043 ; return 0; }
17044 EOF
17045 if { (eval echo configure:17046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17046   rm -rf conftest*
17047   glibcpp_cv_func__copysignl_use=yes
17048 else
17049   echo "configure: failed program was:" >&5
17050   cat conftest.$ac_ext >&5
17051   rm -rf conftest*
17052   glibcpp_cv_func__copysignl_use=no
17053 fi
17054 rm -f conftest*
17055       ac_ext=c
17056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17060 cross_compiling=$ac_cv_prog_cc_cross
17061
17062     
17063 fi
17064
17065   fi
17066   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17067
17068     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17069       for ac_func in _copysignl
17070 do
17071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17072 echo "configure:17073: checking for $ac_func" >&5
17073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17074   echo $ac_n "(cached) $ac_c" 1>&6
17075 else
17076   cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 /* System header to define __stub macros and hopefully few prototypes,
17080     which can conflict with char $ac_func(); below.  */
17081 #include <assert.h>
17082 /* Override any gcc2 internal prototype to avoid an error.  */
17083 /* We use char because int might match the return type of a gcc2
17084     builtin and then its argument prototype would still apply.  */
17085 char $ac_func();
17086
17087 int main() {
17088
17089 /* The GNU C library defines this for functions which it implements
17090     to always fail with ENOSYS.  Some functions are actually named
17091     something starting with __ and the normal name is an alias.  */
17092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17093 choke me
17094 #else
17095 $ac_func();
17096 #endif
17097
17098 ; return 0; }
17099 EOF
17100 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17101   rm -rf conftest*
17102   eval "ac_cv_func_$ac_func=yes"
17103 else
17104   echo "configure: failed program was:" >&5
17105   cat conftest.$ac_ext >&5
17106   rm -rf conftest*
17107   eval "ac_cv_func_$ac_func=no"
17108 fi
17109 rm -f conftest*
17110 fi
17111
17112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17113   echo "$ac_t""yes" 1>&6
17114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17115   cat >> confdefs.h <<EOF
17116 #define $ac_tr_func 1
17117 EOF
17118  
17119 else
17120   echo "$ac_t""no" 1>&6
17121 fi
17122 done
17123
17124     fi
17125   fi
17126
17127   
17128   
17129   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17130 echo "configure:17131: checking for atan2l declaration" >&5
17131   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17132     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17133   echo $ac_n "(cached) $ac_c" 1>&6
17134 else
17135   
17136       
17137       ac_ext=C
17138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17139 ac_cpp='$CXXCPP $CPPFLAGS'
17140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17142 cross_compiling=$ac_cv_prog_cxx_cross
17143
17144       cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17147 #include <math.h>
17148 int main() {
17149  atan2l(0, 0);
17150 ; return 0; }
17151 EOF
17152 if { (eval echo configure:17153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17153   rm -rf conftest*
17154   glibcpp_cv_func_atan2l_use=yes
17155 else
17156   echo "configure: failed program was:" >&5
17157   cat conftest.$ac_ext >&5
17158   rm -rf conftest*
17159   glibcpp_cv_func_atan2l_use=no
17160 fi
17161 rm -f conftest*
17162       ac_ext=c
17163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17167 cross_compiling=$ac_cv_prog_cc_cross
17168
17169     
17170 fi
17171
17172   fi
17173   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17174
17175   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17176     for ac_func in atan2l
17177 do
17178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17179 echo "configure:17180: checking for $ac_func" >&5
17180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17181   echo $ac_n "(cached) $ac_c" 1>&6
17182 else
17183   cat > conftest.$ac_ext <<EOF
17184 #line 17185 "configure"
17185 #include "confdefs.h"
17186 /* System header to define __stub macros and hopefully few prototypes,
17187     which can conflict with char $ac_func(); below.  */
17188 #include <assert.h>
17189 /* Override any gcc2 internal prototype to avoid an error.  */
17190 /* We use char because int might match the return type of a gcc2
17191     builtin and then its argument prototype would still apply.  */
17192 char $ac_func();
17193
17194 int main() {
17195
17196 /* The GNU C library defines this for functions which it implements
17197     to always fail with ENOSYS.  Some functions are actually named
17198     something starting with __ and the normal name is an alias.  */
17199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17200 choke me
17201 #else
17202 $ac_func();
17203 #endif
17204
17205 ; return 0; }
17206 EOF
17207 if { (eval echo configure:17208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17208   rm -rf conftest*
17209   eval "ac_cv_func_$ac_func=yes"
17210 else
17211   echo "configure: failed program was:" >&5
17212   cat conftest.$ac_ext >&5
17213   rm -rf conftest*
17214   eval "ac_cv_func_$ac_func=no"
17215 fi
17216 rm -f conftest*
17217 fi
17218
17219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17220   echo "$ac_t""yes" 1>&6
17221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17222   cat >> confdefs.h <<EOF
17223 #define $ac_tr_func 1
17224 EOF
17225  
17226 else
17227   echo "$ac_t""no" 1>&6
17228 fi
17229 done
17230
17231   else
17232     
17233   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17234 echo "configure:17235: checking for _atan2l declaration" >&5
17235   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17236     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17237   echo $ac_n "(cached) $ac_c" 1>&6
17238 else
17239   
17240       
17241       ac_ext=C
17242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17243 ac_cpp='$CXXCPP $CPPFLAGS'
17244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17246 cross_compiling=$ac_cv_prog_cxx_cross
17247
17248       cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 #include <math.h>
17252 int main() {
17253  _atan2l(0, 0);
17254 ; return 0; }
17255 EOF
17256 if { (eval echo configure:17257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17257   rm -rf conftest*
17258   glibcpp_cv_func__atan2l_use=yes
17259 else
17260   echo "configure: failed program was:" >&5
17261   cat conftest.$ac_ext >&5
17262   rm -rf conftest*
17263   glibcpp_cv_func__atan2l_use=no
17264 fi
17265 rm -f conftest*
17266       ac_ext=c
17267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17268 ac_cpp='$CPP $CPPFLAGS'
17269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17271 cross_compiling=$ac_cv_prog_cc_cross
17272
17273     
17274 fi
17275
17276   fi
17277   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17278
17279     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17280       for ac_func in _atan2l
17281 do
17282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17283 echo "configure:17284: checking for $ac_func" >&5
17284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17285   echo $ac_n "(cached) $ac_c" 1>&6
17286 else
17287   cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17290 /* System header to define __stub macros and hopefully few prototypes,
17291     which can conflict with char $ac_func(); below.  */
17292 #include <assert.h>
17293 /* Override any gcc2 internal prototype to avoid an error.  */
17294 /* We use char because int might match the return type of a gcc2
17295     builtin and then its argument prototype would still apply.  */
17296 char $ac_func();
17297
17298 int main() {
17299
17300 /* The GNU C library defines this for functions which it implements
17301     to always fail with ENOSYS.  Some functions are actually named
17302     something starting with __ and the normal name is an alias.  */
17303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17304 choke me
17305 #else
17306 $ac_func();
17307 #endif
17308
17309 ; return 0; }
17310 EOF
17311 if { (eval echo configure:17312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17312   rm -rf conftest*
17313   eval "ac_cv_func_$ac_func=yes"
17314 else
17315   echo "configure: failed program was:" >&5
17316   cat conftest.$ac_ext >&5
17317   rm -rf conftest*
17318   eval "ac_cv_func_$ac_func=no"
17319 fi
17320 rm -f conftest*
17321 fi
17322
17323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17324   echo "$ac_t""yes" 1>&6
17325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17326   cat >> confdefs.h <<EOF
17327 #define $ac_tr_func 1
17328 EOF
17329  
17330 else
17331   echo "$ac_t""no" 1>&6
17332 fi
17333 done
17334
17335     fi
17336   fi
17337
17338   
17339   
17340   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17341 echo "configure:17342: checking for expl declaration" >&5
17342   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17343     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17344   echo $ac_n "(cached) $ac_c" 1>&6
17345 else
17346   
17347       
17348       ac_ext=C
17349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17350 ac_cpp='$CXXCPP $CPPFLAGS'
17351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17353 cross_compiling=$ac_cv_prog_cxx_cross
17354
17355       cat > conftest.$ac_ext <<EOF
17356 #line 17357 "configure"
17357 #include "confdefs.h"
17358 #include <math.h>
17359                       #ifdef HAVE_IEEEFP_H
17360                       #include <ieeefp.h>
17361                       #endif
17362                      
17363 int main() {
17364  expl(0);
17365 ; return 0; }
17366 EOF
17367 if { (eval echo configure:17368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17368   rm -rf conftest*
17369   glibcpp_cv_func_expl_use=yes
17370 else
17371   echo "configure: failed program was:" >&5
17372   cat conftest.$ac_ext >&5
17373   rm -rf conftest*
17374   glibcpp_cv_func_expl_use=no
17375 fi
17376 rm -f conftest*
17377       ac_ext=c
17378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17382 cross_compiling=$ac_cv_prog_cc_cross
17383
17384     
17385 fi
17386
17387   fi
17388   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17389
17390   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17391     for ac_func in expl
17392 do
17393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17394 echo "configure:17395: checking for $ac_func" >&5
17395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17396   echo $ac_n "(cached) $ac_c" 1>&6
17397 else
17398   cat > conftest.$ac_ext <<EOF
17399 #line 17400 "configure"
17400 #include "confdefs.h"
17401 /* System header to define __stub macros and hopefully few prototypes,
17402     which can conflict with char $ac_func(); below.  */
17403 #include <assert.h>
17404 /* Override any gcc2 internal prototype to avoid an error.  */
17405 /* We use char because int might match the return type of a gcc2
17406     builtin and then its argument prototype would still apply.  */
17407 char $ac_func();
17408
17409 int main() {
17410
17411 /* The GNU C library defines this for functions which it implements
17412     to always fail with ENOSYS.  Some functions are actually named
17413     something starting with __ and the normal name is an alias.  */
17414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17415 choke me
17416 #else
17417 $ac_func();
17418 #endif
17419
17420 ; return 0; }
17421 EOF
17422 if { (eval echo configure:17423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17423   rm -rf conftest*
17424   eval "ac_cv_func_$ac_func=yes"
17425 else
17426   echo "configure: failed program was:" >&5
17427   cat conftest.$ac_ext >&5
17428   rm -rf conftest*
17429   eval "ac_cv_func_$ac_func=no"
17430 fi
17431 rm -f conftest*
17432 fi
17433
17434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17435   echo "$ac_t""yes" 1>&6
17436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17437   cat >> confdefs.h <<EOF
17438 #define $ac_tr_func 1
17439 EOF
17440  
17441 else
17442   echo "$ac_t""no" 1>&6
17443 fi
17444 done
17445
17446   else
17447     
17448   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17449 echo "configure:17450: checking for _expl declaration" >&5
17450   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17451     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17452   echo $ac_n "(cached) $ac_c" 1>&6
17453 else
17454   
17455       
17456       ac_ext=C
17457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17458 ac_cpp='$CXXCPP $CPPFLAGS'
17459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17461 cross_compiling=$ac_cv_prog_cxx_cross
17462
17463       cat > conftest.$ac_ext <<EOF
17464 #line 17465 "configure"
17465 #include "confdefs.h"
17466 #include <math.h>
17467                       #ifdef HAVE_IEEEFP_H
17468                       #include <ieeefp.h>
17469                       #endif
17470                      
17471 int main() {
17472  _expl(0);
17473 ; return 0; }
17474 EOF
17475 if { (eval echo configure:17476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17476   rm -rf conftest*
17477   glibcpp_cv_func__expl_use=yes
17478 else
17479   echo "configure: failed program was:" >&5
17480   cat conftest.$ac_ext >&5
17481   rm -rf conftest*
17482   glibcpp_cv_func__expl_use=no
17483 fi
17484 rm -f conftest*
17485       ac_ext=c
17486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17490 cross_compiling=$ac_cv_prog_cc_cross
17491
17492     
17493 fi
17494
17495   fi
17496   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17497
17498     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17499       for ac_func in _expl
17500 do
17501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17502 echo "configure:17503: checking for $ac_func" >&5
17503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17504   echo $ac_n "(cached) $ac_c" 1>&6
17505 else
17506   cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 /* System header to define __stub macros and hopefully few prototypes,
17510     which can conflict with char $ac_func(); below.  */
17511 #include <assert.h>
17512 /* Override any gcc2 internal prototype to avoid an error.  */
17513 /* We use char because int might match the return type of a gcc2
17514     builtin and then its argument prototype would still apply.  */
17515 char $ac_func();
17516
17517 int main() {
17518
17519 /* The GNU C library defines this for functions which it implements
17520     to always fail with ENOSYS.  Some functions are actually named
17521     something starting with __ and the normal name is an alias.  */
17522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17523 choke me
17524 #else
17525 $ac_func();
17526 #endif
17527
17528 ; return 0; }
17529 EOF
17530 if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531   rm -rf conftest*
17532   eval "ac_cv_func_$ac_func=yes"
17533 else
17534   echo "configure: failed program was:" >&5
17535   cat conftest.$ac_ext >&5
17536   rm -rf conftest*
17537   eval "ac_cv_func_$ac_func=no"
17538 fi
17539 rm -f conftest*
17540 fi
17541
17542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17543   echo "$ac_t""yes" 1>&6
17544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17545   cat >> confdefs.h <<EOF
17546 #define $ac_tr_func 1
17547 EOF
17548  
17549 else
17550   echo "$ac_t""no" 1>&6
17551 fi
17552 done
17553
17554     fi
17555   fi
17556
17557   
17558   
17559   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17560 echo "configure:17561: checking for fabsl declaration" >&5
17561   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17562     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17563   echo $ac_n "(cached) $ac_c" 1>&6
17564 else
17565   
17566       
17567       ac_ext=C
17568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17569 ac_cpp='$CXXCPP $CPPFLAGS'
17570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17572 cross_compiling=$ac_cv_prog_cxx_cross
17573
17574       cat > conftest.$ac_ext <<EOF
17575 #line 17576 "configure"
17576 #include "confdefs.h"
17577 #include <math.h>
17578                       #ifdef HAVE_IEEEFP_H
17579                       #include <ieeefp.h>
17580                       #endif
17581                      
17582 int main() {
17583  fabsl(0);
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17587   rm -rf conftest*
17588   glibcpp_cv_func_fabsl_use=yes
17589 else
17590   echo "configure: failed program was:" >&5
17591   cat conftest.$ac_ext >&5
17592   rm -rf conftest*
17593   glibcpp_cv_func_fabsl_use=no
17594 fi
17595 rm -f conftest*
17596       ac_ext=c
17597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17598 ac_cpp='$CPP $CPPFLAGS'
17599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17601 cross_compiling=$ac_cv_prog_cc_cross
17602
17603     
17604 fi
17605
17606   fi
17607   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17608
17609   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17610     for ac_func in fabsl
17611 do
17612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17613 echo "configure:17614: checking for $ac_func" >&5
17614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17615   echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617   cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17620 /* System header to define __stub macros and hopefully few prototypes,
17621     which can conflict with char $ac_func(); below.  */
17622 #include <assert.h>
17623 /* Override any gcc2 internal prototype to avoid an error.  */
17624 /* We use char because int might match the return type of a gcc2
17625     builtin and then its argument prototype would still apply.  */
17626 char $ac_func();
17627
17628 int main() {
17629
17630 /* The GNU C library defines this for functions which it implements
17631     to always fail with ENOSYS.  Some functions are actually named
17632     something starting with __ and the normal name is an alias.  */
17633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17634 choke me
17635 #else
17636 $ac_func();
17637 #endif
17638
17639 ; return 0; }
17640 EOF
17641 if { (eval echo configure:17642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17642   rm -rf conftest*
17643   eval "ac_cv_func_$ac_func=yes"
17644 else
17645   echo "configure: failed program was:" >&5
17646   cat conftest.$ac_ext >&5
17647   rm -rf conftest*
17648   eval "ac_cv_func_$ac_func=no"
17649 fi
17650 rm -f conftest*
17651 fi
17652
17653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17654   echo "$ac_t""yes" 1>&6
17655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17656   cat >> confdefs.h <<EOF
17657 #define $ac_tr_func 1
17658 EOF
17659  
17660 else
17661   echo "$ac_t""no" 1>&6
17662 fi
17663 done
17664
17665   else
17666     
17667   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17668 echo "configure:17669: checking for _fabsl declaration" >&5
17669   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17670     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17671   echo $ac_n "(cached) $ac_c" 1>&6
17672 else
17673   
17674       
17675       ac_ext=C
17676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17677 ac_cpp='$CXXCPP $CPPFLAGS'
17678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17680 cross_compiling=$ac_cv_prog_cxx_cross
17681
17682       cat > conftest.$ac_ext <<EOF
17683 #line 17684 "configure"
17684 #include "confdefs.h"
17685 #include <math.h>
17686                       #ifdef HAVE_IEEEFP_H
17687                       #include <ieeefp.h>
17688                       #endif
17689                      
17690 int main() {
17691  _fabsl(0);
17692 ; return 0; }
17693 EOF
17694 if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17695   rm -rf conftest*
17696   glibcpp_cv_func__fabsl_use=yes
17697 else
17698   echo "configure: failed program was:" >&5
17699   cat conftest.$ac_ext >&5
17700   rm -rf conftest*
17701   glibcpp_cv_func__fabsl_use=no
17702 fi
17703 rm -f conftest*
17704       ac_ext=c
17705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cc_cross
17710
17711     
17712 fi
17713
17714   fi
17715   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17716
17717     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17718       for ac_func in _fabsl
17719 do
17720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17721 echo "configure:17722: checking for $ac_func" >&5
17722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17723   echo $ac_n "(cached) $ac_c" 1>&6
17724 else
17725   cat > conftest.$ac_ext <<EOF
17726 #line 17727 "configure"
17727 #include "confdefs.h"
17728 /* System header to define __stub macros and hopefully few prototypes,
17729     which can conflict with char $ac_func(); below.  */
17730 #include <assert.h>
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 /* We use char because int might match the return type of a gcc2
17733     builtin and then its argument prototype would still apply.  */
17734 char $ac_func();
17735
17736 int main() {
17737
17738 /* The GNU C library defines this for functions which it implements
17739     to always fail with ENOSYS.  Some functions are actually named
17740     something starting with __ and the normal name is an alias.  */
17741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17742 choke me
17743 #else
17744 $ac_func();
17745 #endif
17746
17747 ; return 0; }
17748 EOF
17749 if { (eval echo configure:17750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17750   rm -rf conftest*
17751   eval "ac_cv_func_$ac_func=yes"
17752 else
17753   echo "configure: failed program was:" >&5
17754   cat conftest.$ac_ext >&5
17755   rm -rf conftest*
17756   eval "ac_cv_func_$ac_func=no"
17757 fi
17758 rm -f conftest*
17759 fi
17760
17761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17762   echo "$ac_t""yes" 1>&6
17763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17764   cat >> confdefs.h <<EOF
17765 #define $ac_tr_func 1
17766 EOF
17767  
17768 else
17769   echo "$ac_t""no" 1>&6
17770 fi
17771 done
17772
17773     fi
17774   fi
17775
17776   
17777   
17778   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17779 echo "configure:17780: checking for fmodl declaration" >&5
17780   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17781     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17782   echo $ac_n "(cached) $ac_c" 1>&6
17783 else
17784   
17785       
17786       ac_ext=C
17787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17791 cross_compiling=$ac_cv_prog_cxx_cross
17792
17793       cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17796 #include <math.h>
17797 int main() {
17798  fmodl(0, 0);
17799 ; return 0; }
17800 EOF
17801 if { (eval echo configure:17802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17802   rm -rf conftest*
17803   glibcpp_cv_func_fmodl_use=yes
17804 else
17805   echo "configure: failed program was:" >&5
17806   cat conftest.$ac_ext >&5
17807   rm -rf conftest*
17808   glibcpp_cv_func_fmodl_use=no
17809 fi
17810 rm -f conftest*
17811       ac_ext=c
17812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17813 ac_cpp='$CPP $CPPFLAGS'
17814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17816 cross_compiling=$ac_cv_prog_cc_cross
17817
17818     
17819 fi
17820
17821   fi
17822   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17823
17824   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17825     for ac_func in fmodl
17826 do
17827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17828 echo "configure:17829: checking for $ac_func" >&5
17829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17830   echo $ac_n "(cached) $ac_c" 1>&6
17831 else
17832   cat > conftest.$ac_ext <<EOF
17833 #line 17834 "configure"
17834 #include "confdefs.h"
17835 /* System header to define __stub macros and hopefully few prototypes,
17836     which can conflict with char $ac_func(); below.  */
17837 #include <assert.h>
17838 /* Override any gcc2 internal prototype to avoid an error.  */
17839 /* We use char because int might match the return type of a gcc2
17840     builtin and then its argument prototype would still apply.  */
17841 char $ac_func();
17842
17843 int main() {
17844
17845 /* The GNU C library defines this for functions which it implements
17846     to always fail with ENOSYS.  Some functions are actually named
17847     something starting with __ and the normal name is an alias.  */
17848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849 choke me
17850 #else
17851 $ac_func();
17852 #endif
17853
17854 ; return 0; }
17855 EOF
17856 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17857   rm -rf conftest*
17858   eval "ac_cv_func_$ac_func=yes"
17859 else
17860   echo "configure: failed program was:" >&5
17861   cat conftest.$ac_ext >&5
17862   rm -rf conftest*
17863   eval "ac_cv_func_$ac_func=no"
17864 fi
17865 rm -f conftest*
17866 fi
17867
17868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17869   echo "$ac_t""yes" 1>&6
17870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17871   cat >> confdefs.h <<EOF
17872 #define $ac_tr_func 1
17873 EOF
17874  
17875 else
17876   echo "$ac_t""no" 1>&6
17877 fi
17878 done
17879
17880   else
17881     
17882   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17883 echo "configure:17884: checking for _fmodl declaration" >&5
17884   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17885     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17886   echo $ac_n "(cached) $ac_c" 1>&6
17887 else
17888   
17889       
17890       ac_ext=C
17891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17892 ac_cpp='$CXXCPP $CPPFLAGS'
17893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17895 cross_compiling=$ac_cv_prog_cxx_cross
17896
17897       cat > conftest.$ac_ext <<EOF
17898 #line 17899 "configure"
17899 #include "confdefs.h"
17900 #include <math.h>
17901 int main() {
17902  _fmodl(0, 0);
17903 ; return 0; }
17904 EOF
17905 if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17906   rm -rf conftest*
17907   glibcpp_cv_func__fmodl_use=yes
17908 else
17909   echo "configure: failed program was:" >&5
17910   cat conftest.$ac_ext >&5
17911   rm -rf conftest*
17912   glibcpp_cv_func__fmodl_use=no
17913 fi
17914 rm -f conftest*
17915       ac_ext=c
17916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17917 ac_cpp='$CPP $CPPFLAGS'
17918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17920 cross_compiling=$ac_cv_prog_cc_cross
17921
17922     
17923 fi
17924
17925   fi
17926   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17927
17928     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17929       for ac_func in _fmodl
17930 do
17931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17932 echo "configure:17933: checking for $ac_func" >&5
17933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17934   echo $ac_n "(cached) $ac_c" 1>&6
17935 else
17936   cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17939 /* System header to define __stub macros and hopefully few prototypes,
17940     which can conflict with char $ac_func(); below.  */
17941 #include <assert.h>
17942 /* Override any gcc2 internal prototype to avoid an error.  */
17943 /* We use char because int might match the return type of a gcc2
17944     builtin and then its argument prototype would still apply.  */
17945 char $ac_func();
17946
17947 int main() {
17948
17949 /* The GNU C library defines this for functions which it implements
17950     to always fail with ENOSYS.  Some functions are actually named
17951     something starting with __ and the normal name is an alias.  */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 $ac_func();
17956 #endif
17957
17958 ; return 0; }
17959 EOF
17960 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17961   rm -rf conftest*
17962   eval "ac_cv_func_$ac_func=yes"
17963 else
17964   echo "configure: failed program was:" >&5
17965   cat conftest.$ac_ext >&5
17966   rm -rf conftest*
17967   eval "ac_cv_func_$ac_func=no"
17968 fi
17969 rm -f conftest*
17970 fi
17971
17972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17973   echo "$ac_t""yes" 1>&6
17974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17975   cat >> confdefs.h <<EOF
17976 #define $ac_tr_func 1
17977 EOF
17978  
17979 else
17980   echo "$ac_t""no" 1>&6
17981 fi
17982 done
17983
17984     fi
17985   fi
17986
17987   
17988   
17989   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17990 echo "configure:17991: checking for frexpl declaration" >&5
17991   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17992     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17993   echo $ac_n "(cached) $ac_c" 1>&6
17994 else
17995   
17996       
17997       ac_ext=C
17998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17999 ac_cpp='$CXXCPP $CPPFLAGS'
18000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18002 cross_compiling=$ac_cv_prog_cxx_cross
18003
18004       cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18007 #include <math.h>
18008 int main() {
18009  frexpl(0, 0);
18010 ; return 0; }
18011 EOF
18012 if { (eval echo configure:18013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18013   rm -rf conftest*
18014   glibcpp_cv_func_frexpl_use=yes
18015 else
18016   echo "configure: failed program was:" >&5
18017   cat conftest.$ac_ext >&5
18018   rm -rf conftest*
18019   glibcpp_cv_func_frexpl_use=no
18020 fi
18021 rm -f conftest*
18022       ac_ext=c
18023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18024 ac_cpp='$CPP $CPPFLAGS'
18025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18027 cross_compiling=$ac_cv_prog_cc_cross
18028
18029     
18030 fi
18031
18032   fi
18033   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18034
18035   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18036     for ac_func in frexpl
18037 do
18038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18039 echo "configure:18040: checking for $ac_func" >&5
18040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18041   echo $ac_n "(cached) $ac_c" 1>&6
18042 else
18043   cat > conftest.$ac_ext <<EOF
18044 #line 18045 "configure"
18045 #include "confdefs.h"
18046 /* System header to define __stub macros and hopefully few prototypes,
18047     which can conflict with char $ac_func(); below.  */
18048 #include <assert.h>
18049 /* Override any gcc2 internal prototype to avoid an error.  */
18050 /* We use char because int might match the return type of a gcc2
18051     builtin and then its argument prototype would still apply.  */
18052 char $ac_func();
18053
18054 int main() {
18055
18056 /* The GNU C library defines this for functions which it implements
18057     to always fail with ENOSYS.  Some functions are actually named
18058     something starting with __ and the normal name is an alias.  */
18059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18060 choke me
18061 #else
18062 $ac_func();
18063 #endif
18064
18065 ; return 0; }
18066 EOF
18067 if { (eval echo configure:18068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18068   rm -rf conftest*
18069   eval "ac_cv_func_$ac_func=yes"
18070 else
18071   echo "configure: failed program was:" >&5
18072   cat conftest.$ac_ext >&5
18073   rm -rf conftest*
18074   eval "ac_cv_func_$ac_func=no"
18075 fi
18076 rm -f conftest*
18077 fi
18078
18079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18080   echo "$ac_t""yes" 1>&6
18081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18082   cat >> confdefs.h <<EOF
18083 #define $ac_tr_func 1
18084 EOF
18085  
18086 else
18087   echo "$ac_t""no" 1>&6
18088 fi
18089 done
18090
18091   else
18092     
18093   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18094 echo "configure:18095: checking for _frexpl declaration" >&5
18095   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18096     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18097   echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18099   
18100       
18101       ac_ext=C
18102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18103 ac_cpp='$CXXCPP $CPPFLAGS'
18104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18106 cross_compiling=$ac_cv_prog_cxx_cross
18107
18108       cat > conftest.$ac_ext <<EOF
18109 #line 18110 "configure"
18110 #include "confdefs.h"
18111 #include <math.h>
18112 int main() {
18113  _frexpl(0, 0);
18114 ; return 0; }
18115 EOF
18116 if { (eval echo configure:18117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18117   rm -rf conftest*
18118   glibcpp_cv_func__frexpl_use=yes
18119 else
18120   echo "configure: failed program was:" >&5
18121   cat conftest.$ac_ext >&5
18122   rm -rf conftest*
18123   glibcpp_cv_func__frexpl_use=no
18124 fi
18125 rm -f conftest*
18126       ac_ext=c
18127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18128 ac_cpp='$CPP $CPPFLAGS'
18129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18131 cross_compiling=$ac_cv_prog_cc_cross
18132
18133     
18134 fi
18135
18136   fi
18137   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18138
18139     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18140       for ac_func in _frexpl
18141 do
18142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18143 echo "configure:18144: checking for $ac_func" >&5
18144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18145   echo $ac_n "(cached) $ac_c" 1>&6
18146 else
18147   cat > conftest.$ac_ext <<EOF
18148 #line 18149 "configure"
18149 #include "confdefs.h"
18150 /* System header to define __stub macros and hopefully few prototypes,
18151     which can conflict with char $ac_func(); below.  */
18152 #include <assert.h>
18153 /* Override any gcc2 internal prototype to avoid an error.  */
18154 /* We use char because int might match the return type of a gcc2
18155     builtin and then its argument prototype would still apply.  */
18156 char $ac_func();
18157
18158 int main() {
18159
18160 /* The GNU C library defines this for functions which it implements
18161     to always fail with ENOSYS.  Some functions are actually named
18162     something starting with __ and the normal name is an alias.  */
18163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18164 choke me
18165 #else
18166 $ac_func();
18167 #endif
18168
18169 ; return 0; }
18170 EOF
18171 if { (eval echo configure:18172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18172   rm -rf conftest*
18173   eval "ac_cv_func_$ac_func=yes"
18174 else
18175   echo "configure: failed program was:" >&5
18176   cat conftest.$ac_ext >&5
18177   rm -rf conftest*
18178   eval "ac_cv_func_$ac_func=no"
18179 fi
18180 rm -f conftest*
18181 fi
18182
18183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18184   echo "$ac_t""yes" 1>&6
18185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18186   cat >> confdefs.h <<EOF
18187 #define $ac_tr_func 1
18188 EOF
18189  
18190 else
18191   echo "$ac_t""no" 1>&6
18192 fi
18193 done
18194
18195     fi
18196   fi
18197
18198   
18199   
18200   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18201 echo "configure:18202: checking for hypotl declaration" >&5
18202   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18203     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18204   echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18206   
18207       
18208       ac_ext=C
18209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18210 ac_cpp='$CXXCPP $CPPFLAGS'
18211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18213 cross_compiling=$ac_cv_prog_cxx_cross
18214
18215       cat > conftest.$ac_ext <<EOF
18216 #line 18217 "configure"
18217 #include "confdefs.h"
18218 #include <math.h>
18219 int main() {
18220  hypotl(0, 0);
18221 ; return 0; }
18222 EOF
18223 if { (eval echo configure:18224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18224   rm -rf conftest*
18225   glibcpp_cv_func_hypotl_use=yes
18226 else
18227   echo "configure: failed program was:" >&5
18228   cat conftest.$ac_ext >&5
18229   rm -rf conftest*
18230   glibcpp_cv_func_hypotl_use=no
18231 fi
18232 rm -f conftest*
18233       ac_ext=c
18234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18238 cross_compiling=$ac_cv_prog_cc_cross
18239
18240     
18241 fi
18242
18243   fi
18244   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18245
18246   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18247     for ac_func in hypotl
18248 do
18249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18250 echo "configure:18251: checking for $ac_func" >&5
18251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18252   echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18254   cat > conftest.$ac_ext <<EOF
18255 #line 18256 "configure"
18256 #include "confdefs.h"
18257 /* System header to define __stub macros and hopefully few prototypes,
18258     which can conflict with char $ac_func(); below.  */
18259 #include <assert.h>
18260 /* Override any gcc2 internal prototype to avoid an error.  */
18261 /* We use char because int might match the return type of a gcc2
18262     builtin and then its argument prototype would still apply.  */
18263 char $ac_func();
18264
18265 int main() {
18266
18267 /* The GNU C library defines this for functions which it implements
18268     to always fail with ENOSYS.  Some functions are actually named
18269     something starting with __ and the normal name is an alias.  */
18270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18271 choke me
18272 #else
18273 $ac_func();
18274 #endif
18275
18276 ; return 0; }
18277 EOF
18278 if { (eval echo configure:18279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18279   rm -rf conftest*
18280   eval "ac_cv_func_$ac_func=yes"
18281 else
18282   echo "configure: failed program was:" >&5
18283   cat conftest.$ac_ext >&5
18284   rm -rf conftest*
18285   eval "ac_cv_func_$ac_func=no"
18286 fi
18287 rm -f conftest*
18288 fi
18289
18290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18291   echo "$ac_t""yes" 1>&6
18292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18293   cat >> confdefs.h <<EOF
18294 #define $ac_tr_func 1
18295 EOF
18296  
18297 else
18298   echo "$ac_t""no" 1>&6
18299 fi
18300 done
18301
18302   else
18303     
18304   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18305 echo "configure:18306: checking for _hypotl declaration" >&5
18306   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18307     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18308   echo $ac_n "(cached) $ac_c" 1>&6
18309 else
18310   
18311       
18312       ac_ext=C
18313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18314 ac_cpp='$CXXCPP $CPPFLAGS'
18315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18317 cross_compiling=$ac_cv_prog_cxx_cross
18318
18319       cat > conftest.$ac_ext <<EOF
18320 #line 18321 "configure"
18321 #include "confdefs.h"
18322 #include <math.h>
18323 int main() {
18324  _hypotl(0, 0);
18325 ; return 0; }
18326 EOF
18327 if { (eval echo configure:18328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18328   rm -rf conftest*
18329   glibcpp_cv_func__hypotl_use=yes
18330 else
18331   echo "configure: failed program was:" >&5
18332   cat conftest.$ac_ext >&5
18333   rm -rf conftest*
18334   glibcpp_cv_func__hypotl_use=no
18335 fi
18336 rm -f conftest*
18337       ac_ext=c
18338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339 ac_cpp='$CPP $CPPFLAGS'
18340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342 cross_compiling=$ac_cv_prog_cc_cross
18343
18344     
18345 fi
18346
18347   fi
18348   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18349
18350     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18351       for ac_func in _hypotl
18352 do
18353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18354 echo "configure:18355: checking for $ac_func" >&5
18355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18356   echo $ac_n "(cached) $ac_c" 1>&6
18357 else
18358   cat > conftest.$ac_ext <<EOF
18359 #line 18360 "configure"
18360 #include "confdefs.h"
18361 /* System header to define __stub macros and hopefully few prototypes,
18362     which can conflict with char $ac_func(); below.  */
18363 #include <assert.h>
18364 /* Override any gcc2 internal prototype to avoid an error.  */
18365 /* We use char because int might match the return type of a gcc2
18366     builtin and then its argument prototype would still apply.  */
18367 char $ac_func();
18368
18369 int main() {
18370
18371 /* The GNU C library defines this for functions which it implements
18372     to always fail with ENOSYS.  Some functions are actually named
18373     something starting with __ and the normal name is an alias.  */
18374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18375 choke me
18376 #else
18377 $ac_func();
18378 #endif
18379
18380 ; return 0; }
18381 EOF
18382 if { (eval echo configure:18383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18383   rm -rf conftest*
18384   eval "ac_cv_func_$ac_func=yes"
18385 else
18386   echo "configure: failed program was:" >&5
18387   cat conftest.$ac_ext >&5
18388   rm -rf conftest*
18389   eval "ac_cv_func_$ac_func=no"
18390 fi
18391 rm -f conftest*
18392 fi
18393
18394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18395   echo "$ac_t""yes" 1>&6
18396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18397   cat >> confdefs.h <<EOF
18398 #define $ac_tr_func 1
18399 EOF
18400  
18401 else
18402   echo "$ac_t""no" 1>&6
18403 fi
18404 done
18405
18406     fi
18407   fi
18408
18409   
18410   
18411   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18412 echo "configure:18413: checking for ldexpl declaration" >&5
18413   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18414     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18415   echo $ac_n "(cached) $ac_c" 1>&6
18416 else
18417   
18418       
18419       ac_ext=C
18420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18424 cross_compiling=$ac_cv_prog_cxx_cross
18425
18426       cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18429 #include <math.h>
18430 int main() {
18431  ldexpl(0, 0);
18432 ; return 0; }
18433 EOF
18434 if { (eval echo configure:18435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18435   rm -rf conftest*
18436   glibcpp_cv_func_ldexpl_use=yes
18437 else
18438   echo "configure: failed program was:" >&5
18439   cat conftest.$ac_ext >&5
18440   rm -rf conftest*
18441   glibcpp_cv_func_ldexpl_use=no
18442 fi
18443 rm -f conftest*
18444       ac_ext=c
18445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18446 ac_cpp='$CPP $CPPFLAGS'
18447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18449 cross_compiling=$ac_cv_prog_cc_cross
18450
18451     
18452 fi
18453
18454   fi
18455   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18456
18457   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18458     for ac_func in ldexpl
18459 do
18460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18461 echo "configure:18462: checking for $ac_func" >&5
18462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18463   echo $ac_n "(cached) $ac_c" 1>&6
18464 else
18465   cat > conftest.$ac_ext <<EOF
18466 #line 18467 "configure"
18467 #include "confdefs.h"
18468 /* System header to define __stub macros and hopefully few prototypes,
18469     which can conflict with char $ac_func(); below.  */
18470 #include <assert.h>
18471 /* Override any gcc2 internal prototype to avoid an error.  */
18472 /* We use char because int might match the return type of a gcc2
18473     builtin and then its argument prototype would still apply.  */
18474 char $ac_func();
18475
18476 int main() {
18477
18478 /* The GNU C library defines this for functions which it implements
18479     to always fail with ENOSYS.  Some functions are actually named
18480     something starting with __ and the normal name is an alias.  */
18481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18482 choke me
18483 #else
18484 $ac_func();
18485 #endif
18486
18487 ; return 0; }
18488 EOF
18489 if { (eval echo configure:18490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18490   rm -rf conftest*
18491   eval "ac_cv_func_$ac_func=yes"
18492 else
18493   echo "configure: failed program was:" >&5
18494   cat conftest.$ac_ext >&5
18495   rm -rf conftest*
18496   eval "ac_cv_func_$ac_func=no"
18497 fi
18498 rm -f conftest*
18499 fi
18500
18501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18502   echo "$ac_t""yes" 1>&6
18503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18504   cat >> confdefs.h <<EOF
18505 #define $ac_tr_func 1
18506 EOF
18507  
18508 else
18509   echo "$ac_t""no" 1>&6
18510 fi
18511 done
18512
18513   else
18514     
18515   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18516 echo "configure:18517: checking for _ldexpl declaration" >&5
18517   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18518     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18519   echo $ac_n "(cached) $ac_c" 1>&6
18520 else
18521   
18522       
18523       ac_ext=C
18524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18525 ac_cpp='$CXXCPP $CPPFLAGS'
18526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18528 cross_compiling=$ac_cv_prog_cxx_cross
18529
18530       cat > conftest.$ac_ext <<EOF
18531 #line 18532 "configure"
18532 #include "confdefs.h"
18533 #include <math.h>
18534 int main() {
18535  _ldexpl(0, 0);
18536 ; return 0; }
18537 EOF
18538 if { (eval echo configure:18539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18539   rm -rf conftest*
18540   glibcpp_cv_func__ldexpl_use=yes
18541 else
18542   echo "configure: failed program was:" >&5
18543   cat conftest.$ac_ext >&5
18544   rm -rf conftest*
18545   glibcpp_cv_func__ldexpl_use=no
18546 fi
18547 rm -f conftest*
18548       ac_ext=c
18549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18550 ac_cpp='$CPP $CPPFLAGS'
18551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18553 cross_compiling=$ac_cv_prog_cc_cross
18554
18555     
18556 fi
18557
18558   fi
18559   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18560
18561     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18562       for ac_func in _ldexpl
18563 do
18564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18565 echo "configure:18566: checking for $ac_func" >&5
18566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18567   echo $ac_n "(cached) $ac_c" 1>&6
18568 else
18569   cat > conftest.$ac_ext <<EOF
18570 #line 18571 "configure"
18571 #include "confdefs.h"
18572 /* System header to define __stub macros and hopefully few prototypes,
18573     which can conflict with char $ac_func(); below.  */
18574 #include <assert.h>
18575 /* Override any gcc2 internal prototype to avoid an error.  */
18576 /* We use char because int might match the return type of a gcc2
18577     builtin and then its argument prototype would still apply.  */
18578 char $ac_func();
18579
18580 int main() {
18581
18582 /* The GNU C library defines this for functions which it implements
18583     to always fail with ENOSYS.  Some functions are actually named
18584     something starting with __ and the normal name is an alias.  */
18585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18586 choke me
18587 #else
18588 $ac_func();
18589 #endif
18590
18591 ; return 0; }
18592 EOF
18593 if { (eval echo configure:18594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18594   rm -rf conftest*
18595   eval "ac_cv_func_$ac_func=yes"
18596 else
18597   echo "configure: failed program was:" >&5
18598   cat conftest.$ac_ext >&5
18599   rm -rf conftest*
18600   eval "ac_cv_func_$ac_func=no"
18601 fi
18602 rm -f conftest*
18603 fi
18604
18605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18606   echo "$ac_t""yes" 1>&6
18607     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18608   cat >> confdefs.h <<EOF
18609 #define $ac_tr_func 1
18610 EOF
18611  
18612 else
18613   echo "$ac_t""no" 1>&6
18614 fi
18615 done
18616
18617     fi
18618   fi
18619
18620   
18621   
18622   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18623 echo "configure:18624: checking for logl declaration" >&5
18624   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18625     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18626   echo $ac_n "(cached) $ac_c" 1>&6
18627 else
18628   
18629       
18630       ac_ext=C
18631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18632 ac_cpp='$CXXCPP $CPPFLAGS'
18633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18635 cross_compiling=$ac_cv_prog_cxx_cross
18636
18637       cat > conftest.$ac_ext <<EOF
18638 #line 18639 "configure"
18639 #include "confdefs.h"
18640 #include <math.h>
18641                       #ifdef HAVE_IEEEFP_H
18642                       #include <ieeefp.h>
18643                       #endif
18644                      
18645 int main() {
18646  logl(0);
18647 ; return 0; }
18648 EOF
18649 if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18650   rm -rf conftest*
18651   glibcpp_cv_func_logl_use=yes
18652 else
18653   echo "configure: failed program was:" >&5
18654   cat conftest.$ac_ext >&5
18655   rm -rf conftest*
18656   glibcpp_cv_func_logl_use=no
18657 fi
18658 rm -f conftest*
18659       ac_ext=c
18660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18664 cross_compiling=$ac_cv_prog_cc_cross
18665
18666     
18667 fi
18668
18669   fi
18670   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18671
18672   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18673     for ac_func in logl
18674 do
18675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18676 echo "configure:18677: checking for $ac_func" >&5
18677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18678   echo $ac_n "(cached) $ac_c" 1>&6
18679 else
18680   cat > conftest.$ac_ext <<EOF
18681 #line 18682 "configure"
18682 #include "confdefs.h"
18683 /* System header to define __stub macros and hopefully few prototypes,
18684     which can conflict with char $ac_func(); below.  */
18685 #include <assert.h>
18686 /* Override any gcc2 internal prototype to avoid an error.  */
18687 /* We use char because int might match the return type of a gcc2
18688     builtin and then its argument prototype would still apply.  */
18689 char $ac_func();
18690
18691 int main() {
18692
18693 /* The GNU C library defines this for functions which it implements
18694     to always fail with ENOSYS.  Some functions are actually named
18695     something starting with __ and the normal name is an alias.  */
18696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18697 choke me
18698 #else
18699 $ac_func();
18700 #endif
18701
18702 ; return 0; }
18703 EOF
18704 if { (eval echo configure:18705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18705   rm -rf conftest*
18706   eval "ac_cv_func_$ac_func=yes"
18707 else
18708   echo "configure: failed program was:" >&5
18709   cat conftest.$ac_ext >&5
18710   rm -rf conftest*
18711   eval "ac_cv_func_$ac_func=no"
18712 fi
18713 rm -f conftest*
18714 fi
18715
18716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18717   echo "$ac_t""yes" 1>&6
18718     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18719   cat >> confdefs.h <<EOF
18720 #define $ac_tr_func 1
18721 EOF
18722  
18723 else
18724   echo "$ac_t""no" 1>&6
18725 fi
18726 done
18727
18728   else
18729     
18730   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18731 echo "configure:18732: checking for _logl declaration" >&5
18732   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18733     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18734   echo $ac_n "(cached) $ac_c" 1>&6
18735 else
18736   
18737       
18738       ac_ext=C
18739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18740 ac_cpp='$CXXCPP $CPPFLAGS'
18741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18743 cross_compiling=$ac_cv_prog_cxx_cross
18744
18745       cat > conftest.$ac_ext <<EOF
18746 #line 18747 "configure"
18747 #include "confdefs.h"
18748 #include <math.h>
18749                       #ifdef HAVE_IEEEFP_H
18750                       #include <ieeefp.h>
18751                       #endif
18752                      
18753 int main() {
18754  _logl(0);
18755 ; return 0; }
18756 EOF
18757 if { (eval echo configure:18758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18758   rm -rf conftest*
18759   glibcpp_cv_func__logl_use=yes
18760 else
18761   echo "configure: failed program was:" >&5
18762   cat conftest.$ac_ext >&5
18763   rm -rf conftest*
18764   glibcpp_cv_func__logl_use=no
18765 fi
18766 rm -f conftest*
18767       ac_ext=c
18768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18772 cross_compiling=$ac_cv_prog_cc_cross
18773
18774     
18775 fi
18776
18777   fi
18778   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18779
18780     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18781       for ac_func in _logl
18782 do
18783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18784 echo "configure:18785: checking for $ac_func" >&5
18785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18786   echo $ac_n "(cached) $ac_c" 1>&6
18787 else
18788   cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18791 /* System header to define __stub macros and hopefully few prototypes,
18792     which can conflict with char $ac_func(); below.  */
18793 #include <assert.h>
18794 /* Override any gcc2 internal prototype to avoid an error.  */
18795 /* We use char because int might match the return type of a gcc2
18796     builtin and then its argument prototype would still apply.  */
18797 char $ac_func();
18798
18799 int main() {
18800
18801 /* The GNU C library defines this for functions which it implements
18802     to always fail with ENOSYS.  Some functions are actually named
18803     something starting with __ and the normal name is an alias.  */
18804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18805 choke me
18806 #else
18807 $ac_func();
18808 #endif
18809
18810 ; return 0; }
18811 EOF
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18813   rm -rf conftest*
18814   eval "ac_cv_func_$ac_func=yes"
18815 else
18816   echo "configure: failed program was:" >&5
18817   cat conftest.$ac_ext >&5
18818   rm -rf conftest*
18819   eval "ac_cv_func_$ac_func=no"
18820 fi
18821 rm -f conftest*
18822 fi
18823
18824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18825   echo "$ac_t""yes" 1>&6
18826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18827   cat >> confdefs.h <<EOF
18828 #define $ac_tr_func 1
18829 EOF
18830  
18831 else
18832   echo "$ac_t""no" 1>&6
18833 fi
18834 done
18835
18836     fi
18837   fi
18838
18839   
18840   
18841   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18842 echo "configure:18843: checking for log10l declaration" >&5
18843   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18844     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18845   echo $ac_n "(cached) $ac_c" 1>&6
18846 else
18847   
18848       
18849       ac_ext=C
18850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18851 ac_cpp='$CXXCPP $CPPFLAGS'
18852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18854 cross_compiling=$ac_cv_prog_cxx_cross
18855
18856       cat > conftest.$ac_ext <<EOF
18857 #line 18858 "configure"
18858 #include "confdefs.h"
18859 #include <math.h>
18860                       #ifdef HAVE_IEEEFP_H
18861                       #include <ieeefp.h>
18862                       #endif
18863                      
18864 int main() {
18865  log10l(0);
18866 ; return 0; }
18867 EOF
18868 if { (eval echo configure:18869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18869   rm -rf conftest*
18870   glibcpp_cv_func_log10l_use=yes
18871 else
18872   echo "configure: failed program was:" >&5
18873   cat conftest.$ac_ext >&5
18874   rm -rf conftest*
18875   glibcpp_cv_func_log10l_use=no
18876 fi
18877 rm -f conftest*
18878       ac_ext=c
18879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18880 ac_cpp='$CPP $CPPFLAGS'
18881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18883 cross_compiling=$ac_cv_prog_cc_cross
18884
18885     
18886 fi
18887
18888   fi
18889   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18890
18891   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18892     for ac_func in log10l
18893 do
18894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18895 echo "configure:18896: checking for $ac_func" >&5
18896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18897   echo $ac_n "(cached) $ac_c" 1>&6
18898 else
18899   cat > conftest.$ac_ext <<EOF
18900 #line 18901 "configure"
18901 #include "confdefs.h"
18902 /* System header to define __stub macros and hopefully few prototypes,
18903     which can conflict with char $ac_func(); below.  */
18904 #include <assert.h>
18905 /* Override any gcc2 internal prototype to avoid an error.  */
18906 /* We use char because int might match the return type of a gcc2
18907     builtin and then its argument prototype would still apply.  */
18908 char $ac_func();
18909
18910 int main() {
18911
18912 /* The GNU C library defines this for functions which it implements
18913     to always fail with ENOSYS.  Some functions are actually named
18914     something starting with __ and the normal name is an alias.  */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18916 choke me
18917 #else
18918 $ac_func();
18919 #endif
18920
18921 ; return 0; }
18922 EOF
18923 if { (eval echo configure:18924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18924   rm -rf conftest*
18925   eval "ac_cv_func_$ac_func=yes"
18926 else
18927   echo "configure: failed program was:" >&5
18928   cat conftest.$ac_ext >&5
18929   rm -rf conftest*
18930   eval "ac_cv_func_$ac_func=no"
18931 fi
18932 rm -f conftest*
18933 fi
18934
18935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18936   echo "$ac_t""yes" 1>&6
18937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18938   cat >> confdefs.h <<EOF
18939 #define $ac_tr_func 1
18940 EOF
18941  
18942 else
18943   echo "$ac_t""no" 1>&6
18944 fi
18945 done
18946
18947   else
18948     
18949   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18950 echo "configure:18951: checking for _log10l declaration" >&5
18951   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18952     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18953   echo $ac_n "(cached) $ac_c" 1>&6
18954 else
18955   
18956       
18957       ac_ext=C
18958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18959 ac_cpp='$CXXCPP $CPPFLAGS'
18960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18962 cross_compiling=$ac_cv_prog_cxx_cross
18963
18964       cat > conftest.$ac_ext <<EOF
18965 #line 18966 "configure"
18966 #include "confdefs.h"
18967 #include <math.h>
18968                       #ifdef HAVE_IEEEFP_H
18969                       #include <ieeefp.h>
18970                       #endif
18971                      
18972 int main() {
18973  _log10l(0);
18974 ; return 0; }
18975 EOF
18976 if { (eval echo configure:18977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18977   rm -rf conftest*
18978   glibcpp_cv_func__log10l_use=yes
18979 else
18980   echo "configure: failed program was:" >&5
18981   cat conftest.$ac_ext >&5
18982   rm -rf conftest*
18983   glibcpp_cv_func__log10l_use=no
18984 fi
18985 rm -f conftest*
18986       ac_ext=c
18987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18988 ac_cpp='$CPP $CPPFLAGS'
18989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18991 cross_compiling=$ac_cv_prog_cc_cross
18992
18993     
18994 fi
18995
18996   fi
18997   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18998
18999     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19000       for ac_func in _log10l
19001 do
19002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19003 echo "configure:19004: checking for $ac_func" >&5
19004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19005   echo $ac_n "(cached) $ac_c" 1>&6
19006 else
19007   cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19010 /* System header to define __stub macros and hopefully few prototypes,
19011     which can conflict with char $ac_func(); below.  */
19012 #include <assert.h>
19013 /* Override any gcc2 internal prototype to avoid an error.  */
19014 /* We use char because int might match the return type of a gcc2
19015     builtin and then its argument prototype would still apply.  */
19016 char $ac_func();
19017
19018 int main() {
19019
19020 /* The GNU C library defines this for functions which it implements
19021     to always fail with ENOSYS.  Some functions are actually named
19022     something starting with __ and the normal name is an alias.  */
19023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19024 choke me
19025 #else
19026 $ac_func();
19027 #endif
19028
19029 ; return 0; }
19030 EOF
19031 if { (eval echo configure:19032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19032   rm -rf conftest*
19033   eval "ac_cv_func_$ac_func=yes"
19034 else
19035   echo "configure: failed program was:" >&5
19036   cat conftest.$ac_ext >&5
19037   rm -rf conftest*
19038   eval "ac_cv_func_$ac_func=no"
19039 fi
19040 rm -f conftest*
19041 fi
19042
19043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19044   echo "$ac_t""yes" 1>&6
19045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19046   cat >> confdefs.h <<EOF
19047 #define $ac_tr_func 1
19048 EOF
19049  
19050 else
19051   echo "$ac_t""no" 1>&6
19052 fi
19053 done
19054
19055     fi
19056   fi
19057
19058   
19059   
19060   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19061 echo "configure:19062: checking for modfl declaration" >&5
19062   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19063     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19064   echo $ac_n "(cached) $ac_c" 1>&6
19065 else
19066   
19067       
19068       ac_ext=C
19069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19070 ac_cpp='$CXXCPP $CPPFLAGS'
19071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19073 cross_compiling=$ac_cv_prog_cxx_cross
19074
19075       cat > conftest.$ac_ext <<EOF
19076 #line 19077 "configure"
19077 #include "confdefs.h"
19078 #include <math.h>
19079 int main() {
19080  modfl(0, 0);
19081 ; return 0; }
19082 EOF
19083 if { (eval echo configure:19084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19084   rm -rf conftest*
19085   glibcpp_cv_func_modfl_use=yes
19086 else
19087   echo "configure: failed program was:" >&5
19088   cat conftest.$ac_ext >&5
19089   rm -rf conftest*
19090   glibcpp_cv_func_modfl_use=no
19091 fi
19092 rm -f conftest*
19093       ac_ext=c
19094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19098 cross_compiling=$ac_cv_prog_cc_cross
19099
19100     
19101 fi
19102
19103   fi
19104   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19105
19106   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19107     for ac_func in modfl
19108 do
19109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19110 echo "configure:19111: checking for $ac_func" >&5
19111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19112   echo $ac_n "(cached) $ac_c" 1>&6
19113 else
19114   cat > conftest.$ac_ext <<EOF
19115 #line 19116 "configure"
19116 #include "confdefs.h"
19117 /* System header to define __stub macros and hopefully few prototypes,
19118     which can conflict with char $ac_func(); below.  */
19119 #include <assert.h>
19120 /* Override any gcc2 internal prototype to avoid an error.  */
19121 /* We use char because int might match the return type of a gcc2
19122     builtin and then its argument prototype would still apply.  */
19123 char $ac_func();
19124
19125 int main() {
19126
19127 /* The GNU C library defines this for functions which it implements
19128     to always fail with ENOSYS.  Some functions are actually named
19129     something starting with __ and the normal name is an alias.  */
19130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19131 choke me
19132 #else
19133 $ac_func();
19134 #endif
19135
19136 ; return 0; }
19137 EOF
19138 if { (eval echo configure:19139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19139   rm -rf conftest*
19140   eval "ac_cv_func_$ac_func=yes"
19141 else
19142   echo "configure: failed program was:" >&5
19143   cat conftest.$ac_ext >&5
19144   rm -rf conftest*
19145   eval "ac_cv_func_$ac_func=no"
19146 fi
19147 rm -f conftest*
19148 fi
19149
19150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19151   echo "$ac_t""yes" 1>&6
19152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19153   cat >> confdefs.h <<EOF
19154 #define $ac_tr_func 1
19155 EOF
19156  
19157 else
19158   echo "$ac_t""no" 1>&6
19159 fi
19160 done
19161
19162   else
19163     
19164   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19165 echo "configure:19166: checking for _modfl declaration" >&5
19166   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19167     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19168   echo $ac_n "(cached) $ac_c" 1>&6
19169 else
19170   
19171       
19172       ac_ext=C
19173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19174 ac_cpp='$CXXCPP $CPPFLAGS'
19175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19177 cross_compiling=$ac_cv_prog_cxx_cross
19178
19179       cat > conftest.$ac_ext <<EOF
19180 #line 19181 "configure"
19181 #include "confdefs.h"
19182 #include <math.h>
19183 int main() {
19184  _modfl(0, 0);
19185 ; return 0; }
19186 EOF
19187 if { (eval echo configure:19188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19188   rm -rf conftest*
19189   glibcpp_cv_func__modfl_use=yes
19190 else
19191   echo "configure: failed program was:" >&5
19192   cat conftest.$ac_ext >&5
19193   rm -rf conftest*
19194   glibcpp_cv_func__modfl_use=no
19195 fi
19196 rm -f conftest*
19197       ac_ext=c
19198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19202 cross_compiling=$ac_cv_prog_cc_cross
19203
19204     
19205 fi
19206
19207   fi
19208   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19209
19210     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19211       for ac_func in _modfl
19212 do
19213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19214 echo "configure:19215: checking for $ac_func" >&5
19215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19216   echo $ac_n "(cached) $ac_c" 1>&6
19217 else
19218   cat > conftest.$ac_ext <<EOF
19219 #line 19220 "configure"
19220 #include "confdefs.h"
19221 /* System header to define __stub macros and hopefully few prototypes,
19222     which can conflict with char $ac_func(); below.  */
19223 #include <assert.h>
19224 /* Override any gcc2 internal prototype to avoid an error.  */
19225 /* We use char because int might match the return type of a gcc2
19226     builtin and then its argument prototype would still apply.  */
19227 char $ac_func();
19228
19229 int main() {
19230
19231 /* The GNU C library defines this for functions which it implements
19232     to always fail with ENOSYS.  Some functions are actually named
19233     something starting with __ and the normal name is an alias.  */
19234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19235 choke me
19236 #else
19237 $ac_func();
19238 #endif
19239
19240 ; return 0; }
19241 EOF
19242 if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19243   rm -rf conftest*
19244   eval "ac_cv_func_$ac_func=yes"
19245 else
19246   echo "configure: failed program was:" >&5
19247   cat conftest.$ac_ext >&5
19248   rm -rf conftest*
19249   eval "ac_cv_func_$ac_func=no"
19250 fi
19251 rm -f conftest*
19252 fi
19253
19254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19255   echo "$ac_t""yes" 1>&6
19256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19257   cat >> confdefs.h <<EOF
19258 #define $ac_tr_func 1
19259 EOF
19260  
19261 else
19262   echo "$ac_t""no" 1>&6
19263 fi
19264 done
19265
19266     fi
19267   fi
19268
19269   
19270   
19271   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19272 echo "configure:19273: checking for powl declaration" >&5
19273   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19274     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19275   echo $ac_n "(cached) $ac_c" 1>&6
19276 else
19277   
19278       
19279       ac_ext=C
19280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19284 cross_compiling=$ac_cv_prog_cxx_cross
19285
19286       cat > conftest.$ac_ext <<EOF
19287 #line 19288 "configure"
19288 #include "confdefs.h"
19289 #include <math.h>
19290 int main() {
19291  powl(0, 0);
19292 ; return 0; }
19293 EOF
19294 if { (eval echo configure:19295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19295   rm -rf conftest*
19296   glibcpp_cv_func_powl_use=yes
19297 else
19298   echo "configure: failed program was:" >&5
19299   cat conftest.$ac_ext >&5
19300   rm -rf conftest*
19301   glibcpp_cv_func_powl_use=no
19302 fi
19303 rm -f conftest*
19304       ac_ext=c
19305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19306 ac_cpp='$CPP $CPPFLAGS'
19307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19309 cross_compiling=$ac_cv_prog_cc_cross
19310
19311     
19312 fi
19313
19314   fi
19315   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19316
19317   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19318     for ac_func in powl
19319 do
19320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19321 echo "configure:19322: checking for $ac_func" >&5
19322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19323   echo $ac_n "(cached) $ac_c" 1>&6
19324 else
19325   cat > conftest.$ac_ext <<EOF
19326 #line 19327 "configure"
19327 #include "confdefs.h"
19328 /* System header to define __stub macros and hopefully few prototypes,
19329     which can conflict with char $ac_func(); below.  */
19330 #include <assert.h>
19331 /* Override any gcc2 internal prototype to avoid an error.  */
19332 /* We use char because int might match the return type of a gcc2
19333     builtin and then its argument prototype would still apply.  */
19334 char $ac_func();
19335
19336 int main() {
19337
19338 /* The GNU C library defines this for functions which it implements
19339     to always fail with ENOSYS.  Some functions are actually named
19340     something starting with __ and the normal name is an alias.  */
19341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19342 choke me
19343 #else
19344 $ac_func();
19345 #endif
19346
19347 ; return 0; }
19348 EOF
19349 if { (eval echo configure:19350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19350   rm -rf conftest*
19351   eval "ac_cv_func_$ac_func=yes"
19352 else
19353   echo "configure: failed program was:" >&5
19354   cat conftest.$ac_ext >&5
19355   rm -rf conftest*
19356   eval "ac_cv_func_$ac_func=no"
19357 fi
19358 rm -f conftest*
19359 fi
19360
19361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19362   echo "$ac_t""yes" 1>&6
19363     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19364   cat >> confdefs.h <<EOF
19365 #define $ac_tr_func 1
19366 EOF
19367  
19368 else
19369   echo "$ac_t""no" 1>&6
19370 fi
19371 done
19372
19373   else
19374     
19375   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19376 echo "configure:19377: checking for _powl declaration" >&5
19377   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19378     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19379   echo $ac_n "(cached) $ac_c" 1>&6
19380 else
19381   
19382       
19383       ac_ext=C
19384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19385 ac_cpp='$CXXCPP $CPPFLAGS'
19386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19388 cross_compiling=$ac_cv_prog_cxx_cross
19389
19390       cat > conftest.$ac_ext <<EOF
19391 #line 19392 "configure"
19392 #include "confdefs.h"
19393 #include <math.h>
19394 int main() {
19395  _powl(0, 0);
19396 ; return 0; }
19397 EOF
19398 if { (eval echo configure:19399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19399   rm -rf conftest*
19400   glibcpp_cv_func__powl_use=yes
19401 else
19402   echo "configure: failed program was:" >&5
19403   cat conftest.$ac_ext >&5
19404   rm -rf conftest*
19405   glibcpp_cv_func__powl_use=no
19406 fi
19407 rm -f conftest*
19408       ac_ext=c
19409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19413 cross_compiling=$ac_cv_prog_cc_cross
19414
19415     
19416 fi
19417
19418   fi
19419   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19420
19421     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19422       for ac_func in _powl
19423 do
19424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19425 echo "configure:19426: checking for $ac_func" >&5
19426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19427   echo $ac_n "(cached) $ac_c" 1>&6
19428 else
19429   cat > conftest.$ac_ext <<EOF
19430 #line 19431 "configure"
19431 #include "confdefs.h"
19432 /* System header to define __stub macros and hopefully few prototypes,
19433     which can conflict with char $ac_func(); below.  */
19434 #include <assert.h>
19435 /* Override any gcc2 internal prototype to avoid an error.  */
19436 /* We use char because int might match the return type of a gcc2
19437     builtin and then its argument prototype would still apply.  */
19438 char $ac_func();
19439
19440 int main() {
19441
19442 /* The GNU C library defines this for functions which it implements
19443     to always fail with ENOSYS.  Some functions are actually named
19444     something starting with __ and the normal name is an alias.  */
19445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19446 choke me
19447 #else
19448 $ac_func();
19449 #endif
19450
19451 ; return 0; }
19452 EOF
19453 if { (eval echo configure:19454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19454   rm -rf conftest*
19455   eval "ac_cv_func_$ac_func=yes"
19456 else
19457   echo "configure: failed program was:" >&5
19458   cat conftest.$ac_ext >&5
19459   rm -rf conftest*
19460   eval "ac_cv_func_$ac_func=no"
19461 fi
19462 rm -f conftest*
19463 fi
19464
19465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19466   echo "$ac_t""yes" 1>&6
19467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19468   cat >> confdefs.h <<EOF
19469 #define $ac_tr_func 1
19470 EOF
19471  
19472 else
19473   echo "$ac_t""no" 1>&6
19474 fi
19475 done
19476
19477     fi
19478   fi
19479
19480   
19481   
19482   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19483 echo "configure:19484: checking for sqrtl declaration" >&5
19484   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19485     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19486   echo $ac_n "(cached) $ac_c" 1>&6
19487 else
19488   
19489       
19490       ac_ext=C
19491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19495 cross_compiling=$ac_cv_prog_cxx_cross
19496
19497       cat > conftest.$ac_ext <<EOF
19498 #line 19499 "configure"
19499 #include "confdefs.h"
19500 #include <math.h>
19501                       #ifdef HAVE_IEEEFP_H
19502                       #include <ieeefp.h>
19503                       #endif
19504                      
19505 int main() {
19506  sqrtl(0);
19507 ; return 0; }
19508 EOF
19509 if { (eval echo configure:19510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19510   rm -rf conftest*
19511   glibcpp_cv_func_sqrtl_use=yes
19512 else
19513   echo "configure: failed program was:" >&5
19514   cat conftest.$ac_ext >&5
19515   rm -rf conftest*
19516   glibcpp_cv_func_sqrtl_use=no
19517 fi
19518 rm -f conftest*
19519       ac_ext=c
19520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19521 ac_cpp='$CPP $CPPFLAGS'
19522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19524 cross_compiling=$ac_cv_prog_cc_cross
19525
19526     
19527 fi
19528
19529   fi
19530   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19531
19532   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19533     for ac_func in sqrtl
19534 do
19535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19536 echo "configure:19537: checking for $ac_func" >&5
19537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19538   echo $ac_n "(cached) $ac_c" 1>&6
19539 else
19540   cat > conftest.$ac_ext <<EOF
19541 #line 19542 "configure"
19542 #include "confdefs.h"
19543 /* System header to define __stub macros and hopefully few prototypes,
19544     which can conflict with char $ac_func(); below.  */
19545 #include <assert.h>
19546 /* Override any gcc2 internal prototype to avoid an error.  */
19547 /* We use char because int might match the return type of a gcc2
19548     builtin and then its argument prototype would still apply.  */
19549 char $ac_func();
19550
19551 int main() {
19552
19553 /* The GNU C library defines this for functions which it implements
19554     to always fail with ENOSYS.  Some functions are actually named
19555     something starting with __ and the normal name is an alias.  */
19556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19557 choke me
19558 #else
19559 $ac_func();
19560 #endif
19561
19562 ; return 0; }
19563 EOF
19564 if { (eval echo configure:19565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19565   rm -rf conftest*
19566   eval "ac_cv_func_$ac_func=yes"
19567 else
19568   echo "configure: failed program was:" >&5
19569   cat conftest.$ac_ext >&5
19570   rm -rf conftest*
19571   eval "ac_cv_func_$ac_func=no"
19572 fi
19573 rm -f conftest*
19574 fi
19575
19576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19577   echo "$ac_t""yes" 1>&6
19578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19579   cat >> confdefs.h <<EOF
19580 #define $ac_tr_func 1
19581 EOF
19582  
19583 else
19584   echo "$ac_t""no" 1>&6
19585 fi
19586 done
19587
19588   else
19589     
19590   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19591 echo "configure:19592: checking for _sqrtl declaration" >&5
19592   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19593     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19594   echo $ac_n "(cached) $ac_c" 1>&6
19595 else
19596   
19597       
19598       ac_ext=C
19599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19600 ac_cpp='$CXXCPP $CPPFLAGS'
19601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19603 cross_compiling=$ac_cv_prog_cxx_cross
19604
19605       cat > conftest.$ac_ext <<EOF
19606 #line 19607 "configure"
19607 #include "confdefs.h"
19608 #include <math.h>
19609                       #ifdef HAVE_IEEEFP_H
19610                       #include <ieeefp.h>
19611                       #endif
19612                      
19613 int main() {
19614  _sqrtl(0);
19615 ; return 0; }
19616 EOF
19617 if { (eval echo configure:19618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19618   rm -rf conftest*
19619   glibcpp_cv_func__sqrtl_use=yes
19620 else
19621   echo "configure: failed program was:" >&5
19622   cat conftest.$ac_ext >&5
19623   rm -rf conftest*
19624   glibcpp_cv_func__sqrtl_use=no
19625 fi
19626 rm -f conftest*
19627       ac_ext=c
19628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19632 cross_compiling=$ac_cv_prog_cc_cross
19633
19634     
19635 fi
19636
19637   fi
19638   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19639
19640     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19641       for ac_func in _sqrtl
19642 do
19643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19644 echo "configure:19645: checking for $ac_func" >&5
19645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19646   echo $ac_n "(cached) $ac_c" 1>&6
19647 else
19648   cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19651 /* System header to define __stub macros and hopefully few prototypes,
19652     which can conflict with char $ac_func(); below.  */
19653 #include <assert.h>
19654 /* Override any gcc2 internal prototype to avoid an error.  */
19655 /* We use char because int might match the return type of a gcc2
19656     builtin and then its argument prototype would still apply.  */
19657 char $ac_func();
19658
19659 int main() {
19660
19661 /* The GNU C library defines this for functions which it implements
19662     to always fail with ENOSYS.  Some functions are actually named
19663     something starting with __ and the normal name is an alias.  */
19664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19665 choke me
19666 #else
19667 $ac_func();
19668 #endif
19669
19670 ; return 0; }
19671 EOF
19672 if { (eval echo configure:19673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19673   rm -rf conftest*
19674   eval "ac_cv_func_$ac_func=yes"
19675 else
19676   echo "configure: failed program was:" >&5
19677   cat conftest.$ac_ext >&5
19678   rm -rf conftest*
19679   eval "ac_cv_func_$ac_func=no"
19680 fi
19681 rm -f conftest*
19682 fi
19683
19684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19685   echo "$ac_t""yes" 1>&6
19686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19687   cat >> confdefs.h <<EOF
19688 #define $ac_tr_func 1
19689 EOF
19690  
19691 else
19692   echo "$ac_t""no" 1>&6
19693 fi
19694 done
19695
19696     fi
19697   fi
19698
19699   
19700   
19701   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19702 echo "configure:19703: checking for sincosl declaration" >&5
19703   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19704     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19705   echo $ac_n "(cached) $ac_c" 1>&6
19706 else
19707   
19708       
19709       ac_ext=C
19710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19714 cross_compiling=$ac_cv_prog_cxx_cross
19715
19716       cat > conftest.$ac_ext <<EOF
19717 #line 19718 "configure"
19718 #include "confdefs.h"
19719 #include <math.h>
19720 int main() {
19721  sincosl(0, 0, 0);
19722 ; return 0; }
19723 EOF
19724 if { (eval echo configure:19725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19725   rm -rf conftest*
19726   glibcpp_cv_func_sincosl_use=yes
19727 else
19728   echo "configure: failed program was:" >&5
19729   cat conftest.$ac_ext >&5
19730   rm -rf conftest*
19731   glibcpp_cv_func_sincosl_use=no
19732 fi
19733 rm -f conftest*
19734       ac_ext=c
19735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19736 ac_cpp='$CPP $CPPFLAGS'
19737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19739 cross_compiling=$ac_cv_prog_cc_cross
19740
19741     
19742 fi
19743
19744   fi
19745   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19746
19747   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19748     for ac_func in sincosl
19749 do
19750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19751 echo "configure:19752: checking for $ac_func" >&5
19752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19753   echo $ac_n "(cached) $ac_c" 1>&6
19754 else
19755   cat > conftest.$ac_ext <<EOF
19756 #line 19757 "configure"
19757 #include "confdefs.h"
19758 /* System header to define __stub macros and hopefully few prototypes,
19759     which can conflict with char $ac_func(); below.  */
19760 #include <assert.h>
19761 /* Override any gcc2 internal prototype to avoid an error.  */
19762 /* We use char because int might match the return type of a gcc2
19763     builtin and then its argument prototype would still apply.  */
19764 char $ac_func();
19765
19766 int main() {
19767
19768 /* The GNU C library defines this for functions which it implements
19769     to always fail with ENOSYS.  Some functions are actually named
19770     something starting with __ and the normal name is an alias.  */
19771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19772 choke me
19773 #else
19774 $ac_func();
19775 #endif
19776
19777 ; return 0; }
19778 EOF
19779 if { (eval echo configure:19780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19780   rm -rf conftest*
19781   eval "ac_cv_func_$ac_func=yes"
19782 else
19783   echo "configure: failed program was:" >&5
19784   cat conftest.$ac_ext >&5
19785   rm -rf conftest*
19786   eval "ac_cv_func_$ac_func=no"
19787 fi
19788 rm -f conftest*
19789 fi
19790
19791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19792   echo "$ac_t""yes" 1>&6
19793     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19794   cat >> confdefs.h <<EOF
19795 #define $ac_tr_func 1
19796 EOF
19797  
19798 else
19799   echo "$ac_t""no" 1>&6
19800 fi
19801 done
19802
19803   else
19804     
19805   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19806 echo "configure:19807: checking for _sincosl declaration" >&5
19807   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19808     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19809   echo $ac_n "(cached) $ac_c" 1>&6
19810 else
19811   
19812       
19813       ac_ext=C
19814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19815 ac_cpp='$CXXCPP $CPPFLAGS'
19816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19818 cross_compiling=$ac_cv_prog_cxx_cross
19819
19820       cat > conftest.$ac_ext <<EOF
19821 #line 19822 "configure"
19822 #include "confdefs.h"
19823 #include <math.h>
19824 int main() {
19825  _sincosl(0, 0, 0);
19826 ; return 0; }
19827 EOF
19828 if { (eval echo configure:19829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19829   rm -rf conftest*
19830   glibcpp_cv_func__sincosl_use=yes
19831 else
19832   echo "configure: failed program was:" >&5
19833   cat conftest.$ac_ext >&5
19834   rm -rf conftest*
19835   glibcpp_cv_func__sincosl_use=no
19836 fi
19837 rm -f conftest*
19838       ac_ext=c
19839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19843 cross_compiling=$ac_cv_prog_cc_cross
19844
19845     
19846 fi
19847
19848   fi
19849   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19850
19851     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19852       for ac_func in _sincosl
19853 do
19854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19855 echo "configure:19856: checking for $ac_func" >&5
19856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19857   echo $ac_n "(cached) $ac_c" 1>&6
19858 else
19859   cat > conftest.$ac_ext <<EOF
19860 #line 19861 "configure"
19861 #include "confdefs.h"
19862 /* System header to define __stub macros and hopefully few prototypes,
19863     which can conflict with char $ac_func(); below.  */
19864 #include <assert.h>
19865 /* Override any gcc2 internal prototype to avoid an error.  */
19866 /* We use char because int might match the return type of a gcc2
19867     builtin and then its argument prototype would still apply.  */
19868 char $ac_func();
19869
19870 int main() {
19871
19872 /* The GNU C library defines this for functions which it implements
19873     to always fail with ENOSYS.  Some functions are actually named
19874     something starting with __ and the normal name is an alias.  */
19875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19876 choke me
19877 #else
19878 $ac_func();
19879 #endif
19880
19881 ; return 0; }
19882 EOF
19883 if { (eval echo configure:19884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19884   rm -rf conftest*
19885   eval "ac_cv_func_$ac_func=yes"
19886 else
19887   echo "configure: failed program was:" >&5
19888   cat conftest.$ac_ext >&5
19889   rm -rf conftest*
19890   eval "ac_cv_func_$ac_func=no"
19891 fi
19892 rm -f conftest*
19893 fi
19894
19895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19896   echo "$ac_t""yes" 1>&6
19897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19898   cat >> confdefs.h <<EOF
19899 #define $ac_tr_func 1
19900 EOF
19901  
19902 else
19903   echo "$ac_t""no" 1>&6
19904 fi
19905 done
19906
19907     fi
19908   fi
19909
19910   
19911   
19912   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19913 echo "configure:19914: checking for finitel declaration" >&5
19914   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19915     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19916   echo $ac_n "(cached) $ac_c" 1>&6
19917 else
19918   
19919       
19920       ac_ext=C
19921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19922 ac_cpp='$CXXCPP $CPPFLAGS'
19923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19925 cross_compiling=$ac_cv_prog_cxx_cross
19926
19927       cat > conftest.$ac_ext <<EOF
19928 #line 19929 "configure"
19929 #include "confdefs.h"
19930 #include <math.h>
19931                       #ifdef HAVE_IEEEFP_H
19932                       #include <ieeefp.h>
19933                       #endif
19934                      
19935 int main() {
19936  finitel(0);
19937 ; return 0; }
19938 EOF
19939 if { (eval echo configure:19940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19940   rm -rf conftest*
19941   glibcpp_cv_func_finitel_use=yes
19942 else
19943   echo "configure: failed program was:" >&5
19944   cat conftest.$ac_ext >&5
19945   rm -rf conftest*
19946   glibcpp_cv_func_finitel_use=no
19947 fi
19948 rm -f conftest*
19949       ac_ext=c
19950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19951 ac_cpp='$CPP $CPPFLAGS'
19952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19954 cross_compiling=$ac_cv_prog_cc_cross
19955
19956     
19957 fi
19958
19959   fi
19960   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19961
19962   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19963     for ac_func in finitel
19964 do
19965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19966 echo "configure:19967: checking for $ac_func" >&5
19967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19968   echo $ac_n "(cached) $ac_c" 1>&6
19969 else
19970   cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19973 /* System header to define __stub macros and hopefully few prototypes,
19974     which can conflict with char $ac_func(); below.  */
19975 #include <assert.h>
19976 /* Override any gcc2 internal prototype to avoid an error.  */
19977 /* We use char because int might match the return type of a gcc2
19978     builtin and then its argument prototype would still apply.  */
19979 char $ac_func();
19980
19981 int main() {
19982
19983 /* The GNU C library defines this for functions which it implements
19984     to always fail with ENOSYS.  Some functions are actually named
19985     something starting with __ and the normal name is an alias.  */
19986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19987 choke me
19988 #else
19989 $ac_func();
19990 #endif
19991
19992 ; return 0; }
19993 EOF
19994 if { (eval echo configure:19995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19995   rm -rf conftest*
19996   eval "ac_cv_func_$ac_func=yes"
19997 else
19998   echo "configure: failed program was:" >&5
19999   cat conftest.$ac_ext >&5
20000   rm -rf conftest*
20001   eval "ac_cv_func_$ac_func=no"
20002 fi
20003 rm -f conftest*
20004 fi
20005
20006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20007   echo "$ac_t""yes" 1>&6
20008     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20009   cat >> confdefs.h <<EOF
20010 #define $ac_tr_func 1
20011 EOF
20012  
20013 else
20014   echo "$ac_t""no" 1>&6
20015 fi
20016 done
20017
20018   else
20019     
20020   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20021 echo "configure:20022: checking for _finitel declaration" >&5
20022   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20023     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20024   echo $ac_n "(cached) $ac_c" 1>&6
20025 else
20026   
20027       
20028       ac_ext=C
20029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20033 cross_compiling=$ac_cv_prog_cxx_cross
20034
20035       cat > conftest.$ac_ext <<EOF
20036 #line 20037 "configure"
20037 #include "confdefs.h"
20038 #include <math.h>
20039                       #ifdef HAVE_IEEEFP_H
20040                       #include <ieeefp.h>
20041                       #endif
20042                      
20043 int main() {
20044  _finitel(0);
20045 ; return 0; }
20046 EOF
20047 if { (eval echo configure:20048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20048   rm -rf conftest*
20049   glibcpp_cv_func__finitel_use=yes
20050 else
20051   echo "configure: failed program was:" >&5
20052   cat conftest.$ac_ext >&5
20053   rm -rf conftest*
20054   glibcpp_cv_func__finitel_use=no
20055 fi
20056 rm -f conftest*
20057       ac_ext=c
20058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20059 ac_cpp='$CPP $CPPFLAGS'
20060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20062 cross_compiling=$ac_cv_prog_cc_cross
20063
20064     
20065 fi
20066
20067   fi
20068   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20069
20070     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20071       for ac_func in _finitel
20072 do
20073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20074 echo "configure:20075: checking for $ac_func" >&5
20075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20076   echo $ac_n "(cached) $ac_c" 1>&6
20077 else
20078   cat > conftest.$ac_ext <<EOF
20079 #line 20080 "configure"
20080 #include "confdefs.h"
20081 /* System header to define __stub macros and hopefully few prototypes,
20082     which can conflict with char $ac_func(); below.  */
20083 #include <assert.h>
20084 /* Override any gcc2 internal prototype to avoid an error.  */
20085 /* We use char because int might match the return type of a gcc2
20086     builtin and then its argument prototype would still apply.  */
20087 char $ac_func();
20088
20089 int main() {
20090
20091 /* The GNU C library defines this for functions which it implements
20092     to always fail with ENOSYS.  Some functions are actually named
20093     something starting with __ and the normal name is an alias.  */
20094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20095 choke me
20096 #else
20097 $ac_func();
20098 #endif
20099
20100 ; return 0; }
20101 EOF
20102 if { (eval echo configure:20103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20103   rm -rf conftest*
20104   eval "ac_cv_func_$ac_func=yes"
20105 else
20106   echo "configure: failed program was:" >&5
20107   cat conftest.$ac_ext >&5
20108   rm -rf conftest*
20109   eval "ac_cv_func_$ac_func=no"
20110 fi
20111 rm -f conftest*
20112 fi
20113
20114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20115   echo "$ac_t""yes" 1>&6
20116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20117   cat >> confdefs.h <<EOF
20118 #define $ac_tr_func 1
20119 EOF
20120  
20121 else
20122   echo "$ac_t""no" 1>&6
20123 fi
20124 done
20125
20126     fi
20127   fi
20128
20129
20130         
20131     
20132   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20133 echo "configure:20134: checking for _float trig functions" >&5
20134   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20135   echo $ac_n "(cached) $ac_c" 1>&6
20136 else
20137   
20138     
20139     ac_ext=C
20140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20141 ac_cpp='$CXXCPP $CPPFLAGS'
20142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20144 cross_compiling=$ac_cv_prog_cxx_cross
20145
20146     cat > conftest.$ac_ext <<EOF
20147 #line 20148 "configure"
20148 #include "confdefs.h"
20149 #include <math.h>
20150 int main() {
20151  `for x in _acosf _asinf _atanf \
20152                                           _cosf _sinf _tanf \
20153                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20154 ; return 0; }
20155 EOF
20156 if { (eval echo configure:20157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20157   rm -rf conftest*
20158   glibcpp_cv_func__float_trig_use=yes
20159 else
20160   echo "configure: failed program was:" >&5
20161   cat conftest.$ac_ext >&5
20162   rm -rf conftest*
20163   glibcpp_cv_func__float_trig_use=no
20164 fi
20165 rm -f conftest*
20166     ac_ext=c
20167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20168 ac_cpp='$CPP $CPPFLAGS'
20169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20171 cross_compiling=$ac_cv_prog_cc_cross
20172
20173 fi
20174
20175   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20176   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20177     for ac_func in _acosf _asinf _atanf \
20178                                           _cosf _sinf _tanf \
20179                                           _coshf _sinhf _tanhf
20180 do
20181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20182 echo "configure:20183: checking for $ac_func" >&5
20183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20184   echo $ac_n "(cached) $ac_c" 1>&6
20185 else
20186   cat > conftest.$ac_ext <<EOF
20187 #line 20188 "configure"
20188 #include "confdefs.h"
20189 /* System header to define __stub macros and hopefully few prototypes,
20190     which can conflict with char $ac_func(); below.  */
20191 #include <assert.h>
20192 /* Override any gcc2 internal prototype to avoid an error.  */
20193 /* We use char because int might match the return type of a gcc2
20194     builtin and then its argument prototype would still apply.  */
20195 char $ac_func();
20196
20197 int main() {
20198
20199 /* The GNU C library defines this for functions which it implements
20200     to always fail with ENOSYS.  Some functions are actually named
20201     something starting with __ and the normal name is an alias.  */
20202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20203 choke me
20204 #else
20205 $ac_func();
20206 #endif
20207
20208 ; return 0; }
20209 EOF
20210 if { (eval echo configure:20211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20211   rm -rf conftest*
20212   eval "ac_cv_func_$ac_func=yes"
20213 else
20214   echo "configure: failed program was:" >&5
20215   cat conftest.$ac_ext >&5
20216   rm -rf conftest*
20217   eval "ac_cv_func_$ac_func=no"
20218 fi
20219 rm -f conftest*
20220 fi
20221
20222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20223   echo "$ac_t""yes" 1>&6
20224     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20225   cat >> confdefs.h <<EOF
20226 #define $ac_tr_func 1
20227 EOF
20228  
20229 else
20230   echo "$ac_t""no" 1>&6
20231 fi
20232 done
20233
20234   fi
20235
20236   
20237   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20238 echo "configure:20239: checking for _float round functions" >&5
20239   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20240   echo $ac_n "(cached) $ac_c" 1>&6
20241 else
20242   
20243     
20244     ac_ext=C
20245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20246 ac_cpp='$CXXCPP $CPPFLAGS'
20247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20249 cross_compiling=$ac_cv_prog_cxx_cross
20250
20251     cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20254 #include <math.h>
20255 int main() {
20256  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20257 ; return 0; }
20258 EOF
20259 if { (eval echo configure:20260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20260   rm -rf conftest*
20261   glibcpp_cv_func__float_round_use=yes
20262 else
20263   echo "configure: failed program was:" >&5
20264   cat conftest.$ac_ext >&5
20265   rm -rf conftest*
20266   glibcpp_cv_func__float_round_use=no
20267 fi
20268 rm -f conftest*
20269     ac_ext=c
20270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20271 ac_cpp='$CPP $CPPFLAGS'
20272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20274 cross_compiling=$ac_cv_prog_cc_cross
20275
20276 fi
20277
20278   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20279   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20280     for ac_func in _ceilf _floorf
20281 do
20282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20283 echo "configure:20284: checking for $ac_func" >&5
20284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20285   echo $ac_n "(cached) $ac_c" 1>&6
20286 else
20287   cat > conftest.$ac_ext <<EOF
20288 #line 20289 "configure"
20289 #include "confdefs.h"
20290 /* System header to define __stub macros and hopefully few prototypes,
20291     which can conflict with char $ac_func(); below.  */
20292 #include <assert.h>
20293 /* Override any gcc2 internal prototype to avoid an error.  */
20294 /* We use char because int might match the return type of a gcc2
20295     builtin and then its argument prototype would still apply.  */
20296 char $ac_func();
20297
20298 int main() {
20299
20300 /* The GNU C library defines this for functions which it implements
20301     to always fail with ENOSYS.  Some functions are actually named
20302     something starting with __ and the normal name is an alias.  */
20303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20304 choke me
20305 #else
20306 $ac_func();
20307 #endif
20308
20309 ; return 0; }
20310 EOF
20311 if { (eval echo configure:20312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20312   rm -rf conftest*
20313   eval "ac_cv_func_$ac_func=yes"
20314 else
20315   echo "configure: failed program was:" >&5
20316   cat conftest.$ac_ext >&5
20317   rm -rf conftest*
20318   eval "ac_cv_func_$ac_func=no"
20319 fi
20320 rm -f conftest*
20321 fi
20322
20323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20324   echo "$ac_t""yes" 1>&6
20325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20326   cat >> confdefs.h <<EOF
20327 #define $ac_tr_func 1
20328 EOF
20329  
20330 else
20331   echo "$ac_t""no" 1>&6
20332 fi
20333 done
20334
20335   fi
20336
20337
20338     
20339   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20340 echo "configure:20341: checking for _long double trig functions" >&5
20341   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20342   echo $ac_n "(cached) $ac_c" 1>&6
20343 else
20344   
20345     
20346     ac_ext=C
20347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20348 ac_cpp='$CXXCPP $CPPFLAGS'
20349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20351 cross_compiling=$ac_cv_prog_cxx_cross
20352
20353     cat > conftest.$ac_ext <<EOF
20354 #line 20355 "configure"
20355 #include "confdefs.h"
20356 #include <math.h>
20357 int main() {
20358  `for x in _acosl _asinl _atanl \
20359                                           _cosl _sinl _tanl \
20360                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20361 ; return 0; }
20362 EOF
20363 if { (eval echo configure:20364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20364   rm -rf conftest*
20365   glibcpp_cv_func__long_double_trig_use=yes
20366 else
20367   echo "configure: failed program was:" >&5
20368   cat conftest.$ac_ext >&5
20369   rm -rf conftest*
20370   glibcpp_cv_func__long_double_trig_use=no
20371 fi
20372 rm -f conftest*
20373     ac_ext=c
20374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20378 cross_compiling=$ac_cv_prog_cc_cross
20379
20380 fi
20381
20382   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20383   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20384     for ac_func in _acosl _asinl _atanl \
20385                                           _cosl _sinl _tanl \
20386                                           _coshl _sinhl _tanhl
20387 do
20388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20389 echo "configure:20390: checking for $ac_func" >&5
20390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20391   echo $ac_n "(cached) $ac_c" 1>&6
20392 else
20393   cat > conftest.$ac_ext <<EOF
20394 #line 20395 "configure"
20395 #include "confdefs.h"
20396 /* System header to define __stub macros and hopefully few prototypes,
20397     which can conflict with char $ac_func(); below.  */
20398 #include <assert.h>
20399 /* Override any gcc2 internal prototype to avoid an error.  */
20400 /* We use char because int might match the return type of a gcc2
20401     builtin and then its argument prototype would still apply.  */
20402 char $ac_func();
20403
20404 int main() {
20405
20406 /* The GNU C library defines this for functions which it implements
20407     to always fail with ENOSYS.  Some functions are actually named
20408     something starting with __ and the normal name is an alias.  */
20409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20410 choke me
20411 #else
20412 $ac_func();
20413 #endif
20414
20415 ; return 0; }
20416 EOF
20417 if { (eval echo configure:20418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20418   rm -rf conftest*
20419   eval "ac_cv_func_$ac_func=yes"
20420 else
20421   echo "configure: failed program was:" >&5
20422   cat conftest.$ac_ext >&5
20423   rm -rf conftest*
20424   eval "ac_cv_func_$ac_func=no"
20425 fi
20426 rm -f conftest*
20427 fi
20428
20429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20430   echo "$ac_t""yes" 1>&6
20431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20432   cat >> confdefs.h <<EOF
20433 #define $ac_tr_func 1
20434 EOF
20435  
20436 else
20437   echo "$ac_t""no" 1>&6
20438 fi
20439 done
20440
20441   fi
20442
20443   
20444   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20445 echo "configure:20446: checking for _long double round functions" >&5
20446   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20447   echo $ac_n "(cached) $ac_c" 1>&6
20448 else
20449   
20450     
20451     ac_ext=C
20452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20456 cross_compiling=$ac_cv_prog_cxx_cross
20457
20458     cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20461 #include <math.h>
20462 int main() {
20463  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20464 ; return 0; }
20465 EOF
20466 if { (eval echo configure:20467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20467   rm -rf conftest*
20468   glibcpp_cv_func__long_double_round_use=yes
20469 else
20470   echo "configure: failed program was:" >&5
20471   cat conftest.$ac_ext >&5
20472   rm -rf conftest*
20473   glibcpp_cv_func__long_double_round_use=no
20474 fi
20475 rm -f conftest*
20476     ac_ext=c
20477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20478 ac_cpp='$CPP $CPPFLAGS'
20479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20481 cross_compiling=$ac_cv_prog_cc_cross
20482
20483 fi
20484
20485   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20486   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20487     for ac_func in _ceill _floorl
20488 do
20489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20490 echo "configure:20491: checking for $ac_func" >&5
20491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20492   echo $ac_n "(cached) $ac_c" 1>&6
20493 else
20494   cat > conftest.$ac_ext <<EOF
20495 #line 20496 "configure"
20496 #include "confdefs.h"
20497 /* System header to define __stub macros and hopefully few prototypes,
20498     which can conflict with char $ac_func(); below.  */
20499 #include <assert.h>
20500 /* Override any gcc2 internal prototype to avoid an error.  */
20501 /* We use char because int might match the return type of a gcc2
20502     builtin and then its argument prototype would still apply.  */
20503 char $ac_func();
20504
20505 int main() {
20506
20507 /* The GNU C library defines this for functions which it implements
20508     to always fail with ENOSYS.  Some functions are actually named
20509     something starting with __ and the normal name is an alias.  */
20510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20511 choke me
20512 #else
20513 $ac_func();
20514 #endif
20515
20516 ; return 0; }
20517 EOF
20518 if { (eval echo configure:20519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20519   rm -rf conftest*
20520   eval "ac_cv_func_$ac_func=yes"
20521 else
20522   echo "configure: failed program was:" >&5
20523   cat conftest.$ac_ext >&5
20524   rm -rf conftest*
20525   eval "ac_cv_func_$ac_func=no"
20526 fi
20527 rm -f conftest*
20528 fi
20529
20530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20531   echo "$ac_t""yes" 1>&6
20532     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20533   cat >> confdefs.h <<EOF
20534 #define $ac_tr_func 1
20535 EOF
20536  
20537 else
20538   echo "$ac_t""no" 1>&6
20539 fi
20540 done
20541
20542   fi
20543
20544
20545   LIBS="$ac_save_LIBS"
20546   CXXFLAGS="$ac_save_CXXFLAGS"
20547
20548   
20549       
20550   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20551 echo "configure:20552: checking for __builtin_abs declaration" >&5
20552   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20553     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20554   echo $ac_n "(cached) $ac_c" 1>&6
20555 else
20556   
20557       
20558       ac_ext=C
20559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20560 ac_cpp='$CXXCPP $CPPFLAGS'
20561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20563 cross_compiling=$ac_cv_prog_cxx_cross
20564
20565       cat > conftest.$ac_ext <<EOF
20566 #line 20567 "configure"
20567 #include "confdefs.h"
20568 #include <math.h>
20569 int main() {
20570  __builtin_abs(0);
20571 ; return 0; }
20572 EOF
20573 if { (eval echo configure:20574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20574   rm -rf conftest*
20575   glibcpp_cv_func___builtin_abs_use=yes
20576 else
20577   echo "configure: failed program was:" >&5
20578   cat conftest.$ac_ext >&5
20579   rm -rf conftest*
20580   glibcpp_cv_func___builtin_abs_use=no
20581 fi
20582 rm -f conftest*
20583       ac_ext=c
20584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20585 ac_cpp='$CPP $CPPFLAGS'
20586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20588 cross_compiling=$ac_cv_prog_cc_cross
20589
20590     
20591 fi
20592
20593   fi
20594   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20595   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20596     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20597 echo "configure:20598: checking for __builtin_abs linkage" >&5
20598     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20599       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20600   echo $ac_n "(cached) $ac_c" 1>&6
20601 else
20602   
20603         cat > conftest.$ac_ext <<EOF
20604 #line 20605 "configure"
20605 #include "confdefs.h"
20606 #include <math.h>
20607 int main() {
20608  __builtin_abs(0);
20609 ; return 0; }
20610 EOF
20611 if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20612   rm -rf conftest*
20613   glibcpp_cv_func___builtin_abs_link=yes
20614 else
20615   echo "configure: failed program was:" >&5
20616   cat conftest.$ac_ext >&5
20617   rm -rf conftest*
20618   glibcpp_cv_func___builtin_abs_link=no
20619 fi
20620 rm -f conftest*
20621       
20622 fi
20623
20624     fi
20625     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20626     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20627       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20628       cat >> confdefs.h <<EOF
20629 #define ${ac_tr_func} 1
20630 EOF
20631
20632     fi
20633   fi
20634
20635   
20636   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20637 echo "configure:20638: checking for __builtin_fabsf declaration" >&5
20638   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20639     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20640   echo $ac_n "(cached) $ac_c" 1>&6
20641 else
20642   
20643       
20644       ac_ext=C
20645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20646 ac_cpp='$CXXCPP $CPPFLAGS'
20647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20649 cross_compiling=$ac_cv_prog_cxx_cross
20650
20651       cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20654 #include <math.h>
20655 int main() {
20656  __builtin_fabsf(0);
20657 ; return 0; }
20658 EOF
20659 if { (eval echo configure:20660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20660   rm -rf conftest*
20661   glibcpp_cv_func___builtin_fabsf_use=yes
20662 else
20663   echo "configure: failed program was:" >&5
20664   cat conftest.$ac_ext >&5
20665   rm -rf conftest*
20666   glibcpp_cv_func___builtin_fabsf_use=no
20667 fi
20668 rm -f conftest*
20669       ac_ext=c
20670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20671 ac_cpp='$CPP $CPPFLAGS'
20672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20674 cross_compiling=$ac_cv_prog_cc_cross
20675
20676     
20677 fi
20678
20679   fi
20680   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20681   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20682     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20683 echo "configure:20684: checking for __builtin_fabsf linkage" >&5
20684     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20685       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20686   echo $ac_n "(cached) $ac_c" 1>&6
20687 else
20688   
20689         cat > conftest.$ac_ext <<EOF
20690 #line 20691 "configure"
20691 #include "confdefs.h"
20692 #include <math.h>
20693 int main() {
20694  __builtin_fabsf(0);
20695 ; return 0; }
20696 EOF
20697 if { (eval echo configure:20698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20698   rm -rf conftest*
20699   glibcpp_cv_func___builtin_fabsf_link=yes
20700 else
20701   echo "configure: failed program was:" >&5
20702   cat conftest.$ac_ext >&5
20703   rm -rf conftest*
20704   glibcpp_cv_func___builtin_fabsf_link=no
20705 fi
20706 rm -f conftest*
20707       
20708 fi
20709
20710     fi
20711     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20712     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20713       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20714       cat >> confdefs.h <<EOF
20715 #define ${ac_tr_func} 1
20716 EOF
20717
20718     fi
20719   fi
20720
20721   
20722   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20723 echo "configure:20724: checking for __builtin_fabs declaration" >&5
20724   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20725     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20726   echo $ac_n "(cached) $ac_c" 1>&6
20727 else
20728   
20729       
20730       ac_ext=C
20731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20732 ac_cpp='$CXXCPP $CPPFLAGS'
20733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20735 cross_compiling=$ac_cv_prog_cxx_cross
20736
20737       cat > conftest.$ac_ext <<EOF
20738 #line 20739 "configure"
20739 #include "confdefs.h"
20740 #include <math.h>
20741 int main() {
20742  __builtin_fabs(0);
20743 ; return 0; }
20744 EOF
20745 if { (eval echo configure:20746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20746   rm -rf conftest*
20747   glibcpp_cv_func___builtin_fabs_use=yes
20748 else
20749   echo "configure: failed program was:" >&5
20750   cat conftest.$ac_ext >&5
20751   rm -rf conftest*
20752   glibcpp_cv_func___builtin_fabs_use=no
20753 fi
20754 rm -f conftest*
20755       ac_ext=c
20756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20757 ac_cpp='$CPP $CPPFLAGS'
20758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20760 cross_compiling=$ac_cv_prog_cc_cross
20761
20762     
20763 fi
20764
20765   fi
20766   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20767   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20768     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20769 echo "configure:20770: checking for __builtin_fabs linkage" >&5
20770     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20771       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20772   echo $ac_n "(cached) $ac_c" 1>&6
20773 else
20774   
20775         cat > conftest.$ac_ext <<EOF
20776 #line 20777 "configure"
20777 #include "confdefs.h"
20778 #include <math.h>
20779 int main() {
20780  __builtin_fabs(0);
20781 ; return 0; }
20782 EOF
20783 if { (eval echo configure:20784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20784   rm -rf conftest*
20785   glibcpp_cv_func___builtin_fabs_link=yes
20786 else
20787   echo "configure: failed program was:" >&5
20788   cat conftest.$ac_ext >&5
20789   rm -rf conftest*
20790   glibcpp_cv_func___builtin_fabs_link=no
20791 fi
20792 rm -f conftest*
20793       
20794 fi
20795
20796     fi
20797     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20798     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20799       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20800       cat >> confdefs.h <<EOF
20801 #define ${ac_tr_func} 1
20802 EOF
20803
20804     fi
20805   fi
20806
20807   
20808   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20809 echo "configure:20810: checking for __builtin_fabsl declaration" >&5
20810   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20811     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20812   echo $ac_n "(cached) $ac_c" 1>&6
20813 else
20814   
20815       
20816       ac_ext=C
20817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20818 ac_cpp='$CXXCPP $CPPFLAGS'
20819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20821 cross_compiling=$ac_cv_prog_cxx_cross
20822
20823       cat > conftest.$ac_ext <<EOF
20824 #line 20825 "configure"
20825 #include "confdefs.h"
20826 #include <math.h>
20827 int main() {
20828  __builtin_fabsl(0);
20829 ; return 0; }
20830 EOF
20831 if { (eval echo configure:20832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20832   rm -rf conftest*
20833   glibcpp_cv_func___builtin_fabsl_use=yes
20834 else
20835   echo "configure: failed program was:" >&5
20836   cat conftest.$ac_ext >&5
20837   rm -rf conftest*
20838   glibcpp_cv_func___builtin_fabsl_use=no
20839 fi
20840 rm -f conftest*
20841       ac_ext=c
20842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20843 ac_cpp='$CPP $CPPFLAGS'
20844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20846 cross_compiling=$ac_cv_prog_cc_cross
20847
20848     
20849 fi
20850
20851   fi
20852   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20853   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20854     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20855 echo "configure:20856: checking for __builtin_fabsl linkage" >&5
20856     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20857       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20858   echo $ac_n "(cached) $ac_c" 1>&6
20859 else
20860   
20861         cat > conftest.$ac_ext <<EOF
20862 #line 20863 "configure"
20863 #include "confdefs.h"
20864 #include <math.h>
20865 int main() {
20866  __builtin_fabsl(0);
20867 ; return 0; }
20868 EOF
20869 if { (eval echo configure:20870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20870   rm -rf conftest*
20871   glibcpp_cv_func___builtin_fabsl_link=yes
20872 else
20873   echo "configure: failed program was:" >&5
20874   cat conftest.$ac_ext >&5
20875   rm -rf conftest*
20876   glibcpp_cv_func___builtin_fabsl_link=no
20877 fi
20878 rm -f conftest*
20879       
20880 fi
20881
20882     fi
20883     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20884     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20885       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20886       cat >> confdefs.h <<EOF
20887 #define ${ac_tr_func} 1
20888 EOF
20889
20890     fi
20891   fi
20892
20893   
20894   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20895 echo "configure:20896: checking for __builtin_labs declaration" >&5
20896   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20897     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20898   echo $ac_n "(cached) $ac_c" 1>&6
20899 else
20900   
20901       
20902       ac_ext=C
20903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20904 ac_cpp='$CXXCPP $CPPFLAGS'
20905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20907 cross_compiling=$ac_cv_prog_cxx_cross
20908
20909       cat > conftest.$ac_ext <<EOF
20910 #line 20911 "configure"
20911 #include "confdefs.h"
20912 #include <math.h>
20913 int main() {
20914  __builtin_labs(0);
20915 ; return 0; }
20916 EOF
20917 if { (eval echo configure:20918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20918   rm -rf conftest*
20919   glibcpp_cv_func___builtin_labs_use=yes
20920 else
20921   echo "configure: failed program was:" >&5
20922   cat conftest.$ac_ext >&5
20923   rm -rf conftest*
20924   glibcpp_cv_func___builtin_labs_use=no
20925 fi
20926 rm -f conftest*
20927       ac_ext=c
20928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20932 cross_compiling=$ac_cv_prog_cc_cross
20933
20934     
20935 fi
20936
20937   fi
20938   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20939   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20940     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20941 echo "configure:20942: checking for __builtin_labs linkage" >&5
20942     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20943       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20944   echo $ac_n "(cached) $ac_c" 1>&6
20945 else
20946   
20947         cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 #include <math.h>
20951 int main() {
20952  __builtin_labs(0);
20953 ; return 0; }
20954 EOF
20955 if { (eval echo configure:20956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20956   rm -rf conftest*
20957   glibcpp_cv_func___builtin_labs_link=yes
20958 else
20959   echo "configure: failed program was:" >&5
20960   cat conftest.$ac_ext >&5
20961   rm -rf conftest*
20962   glibcpp_cv_func___builtin_labs_link=no
20963 fi
20964 rm -f conftest*
20965       
20966 fi
20967
20968     fi
20969     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20970     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20971       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20972       cat >> confdefs.h <<EOF
20973 #define ${ac_tr_func} 1
20974 EOF
20975
20976     fi
20977   fi
20978
20979
20980   
20981   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20982 echo "configure:20983: checking for __builtin_sqrtf declaration" >&5
20983   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20984     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20985   echo $ac_n "(cached) $ac_c" 1>&6
20986 else
20987   
20988       
20989       ac_ext=C
20990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20994 cross_compiling=$ac_cv_prog_cxx_cross
20995
20996       cat > conftest.$ac_ext <<EOF
20997 #line 20998 "configure"
20998 #include "confdefs.h"
20999 #include <math.h>
21000 int main() {
21001  __builtin_sqrtf(0);
21002 ; return 0; }
21003 EOF
21004 if { (eval echo configure:21005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21005   rm -rf conftest*
21006   glibcpp_cv_func___builtin_sqrtf_use=yes
21007 else
21008   echo "configure: failed program was:" >&5
21009   cat conftest.$ac_ext >&5
21010   rm -rf conftest*
21011   glibcpp_cv_func___builtin_sqrtf_use=no
21012 fi
21013 rm -f conftest*
21014       ac_ext=c
21015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21016 ac_cpp='$CPP $CPPFLAGS'
21017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21019 cross_compiling=$ac_cv_prog_cc_cross
21020
21021     
21022 fi
21023
21024   fi
21025   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
21026   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
21027     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
21028 echo "configure:21029: checking for __builtin_sqrtf linkage" >&5
21029     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
21030       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
21031   echo $ac_n "(cached) $ac_c" 1>&6
21032 else
21033   
21034         cat > conftest.$ac_ext <<EOF
21035 #line 21036 "configure"
21036 #include "confdefs.h"
21037 #include <math.h>
21038 int main() {
21039  __builtin_sqrtf(0);
21040 ; return 0; }
21041 EOF
21042 if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043   rm -rf conftest*
21044   glibcpp_cv_func___builtin_sqrtf_link=yes
21045 else
21046   echo "configure: failed program was:" >&5
21047   cat conftest.$ac_ext >&5
21048   rm -rf conftest*
21049   glibcpp_cv_func___builtin_sqrtf_link=no
21050 fi
21051 rm -f conftest*
21052       
21053 fi
21054
21055     fi
21056     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21057     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21058       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21059       cat >> confdefs.h <<EOF
21060 #define ${ac_tr_func} 1
21061 EOF
21062
21063     fi
21064   fi
21065
21066   
21067   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21068 echo "configure:21069: checking for __builtin_sqrt declaration" >&5
21069   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21070     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21071   echo $ac_n "(cached) $ac_c" 1>&6
21072 else
21073   
21074       
21075       ac_ext=C
21076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21077 ac_cpp='$CXXCPP $CPPFLAGS'
21078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21080 cross_compiling=$ac_cv_prog_cxx_cross
21081
21082       cat > conftest.$ac_ext <<EOF
21083 #line 21084 "configure"
21084 #include "confdefs.h"
21085 #include <math.h>
21086 int main() {
21087  __builtin_sqrt(0);
21088 ; return 0; }
21089 EOF
21090 if { (eval echo configure:21091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21091   rm -rf conftest*
21092   glibcpp_cv_func___builtin_sqrt_use=yes
21093 else
21094   echo "configure: failed program was:" >&5
21095   cat conftest.$ac_ext >&5
21096   rm -rf conftest*
21097   glibcpp_cv_func___builtin_sqrt_use=no
21098 fi
21099 rm -f conftest*
21100       ac_ext=c
21101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21102 ac_cpp='$CPP $CPPFLAGS'
21103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21105 cross_compiling=$ac_cv_prog_cc_cross
21106
21107     
21108 fi
21109
21110   fi
21111   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21112   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21113     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21114 echo "configure:21115: checking for __builtin_sqrt linkage" >&5
21115     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21116       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21117   echo $ac_n "(cached) $ac_c" 1>&6
21118 else
21119   
21120         cat > conftest.$ac_ext <<EOF
21121 #line 21122 "configure"
21122 #include "confdefs.h"
21123 #include <math.h>
21124 int main() {
21125  __builtin_sqrt(0);
21126 ; return 0; }
21127 EOF
21128 if { (eval echo configure:21129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21129   rm -rf conftest*
21130   glibcpp_cv_func___builtin_sqrt_link=yes
21131 else
21132   echo "configure: failed program was:" >&5
21133   cat conftest.$ac_ext >&5
21134   rm -rf conftest*
21135   glibcpp_cv_func___builtin_sqrt_link=no
21136 fi
21137 rm -f conftest*
21138       
21139 fi
21140
21141     fi
21142     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21143     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21144       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21145       cat >> confdefs.h <<EOF
21146 #define ${ac_tr_func} 1
21147 EOF
21148
21149     fi
21150   fi
21151
21152   
21153   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21154 echo "configure:21155: checking for __builtin_sqrtl declaration" >&5
21155   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21156     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21157   echo $ac_n "(cached) $ac_c" 1>&6
21158 else
21159   
21160       
21161       ac_ext=C
21162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21163 ac_cpp='$CXXCPP $CPPFLAGS'
21164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21166 cross_compiling=$ac_cv_prog_cxx_cross
21167
21168       cat > conftest.$ac_ext <<EOF
21169 #line 21170 "configure"
21170 #include "confdefs.h"
21171 #include <math.h>
21172 int main() {
21173  __builtin_sqrtl(0);
21174 ; return 0; }
21175 EOF
21176 if { (eval echo configure:21177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21177   rm -rf conftest*
21178   glibcpp_cv_func___builtin_sqrtl_use=yes
21179 else
21180   echo "configure: failed program was:" >&5
21181   cat conftest.$ac_ext >&5
21182   rm -rf conftest*
21183   glibcpp_cv_func___builtin_sqrtl_use=no
21184 fi
21185 rm -f conftest*
21186       ac_ext=c
21187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21191 cross_compiling=$ac_cv_prog_cc_cross
21192
21193     
21194 fi
21195
21196   fi
21197   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21198   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21199     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21200 echo "configure:21201: checking for __builtin_sqrtl linkage" >&5
21201     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21202       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21203   echo $ac_n "(cached) $ac_c" 1>&6
21204 else
21205   
21206         cat > conftest.$ac_ext <<EOF
21207 #line 21208 "configure"
21208 #include "confdefs.h"
21209 #include <math.h>
21210 int main() {
21211  __builtin_sqrtl(0);
21212 ; return 0; }
21213 EOF
21214 if { (eval echo configure:21215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21215   rm -rf conftest*
21216   glibcpp_cv_func___builtin_sqrtl_link=yes
21217 else
21218   echo "configure: failed program was:" >&5
21219   cat conftest.$ac_ext >&5
21220   rm -rf conftest*
21221   glibcpp_cv_func___builtin_sqrtl_link=no
21222 fi
21223 rm -f conftest*
21224       
21225 fi
21226
21227     fi
21228     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21229     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21230       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21231       cat >> confdefs.h <<EOF
21232 #define ${ac_tr_func} 1
21233 EOF
21234
21235     fi
21236   fi
21237
21238
21239   
21240   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21241 echo "configure:21242: checking for __builtin_sinf declaration" >&5
21242   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21243     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21244   echo $ac_n "(cached) $ac_c" 1>&6
21245 else
21246   
21247       
21248       ac_ext=C
21249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21250 ac_cpp='$CXXCPP $CPPFLAGS'
21251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21253 cross_compiling=$ac_cv_prog_cxx_cross
21254
21255       cat > conftest.$ac_ext <<EOF
21256 #line 21257 "configure"
21257 #include "confdefs.h"
21258 #include <math.h>
21259 int main() {
21260  __builtin_sinf(0);
21261 ; return 0; }
21262 EOF
21263 if { (eval echo configure:21264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21264   rm -rf conftest*
21265   glibcpp_cv_func___builtin_sinf_use=yes
21266 else
21267   echo "configure: failed program was:" >&5
21268   cat conftest.$ac_ext >&5
21269   rm -rf conftest*
21270   glibcpp_cv_func___builtin_sinf_use=no
21271 fi
21272 rm -f conftest*
21273       ac_ext=c
21274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21275 ac_cpp='$CPP $CPPFLAGS'
21276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21278 cross_compiling=$ac_cv_prog_cc_cross
21279
21280     
21281 fi
21282
21283   fi
21284   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21285   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21286     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21287 echo "configure:21288: checking for __builtin_sinf linkage" >&5
21288     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21289       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21290   echo $ac_n "(cached) $ac_c" 1>&6
21291 else
21292   
21293         cat > conftest.$ac_ext <<EOF
21294 #line 21295 "configure"
21295 #include "confdefs.h"
21296 #include <math.h>
21297 int main() {
21298  __builtin_sinf(0);
21299 ; return 0; }
21300 EOF
21301 if { (eval echo configure:21302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21302   rm -rf conftest*
21303   glibcpp_cv_func___builtin_sinf_link=yes
21304 else
21305   echo "configure: failed program was:" >&5
21306   cat conftest.$ac_ext >&5
21307   rm -rf conftest*
21308   glibcpp_cv_func___builtin_sinf_link=no
21309 fi
21310 rm -f conftest*
21311       
21312 fi
21313
21314     fi
21315     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21316     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21317       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21318       cat >> confdefs.h <<EOF
21319 #define ${ac_tr_func} 1
21320 EOF
21321
21322     fi
21323   fi
21324
21325   
21326   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21327 echo "configure:21328: checking for __builtin_sin declaration" >&5
21328   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21329     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21330   echo $ac_n "(cached) $ac_c" 1>&6
21331 else
21332   
21333       
21334       ac_ext=C
21335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21336 ac_cpp='$CXXCPP $CPPFLAGS'
21337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21339 cross_compiling=$ac_cv_prog_cxx_cross
21340
21341       cat > conftest.$ac_ext <<EOF
21342 #line 21343 "configure"
21343 #include "confdefs.h"
21344 #include <math.h>
21345 int main() {
21346  __builtin_sin(0);
21347 ; return 0; }
21348 EOF
21349 if { (eval echo configure:21350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21350   rm -rf conftest*
21351   glibcpp_cv_func___builtin_sin_use=yes
21352 else
21353   echo "configure: failed program was:" >&5
21354   cat conftest.$ac_ext >&5
21355   rm -rf conftest*
21356   glibcpp_cv_func___builtin_sin_use=no
21357 fi
21358 rm -f conftest*
21359       ac_ext=c
21360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21361 ac_cpp='$CPP $CPPFLAGS'
21362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21364 cross_compiling=$ac_cv_prog_cc_cross
21365
21366     
21367 fi
21368
21369   fi
21370   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21371   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21372     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21373 echo "configure:21374: checking for __builtin_sin linkage" >&5
21374     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21375       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21376   echo $ac_n "(cached) $ac_c" 1>&6
21377 else
21378   
21379         cat > conftest.$ac_ext <<EOF
21380 #line 21381 "configure"
21381 #include "confdefs.h"
21382 #include <math.h>
21383 int main() {
21384  __builtin_sin(0);
21385 ; return 0; }
21386 EOF
21387 if { (eval echo configure:21388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21388   rm -rf conftest*
21389   glibcpp_cv_func___builtin_sin_link=yes
21390 else
21391   echo "configure: failed program was:" >&5
21392   cat conftest.$ac_ext >&5
21393   rm -rf conftest*
21394   glibcpp_cv_func___builtin_sin_link=no
21395 fi
21396 rm -f conftest*
21397       
21398 fi
21399
21400     fi
21401     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21402     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21403       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21404       cat >> confdefs.h <<EOF
21405 #define ${ac_tr_func} 1
21406 EOF
21407
21408     fi
21409   fi
21410
21411   
21412   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21413 echo "configure:21414: checking for __builtin_sinl declaration" >&5
21414   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21415     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21416   echo $ac_n "(cached) $ac_c" 1>&6
21417 else
21418   
21419       
21420       ac_ext=C
21421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21422 ac_cpp='$CXXCPP $CPPFLAGS'
21423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21425 cross_compiling=$ac_cv_prog_cxx_cross
21426
21427       cat > conftest.$ac_ext <<EOF
21428 #line 21429 "configure"
21429 #include "confdefs.h"
21430 #include <math.h>
21431 int main() {
21432  __builtin_sinl(0);
21433 ; return 0; }
21434 EOF
21435 if { (eval echo configure:21436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21436   rm -rf conftest*
21437   glibcpp_cv_func___builtin_sinl_use=yes
21438 else
21439   echo "configure: failed program was:" >&5
21440   cat conftest.$ac_ext >&5
21441   rm -rf conftest*
21442   glibcpp_cv_func___builtin_sinl_use=no
21443 fi
21444 rm -f conftest*
21445       ac_ext=c
21446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21450 cross_compiling=$ac_cv_prog_cc_cross
21451
21452     
21453 fi
21454
21455   fi
21456   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21457   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21458     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21459 echo "configure:21460: checking for __builtin_sinl linkage" >&5
21460     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21461       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21462   echo $ac_n "(cached) $ac_c" 1>&6
21463 else
21464   
21465         cat > conftest.$ac_ext <<EOF
21466 #line 21467 "configure"
21467 #include "confdefs.h"
21468 #include <math.h>
21469 int main() {
21470  __builtin_sinl(0);
21471 ; return 0; }
21472 EOF
21473 if { (eval echo configure:21474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21474   rm -rf conftest*
21475   glibcpp_cv_func___builtin_sinl_link=yes
21476 else
21477   echo "configure: failed program was:" >&5
21478   cat conftest.$ac_ext >&5
21479   rm -rf conftest*
21480   glibcpp_cv_func___builtin_sinl_link=no
21481 fi
21482 rm -f conftest*
21483       
21484 fi
21485
21486     fi
21487     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21488     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21489       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21490       cat >> confdefs.h <<EOF
21491 #define ${ac_tr_func} 1
21492 EOF
21493
21494     fi
21495   fi
21496
21497
21498   
21499   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21500 echo "configure:21501: checking for __builtin_cosf declaration" >&5
21501   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21502     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21503   echo $ac_n "(cached) $ac_c" 1>&6
21504 else
21505   
21506       
21507       ac_ext=C
21508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21509 ac_cpp='$CXXCPP $CPPFLAGS'
21510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21512 cross_compiling=$ac_cv_prog_cxx_cross
21513
21514       cat > conftest.$ac_ext <<EOF
21515 #line 21516 "configure"
21516 #include "confdefs.h"
21517 #include <math.h>
21518 int main() {
21519  __builtin_cosf(0);
21520 ; return 0; }
21521 EOF
21522 if { (eval echo configure:21523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21523   rm -rf conftest*
21524   glibcpp_cv_func___builtin_cosf_use=yes
21525 else
21526   echo "configure: failed program was:" >&5
21527   cat conftest.$ac_ext >&5
21528   rm -rf conftest*
21529   glibcpp_cv_func___builtin_cosf_use=no
21530 fi
21531 rm -f conftest*
21532       ac_ext=c
21533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21534 ac_cpp='$CPP $CPPFLAGS'
21535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21537 cross_compiling=$ac_cv_prog_cc_cross
21538
21539     
21540 fi
21541
21542   fi
21543   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21544   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21545     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21546 echo "configure:21547: checking for __builtin_cosf linkage" >&5
21547     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21548       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21549   echo $ac_n "(cached) $ac_c" 1>&6
21550 else
21551   
21552         cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21555 #include <math.h>
21556 int main() {
21557  __builtin_cosf(0);
21558 ; return 0; }
21559 EOF
21560 if { (eval echo configure:21561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21561   rm -rf conftest*
21562   glibcpp_cv_func___builtin_cosf_link=yes
21563 else
21564   echo "configure: failed program was:" >&5
21565   cat conftest.$ac_ext >&5
21566   rm -rf conftest*
21567   glibcpp_cv_func___builtin_cosf_link=no
21568 fi
21569 rm -f conftest*
21570       
21571 fi
21572
21573     fi
21574     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21575     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21576       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21577       cat >> confdefs.h <<EOF
21578 #define ${ac_tr_func} 1
21579 EOF
21580
21581     fi
21582   fi
21583
21584   
21585   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21586 echo "configure:21587: checking for __builtin_cos declaration" >&5
21587   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21588     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21589   echo $ac_n "(cached) $ac_c" 1>&6
21590 else
21591   
21592       
21593       ac_ext=C
21594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21595 ac_cpp='$CXXCPP $CPPFLAGS'
21596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21598 cross_compiling=$ac_cv_prog_cxx_cross
21599
21600       cat > conftest.$ac_ext <<EOF
21601 #line 21602 "configure"
21602 #include "confdefs.h"
21603 #include <math.h>
21604 int main() {
21605  __builtin_cos(0);
21606 ; return 0; }
21607 EOF
21608 if { (eval echo configure:21609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21609   rm -rf conftest*
21610   glibcpp_cv_func___builtin_cos_use=yes
21611 else
21612   echo "configure: failed program was:" >&5
21613   cat conftest.$ac_ext >&5
21614   rm -rf conftest*
21615   glibcpp_cv_func___builtin_cos_use=no
21616 fi
21617 rm -f conftest*
21618       ac_ext=c
21619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21623 cross_compiling=$ac_cv_prog_cc_cross
21624
21625     
21626 fi
21627
21628   fi
21629   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21630   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21631     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21632 echo "configure:21633: checking for __builtin_cos linkage" >&5
21633     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21634       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21635   echo $ac_n "(cached) $ac_c" 1>&6
21636 else
21637   
21638         cat > conftest.$ac_ext <<EOF
21639 #line 21640 "configure"
21640 #include "confdefs.h"
21641 #include <math.h>
21642 int main() {
21643  __builtin_cos(0);
21644 ; return 0; }
21645 EOF
21646 if { (eval echo configure:21647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21647   rm -rf conftest*
21648   glibcpp_cv_func___builtin_cos_link=yes
21649 else
21650   echo "configure: failed program was:" >&5
21651   cat conftest.$ac_ext >&5
21652   rm -rf conftest*
21653   glibcpp_cv_func___builtin_cos_link=no
21654 fi
21655 rm -f conftest*
21656       
21657 fi
21658
21659     fi
21660     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21661     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21662       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21663       cat >> confdefs.h <<EOF
21664 #define ${ac_tr_func} 1
21665 EOF
21666
21667     fi
21668   fi
21669
21670   
21671   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21672 echo "configure:21673: checking for __builtin_cosl declaration" >&5
21673   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21674     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21675   echo $ac_n "(cached) $ac_c" 1>&6
21676 else
21677   
21678       
21679       ac_ext=C
21680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21681 ac_cpp='$CXXCPP $CPPFLAGS'
21682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21684 cross_compiling=$ac_cv_prog_cxx_cross
21685
21686       cat > conftest.$ac_ext <<EOF
21687 #line 21688 "configure"
21688 #include "confdefs.h"
21689 #include <math.h>
21690 int main() {
21691  __builtin_cosl(0);
21692 ; return 0; }
21693 EOF
21694 if { (eval echo configure:21695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21695   rm -rf conftest*
21696   glibcpp_cv_func___builtin_cosl_use=yes
21697 else
21698   echo "configure: failed program was:" >&5
21699   cat conftest.$ac_ext >&5
21700   rm -rf conftest*
21701   glibcpp_cv_func___builtin_cosl_use=no
21702 fi
21703 rm -f conftest*
21704       ac_ext=c
21705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21709 cross_compiling=$ac_cv_prog_cc_cross
21710
21711     
21712 fi
21713
21714   fi
21715   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21716   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21717     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21718 echo "configure:21719: checking for __builtin_cosl linkage" >&5
21719     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21720       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21721   echo $ac_n "(cached) $ac_c" 1>&6
21722 else
21723   
21724         cat > conftest.$ac_ext <<EOF
21725 #line 21726 "configure"
21726 #include "confdefs.h"
21727 #include <math.h>
21728 int main() {
21729  __builtin_cosl(0);
21730 ; return 0; }
21731 EOF
21732 if { (eval echo configure:21733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21733   rm -rf conftest*
21734   glibcpp_cv_func___builtin_cosl_link=yes
21735 else
21736   echo "configure: failed program was:" >&5
21737   cat conftest.$ac_ext >&5
21738   rm -rf conftest*
21739   glibcpp_cv_func___builtin_cosl_link=no
21740 fi
21741 rm -f conftest*
21742       
21743 fi
21744
21745     fi
21746     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21747     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21748       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21749       cat >> confdefs.h <<EOF
21750 #define ${ac_tr_func} 1
21751 EOF
21752
21753     fi
21754   fi
21755
21756
21757               dummyvar=no
21758   if test x$dummyvar = x"yes"; then
21759     cat >> confdefs.h <<\EOF
21760 #define HAVE___BUILTIN_ABS 1
21761 EOF
21762
21763     cat >> confdefs.h <<\EOF
21764 #define HAVE___BUILTIN_LABS 1
21765 EOF
21766
21767     cat >> confdefs.h <<\EOF
21768 #define HAVE___BUILTIN_COS 1
21769 EOF
21770
21771     cat >> confdefs.h <<\EOF
21772 #define HAVE___BUILTIN_COSF 1
21773 EOF
21774
21775     cat >> confdefs.h <<\EOF
21776 #define HAVE___BUILTIN_COSL 1
21777 EOF
21778
21779     cat >> confdefs.h <<\EOF
21780 #define HAVE___BUILTIN_FABS 1
21781 EOF
21782
21783     cat >> confdefs.h <<\EOF
21784 #define HAVE___BUILTIN_FABSF 1
21785 EOF
21786
21787     cat >> confdefs.h <<\EOF
21788 #define HAVE___BUILTIN_FABSL 1
21789 EOF
21790
21791     cat >> confdefs.h <<\EOF
21792 #define HAVE___BUILTIN_SIN 1
21793 EOF
21794
21795     cat >> confdefs.h <<\EOF
21796 #define HAVE___BUILTIN_SINF 1
21797 EOF
21798
21799     cat >> confdefs.h <<\EOF
21800 #define HAVE___BUILTIN_SINL 1
21801 EOF
21802
21803     cat >> confdefs.h <<\EOF
21804 #define HAVE___BUILTIN_SQRT 1
21805 EOF
21806
21807     cat >> confdefs.h <<\EOF
21808 #define HAVE___BUILTIN_SQRTF 1
21809 EOF
21810
21811     cat >> confdefs.h <<\EOF
21812 #define HAVE___BUILTIN_SQRTL 1
21813 EOF
21814
21815   fi
21816
21817   
21818     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21819 echo "configure:21820: checking for main in -lm" >&5
21820 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21822   echo $ac_n "(cached) $ac_c" 1>&6
21823 else
21824   ac_save_LIBS="$LIBS"
21825 LIBS="-lm  $LIBS"
21826 cat > conftest.$ac_ext <<EOF
21827 #line 21828 "configure"
21828 #include "confdefs.h"
21829
21830 int main() {
21831 main()
21832 ; return 0; }
21833 EOF
21834 if { (eval echo configure:21835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21835   rm -rf conftest*
21836   eval "ac_cv_lib_$ac_lib_var=yes"
21837 else
21838   echo "configure: failed program was:" >&5
21839   cat conftest.$ac_ext >&5
21840   rm -rf conftest*
21841   eval "ac_cv_lib_$ac_lib_var=no"
21842 fi
21843 rm -f conftest*
21844 LIBS="$ac_save_LIBS"
21845
21846 fi
21847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21848   echo "$ac_t""yes" 1>&6
21849     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21850     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21851   cat >> confdefs.h <<EOF
21852 #define $ac_tr_lib 1
21853 EOF
21854
21855   LIBS="-lm $LIBS"
21856
21857 else
21858   echo "$ac_t""no" 1>&6
21859 fi
21860
21861   for ac_func in nan copysignf
21862 do
21863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21864 echo "configure:21865: checking for $ac_func" >&5
21865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21866   echo $ac_n "(cached) $ac_c" 1>&6
21867 else
21868   cat > conftest.$ac_ext <<EOF
21869 #line 21870 "configure"
21870 #include "confdefs.h"
21871 /* System header to define __stub macros and hopefully few prototypes,
21872     which can conflict with char $ac_func(); below.  */
21873 #include <assert.h>
21874 /* Override any gcc2 internal prototype to avoid an error.  */
21875 /* We use char because int might match the return type of a gcc2
21876     builtin and then its argument prototype would still apply.  */
21877 char $ac_func();
21878
21879 int main() {
21880
21881 /* The GNU C library defines this for functions which it implements
21882     to always fail with ENOSYS.  Some functions are actually named
21883     something starting with __ and the normal name is an alias.  */
21884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885 choke me
21886 #else
21887 $ac_func();
21888 #endif
21889
21890 ; return 0; }
21891 EOF
21892 if { (eval echo configure:21893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21893   rm -rf conftest*
21894   eval "ac_cv_func_$ac_func=yes"
21895 else
21896   echo "configure: failed program was:" >&5
21897   cat conftest.$ac_ext >&5
21898   rm -rf conftest*
21899   eval "ac_cv_func_$ac_func=no"
21900 fi
21901 rm -f conftest*
21902 fi
21903
21904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21905   echo "$ac_t""yes" 1>&6
21906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21907   cat >> confdefs.h <<EOF
21908 #define $ac_tr_func 1
21909 EOF
21910  
21911 else
21912   echo "$ac_t""no" 1>&6
21913 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21914 fi
21915 done
21916
21917
21918     for ac_func in __signbit
21919 do
21920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21921 echo "configure:21922: checking for $ac_func" >&5
21922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21923   echo $ac_n "(cached) $ac_c" 1>&6
21924 else
21925   cat > conftest.$ac_ext <<EOF
21926 #line 21927 "configure"
21927 #include "confdefs.h"
21928 /* System header to define __stub macros and hopefully few prototypes,
21929     which can conflict with char $ac_func(); below.  */
21930 #include <assert.h>
21931 /* Override any gcc2 internal prototype to avoid an error.  */
21932 /* We use char because int might match the return type of a gcc2
21933     builtin and then its argument prototype would still apply.  */
21934 char $ac_func();
21935
21936 int main() {
21937
21938 /* The GNU C library defines this for functions which it implements
21939     to always fail with ENOSYS.  Some functions are actually named
21940     something starting with __ and the normal name is an alias.  */
21941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21942 choke me
21943 #else
21944 $ac_func();
21945 #endif
21946
21947 ; return 0; }
21948 EOF
21949 if { (eval echo configure:21950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21950   rm -rf conftest*
21951   eval "ac_cv_func_$ac_func=yes"
21952 else
21953   echo "configure: failed program was:" >&5
21954   cat conftest.$ac_ext >&5
21955   rm -rf conftest*
21956   eval "ac_cv_func_$ac_func=no"
21957 fi
21958 rm -f conftest*
21959 fi
21960
21961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21962   echo "$ac_t""yes" 1>&6
21963     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21964   cat >> confdefs.h <<EOF
21965 #define $ac_tr_func 1
21966 EOF
21967  
21968 else
21969   echo "$ac_t""no" 1>&6
21970 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21971 fi
21972 done
21973
21974   for ac_func in __signbitf
21975 do
21976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21977 echo "configure:21978: checking for $ac_func" >&5
21978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21979   echo $ac_n "(cached) $ac_c" 1>&6
21980 else
21981   cat > conftest.$ac_ext <<EOF
21982 #line 21983 "configure"
21983 #include "confdefs.h"
21984 /* System header to define __stub macros and hopefully few prototypes,
21985     which can conflict with char $ac_func(); below.  */
21986 #include <assert.h>
21987 /* Override any gcc2 internal prototype to avoid an error.  */
21988 /* We use char because int might match the return type of a gcc2
21989     builtin and then its argument prototype would still apply.  */
21990 char $ac_func();
21991
21992 int main() {
21993
21994 /* The GNU C library defines this for functions which it implements
21995     to always fail with ENOSYS.  Some functions are actually named
21996     something starting with __ and the normal name is an alias.  */
21997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21998 choke me
21999 #else
22000 $ac_func();
22001 #endif
22002
22003 ; return 0; }
22004 EOF
22005 if { (eval echo configure:22006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22006   rm -rf conftest*
22007   eval "ac_cv_func_$ac_func=yes"
22008 else
22009   echo "configure: failed program was:" >&5
22010   cat conftest.$ac_ext >&5
22011   rm -rf conftest*
22012   eval "ac_cv_func_$ac_func=no"
22013 fi
22014 rm -f conftest*
22015 fi
22016
22017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22018   echo "$ac_t""yes" 1>&6
22019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22020   cat >> confdefs.h <<EOF
22021 #define $ac_tr_func 1
22022 EOF
22023  
22024 else
22025   echo "$ac_t""no" 1>&6
22026 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22027 fi
22028 done
22029
22030
22031           if test x$ac_cv_func_copysignl = x"yes"; then
22032     for ac_func in __signbitl
22033 do
22034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22035 echo "configure:22036: checking for $ac_func" >&5
22036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22037   echo $ac_n "(cached) $ac_c" 1>&6
22038 else
22039   cat > conftest.$ac_ext <<EOF
22040 #line 22041 "configure"
22041 #include "confdefs.h"
22042 /* System header to define __stub macros and hopefully few prototypes,
22043     which can conflict with char $ac_func(); below.  */
22044 #include <assert.h>
22045 /* Override any gcc2 internal prototype to avoid an error.  */
22046 /* We use char because int might match the return type of a gcc2
22047     builtin and then its argument prototype would still apply.  */
22048 char $ac_func();
22049
22050 int main() {
22051
22052 /* The GNU C library defines this for functions which it implements
22053     to always fail with ENOSYS.  Some functions are actually named
22054     something starting with __ and the normal name is an alias.  */
22055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22056 choke me
22057 #else
22058 $ac_func();
22059 #endif
22060
22061 ; return 0; }
22062 EOF
22063 if { (eval echo configure:22064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22064   rm -rf conftest*
22065   eval "ac_cv_func_$ac_func=yes"
22066 else
22067   echo "configure: failed program was:" >&5
22068   cat conftest.$ac_ext >&5
22069   rm -rf conftest*
22070   eval "ac_cv_func_$ac_func=no"
22071 fi
22072 rm -f conftest*
22073 fi
22074
22075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22076   echo "$ac_t""yes" 1>&6
22077     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22078   cat >> confdefs.h <<EOF
22079 #define $ac_tr_func 1
22080 EOF
22081  
22082 else
22083   echo "$ac_t""no" 1>&6
22084 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22085 fi
22086 done
22087
22088   fi
22089
22090   if test -n "$LIBMATHOBJS"; then
22091     need_libmath=yes
22092   fi
22093   
22094   
22095
22096 if test "$need_libmath" = yes; then
22097   GLIBCPP_BUILD_LIBMATH_TRUE=
22098   GLIBCPP_BUILD_LIBMATH_FALSE='#'
22099 else
22100   GLIBCPP_BUILD_LIBMATH_TRUE='#'
22101   GLIBCPP_BUILD_LIBMATH_FALSE=
22102 fi
22103
22104   
22105     enable_wchar_t=no
22106
22107       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22108 echo "configure:22109: checking for mbstate_t" >&5
22109   cat > conftest.$ac_ext <<EOF
22110 #line 22111 "configure"
22111 #include "confdefs.h"
22112 #include <wchar.h>
22113 int main() {
22114 mbstate_t teststate;
22115 ; return 0; }
22116 EOF
22117 if { (eval echo configure:22118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22118   rm -rf conftest*
22119   have_mbstate_t=yes
22120 else
22121   echo "configure: failed program was:" >&5
22122   cat conftest.$ac_ext >&5
22123   rm -rf conftest*
22124   have_mbstate_t=no
22125 fi
22126 rm -f conftest*
22127   echo "$ac_t""$have_mbstate_t" 1>&6
22128   if test x"$have_mbstate_t" = xyes; then
22129     cat >> confdefs.h <<\EOF
22130 #define HAVE_MBSTATE_T 1
22131 EOF
22132
22133   fi
22134
22135     for ac_hdr in wchar.h
22136 do
22137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22139 echo "configure:22140: checking for $ac_hdr" >&5
22140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22141   echo $ac_n "(cached) $ac_c" 1>&6
22142 else
22143   cat > conftest.$ac_ext <<EOF
22144 #line 22145 "configure"
22145 #include "confdefs.h"
22146 #include <$ac_hdr>
22147 EOF
22148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22149 { (eval echo configure:22150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22151 if test -z "$ac_err"; then
22152   rm -rf conftest*
22153   eval "ac_cv_header_$ac_safe=yes"
22154 else
22155   echo "$ac_err" >&5
22156   echo "configure: failed program was:" >&5
22157   cat conftest.$ac_ext >&5
22158   rm -rf conftest*
22159   eval "ac_cv_header_$ac_safe=no"
22160 fi
22161 rm -f conftest*
22162 fi
22163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22164   echo "$ac_t""yes" 1>&6
22165     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22166   cat >> confdefs.h <<EOF
22167 #define $ac_tr_hdr 1
22168 EOF
22169  ac_has_wchar_h=yes
22170 else
22171   echo "$ac_t""no" 1>&6
22172 ac_has_wchar_h=no
22173 fi
22174 done
22175
22176   for ac_hdr in wctype.h
22177 do
22178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22180 echo "configure:22181: checking for $ac_hdr" >&5
22181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22182   echo $ac_n "(cached) $ac_c" 1>&6
22183 else
22184   cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22187 #include <$ac_hdr>
22188 EOF
22189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22190 { (eval echo configure:22191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22192 if test -z "$ac_err"; then
22193   rm -rf conftest*
22194   eval "ac_cv_header_$ac_safe=yes"
22195 else
22196   echo "$ac_err" >&5
22197   echo "configure: failed program was:" >&5
22198   cat conftest.$ac_ext >&5
22199   rm -rf conftest*
22200   eval "ac_cv_header_$ac_safe=no"
22201 fi
22202 rm -f conftest*
22203 fi
22204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22205   echo "$ac_t""yes" 1>&6
22206     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22207   cat >> confdefs.h <<EOF
22208 #define $ac_tr_hdr 1
22209 EOF
22210  ac_has_wctype_h=yes
22211 else
22212   echo "$ac_t""no" 1>&6
22213 ac_has_wctype_h=no
22214 fi
22215 done
22216
22217
22218     if test x"$ac_has_wchar_h" = xyes &&
22219      test x"$ac_has_wctype_h" = xyes &&
22220      test x"$enable_c_mbchar" != xno; then
22221
22222             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22223 echo "configure:22224: checking for WCHAR_MIN and WCHAR_MAX" >&5
22224     cat > conftest.$ac_ext <<EOF
22225 #line 22226 "configure"
22226 #include "confdefs.h"
22227 #include <wchar.h>
22228 int main() {
22229 int i = WCHAR_MIN; int j = WCHAR_MAX;
22230 ; return 0; }
22231 EOF
22232 if { (eval echo configure:22233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22233   rm -rf conftest*
22234   has_wchar_minmax=yes
22235 else
22236   echo "configure: failed program was:" >&5
22237   cat conftest.$ac_ext >&5
22238   rm -rf conftest*
22239   has_wchar_minmax=no
22240 fi
22241 rm -f conftest*
22242     echo "$ac_t""$has_wchar_minmax" 1>&6
22243
22244             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22245 echo "configure:22246: checking for WEOF" >&5
22246     cat > conftest.$ac_ext <<EOF
22247 #line 22248 "configure"
22248 #include "confdefs.h"
22249
22250       #include <wchar.h>
22251       #include <stddef.h>
22252 int main() {
22253 wint_t i = WEOF;
22254 ; return 0; }
22255 EOF
22256 if { (eval echo configure:22257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22257   rm -rf conftest*
22258   has_weof=yes
22259 else
22260   echo "configure: failed program was:" >&5
22261   cat conftest.$ac_ext >&5
22262   rm -rf conftest*
22263   has_weof=no
22264 fi
22265 rm -f conftest*
22266     echo "$ac_t""$has_weof" 1>&6
22267
22268         ac_wfuncs=yes
22269     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22270 do
22271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22272 echo "configure:22273: checking for $ac_func" >&5
22273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22274   echo $ac_n "(cached) $ac_c" 1>&6
22275 else
22276   cat > conftest.$ac_ext <<EOF
22277 #line 22278 "configure"
22278 #include "confdefs.h"
22279 /* System header to define __stub macros and hopefully few prototypes,
22280     which can conflict with char $ac_func(); below.  */
22281 #include <assert.h>
22282 /* Override any gcc2 internal prototype to avoid an error.  */
22283 /* We use char because int might match the return type of a gcc2
22284     builtin and then its argument prototype would still apply.  */
22285 char $ac_func();
22286
22287 int main() {
22288
22289 /* The GNU C library defines this for functions which it implements
22290     to always fail with ENOSYS.  Some functions are actually named
22291     something starting with __ and the normal name is an alias.  */
22292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22293 choke me
22294 #else
22295 $ac_func();
22296 #endif
22297
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_func_$ac_func=yes"
22303 else
22304   echo "configure: failed program was:" >&5
22305   cat conftest.$ac_ext >&5
22306   rm -rf conftest*
22307   eval "ac_cv_func_$ac_func=no"
22308 fi
22309 rm -f conftest*
22310 fi
22311
22312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22313   echo "$ac_t""yes" 1>&6
22314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22315   cat >> confdefs.h <<EOF
22316 #define $ac_tr_func 1
22317 EOF
22318  
22319 else
22320   echo "$ac_t""no" 1>&6
22321 \
22322     ac_wfuncs=no
22323 fi
22324 done
22325
22326
22327         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22328     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22329     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22330     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22331     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22332     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22333 do
22334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22335 echo "configure:22336: checking for $ac_func" >&5
22336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22337   echo $ac_n "(cached) $ac_c" 1>&6
22338 else
22339   cat > conftest.$ac_ext <<EOF
22340 #line 22341 "configure"
22341 #include "confdefs.h"
22342 /* System header to define __stub macros and hopefully few prototypes,
22343     which can conflict with char $ac_func(); below.  */
22344 #include <assert.h>
22345 /* Override any gcc2 internal prototype to avoid an error.  */
22346 /* We use char because int might match the return type of a gcc2
22347     builtin and then its argument prototype would still apply.  */
22348 char $ac_func();
22349
22350 int main() {
22351
22352 /* The GNU C library defines this for functions which it implements
22353     to always fail with ENOSYS.  Some functions are actually named
22354     something starting with __ and the normal name is an alias.  */
22355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22356 choke me
22357 #else
22358 $ac_func();
22359 #endif
22360
22361 ; return 0; }
22362 EOF
22363 if { (eval echo configure:22364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22364   rm -rf conftest*
22365   eval "ac_cv_func_$ac_func=yes"
22366 else
22367   echo "configure: failed program was:" >&5
22368   cat conftest.$ac_ext >&5
22369   rm -rf conftest*
22370   eval "ac_cv_func_$ac_func=no"
22371 fi
22372 rm -f conftest*
22373 fi
22374
22375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22376   echo "$ac_t""yes" 1>&6
22377     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22378   cat >> confdefs.h <<EOF
22379 #define $ac_tr_func 1
22380 EOF
22381  
22382 else
22383   echo "$ac_t""no" 1>&6
22384 \
22385     ac_wfuncs=no
22386 fi
22387 done
22388
22389
22390     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22391 echo "configure:22392: checking for ISO C99 wchar_t support" >&5
22392     if test x"$has_weof" = xyes &&
22393        test x"$has_wchar_minmax" = xyes &&
22394        test x"$ac_wfuncs" = xyes; then
22395       ac_isoC99_wchar_t=yes
22396     else
22397       ac_isoC99_wchar_t=no
22398     fi
22399     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22400
22401             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22402 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22403 echo "configure:22404: checking for iconv.h" >&5
22404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22405   echo $ac_n "(cached) $ac_c" 1>&6
22406 else
22407   cat > conftest.$ac_ext <<EOF
22408 #line 22409 "configure"
22409 #include "confdefs.h"
22410 #include <iconv.h>
22411 EOF
22412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22413 { (eval echo configure:22414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22415 if test -z "$ac_err"; then
22416   rm -rf conftest*
22417   eval "ac_cv_header_$ac_safe=yes"
22418 else
22419   echo "$ac_err" >&5
22420   echo "configure: failed program was:" >&5
22421   cat conftest.$ac_ext >&5
22422   rm -rf conftest*
22423   eval "ac_cv_header_$ac_safe=no"
22424 fi
22425 rm -f conftest*
22426 fi
22427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22428   echo "$ac_t""yes" 1>&6
22429   ac_has_iconv_h=yes
22430 else
22431   echo "$ac_t""no" 1>&6
22432 ac_has_iconv_h=no
22433 fi
22434
22435     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22436 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22437 echo "configure:22438: checking for langinfo.h" >&5
22438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22439   echo $ac_n "(cached) $ac_c" 1>&6
22440 else
22441   cat > conftest.$ac_ext <<EOF
22442 #line 22443 "configure"
22443 #include "confdefs.h"
22444 #include <langinfo.h>
22445 EOF
22446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22447 { (eval echo configure:22448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22449 if test -z "$ac_err"; then
22450   rm -rf conftest*
22451   eval "ac_cv_header_$ac_safe=yes"
22452 else
22453   echo "$ac_err" >&5
22454   echo "configure: failed program was:" >&5
22455   cat conftest.$ac_ext >&5
22456   rm -rf conftest*
22457   eval "ac_cv_header_$ac_safe=no"
22458 fi
22459 rm -f conftest*
22460 fi
22461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22462   echo "$ac_t""yes" 1>&6
22463   ac_has_langinfo_h=yes
22464 else
22465   echo "$ac_t""no" 1>&6
22466 ac_has_langinfo_h=no
22467 fi
22468
22469
22470         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22471 echo "configure:22472: checking for iconv in -liconv" >&5
22472 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22474   echo $ac_n "(cached) $ac_c" 1>&6
22475 else
22476   ac_save_LIBS="$LIBS"
22477 LIBS="-liconv  $LIBS"
22478 cat > conftest.$ac_ext <<EOF
22479 #line 22480 "configure"
22480 #include "confdefs.h"
22481 /* Override any gcc2 internal prototype to avoid an error.  */
22482 /* We use char because int might match the return type of a gcc2
22483     builtin and then its argument prototype would still apply.  */
22484 char iconv();
22485
22486 int main() {
22487 iconv()
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_lib_$ac_lib_var=yes"
22493 else
22494   echo "configure: failed program was:" >&5
22495   cat conftest.$ac_ext >&5
22496   rm -rf conftest*
22497   eval "ac_cv_lib_$ac_lib_var=no"
22498 fi
22499 rm -f conftest*
22500 LIBS="$ac_save_LIBS"
22501
22502 fi
22503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22504   echo "$ac_t""yes" 1>&6
22505   libiconv="-liconv"
22506 else
22507   echo "$ac_t""no" 1>&6
22508 fi
22509
22510     ac_save_LIBS="$LIBS"
22511     LIBS="$LIBS $libiconv"
22512
22513     for ac_func in iconv_open iconv_close iconv nl_langinfo
22514 do
22515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22516 echo "configure:22517: checking for $ac_func" >&5
22517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22518   echo $ac_n "(cached) $ac_c" 1>&6
22519 else
22520   cat > conftest.$ac_ext <<EOF
22521 #line 22522 "configure"
22522 #include "confdefs.h"
22523 /* System header to define __stub macros and hopefully few prototypes,
22524     which can conflict with char $ac_func(); below.  */
22525 #include <assert.h>
22526 /* Override any gcc2 internal prototype to avoid an error.  */
22527 /* We use char because int might match the return type of a gcc2
22528     builtin and then its argument prototype would still apply.  */
22529 char $ac_func();
22530
22531 int main() {
22532
22533 /* The GNU C library defines this for functions which it implements
22534     to always fail with ENOSYS.  Some functions are actually named
22535     something starting with __ and the normal name is an alias.  */
22536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22537 choke me
22538 #else
22539 $ac_func();
22540 #endif
22541
22542 ; return 0; }
22543 EOF
22544 if { (eval echo configure:22545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22545   rm -rf conftest*
22546   eval "ac_cv_func_$ac_func=yes"
22547 else
22548   echo "configure: failed program was:" >&5
22549   cat conftest.$ac_ext >&5
22550   rm -rf conftest*
22551   eval "ac_cv_func_$ac_func=no"
22552 fi
22553 rm -f conftest*
22554 fi
22555
22556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22557   echo "$ac_t""yes" 1>&6
22558     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22559   cat >> confdefs.h <<EOF
22560 #define $ac_tr_func 1
22561 EOF
22562  \
22563     ac_XPG2funcs=yes
22564 else
22565   echo "$ac_t""no" 1>&6
22566 ac_XPG2funcs=no
22567 fi
22568 done
22569
22570
22571     LIBS="$ac_save_LIBS"
22572
22573     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22574 echo "configure:22575: checking for XPG2 wchar_t support" >&5
22575     if test x"$ac_has_iconv_h" = xyes &&
22576        test x"$ac_has_langinfo_h" = xyes &&
22577        test x"$ac_XPG2funcs" = xyes; then
22578       ac_XPG2_wchar_t=yes
22579     else
22580       ac_XPG2_wchar_t=no
22581     fi
22582     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22583
22584             if test x"$ac_isoC99_wchar_t" = xyes && 
22585         test x"$ac_XPG2_wchar_t" = xyes; then
22586       cat >> confdefs.h <<\EOF
22587 #define _GLIBCPP_USE_WCHAR_T 1
22588 EOF
22589
22590       enable_wchar_t=yes
22591     fi
22592   fi
22593   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22594 echo "configure:22595: checking for enabled wchar_t specializations" >&5
22595   echo "$ac_t""$enable_wchar_t" 1>&6    
22596   
22597
22598 if test "$enable_wchar_t" = yes; then
22599   GLIBCPP_TEST_WCHAR_T_TRUE=
22600   GLIBCPP_TEST_WCHAR_T_FALSE='#'
22601 else
22602   GLIBCPP_TEST_WCHAR_T_TRUE='#'
22603   GLIBCPP_TEST_WCHAR_T_FALSE=
22604 fi      
22605
22606   
22607   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22608   ac_save_CXXFLAGS="$CXXFLAGS"
22609   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22610
22611   
22612   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22613 echo "configure:22614: checking for strtold declaration" >&5
22614   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22615     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22616   echo $ac_n "(cached) $ac_c" 1>&6
22617 else
22618   
22619       
22620       ac_ext=C
22621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22622 ac_cpp='$CXXCPP $CPPFLAGS'
22623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22625 cross_compiling=$ac_cv_prog_cxx_cross
22626
22627       cat > conftest.$ac_ext <<EOF
22628 #line 22629 "configure"
22629 #include "confdefs.h"
22630 #include <stdlib.h>
22631 int main() {
22632  strtold(0, 0);
22633 ; return 0; }
22634 EOF
22635 if { (eval echo configure:22636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22636   rm -rf conftest*
22637   glibcpp_cv_func_strtold_use=yes
22638 else
22639   echo "configure: failed program was:" >&5
22640   cat conftest.$ac_ext >&5
22641   rm -rf conftest*
22642   glibcpp_cv_func_strtold_use=no
22643 fi
22644 rm -f conftest*
22645       ac_ext=c
22646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22647 ac_cpp='$CPP $CPPFLAGS'
22648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22650 cross_compiling=$ac_cv_prog_cc_cross
22651
22652     
22653 fi
22654
22655   fi
22656   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22657   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22658     for ac_func in strtold
22659 do
22660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22661 echo "configure:22662: checking for $ac_func" >&5
22662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22663   echo $ac_n "(cached) $ac_c" 1>&6
22664 else
22665   cat > conftest.$ac_ext <<EOF
22666 #line 22667 "configure"
22667 #include "confdefs.h"
22668 /* System header to define __stub macros and hopefully few prototypes,
22669     which can conflict with char $ac_func(); below.  */
22670 #include <assert.h>
22671 /* Override any gcc2 internal prototype to avoid an error.  */
22672 /* We use char because int might match the return type of a gcc2
22673     builtin and then its argument prototype would still apply.  */
22674 char $ac_func();
22675
22676 int main() {
22677
22678 /* The GNU C library defines this for functions which it implements
22679     to always fail with ENOSYS.  Some functions are actually named
22680     something starting with __ and the normal name is an alias.  */
22681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22682 choke me
22683 #else
22684 $ac_func();
22685 #endif
22686
22687 ; return 0; }
22688 EOF
22689 if { (eval echo configure:22690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22690   rm -rf conftest*
22691   eval "ac_cv_func_$ac_func=yes"
22692 else
22693   echo "configure: failed program was:" >&5
22694   cat conftest.$ac_ext >&5
22695   rm -rf conftest*
22696   eval "ac_cv_func_$ac_func=no"
22697 fi
22698 rm -f conftest*
22699 fi
22700
22701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22702   echo "$ac_t""yes" 1>&6
22703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22704   cat >> confdefs.h <<EOF
22705 #define $ac_tr_func 1
22706 EOF
22707  
22708 else
22709   echo "$ac_t""no" 1>&6
22710 fi
22711 done
22712
22713   fi
22714
22715   
22716   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22717 echo "configure:22718: checking for strtof declaration" >&5
22718   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22719     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22720   echo $ac_n "(cached) $ac_c" 1>&6
22721 else
22722   
22723       
22724       ac_ext=C
22725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22726 ac_cpp='$CXXCPP $CPPFLAGS'
22727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22729 cross_compiling=$ac_cv_prog_cxx_cross
22730
22731       cat > conftest.$ac_ext <<EOF
22732 #line 22733 "configure"
22733 #include "confdefs.h"
22734 #include <stdlib.h>
22735 int main() {
22736  strtof(0, 0);
22737 ; return 0; }
22738 EOF
22739 if { (eval echo configure:22740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22740   rm -rf conftest*
22741   glibcpp_cv_func_strtof_use=yes
22742 else
22743   echo "configure: failed program was:" >&5
22744   cat conftest.$ac_ext >&5
22745   rm -rf conftest*
22746   glibcpp_cv_func_strtof_use=no
22747 fi
22748 rm -f conftest*
22749       ac_ext=c
22750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22751 ac_cpp='$CPP $CPPFLAGS'
22752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22754 cross_compiling=$ac_cv_prog_cc_cross
22755
22756     
22757 fi
22758
22759   fi
22760   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22761   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22762     for ac_func in strtof
22763 do
22764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22765 echo "configure:22766: checking for $ac_func" >&5
22766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22767   echo $ac_n "(cached) $ac_c" 1>&6
22768 else
22769   cat > conftest.$ac_ext <<EOF
22770 #line 22771 "configure"
22771 #include "confdefs.h"
22772 /* System header to define __stub macros and hopefully few prototypes,
22773     which can conflict with char $ac_func(); below.  */
22774 #include <assert.h>
22775 /* Override any gcc2 internal prototype to avoid an error.  */
22776 /* We use char because int might match the return type of a gcc2
22777     builtin and then its argument prototype would still apply.  */
22778 char $ac_func();
22779
22780 int main() {
22781
22782 /* The GNU C library defines this for functions which it implements
22783     to always fail with ENOSYS.  Some functions are actually named
22784     something starting with __ and the normal name is an alias.  */
22785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22786 choke me
22787 #else
22788 $ac_func();
22789 #endif
22790
22791 ; return 0; }
22792 EOF
22793 if { (eval echo configure:22794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22794   rm -rf conftest*
22795   eval "ac_cv_func_$ac_func=yes"
22796 else
22797   echo "configure: failed program was:" >&5
22798   cat conftest.$ac_ext >&5
22799   rm -rf conftest*
22800   eval "ac_cv_func_$ac_func=no"
22801 fi
22802 rm -f conftest*
22803 fi
22804
22805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22806   echo "$ac_t""yes" 1>&6
22807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22808   cat >> confdefs.h <<EOF
22809 #define $ac_tr_func 1
22810 EOF
22811  
22812 else
22813   echo "$ac_t""no" 1>&6
22814 fi
22815 done
22816
22817   fi
22818
22819   for ac_func in drand48
22820 do
22821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22822 echo "configure:22823: checking for $ac_func" >&5
22823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22824   echo $ac_n "(cached) $ac_c" 1>&6
22825 else
22826   cat > conftest.$ac_ext <<EOF
22827 #line 22828 "configure"
22828 #include "confdefs.h"
22829 /* System header to define __stub macros and hopefully few prototypes,
22830     which can conflict with char $ac_func(); below.  */
22831 #include <assert.h>
22832 /* Override any gcc2 internal prototype to avoid an error.  */
22833 /* We use char because int might match the return type of a gcc2
22834     builtin and then its argument prototype would still apply.  */
22835 char $ac_func();
22836
22837 int main() {
22838
22839 /* The GNU C library defines this for functions which it implements
22840     to always fail with ENOSYS.  Some functions are actually named
22841     something starting with __ and the normal name is an alias.  */
22842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22843 choke me
22844 #else
22845 $ac_func();
22846 #endif
22847
22848 ; return 0; }
22849 EOF
22850 if { (eval echo configure:22851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22851   rm -rf conftest*
22852   eval "ac_cv_func_$ac_func=yes"
22853 else
22854   echo "configure: failed program was:" >&5
22855   cat conftest.$ac_ext >&5
22856   rm -rf conftest*
22857   eval "ac_cv_func_$ac_func=no"
22858 fi
22859 rm -f conftest*
22860 fi
22861
22862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22863   echo "$ac_t""yes" 1>&6
22864     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22865   cat >> confdefs.h <<EOF
22866 #define $ac_tr_func 1
22867 EOF
22868  
22869 else
22870   echo "$ac_t""no" 1>&6
22871 fi
22872 done
22873
22874
22875   CXXFLAGS="$ac_save_CXXFLAGS"
22876
22877
22878   # For showmanyc_helper().
22879   for ac_hdr in sys/ioctl.h sys/filio.h
22880 do
22881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22883 echo "configure:22884: checking for $ac_hdr" >&5
22884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22885   echo $ac_n "(cached) $ac_c" 1>&6
22886 else
22887   cat > conftest.$ac_ext <<EOF
22888 #line 22889 "configure"
22889 #include "confdefs.h"
22890 #include <$ac_hdr>
22891 EOF
22892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22893 { (eval echo configure:22894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22895 if test -z "$ac_err"; then
22896   rm -rf conftest*
22897   eval "ac_cv_header_$ac_safe=yes"
22898 else
22899   echo "$ac_err" >&5
22900   echo "configure: failed program was:" >&5
22901   cat conftest.$ac_ext >&5
22902   rm -rf conftest*
22903   eval "ac_cv_header_$ac_safe=no"
22904 fi
22905 rm -f conftest*
22906 fi
22907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22908   echo "$ac_t""yes" 1>&6
22909     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22910   cat >> confdefs.h <<EOF
22911 #define $ac_tr_hdr 1
22912 EOF
22913  
22914 else
22915   echo "$ac_t""no" 1>&6
22916 fi
22917 done
22918
22919   
22920   if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22921   echo $ac_n "(cached) $ac_c" 1>&6
22922 else
22923   
22924     cat > conftest.$ac_ext <<EOF
22925 #line 22926 "configure"
22926 #include "confdefs.h"
22927 #include <poll.h>
22928 int main() {
22929 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
22930 ; return 0; }
22931 EOF
22932 if { (eval echo configure:22933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22933   rm -rf conftest*
22934   glibcpp_cv_POLL=yes
22935 else
22936   echo "configure: failed program was:" >&5
22937   cat conftest.$ac_ext >&5
22938   rm -rf conftest*
22939   glibcpp_cv_POLL=no
22940 fi
22941 rm -f conftest*
22942   
22943 fi
22944
22945   if test x$glibcpp_cv_POLL = xyes; then
22946     cat >> confdefs.h <<\EOF
22947 #define HAVE_POLL 1
22948 EOF
22949
22950   fi
22951
22952   
22953   if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22954   echo $ac_n "(cached) $ac_c" 1>&6
22955 else
22956   
22957     cat > conftest.$ac_ext <<EOF
22958 #line 22959 "configure"
22959 #include "confdefs.h"
22960 #include <sys/stat.h>
22961 int main() {
22962 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
22963 ; return 0; }
22964 EOF
22965 if { (eval echo configure:22966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22966   rm -rf conftest*
22967   glibcpp_cv_S_ISREG=yes
22968 else
22969   echo "configure: failed program was:" >&5
22970   cat conftest.$ac_ext >&5
22971   rm -rf conftest*
22972   glibcpp_cv_S_ISREG=no
22973 fi
22974 rm -f conftest*
22975   
22976 fi
22977
22978   if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22979   echo $ac_n "(cached) $ac_c" 1>&6
22980 else
22981   
22982     cat > conftest.$ac_ext <<EOF
22983 #line 22984 "configure"
22984 #include "confdefs.h"
22985 #include <sys/stat.h>
22986 int main() {
22987 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
22988 ; return 0; }
22989 EOF
22990 if { (eval echo configure:22991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22991   rm -rf conftest*
22992   glibcpp_cv_S_IFREG=yes
22993 else
22994   echo "configure: failed program was:" >&5
22995   cat conftest.$ac_ext >&5
22996   rm -rf conftest*
22997   glibcpp_cv_S_IFREG=no
22998 fi
22999 rm -f conftest*
23000   
23001 fi
23002
23003   if test x$glibcpp_cv_S_ISREG = xyes; then
23004     cat >> confdefs.h <<\EOF
23005 #define HAVE_S_ISREG 1
23006 EOF
23007
23008   elif test x$glibcpp_cv_S_IFREG = xyes; then
23009     cat >> confdefs.h <<\EOF
23010 #define HAVE_S_IFREG 1
23011 EOF
23012
23013   fi
23014
23015
23016   
23017   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23018 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23019 echo "configure:23020: checking for locale.h" >&5
23020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23021   echo $ac_n "(cached) $ac_c" 1>&6
23022 else
23023   cat > conftest.$ac_ext <<EOF
23024 #line 23025 "configure"
23025 #include "confdefs.h"
23026 #include <locale.h>
23027 EOF
23028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23029 { (eval echo configure:23030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23031 if test -z "$ac_err"; then
23032   rm -rf conftest*
23033   eval "ac_cv_header_$ac_safe=yes"
23034 else
23035   echo "$ac_err" >&5
23036   echo "configure: failed program was:" >&5
23037   cat conftest.$ac_ext >&5
23038   rm -rf conftest*
23039   eval "ac_cv_header_$ac_safe=no"
23040 fi
23041 rm -f conftest*
23042 fi
23043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23044   echo "$ac_t""yes" 1>&6
23045   
23046     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23047 echo "configure:23048: checking for LC_MESSAGES" >&5
23048 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23049   echo $ac_n "(cached) $ac_c" 1>&6
23050 else
23051   cat > conftest.$ac_ext <<EOF
23052 #line 23053 "configure"
23053 #include "confdefs.h"
23054 #include <locale.h>
23055 int main() {
23056 return LC_MESSAGES
23057 ; return 0; }
23058 EOF
23059 if { (eval echo configure:23060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23060   rm -rf conftest*
23061   ac_cv_val_LC_MESSAGES=yes
23062 else
23063   echo "configure: failed program was:" >&5
23064   cat conftest.$ac_ext >&5
23065   rm -rf conftest*
23066   ac_cv_val_LC_MESSAGES=no
23067 fi
23068 rm -f conftest*
23069 fi
23070
23071 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23072     if test $ac_cv_val_LC_MESSAGES = yes; then
23073       cat >> confdefs.h <<\EOF
23074 #define HAVE_LC_MESSAGES 1
23075 EOF
23076
23077     fi
23078   
23079 else
23080   echo "$ac_t""no" 1>&6
23081 fi
23082
23083
23084
23085   cat > conftest.$ac_ext <<EOF
23086 #line 23087 "configure"
23087 #include "confdefs.h"
23088
23089   #include <setjmp.h>
23090   
23091 int main() {
23092 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23093 ; return 0; }
23094 EOF
23095 if { (eval echo configure:23096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23096   rm -rf conftest*
23097   cat >> confdefs.h <<\EOF
23098 #define HAVE_SIGSETJMP 1
23099 EOF
23100
23101   
23102 else
23103   echo "configure: failed program was:" >&5
23104   cat conftest.$ac_ext >&5
23105 fi
23106 rm -f conftest*
23107
23108   for ac_hdr in unistd.h
23109 do
23110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23112 echo "configure:23113: checking for $ac_hdr" >&5
23113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23114   echo $ac_n "(cached) $ac_c" 1>&6
23115 else
23116   cat > conftest.$ac_ext <<EOF
23117 #line 23118 "configure"
23118 #include "confdefs.h"
23119 #include <$ac_hdr>
23120 EOF
23121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23122 { (eval echo configure:23123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23124 if test -z "$ac_err"; then
23125   rm -rf conftest*
23126   eval "ac_cv_header_$ac_safe=yes"
23127 else
23128   echo "$ac_err" >&5
23129   echo "configure: failed program was:" >&5
23130   cat conftest.$ac_ext >&5
23131   rm -rf conftest*
23132   eval "ac_cv_header_$ac_safe=no"
23133 fi
23134 rm -f conftest*
23135 fi
23136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23137   echo "$ac_t""yes" 1>&6
23138     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23139   cat >> confdefs.h <<EOF
23140 #define $ac_tr_hdr 1
23141 EOF
23142  
23143 else
23144   echo "$ac_t""no" 1>&6
23145 fi
23146 done
23147
23148 for ac_func in getpagesize
23149 do
23150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23151 echo "configure:23152: checking for $ac_func" >&5
23152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23153   echo $ac_n "(cached) $ac_c" 1>&6
23154 else
23155   cat > conftest.$ac_ext <<EOF
23156 #line 23157 "configure"
23157 #include "confdefs.h"
23158 /* System header to define __stub macros and hopefully few prototypes,
23159     which can conflict with char $ac_func(); below.  */
23160 #include <assert.h>
23161 /* Override any gcc2 internal prototype to avoid an error.  */
23162 /* We use char because int might match the return type of a gcc2
23163     builtin and then its argument prototype would still apply.  */
23164 char $ac_func();
23165
23166 int main() {
23167
23168 /* The GNU C library defines this for functions which it implements
23169     to always fail with ENOSYS.  Some functions are actually named
23170     something starting with __ and the normal name is an alias.  */
23171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23172 choke me
23173 #else
23174 $ac_func();
23175 #endif
23176
23177 ; return 0; }
23178 EOF
23179 if { (eval echo configure:23180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23180   rm -rf conftest*
23181   eval "ac_cv_func_$ac_func=yes"
23182 else
23183   echo "configure: failed program was:" >&5
23184   cat conftest.$ac_ext >&5
23185   rm -rf conftest*
23186   eval "ac_cv_func_$ac_func=no"
23187 fi
23188 rm -f conftest*
23189 fi
23190
23191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23192   echo "$ac_t""yes" 1>&6
23193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23194   cat >> confdefs.h <<EOF
23195 #define $ac_tr_func 1
23196 EOF
23197  
23198 else
23199   echo "$ac_t""no" 1>&6
23200 fi
23201 done
23202
23203 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23204 echo "configure:23205: checking for working mmap" >&5
23205 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23206   echo $ac_n "(cached) $ac_c" 1>&6
23207 else
23208   if test "$cross_compiling" = yes; then
23209   ac_cv_func_mmap_fixed_mapped=no
23210 else
23211   cat > conftest.$ac_ext <<EOF
23212 #line 23213 "configure"
23213 #include "confdefs.h"
23214
23215 /* Thanks to Mike Haertel and Jim Avera for this test.
23216    Here is a matrix of mmap possibilities:
23217         mmap private not fixed
23218         mmap private fixed at somewhere currently unmapped
23219         mmap private fixed at somewhere already mapped
23220         mmap shared not fixed
23221         mmap shared fixed at somewhere currently unmapped
23222         mmap shared fixed at somewhere already mapped
23223    For private mappings, we should verify that changes cannot be read()
23224    back from the file, nor mmap's back from the file at a different
23225    address.  (There have been systems where private was not correctly
23226    implemented like the infamous i386 svr4.0, and systems where the
23227    VM page cache was not coherent with the filesystem buffer cache
23228    like early versions of FreeBSD and possibly contemporary NetBSD.)
23229    For shared mappings, we should conversely verify that changes get
23230    propogated back to all the places they're supposed to be.
23231
23232    Grep wants private fixed already mapped.
23233    The main things grep needs to know about mmap are:
23234    * does it exist and is it safe to write into the mmap'd area
23235    * how to use it (BSD variants)  */
23236 #include <sys/types.h>
23237 #include <fcntl.h>
23238 #include <sys/mman.h>
23239
23240 /* This mess was copied from the GNU getpagesize.h.  */
23241 #ifndef HAVE_GETPAGESIZE
23242 # ifdef HAVE_UNISTD_H
23243 #  include <unistd.h>
23244 # endif
23245
23246 /* Assume that all systems that can run configure have sys/param.h.  */
23247 # ifndef HAVE_SYS_PARAM_H
23248 #  define HAVE_SYS_PARAM_H 1
23249 # endif
23250
23251 # ifdef _SC_PAGESIZE
23252 #  define getpagesize() sysconf(_SC_PAGESIZE)
23253 # else /* no _SC_PAGESIZE */
23254 #  ifdef HAVE_SYS_PARAM_H
23255 #   include <sys/param.h>
23256 #   ifdef EXEC_PAGESIZE
23257 #    define getpagesize() EXEC_PAGESIZE
23258 #   else /* no EXEC_PAGESIZE */
23259 #    ifdef NBPG
23260 #     define getpagesize() NBPG * CLSIZE
23261 #     ifndef CLSIZE
23262 #      define CLSIZE 1
23263 #     endif /* no CLSIZE */
23264 #    else /* no NBPG */
23265 #     ifdef NBPC
23266 #      define getpagesize() NBPC
23267 #     else /* no NBPC */
23268 #      ifdef PAGESIZE
23269 #       define getpagesize() PAGESIZE
23270 #      endif /* PAGESIZE */
23271 #     endif /* no NBPC */
23272 #    endif /* no NBPG */
23273 #   endif /* no EXEC_PAGESIZE */
23274 #  else /* no HAVE_SYS_PARAM_H */
23275 #   define getpagesize() 8192   /* punt totally */
23276 #  endif /* no HAVE_SYS_PARAM_H */
23277 # endif /* no _SC_PAGESIZE */
23278
23279 #endif /* no HAVE_GETPAGESIZE */
23280
23281 #ifdef __cplusplus
23282 extern "C" { void *malloc(unsigned); }
23283 #else
23284 char *malloc();
23285 #endif
23286
23287 int
23288 main()
23289 {
23290         char *data, *data2, *data3;
23291         int i, pagesize;
23292         int fd;
23293
23294         pagesize = getpagesize();
23295
23296         /*
23297          * First, make a file with some known garbage in it.
23298          */
23299         data = malloc(pagesize);
23300         if (!data)
23301                 exit(1);
23302         for (i = 0; i < pagesize; ++i)
23303                 *(data + i) = rand();
23304         umask(0);
23305         fd = creat("conftestmmap", 0600);
23306         if (fd < 0)
23307                 exit(1);
23308         if (write(fd, data, pagesize) != pagesize)
23309                 exit(1);
23310         close(fd);
23311
23312         /*
23313          * Next, try to mmap the file at a fixed address which
23314          * already has something else allocated at it.  If we can,
23315          * also make sure that we see the same garbage.
23316          */
23317         fd = open("conftestmmap", O_RDWR);
23318         if (fd < 0)
23319                 exit(1);
23320         data2 = malloc(2 * pagesize);
23321         if (!data2)
23322                 exit(1);
23323         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23324         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23325             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23326                 exit(1);
23327         for (i = 0; i < pagesize; ++i)
23328                 if (*(data + i) != *(data2 + i))
23329                         exit(1);
23330
23331         /*
23332          * Finally, make sure that changes to the mapped area
23333          * do not percolate back to the file as seen by read().
23334          * (This is a bug on some variants of i386 svr4.0.)
23335          */
23336         for (i = 0; i < pagesize; ++i)
23337                 *(data2 + i) = *(data2 + i) + 1;
23338         data3 = malloc(pagesize);
23339         if (!data3)
23340                 exit(1);
23341         if (read(fd, data3, pagesize) != pagesize)
23342                 exit(1);
23343         for (i = 0; i < pagesize; ++i)
23344                 if (*(data + i) != *(data3 + i))
23345                         exit(1);
23346         close(fd);
23347         unlink("conftestmmap");
23348         exit(0);
23349 }
23350
23351 EOF
23352 if { (eval echo configure:23353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23353 then
23354   ac_cv_func_mmap_fixed_mapped=yes
23355 else
23356   echo "configure: failed program was:" >&5
23357   cat conftest.$ac_ext >&5
23358   rm -fr conftest*
23359   ac_cv_func_mmap_fixed_mapped=no
23360 fi
23361 rm -fr conftest*
23362 fi
23363
23364 fi
23365
23366 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23367 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23368   cat >> confdefs.h <<\EOF
23369 #define HAVE_MMAP 1
23370 EOF
23371
23372 fi
23373
23374
23375   # Establish limits on memory usage during 'make check'
23376   
23377   
23378   setrlimit_have_headers=yes
23379   for ac_hdr in unistd.h sys/time.h sys/resource.h
23380 do
23381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23383 echo "configure:23384: checking for $ac_hdr" >&5
23384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23385   echo $ac_n "(cached) $ac_c" 1>&6
23386 else
23387   cat > conftest.$ac_ext <<EOF
23388 #line 23389 "configure"
23389 #include "confdefs.h"
23390 #include <$ac_hdr>
23391 EOF
23392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23393 { (eval echo configure:23394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23395 if test -z "$ac_err"; then
23396   rm -rf conftest*
23397   eval "ac_cv_header_$ac_safe=yes"
23398 else
23399   echo "$ac_err" >&5
23400   echo "configure: failed program was:" >&5
23401   cat conftest.$ac_ext >&5
23402   rm -rf conftest*
23403   eval "ac_cv_header_$ac_safe=no"
23404 fi
23405 rm -f conftest*
23406 fi
23407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23408   echo "$ac_t""yes" 1>&6
23409     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23410   cat >> confdefs.h <<EOF
23411 #define $ac_tr_hdr 1
23412 EOF
23413  
23414 else
23415   echo "$ac_t""no" 1>&6
23416 setrlimit_have_headers=no
23417 fi
23418 done
23419
23420   # If don't have the headers, then we can't run the tests now, and we
23421   # won't be seeing any of these during testsuite compilation.
23422   if test $setrlimit_have_headers = yes; then
23423     # Can't do these in a loop, else the resulting syntax is wrong.
23424     
23425   cat > conftest.$ac_ext <<EOF
23426 #line 23427 "configure"
23427 #include "confdefs.h"
23428 #include <unistd.h>
23429                   #include <sys/time.h>
23430                   #include <sys/resource.h>
23431                  
23432 int main() {
23433  int f = RLIMIT_DATA ; 
23434 ; return 0; }
23435 EOF
23436 if { (eval echo configure:23437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23437   rm -rf conftest*
23438   glibcpp_mresult=1
23439 else
23440   echo "configure: failed program was:" >&5
23441   cat conftest.$ac_ext >&5
23442   rm -rf conftest*
23443   glibcpp_mresult=0
23444 fi
23445 rm -f conftest*
23446   cat >> confdefs.h <<EOF
23447 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23448 EOF
23449
23450
23451     
23452   cat > conftest.$ac_ext <<EOF
23453 #line 23454 "configure"
23454 #include "confdefs.h"
23455 #include <unistd.h>
23456                   #include <sys/time.h>
23457                   #include <sys/resource.h>
23458                  
23459 int main() {
23460  int f = RLIMIT_RSS ; 
23461 ; return 0; }
23462 EOF
23463 if { (eval echo configure:23464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23464   rm -rf conftest*
23465   glibcpp_mresult=1
23466 else
23467   echo "configure: failed program was:" >&5
23468   cat conftest.$ac_ext >&5
23469   rm -rf conftest*
23470   glibcpp_mresult=0
23471 fi
23472 rm -f conftest*
23473   cat >> confdefs.h <<EOF
23474 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23475 EOF
23476
23477
23478     
23479   cat > conftest.$ac_ext <<EOF
23480 #line 23481 "configure"
23481 #include "confdefs.h"
23482 #include <unistd.h>
23483                   #include <sys/time.h>
23484                   #include <sys/resource.h>
23485                  
23486 int main() {
23487  int f = RLIMIT_VMEM ; 
23488 ; return 0; }
23489 EOF
23490 if { (eval echo configure:23491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23491   rm -rf conftest*
23492   glibcpp_mresult=1
23493 else
23494   echo "configure: failed program was:" >&5
23495   cat conftest.$ac_ext >&5
23496   rm -rf conftest*
23497   glibcpp_mresult=0
23498 fi
23499 rm -f conftest*
23500   cat >> confdefs.h <<EOF
23501 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23502 EOF
23503
23504
23505     
23506   cat > conftest.$ac_ext <<EOF
23507 #line 23508 "configure"
23508 #include "confdefs.h"
23509 #include <unistd.h>
23510                   #include <sys/time.h>
23511                   #include <sys/resource.h>
23512                  
23513 int main() {
23514  int f = RLIMIT_AS ; 
23515 ; return 0; }
23516 EOF
23517 if { (eval echo configure:23518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23518   rm -rf conftest*
23519   glibcpp_mresult=1
23520 else
23521   echo "configure: failed program was:" >&5
23522   cat conftest.$ac_ext >&5
23523   rm -rf conftest*
23524   glibcpp_mresult=0
23525 fi
23526 rm -f conftest*
23527   cat >> confdefs.h <<EOF
23528 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23529 EOF
23530
23531
23532
23533     # Check for rlimit, setrlimit.
23534     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23535   echo $ac_n "(cached) $ac_c" 1>&6
23536 else
23537   
23538       cat > conftest.$ac_ext <<EOF
23539 #line 23540 "configure"
23540 #include "confdefs.h"
23541 #include <unistd.h>
23542                   #include <sys/time.h>
23543                   #include <sys/resource.h>
23544                      
23545 int main() {
23546  struct rlimit r; setrlimit(0, &r);
23547 ; return 0; }
23548 EOF
23549 if { (eval echo configure:23550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23550   rm -rf conftest*
23551   ac_setrlimit=yes
23552 else
23553   echo "configure: failed program was:" >&5
23554   cat conftest.$ac_ext >&5
23555   rm -rf conftest*
23556   ac_setrlimit=no
23557 fi
23558 rm -f conftest*
23559     
23560 fi
23561
23562   fi
23563
23564   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23565 echo "configure:23566: checking for testsuite memory limit support" >&5
23566   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23567     ac_mem_limits=yes
23568     cat >> confdefs.h <<\EOF
23569 #define _GLIBCPP_MEM_LIMITS 1
23570 EOF
23571
23572   else
23573     ac_mem_limits=no
23574   fi
23575   echo "$ac_t""$ac_mem_limits" 1>&6
23576
23577
23578   # Look for setenv, so that extended locale tests can be performed.
23579   
23580   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23581 echo "configure:23582: checking for setenv declaration" >&5
23582   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23583     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23584   echo $ac_n "(cached) $ac_c" 1>&6
23585 else
23586   
23587       
23588       ac_ext=C
23589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23590 ac_cpp='$CXXCPP $CPPFLAGS'
23591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23593 cross_compiling=$ac_cv_prog_cxx_cross
23594
23595       cat > conftest.$ac_ext <<EOF
23596 #line 23597 "configure"
23597 #include "confdefs.h"
23598 #include <stdlib.h>
23599 int main() {
23600  setenv(0, 0, 0);
23601 ; return 0; }
23602 EOF
23603 if { (eval echo configure:23604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23604   rm -rf conftest*
23605   glibcpp_cv_func_setenv_use=yes
23606 else
23607   echo "configure: failed program was:" >&5
23608   cat conftest.$ac_ext >&5
23609   rm -rf conftest*
23610   glibcpp_cv_func_setenv_use=no
23611 fi
23612 rm -f conftest*
23613       ac_ext=c
23614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23615 ac_cpp='$CPP $CPPFLAGS'
23616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23618 cross_compiling=$ac_cv_prog_cc_cross
23619
23620     
23621 fi
23622
23623   fi
23624   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23625   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23626     for ac_func in setenv
23627 do
23628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23629 echo "configure:23630: checking for $ac_func" >&5
23630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23631   echo $ac_n "(cached) $ac_c" 1>&6
23632 else
23633   cat > conftest.$ac_ext <<EOF
23634 #line 23635 "configure"
23635 #include "confdefs.h"
23636 /* System header to define __stub macros and hopefully few prototypes,
23637     which can conflict with char $ac_func(); below.  */
23638 #include <assert.h>
23639 /* Override any gcc2 internal prototype to avoid an error.  */
23640 /* We use char because int might match the return type of a gcc2
23641     builtin and then its argument prototype would still apply.  */
23642 char $ac_func();
23643
23644 int main() {
23645
23646 /* The GNU C library defines this for functions which it implements
23647     to always fail with ENOSYS.  Some functions are actually named
23648     something starting with __ and the normal name is an alias.  */
23649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23650 choke me
23651 #else
23652 $ac_func();
23653 #endif
23654
23655 ; return 0; }
23656 EOF
23657 if { (eval echo configure:23658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23658   rm -rf conftest*
23659   eval "ac_cv_func_$ac_func=yes"
23660 else
23661   echo "configure: failed program was:" >&5
23662   cat conftest.$ac_ext >&5
23663   rm -rf conftest*
23664   eval "ac_cv_func_$ac_func=no"
23665 fi
23666 rm -f conftest*
23667 fi
23668
23669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23670   echo "$ac_t""yes" 1>&6
23671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23672   cat >> confdefs.h <<EOF
23673 #define $ac_tr_func 1
23674 EOF
23675  
23676 else
23677   echo "$ac_t""no" 1>&6
23678 fi
23679 done
23680
23681   fi
23682
23683
23684   # Export file names for ABI checking.
23685   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23686   
23687
23688   case "$target" in
23689     *-*-cygwin* ) enable_abi_check=no ;;
23690     * ) enable_abi_check=yes ;;
23691   esac
23692
23693   # Don't do ABI checking unless native.
23694   
23695
23696 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23697                  && test "$enable_abi_check" = yes ; then
23698   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23699   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23700 else
23701   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23702   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23703 fi
23704
23705 fi
23706
23707 # This depends on the possibly-skipped linker test above.
23708 # Check whether --enable-symvers or --disable-symvers was given.
23709 if test "${enable_symvers+set}" = set; then
23710   enableval="$enable_symvers"
23711   case "$enableval" in
23712  yes) enable_symvers=yes ;;
23713  no)  enable_symvers=no ;;
23714  # other names here, just as sanity checks
23715  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23716  gnu) enable_symvers=$enableval ;;
23717  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23718  esac
23719 else
23720   enable_symvers=yes
23721 fi
23722
23723 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23724 # don't know enough about $LD to do tricks...
23725 if test x$enable_shared = xno ||
23726         test "x$LD" = x ||
23727         test x$glibcpp_gnu_ld_version = x; then
23728   enable_symvers=no
23729 fi
23730
23731 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23732 if test $enable_symvers != no; then
23733   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23734 echo "configure:23735: checking for shared libgcc" >&5
23735   ac_save_CFLAGS="$CFLAGS"
23736   CFLAGS=' -lgcc_s'
23737   cat > conftest.$ac_ext <<EOF
23738 #line 23739 "configure"
23739 #include "confdefs.h"
23740
23741 int main() {
23742 return 0
23743 ; return 0; }
23744 EOF
23745 if { (eval echo configure:23746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23746   rm -rf conftest*
23747   glibcpp_shared_libgcc=yes
23748 else
23749   echo "configure: failed program was:" >&5
23750   cat conftest.$ac_ext >&5
23751   rm -rf conftest*
23752   glibcpp_shared_libgcc=no
23753 fi
23754 rm -f conftest*
23755   CFLAGS="$ac_save_CFLAGS"
23756   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23757 fi
23758
23759 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23760 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23761 glibcpp_min_gnu_ld_version=21200
23762
23763 # Check to see if unspecified "yes" value can win, given results
23764 # above.
23765 if test $enable_symvers = yes ; then
23766   if test $with_gnu_ld = yes &&
23767     test $glibcpp_shared_libgcc = yes ;
23768   then
23769     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23770         enable_symvers=gnu
23771     else
23772       ac_test_CFLAGS="${CFLAGS+set}"
23773       ac_save_CFLAGS="$CFLAGS"
23774       CFLAGS='-shared -Wl,--version-script,conftest.map'
23775       enable_symvers=no
23776       
23777       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23778       
23779       cat > conftest.$ac_ext <<EOF
23780 #line 23781 "configure"
23781 #include "confdefs.h"
23782 int foo;
23783 int main() {
23784
23785 ; return 0; }
23786 EOF
23787 if { (eval echo configure:23788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23788   rm -rf conftest*
23789   enable_symvers=gnu
23790 else
23791   echo "configure: failed program was:" >&5
23792   cat conftest.$ac_ext >&5
23793 fi
23794 rm -f conftest*
23795       if test "$ac_test_CFLAGS" = set; then
23796         CFLAGS="$ac_save_CFLAGS"
23797       else
23798         # this is the suspicious part
23799         CFLAGS=''
23800       fi
23801       rm -f conftest.map
23802     fi
23803   else
23804     # just fail for now
23805     enable_symvers=no
23806   fi
23807 fi
23808
23809 case $enable_symvers in
23810   no)
23811       SYMVER_MAP=config/linker-map.dummy
23812       ;;
23813   gnu)
23814       SYMVER_MAP=config/linker-map.gnu
23815       cat >> confdefs.h <<\EOF
23816 #define _GLIBCPP_SYMVER 1
23817 EOF
23818
23819       ;;
23820 esac
23821
23822
23823
23824
23825 if test $enable_symvers != no; then
23826   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23827   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23828 else
23829   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23830   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23831 fi
23832 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23833 echo "configure:23834: checking versioning on shared library symbols" >&5
23834 echo "$ac_t""$enable_symvers" 1>&6
23835
23836
23837 # Propagate the target-specific source directories through the build chain.
23838 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23839 # uses it, and it only gets used in this file.)
23840 OS_INC_SRCDIR=config/${os_include_dir}
23841 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23842
23843
23844
23845 # Set up cross-compile flags
23846   
23847
23848 if test "$CANADIAN" = yes; then
23849   CANADIAN_TRUE=
23850   CANADIAN_FALSE='#'
23851 else
23852   CANADIAN_TRUE='#'
23853   CANADIAN_FALSE=
23854 fi
23855  
23856 cat > confcache <<\EOF
23857 # This file is a shell script that caches the results of configure
23858 # tests run on this system so they can be shared between configure
23859 # scripts and configure runs.  It is not useful on other systems.
23860 # If it contains results you don't want to keep, you may remove or edit it.
23861 #
23862 # By default, configure uses ./config.cache as the cache file,
23863 # creating it if it does not exist already.  You can give configure
23864 # the --cache-file=FILE option to use a different cache file; that is
23865 # what configure does when it calls configure scripts in
23866 # subdirectories, so they share the cache.
23867 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23868 # config.status only pays attention to the cache file if you give it the
23869 # --recheck option to rerun configure.
23870 #
23871 EOF
23872 # The following way of writing the cache mishandles newlines in values,
23873 # but we know of no workaround that is simple, portable, and efficient.
23874 # So, don't put newlines in cache variables' values.
23875 # Ultrix sh set writes to stderr and can't be redirected directly,
23876 # and sets the high bit in the cache file unless we assign to the vars.
23877 (set) 2>&1 |
23878   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23879   *ac_space=\ *)
23880     # `set' does not quote correctly, so add quotes (double-quote substitution
23881     # turns \\\\ into \\, and sed turns \\ into \).
23882     sed -n \
23883       -e "s/'/'\\\\''/g" \
23884       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23885     ;;
23886   *)
23887     # `set' quotes correctly as required by POSIX, so do not add quotes.
23888     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23889     ;;
23890   esac >> confcache
23891 if cmp -s $cache_file confcache; then
23892   :
23893 else
23894   if test -w $cache_file; then
23895     echo "updating cache $cache_file"
23896     cat confcache > $cache_file
23897   else
23898     echo "not updating unwritable cache $cache_file"
23899   fi
23900 fi
23901 rm -f confcache
23902
23903
23904 if test "${multilib}" = "yes"; then
23905   multilib_arg="--enable-multilib"
23906 else
23907   multilib_arg=
23908 fi
23909
23910 # Export all the install information
23911
23912 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23913 # exported correctly in GLIBCPP_CONFIGURE.
23914 glibcpp_toolexecdir=no
23915 glibcpp_toolexeclibdir=no
23916 glibcpp_prefixdir=${prefix}
23917
23918 # Process the option --with-gxx-include-dir=<path to include-files directory>
23919 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23920 echo "configure:23921: checking for --with-gxx-include-dir" >&5
23921 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23922 if test "${with_gxx_include_dir+set}" = set; then
23923   withval="$with_gxx_include_dir"
23924   case "${withval}" in
23925   yes)
23926     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23927     gxx_include_dir=no
23928     ;;
23929   no)
23930     gxx_include_dir=no
23931     ;;
23932   *)
23933     gxx_include_dir=${withval}
23934     ;;
23935 esac
23936 else
23937   gxx_include_dir=no
23938 fi
23939
23940 echo "$ac_t""$gxx_include_dir" 1>&6
23941
23942 # Process the option "--enable-version-specific-runtime-libs"
23943 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23944 echo "configure:23945: checking for --enable-version-specific-runtime-libs" >&5
23945 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23946 if test "${enable_version_specific_runtime_libs+set}" = set; then
23947   enableval="$enable_version_specific_runtime_libs"
23948   case "$enableval" in
23949  yes) version_specific_libs=yes ;;
23950  no)  version_specific_libs=no ;;
23951  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23952  esac
23953 else
23954   version_specific_libs=no
23955 fi
23956 # Option set, now we can test it.
23957 echo "$ac_t""$version_specific_libs" 1>&6
23958
23959 # Default case for install directory for include files.
23960 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23961   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23962 fi
23963
23964 # Version-specific runtime libs processing.
23965 if test $version_specific_libs = yes; then
23966   # Need the gcc compiler version to know where to install libraries
23967   # and header files if --enable-version-specific-runtime-libs option
23968   # is selected.
23969   if test x"$gxx_include_dir" = x"no"; then
23970     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23971   fi
23972   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23973   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23974 fi
23975
23976 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23977 # Install a library built with a cross compiler in tooldir, not libdir.
23978 if test x"$glibcpp_toolexecdir" = x"no"; then
23979   if test -n "$with_cross_host" &&
23980      test x"$with_cross_host" != x"no"; then
23981     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23982     glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23983   else
23984     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23985     glibcpp_toolexeclibdir='$(libdir)'
23986   fi
23987   multi_os_directory=`$CC -print-multi-os-directory`
23988   case $multi_os_directory in
23989   .) ;; # Avoid trailing /.
23990   *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23991   esac
23992 fi
23993
23994 echo $ac_n "checking for install location""... $ac_c" 1>&6
23995 echo "configure:23996: checking for install location" >&5
23996 echo "$ac_t""$gxx_include_dir" 1>&6
23997
23998
23999
24000
24001
24002
24003
24004 # Export all the include and flag information to Makefiles.
24005
24006   # Root level of the build directory include sources.
24007   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24008
24009   # Passed down for canadian crosses.
24010   if test x"$CANADIAN" = xyes; then
24011     TOPLEVEL_INCLUDES='-I$(includedir)'
24012   fi
24013
24014   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24015
24016   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24017
24018   if test x"$need_libio" = xyes; then
24019     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24020     
24021   fi
24022
24023   # Now, export this to all the little Makefiles....
24024   
24025   
24026   
24027   
24028
24029
24030   # Optimization flags that are probably a good idea for thrill-seekers. Just
24031   # uncomment the lines below and make, everything else is ready to go...
24032   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24033   OPTIMIZE_CXXFLAGS=
24034   
24035
24036   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24037   
24038
24039
24040 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24041    grep "enable shared" > /dev/null; then
24042   LIBSUPCXX_PICFLAGS=-prefer-pic
24043 else
24044   LIBSUPCXX_PICFLAGS=
24045 fi
24046
24047
24048 # Generate the various Makefiles, include files, and scripts.
24049 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24050 # and libsupc++/Makefile.am so that multilib installs will end up
24051 # installed in the correct place. To work around this not being passed
24052 # down from config-ml.in -> top_srcdir/Makefile.am ->
24053 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24054 trap '' 1 2 15
24055 cat > confcache <<\EOF
24056 # This file is a shell script that caches the results of configure
24057 # tests run on this system so they can be shared between configure
24058 # scripts and configure runs.  It is not useful on other systems.
24059 # If it contains results you don't want to keep, you may remove or edit it.
24060 #
24061 # By default, configure uses ./config.cache as the cache file,
24062 # creating it if it does not exist already.  You can give configure
24063 # the --cache-file=FILE option to use a different cache file; that is
24064 # what configure does when it calls configure scripts in
24065 # subdirectories, so they share the cache.
24066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24067 # config.status only pays attention to the cache file if you give it the
24068 # --recheck option to rerun configure.
24069 #
24070 EOF
24071 # The following way of writing the cache mishandles newlines in values,
24072 # but we know of no workaround that is simple, portable, and efficient.
24073 # So, don't put newlines in cache variables' values.
24074 # Ultrix sh set writes to stderr and can't be redirected directly,
24075 # and sets the high bit in the cache file unless we assign to the vars.
24076 (set) 2>&1 |
24077   case `(ac_space=' '; set | grep ac_space) 2>&1` in
24078   *ac_space=\ *)
24079     # `set' does not quote correctly, so add quotes (double-quote substitution
24080     # turns \\\\ into \\, and sed turns \\ into \).
24081     sed -n \
24082       -e "s/'/'\\\\''/g" \
24083       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24084     ;;
24085   *)
24086     # `set' quotes correctly as required by POSIX, so do not add quotes.
24087     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24088     ;;
24089   esac >> confcache
24090 if cmp -s $cache_file confcache; then
24091   :
24092 else
24093   if test -w $cache_file; then
24094     echo "updating cache $cache_file"
24095     cat confcache > $cache_file
24096   else
24097     echo "not updating unwritable cache $cache_file"
24098   fi
24099 fi
24100 rm -f confcache
24101
24102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24103
24104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24105 # Let make expand exec_prefix.
24106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24107
24108 # Any assignment to VPATH causes Sun make to only execute
24109 # the first set of double-colon rules, so remove it if not needed.
24110 # If there is a colon in the path, we need to keep it.
24111 if test "x$srcdir" = x.; then
24112   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
24113 fi
24114
24115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24116
24117 DEFS=-DHAVE_CONFIG_H
24118
24119 # Without the "./", some shells look in PATH for config.status.
24120 : ${CONFIG_STATUS=./config.status}
24121
24122 echo creating $CONFIG_STATUS
24123 rm -f $CONFIG_STATUS
24124 cat > $CONFIG_STATUS <<EOF
24125 #! /bin/sh
24126 # Generated automatically by configure.
24127 # Run this file to recreate the current configuration.
24128 # This directory was configured as follows,
24129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24130 #
24131 # $0 $ac_configure_args
24132 #
24133 # Compiler output produced by configure, useful for debugging
24134 # configure, is in ./config.log if it exists.
24135
24136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24137 for ac_option
24138 do
24139   case "\$ac_option" in
24140   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24141     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24142     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24143   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24144     echo "$CONFIG_STATUS generated by autoconf version 2.13"
24145     exit 0 ;;
24146   -help | --help | --hel | --he | --h)
24147     echo "\$ac_cs_usage"; exit 0 ;;
24148   *) echo "\$ac_cs_usage"; exit 1 ;;
24149   esac
24150 done
24151
24152 ac_given_srcdir=$srcdir
24153 ac_given_INSTALL="$INSTALL"
24154
24155 trap 'rm -fr `echo "Makefile \
24156 include/Makefile src/Makefile \
24157 libmath/Makefile libio/Makefile libsupc++/Makefile \
24158 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24159 EOF
24160 cat >> $CONFIG_STATUS <<EOF
24161
24162 # Protect against being on the right side of a sed subst in config.status.
24163 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24164  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24165 $ac_vpsub
24166 $extrasub
24167 s%@SHELL@%$SHELL%g
24168 s%@CFLAGS@%$CFLAGS%g
24169 s%@CPPFLAGS@%$CPPFLAGS%g
24170 s%@CXXFLAGS@%$CXXFLAGS%g
24171 s%@FFLAGS@%$FFLAGS%g
24172 s%@DEFS@%$DEFS%g
24173 s%@LDFLAGS@%$LDFLAGS%g
24174 s%@LIBS@%$LIBS%g
24175 s%@exec_prefix@%$exec_prefix%g
24176 s%@prefix@%$prefix%g
24177 s%@program_transform_name@%$program_transform_name%g
24178 s%@bindir@%$bindir%g
24179 s%@sbindir@%$sbindir%g
24180 s%@libexecdir@%$libexecdir%g
24181 s%@datadir@%$datadir%g
24182 s%@sysconfdir@%$sysconfdir%g
24183 s%@sharedstatedir@%$sharedstatedir%g
24184 s%@localstatedir@%$localstatedir%g
24185 s%@libdir@%$libdir%g
24186 s%@includedir@%$includedir%g
24187 s%@oldincludedir@%$oldincludedir%g
24188 s%@infodir@%$infodir%g
24189 s%@mandir@%$mandir%g
24190 s%@PACKAGE@%$PACKAGE%g
24191 s%@libtool_VERSION@%$libtool_VERSION%g
24192 s%@toplevel_srcdir@%$toplevel_srcdir%g
24193 s%@host@%$host%g
24194 s%@host_alias@%$host_alias%g
24195 s%@host_cpu@%$host_cpu%g
24196 s%@host_vendor@%$host_vendor%g
24197 s%@host_os@%$host_os%g
24198 s%@target@%$target%g
24199 s%@target_alias@%$target_alias%g
24200 s%@target_cpu@%$target_cpu%g
24201 s%@target_vendor@%$target_vendor%g
24202 s%@target_os@%$target_os%g
24203 s%@build@%$build%g
24204 s%@build_alias@%$build_alias%g
24205 s%@build_cpu@%$build_cpu%g
24206 s%@build_vendor@%$build_vendor%g
24207 s%@build_os@%$build_os%g
24208 s%@glibcpp_builddir@%$glibcpp_builddir%g
24209 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24210 s%@AWK@%$AWK%g
24211 s%@LN_S@%$LN_S%g
24212 s%@glibcpp_basedir@%$glibcpp_basedir%g
24213 s%@CC@%$CC%g
24214 s%@glibcpp_CXX@%$glibcpp_CXX%g
24215 s%@AS@%$AS%g
24216 s%@AR@%$AR%g
24217 s%@RANLIB@%$RANLIB%g
24218 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24219 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24220 s%@INSTALL_DATA@%$INSTALL_DATA%g
24221 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24222 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24223 s%@MAINT@%$MAINT%g
24224 s%@EXEEXT@%$EXEEXT%g
24225 s%@VERSION@%$VERSION%g
24226 s%@ACLOCAL@%$ACLOCAL%g
24227 s%@AUTOCONF@%$AUTOCONF%g
24228 s%@AUTOMAKE@%$AUTOMAKE%g
24229 s%@AUTOHEADER@%$AUTOHEADER%g
24230 s%@MAKEINFO@%$MAKEINFO%g
24231 s%@SET_MAKE@%$SET_MAKE%g
24232 s%@OBJEXT@%$OBJEXT%g
24233 s%@STRIP@%$STRIP%g
24234 s%@LIBTOOL@%$LIBTOOL%g
24235 s%@CXXCPP@%$CXXCPP%g
24236 s%@enable_shared@%$enable_shared%g
24237 s%@enable_static@%$enable_static%g
24238 s%@ifGNUmake@%$ifGNUmake%g
24239 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24240 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24241 s%@CPP@%$CPP%g
24242 s%@CSTDIO_H@%$CSTDIO_H%g
24243 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24244 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24245 s%@CCODECVT_C@%$CCODECVT_C%g
24246 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24247 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24248 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24249 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24250 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24251 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24252 s%@libio_la@%$libio_la%g
24253 s%@check_msgfmt@%$check_msgfmt%g
24254 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24255 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24256 s%@glibcpp_localedir@%$glibcpp_localedir%g
24257 s%@USE_NLS@%$USE_NLS%g
24258 s%@CLOCALE_H@%$CLOCALE_H%g
24259 s%@CCODECVT_H@%$CCODECVT_H%g
24260 s%@CMESSAGES_H@%$CMESSAGES_H%g
24261 s%@CCODECVT_CC@%$CCODECVT_CC%g
24262 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24263 s%@CCTYPE_CC@%$CCTYPE_CC%g
24264 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24265 s%@CMONEY_CC@%$CMONEY_CC%g
24266 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24267 s%@CTIME_H@%$CTIME_H%g
24268 s%@CTIME_CC@%$CTIME_CC%g
24269 s%@CLOCALE_CC@%$CLOCALE_CC%g
24270 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24271 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24272 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24273 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24274 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24275 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24276 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24277 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24278 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24279 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24280 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24281 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24282 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24283 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24284 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24285 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24286 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24287 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24288 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24289 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24290 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24291 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24292 s%@WERROR@%$WERROR%g
24293 s%@baseline_file@%$baseline_file%g
24294 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24295 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24296 s%@SYMVER_MAP@%$SYMVER_MAP%g
24297 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24298 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24299 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24300 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24301 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24302 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24303 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24304 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24305 s%@gxx_include_dir@%$gxx_include_dir%g
24306 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24307 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24308 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24309 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24310 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24311 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24312 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24313 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24314 s%@WARN_FLAGS@%$WARN_FLAGS%g
24315 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24316
24317 CEOF
24318 EOF
24319
24320 cat >> $CONFIG_STATUS <<\EOF
24321
24322 # Split the substitutions into bite-sized pieces for seds with
24323 # small command number limits, like on Digital OSF/1 and HP-UX.
24324 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24325 ac_file=1 # Number of current file.
24326 ac_beg=1 # First line for current file.
24327 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24328 ac_more_lines=:
24329 ac_sed_cmds=""
24330 while $ac_more_lines; do
24331   if test $ac_beg -gt 1; then
24332     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24333   else
24334     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24335   fi
24336   if test ! -s conftest.s$ac_file; then
24337     ac_more_lines=false
24338     rm -f conftest.s$ac_file
24339   else
24340     if test -z "$ac_sed_cmds"; then
24341       ac_sed_cmds="sed -f conftest.s$ac_file"
24342     else
24343       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24344     fi
24345     ac_file=`expr $ac_file + 1`
24346     ac_beg=$ac_end
24347     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24348   fi
24349 done
24350 if test -z "$ac_sed_cmds"; then
24351   ac_sed_cmds=cat
24352 fi
24353 EOF
24354
24355 cat >> $CONFIG_STATUS <<EOF
24356
24357 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24358 include/Makefile src/Makefile \
24359 libmath/Makefile libio/Makefile libsupc++/Makefile \
24360 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24361 EOF
24362 cat >> $CONFIG_STATUS <<\EOF
24363 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24364   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24365   case "$ac_file" in
24366   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24367        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24368   *) ac_file_in="${ac_file}.in" ;;
24369   esac
24370
24371   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24372
24373   # Remove last slash and all that follows it.  Not all systems have dirname.
24374   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24375   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24376     # The file is in a subdirectory.
24377     test ! -d "$ac_dir" && mkdir "$ac_dir"
24378     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24379     # A "../" for each directory in $ac_dir_suffix.
24380     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24381   else
24382     ac_dir_suffix= ac_dots=
24383   fi
24384
24385   case "$ac_given_srcdir" in
24386   .)  srcdir=.
24387       if test -z "$ac_dots"; then top_srcdir=.
24388       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24389   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24390   *) # Relative path.
24391     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24392     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24393   esac
24394
24395   case "$ac_given_INSTALL" in
24396   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24397   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24398   esac
24399
24400   echo creating "$ac_file"
24401   rm -f "$ac_file"
24402   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24403   case "$ac_file" in
24404   *Makefile*) ac_comsub="1i\\
24405 # $configure_input" ;;
24406   *) ac_comsub= ;;
24407   esac
24408
24409   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24410   sed -e "$ac_comsub
24411 s%@configure_input@%$configure_input%g
24412 s%@srcdir@%$srcdir%g
24413 s%@top_srcdir@%$top_srcdir%g
24414 s%@INSTALL@%$INSTALL%g
24415 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24416 fi; done
24417 rm -f conftest.s*
24418
24419 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24420 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24421 #
24422 # ac_d sets the value in "#define NAME VALUE" lines.
24423 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24424 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24425 ac_dC='\3'
24426 ac_dD='%g'
24427 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24428 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24429 ac_uB='\([      ]\)%\1#\2define\3'
24430 ac_uC=' '
24431 ac_uD='\4%g'
24432 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24433 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24434 ac_eB='$%\1#\2define\3'
24435 ac_eC=' '
24436 ac_eD='%g'
24437
24438 if test "${CONFIG_HEADERS+set}" != set; then
24439 EOF
24440 cat >> $CONFIG_STATUS <<EOF
24441   CONFIG_HEADERS="config.h"
24442 EOF
24443 cat >> $CONFIG_STATUS <<\EOF
24444 fi
24445 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24446   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24447   case "$ac_file" in
24448   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24449        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24450   *) ac_file_in="${ac_file}.in" ;;
24451   esac
24452
24453   echo creating $ac_file
24454
24455   rm -f conftest.frag conftest.in conftest.out
24456   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24457   cat $ac_file_inputs > conftest.in
24458
24459 EOF
24460
24461 # Transform confdefs.h into a sed script conftest.vals that substitutes
24462 # the proper values into config.h.in to produce config.h.  And first:
24463 # Protect against being on the right side of a sed subst in config.status.
24464 # Protect against being in an unquoted here document in config.status.
24465 rm -f conftest.vals
24466 cat > conftest.hdr <<\EOF
24467 s/[\\&%]/\\&/g
24468 s%[\\$`]%\\&%g
24469 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24470 s%ac_d%ac_u%gp
24471 s%ac_u%ac_e%gp
24472 EOF
24473 sed -n -f conftest.hdr confdefs.h > conftest.vals
24474 rm -f conftest.hdr
24475
24476 # This sed command replaces #undef with comments.  This is necessary, for
24477 # example, in the case of _POSIX_SOURCE, which is predefined and required
24478 # on some systems where configure will not decide to define it.
24479 cat >> conftest.vals <<\EOF
24480 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24481 EOF
24482
24483 # Break up conftest.vals because some shells have a limit on
24484 # the size of here documents, and old seds have small limits too.
24485
24486 rm -f conftest.tail
24487 while :
24488 do
24489   ac_lines=`grep -c . conftest.vals`
24490   # grep -c gives empty output for an empty file on some AIX systems.
24491   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24492   # Write a limited-size here document to conftest.frag.
24493   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24494   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24495   echo 'CEOF
24496   sed -f conftest.frag conftest.in > conftest.out
24497   rm -f conftest.in
24498   mv conftest.out conftest.in
24499 ' >> $CONFIG_STATUS
24500   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24501   rm -f conftest.vals
24502   mv conftest.tail conftest.vals
24503 done
24504 rm -f conftest.vals
24505
24506 cat >> $CONFIG_STATUS <<\EOF
24507   rm -f conftest.frag conftest.h
24508   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24509   cat conftest.in >> conftest.h
24510   rm -f conftest.in
24511   if cmp -s $ac_file conftest.h 2>/dev/null; then
24512     echo "$ac_file is unchanged"
24513     rm -f conftest.h
24514   else
24515     # Remove last slash and all that follows it.  Not all systems have dirname.
24516       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24517       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24518       # The file is in a subdirectory.
24519       test ! -d "$ac_dir" && mkdir "$ac_dir"
24520     fi
24521     rm -f $ac_file
24522     mv conftest.h $ac_file
24523   fi
24524 fi; done
24525
24526 EOF
24527 cat >> $CONFIG_STATUS <<EOF
24528
24529 srcdir=${srcdir}
24530 host=${host}
24531 target=${target}
24532 with_target_subdir=${with_target_subdir}
24533 with_build_subdir=${with_build_subdir}
24534 with_multisubdir=${with_multisubdir}
24535 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24536 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24537 glibcpp_basedir=${glibcpp_basedir}
24538 CC="${CC}"
24539 CXX="${CXX}"
24540 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24541
24542 EOF
24543 cat >> $CONFIG_STATUS <<\EOF
24544 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24545 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24546  if test -n "$CONFIG_FILES"; then
24547    if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24548      LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24549      # Ony modify Makefiles that are just being created.
24550      case " $CONFIG_FILES" in
24551        *" Makefile"*)
24552          ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24553          ;;
24554      esac
24555      case $CONFIG_FILES in
24556        *src/Makefile*)
24557          grep '^MULTISUBDIR =' Makefile >> src/Makefile
24558          ;;
24559      esac
24560      case $CONFIG_FILES in
24561        *libsupc++/Makefile*)
24562          grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24563          ;;
24564      esac
24565    fi
24566  fi
24567  chmod +x mkcheck
24568  chmod +x testsuite_flags
24569 exit 0
24570 EOF
24571 chmod +x $CONFIG_STATUS
24572 rm -fr confdefs* $ac_clean_files
24573 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24574
24575
24576
24577 # Sanity checking & User-visible messages.
24578 # Checks down here, otherwise they get scrolled off before
24579 # the user will notice.
24580
24581 # Trying to get more people to read documentation.  Possibly remove
24582 # check and warn all the time. There is no "informational" AC_MSG_
24583 # macro, so these are going to be printed even when --quiet/--silent
24584 # is given.
24585 if test ! -f stamp-sanity-warned; then
24586   touch stamp-sanity-warned
24587   echo ""
24588   echo "Please make certain that you read the installation information here:"
24589   echo "  faster => ${srcdir}/docs/html/install.html"
24590   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24591   echo ""
24592   echo "and the configuration information here:"
24593   echo "  faster => ${srcdir}/docs/html/configopts.html"
24594   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24595   echo ""
24596   echo "before proceeding with ${_cv_gnu_make_command}."
24597   echo ""
24598 fi