OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
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-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.  Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
592
593
594
595       # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597   enableval="$enable_multilib"
598   case "${enableval}" in
599     yes) multilib=yes ;;
600     no)  multilib=no ;;
601     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602    esac
603 else
604   multilib=yes
605 fi
606
607   # When building with srcdir == objdir, links to the source files will
608   # be created in directories within the target_subdir.  We have to
609   # adjust toplevel_srcdir accordingly, so that configure finds
610   # install-sh and other auxiliary files that live in the top-level
611   # source directory.
612   if test "${srcdir}" = "."; then
613     if test -z "${with_target_subdir}"; then
614       toprel=".."
615     else
616       if test "${with_target_subdir}" != "."; then
617         toprel="${with_multisrctop}../.."
618       else
619         toprel="${with_multisrctop}.."
620       fi
621     fi
622   else
623     toprel=".."
624   fi
625   ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627   if test -f $ac_dir/install-sh; then
628     ac_aux_dir=$ac_dir
629     ac_install_sh="$ac_aux_dir/install-sh -c"
630     break
631   elif test -f $ac_dir/install.sh; then
632     ac_aux_dir=$ac_dir
633     ac_install_sh="$ac_aux_dir/install.sh -c"
634     break
635   fi
636 done
637 if test -z "$ac_aux_dir"; then
638   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
639 fi
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643
644   toplevel_srcdir=\${top_srcdir}/$toprel
645   
646
647
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
649 #
650 # You will slowly go insane if you do not grok the following fact:  when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/.  `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf.  Therefore, 'target' and
654 # 'host' will always be the same.  This makes sense both for native and
655 # cross compilers, just think about it for a little while.  :-)
656 #
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
659 #
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure.  In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
663
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
667 #
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 #    same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 #    as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
676
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
683
684
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
688 fi
689
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
692
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696   case $nonopt in
697   NONE)
698     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700     fi ;;
701   *) host_alias=$nonopt ;;
702   esac ;;
703 esac
704
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
710
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
713
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717   case $nonopt in
718   NONE) target_alias=$host_alias ;;
719   *) target_alias=$nonopt ;;
720   esac ;;
721 esac
722
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
728
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735   case $nonopt in
736   NONE) build_alias=$host_alias ;;
737   *) build_alias=$nonopt ;;
738   esac ;;
739 esac
740
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
746
747 test "$host_alias" != "$target_alias" &&
748   test "$program_prefix$program_suffix$program_transform_name" = \
749     NONENONEs,x,x, &&
750   program_prefix=${target_alias}-
751
752 target_alias=${target_alias-$target}
753
754
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758   ac_tool_prefix=${host_alias}-
759 else
760   ac_tool_prefix=
761 fi
762
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766   echo $ac_n "(cached) $ac_c" 1>&6
767 else
768   cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
771
772 int main() {
773
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
779 EOF
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781   rm -rf conftest*
782   ac_cv_cygwin=yes
783 else
784   echo "configure: failed program was:" >&5
785   cat conftest.$ac_ext >&5
786   rm -rf conftest*
787   ac_cv_cygwin=no
788 fi
789 rm -f conftest*
790 rm -f conftest*
791 fi
792
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
808 EOF
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810   rm -rf conftest*
811   ac_cv_mingw32=yes
812 else
813   echo "configure: failed program was:" >&5
814   cat conftest.$ac_ext >&5
815   rm -rf conftest*
816   ac_cv_mingw32=no
817 fi
818 rm -f conftest*
819 rm -f conftest*
820 fi
821
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
825
826   # Export build and source directories.
827   # These need to be absolute paths, yet at the same time need to
828   # canonicalize only relative paths, because then amd will not unmount
829   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830   glibcpp_builddir=`${PWDCMD-pwd}`
831   case $srcdir in
832   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834   esac
835   
836   
837
838     
839
840   for ac_prog in gawk mawk nawk awk
841 do
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847   echo $ac_n "(cached) $ac_c" 1>&6
848 else
849   if test -n "$AWK"; then
850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
853   ac_dummy="$PATH"
854   for ac_dir in $ac_dummy; do
855     test -z "$ac_dir" && ac_dir=.
856     if test -f $ac_dir/$ac_word; then
857       ac_cv_prog_AWK="$ac_prog"
858       break
859     fi
860   done
861   IFS="$ac_save_ifs"
862 fi
863 fi
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866   echo "$ac_t""$AWK" 1>&6
867 else
868   echo "$ac_t""no" 1>&6
869 fi
870
871 test -n "$AWK" && break
872 done
873
874   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
875   # be 'cp -p' if linking isn't available.  Uncomment the next line to
876   # force a particular method.
877   #ac_cv_prog_LN_S='cp -p'
878   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881   echo $ac_n "(cached) $ac_c" 1>&6
882 else
883   rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886   rm -f conftestdata
887   ac_cv_prog_LN_S="ln -s"
888 else
889   ac_cv_prog_LN_S=ln
890 fi
891 fi
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894   echo "$ac_t""yes" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898
899
900   # We use these options to decide which functions to include.
901   # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903   withval="$with_target_subdir"
904   :
905 fi
906
907   # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909   withval="$with_cross_host"
910   :
911 fi
912
913
914   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
915   
916
917   # Never versions of autoconf add an underscore to these functions.
918   # Prevent future problems ...
919   
920   
921   
922   
923
924   # AC_PROG_CC
925   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
926   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
927   # are probably using a cross compiler, which will not be able to fully
928   # link an executable.  This is addressed in later versions of autoconf.
929
930   
931
932       
933   # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   if test -n "$CC"; then
941   ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
944   ac_dummy="$PATH"
945   for ac_dir in $ac_dummy; do
946     test -z "$ac_dir" && ac_dir=.
947     if test -f $ac_dir/$ac_word; then
948       ac_cv_prog_CC="gcc"
949       break
950     fi
951   done
952   IFS="$ac_save_ifs"
953 fi
954 fi
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957   echo "$ac_t""$CC" 1>&6
958 else
959   echo "$ac_t""no" 1>&6
960 fi
961
962   if test -z "$CC"; then
963     # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   if test -n "$CC"; then
971   ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
974   ac_prog_rejected=no
975   ac_dummy="$PATH"
976   for ac_dir in $ac_dummy; do
977     test -z "$ac_dir" && ac_dir=.
978     if test -f $ac_dir/$ac_word; then
979       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980         ac_prog_rejected=yes
981         continue
982       fi
983       ac_cv_prog_CC="cc"
984       break
985     fi
986   done
987   IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989   # We found a bogon in the path, so make sure we never use it.
990   set dummy $ac_cv_prog_CC
991   shift
992   if test $# -gt 0; then
993     # We chose a different compiler from the bogus one.
994     # However, it has the same basename, so the bogon will be chosen
995     # first if we set CC to just the basename; use the full file name.
996     shift
997     set dummy "$ac_dir/$ac_word" "$@"
998     shift
999     ac_cv_prog_CC="$@"
1000   fi
1001 fi
1002 fi
1003 fi
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006   echo "$ac_t""$CC" 1>&6
1007 else
1008   echo "$ac_t""no" 1>&6
1009 fi
1010
1011     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1012   fi
1013
1014   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021   yes;
1022 #endif
1023 EOF
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025   ac_cv_prog_gcc=yes
1026 else
1027   ac_cv_prog_gcc=no
1028 fi
1029 fi
1030
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1032
1033   if test $ac_cv_prog_gcc = yes; then
1034     GCC=yes
1035           ac_test_CFLAGS="${CFLAGS+set}"
1036     ac_save_CFLAGS="$CFLAGS"
1037     CFLAGS=
1038     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041   echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043   echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045   ac_cv_prog_cc_g=yes
1046 else
1047   ac_cv_prog_cc_g=no
1048 fi
1049 rm -f conftest*
1050
1051 fi
1052
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054     if test "$ac_test_CFLAGS" = set; then
1055       CFLAGS="$ac_save_CFLAGS"
1056     elif test $ac_cv_prog_cc_g = yes; then
1057       CFLAGS="-g -O2"
1058     else
1059       CFLAGS="-O2"
1060     fi
1061   else
1062     GCC=
1063     test "${CFLAGS+set}" = set || CFLAGS="-g"
1064   fi
1065   
1066
1067   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1068   # will try to link in libstdc++.
1069   
1070
1071       
1072   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073   # flags that come in CXX while configuring libstdc++.  They're different
1074   # from those used for all other target libraries.  If CXX is set in
1075   # the environment, respect that here.
1076   glibcpp_CXX=$CXX
1077   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1078 do
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   if test -n "$glibcpp_CXX"; then
1087   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1090   ac_dummy="$PATH"
1091   for ac_dir in $ac_dummy; do
1092     test -z "$ac_dir" && ac_dir=.
1093     if test -f $ac_dir/$ac_word; then
1094       ac_cv_prog_glibcpp_CXX="$ac_prog"
1095       break
1096     fi
1097   done
1098   IFS="$ac_save_ifs"
1099 fi
1100 fi
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103   echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105   echo "$ac_t""no" 1>&6
1106 fi
1107
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1111
1112   
1113   CXX=$glibcpp_CXX
1114   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1115
1116   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123   yes;
1124 #endif
1125 EOF
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127   ac_cv_prog_gxx=yes
1128 else
1129   ac_cv_prog_gxx=no
1130 fi
1131 fi
1132
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1134
1135   if test $ac_cv_prog_gxx = yes; then
1136     GXX=yes
1137                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138     ac_save_CXXFLAGS="$CXXFLAGS"
1139     CXXFLAGS=
1140     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147   ac_cv_prog_cxx_g=yes
1148 else
1149   ac_cv_prog_cxx_g=no
1150 fi
1151 rm -f conftest*
1152
1153 fi
1154
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156     if test "$ac_test_CXXFLAGS" = set; then
1157       CXXFLAGS="$ac_save_CXXFLAGS"
1158     elif test $ac_cv_prog_cxx_g = yes; then
1159       CXXFLAGS="-g -O2"
1160     else
1161       CXXFLAGS="-O2"
1162     fi
1163   else
1164     GXX=
1165     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1166   fi
1167   
1168
1169   # For directory versioning (e.g., headers) and other variables.
1170   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172   gcc_version=`$glibcpp_CXX -dumpversion`
1173   echo "$ac_t""$gcc_version" 1>&6
1174
1175   # For some reason, gettext needs this.
1176   
1177         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix  $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error.  */
1189 /* We use char because int might match the return type of a gcc2
1190     builtin and then its argument prototype would still apply.  */
1191 char strerror();
1192
1193 int main() {
1194 strerror()
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198   rm -rf conftest*
1199   eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201   echo "configure: failed program was:" >&5
1202   cat conftest.$ac_ext >&5
1203   rm -rf conftest*
1204   eval "ac_cv_lib_$ac_lib_var=no"
1205 fi
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1208
1209 fi
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211   echo "$ac_t""yes" 1>&6
1212   LIBS="$LIBS -lcposix"
1213 else
1214   echo "$ac_t""no" 1>&6
1215 fi
1216
1217   
1218
1219
1220   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   if test -n "$AS"; then
1228   ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231   ac_dummy="$PATH"
1232   for ac_dir in $ac_dummy; do
1233     test -z "$ac_dir" && ac_dir=.
1234     if test -f $ac_dir/$ac_word; then
1235       ac_cv_prog_AS="${ac_tool_prefix}as"
1236       break
1237     fi
1238   done
1239   IFS="$ac_save_ifs"
1240   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1241 fi
1242 fi
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245   echo "$ac_t""$AS" 1>&6
1246 else
1247   echo "$ac_t""no" 1>&6
1248 fi
1249
1250
1251
1252   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   if test -n "$AR"; then
1260   ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1263   ac_dummy="$PATH"
1264   for ac_dir in $ac_dummy; do
1265     test -z "$ac_dir" && ac_dir=.
1266     if test -f $ac_dir/$ac_word; then
1267       ac_cv_prog_AR="${ac_tool_prefix}ar"
1268       break
1269     fi
1270   done
1271   IFS="$ac_save_ifs"
1272   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1273 fi
1274 fi
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277   echo "$ac_t""$AR" 1>&6
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282
1283
1284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$RANLIB"; then
1292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295   ac_dummy="$PATH"
1296   for ac_dir in $ac_dummy; do
1297     test -z "$ac_dir" && ac_dir=.
1298     if test -f $ac_dir/$ac_word; then
1299       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304 fi
1305 fi
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308   echo "$ac_t""$RANLIB" 1>&6
1309 else
1310   echo "$ac_t""no" 1>&6
1311 fi
1312
1313
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316   # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321   echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323   if test -n "$RANLIB"; then
1324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1327   ac_dummy="$PATH"
1328   for ac_dir in $ac_dummy; do
1329     test -z "$ac_dir" && ac_dir=.
1330     if test -f $ac_dir/$ac_word; then
1331       ac_cv_prog_RANLIB="ranlib"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1337 fi
1338 fi
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341   echo "$ac_t""$RANLIB" 1>&6
1342 else
1343   echo "$ac_t""no" 1>&6
1344 fi
1345
1346 else
1347   RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350
1351   # Find a good install program.  We prefer a C program (faster),
1352 # so one script is as good as another.  But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1369   for ac_dir in $PATH; do
1370     # Account for people who put trailing slashes in PATH elements.
1371     case "$ac_dir/" in
1372     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1373     *)
1374       # OSF1 and SCO ODT 3.0 have their own names for install.
1375       # Don't use installbsd from OSF since it installs stuff as root
1376       # by default.
1377       for ac_prog in ginstall scoinst install; do
1378         if test -f $ac_dir/$ac_prog; then
1379           if test $ac_prog = install &&
1380             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381             # AIX install.  It has an incompatible calling convention.
1382             :
1383           else
1384             ac_cv_path_install="$ac_dir/$ac_prog -c"
1385             break 2
1386           fi
1387         fi
1388       done
1389       ;;
1390     esac
1391   done
1392   IFS="$ac_save_IFS"
1393
1394 fi
1395   if test "${ac_cv_path_install+set}" = set; then
1396     INSTALL="$ac_cv_path_install"
1397   else
1398     # As a last resort, use the slow shell script.  We don't cache a
1399     # path for INSTALL within a source directory, because that will
1400     # break other packages using the cache if that directory is
1401     # removed, or if the path is relative.
1402     INSTALL="$ac_install_sh"
1403   fi
1404 fi
1405 echo "$ac_t""$INSTALL" 1>&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415
1416   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420   enableval="$enable_maintainer_mode"
1421   USE_MAINTAINER_MODE=$enableval
1422 else
1423   USE_MAINTAINER_MODE=no
1424 fi
1425
1426   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1427   
1428
1429 if test $USE_MAINTAINER_MODE = yes; then
1430   MAINTAINER_MODE_TRUE=
1431   MAINTAINER_MODE_FALSE='#'
1432 else
1433   MAINTAINER_MODE_TRUE='#'
1434   MAINTAINER_MODE_FALSE=
1435 fi
1436   MAINT=$MAINTAINER_MODE_TRUE
1437   
1438
1439
1440   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1441   # at least currently, we never actually build a program, so we never
1442   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1443   # fails, because we are probably configuring with a cross compiler
1444   # which can't create executables.  So we include AC_EXEEXT to keep
1445   # automake happy, but we don't execute it, since we don't care about
1446   # the result.
1447   if false; then
1448     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449     # to nothing, so nothing would remain between `then' and `fi' if it
1450     # were not for the `:' below.
1451     :
1452     
1453
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460   ac_cv_exeext=.exe
1461 else
1462   rm -f conftest*
1463   echo 'int main () { return 0; }' > conftest.$ac_ext
1464   ac_cv_exeext=
1465   if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466     for file in conftest.*; do
1467       case $file in
1468       *.c | *.o | *.obj) ;;
1469       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470       esac
1471     done
1472   else
1473     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1474   fi
1475   rm -f conftest*
1476   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1477 fi
1478 fi
1479
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1484
1485   fi
1486
1487   case ${glibcpp_basedir} in
1488     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490   esac
1491
1492   # Find platform-specific directories containing configuration info.  In
1493   # addition to possibly modifying the same flags, it also sets up symlinks.
1494   
1495     . ${glibcpp_basedir}/configure.target
1496     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1498
1499
1500
1501 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether build environment is sane" >&5
1503 # Just in case
1504 sleep 1
1505 echo timestamp > conftestfile
1506 # Do `set' in a subshell so we don't clobber the current shell's
1507 # arguments.  Must try -L first in case configure is actually a
1508 # symlink; some systems play weird games with the mod time of symlinks
1509 # (eg FreeBSD returns the mod time of the symlink's containing
1510 # directory).
1511 if (
1512    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1513    if test "$*" = "X"; then
1514       # -L didn't work.
1515       set X `ls -t $srcdir/configure conftestfile`
1516    fi
1517    if test "$*" != "X $srcdir/configure conftestfile" \
1518       && test "$*" != "X conftestfile $srcdir/configure"; then
1519
1520       # If neither matched, then we have a broken ls.  This can happen
1521       # if, for instance, CONFIG_SHELL is bash and it inherits a
1522       # broken ls alias from the environment.  This has actually
1523       # happened.  Such a system could not be considered "sane".
1524       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1525 alias in your environment" 1>&2; exit 1; }
1526    fi
1527
1528    test "$2" = conftestfile
1529    )
1530 then
1531    # Ok.
1532    :
1533 else
1534    { echo "configure: error: newly created file is older than distributed files!
1535 Check your system clock" 1>&2; exit 1; }
1536 fi
1537 rm -f conftest*
1538 echo "$ac_t""yes" 1>&6
1539 if test "$program_transform_name" = s,x,x,; then
1540   program_transform_name=
1541 else
1542   # Double any \ or $.  echo might interpret backslashes.
1543   cat <<\EOF_SED > conftestsed
1544 s,\\,\\\\,g; s,\$,$$,g
1545 EOF_SED
1546   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1547   rm -f conftestsed
1548 fi
1549 test "$program_prefix" != NONE &&
1550   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1551 # Use a double $ so make ignores it.
1552 test "$program_suffix" != NONE &&
1553   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1554
1555 # sed with no file args requires a program.
1556 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1557
1558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ${MAKE-make} sets \${MAKE}" >&5
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   cat > conftestmake <<\EOF
1565 all:
1566         @echo 'ac_maketemp="${MAKE}"'
1567 EOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftestmake
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$ac_t""yes" 1>&6
1579   SET_MAKE=
1580 else
1581   echo "$ac_t""no" 1>&6
1582   SET_MAKE="MAKE=${MAKE-make}"
1583 fi
1584
1585
1586 PACKAGE=$PACKAGE
1587
1588 VERSION=$gcc_version
1589
1590 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1591   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1592 fi
1593 cat >> confdefs.h <<EOF
1594 #define PACKAGE "$PACKAGE"
1595 EOF
1596
1597 cat >> confdefs.h <<EOF
1598 #define VERSION "$VERSION"
1599 EOF
1600
1601
1602
1603 missing_dir=`cd $ac_aux_dir && pwd`
1604 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1605 echo "configure:1606: checking for working aclocal" >&5
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf.  Sigh.
1609 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1610    ACLOCAL=aclocal
1611    echo "$ac_t""found" 1>&6
1612 else
1613    ACLOCAL="$missing_dir/missing aclocal"
1614    echo "$ac_t""missing" 1>&6
1615 fi
1616
1617 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working autoconf" >&5
1619 # Run test in a subshell; some versions of sh will print an error if
1620 # an executable is not found, even if stderr is redirected.
1621 # Redirect stdin to placate older versions of autoconf.  Sigh.
1622 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1623    AUTOCONF=autoconf
1624    echo "$ac_t""found" 1>&6
1625 else
1626    AUTOCONF="$missing_dir/missing autoconf"
1627    echo "$ac_t""missing" 1>&6
1628 fi
1629
1630 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working automake" >&5
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf.  Sigh.
1635 if (automake --version) < /dev/null > /dev/null 2>&1; then
1636    AUTOMAKE=automake
1637    echo "$ac_t""found" 1>&6
1638 else
1639    AUTOMAKE="$missing_dir/missing automake"
1640    echo "$ac_t""missing" 1>&6
1641 fi
1642
1643 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1644 echo "configure:1645: checking for working autoheader" >&5
1645 # Run test in a subshell; some versions of sh will print an error if
1646 # an executable is not found, even if stderr is redirected.
1647 # Redirect stdin to placate older versions of autoconf.  Sigh.
1648 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1649    AUTOHEADER=autoheader
1650    echo "$ac_t""found" 1>&6
1651 else
1652    AUTOHEADER="$missing_dir/missing autoheader"
1653    echo "$ac_t""missing" 1>&6
1654 fi
1655
1656 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working makeinfo" >&5
1658 # Run test in a subshell; some versions of sh will print an error if
1659 # an executable is not found, even if stderr is redirected.
1660 # Redirect stdin to placate older versions of autoconf.  Sigh.
1661 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1662    MAKEINFO=makeinfo
1663    echo "$ac_t""found" 1>&6
1664 else
1665    MAKEINFO="$missing_dir/missing makeinfo"
1666    echo "$ac_t""missing" 1>&6
1667 fi
1668
1669
1670
1671
1672
1673
1674
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677   enableval="$enable_shared"
1678   p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1682 *)
1683   enable_shared=no
1684   # Look at the argument we got.  We use all the common list separators.
1685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686   for pkg in $enableval; do
1687     if test "X$pkg" = "X$p"; then
1688       enable_shared=yes
1689     fi
1690   done
1691   IFS="$ac_save_ifs"
1692   ;;
1693 esac
1694 else
1695   enable_shared=yes
1696 fi
1697
1698 # Check whether --enable-static or --disable-static was given.
1699 if test "${enable_static+set}" = set; then
1700   enableval="$enable_static"
1701   p=${PACKAGE-default}
1702 case $enableval in
1703 yes) enable_static=yes ;;
1704 no) enable_static=no ;;
1705 *)
1706   enable_static=no
1707   # Look at the argument we got.  We use all the common list separators.
1708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1709   for pkg in $enableval; do
1710     if test "X$pkg" = "X$p"; then
1711       enable_static=yes
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   ;;
1716 esac
1717 else
1718   enable_static=yes
1719 fi
1720
1721 # Check whether --enable-fast-install or --disable-fast-install was given.
1722 if test "${enable_fast_install+set}" = set; then
1723   enableval="$enable_fast_install"
1724   p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_fast_install=yes ;;
1727 no) enable_fast_install=no ;;
1728 *)
1729   enable_fast_install=no
1730   # Look at the argument we got.  We use all the common list separators.
1731   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1732   for pkg in $enableval; do
1733     if test "X$pkg" = "X$p"; then
1734       enable_fast_install=yes
1735     fi
1736   done
1737   IFS="$ac_save_ifs"
1738   ;;
1739 esac
1740 else
1741   enable_fast_install=yes
1742 fi
1743
1744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1745 if test "${with_gnu_ld+set}" = set; then
1746   withval="$with_gnu_ld"
1747   test "$withval" = no || with_gnu_ld=yes
1748 else
1749   with_gnu_ld=no
1750 fi
1751
1752 ac_prog=ld
1753 if test "$GCC" = yes; then
1754   # Check if gcc -print-prog-name=ld gives a path.
1755   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ld used by GCC" >&5
1757   case $host in
1758   *-*-mingw*)
1759     # gcc leaves a trailing carriage return which upsets mingw
1760     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1761   *)
1762     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1763   esac
1764   case $ac_prog in
1765     # Accept absolute paths.
1766     [\\/]* | [A-Za-z]:[\\/]*)
1767       re_direlt='/[^/][^/]*/\.\./'
1768       # Canonicalize the path of ld
1769       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1770       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1771         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772       done
1773       test -z "$LD" && LD="$ac_prog"
1774       ;;
1775   "")
1776     # If it fails, then pretend we aren't using GCC.
1777     ac_prog=ld
1778     ;;
1779   *)
1780     # If it is relative, then search for the first ld in PATH.
1781     with_gnu_ld=unknown
1782     ;;
1783   esac
1784 elif test "$with_gnu_ld" = yes; then
1785   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for GNU ld" >&5
1787 else
1788   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for non-GNU ld" >&5
1790 fi
1791 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1792   echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794   if test -z "$LD"; then
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796   for ac_dir in $PATH; do
1797     test -z "$ac_dir" && ac_dir=.
1798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1799       lt_cv_path_LD="$ac_dir/$ac_prog"
1800       # Check to see if the program is GNU ld.  I'd rather use --version,
1801       # but apparently some GNU ld's only accept -v.
1802       # Break only if it was the GNU/non-GNU ld that we prefer.
1803       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1804         test "$with_gnu_ld" != no && break
1805       else
1806         test "$with_gnu_ld" != yes && break
1807       fi
1808     fi
1809   done
1810   IFS="$ac_save_ifs"
1811 else
1812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1813 fi
1814 fi
1815
1816 LD="$lt_cv_path_LD"
1817 if test -n "$LD"; then
1818   echo "$ac_t""$LD" 1>&6
1819 else
1820   echo "$ac_t""no" 1>&6
1821 fi
1822 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1823 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking if the linker ($LD) is GNU ld" >&5
1825 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1830   lt_cv_prog_gnu_ld=yes
1831 else
1832   lt_cv_prog_gnu_ld=no
1833 fi
1834 fi
1835
1836 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1837 with_gnu_ld=$lt_cv_prog_gnu_ld
1838
1839
1840 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $LD option to reload object files" >&5
1842 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1843   echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845   lt_cv_ld_reload_flag='-r'
1846 fi
1847
1848 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1849 reload_flag=$lt_cv_ld_reload_flag
1850 test -n "$reload_flag" && reload_flag=" $reload_flag"
1851
1852 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for BSD-compatible nm" >&5
1854 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test -n "$NM"; then
1858   # Let the user override the test.
1859   lt_cv_path_NM="$NM"
1860 else
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863     test -z "$ac_dir" && ac_dir=.
1864     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1865     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1866       # Check to see if the nm accepts a BSD-compat flag.
1867       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1868       #   nm: unknown option "B" ignored
1869       # Tru64's nm complains that /dev/null is an invalid object file
1870       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1871         lt_cv_path_NM="$tmp_nm -B"
1872         break
1873       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -p"
1875         break
1876       else
1877         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1878         continue # so that we can try to find one that supports BSD flags
1879       fi
1880     fi
1881   done
1882   IFS="$ac_save_ifs"
1883   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1884 fi
1885 fi
1886
1887 NM="$lt_cv_path_NM"
1888 echo "$ac_t""$NM" 1>&6
1889
1890 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1891 echo "configure:1892: checking how to recognise dependant libraries" >&5
1892 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   lt_cv_file_magic_cmd='$MAGIC_CMD'
1896 lt_cv_file_magic_test_file=
1897 lt_cv_deplibs_check_method='unknown'
1898 # Need to set the preceding variable on all platforms that support
1899 # interlibrary dependencies.
1900 # 'none' -- dependencies not supported.
1901 # `unknown' -- same as none, but documents that we really don't know.
1902 # 'pass_all' -- all dependencies passed with no checks.
1903 # 'test_compile' -- check by making test program.
1904 # 'file_magic [regex]' -- check by looking for files in library path
1905 # which responds to the $file_magic_cmd with a given egrep regex.
1906 # If you have `file' or equivalent on your system and you're not sure
1907 # whether `pass_all' will *always* work, you probably want this one.
1908
1909 case $host_os in
1910 aix*)
1911   lt_cv_deplibs_check_method=pass_all
1912   ;;
1913
1914 beos*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 bsdi4*)
1919   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1920   lt_cv_file_magic_cmd='/usr/bin/file -L'
1921   lt_cv_file_magic_test_file=/shlib/libc.so
1922   ;;
1923
1924 cygwin* | mingw* |pw32*)
1925   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1926   lt_cv_file_magic_cmd='$OBJDUMP -f'
1927   ;;
1928
1929 darwin* | rhapsody*)
1930   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1931   lt_cv_file_magic_cmd='/usr/bin/file -L'
1932   case "$host_os" in
1933   rhapsody* | darwin1.012)
1934     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1935     ;;
1936   *) # Darwin 1.3 on
1937     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1938     ;;
1939   esac
1940   ;;
1941
1942 freebsd* )
1943   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1944     case $host_cpu in
1945     i*86 )
1946       # Not sure whether the presence of OpenBSD here was a mistake.
1947       # Let's accept both of them until this is cleared up.
1948       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1949       lt_cv_file_magic_cmd=/usr/bin/file
1950       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1951       ;;
1952     esac
1953   else
1954     lt_cv_deplibs_check_method=pass_all
1955   fi
1956   ;;
1957
1958 gnu*)
1959   lt_cv_deplibs_check_method=pass_all
1960   ;;
1961
1962 hpux10.20*|hpux11*)
1963   case $host_cpu in
1964   hppa*)
1965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1966     lt_cv_file_magic_cmd=/usr/bin/file
1967     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968     ;;
1969   ia64*)
1970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1971     lt_cv_file_magic_cmd=/usr/bin/file
1972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1973     ;;
1974   esac
1975   ;;
1976
1977 irix5* | irix6*)
1978   case $host_os in
1979   irix5*)
1980     # this will be overridden with pass_all, but let us keep it just in case
1981     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1982     ;;
1983   *)
1984     case $LD in
1985     *-32|*"-32 ") libmagic=32-bit;;
1986     *-n32|*"-n32 ") libmagic=N32;;
1987     *-64|*"-64 ") libmagic=64-bit;;
1988     *) libmagic=never-match;;
1989     esac
1990     # this will be overridden with pass_all, but let us keep it just in case
1991     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1992     ;;
1993   esac
1994   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1995   lt_cv_deplibs_check_method=pass_all
1996   ;;
1997
1998 # This must be Linux ELF.
1999 linux-gnu*)
2000   case $host_cpu in
2001   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2002     lt_cv_deplibs_check_method=pass_all ;;
2003   *)
2004     # glibc up to 2.1.1 does not perform some relocations on ARM
2005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006   esac
2007   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2008   ;;
2009
2010 netbsd*)
2011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2012     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2013   else
2014     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2015   fi
2016   ;;
2017
2018 newsos6)
2019   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2020   lt_cv_file_magic_cmd=/usr/bin/file
2021   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2022   ;;
2023
2024 osf3* | osf4* | osf5*)
2025   # this will be overridden with pass_all, but let us keep it just in case
2026   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2027   lt_cv_file_magic_test_file=/shlib/libc.so
2028   lt_cv_deplibs_check_method=pass_all
2029   ;;
2030
2031 sco3.2v5*)
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 solaris*)
2036   lt_cv_deplibs_check_method=pass_all
2037   lt_cv_file_magic_test_file=/lib/libc.so
2038   ;;
2039
2040 sysv5uw[78]* | sysv4*uw2*)
2041   lt_cv_deplibs_check_method=pass_all
2042   ;;
2043
2044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2045   case $host_vendor in
2046   ncr)
2047     lt_cv_deplibs_check_method=pass_all
2048     ;;
2049   motorola)
2050     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]'
2051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2052     ;;
2053   esac
2054   ;;
2055 esac
2056
2057 fi
2058
2059 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2060 file_magic_cmd=$lt_cv_file_magic_cmd
2061 deplibs_check_method=$lt_cv_deplibs_check_method
2062
2063 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2064 echo "configure:2065: checking for object suffix" >&5
2065 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2066   echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068   rm -f conftest*
2069 echo 'int i = 1;' > conftest.$ac_ext
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071   for ac_file in conftest.*; do
2072     case $ac_file in
2073     *.c) ;;
2074     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2075     esac
2076   done
2077 else
2078   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2079 fi
2080 rm -f conftest*
2081 fi
2082
2083 echo "$ac_t""$ac_cv_objext" 1>&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$ac_cv_objext
2086
2087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2088
2089 # Only perform the check for file, if the check method requires it
2090 case $deplibs_check_method in
2091 file_magic*)
2092   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2093     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for ${ac_tool_prefix}file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096   echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098   case $MAGIC_CMD in
2099   /*)
2100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2101   ;;
2102   ?:/*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2104   ;;
2105   *)
2106   ac_save_MAGIC_CMD="$MAGIC_CMD"
2107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2108   ac_dummy="/usr/bin:$PATH"
2109   for ac_dir in $ac_dummy; do
2110     test -z "$ac_dir" && ac_dir=.
2111     if test -f $ac_dir/${ac_tool_prefix}file; then
2112       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2113       if test -n "$file_magic_test_file"; then
2114         case $deplibs_check_method in
2115         "file_magic "*)
2116           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119             egrep "$file_magic_regex" > /dev/null; then
2120             :
2121           else
2122             cat <<EOF 1>&2
2123
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such.  This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem.  Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2132
2133 EOF
2134           fi ;;
2135         esac
2136       fi
2137       break
2138     fi
2139   done
2140   IFS="$ac_save_ifs"
2141   MAGIC_CMD="$ac_save_MAGIC_CMD"
2142   ;;
2143 esac
2144 fi
2145
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148   echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150   echo "$ac_t""no" 1>&6
2151 fi
2152
2153 if test -z "$lt_cv_path_MAGIC_CMD"; then
2154   if test -n "$ac_tool_prefix"; then
2155     echo $ac_n "checking for file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158   echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160   case $MAGIC_CMD in
2161   /*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163   ;;
2164   ?:/*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2166   ;;
2167   *)
2168   ac_save_MAGIC_CMD="$MAGIC_CMD"
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="/usr/bin:$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/file; then
2174       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2175       if test -n "$file_magic_test_file"; then
2176         case $deplibs_check_method in
2177         "file_magic "*)
2178           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181             egrep "$file_magic_regex" > /dev/null; then
2182             :
2183           else
2184             cat <<EOF 1>&2
2185
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such.  This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem.  Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2194
2195 EOF
2196           fi ;;
2197         esac
2198       fi
2199       break
2200     fi
2201   done
2202   IFS="$ac_save_ifs"
2203   MAGIC_CMD="$ac_save_MAGIC_CMD"
2204   ;;
2205 esac
2206 fi
2207
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210   echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212   echo "$ac_t""no" 1>&6
2213 fi
2214
2215   else
2216     MAGIC_CMD=:
2217   fi
2218 fi
2219
2220   fi
2221   ;;
2222 esac
2223
2224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   if test -n "$RANLIB"; then
2232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2233 else
2234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2235   ac_dummy="$PATH"
2236   for ac_dir in $ac_dummy; do
2237     test -z "$ac_dir" && ac_dir=.
2238     if test -f $ac_dir/$ac_word; then
2239       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2240       break
2241     fi
2242   done
2243   IFS="$ac_save_ifs"
2244 fi
2245 fi
2246 RANLIB="$ac_cv_prog_RANLIB"
2247 if test -n "$RANLIB"; then
2248   echo "$ac_t""$RANLIB" 1>&6
2249 else
2250   echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 if test -z "$ac_cv_prog_RANLIB"; then
2255 if test -n "$ac_tool_prefix"; then
2256   # Extract the first word of "ranlib", so it can be a program name with args.
2257 set dummy ranlib; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$RANLIB"; then
2264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2267   ac_dummy="$PATH"
2268   for ac_dir in $ac_dummy; do
2269     test -z "$ac_dir" && ac_dir=.
2270     if test -f $ac_dir/$ac_word; then
2271       ac_cv_prog_RANLIB="ranlib"
2272       break
2273     fi
2274   done
2275   IFS="$ac_save_ifs"
2276   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2277 fi
2278 fi
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281   echo "$ac_t""$RANLIB" 1>&6
2282 else
2283   echo "$ac_t""no" 1>&6
2284 fi
2285
2286 else
2287   RANLIB=":"
2288 fi
2289 fi
2290
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2296   echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298   if test -n "$STRIP"; then
2299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2302   ac_dummy="$PATH"
2303   for ac_dir in $ac_dummy; do
2304     test -z "$ac_dir" && ac_dir=.
2305     if test -f $ac_dir/$ac_word; then
2306       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307       break
2308     fi
2309   done
2310   IFS="$ac_save_ifs"
2311 fi
2312 fi
2313 STRIP="$ac_cv_prog_STRIP"
2314 if test -n "$STRIP"; then
2315   echo "$ac_t""$STRIP" 1>&6
2316 else
2317   echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2334   ac_dummy="$PATH"
2335   for ac_dir in $ac_dummy; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_STRIP="strip"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2344 fi
2345 fi
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348   echo "$ac_t""$STRIP" 1>&6
2349 else
2350   echo "$ac_t""no" 1>&6
2351 fi
2352
2353 else
2354   STRIP=":"
2355 fi
2356 fi
2357
2358
2359 # Check for any special flags to pass to ltconfig.
2360 libtool_flags="--cache-file=$cache_file"
2361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2363 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2364 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2365 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2366 libtool_flags="$libtool_flags --enable-dlopen"
2367
2368 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2369 if test "${enable_libtool_lock+set}" = set; then
2370   enableval="$enable_libtool_lock"
2371   :
2372 fi
2373
2374 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2375 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2376
2377 # Check whether --with-pic or --without-pic was given.
2378 if test "${with_pic+set}" = set; then
2379   withval="$with_pic"
2380   pic_mode="$withval"
2381 else
2382   pic_mode=default
2383 fi
2384
2385 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2386 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2387
2388 # Some flags need to be propagated to the compiler or linker for good
2389 # libtool support.
2390 case $host in
2391 *-*-irix6*)
2392   # Find out which ABI we are using.
2393   echo '#line 2394 "configure"' > conftest.$ac_ext
2394   if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395     case `/usr/bin/file conftest.$ac_objext` in
2396     *32-bit*)
2397       LD="${LD-ld} -32"
2398       ;;
2399     *N32*)
2400       LD="${LD-ld} -n32"
2401       ;;
2402     *64-bit*)
2403       LD="${LD-ld} -64"
2404       ;;
2405     esac
2406   fi
2407   rm -rf conftest*
2408   ;;
2409
2410 ia64-*-hpux*)
2411   # Find out which ABI we are using.
2412   echo 'int i;' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case "`/usr/bin/file conftest.o`" in
2415     *ELF-32*)
2416       HPUX_IA64_MODE="32"
2417       ;;
2418     *ELF-64*)
2419       HPUX_IA64_MODE="64"
2420       ;;
2421     esac
2422   fi
2423   rm -rf conftest*
2424   ;;
2425
2426 *-*-sco3.2v5*)
2427   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428   SAVE_CFLAGS="$CFLAGS"
2429   CFLAGS="$CFLAGS -belf"
2430   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433   echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435   
2436      ac_ext=c
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cc_cross
2442
2443      cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446
2447 int main() {
2448
2449 ; return 0; }
2450 EOF
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452   rm -rf conftest*
2453   lt_cv_cc_needs_belf=yes
2454 else
2455   echo "configure: failed program was:" >&5
2456   cat conftest.$ac_ext >&5
2457   rm -rf conftest*
2458   lt_cv_cc_needs_belf=no
2459 fi
2460 rm -f conftest*
2461      ac_ext=c
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling=$ac_cv_prog_cc_cross
2467
2468 fi
2469
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2472     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473     CFLAGS="$SAVE_CFLAGS"
2474   fi
2475   ;;
2476
2477
2478 esac
2479
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484   echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486   ac_ext=C
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cxx_cross
2492   CXXCPP="${CXX-g++} -E"
2493   cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <stdlib.h>
2497 EOF
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2502   :
2503 else
2504   echo "$ac_err" >&5
2505   echo "configure: failed program was:" >&5
2506   cat conftest.$ac_ext >&5
2507   rm -rf conftest*
2508   CXXCPP=/lib/cpp
2509 fi
2510 rm -f conftest*
2511   ac_cv_prog_CXXCPP="$CXXCPP"
2512 ac_ext=c
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2518 fi
2519 fi
2520 CXXCPP="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2522
2523
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache <<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs.  It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2530 #
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already.  You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2539 #
2540 EOF
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2546 (set) 2>&1 |
2547   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2548   *ac_space=\ *)
2549     # `set' does not quote correctly, so add quotes (double-quote substitution
2550     # turns \\\\ into \\, and sed turns \\ into \).
2551     sed -n \
2552       -e "s/'/'\\\\''/g" \
2553       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2554     ;;
2555   *)
2556     # `set' quotes correctly as required by POSIX, so do not add quotes.
2557     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2558     ;;
2559   esac >> confcache
2560 if cmp -s $cache_file confcache; then
2561   :
2562 else
2563   if test -w $cache_file; then
2564     echo "updating cache $cache_file"
2565     cat confcache > $cache_file
2566   else
2567     echo "not updating unwritable cache $cache_file"
2568   fi
2569 fi
2570 rm -f confcache
2571
2572
2573 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2574 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2575 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2577 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2578 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2579 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2583
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586   echo "loading cache $cache_file"
2587   . $cache_file
2588 else
2589   echo "creating cache $cache_file"
2590   > $cache_file
2591 fi
2592
2593
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2596
2597 # Always use our own libtool.
2598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2599
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2603
2604
2605
2606 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2607 lt_save_CC="$CC"
2608 lt_save_CFLAGS="$CFLAGS"
2609 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2610 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2611 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2612 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2613 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2614 deplibs_check_method="$deplibs_check_method" \
2615 file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2617 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2618 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2619 CC="$lt_save_CC"
2620 CFLAGS="$lt_save_CFLAGS"
2621
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2625
2626   
2627
2628   
2629          
2630          
2631
2632
2633
2634 # Check for c++ or library specific bits that don't require linking.
2635 #GLIBCPP_CHECK_COMPILER_VERSION
2636 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2637 echo "configure:2638: checking for GNU make" >&5
2638 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2639   echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641   _cv_gnu_make_command='' ;
2642           for a in "${MAKE-make}" make gmake gnumake ; do
2643                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2644                   then
2645                           _cv_gnu_make_command=$a ;
2646                           break;
2647                   fi
2648           done ;
2649   
2650 fi
2651
2652 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2653   if test  "x$_cv_gnu_make_command" != "x"  ; then
2654           ifGNUmake='' ;
2655   else
2656           ifGNUmake='#' ;
2657   fi
2658   
2659
2660
2661 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2662 # Check whether --enable-debug or --disable-debug was given.
2663 if test "${enable_debug+set}" = set; then
2664   enableval="$enable_debug"
2665   case "${enableval}" in
2666  yes) enable_debug=yes ;;
2667  no)  enable_debug=no ;;
2668  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2669  esac
2670 else
2671   enable_debug=no
2672 fi
2673
2674 case "${enable_debug}" in
2675     yes) 
2676         DEBUG_FLAGS='-O0 -ggdb3'                        
2677         ;; 
2678     no)   
2679         DEBUG_FLAGS='-g'
2680         ;;
2681 esac
2682
2683
2684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2685 echo "configure:2686: checking how to run the C preprocessor" >&5
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2688   CPP=
2689 fi
2690 if test -z "$CPP"; then
2691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694     # This must be in double quotes, not single quotes, because CPP may get
2695   # substituted into the Makefile and "${CC-cc}" will confuse make.
2696   CPP="${CC-cc} -E"
2697   # On the NeXT, cc -E runs the code through the compiler's parser,
2698   # not just through cpp.
2699   cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <assert.h>
2703 Syntax Error
2704 EOF
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2709   :
2710 else
2711   echo "$ac_err" >&5
2712   echo "configure: failed program was:" >&5
2713   cat conftest.$ac_ext >&5
2714   rm -rf conftest*
2715   CPP="${CC-cc} -E -traditional-cpp"
2716   cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <assert.h>
2720 Syntax Error
2721 EOF
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2726   :
2727 else
2728   echo "$ac_err" >&5
2729   echo "configure: failed program was:" >&5
2730   cat conftest.$ac_ext >&5
2731   rm -rf conftest*
2732   CPP="${CC-cc} -nologo -E"
2733   cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <assert.h>
2737 Syntax Error
2738 EOF
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2743   :
2744 else
2745   echo "$ac_err" >&5
2746   echo "configure: failed program was:" >&5
2747   cat conftest.$ac_ext >&5
2748   rm -rf conftest*
2749   CPP=/lib/cpp
2750 fi
2751 rm -f conftest*
2752 fi
2753 rm -f conftest*
2754 fi
2755 rm -f conftest*
2756   ac_cv_prog_CPP="$CPP"
2757 fi
2758   CPP="$ac_cv_prog_CPP"
2759 else
2760   ac_cv_prog_CPP="$CPP"
2761 fi
2762 echo "$ac_t""$CPP" 1>&6
2763
2764
2765   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2766 echo "configure:2767: checking for cstdio to use" >&5
2767   # Check whether --enable-cstdio or --disable-cstdio was given.
2768 if test "${enable_cstdio+set}" = set; then
2769   enableval="$enable_cstdio"
2770   if test x$enable_cstdio = xno; then
2771      enable_cstdio=stdio
2772   fi
2773 else
2774   enable_cstdio=stdio
2775 fi
2776
2777
2778   enable_cstdio_flag=$enable_cstdio
2779
2780     case x${enable_cstdio_flag} in
2781     xlibio)
2782       CSTDIO_H=config/io/c_io_libio.h
2783       BASIC_FILE_H=config/io/basic_file_libio.h
2784       BASIC_FILE_CC=config/io/basic_file_libio.cc
2785       echo "$ac_t""libio" 1>&6
2786
2787       # see if we are on a system with libio native (ie, linux)
2788       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for libio.h" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792   echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794   cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <libio.h>
2798 EOF
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2803   rm -rf conftest*
2804   eval "ac_cv_header_$ac_safe=yes"
2805 else
2806   echo "$ac_err" >&5
2807   echo "configure: failed program was:" >&5
2808   cat conftest.$ac_ext >&5
2809   rm -rf conftest*
2810   eval "ac_cv_header_$ac_safe=no"
2811 fi
2812 rm -f conftest*
2813 fi
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815   echo "$ac_t""yes" 1>&6
2816   has_libio=yes
2817 else
2818   echo "$ac_t""no" 1>&6
2819 has_libio=no
2820 fi
2821
2822
2823       # Need to check and see what version of glibc is being used. If
2824       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2825       # compile most of libio for linux systems.
2826       if test x$has_libio = x"yes"; then
2827         case "$target" in
2828           *-*-linux*)
2829               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2830 echo "configure:2831: checking for glibc version >= 2.2" >&5
2831               cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834
2835             #include <features.h>
2836               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2837                     ok
2838               #endif
2839               
2840 EOF
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842   egrep "ok" >/dev/null 2>&1; then
2843   rm -rf conftest*
2844   glibc_satisfactory=yes
2845 else
2846   rm -rf conftest*
2847   glibc_satisfactory=no
2848 fi
2849 rm -f conftest*
2850
2851               echo "$ac_t""$glibc_satisfactory" 1>&6
2852             ;;
2853         esac
2854
2855         # XXX at the moment, admit defeat and force the recompilation
2856         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2857         glibc_satisfactory=no        
2858
2859         if test x$glibc_satisfactory = x"yes"; then
2860            need_libio=no
2861            need_wlibio=no        
2862         else
2863            need_libio=yes
2864            # bkoz XXX need to add checks to enable this
2865            # pme XXX here's a first pass at such a check
2866            if test x$enable_c_mbchar != xno; then
2867               need_wlibio=yes
2868            else
2869               need_wlibio=no
2870            fi
2871         fi
2872
2873       else
2874          # Using libio, but <libio.h> doesn't exist on the target system. . .
2875          need_libio=yes
2876          # bkoz XXX need to add checks to enable this
2877          # pme XXX here's a first pass at such a check
2878          if test x$enable_c_mbchar != xno; then
2879              need_wlibio=yes
2880          else
2881              need_wlibio=no
2882          fi
2883       fi
2884       ;;
2885     xstdio | x | xno | xnone | xyes)
2886       # default
2887       CSTDIO_H=config/io/c_io_stdio.h
2888       BASIC_FILE_H=config/io/basic_file_stdio.h
2889       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2890       echo "$ac_t""stdio" 1>&6
2891
2892       # We're not using stdio.
2893       need_libio=no
2894       need_wlibio=no
2895       ;;
2896     *)
2897       echo "$enable_cstdio is an unknown io package" 1>&2
2898       exit 1
2899       ;;
2900   esac
2901   
2902   
2903   
2904
2905   # 2000-08-04 bkoz hack
2906   CCODECVT_C=config/io/c_io_libio_codecvt.c
2907   
2908   # 2000-08-04 bkoz hack
2909
2910   
2911
2912 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2913   GLIBCPP_BUILD_LIBIO_TRUE=
2914   GLIBCPP_BUILD_LIBIO_FALSE='#'
2915 else
2916   GLIBCPP_BUILD_LIBIO_TRUE='#'
2917   GLIBCPP_BUILD_LIBIO_FALSE=
2918 fi
2919   
2920
2921 if test "$need_libio" = yes; then
2922   GLIBCPP_NEED_LIBIO_TRUE=
2923   GLIBCPP_NEED_LIBIO_FALSE='#'
2924 else
2925   GLIBCPP_NEED_LIBIO_TRUE='#'
2926   GLIBCPP_NEED_LIBIO_FALSE=
2927 fi
2928   
2929
2930 if test "$need_wlibio" = yes; then
2931   GLIBCPP_NEED_WLIBIO_TRUE=
2932   GLIBCPP_NEED_WLIBIO_FALSE='#'
2933 else
2934   GLIBCPP_NEED_WLIBIO_TRUE='#'
2935   GLIBCPP_NEED_WLIBIO_FALSE=
2936 fi
2937   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2938     libio_la=../libio/libio.la
2939   else
2940     libio_la=
2941   fi
2942   
2943
2944
2945   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2946 echo "configure:2947: checking for clocale to use" >&5
2947   # Check whether --enable-clocale or --disable-clocale was given.
2948 if test "${enable_clocale+set}" = set; then
2949   enableval="$enable_clocale"
2950   if test x$enable_clocale = xno; then
2951      enable_clocale=no
2952   fi
2953 else
2954   enable_clocale=no
2955 fi
2956
2957
2958   enable_clocale_flag=$enable_clocale
2959
2960       if test x$enable_clocale_flag = xno; then
2961     case x${target_os} in
2962       xlinux* | xgnu*)
2963         cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966
2967         #include <features.h>
2968         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2969           _GLIBCPP_ok
2970         #endif
2971         
2972 EOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2975   rm -rf conftest*
2976   enable_clocale_flag=gnu
2977 else
2978   rm -rf conftest*
2979   enable_clocale_flag=generic
2980 fi
2981 rm -f conftest*
2982
2983
2984         # Test for bugs early in glibc-2.2.x series
2985         if test x$enable_clocale_flag = xgnu; then
2986           if test "$cross_compiling" = yes; then
2987   enable_clocale_flag=generic
2988 else
2989   cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992
2993           #define _GNU_SOURCE 1
2994           #include <locale.h>
2995           #include <string.h>
2996           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2997           extern __typeof(newlocale) __newlocale;
2998           extern __typeof(duplocale) __duplocale;
2999           extern __typeof(strcoll_l) __strcoll_l;
3000           #endif
3001           int main()
3002           {
3003             const char __one[] = "Äuglein Augmen";
3004             const char __two[] = "Äuglein";
3005             int i;
3006             int j;
3007             __locale_t  loc;
3008             __locale_t  loc_dup;
3009             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3010             loc_dup = __duplocale(loc);
3011             i = __strcoll_l(__one, __two, loc);
3012             j = __strcoll_l(__one, __two, loc_dup);
3013             return 0;
3014           }
3015           
3016 EOF
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3018 then
3019   enable_clocale_flag=gnu
3020 else
3021   echo "configure: failed program was:" >&5
3022   cat conftest.$ac_ext >&5
3023   rm -fr conftest*
3024   enable_clocale_flag=generic
3025 fi
3026 rm -fr conftest*
3027 fi
3028
3029         fi
3030
3031         # ... at some point put __strxfrm_l tests in as well.
3032         ;;
3033       *)
3034         enable_clocale_flag=generic
3035         ;;
3036     esac
3037   fi
3038
3039     # Check whether --enable-nls or --disable-nls was given.
3040 if test "${enable_nls+set}" = set; then
3041   enableval="$enable_nls"
3042   :
3043 else
3044   enable_nls=yes
3045 fi
3046
3047   USE_NLS=no
3048
3049     case x${enable_clocale_flag} in
3050     xgeneric)
3051       echo "$ac_t""generic" 1>&6
3052
3053       CLOCALE_H=config/locale/generic/c_locale.h
3054       CLOCALE_CC=config/locale/generic/c_locale.cc
3055       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3056       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3057       CCOLLATE_CC=config/locale/generic/collate_members.cc
3058       CCTYPE_CC=config/locale/generic/ctype_members.cc
3059       CMESSAGES_H=config/locale/generic/messages_members.h
3060       CMESSAGES_CC=config/locale/generic/messages_members.cc
3061       CMONEY_CC=config/locale/generic/monetary_members.cc
3062       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3063       CTIME_CC=config/locale/generic/time_members.cc
3064       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3065       ;;
3066     xgnu)
3067       echo "$ac_t""gnu" 1>&6
3068
3069       # Declare intention to use gettext, and add support for specific
3070       # languages.
3071       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3072       ALL_LINGUAS="de fr"
3073
3074       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3075       # Extract the first word of "msgfmt", so it can be a program name with args.
3076 set dummy msgfmt; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3080   echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082   if test -n "$check_msgfmt"; then
3083   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3084 else
3085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3086   ac_dummy="$PATH"
3087   for ac_dir in $ac_dummy; do
3088     test -z "$ac_dir" && ac_dir=.
3089     if test -f $ac_dir/$ac_word; then
3090       ac_cv_prog_check_msgfmt="yes"
3091       break
3092     fi
3093   done
3094   IFS="$ac_save_ifs"
3095   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3096 fi
3097 fi
3098 check_msgfmt="$ac_cv_prog_check_msgfmt"
3099 if test -n "$check_msgfmt"; then
3100   echo "$ac_t""$check_msgfmt" 1>&6
3101 else
3102   echo "$ac_t""no" 1>&6
3103 fi
3104
3105       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3106         USE_NLS=yes
3107       fi
3108       # Export the build objects.
3109       for ling in $ALL_LINGUAS; do \
3110         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3111         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3112       done
3113       
3114       
3115
3116       CLOCALE_H=config/locale/gnu/c_locale.h
3117       CLOCALE_CC=config/locale/gnu/c_locale.cc
3118       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3119       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3120       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3121       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3122       CMESSAGES_H=config/locale/gnu/messages_members.h
3123       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3124       CMONEY_CC=config/locale/gnu/monetary_members.cc
3125       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3126       CTIME_CC=config/locale/gnu/time_members.cc
3127       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3128       ;;
3129     xieee_1003.1-2001)
3130       echo "$ac_t""generic" 1>&6
3131
3132       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3133       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3134       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3135       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3136       CCOLLATE_CC=config/locale/generic/collate_members.cc
3137       CCTYPE_CC=config/locale/generic/ctype_members.cc
3138       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3139       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3140       CMONEY_CC=config/locale/generic/monetary_members.cc
3141       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3142       CTIME_CC=config/locale/generic/time_members.cc
3143       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3144       ;;
3145     *)
3146       echo "$enable_clocale is an unknown locale package" 1>&2
3147       exit 1
3148       ;;
3149   esac
3150
3151   # This is where the testsuite looks for locale catalogs, using the
3152   # -DLOCALEDIR define during testsuite compilation.
3153   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3154   
3155
3156   # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3157 #  CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3158
3159   
3160   
3161   
3162   
3163   
3164   
3165   
3166 #  AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3167   
3168   
3169   
3170   
3171   
3172   
3173
3174 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3175 if test "${enable_c_mbchar+set}" = set; then
3176   enableval="$enable_c_mbchar"
3177   case "$enableval" in
3178  yes) enable_c_mbchar=yes ;;
3179  no)  enable_c_mbchar=no ;;
3180  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3181  esac
3182 else
3183   enable_c_mbchar=yes
3184 fi
3185
3186   
3187   # Check whether --enable-c99 or --disable-c99 was given.
3188 if test "${enable_c99+set}" = set; then
3189   enableval="$enable_c99"
3190     case "$enableval" in
3191    yes) enable_c99=yes ;;
3192    no)  enable_c99=no ;;
3193    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3194    esac
3195 else
3196   enable_c99=yes
3197 fi
3198  
3199   
3200   ac_ext=C
3201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3205 cross_compiling=$ac_cv_prog_cxx_cross
3206
3207
3208   # Check for the existence of <math.h> functions used if C99 is enabled.
3209   ac_c99_math=yes;
3210   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3211 echo "configure:3212: checking for ISO C99 support in <math.h>" >&5
3212   cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <math.h>
3216 int main() {
3217 fpclassify(0.0);
3218 ; return 0; }
3219 EOF
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221   :
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   ac_c99_math=no
3227 fi
3228 rm -f conftest*
3229   cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <math.h>
3233 int main() {
3234 isfinite(0.0);
3235 ; return 0; }
3236 EOF
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238   :
3239 else
3240   echo "configure: failed program was:" >&5
3241   cat conftest.$ac_ext >&5
3242   rm -rf conftest*
3243   ac_c99_math=no
3244 fi
3245 rm -f conftest*
3246   cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <math.h>
3250 int main() {
3251 isinf(0.0);
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255   :
3256 else
3257   echo "configure: failed program was:" >&5
3258   cat conftest.$ac_ext >&5
3259   rm -rf conftest*
3260   ac_c99_math=no
3261 fi
3262 rm -f conftest*
3263   cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <math.h>
3267 int main() {
3268 isnan(0.0);
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272   :
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   ac_c99_math=no
3278 fi
3279 rm -f conftest*
3280   cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <math.h>
3284 int main() {
3285 isnormal(0.0);
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_math=no
3295 fi
3296 rm -f conftest*
3297   cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <math.h>
3301 int main() {
3302 signbit(0.0);
3303 ; return 0; }
3304 EOF
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306   :
3307 else
3308   echo "configure: failed program was:" >&5
3309   cat conftest.$ac_ext >&5
3310   rm -rf conftest*
3311   ac_c99_math=no
3312 fi
3313 rm -f conftest*
3314   cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <math.h>
3318 int main() {
3319 isgreater(0.0,0.0);
3320 ; return 0; }
3321 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323   :
3324 else
3325   echo "configure: failed program was:" >&5
3326   cat conftest.$ac_ext >&5
3327   rm -rf conftest*
3328   ac_c99_math=no
3329 fi
3330 rm -f conftest*
3331   cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <math.h>
3335 int main() {
3336 isgreaterequal(0.0,0.0);
3337 ; return 0; }
3338 EOF
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340   :
3341 else
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   ac_c99_math=no
3346 fi
3347 rm -f conftest*
3348   cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <math.h>
3352 int main() {
3353 isless(0.0,0.0);
3354 ; return 0; }
3355 EOF
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357   :
3358 else
3359   echo "configure: failed program was:" >&5
3360   cat conftest.$ac_ext >&5
3361   rm -rf conftest*
3362   ac_c99_math=no
3363 fi
3364 rm -f conftest*
3365   cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <math.h>
3369 int main() {
3370 islessequal(0.0,0.0);
3371 ; return 0; }
3372 EOF
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3374   :
3375 else
3376   echo "configure: failed program was:" >&5
3377   cat conftest.$ac_ext >&5
3378   rm -rf conftest*
3379   ac_c99_math=no
3380 fi
3381 rm -f conftest*
3382   cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <math.h>
3386 int main() {
3387 islessgreater(0.0,0.0);
3388 ; return 0; }
3389 EOF
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391   :
3392 else
3393   echo "configure: failed program was:" >&5
3394   cat conftest.$ac_ext >&5
3395   rm -rf conftest*
3396   ac_c99_math=no
3397 fi
3398 rm -f conftest*
3399   cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <math.h>
3403 int main() {
3404 isunordered(0.0,0.0);
3405 ; return 0; }
3406 EOF
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408   :
3409 else
3410   echo "configure: failed program was:" >&5
3411   cat conftest.$ac_ext >&5
3412   rm -rf conftest*
3413   ac_c99_math=no
3414 fi
3415 rm -f conftest*
3416   echo "$ac_t""$ac_c99_math" 1>&6
3417
3418   # Check for the existence in <stdio.h> of vscanf, et. al.
3419   ac_c99_stdio=yes;
3420   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3421 echo "configure:3422: checking for ISO C99 support in <stdio.h>" >&5
3422   cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <stdio.h>
3426 int main() {
3427 snprintf("12", 0, "%i");
3428 ; return 0; }
3429 EOF
3430 if { (eval echo configure:3431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3431   :
3432 else
3433   echo "configure: failed program was:" >&5
3434   cat conftest.$ac_ext >&5
3435   rm -rf conftest*
3436   ac_c99_stdio=no
3437 fi
3438 rm -f conftest*
3439   cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <stdio.h>
3443                   #include <stdarg.h>
3444                   void foo(char* fmt, ...)
3445                   {va_list args; va_start(args, fmt);
3446                   vfscanf(stderr, "%i", args);}
3447 int main() {
3448
3449 ; return 0; }
3450 EOF
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452   :
3453 else
3454   echo "configure: failed program was:" >&5
3455   cat conftest.$ac_ext >&5
3456   rm -rf conftest*
3457   ac_c99_stdio=no
3458 fi
3459 rm -f conftest*
3460   cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464                   #include <stdarg.h>
3465                   void foo(char* fmt, ...)
3466                   {va_list args; va_start(args, fmt);
3467                   vscanf("%i", args);}
3468 int main() {
3469
3470 ; return 0; }
3471 EOF
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473   :
3474 else
3475   echo "configure: failed program was:" >&5
3476   cat conftest.$ac_ext >&5
3477   rm -rf conftest*
3478   ac_c99_stdio=no
3479 fi
3480 rm -f conftest*
3481   cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <stdio.h>
3485                   #include <stdarg.h>
3486                   void foo(char* fmt, ...)
3487                   {va_list args; va_start(args, fmt);
3488                   vsnprintf(fmt, 0, "%i", args);}
3489 int main() {
3490
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494   :
3495 else
3496   echo "configure: failed program was:" >&5
3497   cat conftest.$ac_ext >&5
3498   rm -rf conftest*
3499   ac_c99_stdio=no
3500 fi
3501 rm -f conftest*
3502   cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <stdio.h>
3506                   #include <stdarg.h>
3507                   void foo(char* fmt, ...)
3508                   {va_list args; va_start(args, fmt);
3509                   vsscanf(fmt, "%i", args);}
3510 int main() {
3511
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515   :
3516 else
3517   echo "configure: failed program was:" >&5
3518   cat conftest.$ac_ext >&5
3519   rm -rf conftest*
3520   ac_c99_stdio=no
3521 fi
3522 rm -f conftest*
3523   echo "$ac_t""$ac_c99_stdio" 1>&6
3524
3525   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3526   ac_c99_stdlib=yes;
3527   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3528 echo "configure:3529: checking for lldiv_t declaration" >&5
3529   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3530   echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532   
3533   cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538  lldiv_t mydivt;
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   rm -rf conftest*
3543   ac_c99_lldiv_t=yes
3544 else
3545   echo "configure: failed program was:" >&5
3546   cat conftest.$ac_ext >&5
3547   rm -rf conftest*
3548   ac_c99_lldiv_t=no
3549 fi
3550 rm -f conftest*
3551   
3552 fi
3553
3554   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3555
3556   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3557 echo "configure:3558: checking for ISO C99 support in <stdlib.h>" >&5
3558   cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdlib.h>
3562 int main() {
3563 char* tmp; strtof("gnu", &tmp);
3564 ; return 0; }
3565 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567   :
3568 else
3569   echo "configure: failed program was:" >&5
3570   cat conftest.$ac_ext >&5
3571   rm -rf conftest*
3572   ac_c99_stdlib=no
3573 fi
3574 rm -f conftest*
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580 char* tmp; strtold("gnu", &tmp);
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_stdlib=no
3590 fi
3591 rm -f conftest*
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <stdlib.h>
3596 int main() {
3597 llabs(10);
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601   :
3602 else
3603   echo "configure: failed program was:" >&5
3604   cat conftest.$ac_ext >&5
3605   rm -rf conftest*
3606   ac_c99_stdlib=no
3607 fi
3608 rm -f conftest*
3609   cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3613 int main() {
3614 lldiv(10,1);
3615 ; return 0; }
3616 EOF
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618   :
3619 else
3620   echo "configure: failed program was:" >&5
3621   cat conftest.$ac_ext >&5
3622   rm -rf conftest*
3623   ac_c99_stdlib=no
3624 fi
3625 rm -f conftest*
3626   cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <stdlib.h>
3630 int main() {
3631 atoll("10");
3632 ; return 0; }
3633 EOF
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635   :
3636 else
3637   echo "configure: failed program was:" >&5
3638   cat conftest.$ac_ext >&5
3639   rm -rf conftest*
3640   ac_c99_stdlib=no
3641 fi
3642 rm -f conftest*
3643   cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <stdlib.h>
3647 int main() {
3648 _Exit(0);
3649 ; return 0; }
3650 EOF
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652   :
3653 else
3654   echo "configure: failed program was:" >&5
3655   cat conftest.$ac_ext >&5
3656   rm -rf conftest*
3657   ac_c99_stdlib=no
3658 fi
3659 rm -f conftest*
3660   if test x"$ac_c99_lldiv_t" = x"no"; then
3661     ac_c99_stdlib=no; 
3662   fi; 
3663   echo "$ac_t""$ac_c99_stdlib" 1>&6
3664
3665   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3666   # XXX the wchar.h checks should be rolled into the general C99 bits.
3667   ac_c99_wchar=yes;
3668   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3669 echo "configure:3670: checking for additional ISO C99 support in <wchar.h>" >&5
3670   cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <wchar.h>
3674 int main() {
3675 wcstold(L"10.0", NULL);
3676 ; return 0; }
3677 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679   :
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   ac_c99_wchar=no
3685 fi
3686 rm -f conftest*
3687   cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <wchar.h>
3691 int main() {
3692 wcstoll(L"10", NULL, 10);
3693 ; return 0; }
3694 EOF
3695 if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3696   :
3697 else
3698   echo "configure: failed program was:" >&5
3699   cat conftest.$ac_ext >&5
3700   rm -rf conftest*
3701   ac_c99_wchar=no
3702 fi
3703 rm -f conftest*
3704   cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <wchar.h>
3708 int main() {
3709 wcstoull(L"10", NULL, 10);
3710 ; return 0; }
3711 EOF
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713   :
3714 else
3715   echo "configure: failed program was:" >&5
3716   cat conftest.$ac_ext >&5
3717   rm -rf conftest*
3718   ac_c99_wchar=no
3719 fi
3720 rm -f conftest*
3721   echo "$ac_t""$ac_c99_wchar" 1>&6
3722
3723   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3724 echo "configure:3725: checking for enabled ISO C99 support" >&5
3725   if test x"$ac_c99_math" = x"no" ||
3726      test x"$ac_c99_stdio" = x"no" ||
3727      test x"$ac_c99_stdlib" = x"no" ||
3728      test x"$ac_c99_wchar" = x"no"; then
3729     enable_c99=no; 
3730   fi; 
3731   echo "$ac_t""$enable_c99" 1>&6
3732
3733   # Option parsed, now set things appropriately
3734   if test x"$enable_c99" = x"yes"; then
3735     cat >> confdefs.h <<\EOF
3736 #define _GLIBCPP_USE_C99 1
3737 EOF
3738
3739   fi
3740
3741   ac_ext=c
3742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3746 cross_compiling=$ac_cv_prog_cc_cross
3747
3748
3749   
3750   # Check whether --enable-long-long or --disable-long-long was given.
3751 if test "${enable_long_long+set}" = set; then
3752   enableval="$enable_long_long"
3753     case "$enableval" in
3754    yes) enable_long_long=yes ;;
3755    no)  enable_long_long=no ;;
3756    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3757    esac
3758 else
3759   enable_long_long=yes
3760 fi
3761
3762   
3763   ac_ext=C
3764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CXXCPP $CPPFLAGS'
3766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cxx_cross
3769
3770
3771   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3772 echo "configure:3773: checking for enabled long long I/O support" >&5
3773   # iostreams require strtoll, strtoull to compile
3774   cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <stdlib.h>
3778 int main() {
3779 char* tmp; strtoll("gnu", &tmp, 10);
3780 ; return 0; }
3781 EOF
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783   :
3784 else
3785   echo "configure: failed program was:" >&5
3786   cat conftest.$ac_ext >&5
3787   rm -rf conftest*
3788   enable_long_long=no
3789 fi
3790 rm -f conftest*
3791   cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <stdlib.h>
3795 int main() {
3796 char* tmp; strtoull("gnu", &tmp, 10);
3797 ; return 0; }
3798 EOF
3799 if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800   :
3801 else
3802   echo "configure: failed program was:" >&5
3803   cat conftest.$ac_ext >&5
3804   rm -rf conftest*
3805   enable_long_long=no
3806 fi
3807 rm -f conftest*
3808
3809   # Option parsed, now set things appropriately
3810   if test x"$enable_long_long" = xyes; then
3811     cat >> confdefs.h <<\EOF
3812 #define _GLIBCPP_USE_LONG_LONG 1
3813 EOF
3814
3815   fi
3816   echo "$ac_t""$enable_long_long" 1>&6
3817
3818   ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3824
3825
3826 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3827 echo "configure:3828: checking for c header strategy to use" >&5
3828 # Check whether --enable-cheaders or --disable-cheaders was given.
3829 if test "${enable_cheaders+set}" = set; then
3830   enableval="$enable_cheaders"
3831   
3832   case "$enableval" in
3833    c) 
3834         enable_cheaders=c 
3835         ;;
3836    c_std)  
3837         enable_cheaders=c_std 
3838         ;;
3839    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3840         ;;
3841   esac
3842 else
3843   enable_cheaders=c_std
3844 fi
3845
3846   echo "$ac_t""$enable_cheaders" 1>&6
3847
3848     case "$enable_cheaders" in
3849     c_std)   
3850         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3851         ;;
3852     c)   
3853         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3854         ;;
3855   esac
3856
3857   
3858   
3859
3860 if test "$enable_cheaders" = c; then
3861   GLIBCPP_C_HEADERS_C_TRUE=
3862   GLIBCPP_C_HEADERS_C_FALSE='#'
3863 else
3864   GLIBCPP_C_HEADERS_C_TRUE='#'
3865   GLIBCPP_C_HEADERS_C_FALSE=
3866 fi
3867   
3868
3869 if test "$enable_cheaders" = c_std; then
3870   GLIBCPP_C_HEADERS_C_STD_TRUE=
3871   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3872 else
3873   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3874   GLIBCPP_C_HEADERS_C_STD_FALSE=
3875 fi
3876   
3877
3878 if test "$c_compatibility" = yes; then
3879   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3880   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3881 else
3882   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3883   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3884 fi
3885
3886
3887   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3888 echo "configure:3889: checking for thread model used by GCC" >&5
3889   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3890   echo "$ac_t""$target_thread_file" 1>&6
3891
3892   if test $target_thread_file != single; then
3893     cat >> confdefs.h <<\EOF
3894 #define HAVE_GTHR_DEFAULT 1
3895 EOF
3896
3897     cat >> confdefs.h <<\EOF
3898 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3899 EOF
3900
3901   fi
3902
3903   glibcpp_thread_h=gthr-$target_thread_file.h
3904   
3905
3906 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3907 if test "${enable_cxx_flags+set}" = set; then
3908   enableval="$enable_cxx_flags"
3909   case "x$enableval" in
3910  xyes)   
3911         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3912  xno|x)  
3913         enable_cxx_flags='' ;;
3914  *)      
3915         enable_cxx_flags="$enableval" ;;
3916  esac
3917 else
3918   enable_cxx_flags='none'
3919 fi
3920
3921
3922 if test "$enable_cxx_flags" = "none"; then 
3923   enable_cxx_flags=''; 
3924 fi
3925
3926 if test -n "$enable_cxx_flags"; then
3927     for f in $enable_cxx_flags; do
3928         case "$f" in
3929             -fhonor-std)  ;;
3930             -*)  ;;
3931             *)   # and we're trying to pass /what/ exactly?
3932                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3933         esac
3934     done
3935 fi
3936 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3937
3938
3939
3940   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3941 echo "configure:3942: checking for exception model to use" >&5
3942   
3943   ac_ext=C
3944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3945 ac_cpp='$CXXCPP $CPPFLAGS'
3946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3948 cross_compiling=$ac_cv_prog_cxx_cross
3949
3950   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3951 if test "${enable_sjlj_exceptions+set}" = set; then
3952   enableval="$enable_sjlj_exceptions"
3953   :
3954 else
3955                        cat > conftest.$ac_ext << EOF
3956 #line 3957 "configure"
3957 struct S { ~S(); };
3958 void bar();
3959 void foo()
3960 {
3961   S s;
3962   bar();
3963 }
3964 EOF
3965    old_CXXFLAGS="$CXXFLAGS"  
3966    CXXFLAGS=-S
3967    if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3969        enable_sjlj_exceptions=yes
3970      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3971        enable_sjlj_exceptions=no
3972      fi
3973    fi
3974    CXXFLAGS="$old_CXXFLAGS"
3975    rm -f conftest*
3976 fi
3977
3978    if test x$enable_sjlj_exceptions = xyes; then
3979      cat >> confdefs.h <<\EOF
3980 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3981 EOF
3982
3983      ac_exception_model_name=sjlj
3984    elif test x$enable_sjlj_exceptions = xno; then
3985      ac_exception_model_name="call frame"
3986    else
3987      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3988    fi
3989    ac_ext=c
3990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3994 cross_compiling=$ac_cv_prog_cc_cross
3995
3996    echo "$ac_t""$ac_exception_model_name" 1>&6
3997
3998
3999   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4000 echo "configure:4001: checking for use of libunwind" >&5
4001   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4002 if test "${enable_libunwind_exceptions+set}" = set; then
4003   enableval="$enable_libunwind_exceptions"
4004   use_libunwind_exceptions=$enableval
4005 else
4006   use_libunwind_exceptions=no
4007 fi
4008
4009   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4010     if test x"$use_libunwind_exceptions" = xyes; then
4011     LIBUNWIND_FLAG="-lunwind"
4012   else
4013     LIBUNWIND_FLAG=""
4014   fi
4015   
4016
4017 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4018 if test "${enable_concept_checks+set}" = set; then
4019   enableval="$enable_concept_checks"
4020   case "$enableval" in
4021  yes) enable_concept_checks=yes ;;
4022  no)  enable_concept_checks=no ;;
4023  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4024  esac
4025 else
4026   enable_concept_checks=no
4027 fi
4028 if test x"$enable_concept_checks" = xyes; then
4029   cat >> confdefs.h <<\EOF
4030 #define _GLIBCPP_CONCEPT_CHECKS 1
4031 EOF
4032
4033 fi
4034
4035
4036 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4037 for ac_hdr in string.h stdlib.h
4038 do
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043   echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045   cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <$ac_hdr>
4049 EOF
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4054   rm -rf conftest*
4055   eval "ac_cv_header_$ac_safe=yes"
4056 else
4057   echo "$ac_err" >&5
4058   echo "configure: failed program was:" >&5
4059   cat conftest.$ac_ext >&5
4060   rm -rf conftest*
4061   eval "ac_cv_header_$ac_safe=no"
4062 fi
4063 rm -f conftest*
4064 fi
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066   echo "$ac_t""yes" 1>&6
4067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068   cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4070 EOF
4071  
4072 else
4073   echo "$ac_t""no" 1>&6
4074 fi
4075 done
4076
4077
4078 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4079
4080   # We are being configured with some form of cross compiler.
4081   GLIBCPP_IS_CROSS_COMPILING=1
4082
4083   # This lets us hard-code the functionality we know we'll have in the cross
4084   # target environment.  "Let" is a sugar-coated word placed on an especially
4085   # dull and tedious hack, actually.
4086   #
4087   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4088   # that involve linking, can't be used:
4089   #    "cannot open sim-crt0.o"
4090   #    "cannot open crt0.o"
4091   # etc.  All this is because there currently exists no unified, consistent
4092   # way for top level CC information to be passed down to target directories:
4093   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4094   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4095   # crosses can be removed.
4096
4097   # If Canadian cross, then don't pick up tools from the build directory.
4098   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4099   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4100     CANADIAN=yes
4101   else
4102     CANADIAN=no
4103   fi
4104
4105   # Construct crosses by hand, eliminating bits that need ld...
4106   # GLIBCPP_CHECK_COMPILER_FEATURES
4107   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4108   # GLIBCPP_CHECK_MATH_SUPPORT
4109
4110   case "$target_alias" in
4111     *-linux*)
4112       os_include_dir="os/gnu-linux"
4113       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4114         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4115         fp.h locale.h float.h inttypes.h
4116 do
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121   echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123   cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <$ac_hdr>
4127 EOF
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4132   rm -rf conftest*
4133   eval "ac_cv_header_$ac_safe=yes"
4134 else
4135   echo "$ac_err" >&5
4136   echo "configure: failed program was:" >&5
4137   cat conftest.$ac_ext >&5
4138   rm -rf conftest*
4139   eval "ac_cv_header_$ac_safe=no"
4140 fi
4141 rm -f conftest*
4142 fi
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144   echo "$ac_t""yes" 1>&6
4145     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146   cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4148 EOF
4149  
4150 else
4151   echo "$ac_t""no" 1>&6
4152 fi
4153 done
4154
4155       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4156       
4157       
4158   # If we're not using GNU ld, then there's no point in even trying these
4159   # tests.  Check for that first.  We should have already tested for gld
4160   # by now (in libtool), but require it now just to be safe...
4161   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4162   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4163   
4164
4165   # The name set by libtool depends on the version of libtool.  Shame on us
4166   # for depending on an impl detail, but c'est la vie.  Older versions used
4167   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4168   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4169   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4170   # set (hence we're using an older libtool), then set it.
4171   if test x${with_gnu_ld+set} != xset; then
4172     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4173       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4174       with_gnu_ld=no
4175     else
4176       with_gnu_ld=$ac_cv_prog_gnu_ld
4177     fi
4178   fi
4179
4180   # Start by getting the version number.  I think the libtool test already
4181   # does some of this, but throws away the result.
4182   
4183   ldver=`$LD --version 2>/dev/null | head -1 | \
4184          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4185   
4186   glibcpp_gnu_ld_version=`echo $ldver | \
4187          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4188
4189   # Set --gc-sections.
4190   if test "$with_gnu_ld" = "notbroken"; then
4191     # GNU ld it is!  Joy and bunny rabbits!
4192
4193     # All these tests are for C++; save the language and the compiler flags.
4194     # Need to do this so that g++ won't try to link in libstdc++
4195     ac_test_CFLAGS="${CFLAGS+set}"
4196     ac_save_CFLAGS="$CFLAGS"
4197     CFLAGS='-x c++  -Wl,--gc-sections'
4198
4199     # Check for -Wl,--gc-sections
4200     # XXX This test is broken at the moment, as symbols required for
4201     # linking are now in libsupc++ (not built yet.....). In addition, 
4202     # this test has cored on solaris in the past. In addition,
4203     # --gc-sections doesn't really work at the moment (keeps on discarding
4204     # used sections, first .eh_frame and now some of the glibc sections for
4205     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4206     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4207 echo "configure:4208: checking for ld that supports -Wl,--gc-sections" >&5
4208     if test "$cross_compiling" = yes; then
4209   ac_sectionLDflags=yes
4210 else
4211   cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214
4215      int main(void) 
4216      {
4217        try { throw 1; }
4218        catch (...) { };
4219        return 0;
4220      }
4221     
4222 EOF
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4224 then
4225   ac_sectionLDflags=yes
4226 else
4227   echo "configure: failed program was:" >&5
4228   cat conftest.$ac_ext >&5
4229   rm -fr conftest*
4230   ac_sectionLDflags=no
4231 fi
4232 rm -fr conftest*
4233 fi
4234
4235     if test "$ac_test_CFLAGS" = set; then
4236       CFLAGS="$ac_save_CFLAGS"
4237     else
4238       # this is the suspicious part
4239       CFLAGS=''
4240     fi
4241     if test "$ac_sectionLDflags" = "yes"; then
4242       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4243     fi
4244     echo "$ac_t""$ac_sectionLDflags" 1>&6
4245   fi
4246
4247   # Set linker optimization flags.
4248   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4249     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4250   fi
4251
4252   
4253   
4254
4255       
4256     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4257 echo "configure:4258: checking for main in -lm" >&5
4258 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260   echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262   ac_save_LIBS="$LIBS"
4263 LIBS="-lm  $LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267
4268 int main() {
4269 main()
4270 ; return 0; }
4271 EOF
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4273   rm -rf conftest*
4274   eval "ac_cv_lib_$ac_lib_var=yes"
4275 else
4276   echo "configure: failed program was:" >&5
4277   cat conftest.$ac_ext >&5
4278   rm -rf conftest*
4279   eval "ac_cv_lib_$ac_lib_var=no"
4280 fi
4281 rm -f conftest*
4282 LIBS="$ac_save_LIBS"
4283
4284 fi
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286   echo "$ac_t""yes" 1>&6
4287     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4288     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4289   cat >> confdefs.h <<EOF
4290 #define $ac_tr_lib 1
4291 EOF
4292
4293   LIBS="-lm $LIBS"
4294
4295 else
4296   echo "$ac_t""no" 1>&6
4297 fi
4298
4299   for ac_func in nan copysignf
4300 do
4301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_func" >&5
4303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4304   echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306   cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* System header to define __stub macros and hopefully few prototypes,
4310     which can conflict with char $ac_func(); below.  */
4311 #include <assert.h>
4312 /* Override any gcc2 internal prototype to avoid an error.  */
4313 /* We use char because int might match the return type of a gcc2
4314     builtin and then its argument prototype would still apply.  */
4315 char $ac_func();
4316
4317 int main() {
4318
4319 /* The GNU C library defines this for functions which it implements
4320     to always fail with ENOSYS.  Some functions are actually named
4321     something starting with __ and the normal name is an alias.  */
4322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4323 choke me
4324 #else
4325 $ac_func();
4326 #endif
4327
4328 ; return 0; }
4329 EOF
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331   rm -rf conftest*
4332   eval "ac_cv_func_$ac_func=yes"
4333 else
4334   echo "configure: failed program was:" >&5
4335   cat conftest.$ac_ext >&5
4336   rm -rf conftest*
4337   eval "ac_cv_func_$ac_func=no"
4338 fi
4339 rm -f conftest*
4340 fi
4341
4342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4343   echo "$ac_t""yes" 1>&6
4344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4345   cat >> confdefs.h <<EOF
4346 #define $ac_tr_func 1
4347 EOF
4348  
4349 else
4350   echo "$ac_t""no" 1>&6
4351 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4352 fi
4353 done
4354
4355
4356     for ac_func in __signbit
4357 do
4358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_func" >&5
4360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4361   echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363   cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* System header to define __stub macros and hopefully few prototypes,
4367     which can conflict with char $ac_func(); below.  */
4368 #include <assert.h>
4369 /* Override any gcc2 internal prototype to avoid an error.  */
4370 /* We use char because int might match the return type of a gcc2
4371     builtin and then its argument prototype would still apply.  */
4372 char $ac_func();
4373
4374 int main() {
4375
4376 /* The GNU C library defines this for functions which it implements
4377     to always fail with ENOSYS.  Some functions are actually named
4378     something starting with __ and the normal name is an alias.  */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 choke me
4381 #else
4382 $ac_func();
4383 #endif
4384
4385 ; return 0; }
4386 EOF
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388   rm -rf conftest*
4389   eval "ac_cv_func_$ac_func=yes"
4390 else
4391   echo "configure: failed program was:" >&5
4392   cat conftest.$ac_ext >&5
4393   rm -rf conftest*
4394   eval "ac_cv_func_$ac_func=no"
4395 fi
4396 rm -f conftest*
4397 fi
4398
4399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4400   echo "$ac_t""yes" 1>&6
4401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4402   cat >> confdefs.h <<EOF
4403 #define $ac_tr_func 1
4404 EOF
4405  
4406 else
4407   echo "$ac_t""no" 1>&6
4408 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4409 fi
4410 done
4411
4412   for ac_func in __signbitf
4413 do
4414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_func" >&5
4416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4417   echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419   cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* System header to define __stub macros and hopefully few prototypes,
4423     which can conflict with char $ac_func(); below.  */
4424 #include <assert.h>
4425 /* Override any gcc2 internal prototype to avoid an error.  */
4426 /* We use char because int might match the return type of a gcc2
4427     builtin and then its argument prototype would still apply.  */
4428 char $ac_func();
4429
4430 int main() {
4431
4432 /* The GNU C library defines this for functions which it implements
4433     to always fail with ENOSYS.  Some functions are actually named
4434     something starting with __ and the normal name is an alias.  */
4435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 choke me
4437 #else
4438 $ac_func();
4439 #endif
4440
4441 ; return 0; }
4442 EOF
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444   rm -rf conftest*
4445   eval "ac_cv_func_$ac_func=yes"
4446 else
4447   echo "configure: failed program was:" >&5
4448   cat conftest.$ac_ext >&5
4449   rm -rf conftest*
4450   eval "ac_cv_func_$ac_func=no"
4451 fi
4452 rm -f conftest*
4453 fi
4454
4455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4456   echo "$ac_t""yes" 1>&6
4457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4458   cat >> confdefs.h <<EOF
4459 #define $ac_tr_func 1
4460 EOF
4461  
4462 else
4463   echo "$ac_t""no" 1>&6
4464 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4465 fi
4466 done
4467
4468
4469           if test x$ac_cv_func_copysignl = x"yes"; then
4470     for ac_func in __signbitl
4471 do
4472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_func" >&5
4474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4475   echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4477   cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* System header to define __stub macros and hopefully few prototypes,
4481     which can conflict with char $ac_func(); below.  */
4482 #include <assert.h>
4483 /* Override any gcc2 internal prototype to avoid an error.  */
4484 /* We use char because int might match the return type of a gcc2
4485     builtin and then its argument prototype would still apply.  */
4486 char $ac_func();
4487
4488 int main() {
4489
4490 /* The GNU C library defines this for functions which it implements
4491     to always fail with ENOSYS.  Some functions are actually named
4492     something starting with __ and the normal name is an alias.  */
4493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 choke me
4495 #else
4496 $ac_func();
4497 #endif
4498
4499 ; return 0; }
4500 EOF
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502   rm -rf conftest*
4503   eval "ac_cv_func_$ac_func=yes"
4504 else
4505   echo "configure: failed program was:" >&5
4506   cat conftest.$ac_ext >&5
4507   rm -rf conftest*
4508   eval "ac_cv_func_$ac_func=no"
4509 fi
4510 rm -f conftest*
4511 fi
4512
4513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4514   echo "$ac_t""yes" 1>&6
4515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516   cat >> confdefs.h <<EOF
4517 #define $ac_tr_func 1
4518 EOF
4519  
4520 else
4521   echo "$ac_t""no" 1>&6
4522 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4523 fi
4524 done
4525
4526   fi
4527
4528   
4529
4530       
4531
4532       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4533 echo "configure:4534: checking for mbstate_t" >&5
4534   cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <wchar.h>
4538 int main() {
4539 mbstate_t teststate;
4540 ; return 0; }
4541 EOF
4542 if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543   rm -rf conftest*
4544   have_mbstate_t=yes
4545 else
4546   echo "configure: failed program was:" >&5
4547   cat conftest.$ac_ext >&5
4548   rm -rf conftest*
4549   have_mbstate_t=no
4550 fi
4551 rm -f conftest*
4552   echo "$ac_t""$have_mbstate_t" 1>&6
4553   if test x"$have_mbstate_t" = xyes; then
4554     cat >> confdefs.h <<\EOF
4555 #define HAVE_MBSTATE_T 1
4556 EOF
4557
4558   fi
4559
4560     for ac_hdr in wchar.h
4561 do
4562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566   echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568   cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <$ac_hdr>
4572 EOF
4573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4577   rm -rf conftest*
4578   eval "ac_cv_header_$ac_safe=yes"
4579 else
4580   echo "$ac_err" >&5
4581   echo "configure: failed program was:" >&5
4582   cat conftest.$ac_ext >&5
4583   rm -rf conftest*
4584   eval "ac_cv_header_$ac_safe=no"
4585 fi
4586 rm -f conftest*
4587 fi
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589   echo "$ac_t""yes" 1>&6
4590     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591   cat >> confdefs.h <<EOF
4592 #define $ac_tr_hdr 1
4593 EOF
4594  ac_has_wchar_h=yes
4595 else
4596   echo "$ac_t""no" 1>&6
4597 ac_has_wchar_h=no
4598 fi
4599 done
4600
4601   for ac_hdr in wctype.h
4602 do
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607   echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609   cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$ac_hdr>
4613 EOF
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4618   rm -rf conftest*
4619   eval "ac_cv_header_$ac_safe=yes"
4620 else
4621   echo "$ac_err" >&5
4622   echo "configure: failed program was:" >&5
4623   cat conftest.$ac_ext >&5
4624   rm -rf conftest*
4625   eval "ac_cv_header_$ac_safe=no"
4626 fi
4627 rm -f conftest*
4628 fi
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630   echo "$ac_t""yes" 1>&6
4631     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632   cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4634 EOF
4635  ac_has_wctype_h=yes
4636 else
4637   echo "$ac_t""no" 1>&6
4638 ac_has_wctype_h=no
4639 fi
4640 done
4641
4642   
4643     if test x"$ac_has_wchar_h" = xyes &&
4644      test x"$ac_has_wctype_h" = xyes &&
4645      test x"$enable_c_mbchar" != xno; then
4646       
4647             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4648 echo "configure:4649: checking for WCHAR_MIN and WCHAR_MAX" >&5
4649     cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <wchar.h>
4653 int main() {
4654 int i = WCHAR_MIN; int j = WCHAR_MAX;
4655 ; return 0; }
4656 EOF
4657 if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4658   rm -rf conftest*
4659   has_wchar_minmax=yes
4660 else
4661   echo "configure: failed program was:" >&5
4662   cat conftest.$ac_ext >&5
4663   rm -rf conftest*
4664   has_wchar_minmax=no
4665 fi
4666 rm -f conftest*
4667     echo "$ac_t""$has_wchar_minmax" 1>&6
4668     
4669             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4670 echo "configure:4671: checking for WEOF" >&5
4671     cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674
4675       #include <wchar.h>
4676       #include <stddef.h>
4677 int main() {
4678 wint_t i = WEOF;
4679 ; return 0; }
4680 EOF
4681 if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682   rm -rf conftest*
4683   has_weof=yes
4684 else
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   has_weof=no
4689 fi
4690 rm -f conftest*
4691     echo "$ac_t""$has_weof" 1>&6
4692   
4693         ac_wfuncs=yes
4694     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4695 do
4696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_func" >&5
4698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4699   echo $ac_n "(cached) $ac_c" 1>&6
4700 else
4701   cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes,
4705     which can conflict with char $ac_func(); below.  */
4706 #include <assert.h>
4707 /* Override any gcc2 internal prototype to avoid an error.  */
4708 /* We use char because int might match the return type of a gcc2
4709     builtin and then its argument prototype would still apply.  */
4710 char $ac_func();
4711
4712 int main() {
4713
4714 /* The GNU C library defines this for functions which it implements
4715     to always fail with ENOSYS.  Some functions are actually named
4716     something starting with __ and the normal name is an alias.  */
4717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4718 choke me
4719 #else
4720 $ac_func();
4721 #endif
4722
4723 ; return 0; }
4724 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726   rm -rf conftest*
4727   eval "ac_cv_func_$ac_func=yes"
4728 else
4729   echo "configure: failed program was:" >&5
4730   cat conftest.$ac_ext >&5
4731   rm -rf conftest*
4732   eval "ac_cv_func_$ac_func=no"
4733 fi
4734 rm -f conftest*
4735 fi
4736
4737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4738   echo "$ac_t""yes" 1>&6
4739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4740   cat >> confdefs.h <<EOF
4741 #define $ac_tr_func 1
4742 EOF
4743  
4744 else
4745   echo "$ac_t""no" 1>&6
4746 \
4747     ac_wfuncs=no
4748 fi
4749 done
4750
4751   
4752         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4753     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4754     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4755     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4756     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4757     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4758 do
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4762   echo $ac_n "(cached) $ac_c" 1>&6
4763 else
4764   cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* System header to define __stub macros and hopefully few prototypes,
4768     which can conflict with char $ac_func(); below.  */
4769 #include <assert.h>
4770 /* Override any gcc2 internal prototype to avoid an error.  */
4771 /* We use char because int might match the return type of a gcc2
4772     builtin and then its argument prototype would still apply.  */
4773 char $ac_func();
4774
4775 int main() {
4776
4777 /* The GNU C library defines this for functions which it implements
4778     to always fail with ENOSYS.  Some functions are actually named
4779     something starting with __ and the normal name is an alias.  */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 choke me
4782 #else
4783 $ac_func();
4784 #endif
4785
4786 ; return 0; }
4787 EOF
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789   rm -rf conftest*
4790   eval "ac_cv_func_$ac_func=yes"
4791 else
4792   echo "configure: failed program was:" >&5
4793   cat conftest.$ac_ext >&5
4794   rm -rf conftest*
4795   eval "ac_cv_func_$ac_func=no"
4796 fi
4797 rm -f conftest*
4798 fi
4799
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801   echo "$ac_t""yes" 1>&6
4802     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803   cat >> confdefs.h <<EOF
4804 #define $ac_tr_func 1
4805 EOF
4806  
4807 else
4808   echo "$ac_t""no" 1>&6
4809 \
4810     ac_wfuncs=no
4811 fi
4812 done
4813
4814
4815     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4816 echo "configure:4817: checking for ISO C99 wchar_t support" >&5
4817     if test x"$has_weof" = xyes &&
4818        test x"$has_wchar_minmax" = xyes &&
4819        test x"$ac_wfuncs" = xyes; then
4820       ac_isoC99_wchar_t=yes
4821     else
4822       ac_isoC99_wchar_t=no
4823     fi
4824     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4825   
4826             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for iconv.h" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830   echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832   cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <iconv.h>
4836 EOF
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4841   rm -rf conftest*
4842   eval "ac_cv_header_$ac_safe=yes"
4843 else
4844   echo "$ac_err" >&5
4845   echo "configure: failed program was:" >&5
4846   cat conftest.$ac_ext >&5
4847   rm -rf conftest*
4848   eval "ac_cv_header_$ac_safe=no"
4849 fi
4850 rm -f conftest*
4851 fi
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853   echo "$ac_t""yes" 1>&6
4854   ac_has_iconv_h=yes
4855 else
4856   echo "$ac_t""no" 1>&6
4857 ac_has_iconv_h=no
4858 fi
4859
4860     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4861 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4862 echo "configure:4863: checking for langinfo.h" >&5
4863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4864   echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866   cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <langinfo.h>
4870 EOF
4871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4872 { (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4874 if test -z "$ac_err"; then
4875   rm -rf conftest*
4876   eval "ac_cv_header_$ac_safe=yes"
4877 else
4878   echo "$ac_err" >&5
4879   echo "configure: failed program was:" >&5
4880   cat conftest.$ac_ext >&5
4881   rm -rf conftest*
4882   eval "ac_cv_header_$ac_safe=no"
4883 fi
4884 rm -f conftest*
4885 fi
4886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4887   echo "$ac_t""yes" 1>&6
4888   ac_has_langinfo_h=yes
4889 else
4890   echo "$ac_t""no" 1>&6
4891 ac_has_langinfo_h=no
4892 fi
4893
4894
4895         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4896 echo "configure:4897: checking for iconv in -liconv" >&5
4897 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899   echo $ac_n "(cached) $ac_c" 1>&6
4900 else
4901   ac_save_LIBS="$LIBS"
4902 LIBS="-liconv  $LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error.  */
4907 /* We use char because int might match the return type of a gcc2
4908     builtin and then its argument prototype would still apply.  */
4909 char iconv();
4910
4911 int main() {
4912 iconv()
4913 ; return 0; }
4914 EOF
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916   rm -rf conftest*
4917   eval "ac_cv_lib_$ac_lib_var=yes"
4918 else
4919   echo "configure: failed program was:" >&5
4920   cat conftest.$ac_ext >&5
4921   rm -rf conftest*
4922   eval "ac_cv_lib_$ac_lib_var=no"
4923 fi
4924 rm -f conftest*
4925 LIBS="$ac_save_LIBS"
4926
4927 fi
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929   echo "$ac_t""yes" 1>&6
4930   libiconv="-liconv"
4931 else
4932   echo "$ac_t""no" 1>&6
4933 fi
4934
4935     ac_save_LIBS="$LIBS"
4936     LIBS="$LIBS $libiconv"
4937
4938     for ac_func in iconv_open iconv_close iconv nl_langinfo
4939 do
4940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_func" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4943   echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945   cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes,
4949     which can conflict with char $ac_func(); below.  */
4950 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error.  */
4952 /* We use char because int might match the return type of a gcc2
4953     builtin and then its argument prototype would still apply.  */
4954 char $ac_func();
4955
4956 int main() {
4957
4958 /* The GNU C library defines this for functions which it implements
4959     to always fail with ENOSYS.  Some functions are actually named
4960     something starting with __ and the normal name is an alias.  */
4961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4962 choke me
4963 #else
4964 $ac_func();
4965 #endif
4966
4967 ; return 0; }
4968 EOF
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970   rm -rf conftest*
4971   eval "ac_cv_func_$ac_func=yes"
4972 else
4973   echo "configure: failed program was:" >&5
4974   cat conftest.$ac_ext >&5
4975   rm -rf conftest*
4976   eval "ac_cv_func_$ac_func=no"
4977 fi
4978 rm -f conftest*
4979 fi
4980
4981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4982   echo "$ac_t""yes" 1>&6
4983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984   cat >> confdefs.h <<EOF
4985 #define $ac_tr_func 1
4986 EOF
4987  \
4988     ac_XPG2funcs=yes
4989 else
4990   echo "$ac_t""no" 1>&6
4991 ac_XPG2funcs=no
4992 fi
4993 done
4994
4995   
4996     LIBS="$ac_save_LIBS"
4997
4998     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4999 echo "configure:5000: checking for XPG2 wchar_t support" >&5
5000     if test x"$ac_has_iconv_h" = xyes &&
5001        test x"$ac_has_langinfo_h" = xyes &&
5002        test x"$ac_XPG2funcs" = xyes; then
5003       ac_XPG2_wchar_t=yes
5004     else
5005       ac_XPG2_wchar_t=no
5006     fi
5007     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5008   
5009             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5010 echo "configure:5011: checking for enabled wchar_t specializations" >&5
5011     if test x"$ac_isoC99_wchar_t" = xyes &&
5012        test x"$ac_XPG2_wchar_t" = xyes; then
5013       cat >> confdefs.h <<\EOF
5014 #define _GLIBCPP_USE_WCHAR_T 1
5015 EOF
5016
5017       echo "$ac_t"""yes"" 1>&6
5018     else
5019       echo "$ac_t"""no"" 1>&6
5020     fi
5021   else
5022         echo "configure: warning: wchar_t support disabled." 1>&2
5023   fi
5024
5025       cat >> confdefs.h <<\EOF
5026 #define HAVE_COPYSIGN 1
5027 EOF
5028
5029       cat >> confdefs.h <<\EOF
5030 #define HAVE_COPYSIGNF 1
5031 EOF
5032
5033       cat >> confdefs.h <<\EOF
5034 #define HAVE_FINITE 1
5035 EOF
5036
5037       cat >> confdefs.h <<\EOF
5038 #define HAVE_FINITEF 1
5039 EOF
5040
5041       cat >> confdefs.h <<\EOF
5042 #define HAVE_FREXPF 1
5043 EOF
5044
5045       cat >> confdefs.h <<\EOF
5046 #define HAVE_HYPOTF 1
5047 EOF
5048
5049       cat >> confdefs.h <<\EOF
5050 #define HAVE_ISINF 1
5051 EOF
5052
5053       cat >> confdefs.h <<\EOF
5054 #define HAVE_ISINFF 1
5055 EOF
5056
5057       cat >> confdefs.h <<\EOF
5058 #define HAVE_ISNAN 1
5059 EOF
5060
5061       cat >> confdefs.h <<\EOF
5062 #define HAVE_ISNANF 1
5063 EOF
5064
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_SINCOS 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_SINCOSF 1
5071 EOF
5072
5073       if test x"long_double_math_on_this_cpu" = x"yes"; then
5074         cat >> confdefs.h <<\EOF
5075 #define HAVE_FINITEL 1
5076 EOF
5077
5078         cat >> confdefs.h <<\EOF
5079 #define HAVE_HYPOTL 1
5080 EOF
5081
5082         cat >> confdefs.h <<\EOF
5083 #define HAVE_ISINFL 1
5084 EOF
5085
5086         cat >> confdefs.h <<\EOF
5087 #define HAVE_ISNANL 1
5088 EOF
5089
5090       fi
5091       ;;
5092     *-hpux*)
5093       # Check for available headers.
5094       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5095         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5096         fp.h locale.h float.h inttypes.h
5097 do
5098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102   echo $ac_n "(cached) $ac_c" 1>&6
5103 else
5104   cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 #include <$ac_hdr>
5108 EOF
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5113   rm -rf conftest*
5114   eval "ac_cv_header_$ac_safe=yes"
5115 else
5116   echo "$ac_err" >&5
5117   echo "configure: failed program was:" >&5
5118   cat conftest.$ac_ext >&5
5119   rm -rf conftest*
5120   eval "ac_cv_header_$ac_safe=no"
5121 fi
5122 rm -f conftest*
5123 fi
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125   echo "$ac_t""yes" 1>&6
5126     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127   cat >> confdefs.h <<EOF
5128 #define $ac_tr_hdr 1
5129 EOF
5130  
5131 else
5132   echo "$ac_t""no" 1>&6
5133 fi
5134 done
5135
5136       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5137       
5138       
5139   # If we're not using GNU ld, then there's no point in even trying these
5140   # tests.  Check for that first.  We should have already tested for gld
5141   # by now (in libtool), but require it now just to be safe...
5142   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5143   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5144   
5145
5146   # The name set by libtool depends on the version of libtool.  Shame on us
5147   # for depending on an impl detail, but c'est la vie.  Older versions used
5148   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5149   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5150   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5151   # set (hence we're using an older libtool), then set it.
5152   if test x${with_gnu_ld+set} != xset; then
5153     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5154       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5155       with_gnu_ld=no
5156     else
5157       with_gnu_ld=$ac_cv_prog_gnu_ld
5158     fi
5159   fi
5160
5161   # Start by getting the version number.  I think the libtool test already
5162   # does some of this, but throws away the result.
5163   
5164   ldver=`$LD --version 2>/dev/null | head -1 | \
5165          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5166   
5167   glibcpp_gnu_ld_version=`echo $ldver | \
5168          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5169
5170   # Set --gc-sections.
5171   if test "$with_gnu_ld" = "notbroken"; then
5172     # GNU ld it is!  Joy and bunny rabbits!
5173
5174     # All these tests are for C++; save the language and the compiler flags.
5175     # Need to do this so that g++ won't try to link in libstdc++
5176     ac_test_CFLAGS="${CFLAGS+set}"
5177     ac_save_CFLAGS="$CFLAGS"
5178     CFLAGS='-x c++  -Wl,--gc-sections'
5179
5180     # Check for -Wl,--gc-sections
5181     # XXX This test is broken at the moment, as symbols required for
5182     # linking are now in libsupc++ (not built yet.....). In addition, 
5183     # this test has cored on solaris in the past. In addition,
5184     # --gc-sections doesn't really work at the moment (keeps on discarding
5185     # used sections, first .eh_frame and now some of the glibc sections for
5186     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5187     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5188 echo "configure:5189: checking for ld that supports -Wl,--gc-sections" >&5
5189     if test "$cross_compiling" = yes; then
5190   ac_sectionLDflags=yes
5191 else
5192   cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195
5196      int main(void) 
5197      {
5198        try { throw 1; }
5199        catch (...) { };
5200        return 0;
5201      }
5202     
5203 EOF
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5205 then
5206   ac_sectionLDflags=yes
5207 else
5208   echo "configure: failed program was:" >&5
5209   cat conftest.$ac_ext >&5
5210   rm -fr conftest*
5211   ac_sectionLDflags=no
5212 fi
5213 rm -fr conftest*
5214 fi
5215
5216     if test "$ac_test_CFLAGS" = set; then
5217       CFLAGS="$ac_save_CFLAGS"
5218     else
5219       # this is the suspicious part
5220       CFLAGS=''
5221     fi
5222     if test "$ac_sectionLDflags" = "yes"; then
5223       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5224     fi
5225     echo "$ac_t""$ac_sectionLDflags" 1>&6
5226   fi
5227
5228   # Set linker optimization flags.
5229   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5230     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5231   fi
5232
5233   
5234   
5235
5236       
5237     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5238 echo "configure:5239: checking for main in -lm" >&5
5239 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5241   echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5243   ac_save_LIBS="$LIBS"
5244 LIBS="-lm  $LIBS"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248
5249 int main() {
5250 main()
5251 ; return 0; }
5252 EOF
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254   rm -rf conftest*
5255   eval "ac_cv_lib_$ac_lib_var=yes"
5256 else
5257   echo "configure: failed program was:" >&5
5258   cat conftest.$ac_ext >&5
5259   rm -rf conftest*
5260   eval "ac_cv_lib_$ac_lib_var=no"
5261 fi
5262 rm -f conftest*
5263 LIBS="$ac_save_LIBS"
5264
5265 fi
5266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5267   echo "$ac_t""yes" 1>&6
5268     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5269     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5270   cat >> confdefs.h <<EOF
5271 #define $ac_tr_lib 1
5272 EOF
5273
5274   LIBS="-lm $LIBS"
5275
5276 else
5277   echo "$ac_t""no" 1>&6
5278 fi
5279
5280   for ac_func in nan copysignf
5281 do
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285   echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287   cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291     which can conflict with char $ac_func(); below.  */
5292 #include <assert.h>
5293 /* Override any gcc2 internal prototype to avoid an error.  */
5294 /* We use char because int might match the return type of a gcc2
5295     builtin and then its argument prototype would still apply.  */
5296 char $ac_func();
5297
5298 int main() {
5299
5300 /* The GNU C library defines this for functions which it implements
5301     to always fail with ENOSYS.  Some functions are actually named
5302     something starting with __ and the normal name is an alias.  */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 choke me
5305 #else
5306 $ac_func();
5307 #endif
5308
5309 ; return 0; }
5310 EOF
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312   rm -rf conftest*
5313   eval "ac_cv_func_$ac_func=yes"
5314 else
5315   echo "configure: failed program was:" >&5
5316   cat conftest.$ac_ext >&5
5317   rm -rf conftest*
5318   eval "ac_cv_func_$ac_func=no"
5319 fi
5320 rm -f conftest*
5321 fi
5322
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324   echo "$ac_t""yes" 1>&6
5325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326   cat >> confdefs.h <<EOF
5327 #define $ac_tr_func 1
5328 EOF
5329  
5330 else
5331   echo "$ac_t""no" 1>&6
5332 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5333 fi
5334 done
5335
5336
5337     for ac_func in __signbit
5338 do
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342   echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344   cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348     which can conflict with char $ac_func(); below.  */
5349 #include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error.  */
5351 /* We use char because int might match the return type of a gcc2
5352     builtin and then its argument prototype would still apply.  */
5353 char $ac_func();
5354
5355 int main() {
5356
5357 /* The GNU C library defines this for functions which it implements
5358     to always fail with ENOSYS.  Some functions are actually named
5359     something starting with __ and the normal name is an alias.  */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 choke me
5362 #else
5363 $ac_func();
5364 #endif
5365
5366 ; return 0; }
5367 EOF
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369   rm -rf conftest*
5370   eval "ac_cv_func_$ac_func=yes"
5371 else
5372   echo "configure: failed program was:" >&5
5373   cat conftest.$ac_ext >&5
5374   rm -rf conftest*
5375   eval "ac_cv_func_$ac_func=no"
5376 fi
5377 rm -f conftest*
5378 fi
5379
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381   echo "$ac_t""yes" 1>&6
5382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383   cat >> confdefs.h <<EOF
5384 #define $ac_tr_func 1
5385 EOF
5386  
5387 else
5388   echo "$ac_t""no" 1>&6
5389 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5390 fi
5391 done
5392
5393   for ac_func in __signbitf
5394 do
5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_func" >&5
5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398   echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400   cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404     which can conflict with char $ac_func(); below.  */
5405 #include <assert.h>
5406 /* Override any gcc2 internal prototype to avoid an error.  */
5407 /* We use char because int might match the return type of a gcc2
5408     builtin and then its argument prototype would still apply.  */
5409 char $ac_func();
5410
5411 int main() {
5412
5413 /* The GNU C library defines this for functions which it implements
5414     to always fail with ENOSYS.  Some functions are actually named
5415     something starting with __ and the normal name is an alias.  */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 $ac_func();
5420 #endif
5421
5422 ; return 0; }
5423 EOF
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425   rm -rf conftest*
5426   eval "ac_cv_func_$ac_func=yes"
5427 else
5428   echo "configure: failed program was:" >&5
5429   cat conftest.$ac_ext >&5
5430   rm -rf conftest*
5431   eval "ac_cv_func_$ac_func=no"
5432 fi
5433 rm -f conftest*
5434 fi
5435
5436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437   echo "$ac_t""yes" 1>&6
5438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439   cat >> confdefs.h <<EOF
5440 #define $ac_tr_func 1
5441 EOF
5442  
5443 else
5444   echo "$ac_t""no" 1>&6
5445 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5446 fi
5447 done
5448
5449
5450           if test x$ac_cv_func_copysignl = x"yes"; then
5451     for ac_func in __signbitl
5452 do
5453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_func" >&5
5455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5456   echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458   cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462     which can conflict with char $ac_func(); below.  */
5463 #include <assert.h>
5464 /* Override any gcc2 internal prototype to avoid an error.  */
5465 /* We use char because int might match the return type of a gcc2
5466     builtin and then its argument prototype would still apply.  */
5467 char $ac_func();
5468
5469 int main() {
5470
5471 /* The GNU C library defines this for functions which it implements
5472     to always fail with ENOSYS.  Some functions are actually named
5473     something starting with __ and the normal name is an alias.  */
5474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5475 choke me
5476 #else
5477 $ac_func();
5478 #endif
5479
5480 ; return 0; }
5481 EOF
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483   rm -rf conftest*
5484   eval "ac_cv_func_$ac_func=yes"
5485 else
5486   echo "configure: failed program was:" >&5
5487   cat conftest.$ac_ext >&5
5488   rm -rf conftest*
5489   eval "ac_cv_func_$ac_func=no"
5490 fi
5491 rm -f conftest*
5492 fi
5493
5494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5495   echo "$ac_t""yes" 1>&6
5496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5497   cat >> confdefs.h <<EOF
5498 #define $ac_tr_func 1
5499 EOF
5500  
5501 else
5502   echo "$ac_t""no" 1>&6
5503 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5504 fi
5505 done
5506
5507   fi
5508
5509   
5510
5511       
5512
5513       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5514 echo "configure:5515: checking for mbstate_t" >&5
5515   cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <wchar.h>
5519 int main() {
5520 mbstate_t teststate;
5521 ; return 0; }
5522 EOF
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524   rm -rf conftest*
5525   have_mbstate_t=yes
5526 else
5527   echo "configure: failed program was:" >&5
5528   cat conftest.$ac_ext >&5
5529   rm -rf conftest*
5530   have_mbstate_t=no
5531 fi
5532 rm -f conftest*
5533   echo "$ac_t""$have_mbstate_t" 1>&6
5534   if test x"$have_mbstate_t" = xyes; then
5535     cat >> confdefs.h <<\EOF
5536 #define HAVE_MBSTATE_T 1
5537 EOF
5538
5539   fi
5540
5541     for ac_hdr in wchar.h
5542 do
5543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_hdr" >&5
5546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547   echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549   cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 #include <$ac_hdr>
5553 EOF
5554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 { (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 if test -z "$ac_err"; then
5558   rm -rf conftest*
5559   eval "ac_cv_header_$ac_safe=yes"
5560 else
5561   echo "$ac_err" >&5
5562   echo "configure: failed program was:" >&5
5563   cat conftest.$ac_ext >&5
5564   rm -rf conftest*
5565   eval "ac_cv_header_$ac_safe=no"
5566 fi
5567 rm -f conftest*
5568 fi
5569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570   echo "$ac_t""yes" 1>&6
5571     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572   cat >> confdefs.h <<EOF
5573 #define $ac_tr_hdr 1
5574 EOF
5575  ac_has_wchar_h=yes
5576 else
5577   echo "$ac_t""no" 1>&6
5578 ac_has_wchar_h=no
5579 fi
5580 done
5581
5582   for ac_hdr in wctype.h
5583 do
5584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_hdr" >&5
5587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5588   echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590   cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <$ac_hdr>
5594 EOF
5595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5596 { (eval echo configure:5597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5598 if test -z "$ac_err"; then
5599   rm -rf conftest*
5600   eval "ac_cv_header_$ac_safe=yes"
5601 else
5602   echo "$ac_err" >&5
5603   echo "configure: failed program was:" >&5
5604   cat conftest.$ac_ext >&5
5605   rm -rf conftest*
5606   eval "ac_cv_header_$ac_safe=no"
5607 fi
5608 rm -f conftest*
5609 fi
5610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5611   echo "$ac_t""yes" 1>&6
5612     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5613   cat >> confdefs.h <<EOF
5614 #define $ac_tr_hdr 1
5615 EOF
5616  ac_has_wctype_h=yes
5617 else
5618   echo "$ac_t""no" 1>&6
5619 ac_has_wctype_h=no
5620 fi
5621 done
5622
5623   
5624     if test x"$ac_has_wchar_h" = xyes &&
5625      test x"$ac_has_wctype_h" = xyes &&
5626      test x"$enable_c_mbchar" != xno; then
5627       
5628             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5629 echo "configure:5630: checking for WCHAR_MIN and WCHAR_MAX" >&5
5630     cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 #include <wchar.h>
5634 int main() {
5635 int i = WCHAR_MIN; int j = WCHAR_MAX;
5636 ; return 0; }
5637 EOF
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639   rm -rf conftest*
5640   has_wchar_minmax=yes
5641 else
5642   echo "configure: failed program was:" >&5
5643   cat conftest.$ac_ext >&5
5644   rm -rf conftest*
5645   has_wchar_minmax=no
5646 fi
5647 rm -f conftest*
5648     echo "$ac_t""$has_wchar_minmax" 1>&6
5649     
5650             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5651 echo "configure:5652: checking for WEOF" >&5
5652     cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655
5656       #include <wchar.h>
5657       #include <stddef.h>
5658 int main() {
5659 wint_t i = WEOF;
5660 ; return 0; }
5661 EOF
5662 if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663   rm -rf conftest*
5664   has_weof=yes
5665 else
5666   echo "configure: failed program was:" >&5
5667   cat conftest.$ac_ext >&5
5668   rm -rf conftest*
5669   has_weof=no
5670 fi
5671 rm -f conftest*
5672     echo "$ac_t""$has_weof" 1>&6
5673   
5674         ac_wfuncs=yes
5675     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5676 do
5677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5678 echo "configure:5679: checking for $ac_func" >&5
5679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5680   echo $ac_n "(cached) $ac_c" 1>&6
5681 else
5682   cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 /* System header to define __stub macros and hopefully few prototypes,
5686     which can conflict with char $ac_func(); below.  */
5687 #include <assert.h>
5688 /* Override any gcc2 internal prototype to avoid an error.  */
5689 /* We use char because int might match the return type of a gcc2
5690     builtin and then its argument prototype would still apply.  */
5691 char $ac_func();
5692
5693 int main() {
5694
5695 /* The GNU C library defines this for functions which it implements
5696     to always fail with ENOSYS.  Some functions are actually named
5697     something starting with __ and the normal name is an alias.  */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 choke me
5700 #else
5701 $ac_func();
5702 #endif
5703
5704 ; return 0; }
5705 EOF
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707   rm -rf conftest*
5708   eval "ac_cv_func_$ac_func=yes"
5709 else
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   eval "ac_cv_func_$ac_func=no"
5714 fi
5715 rm -f conftest*
5716 fi
5717
5718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5719   echo "$ac_t""yes" 1>&6
5720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5721   cat >> confdefs.h <<EOF
5722 #define $ac_tr_func 1
5723 EOF
5724  
5725 else
5726   echo "$ac_t""no" 1>&6
5727 \
5728     ac_wfuncs=no
5729 fi
5730 done
5731
5732   
5733         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5734     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5735     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5736     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5737     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5738     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5739 do
5740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5741 echo "configure:5742: checking for $ac_func" >&5
5742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5743   echo $ac_n "(cached) $ac_c" 1>&6
5744 else
5745   cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* System header to define __stub macros and hopefully few prototypes,
5749     which can conflict with char $ac_func(); below.  */
5750 #include <assert.h>
5751 /* Override any gcc2 internal prototype to avoid an error.  */
5752 /* We use char because int might match the return type of a gcc2
5753     builtin and then its argument prototype would still apply.  */
5754 char $ac_func();
5755
5756 int main() {
5757
5758 /* The GNU C library defines this for functions which it implements
5759     to always fail with ENOSYS.  Some functions are actually named
5760     something starting with __ and the normal name is an alias.  */
5761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5762 choke me
5763 #else
5764 $ac_func();
5765 #endif
5766
5767 ; return 0; }
5768 EOF
5769 if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770   rm -rf conftest*
5771   eval "ac_cv_func_$ac_func=yes"
5772 else
5773   echo "configure: failed program was:" >&5
5774   cat conftest.$ac_ext >&5
5775   rm -rf conftest*
5776   eval "ac_cv_func_$ac_func=no"
5777 fi
5778 rm -f conftest*
5779 fi
5780
5781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5782   echo "$ac_t""yes" 1>&6
5783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5784   cat >> confdefs.h <<EOF
5785 #define $ac_tr_func 1
5786 EOF
5787  
5788 else
5789   echo "$ac_t""no" 1>&6
5790 \
5791     ac_wfuncs=no
5792 fi
5793 done
5794
5795
5796     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5797 echo "configure:5798: checking for ISO C99 wchar_t support" >&5
5798     if test x"$has_weof" = xyes &&
5799        test x"$has_wchar_minmax" = xyes &&
5800        test x"$ac_wfuncs" = xyes; then
5801       ac_isoC99_wchar_t=yes
5802     else
5803       ac_isoC99_wchar_t=no
5804     fi
5805     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5806   
5807             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5808 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for iconv.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5811   echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813   cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <iconv.h>
5817 EOF
5818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5819 { (eval echo configure:5820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5821 if test -z "$ac_err"; then
5822   rm -rf conftest*
5823   eval "ac_cv_header_$ac_safe=yes"
5824 else
5825   echo "$ac_err" >&5
5826   echo "configure: failed program was:" >&5
5827   cat conftest.$ac_ext >&5
5828   rm -rf conftest*
5829   eval "ac_cv_header_$ac_safe=no"
5830 fi
5831 rm -f conftest*
5832 fi
5833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5834   echo "$ac_t""yes" 1>&6
5835   ac_has_iconv_h=yes
5836 else
5837   echo "$ac_t""no" 1>&6
5838 ac_has_iconv_h=no
5839 fi
5840
5841     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for langinfo.h" >&5
5844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5845   echo $ac_n "(cached) $ac_c" 1>&6
5846 else
5847   cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include <langinfo.h>
5851 EOF
5852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853 { (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5855 if test -z "$ac_err"; then
5856   rm -rf conftest*
5857   eval "ac_cv_header_$ac_safe=yes"
5858 else
5859   echo "$ac_err" >&5
5860   echo "configure: failed program was:" >&5
5861   cat conftest.$ac_ext >&5
5862   rm -rf conftest*
5863   eval "ac_cv_header_$ac_safe=no"
5864 fi
5865 rm -f conftest*
5866 fi
5867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5868   echo "$ac_t""yes" 1>&6
5869   ac_has_langinfo_h=yes
5870 else
5871   echo "$ac_t""no" 1>&6
5872 ac_has_langinfo_h=no
5873 fi
5874
5875
5876         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5877 echo "configure:5878: checking for iconv in -liconv" >&5
5878 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5880   echo $ac_n "(cached) $ac_c" 1>&6
5881 else
5882   ac_save_LIBS="$LIBS"
5883 LIBS="-liconv  $LIBS"
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 /* We use char because int might match the return type of a gcc2
5889     builtin and then its argument prototype would still apply.  */
5890 char iconv();
5891
5892 int main() {
5893 iconv()
5894 ; return 0; }
5895 EOF
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897   rm -rf conftest*
5898   eval "ac_cv_lib_$ac_lib_var=yes"
5899 else
5900   echo "configure: failed program was:" >&5
5901   cat conftest.$ac_ext >&5
5902   rm -rf conftest*
5903   eval "ac_cv_lib_$ac_lib_var=no"
5904 fi
5905 rm -f conftest*
5906 LIBS="$ac_save_LIBS"
5907
5908 fi
5909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5910   echo "$ac_t""yes" 1>&6
5911   libiconv="-liconv"
5912 else
5913   echo "$ac_t""no" 1>&6
5914 fi
5915
5916     ac_save_LIBS="$LIBS"
5917     LIBS="$LIBS $libiconv"
5918
5919     for ac_func in iconv_open iconv_close iconv nl_langinfo
5920 do
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924   echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926   cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930     which can conflict with char $ac_func(); below.  */
5931 #include <assert.h>
5932 /* Override any gcc2 internal prototype to avoid an error.  */
5933 /* We use char because int might match the return type of a gcc2
5934     builtin and then its argument prototype would still apply.  */
5935 char $ac_func();
5936
5937 int main() {
5938
5939 /* The GNU C library defines this for functions which it implements
5940     to always fail with ENOSYS.  Some functions are actually named
5941     something starting with __ and the normal name is an alias.  */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 choke me
5944 #else
5945 $ac_func();
5946 #endif
5947
5948 ; return 0; }
5949 EOF
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951   rm -rf conftest*
5952   eval "ac_cv_func_$ac_func=yes"
5953 else
5954   echo "configure: failed program was:" >&5
5955   cat conftest.$ac_ext >&5
5956   rm -rf conftest*
5957   eval "ac_cv_func_$ac_func=no"
5958 fi
5959 rm -f conftest*
5960 fi
5961
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963   echo "$ac_t""yes" 1>&6
5964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965   cat >> confdefs.h <<EOF
5966 #define $ac_tr_func 1
5967 EOF
5968  \
5969     ac_XPG2funcs=yes
5970 else
5971   echo "$ac_t""no" 1>&6
5972 ac_XPG2funcs=no
5973 fi
5974 done
5975
5976   
5977     LIBS="$ac_save_LIBS"
5978
5979     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5980 echo "configure:5981: checking for XPG2 wchar_t support" >&5
5981     if test x"$ac_has_iconv_h" = xyes &&
5982        test x"$ac_has_langinfo_h" = xyes &&
5983        test x"$ac_XPG2funcs" = xyes; then
5984       ac_XPG2_wchar_t=yes
5985     else
5986       ac_XPG2_wchar_t=no
5987     fi
5988     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5989   
5990             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5991 echo "configure:5992: checking for enabled wchar_t specializations" >&5
5992     if test x"$ac_isoC99_wchar_t" = xyes &&
5993        test x"$ac_XPG2_wchar_t" = xyes; then
5994       cat >> confdefs.h <<\EOF
5995 #define _GLIBCPP_USE_WCHAR_T 1
5996 EOF
5997
5998       echo "$ac_t"""yes"" 1>&6
5999     else
6000       echo "$ac_t"""no"" 1>&6
6001     fi
6002   else
6003         echo "configure: warning: wchar_t support disabled." 1>&2
6004   fi
6005
6006       os_include_dir="os/hpux"
6007       cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGN 1
6009 EOF
6010
6011       cat >> confdefs.h <<\EOF
6012 #define HAVE_COPYSIGNF 1
6013 EOF
6014
6015       cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6017 EOF
6018
6019       cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6021 EOF
6022
6023       case "$target_alias" in
6024         *-hpux10*)
6025           cat >> confdefs.h <<\EOF
6026 #define HAVE_FINITE 1
6027 EOF
6028
6029           cat >> confdefs.h <<\EOF
6030 #define HAVE_FINITEF 1
6031 EOF
6032
6033           cat >> confdefs.h <<\EOF
6034 #define HAVE_ISINF 1
6035 EOF
6036
6037           cat >> confdefs.h <<\EOF
6038 #define HAVE_ISINFF 1
6039 EOF
6040
6041           cat >> confdefs.h <<\EOF
6042 #define HAVE_ISNAN 1
6043 EOF
6044
6045           cat >> confdefs.h <<\EOF
6046 #define HAVE_ISNANF 1
6047 EOF
6048
6049           ;;
6050       esac
6051
6052       ;;
6053     *-netbsd*)
6054       # Check for available headers.
6055       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6056         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6057         fp.h locale.h float.h inttypes.h
6058 do
6059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6061 echo "configure:6062: checking for $ac_hdr" >&5
6062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063   echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6065   cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <$ac_hdr>
6069 EOF
6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073 if test -z "$ac_err"; then
6074   rm -rf conftest*
6075   eval "ac_cv_header_$ac_safe=yes"
6076 else
6077   echo "$ac_err" >&5
6078   echo "configure: failed program was:" >&5
6079   cat conftest.$ac_ext >&5
6080   rm -rf conftest*
6081   eval "ac_cv_header_$ac_safe=no"
6082 fi
6083 rm -f conftest*
6084 fi
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086   echo "$ac_t""yes" 1>&6
6087     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6088   cat >> confdefs.h <<EOF
6089 #define $ac_tr_hdr 1
6090 EOF
6091  
6092 else
6093   echo "$ac_t""no" 1>&6
6094 fi
6095 done
6096
6097       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6098        
6099       
6100   # If we're not using GNU ld, then there's no point in even trying these
6101   # tests.  Check for that first.  We should have already tested for gld
6102   # by now (in libtool), but require it now just to be safe...
6103   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6104   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6105   
6106
6107   # The name set by libtool depends on the version of libtool.  Shame on us
6108   # for depending on an impl detail, but c'est la vie.  Older versions used
6109   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6110   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6111   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6112   # set (hence we're using an older libtool), then set it.
6113   if test x${with_gnu_ld+set} != xset; then
6114     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6115       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6116       with_gnu_ld=no
6117     else
6118       with_gnu_ld=$ac_cv_prog_gnu_ld
6119     fi
6120   fi
6121
6122   # Start by getting the version number.  I think the libtool test already
6123   # does some of this, but throws away the result.
6124   
6125   ldver=`$LD --version 2>/dev/null | head -1 | \
6126          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6127   
6128   glibcpp_gnu_ld_version=`echo $ldver | \
6129          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6130
6131   # Set --gc-sections.
6132   if test "$with_gnu_ld" = "notbroken"; then
6133     # GNU ld it is!  Joy and bunny rabbits!
6134
6135     # All these tests are for C++; save the language and the compiler flags.
6136     # Need to do this so that g++ won't try to link in libstdc++
6137     ac_test_CFLAGS="${CFLAGS+set}"
6138     ac_save_CFLAGS="$CFLAGS"
6139     CFLAGS='-x c++  -Wl,--gc-sections'
6140
6141     # Check for -Wl,--gc-sections
6142     # XXX This test is broken at the moment, as symbols required for
6143     # linking are now in libsupc++ (not built yet.....). In addition, 
6144     # this test has cored on solaris in the past. In addition,
6145     # --gc-sections doesn't really work at the moment (keeps on discarding
6146     # used sections, first .eh_frame and now some of the glibc sections for
6147     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6148     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6149 echo "configure:6150: checking for ld that supports -Wl,--gc-sections" >&5
6150     if test "$cross_compiling" = yes; then
6151   ac_sectionLDflags=yes
6152 else
6153   cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156
6157      int main(void) 
6158      {
6159        try { throw 1; }
6160        catch (...) { };
6161        return 0;
6162      }
6163     
6164 EOF
6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6166 then
6167   ac_sectionLDflags=yes
6168 else
6169   echo "configure: failed program was:" >&5
6170   cat conftest.$ac_ext >&5
6171   rm -fr conftest*
6172   ac_sectionLDflags=no
6173 fi
6174 rm -fr conftest*
6175 fi
6176
6177     if test "$ac_test_CFLAGS" = set; then
6178       CFLAGS="$ac_save_CFLAGS"
6179     else
6180       # this is the suspicious part
6181       CFLAGS=''
6182     fi
6183     if test "$ac_sectionLDflags" = "yes"; then
6184       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6185     fi
6186     echo "$ac_t""$ac_sectionLDflags" 1>&6
6187   fi
6188
6189   # Set linker optimization flags.
6190   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6191     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6192   fi
6193
6194   
6195   
6196
6197       
6198     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6199 echo "configure:6200: checking for main in -lm" >&5
6200 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6202   echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204   ac_save_LIBS="$LIBS"
6205 LIBS="-lm  $LIBS"
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209
6210 int main() {
6211 main()
6212 ; return 0; }
6213 EOF
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215   rm -rf conftest*
6216   eval "ac_cv_lib_$ac_lib_var=yes"
6217 else
6218   echo "configure: failed program was:" >&5
6219   cat conftest.$ac_ext >&5
6220   rm -rf conftest*
6221   eval "ac_cv_lib_$ac_lib_var=no"
6222 fi
6223 rm -f conftest*
6224 LIBS="$ac_save_LIBS"
6225
6226 fi
6227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6228   echo "$ac_t""yes" 1>&6
6229     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6230     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6231   cat >> confdefs.h <<EOF
6232 #define $ac_tr_lib 1
6233 EOF
6234
6235   LIBS="-lm $LIBS"
6236
6237 else
6238   echo "$ac_t""no" 1>&6
6239 fi
6240
6241   for ac_func in nan copysignf
6242 do
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246   echo $ac_n "(cached) $ac_c" 1>&6
6247 else
6248   cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252     which can conflict with char $ac_func(); below.  */
6253 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error.  */
6255 /* We use char because int might match the return type of a gcc2
6256     builtin and then its argument prototype would still apply.  */
6257 char $ac_func();
6258
6259 int main() {
6260
6261 /* The GNU C library defines this for functions which it implements
6262     to always fail with ENOSYS.  Some functions are actually named
6263     something starting with __ and the normal name is an alias.  */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 choke me
6266 #else
6267 $ac_func();
6268 #endif
6269
6270 ; return 0; }
6271 EOF
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273   rm -rf conftest*
6274   eval "ac_cv_func_$ac_func=yes"
6275 else
6276   echo "configure: failed program was:" >&5
6277   cat conftest.$ac_ext >&5
6278   rm -rf conftest*
6279   eval "ac_cv_func_$ac_func=no"
6280 fi
6281 rm -f conftest*
6282 fi
6283
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285   echo "$ac_t""yes" 1>&6
6286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287   cat >> confdefs.h <<EOF
6288 #define $ac_tr_func 1
6289 EOF
6290  
6291 else
6292   echo "$ac_t""no" 1>&6
6293 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6294 fi
6295 done
6296
6297
6298     for ac_func in __signbit
6299 do
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303   echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305   cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309     which can conflict with char $ac_func(); below.  */
6310 #include <assert.h>
6311 /* Override any gcc2 internal prototype to avoid an error.  */
6312 /* We use char because int might match the return type of a gcc2
6313     builtin and then its argument prototype would still apply.  */
6314 char $ac_func();
6315
6316 int main() {
6317
6318 /* The GNU C library defines this for functions which it implements
6319     to always fail with ENOSYS.  Some functions are actually named
6320     something starting with __ and the normal name is an alias.  */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6322 choke me
6323 #else
6324 $ac_func();
6325 #endif
6326
6327 ; return 0; }
6328 EOF
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330   rm -rf conftest*
6331   eval "ac_cv_func_$ac_func=yes"
6332 else
6333   echo "configure: failed program was:" >&5
6334   cat conftest.$ac_ext >&5
6335   rm -rf conftest*
6336   eval "ac_cv_func_$ac_func=no"
6337 fi
6338 rm -f conftest*
6339 fi
6340
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342   echo "$ac_t""yes" 1>&6
6343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344   cat >> confdefs.h <<EOF
6345 #define $ac_tr_func 1
6346 EOF
6347  
6348 else
6349   echo "$ac_t""no" 1>&6
6350 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6351 fi
6352 done
6353
6354   for ac_func in __signbitf
6355 do
6356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_func" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6359   echo $ac_n "(cached) $ac_c" 1>&6
6360 else
6361   cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* System header to define __stub macros and hopefully few prototypes,
6365     which can conflict with char $ac_func(); below.  */
6366 #include <assert.h>
6367 /* Override any gcc2 internal prototype to avoid an error.  */
6368 /* We use char because int might match the return type of a gcc2
6369     builtin and then its argument prototype would still apply.  */
6370 char $ac_func();
6371
6372 int main() {
6373
6374 /* The GNU C library defines this for functions which it implements
6375     to always fail with ENOSYS.  Some functions are actually named
6376     something starting with __ and the normal name is an alias.  */
6377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 choke me
6379 #else
6380 $ac_func();
6381 #endif
6382
6383 ; return 0; }
6384 EOF
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386   rm -rf conftest*
6387   eval "ac_cv_func_$ac_func=yes"
6388 else
6389   echo "configure: failed program was:" >&5
6390   cat conftest.$ac_ext >&5
6391   rm -rf conftest*
6392   eval "ac_cv_func_$ac_func=no"
6393 fi
6394 rm -f conftest*
6395 fi
6396
6397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6398   echo "$ac_t""yes" 1>&6
6399     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400   cat >> confdefs.h <<EOF
6401 #define $ac_tr_func 1
6402 EOF
6403  
6404 else
6405   echo "$ac_t""no" 1>&6
6406 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6407 fi
6408 done
6409
6410
6411           if test x$ac_cv_func_copysignl = x"yes"; then
6412     for ac_func in __signbitl
6413 do
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417   echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419   cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423     which can conflict with char $ac_func(); below.  */
6424 #include <assert.h>
6425 /* Override any gcc2 internal prototype to avoid an error.  */
6426 /* We use char because int might match the return type of a gcc2
6427     builtin and then its argument prototype would still apply.  */
6428 char $ac_func();
6429
6430 int main() {
6431
6432 /* The GNU C library defines this for functions which it implements
6433     to always fail with ENOSYS.  Some functions are actually named
6434     something starting with __ and the normal name is an alias.  */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 choke me
6437 #else
6438 $ac_func();
6439 #endif
6440
6441 ; return 0; }
6442 EOF
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444   rm -rf conftest*
6445   eval "ac_cv_func_$ac_func=yes"
6446 else
6447   echo "configure: failed program was:" >&5
6448   cat conftest.$ac_ext >&5
6449   rm -rf conftest*
6450   eval "ac_cv_func_$ac_func=no"
6451 fi
6452 rm -f conftest*
6453 fi
6454
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456   echo "$ac_t""yes" 1>&6
6457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458   cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6460 EOF
6461  
6462 else
6463   echo "$ac_t""no" 1>&6
6464 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6465 fi
6466 done
6467
6468   fi
6469
6470   
6471
6472       
6473
6474       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6475 echo "configure:6476: checking for mbstate_t" >&5
6476   cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 #include <wchar.h>
6480 int main() {
6481 mbstate_t teststate;
6482 ; return 0; }
6483 EOF
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6485   rm -rf conftest*
6486   have_mbstate_t=yes
6487 else
6488   echo "configure: failed program was:" >&5
6489   cat conftest.$ac_ext >&5
6490   rm -rf conftest*
6491   have_mbstate_t=no
6492 fi
6493 rm -f conftest*
6494   echo "$ac_t""$have_mbstate_t" 1>&6
6495   if test x"$have_mbstate_t" = xyes; then
6496     cat >> confdefs.h <<\EOF
6497 #define HAVE_MBSTATE_T 1
6498 EOF
6499
6500   fi
6501
6502     for ac_hdr in wchar.h
6503 do
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508   echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510   cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 #include <$ac_hdr>
6514 EOF
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6519   rm -rf conftest*
6520   eval "ac_cv_header_$ac_safe=yes"
6521 else
6522   echo "$ac_err" >&5
6523   echo "configure: failed program was:" >&5
6524   cat conftest.$ac_ext >&5
6525   rm -rf conftest*
6526   eval "ac_cv_header_$ac_safe=no"
6527 fi
6528 rm -f conftest*
6529 fi
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531   echo "$ac_t""yes" 1>&6
6532     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533   cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6535 EOF
6536  ac_has_wchar_h=yes
6537 else
6538   echo "$ac_t""no" 1>&6
6539 ac_has_wchar_h=no
6540 fi
6541 done
6542
6543   for ac_hdr in wctype.h
6544 do
6545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_hdr" >&5
6548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6549   echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551   cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <$ac_hdr>
6555 EOF
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6560   rm -rf conftest*
6561   eval "ac_cv_header_$ac_safe=yes"
6562 else
6563   echo "$ac_err" >&5
6564   echo "configure: failed program was:" >&5
6565   cat conftest.$ac_ext >&5
6566   rm -rf conftest*
6567   eval "ac_cv_header_$ac_safe=no"
6568 fi
6569 rm -f conftest*
6570 fi
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572   echo "$ac_t""yes" 1>&6
6573     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6574   cat >> confdefs.h <<EOF
6575 #define $ac_tr_hdr 1
6576 EOF
6577  ac_has_wctype_h=yes
6578 else
6579   echo "$ac_t""no" 1>&6
6580 ac_has_wctype_h=no
6581 fi
6582 done
6583
6584   
6585     if test x"$ac_has_wchar_h" = xyes &&
6586      test x"$ac_has_wctype_h" = xyes &&
6587      test x"$enable_c_mbchar" != xno; then
6588       
6589             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6590 echo "configure:6591: checking for WCHAR_MIN and WCHAR_MAX" >&5
6591     cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 #include <wchar.h>
6595 int main() {
6596 int i = WCHAR_MIN; int j = WCHAR_MAX;
6597 ; return 0; }
6598 EOF
6599 if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600   rm -rf conftest*
6601   has_wchar_minmax=yes
6602 else
6603   echo "configure: failed program was:" >&5
6604   cat conftest.$ac_ext >&5
6605   rm -rf conftest*
6606   has_wchar_minmax=no
6607 fi
6608 rm -f conftest*
6609     echo "$ac_t""$has_wchar_minmax" 1>&6
6610     
6611             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6612 echo "configure:6613: checking for WEOF" >&5
6613     cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616
6617       #include <wchar.h>
6618       #include <stddef.h>
6619 int main() {
6620 wint_t i = WEOF;
6621 ; return 0; }
6622 EOF
6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6624   rm -rf conftest*
6625   has_weof=yes
6626 else
6627   echo "configure: failed program was:" >&5
6628   cat conftest.$ac_ext >&5
6629   rm -rf conftest*
6630   has_weof=no
6631 fi
6632 rm -f conftest*
6633     echo "$ac_t""$has_weof" 1>&6
6634   
6635         ac_wfuncs=yes
6636     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6637 do
6638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6639 echo "configure:6640: checking for $ac_func" >&5
6640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6641   echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643   cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* System header to define __stub macros and hopefully few prototypes,
6647     which can conflict with char $ac_func(); below.  */
6648 #include <assert.h>
6649 /* Override any gcc2 internal prototype to avoid an error.  */
6650 /* We use char because int might match the return type of a gcc2
6651     builtin and then its argument prototype would still apply.  */
6652 char $ac_func();
6653
6654 int main() {
6655
6656 /* The GNU C library defines this for functions which it implements
6657     to always fail with ENOSYS.  Some functions are actually named
6658     something starting with __ and the normal name is an alias.  */
6659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 choke me
6661 #else
6662 $ac_func();
6663 #endif
6664
6665 ; return 0; }
6666 EOF
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668   rm -rf conftest*
6669   eval "ac_cv_func_$ac_func=yes"
6670 else
6671   echo "configure: failed program was:" >&5
6672   cat conftest.$ac_ext >&5
6673   rm -rf conftest*
6674   eval "ac_cv_func_$ac_func=no"
6675 fi
6676 rm -f conftest*
6677 fi
6678
6679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6680   echo "$ac_t""yes" 1>&6
6681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6682   cat >> confdefs.h <<EOF
6683 #define $ac_tr_func 1
6684 EOF
6685  
6686 else
6687   echo "$ac_t""no" 1>&6
6688 \
6689     ac_wfuncs=no
6690 fi
6691 done
6692
6693   
6694         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6695     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6696     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6697     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6698     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6699     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6700 do
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704   echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706   cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710     which can conflict with char $ac_func(); below.  */
6711 #include <assert.h>
6712 /* Override any gcc2 internal prototype to avoid an error.  */
6713 /* We use char because int might match the return type of a gcc2
6714     builtin and then its argument prototype would still apply.  */
6715 char $ac_func();
6716
6717 int main() {
6718
6719 /* The GNU C library defines this for functions which it implements
6720     to always fail with ENOSYS.  Some functions are actually named
6721     something starting with __ and the normal name is an alias.  */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 choke me
6724 #else
6725 $ac_func();
6726 #endif
6727
6728 ; return 0; }
6729 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731   rm -rf conftest*
6732   eval "ac_cv_func_$ac_func=yes"
6733 else
6734   echo "configure: failed program was:" >&5
6735   cat conftest.$ac_ext >&5
6736   rm -rf conftest*
6737   eval "ac_cv_func_$ac_func=no"
6738 fi
6739 rm -f conftest*
6740 fi
6741
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743   echo "$ac_t""yes" 1>&6
6744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745   cat >> confdefs.h <<EOF
6746 #define $ac_tr_func 1
6747 EOF
6748  
6749 else
6750   echo "$ac_t""no" 1>&6
6751 \
6752     ac_wfuncs=no
6753 fi
6754 done
6755
6756
6757     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6758 echo "configure:6759: checking for ISO C99 wchar_t support" >&5
6759     if test x"$has_weof" = xyes &&
6760        test x"$has_wchar_minmax" = xyes &&
6761        test x"$ac_wfuncs" = xyes; then
6762       ac_isoC99_wchar_t=yes
6763     else
6764       ac_isoC99_wchar_t=no
6765     fi
6766     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6767   
6768             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for iconv.h" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772   echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774   cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <iconv.h>
6778 EOF
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6782 if test -z "$ac_err"; then
6783   rm -rf conftest*
6784   eval "ac_cv_header_$ac_safe=yes"
6785 else
6786   echo "$ac_err" >&5
6787   echo "configure: failed program was:" >&5
6788   cat conftest.$ac_ext >&5
6789   rm -rf conftest*
6790   eval "ac_cv_header_$ac_safe=no"
6791 fi
6792 rm -f conftest*
6793 fi
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795   echo "$ac_t""yes" 1>&6
6796   ac_has_iconv_h=yes
6797 else
6798   echo "$ac_t""no" 1>&6
6799 ac_has_iconv_h=no
6800 fi
6801
6802     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6803 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6804 echo "configure:6805: checking for langinfo.h" >&5
6805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6806   echo $ac_n "(cached) $ac_c" 1>&6
6807 else
6808   cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 #include <langinfo.h>
6812 EOF
6813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6814 { (eval echo configure:6815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6816 if test -z "$ac_err"; then
6817   rm -rf conftest*
6818   eval "ac_cv_header_$ac_safe=yes"
6819 else
6820   echo "$ac_err" >&5
6821   echo "configure: failed program was:" >&5
6822   cat conftest.$ac_ext >&5
6823   rm -rf conftest*
6824   eval "ac_cv_header_$ac_safe=no"
6825 fi
6826 rm -f conftest*
6827 fi
6828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6829   echo "$ac_t""yes" 1>&6
6830   ac_has_langinfo_h=yes
6831 else
6832   echo "$ac_t""no" 1>&6
6833 ac_has_langinfo_h=no
6834 fi
6835
6836
6837         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6838 echo "configure:6839: checking for iconv in -liconv" >&5
6839 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6841   echo $ac_n "(cached) $ac_c" 1>&6
6842 else
6843   ac_save_LIBS="$LIBS"
6844 LIBS="-liconv  $LIBS"
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error.  */
6849 /* We use char because int might match the return type of a gcc2
6850     builtin and then its argument prototype would still apply.  */
6851 char iconv();
6852
6853 int main() {
6854 iconv()
6855 ; return 0; }
6856 EOF
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858   rm -rf conftest*
6859   eval "ac_cv_lib_$ac_lib_var=yes"
6860 else
6861   echo "configure: failed program was:" >&5
6862   cat conftest.$ac_ext >&5
6863   rm -rf conftest*
6864   eval "ac_cv_lib_$ac_lib_var=no"
6865 fi
6866 rm -f conftest*
6867 LIBS="$ac_save_LIBS"
6868
6869 fi
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871   echo "$ac_t""yes" 1>&6
6872   libiconv="-liconv"
6873 else
6874   echo "$ac_t""no" 1>&6
6875 fi
6876
6877     ac_save_LIBS="$LIBS"
6878     LIBS="$LIBS $libiconv"
6879
6880     for ac_func in iconv_open iconv_close iconv nl_langinfo
6881 do
6882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_func" >&5
6884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6885   echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887   cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 /* System header to define __stub macros and hopefully few prototypes,
6891     which can conflict with char $ac_func(); below.  */
6892 #include <assert.h>
6893 /* Override any gcc2 internal prototype to avoid an error.  */
6894 /* We use char because int might match the return type of a gcc2
6895     builtin and then its argument prototype would still apply.  */
6896 char $ac_func();
6897
6898 int main() {
6899
6900 /* The GNU C library defines this for functions which it implements
6901     to always fail with ENOSYS.  Some functions are actually named
6902     something starting with __ and the normal name is an alias.  */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 choke me
6905 #else
6906 $ac_func();
6907 #endif
6908
6909 ; return 0; }
6910 EOF
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912   rm -rf conftest*
6913   eval "ac_cv_func_$ac_func=yes"
6914 else
6915   echo "configure: failed program was:" >&5
6916   cat conftest.$ac_ext >&5
6917   rm -rf conftest*
6918   eval "ac_cv_func_$ac_func=no"
6919 fi
6920 rm -f conftest*
6921 fi
6922
6923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6924   echo "$ac_t""yes" 1>&6
6925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6926   cat >> confdefs.h <<EOF
6927 #define $ac_tr_func 1
6928 EOF
6929  \
6930     ac_XPG2funcs=yes
6931 else
6932   echo "$ac_t""no" 1>&6
6933 ac_XPG2funcs=no
6934 fi
6935 done
6936
6937   
6938     LIBS="$ac_save_LIBS"
6939
6940     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6941 echo "configure:6942: checking for XPG2 wchar_t support" >&5
6942     if test x"$ac_has_iconv_h" = xyes &&
6943        test x"$ac_has_langinfo_h" = xyes &&
6944        test x"$ac_XPG2funcs" = xyes; then
6945       ac_XPG2_wchar_t=yes
6946     else
6947       ac_XPG2_wchar_t=no
6948     fi
6949     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6950   
6951             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6952 echo "configure:6953: checking for enabled wchar_t specializations" >&5
6953     if test x"$ac_isoC99_wchar_t" = xyes &&
6954        test x"$ac_XPG2_wchar_t" = xyes; then
6955       cat >> confdefs.h <<\EOF
6956 #define _GLIBCPP_USE_WCHAR_T 1
6957 EOF
6958
6959       echo "$ac_t"""yes"" 1>&6
6960     else
6961       echo "$ac_t"""no"" 1>&6
6962     fi
6963   else
6964         echo "configure: warning: wchar_t support disabled." 1>&2
6965   fi
6966
6967       os_include_dir="os/bsd/netbsd"
6968       cat >> confdefs.h <<\EOF
6969 #define HAVE_COPYSIGN 1
6970 EOF
6971
6972       cat >> confdefs.h <<\EOF
6973 #define HAVE_COPYSIGNF 1
6974 EOF
6975
6976       cat >> confdefs.h <<\EOF
6977 #define HAVE_FINITEF 1
6978 EOF
6979
6980       cat >> confdefs.h <<\EOF
6981 #define HAVE_FINITE 1
6982 EOF
6983
6984       cat >> confdefs.h <<\EOF
6985 #define HAVE_FREXPF 1
6986 EOF
6987
6988       cat >> confdefs.h <<\EOF
6989 #define HAVE_HYPOTF 1
6990 EOF
6991
6992       cat >> confdefs.h <<\EOF
6993 #define HAVE_ISINF 1
6994 EOF
6995
6996       cat >> confdefs.h <<\EOF
6997 #define HAVE_ISINFF 1
6998 EOF
6999
7000       cat >> confdefs.h <<\EOF
7001 #define HAVE_ISNAN 1
7002 EOF
7003
7004       cat >> confdefs.h <<\EOF
7005 #define HAVE_ISNANF 1
7006 EOF
7007
7008       if test x"long_double_math_on_this_cpu" = x"yes"; then
7009         cat >> confdefs.h <<\EOF
7010 #define HAVE_FINITEL 1
7011 EOF
7012
7013         cat >> confdefs.h <<\EOF
7014 #define HAVE_ISINFL 1
7015 EOF
7016
7017         cat >> confdefs.h <<\EOF
7018 #define HAVE_ISNANL 1
7019 EOF
7020
7021       fi
7022       ;;
7023     *-mingw32*)
7024       for ac_hdr in sys/types.h locale.h float.h
7025 do
7026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7028 echo "configure:7029: checking for $ac_hdr" >&5
7029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7030   echo $ac_n "(cached) $ac_c" 1>&6
7031 else
7032   cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7035 #include <$ac_hdr>
7036 EOF
7037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7038 { (eval echo configure:7039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7040 if test -z "$ac_err"; then
7041   rm -rf conftest*
7042   eval "ac_cv_header_$ac_safe=yes"
7043 else
7044   echo "$ac_err" >&5
7045   echo "configure: failed program was:" >&5
7046   cat conftest.$ac_ext >&5
7047   rm -rf conftest*
7048   eval "ac_cv_header_$ac_safe=no"
7049 fi
7050 rm -f conftest*
7051 fi
7052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7053   echo "$ac_t""yes" 1>&6
7054     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7055   cat >> confdefs.h <<EOF
7056 #define $ac_tr_hdr 1
7057 EOF
7058  
7059 else
7060   echo "$ac_t""no" 1>&6
7061 fi
7062 done
7063
7064       
7065   # If we're not using GNU ld, then there's no point in even trying these
7066   # tests.  Check for that first.  We should have already tested for gld
7067   # by now (in libtool), but require it now just to be safe...
7068   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7069   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7070   
7071
7072   # The name set by libtool depends on the version of libtool.  Shame on us
7073   # for depending on an impl detail, but c'est la vie.  Older versions used
7074   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7075   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7076   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7077   # set (hence we're using an older libtool), then set it.
7078   if test x${with_gnu_ld+set} != xset; then
7079     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7080       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7081       with_gnu_ld=no
7082     else
7083       with_gnu_ld=$ac_cv_prog_gnu_ld
7084     fi
7085   fi
7086
7087   # Start by getting the version number.  I think the libtool test already
7088   # does some of this, but throws away the result.
7089   
7090   ldver=`$LD --version 2>/dev/null | head -1 | \
7091          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7092   
7093   glibcpp_gnu_ld_version=`echo $ldver | \
7094          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7095
7096   # Set --gc-sections.
7097   if test "$with_gnu_ld" = "notbroken"; then
7098     # GNU ld it is!  Joy and bunny rabbits!
7099
7100     # All these tests are for C++; save the language and the compiler flags.
7101     # Need to do this so that g++ won't try to link in libstdc++
7102     ac_test_CFLAGS="${CFLAGS+set}"
7103     ac_save_CFLAGS="$CFLAGS"
7104     CFLAGS='-x c++  -Wl,--gc-sections'
7105
7106     # Check for -Wl,--gc-sections
7107     # XXX This test is broken at the moment, as symbols required for
7108     # linking are now in libsupc++ (not built yet.....). In addition, 
7109     # this test has cored on solaris in the past. In addition,
7110     # --gc-sections doesn't really work at the moment (keeps on discarding
7111     # used sections, first .eh_frame and now some of the glibc sections for
7112     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7113     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7114 echo "configure:7115: checking for ld that supports -Wl,--gc-sections" >&5
7115     if test "$cross_compiling" = yes; then
7116   ac_sectionLDflags=yes
7117 else
7118   cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121
7122      int main(void) 
7123      {
7124        try { throw 1; }
7125        catch (...) { };
7126        return 0;
7127      }
7128     
7129 EOF
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7131 then
7132   ac_sectionLDflags=yes
7133 else
7134   echo "configure: failed program was:" >&5
7135   cat conftest.$ac_ext >&5
7136   rm -fr conftest*
7137   ac_sectionLDflags=no
7138 fi
7139 rm -fr conftest*
7140 fi
7141
7142     if test "$ac_test_CFLAGS" = set; then
7143       CFLAGS="$ac_save_CFLAGS"
7144     else
7145       # this is the suspicious part
7146       CFLAGS=''
7147     fi
7148     if test "$ac_sectionLDflags" = "yes"; then
7149       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7150     fi
7151     echo "$ac_t""$ac_sectionLDflags" 1>&6
7152   fi
7153
7154   # Set linker optimization flags.
7155   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7156     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7157   fi
7158
7159   
7160   
7161
7162       
7163     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7164 echo "configure:7165: checking for main in -lm" >&5
7165 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7167   echo $ac_n "(cached) $ac_c" 1>&6
7168 else
7169   ac_save_LIBS="$LIBS"
7170 LIBS="-lm  $LIBS"
7171 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174
7175 int main() {
7176 main()
7177 ; return 0; }
7178 EOF
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180   rm -rf conftest*
7181   eval "ac_cv_lib_$ac_lib_var=yes"
7182 else
7183   echo "configure: failed program was:" >&5
7184   cat conftest.$ac_ext >&5
7185   rm -rf conftest*
7186   eval "ac_cv_lib_$ac_lib_var=no"
7187 fi
7188 rm -f conftest*
7189 LIBS="$ac_save_LIBS"
7190
7191 fi
7192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7193   echo "$ac_t""yes" 1>&6
7194     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7195     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7196   cat >> confdefs.h <<EOF
7197 #define $ac_tr_lib 1
7198 EOF
7199
7200   LIBS="-lm $LIBS"
7201
7202 else
7203   echo "$ac_t""no" 1>&6
7204 fi
7205
7206   for ac_func in nan copysignf
7207 do
7208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_func" >&5
7210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7211   echo $ac_n "(cached) $ac_c" 1>&6
7212 else
7213   cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* System header to define __stub macros and hopefully few prototypes,
7217     which can conflict with char $ac_func(); below.  */
7218 #include <assert.h>
7219 /* Override any gcc2 internal prototype to avoid an error.  */
7220 /* We use char because int might match the return type of a gcc2
7221     builtin and then its argument prototype would still apply.  */
7222 char $ac_func();
7223
7224 int main() {
7225
7226 /* The GNU C library defines this for functions which it implements
7227     to always fail with ENOSYS.  Some functions are actually named
7228     something starting with __ and the normal name is an alias.  */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 choke me
7231 #else
7232 $ac_func();
7233 #endif
7234
7235 ; return 0; }
7236 EOF
7237 if { (eval echo configure:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7238   rm -rf conftest*
7239   eval "ac_cv_func_$ac_func=yes"
7240 else
7241   echo "configure: failed program was:" >&5
7242   cat conftest.$ac_ext >&5
7243   rm -rf conftest*
7244   eval "ac_cv_func_$ac_func=no"
7245 fi
7246 rm -f conftest*
7247 fi
7248
7249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7250   echo "$ac_t""yes" 1>&6
7251     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7252   cat >> confdefs.h <<EOF
7253 #define $ac_tr_func 1
7254 EOF
7255  
7256 else
7257   echo "$ac_t""no" 1>&6
7258 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7259 fi
7260 done
7261
7262
7263     for ac_func in __signbit
7264 do
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_func" >&5
7267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7268   echo $ac_n "(cached) $ac_c" 1>&6
7269 else
7270   cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* System header to define __stub macros and hopefully few prototypes,
7274     which can conflict with char $ac_func(); below.  */
7275 #include <assert.h>
7276 /* Override any gcc2 internal prototype to avoid an error.  */
7277 /* We use char because int might match the return type of a gcc2
7278     builtin and then its argument prototype would still apply.  */
7279 char $ac_func();
7280
7281 int main() {
7282
7283 /* The GNU C library defines this for functions which it implements
7284     to always fail with ENOSYS.  Some functions are actually named
7285     something starting with __ and the normal name is an alias.  */
7286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 choke me
7288 #else
7289 $ac_func();
7290 #endif
7291
7292 ; return 0; }
7293 EOF
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7295   rm -rf conftest*
7296   eval "ac_cv_func_$ac_func=yes"
7297 else
7298   echo "configure: failed program was:" >&5
7299   cat conftest.$ac_ext >&5
7300   rm -rf conftest*
7301   eval "ac_cv_func_$ac_func=no"
7302 fi
7303 rm -f conftest*
7304 fi
7305
7306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7307   echo "$ac_t""yes" 1>&6
7308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7309   cat >> confdefs.h <<EOF
7310 #define $ac_tr_func 1
7311 EOF
7312  
7313 else
7314   echo "$ac_t""no" 1>&6
7315 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7316 fi
7317 done
7318
7319   for ac_func in __signbitf
7320 do
7321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7322 echo "configure:7323: checking for $ac_func" >&5
7323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7324   echo $ac_n "(cached) $ac_c" 1>&6
7325 else
7326   cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* System header to define __stub macros and hopefully few prototypes,
7330     which can conflict with char $ac_func(); below.  */
7331 #include <assert.h>
7332 /* Override any gcc2 internal prototype to avoid an error.  */
7333 /* We use char because int might match the return type of a gcc2
7334     builtin and then its argument prototype would still apply.  */
7335 char $ac_func();
7336
7337 int main() {
7338
7339 /* The GNU C library defines this for functions which it implements
7340     to always fail with ENOSYS.  Some functions are actually named
7341     something starting with __ and the normal name is an alias.  */
7342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 choke me
7344 #else
7345 $ac_func();
7346 #endif
7347
7348 ; return 0; }
7349 EOF
7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351   rm -rf conftest*
7352   eval "ac_cv_func_$ac_func=yes"
7353 else
7354   echo "configure: failed program was:" >&5
7355   cat conftest.$ac_ext >&5
7356   rm -rf conftest*
7357   eval "ac_cv_func_$ac_func=no"
7358 fi
7359 rm -f conftest*
7360 fi
7361
7362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7363   echo "$ac_t""yes" 1>&6
7364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7365   cat >> confdefs.h <<EOF
7366 #define $ac_tr_func 1
7367 EOF
7368  
7369 else
7370   echo "$ac_t""no" 1>&6
7371 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7372 fi
7373 done
7374
7375
7376           if test x$ac_cv_func_copysignl = x"yes"; then
7377     for ac_func in __signbitl
7378 do
7379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_func" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7382   echo $ac_n "(cached) $ac_c" 1>&6
7383 else
7384   cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* System header to define __stub macros and hopefully few prototypes,
7388     which can conflict with char $ac_func(); below.  */
7389 #include <assert.h>
7390 /* Override any gcc2 internal prototype to avoid an error.  */
7391 /* We use char because int might match the return type of a gcc2
7392     builtin and then its argument prototype would still apply.  */
7393 char $ac_func();
7394
7395 int main() {
7396
7397 /* The GNU C library defines this for functions which it implements
7398     to always fail with ENOSYS.  Some functions are actually named
7399     something starting with __ and the normal name is an alias.  */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7401 choke me
7402 #else
7403 $ac_func();
7404 #endif
7405
7406 ; return 0; }
7407 EOF
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409   rm -rf conftest*
7410   eval "ac_cv_func_$ac_func=yes"
7411 else
7412   echo "configure: failed program was:" >&5
7413   cat conftest.$ac_ext >&5
7414   rm -rf conftest*
7415   eval "ac_cv_func_$ac_func=no"
7416 fi
7417 rm -f conftest*
7418 fi
7419
7420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7421   echo "$ac_t""yes" 1>&6
7422     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7423   cat >> confdefs.h <<EOF
7424 #define $ac_tr_func 1
7425 EOF
7426  
7427 else
7428   echo "$ac_t""no" 1>&6
7429 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7430 fi
7431 done
7432
7433   fi
7434
7435   
7436
7437       
7438
7439       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7440 echo "configure:7441: checking for mbstate_t" >&5
7441   cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 #include <wchar.h>
7445 int main() {
7446 mbstate_t teststate;
7447 ; return 0; }
7448 EOF
7449 if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450   rm -rf conftest*
7451   have_mbstate_t=yes
7452 else
7453   echo "configure: failed program was:" >&5
7454   cat conftest.$ac_ext >&5
7455   rm -rf conftest*
7456   have_mbstate_t=no
7457 fi
7458 rm -f conftest*
7459   echo "$ac_t""$have_mbstate_t" 1>&6
7460   if test x"$have_mbstate_t" = xyes; then
7461     cat >> confdefs.h <<\EOF
7462 #define HAVE_MBSTATE_T 1
7463 EOF
7464
7465   fi
7466
7467     for ac_hdr in wchar.h
7468 do
7469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7471 echo "configure:7472: checking for $ac_hdr" >&5
7472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7473   echo $ac_n "(cached) $ac_c" 1>&6
7474 else
7475   cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 #include <$ac_hdr>
7479 EOF
7480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7481 { (eval echo configure:7482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7483 if test -z "$ac_err"; then
7484   rm -rf conftest*
7485   eval "ac_cv_header_$ac_safe=yes"
7486 else
7487   echo "$ac_err" >&5
7488   echo "configure: failed program was:" >&5
7489   cat conftest.$ac_ext >&5
7490   rm -rf conftest*
7491   eval "ac_cv_header_$ac_safe=no"
7492 fi
7493 rm -f conftest*
7494 fi
7495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7496   echo "$ac_t""yes" 1>&6
7497     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7498   cat >> confdefs.h <<EOF
7499 #define $ac_tr_hdr 1
7500 EOF
7501  ac_has_wchar_h=yes
7502 else
7503   echo "$ac_t""no" 1>&6
7504 ac_has_wchar_h=no
7505 fi
7506 done
7507
7508   for ac_hdr in wctype.h
7509 do
7510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7512 echo "configure:7513: checking for $ac_hdr" >&5
7513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7514   echo $ac_n "(cached) $ac_c" 1>&6
7515 else
7516   cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 #include <$ac_hdr>
7520 EOF
7521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7522 { (eval echo configure:7523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7524 if test -z "$ac_err"; then
7525   rm -rf conftest*
7526   eval "ac_cv_header_$ac_safe=yes"
7527 else
7528   echo "$ac_err" >&5
7529   echo "configure: failed program was:" >&5
7530   cat conftest.$ac_ext >&5
7531   rm -rf conftest*
7532   eval "ac_cv_header_$ac_safe=no"
7533 fi
7534 rm -f conftest*
7535 fi
7536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7537   echo "$ac_t""yes" 1>&6
7538     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7539   cat >> confdefs.h <<EOF
7540 #define $ac_tr_hdr 1
7541 EOF
7542  ac_has_wctype_h=yes
7543 else
7544   echo "$ac_t""no" 1>&6
7545 ac_has_wctype_h=no
7546 fi
7547 done
7548
7549   
7550     if test x"$ac_has_wchar_h" = xyes &&
7551      test x"$ac_has_wctype_h" = xyes &&
7552      test x"$enable_c_mbchar" != xno; then
7553       
7554             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7555 echo "configure:7556: checking for WCHAR_MIN and WCHAR_MAX" >&5
7556     cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 #include <wchar.h>
7560 int main() {
7561 int i = WCHAR_MIN; int j = WCHAR_MAX;
7562 ; return 0; }
7563 EOF
7564 if { (eval echo configure:7565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7565   rm -rf conftest*
7566   has_wchar_minmax=yes
7567 else
7568   echo "configure: failed program was:" >&5
7569   cat conftest.$ac_ext >&5
7570   rm -rf conftest*
7571   has_wchar_minmax=no
7572 fi
7573 rm -f conftest*
7574     echo "$ac_t""$has_wchar_minmax" 1>&6
7575     
7576             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7577 echo "configure:7578: checking for WEOF" >&5
7578     cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7581
7582       #include <wchar.h>
7583       #include <stddef.h>
7584 int main() {
7585 wint_t i = WEOF;
7586 ; return 0; }
7587 EOF
7588 if { (eval echo configure:7589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7589   rm -rf conftest*
7590   has_weof=yes
7591 else
7592   echo "configure: failed program was:" >&5
7593   cat conftest.$ac_ext >&5
7594   rm -rf conftest*
7595   has_weof=no
7596 fi
7597 rm -f conftest*
7598     echo "$ac_t""$has_weof" 1>&6
7599   
7600         ac_wfuncs=yes
7601     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7602 do
7603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_func" >&5
7605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7606   echo $ac_n "(cached) $ac_c" 1>&6
7607 else
7608   cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* System header to define __stub macros and hopefully few prototypes,
7612     which can conflict with char $ac_func(); below.  */
7613 #include <assert.h>
7614 /* Override any gcc2 internal prototype to avoid an error.  */
7615 /* We use char because int might match the return type of a gcc2
7616     builtin and then its argument prototype would still apply.  */
7617 char $ac_func();
7618
7619 int main() {
7620
7621 /* The GNU C library defines this for functions which it implements
7622     to always fail with ENOSYS.  Some functions are actually named
7623     something starting with __ and the normal name is an alias.  */
7624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7625 choke me
7626 #else
7627 $ac_func();
7628 #endif
7629
7630 ; return 0; }
7631 EOF
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633   rm -rf conftest*
7634   eval "ac_cv_func_$ac_func=yes"
7635 else
7636   echo "configure: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   rm -rf conftest*
7639   eval "ac_cv_func_$ac_func=no"
7640 fi
7641 rm -f conftest*
7642 fi
7643
7644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7645   echo "$ac_t""yes" 1>&6
7646     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7647   cat >> confdefs.h <<EOF
7648 #define $ac_tr_func 1
7649 EOF
7650  
7651 else
7652   echo "$ac_t""no" 1>&6
7653 \
7654     ac_wfuncs=no
7655 fi
7656 done
7657
7658   
7659         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7660     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7661     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7662     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7663     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7664     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7665 do
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669   echo $ac_n "(cached) $ac_c" 1>&6
7670 else
7671   cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675     which can conflict with char $ac_func(); below.  */
7676 #include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error.  */
7678 /* We use char because int might match the return type of a gcc2
7679     builtin and then its argument prototype would still apply.  */
7680 char $ac_func();
7681
7682 int main() {
7683
7684 /* The GNU C library defines this for functions which it implements
7685     to always fail with ENOSYS.  Some functions are actually named
7686     something starting with __ and the normal name is an alias.  */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 choke me
7689 #else
7690 $ac_func();
7691 #endif
7692
7693 ; return 0; }
7694 EOF
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696   rm -rf conftest*
7697   eval "ac_cv_func_$ac_func=yes"
7698 else
7699   echo "configure: failed program was:" >&5
7700   cat conftest.$ac_ext >&5
7701   rm -rf conftest*
7702   eval "ac_cv_func_$ac_func=no"
7703 fi
7704 rm -f conftest*
7705 fi
7706
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708   echo "$ac_t""yes" 1>&6
7709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710   cat >> confdefs.h <<EOF
7711 #define $ac_tr_func 1
7712 EOF
7713  
7714 else
7715   echo "$ac_t""no" 1>&6
7716 \
7717     ac_wfuncs=no
7718 fi
7719 done
7720
7721
7722     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7723 echo "configure:7724: checking for ISO C99 wchar_t support" >&5
7724     if test x"$has_weof" = xyes &&
7725        test x"$has_wchar_minmax" = xyes &&
7726        test x"$ac_wfuncs" = xyes; then
7727       ac_isoC99_wchar_t=yes
7728     else
7729       ac_isoC99_wchar_t=no
7730     fi
7731     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7732   
7733             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7734 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7735 echo "configure:7736: checking for iconv.h" >&5
7736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7737   echo $ac_n "(cached) $ac_c" 1>&6
7738 else
7739   cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <iconv.h>
7743 EOF
7744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7745 { (eval echo configure:7746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7747 if test -z "$ac_err"; then
7748   rm -rf conftest*
7749   eval "ac_cv_header_$ac_safe=yes"
7750 else
7751   echo "$ac_err" >&5
7752   echo "configure: failed program was:" >&5
7753   cat conftest.$ac_ext >&5
7754   rm -rf conftest*
7755   eval "ac_cv_header_$ac_safe=no"
7756 fi
7757 rm -f conftest*
7758 fi
7759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7760   echo "$ac_t""yes" 1>&6
7761   ac_has_iconv_h=yes
7762 else
7763   echo "$ac_t""no" 1>&6
7764 ac_has_iconv_h=no
7765 fi
7766
7767     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7768 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7769 echo "configure:7770: checking for langinfo.h" >&5
7770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7771   echo $ac_n "(cached) $ac_c" 1>&6
7772 else
7773   cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 #include <langinfo.h>
7777 EOF
7778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7779 { (eval echo configure:7780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7781 if test -z "$ac_err"; then
7782   rm -rf conftest*
7783   eval "ac_cv_header_$ac_safe=yes"
7784 else
7785   echo "$ac_err" >&5
7786   echo "configure: failed program was:" >&5
7787   cat conftest.$ac_ext >&5
7788   rm -rf conftest*
7789   eval "ac_cv_header_$ac_safe=no"
7790 fi
7791 rm -f conftest*
7792 fi
7793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7794   echo "$ac_t""yes" 1>&6
7795   ac_has_langinfo_h=yes
7796 else
7797   echo "$ac_t""no" 1>&6
7798 ac_has_langinfo_h=no
7799 fi
7800
7801
7802         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7803 echo "configure:7804: checking for iconv in -liconv" >&5
7804 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7806   echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808   ac_save_LIBS="$LIBS"
7809 LIBS="-liconv  $LIBS"
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* Override any gcc2 internal prototype to avoid an error.  */
7814 /* We use char because int might match the return type of a gcc2
7815     builtin and then its argument prototype would still apply.  */
7816 char iconv();
7817
7818 int main() {
7819 iconv()
7820 ; return 0; }
7821 EOF
7822 if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7823   rm -rf conftest*
7824   eval "ac_cv_lib_$ac_lib_var=yes"
7825 else
7826   echo "configure: failed program was:" >&5
7827   cat conftest.$ac_ext >&5
7828   rm -rf conftest*
7829   eval "ac_cv_lib_$ac_lib_var=no"
7830 fi
7831 rm -f conftest*
7832 LIBS="$ac_save_LIBS"
7833
7834 fi
7835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7836   echo "$ac_t""yes" 1>&6
7837   libiconv="-liconv"
7838 else
7839   echo "$ac_t""no" 1>&6
7840 fi
7841
7842     ac_save_LIBS="$LIBS"
7843     LIBS="$LIBS $libiconv"
7844
7845     for ac_func in iconv_open iconv_close iconv nl_langinfo
7846 do
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850   echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852   cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856     which can conflict with char $ac_func(); below.  */
7857 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error.  */
7859 /* We use char because int might match the return type of a gcc2
7860     builtin and then its argument prototype would still apply.  */
7861 char $ac_func();
7862
7863 int main() {
7864
7865 /* The GNU C library defines this for functions which it implements
7866     to always fail with ENOSYS.  Some functions are actually named
7867     something starting with __ and the normal name is an alias.  */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 choke me
7870 #else
7871 $ac_func();
7872 #endif
7873
7874 ; return 0; }
7875 EOF
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877   rm -rf conftest*
7878   eval "ac_cv_func_$ac_func=yes"
7879 else
7880   echo "configure: failed program was:" >&5
7881   cat conftest.$ac_ext >&5
7882   rm -rf conftest*
7883   eval "ac_cv_func_$ac_func=no"
7884 fi
7885 rm -f conftest*
7886 fi
7887
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889   echo "$ac_t""yes" 1>&6
7890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891   cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7893 EOF
7894  \
7895     ac_XPG2funcs=yes
7896 else
7897   echo "$ac_t""no" 1>&6
7898 ac_XPG2funcs=no
7899 fi
7900 done
7901
7902   
7903     LIBS="$ac_save_LIBS"
7904
7905     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7906 echo "configure:7907: checking for XPG2 wchar_t support" >&5
7907     if test x"$ac_has_iconv_h" = xyes &&
7908        test x"$ac_has_langinfo_h" = xyes &&
7909        test x"$ac_XPG2funcs" = xyes; then
7910       ac_XPG2_wchar_t=yes
7911     else
7912       ac_XPG2_wchar_t=no
7913     fi
7914     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7915   
7916             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7917 echo "configure:7918: checking for enabled wchar_t specializations" >&5
7918     if test x"$ac_isoC99_wchar_t" = xyes &&
7919        test x"$ac_XPG2_wchar_t" = xyes; then
7920       cat >> confdefs.h <<\EOF
7921 #define _GLIBCPP_USE_WCHAR_T 1
7922 EOF
7923
7924       echo "$ac_t"""yes"" 1>&6
7925     else
7926       echo "$ac_t"""no"" 1>&6
7927     fi
7928   else
7929         echo "configure: warning: wchar_t support disabled." 1>&2
7930   fi
7931
7932       os_include_dir="os/mingw32"
7933       ;;
7934     *-windiss*)
7935       os_include_dir="os/windiss"
7936       ;;
7937     *-qnx6.[12]*)
7938       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7939        
7940       
7941   # If we're not using GNU ld, then there's no point in even trying these
7942   # tests.  Check for that first.  We should have already tested for gld
7943   # by now (in libtool), but require it now just to be safe...
7944   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7945   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7946   
7947
7948   # The name set by libtool depends on the version of libtool.  Shame on us
7949   # for depending on an impl detail, but c'est la vie.  Older versions used
7950   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7951   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7952   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7953   # set (hence we're using an older libtool), then set it.
7954   if test x${with_gnu_ld+set} != xset; then
7955     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7956       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7957       with_gnu_ld=no
7958     else
7959       with_gnu_ld=$ac_cv_prog_gnu_ld
7960     fi
7961   fi
7962
7963   # Start by getting the version number.  I think the libtool test already
7964   # does some of this, but throws away the result.
7965   
7966   ldver=`$LD --version 2>/dev/null | head -1 | \
7967          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7968   
7969   glibcpp_gnu_ld_version=`echo $ldver | \
7970          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7971
7972   # Set --gc-sections.
7973   if test "$with_gnu_ld" = "notbroken"; then
7974     # GNU ld it is!  Joy and bunny rabbits!
7975
7976     # All these tests are for C++; save the language and the compiler flags.
7977     # Need to do this so that g++ won't try to link in libstdc++
7978     ac_test_CFLAGS="${CFLAGS+set}"
7979     ac_save_CFLAGS="$CFLAGS"
7980     CFLAGS='-x c++  -Wl,--gc-sections'
7981
7982     # Check for -Wl,--gc-sections
7983     # XXX This test is broken at the moment, as symbols required for
7984     # linking are now in libsupc++ (not built yet.....). In addition, 
7985     # this test has cored on solaris in the past. In addition,
7986     # --gc-sections doesn't really work at the moment (keeps on discarding
7987     # used sections, first .eh_frame and now some of the glibc sections for
7988     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7989     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7990 echo "configure:7991: checking for ld that supports -Wl,--gc-sections" >&5
7991     if test "$cross_compiling" = yes; then
7992   ac_sectionLDflags=yes
7993 else
7994   cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997
7998      int main(void) 
7999      {
8000        try { throw 1; }
8001        catch (...) { };
8002        return 0;
8003      }
8004     
8005 EOF
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8007 then
8008   ac_sectionLDflags=yes
8009 else
8010   echo "configure: failed program was:" >&5
8011   cat conftest.$ac_ext >&5
8012   rm -fr conftest*
8013   ac_sectionLDflags=no
8014 fi
8015 rm -fr conftest*
8016 fi
8017
8018     if test "$ac_test_CFLAGS" = set; then
8019       CFLAGS="$ac_save_CFLAGS"
8020     else
8021       # this is the suspicious part
8022       CFLAGS=''
8023     fi
8024     if test "$ac_sectionLDflags" = "yes"; then
8025       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8026     fi
8027     echo "$ac_t""$ac_sectionLDflags" 1>&6
8028   fi
8029
8030   # Set linker optimization flags.
8031   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8032     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8033   fi
8034
8035   
8036   
8037
8038       
8039     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8040 echo "configure:8041: checking for main in -lm" >&5
8041 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8043   echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045   ac_save_LIBS="$LIBS"
8046 LIBS="-lm  $LIBS"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050
8051 int main() {
8052 main()
8053 ; return 0; }
8054 EOF
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056   rm -rf conftest*
8057   eval "ac_cv_lib_$ac_lib_var=yes"
8058 else
8059   echo "configure: failed program was:" >&5
8060   cat conftest.$ac_ext >&5
8061   rm -rf conftest*
8062   eval "ac_cv_lib_$ac_lib_var=no"
8063 fi
8064 rm -f conftest*
8065 LIBS="$ac_save_LIBS"
8066
8067 fi
8068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8069   echo "$ac_t""yes" 1>&6
8070     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8071     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8072   cat >> confdefs.h <<EOF
8073 #define $ac_tr_lib 1
8074 EOF
8075
8076   LIBS="-lm $LIBS"
8077
8078 else
8079   echo "$ac_t""no" 1>&6
8080 fi
8081
8082   for ac_func in nan copysignf
8083 do
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087   echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089   cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093     which can conflict with char $ac_func(); below.  */
8094 #include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 /* We use char because int might match the return type of a gcc2
8097     builtin and then its argument prototype would still apply.  */
8098 char $ac_func();
8099
8100 int main() {
8101
8102 /* The GNU C library defines this for functions which it implements
8103     to always fail with ENOSYS.  Some functions are actually named
8104     something starting with __ and the normal name is an alias.  */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 $ac_func();
8109 #endif
8110
8111 ; return 0; }
8112 EOF
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114   rm -rf conftest*
8115   eval "ac_cv_func_$ac_func=yes"
8116 else
8117   echo "configure: failed program was:" >&5
8118   cat conftest.$ac_ext >&5
8119   rm -rf conftest*
8120   eval "ac_cv_func_$ac_func=no"
8121 fi
8122 rm -f conftest*
8123 fi
8124
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126   echo "$ac_t""yes" 1>&6
8127     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128   cat >> confdefs.h <<EOF
8129 #define $ac_tr_func 1
8130 EOF
8131  
8132 else
8133   echo "$ac_t""no" 1>&6
8134 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8135 fi
8136 done
8137
8138
8139     for ac_func in __signbit
8140 do
8141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8142 echo "configure:8143: checking for $ac_func" >&5
8143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8144   echo $ac_n "(cached) $ac_c" 1>&6
8145 else
8146   cat > conftest.$ac_ext <<EOF
8147 #line 8148 "configure"
8148 #include "confdefs.h"
8149 /* System header to define __stub macros and hopefully few prototypes,
8150     which can conflict with char $ac_func(); below.  */
8151 #include <assert.h>
8152 /* Override any gcc2 internal prototype to avoid an error.  */
8153 /* We use char because int might match the return type of a gcc2
8154     builtin and then its argument prototype would still apply.  */
8155 char $ac_func();
8156
8157 int main() {
8158
8159 /* The GNU C library defines this for functions which it implements
8160     to always fail with ENOSYS.  Some functions are actually named
8161     something starting with __ and the normal name is an alias.  */
8162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 choke me
8164 #else
8165 $ac_func();
8166 #endif
8167
8168 ; return 0; }
8169 EOF
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171   rm -rf conftest*
8172   eval "ac_cv_func_$ac_func=yes"
8173 else
8174   echo "configure: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   rm -rf conftest*
8177   eval "ac_cv_func_$ac_func=no"
8178 fi
8179 rm -f conftest*
8180 fi
8181
8182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8183   echo "$ac_t""yes" 1>&6
8184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8185   cat >> confdefs.h <<EOF
8186 #define $ac_tr_func 1
8187 EOF
8188  
8189 else
8190   echo "$ac_t""no" 1>&6
8191 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8192 fi
8193 done
8194
8195   for ac_func in __signbitf
8196 do
8197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8198 echo "configure:8199: checking for $ac_func" >&5
8199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8200   echo $ac_n "(cached) $ac_c" 1>&6
8201 else
8202   cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* System header to define __stub macros and hopefully few prototypes,
8206     which can conflict with char $ac_func(); below.  */
8207 #include <assert.h>
8208 /* Override any gcc2 internal prototype to avoid an error.  */
8209 /* We use char because int might match the return type of a gcc2
8210     builtin and then its argument prototype would still apply.  */
8211 char $ac_func();
8212
8213 int main() {
8214
8215 /* The GNU C library defines this for functions which it implements
8216     to always fail with ENOSYS.  Some functions are actually named
8217     something starting with __ and the normal name is an alias.  */
8218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219 choke me
8220 #else
8221 $ac_func();
8222 #endif
8223
8224 ; return 0; }
8225 EOF
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8227   rm -rf conftest*
8228   eval "ac_cv_func_$ac_func=yes"
8229 else
8230   echo "configure: failed program was:" >&5
8231   cat conftest.$ac_ext >&5
8232   rm -rf conftest*
8233   eval "ac_cv_func_$ac_func=no"
8234 fi
8235 rm -f conftest*
8236 fi
8237
8238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8239   echo "$ac_t""yes" 1>&6
8240     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8241   cat >> confdefs.h <<EOF
8242 #define $ac_tr_func 1
8243 EOF
8244  
8245 else
8246   echo "$ac_t""no" 1>&6
8247 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8248 fi
8249 done
8250
8251
8252           if test x$ac_cv_func_copysignl = x"yes"; then
8253     for ac_func in __signbitl
8254 do
8255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8256 echo "configure:8257: checking for $ac_func" >&5
8257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8258   echo $ac_n "(cached) $ac_c" 1>&6
8259 else
8260   cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 /* System header to define __stub macros and hopefully few prototypes,
8264     which can conflict with char $ac_func(); below.  */
8265 #include <assert.h>
8266 /* Override any gcc2 internal prototype to avoid an error.  */
8267 /* We use char because int might match the return type of a gcc2
8268     builtin and then its argument prototype would still apply.  */
8269 char $ac_func();
8270
8271 int main() {
8272
8273 /* The GNU C library defines this for functions which it implements
8274     to always fail with ENOSYS.  Some functions are actually named
8275     something starting with __ and the normal name is an alias.  */
8276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8277 choke me
8278 #else
8279 $ac_func();
8280 #endif
8281
8282 ; return 0; }
8283 EOF
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8285   rm -rf conftest*
8286   eval "ac_cv_func_$ac_func=yes"
8287 else
8288   echo "configure: failed program was:" >&5
8289   cat conftest.$ac_ext >&5
8290   rm -rf conftest*
8291   eval "ac_cv_func_$ac_func=no"
8292 fi
8293 rm -f conftest*
8294 fi
8295
8296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8297   echo "$ac_t""yes" 1>&6
8298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8299   cat >> confdefs.h <<EOF
8300 #define $ac_tr_func 1
8301 EOF
8302  
8303 else
8304   echo "$ac_t""no" 1>&6
8305 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8306 fi
8307 done
8308
8309   fi
8310
8311   
8312
8313       
8314
8315       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8316 echo "configure:8317: checking for mbstate_t" >&5
8317   cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 #include <wchar.h>
8321 int main() {
8322 mbstate_t teststate;
8323 ; return 0; }
8324 EOF
8325 if { (eval echo configure:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8326   rm -rf conftest*
8327   have_mbstate_t=yes
8328 else
8329   echo "configure: failed program was:" >&5
8330   cat conftest.$ac_ext >&5
8331   rm -rf conftest*
8332   have_mbstate_t=no
8333 fi
8334 rm -f conftest*
8335   echo "$ac_t""$have_mbstate_t" 1>&6
8336   if test x"$have_mbstate_t" = xyes; then
8337     cat >> confdefs.h <<\EOF
8338 #define HAVE_MBSTATE_T 1
8339 EOF
8340
8341   fi
8342
8343     for ac_hdr in wchar.h
8344 do
8345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8347 echo "configure:8348: checking for $ac_hdr" >&5
8348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8349   echo $ac_n "(cached) $ac_c" 1>&6
8350 else
8351   cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 #include <$ac_hdr>
8355 EOF
8356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8357 { (eval echo configure:8358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8359 if test -z "$ac_err"; then
8360   rm -rf conftest*
8361   eval "ac_cv_header_$ac_safe=yes"
8362 else
8363   echo "$ac_err" >&5
8364   echo "configure: failed program was:" >&5
8365   cat conftest.$ac_ext >&5
8366   rm -rf conftest*
8367   eval "ac_cv_header_$ac_safe=no"
8368 fi
8369 rm -f conftest*
8370 fi
8371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8372   echo "$ac_t""yes" 1>&6
8373     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8374   cat >> confdefs.h <<EOF
8375 #define $ac_tr_hdr 1
8376 EOF
8377  ac_has_wchar_h=yes
8378 else
8379   echo "$ac_t""no" 1>&6
8380 ac_has_wchar_h=no
8381 fi
8382 done
8383
8384   for ac_hdr in wctype.h
8385 do
8386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_hdr" >&5
8389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8390   echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392   cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 #include <$ac_hdr>
8396 EOF
8397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8398 { (eval echo configure:8399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8400 if test -z "$ac_err"; then
8401   rm -rf conftest*
8402   eval "ac_cv_header_$ac_safe=yes"
8403 else
8404   echo "$ac_err" >&5
8405   echo "configure: failed program was:" >&5
8406   cat conftest.$ac_ext >&5
8407   rm -rf conftest*
8408   eval "ac_cv_header_$ac_safe=no"
8409 fi
8410 rm -f conftest*
8411 fi
8412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8413   echo "$ac_t""yes" 1>&6
8414     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8415   cat >> confdefs.h <<EOF
8416 #define $ac_tr_hdr 1
8417 EOF
8418  ac_has_wctype_h=yes
8419 else
8420   echo "$ac_t""no" 1>&6
8421 ac_has_wctype_h=no
8422 fi
8423 done
8424
8425   
8426     if test x"$ac_has_wchar_h" = xyes &&
8427      test x"$ac_has_wctype_h" = xyes &&
8428      test x"$enable_c_mbchar" != xno; then
8429       
8430             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8431 echo "configure:8432: checking for WCHAR_MIN and WCHAR_MAX" >&5
8432     cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 #include <wchar.h>
8436 int main() {
8437 int i = WCHAR_MIN; int j = WCHAR_MAX;
8438 ; return 0; }
8439 EOF
8440 if { (eval echo configure:8441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441   rm -rf conftest*
8442   has_wchar_minmax=yes
8443 else
8444   echo "configure: failed program was:" >&5
8445   cat conftest.$ac_ext >&5
8446   rm -rf conftest*
8447   has_wchar_minmax=no
8448 fi
8449 rm -f conftest*
8450     echo "$ac_t""$has_wchar_minmax" 1>&6
8451     
8452             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8453 echo "configure:8454: checking for WEOF" >&5
8454     cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457
8458       #include <wchar.h>
8459       #include <stddef.h>
8460 int main() {
8461 wint_t i = WEOF;
8462 ; return 0; }
8463 EOF
8464 if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8465   rm -rf conftest*
8466   has_weof=yes
8467 else
8468   echo "configure: failed program was:" >&5
8469   cat conftest.$ac_ext >&5
8470   rm -rf conftest*
8471   has_weof=no
8472 fi
8473 rm -f conftest*
8474     echo "$ac_t""$has_weof" 1>&6
8475   
8476         ac_wfuncs=yes
8477     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8478 do
8479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8480 echo "configure:8481: checking for $ac_func" >&5
8481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8482   echo $ac_n "(cached) $ac_c" 1>&6
8483 else
8484   cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* System header to define __stub macros and hopefully few prototypes,
8488     which can conflict with char $ac_func(); below.  */
8489 #include <assert.h>
8490 /* Override any gcc2 internal prototype to avoid an error.  */
8491 /* We use char because int might match the return type of a gcc2
8492     builtin and then its argument prototype would still apply.  */
8493 char $ac_func();
8494
8495 int main() {
8496
8497 /* The GNU C library defines this for functions which it implements
8498     to always fail with ENOSYS.  Some functions are actually named
8499     something starting with __ and the normal name is an alias.  */
8500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8501 choke me
8502 #else
8503 $ac_func();
8504 #endif
8505
8506 ; return 0; }
8507 EOF
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509   rm -rf conftest*
8510   eval "ac_cv_func_$ac_func=yes"
8511 else
8512   echo "configure: failed program was:" >&5
8513   cat conftest.$ac_ext >&5
8514   rm -rf conftest*
8515   eval "ac_cv_func_$ac_func=no"
8516 fi
8517 rm -f conftest*
8518 fi
8519
8520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8521   echo "$ac_t""yes" 1>&6
8522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8523   cat >> confdefs.h <<EOF
8524 #define $ac_tr_func 1
8525 EOF
8526  
8527 else
8528   echo "$ac_t""no" 1>&6
8529 \
8530     ac_wfuncs=no
8531 fi
8532 done
8533
8534   
8535         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8536     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8537     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8538     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8539     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8540     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8541 do
8542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8543 echo "configure:8544: checking for $ac_func" >&5
8544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8545   echo $ac_n "(cached) $ac_c" 1>&6
8546 else
8547   cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* System header to define __stub macros and hopefully few prototypes,
8551     which can conflict with char $ac_func(); below.  */
8552 #include <assert.h>
8553 /* Override any gcc2 internal prototype to avoid an error.  */
8554 /* We use char because int might match the return type of a gcc2
8555     builtin and then its argument prototype would still apply.  */
8556 char $ac_func();
8557
8558 int main() {
8559
8560 /* The GNU C library defines this for functions which it implements
8561     to always fail with ENOSYS.  Some functions are actually named
8562     something starting with __ and the normal name is an alias.  */
8563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8564 choke me
8565 #else
8566 $ac_func();
8567 #endif
8568
8569 ; return 0; }
8570 EOF
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8572   rm -rf conftest*
8573   eval "ac_cv_func_$ac_func=yes"
8574 else
8575   echo "configure: failed program was:" >&5
8576   cat conftest.$ac_ext >&5
8577   rm -rf conftest*
8578   eval "ac_cv_func_$ac_func=no"
8579 fi
8580 rm -f conftest*
8581 fi
8582
8583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8584   echo "$ac_t""yes" 1>&6
8585     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8586   cat >> confdefs.h <<EOF
8587 #define $ac_tr_func 1
8588 EOF
8589  
8590 else
8591   echo "$ac_t""no" 1>&6
8592 \
8593     ac_wfuncs=no
8594 fi
8595 done
8596
8597
8598     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8599 echo "configure:8600: checking for ISO C99 wchar_t support" >&5
8600     if test x"$has_weof" = xyes &&
8601        test x"$has_wchar_minmax" = xyes &&
8602        test x"$ac_wfuncs" = xyes; then
8603       ac_isoC99_wchar_t=yes
8604     else
8605       ac_isoC99_wchar_t=no
8606     fi
8607     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8608   
8609             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8610 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8611 echo "configure:8612: checking for iconv.h" >&5
8612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8613   echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8615   cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 #include <iconv.h>
8619 EOF
8620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8621 { (eval echo configure:8622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8623 if test -z "$ac_err"; then
8624   rm -rf conftest*
8625   eval "ac_cv_header_$ac_safe=yes"
8626 else
8627   echo "$ac_err" >&5
8628   echo "configure: failed program was:" >&5
8629   cat conftest.$ac_ext >&5
8630   rm -rf conftest*
8631   eval "ac_cv_header_$ac_safe=no"
8632 fi
8633 rm -f conftest*
8634 fi
8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8636   echo "$ac_t""yes" 1>&6
8637   ac_has_iconv_h=yes
8638 else
8639   echo "$ac_t""no" 1>&6
8640 ac_has_iconv_h=no
8641 fi
8642
8643     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8644 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8645 echo "configure:8646: checking for langinfo.h" >&5
8646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8647   echo $ac_n "(cached) $ac_c" 1>&6
8648 else
8649   cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <langinfo.h>
8653 EOF
8654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8655 { (eval echo configure:8656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8657 if test -z "$ac_err"; then
8658   rm -rf conftest*
8659   eval "ac_cv_header_$ac_safe=yes"
8660 else
8661   echo "$ac_err" >&5
8662   echo "configure: failed program was:" >&5
8663   cat conftest.$ac_ext >&5
8664   rm -rf conftest*
8665   eval "ac_cv_header_$ac_safe=no"
8666 fi
8667 rm -f conftest*
8668 fi
8669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8670   echo "$ac_t""yes" 1>&6
8671   ac_has_langinfo_h=yes
8672 else
8673   echo "$ac_t""no" 1>&6
8674 ac_has_langinfo_h=no
8675 fi
8676
8677
8678         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8679 echo "configure:8680: checking for iconv in -liconv" >&5
8680 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8682   echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684   ac_save_LIBS="$LIBS"
8685 LIBS="-liconv  $LIBS"
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 /* Override any gcc2 internal prototype to avoid an error.  */
8690 /* We use char because int might match the return type of a gcc2
8691     builtin and then its argument prototype would still apply.  */
8692 char iconv();
8693
8694 int main() {
8695 iconv()
8696 ; return 0; }
8697 EOF
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8699   rm -rf conftest*
8700   eval "ac_cv_lib_$ac_lib_var=yes"
8701 else
8702   echo "configure: failed program was:" >&5
8703   cat conftest.$ac_ext >&5
8704   rm -rf conftest*
8705   eval "ac_cv_lib_$ac_lib_var=no"
8706 fi
8707 rm -f conftest*
8708 LIBS="$ac_save_LIBS"
8709
8710 fi
8711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8712   echo "$ac_t""yes" 1>&6
8713   libiconv="-liconv"
8714 else
8715   echo "$ac_t""no" 1>&6
8716 fi
8717
8718     ac_save_LIBS="$LIBS"
8719     LIBS="$LIBS $libiconv"
8720
8721     for ac_func in iconv_open iconv_close iconv nl_langinfo
8722 do
8723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8724 echo "configure:8725: checking for $ac_func" >&5
8725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8726   echo $ac_n "(cached) $ac_c" 1>&6
8727 else
8728   cat > conftest.$ac_ext <<EOF
8729 #line 8730 "configure"
8730 #include "confdefs.h"
8731 /* System header to define __stub macros and hopefully few prototypes,
8732     which can conflict with char $ac_func(); below.  */
8733 #include <assert.h>
8734 /* Override any gcc2 internal prototype to avoid an error.  */
8735 /* We use char because int might match the return type of a gcc2
8736     builtin and then its argument prototype would still apply.  */
8737 char $ac_func();
8738
8739 int main() {
8740
8741 /* The GNU C library defines this for functions which it implements
8742     to always fail with ENOSYS.  Some functions are actually named
8743     something starting with __ and the normal name is an alias.  */
8744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8745 choke me
8746 #else
8747 $ac_func();
8748 #endif
8749
8750 ; return 0; }
8751 EOF
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753   rm -rf conftest*
8754   eval "ac_cv_func_$ac_func=yes"
8755 else
8756   echo "configure: failed program was:" >&5
8757   cat conftest.$ac_ext >&5
8758   rm -rf conftest*
8759   eval "ac_cv_func_$ac_func=no"
8760 fi
8761 rm -f conftest*
8762 fi
8763
8764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8765   echo "$ac_t""yes" 1>&6
8766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8767   cat >> confdefs.h <<EOF
8768 #define $ac_tr_func 1
8769 EOF
8770  \
8771     ac_XPG2funcs=yes
8772 else
8773   echo "$ac_t""no" 1>&6
8774 ac_XPG2funcs=no
8775 fi
8776 done
8777
8778   
8779     LIBS="$ac_save_LIBS"
8780
8781     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8782 echo "configure:8783: checking for XPG2 wchar_t support" >&5
8783     if test x"$ac_has_iconv_h" = xyes &&
8784        test x"$ac_has_langinfo_h" = xyes &&
8785        test x"$ac_XPG2funcs" = xyes; then
8786       ac_XPG2_wchar_t=yes
8787     else
8788       ac_XPG2_wchar_t=no
8789     fi
8790     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8791   
8792             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8793 echo "configure:8794: checking for enabled wchar_t specializations" >&5
8794     if test x"$ac_isoC99_wchar_t" = xyes &&
8795        test x"$ac_XPG2_wchar_t" = xyes; then
8796       cat >> confdefs.h <<\EOF
8797 #define _GLIBCPP_USE_WCHAR_T 1
8798 EOF
8799
8800       echo "$ac_t"""yes"" 1>&6
8801     else
8802       echo "$ac_t"""no"" 1>&6
8803     fi
8804   else
8805         echo "configure: warning: wchar_t support disabled." 1>&2
8806   fi
8807
8808       os_include_dir="os/qnx/qnx6.1"
8809       cat >> confdefs.h <<\EOF
8810 #define HAVE_COSF 1
8811 EOF
8812
8813       cat >> confdefs.h <<\EOF
8814 #define HAVE_COSL 1
8815 EOF
8816
8817       cat >> confdefs.h <<\EOF
8818 #define HAVE_COSHF 1
8819 EOF
8820
8821       cat >> confdefs.h <<\EOF
8822 #define HAVE_COSHL 1
8823 EOF
8824
8825       cat >> confdefs.h <<\EOF
8826 #define HAVE_LOGF 1
8827 EOF
8828
8829       cat >> confdefs.h <<\EOF
8830 #define HAVE_LOGL 1
8831 EOF
8832
8833       cat >> confdefs.h <<\EOF
8834 #define HAVE_LOG10F 1
8835 EOF
8836
8837       cat >> confdefs.h <<\EOF
8838 #define HAVE_LOG10L 1
8839 EOF
8840
8841       cat >> confdefs.h <<\EOF
8842 #define HAVE_SINF 1
8843 EOF
8844
8845       cat >> confdefs.h <<\EOF
8846 #define HAVE_SINL 1
8847 EOF
8848
8849       cat >> confdefs.h <<\EOF
8850 #define HAVE_SINHF 1
8851 EOF
8852
8853       cat >> confdefs.h <<\EOF
8854 #define HAVE_SINHL 1
8855 EOF
8856
8857       ;;
8858     *)
8859       os_include_dir="os/newlib"
8860       cat >> confdefs.h <<\EOF
8861 #define HAVE_HYPOT 1
8862 EOF
8863
8864       ;;
8865   esac
8866
8867   case "$target_alias" in
8868     *-mingw32*)
8869       ;;
8870     *-windiss*)
8871       cat >> confdefs.h <<\EOF
8872 #define HAVE_ACOSF 1
8873 EOF
8874
8875       cat >> confdefs.h <<\EOF
8876 #define HAVE_ASINF 1
8877 EOF
8878
8879       cat >> confdefs.h <<\EOF
8880 #define HAVE_ATAN2F 1
8881 EOF
8882
8883       cat >> confdefs.h <<\EOF
8884 #define HAVE_ATANF 1
8885 EOF
8886
8887       cat >> confdefs.h <<\EOF
8888 #define HAVE_CEILF 1
8889 EOF
8890
8891       cat >> confdefs.h <<\EOF
8892 #define HAVE_COPYSIGN 1
8893 EOF
8894
8895       cat >> confdefs.h <<\EOF
8896 #define HAVE_COPYSIGNF 1
8897 EOF
8898
8899       cat >> confdefs.h <<\EOF
8900 #define HAVE_COSF 1
8901 EOF
8902
8903       cat >> confdefs.h <<\EOF
8904 #define HAVE_COSHF 1
8905 EOF
8906
8907       cat >> confdefs.h <<\EOF
8908 #define HAVE_EXPF 1
8909 EOF
8910
8911       cat >> confdefs.h <<\EOF
8912 #define HAVE_FABSF 1
8913 EOF
8914
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_FLOORF 1
8917 EOF
8918
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_FMODF 1
8921 EOF
8922
8923       cat >> confdefs.h <<\EOF
8924 #define HAVE_FREXPF 1
8925 EOF
8926
8927       cat >> confdefs.h <<\EOF
8928 #define HAVE_LDEXPF 1
8929 EOF
8930
8931       cat >> confdefs.h <<\EOF
8932 #define HAVE_LOG10F 1
8933 EOF
8934
8935       cat >> confdefs.h <<\EOF
8936 #define HAVE_LOGF 1
8937 EOF
8938
8939       cat >> confdefs.h <<\EOF
8940 #define HAVE_MODFF 1
8941 EOF
8942
8943       cat >> confdefs.h <<\EOF
8944 #define HAVE_POWF 1
8945 EOF
8946
8947       cat >> confdefs.h <<\EOF
8948 #define HAVE_SINF 1
8949 EOF
8950
8951       cat >> confdefs.h <<\EOF
8952 #define HAVE_SINHF 1
8953 EOF
8954
8955       cat >> confdefs.h <<\EOF
8956 #define HAVE_SQRTF 1
8957 EOF
8958
8959       cat >> confdefs.h <<\EOF
8960 #define HAVE_TANF 1
8961 EOF
8962
8963       cat >> confdefs.h <<\EOF
8964 #define HAVE_TANHF 1
8965 EOF
8966
8967       ;;
8968     *)
8969       # GLIBCPP_CHECK_STDLIB_SUPPORT
8970       cat >> confdefs.h <<\EOF
8971 #define HAVE_STRTOF 1
8972 EOF
8973         
8974       cat >> confdefs.h <<\EOF
8975 #define HAVE_STRTOLD 1
8976 EOF
8977         
8978       # AC_FUNC_MMAP
8979       cat >> confdefs.h <<\EOF
8980 #define HAVE_MMAP 1
8981 EOF
8982
8983
8984       cat >> confdefs.h <<\EOF
8985 #define HAVE_ACOSF 1
8986 EOF
8987
8988       cat >> confdefs.h <<\EOF
8989 #define HAVE_ASINF 1
8990 EOF
8991
8992       cat >> confdefs.h <<\EOF
8993 #define HAVE_ATAN2F 1
8994 EOF
8995
8996       cat >> confdefs.h <<\EOF
8997 #define HAVE_ATANF 1
8998 EOF
8999
9000       cat >> confdefs.h <<\EOF
9001 #define HAVE_CEILF 1
9002 EOF
9003
9004       cat >> confdefs.h <<\EOF
9005 #define HAVE_COPYSIGN 1
9006 EOF
9007
9008       cat >> confdefs.h <<\EOF
9009 #define HAVE_COPYSIGNF 1
9010 EOF
9011
9012       cat >> confdefs.h <<\EOF
9013 #define HAVE_COSF 1
9014 EOF
9015
9016       cat >> confdefs.h <<\EOF
9017 #define HAVE_COSHF 1
9018 EOF
9019
9020       cat >> confdefs.h <<\EOF
9021 #define HAVE_EXPF 1
9022 EOF
9023
9024       cat >> confdefs.h <<\EOF
9025 #define HAVE_FABSF 1
9026 EOF
9027
9028       cat >> confdefs.h <<\EOF
9029 #define HAVE_FLOORF 1
9030 EOF
9031
9032       cat >> confdefs.h <<\EOF
9033 #define HAVE_FMODF 1
9034 EOF
9035
9036       cat >> confdefs.h <<\EOF
9037 #define HAVE_FREXPF 1
9038 EOF
9039
9040       cat >> confdefs.h <<\EOF
9041 #define HAVE_LDEXPF 1
9042 EOF
9043
9044       cat >> confdefs.h <<\EOF
9045 #define HAVE_LOG10F 1
9046 EOF
9047
9048       cat >> confdefs.h <<\EOF
9049 #define HAVE_LOGF 1
9050 EOF
9051
9052       cat >> confdefs.h <<\EOF
9053 #define HAVE_MODFF 1
9054 EOF
9055
9056       cat >> confdefs.h <<\EOF
9057 #define HAVE_POWF 1
9058 EOF
9059
9060       cat >> confdefs.h <<\EOF
9061 #define HAVE_SINF 1
9062 EOF
9063
9064       cat >> confdefs.h <<\EOF
9065 #define HAVE_SINHF 1
9066 EOF
9067
9068       cat >> confdefs.h <<\EOF
9069 #define HAVE_SQRTF 1
9070 EOF
9071
9072       cat >> confdefs.h <<\EOF
9073 #define HAVE_TANF 1
9074 EOF
9075
9076       cat >> confdefs.h <<\EOF
9077 #define HAVE_TANHF 1
9078 EOF
9079
9080       ;;
9081   esac
9082
9083   # At some point, we should differentiate between architectures
9084   # like x86, which have long double versions, and alpha/powerpc/etc.,
9085   # which don't. For the time being, punt.
9086   if test x"long_double_math_on_this_cpu" = x"yes"; then
9087     cat >> confdefs.h <<\EOF
9088 #define HAVE_ACOSL 1
9089 EOF
9090
9091     cat >> confdefs.h <<\EOF
9092 #define HAVE_ASINL 1
9093 EOF
9094
9095     cat >> confdefs.h <<\EOF
9096 #define HAVE_ATAN2L 1
9097 EOF
9098
9099     cat >> confdefs.h <<\EOF
9100 #define HAVE_ATANL 1
9101 EOF
9102
9103     cat >> confdefs.h <<\EOF
9104 #define HAVE_CEILL 1
9105 EOF
9106
9107     cat >> confdefs.h <<\EOF
9108 #define HAVE_COPYSIGNL 1
9109 EOF
9110
9111     cat >> confdefs.h <<\EOF
9112 #define HAVE_COSL 1
9113 EOF
9114
9115     cat >> confdefs.h <<\EOF
9116 #define HAVE_COSHL 1
9117 EOF
9118
9119     cat >> confdefs.h <<\EOF
9120 #define HAVE_EXPL 1
9121 EOF
9122
9123     cat >> confdefs.h <<\EOF
9124 #define HAVE_FABSL 1
9125 EOF
9126
9127     cat >> confdefs.h <<\EOF
9128 #define HAVE_FLOORL 1
9129 EOF
9130
9131     cat >> confdefs.h <<\EOF
9132 #define HAVE_FMODL 1
9133 EOF
9134
9135     cat >> confdefs.h <<\EOF
9136 #define HAVE_FREXPL 1
9137 EOF
9138
9139     cat >> confdefs.h <<\EOF
9140 #define HAVE_LDEXPL 1
9141 EOF
9142
9143     cat >> confdefs.h <<\EOF
9144 #define HAVE_LOG10L 1
9145 EOF
9146
9147     cat >> confdefs.h <<\EOF
9148 #define HAVE_LOGL 1
9149 EOF
9150
9151     cat >> confdefs.h <<\EOF
9152 #define HAVE_MODFL 1
9153 EOF
9154
9155     cat >> confdefs.h <<\EOF
9156 #define HAVE_POWL 1
9157 EOF
9158
9159     cat >> confdefs.h <<\EOF
9160 #define HAVE_SINCOSL 1
9161 EOF
9162
9163     cat >> confdefs.h <<\EOF
9164 #define HAVE_SINL 1
9165 EOF
9166
9167     cat >> confdefs.h <<\EOF
9168 #define HAVE_SINHL 1
9169 EOF
9170
9171     cat >> confdefs.h <<\EOF
9172 #define HAVE_SQRTL 1
9173 EOF
9174
9175     cat >> confdefs.h <<\EOF
9176 #define HAVE_TANL 1
9177 EOF
9178
9179     cat >> confdefs.h <<\EOF
9180 #define HAVE_TANHL 1
9181 EOF
9182
9183   fi
9184
9185 else
9186
9187   # We are being configured natively. We can do more elaborate tests
9188   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9189   # working.
9190   GLIBCPP_IS_CROSS_COMPILING=0
9191   CANADIAN=no
9192
9193   # Check for available headers.
9194   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9195   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9196 do
9197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9199 echo "configure:9200: checking for $ac_hdr" >&5
9200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9201   echo $ac_n "(cached) $ac_c" 1>&6
9202 else
9203   cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <$ac_hdr>
9207 EOF
9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9211 if test -z "$ac_err"; then
9212   rm -rf conftest*
9213   eval "ac_cv_header_$ac_safe=yes"
9214 else
9215   echo "$ac_err" >&5
9216   echo "configure: failed program was:" >&5
9217   cat conftest.$ac_ext >&5
9218   rm -rf conftest*
9219   eval "ac_cv_header_$ac_safe=no"
9220 fi
9221 rm -f conftest*
9222 fi
9223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9224   echo "$ac_t""yes" 1>&6
9225     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9226   cat >> confdefs.h <<EOF
9227 #define $ac_tr_hdr 1
9228 EOF
9229  
9230 else
9231   echo "$ac_t""no" 1>&6
9232 fi
9233 done
9234
9235
9236   
9237   # All these tests are for C++; save the language and the compiler flags.
9238   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9239   # found in GLIBCPP_CONFIGURE.
9240   
9241   ac_ext=C
9242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9243 ac_cpp='$CXXCPP $CPPFLAGS'
9244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246 cross_compiling=$ac_cv_prog_cxx_cross
9247
9248   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9249   ac_save_CXXFLAGS="$CXXFLAGS"
9250
9251   # Check for maintainer-mode bits.
9252   if test x"$USE_MAINTAINER_MODE" = xno; then
9253     WERROR=''
9254   else
9255     WERROR='-Werror'
9256   fi
9257
9258   # Check for -ffunction-sections -fdata-sections
9259   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9260 echo "configure:9261: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9261   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9262   cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9265
9266 int main() {
9267 int foo;
9268   
9269 ; return 0; }
9270 EOF
9271 if { (eval echo configure:9272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272   rm -rf conftest*
9273   ac_fdsections=yes
9274 else
9275   echo "configure: failed program was:" >&5
9276   cat conftest.$ac_ext >&5
9277   rm -rf conftest*
9278   ac_fdsections=no
9279 fi
9280 rm -f conftest*
9281   if test "$ac_test_CXXFLAGS" = set; then
9282     CXXFLAGS="$ac_save_CXXFLAGS"
9283   else
9284     # this is the suspicious part
9285     CXXFLAGS=''
9286   fi
9287   if test x"$ac_fdsections" = x"yes" &&
9288      test x"$enable_debug" = x"no"; then
9289     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9290   fi
9291   echo "$ac_t""$ac_fdsections" 1>&6
9292
9293   ac_ext=c
9294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9298 cross_compiling=$ac_cv_prog_cc_cross
9299
9300   
9301   
9302
9303   
9304   # If we're not using GNU ld, then there's no point in even trying these
9305   # tests.  Check for that first.  We should have already tested for gld
9306   # by now (in libtool), but require it now just to be safe...
9307   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9308   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9309   
9310
9311   # The name set by libtool depends on the version of libtool.  Shame on us
9312   # for depending on an impl detail, but c'est la vie.  Older versions used
9313   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9314   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9315   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9316   # set (hence we're using an older libtool), then set it.
9317   if test x${with_gnu_ld+set} != xset; then
9318     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9319       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9320       with_gnu_ld=no
9321     else
9322       with_gnu_ld=$ac_cv_prog_gnu_ld
9323     fi
9324   fi
9325
9326   # Start by getting the version number.  I think the libtool test already
9327   # does some of this, but throws away the result.
9328   
9329   ldver=`$LD --version 2>/dev/null | head -1 | \
9330          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9331   
9332   glibcpp_gnu_ld_version=`echo $ldver | \
9333          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9334
9335   # Set --gc-sections.
9336   if test "$with_gnu_ld" = "notbroken"; then
9337     # GNU ld it is!  Joy and bunny rabbits!
9338
9339     # All these tests are for C++; save the language and the compiler flags.
9340     # Need to do this so that g++ won't try to link in libstdc++
9341     ac_test_CFLAGS="${CFLAGS+set}"
9342     ac_save_CFLAGS="$CFLAGS"
9343     CFLAGS='-x c++  -Wl,--gc-sections'
9344
9345     # Check for -Wl,--gc-sections
9346     # XXX This test is broken at the moment, as symbols required for
9347     # linking are now in libsupc++ (not built yet.....). In addition, 
9348     # this test has cored on solaris in the past. In addition,
9349     # --gc-sections doesn't really work at the moment (keeps on discarding
9350     # used sections, first .eh_frame and now some of the glibc sections for
9351     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9352     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9353 echo "configure:9354: checking for ld that supports -Wl,--gc-sections" >&5
9354     if test "$cross_compiling" = yes; then
9355   ac_sectionLDflags=yes
9356 else
9357   cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9360
9361      int main(void) 
9362      {
9363        try { throw 1; }
9364        catch (...) { };
9365        return 0;
9366      }
9367     
9368 EOF
9369 if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9370 then
9371   ac_sectionLDflags=yes
9372 else
9373   echo "configure: failed program was:" >&5
9374   cat conftest.$ac_ext >&5
9375   rm -fr conftest*
9376   ac_sectionLDflags=no
9377 fi
9378 rm -fr conftest*
9379 fi
9380
9381     if test "$ac_test_CFLAGS" = set; then
9382       CFLAGS="$ac_save_CFLAGS"
9383     else
9384       # this is the suspicious part
9385       CFLAGS=''
9386     fi
9387     if test "$ac_sectionLDflags" = "yes"; then
9388       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9389     fi
9390     echo "$ac_t""$ac_sectionLDflags" 1>&6
9391   fi
9392
9393   # Set linker optimization flags.
9394   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9395     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9396   fi
9397
9398   
9399   
9400
9401   
9402       
9403   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9404 echo "configure:9405: checking for __builtin_abs declaration" >&5
9405   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9406     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9407   echo $ac_n "(cached) $ac_c" 1>&6
9408 else
9409   
9410       
9411       ac_ext=C
9412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9413 ac_cpp='$CXXCPP $CPPFLAGS'
9414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9416 cross_compiling=$ac_cv_prog_cxx_cross
9417
9418       cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 #include <math.h>
9422 int main() {
9423  __builtin_abs(0);
9424 ; return 0; }
9425 EOF
9426 if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427   rm -rf conftest*
9428   glibcpp_cv_func___builtin_abs_use=yes
9429 else
9430   echo "configure: failed program was:" >&5
9431   cat conftest.$ac_ext >&5
9432   rm -rf conftest*
9433   glibcpp_cv_func___builtin_abs_use=no
9434 fi
9435 rm -f conftest*
9436       ac_ext=c
9437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9441 cross_compiling=$ac_cv_prog_cc_cross
9442
9443     
9444 fi
9445
9446   fi
9447   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9448   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9449     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9450 echo "configure:9451: checking for __builtin_abs linkage" >&5
9451     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9452       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9453   echo $ac_n "(cached) $ac_c" 1>&6
9454 else
9455   
9456         cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 #include <math.h>
9460 int main() {
9461  __builtin_abs(0);
9462 ; return 0; }
9463 EOF
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465   rm -rf conftest*
9466   glibcpp_cv_func___builtin_abs_link=yes
9467 else
9468   echo "configure: failed program was:" >&5
9469   cat conftest.$ac_ext >&5
9470   rm -rf conftest*
9471   glibcpp_cv_func___builtin_abs_link=no
9472 fi
9473 rm -f conftest*
9474       
9475 fi
9476
9477     fi
9478     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9479     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9480       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9481       cat >> confdefs.h <<EOF
9482 #define ${ac_tr_func} 1
9483 EOF
9484
9485     fi
9486   fi
9487
9488   
9489   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9490 echo "configure:9491: checking for __builtin_fabsf declaration" >&5
9491   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9492     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9493   echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9495   
9496       
9497       ac_ext=C
9498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9499 ac_cpp='$CXXCPP $CPPFLAGS'
9500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9502 cross_compiling=$ac_cv_prog_cxx_cross
9503
9504       cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <math.h>
9508 int main() {
9509  __builtin_fabsf(0);
9510 ; return 0; }
9511 EOF
9512 if { (eval echo configure:9513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9513   rm -rf conftest*
9514   glibcpp_cv_func___builtin_fabsf_use=yes
9515 else
9516   echo "configure: failed program was:" >&5
9517   cat conftest.$ac_ext >&5
9518   rm -rf conftest*
9519   glibcpp_cv_func___builtin_fabsf_use=no
9520 fi
9521 rm -f conftest*
9522       ac_ext=c
9523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9524 ac_cpp='$CPP $CPPFLAGS'
9525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9527 cross_compiling=$ac_cv_prog_cc_cross
9528
9529     
9530 fi
9531
9532   fi
9533   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9534   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9535     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9536 echo "configure:9537: checking for __builtin_fabsf linkage" >&5
9537     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9538       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9539   echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9541   
9542         cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include <math.h>
9546 int main() {
9547  __builtin_fabsf(0);
9548 ; return 0; }
9549 EOF
9550 if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9551   rm -rf conftest*
9552   glibcpp_cv_func___builtin_fabsf_link=yes
9553 else
9554   echo "configure: failed program was:" >&5
9555   cat conftest.$ac_ext >&5
9556   rm -rf conftest*
9557   glibcpp_cv_func___builtin_fabsf_link=no
9558 fi
9559 rm -f conftest*
9560       
9561 fi
9562
9563     fi
9564     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9565     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9566       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9567       cat >> confdefs.h <<EOF
9568 #define ${ac_tr_func} 1
9569 EOF
9570
9571     fi
9572   fi
9573
9574   
9575   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9576 echo "configure:9577: checking for __builtin_fabs declaration" >&5
9577   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9578     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9579   echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9581   
9582       
9583       ac_ext=C
9584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9585 ac_cpp='$CXXCPP $CPPFLAGS'
9586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9588 cross_compiling=$ac_cv_prog_cxx_cross
9589
9590       cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 #include <math.h>
9594 int main() {
9595  __builtin_fabs(0);
9596 ; return 0; }
9597 EOF
9598 if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9599   rm -rf conftest*
9600   glibcpp_cv_func___builtin_fabs_use=yes
9601 else
9602   echo "configure: failed program was:" >&5
9603   cat conftest.$ac_ext >&5
9604   rm -rf conftest*
9605   glibcpp_cv_func___builtin_fabs_use=no
9606 fi
9607 rm -f conftest*
9608       ac_ext=c
9609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610 ac_cpp='$CPP $CPPFLAGS'
9611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613 cross_compiling=$ac_cv_prog_cc_cross
9614
9615     
9616 fi
9617
9618   fi
9619   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9620   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9621     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9622 echo "configure:9623: checking for __builtin_fabs linkage" >&5
9623     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9624       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9625   echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9627   
9628         cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 #include <math.h>
9632 int main() {
9633  __builtin_fabs(0);
9634 ; return 0; }
9635 EOF
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9637   rm -rf conftest*
9638   glibcpp_cv_func___builtin_fabs_link=yes
9639 else
9640   echo "configure: failed program was:" >&5
9641   cat conftest.$ac_ext >&5
9642   rm -rf conftest*
9643   glibcpp_cv_func___builtin_fabs_link=no
9644 fi
9645 rm -f conftest*
9646       
9647 fi
9648
9649     fi
9650     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9651     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9652       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9653       cat >> confdefs.h <<EOF
9654 #define ${ac_tr_func} 1
9655 EOF
9656
9657     fi
9658   fi
9659
9660   
9661   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9662 echo "configure:9663: checking for __builtin_fabsl declaration" >&5
9663   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9664     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9665   echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9667   
9668       
9669       ac_ext=C
9670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9671 ac_cpp='$CXXCPP $CPPFLAGS'
9672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9674 cross_compiling=$ac_cv_prog_cxx_cross
9675
9676       cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 #include <math.h>
9680 int main() {
9681  __builtin_fabsl(0);
9682 ; return 0; }
9683 EOF
9684 if { (eval echo configure:9685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9685   rm -rf conftest*
9686   glibcpp_cv_func___builtin_fabsl_use=yes
9687 else
9688   echo "configure: failed program was:" >&5
9689   cat conftest.$ac_ext >&5
9690   rm -rf conftest*
9691   glibcpp_cv_func___builtin_fabsl_use=no
9692 fi
9693 rm -f conftest*
9694       ac_ext=c
9695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9699 cross_compiling=$ac_cv_prog_cc_cross
9700
9701     
9702 fi
9703
9704   fi
9705   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9706   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9707     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9708 echo "configure:9709: checking for __builtin_fabsl linkage" >&5
9709     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9710       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9711   echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9713   
9714         cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 #include <math.h>
9718 int main() {
9719  __builtin_fabsl(0);
9720 ; return 0; }
9721 EOF
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723   rm -rf conftest*
9724   glibcpp_cv_func___builtin_fabsl_link=yes
9725 else
9726   echo "configure: failed program was:" >&5
9727   cat conftest.$ac_ext >&5
9728   rm -rf conftest*
9729   glibcpp_cv_func___builtin_fabsl_link=no
9730 fi
9731 rm -f conftest*
9732       
9733 fi
9734
9735     fi
9736     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9737     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9738       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9739       cat >> confdefs.h <<EOF
9740 #define ${ac_tr_func} 1
9741 EOF
9742
9743     fi
9744   fi
9745
9746   
9747   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9748 echo "configure:9749: checking for __builtin_labs declaration" >&5
9749   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9750     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9751   echo $ac_n "(cached) $ac_c" 1>&6
9752 else
9753   
9754       
9755       ac_ext=C
9756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9757 ac_cpp='$CXXCPP $CPPFLAGS'
9758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9760 cross_compiling=$ac_cv_prog_cxx_cross
9761
9762       cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <math.h>
9766 int main() {
9767  __builtin_labs(0);
9768 ; return 0; }
9769 EOF
9770 if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771   rm -rf conftest*
9772   glibcpp_cv_func___builtin_labs_use=yes
9773 else
9774   echo "configure: failed program was:" >&5
9775   cat conftest.$ac_ext >&5
9776   rm -rf conftest*
9777   glibcpp_cv_func___builtin_labs_use=no
9778 fi
9779 rm -f conftest*
9780       ac_ext=c
9781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9782 ac_cpp='$CPP $CPPFLAGS'
9783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9785 cross_compiling=$ac_cv_prog_cc_cross
9786
9787     
9788 fi
9789
9790   fi
9791   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9792   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9793     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9794 echo "configure:9795: checking for __builtin_labs linkage" >&5
9795     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9796       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9797   echo $ac_n "(cached) $ac_c" 1>&6
9798 else
9799   
9800         cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9803 #include <math.h>
9804 int main() {
9805  __builtin_labs(0);
9806 ; return 0; }
9807 EOF
9808 if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809   rm -rf conftest*
9810   glibcpp_cv_func___builtin_labs_link=yes
9811 else
9812   echo "configure: failed program was:" >&5
9813   cat conftest.$ac_ext >&5
9814   rm -rf conftest*
9815   glibcpp_cv_func___builtin_labs_link=no
9816 fi
9817 rm -f conftest*
9818       
9819 fi
9820
9821     fi
9822     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9823     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9824       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9825       cat >> confdefs.h <<EOF
9826 #define ${ac_tr_func} 1
9827 EOF
9828
9829     fi
9830   fi
9831
9832
9833   
9834   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9835 echo "configure:9836: checking for __builtin_sqrtf declaration" >&5
9836   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9837     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9838   echo $ac_n "(cached) $ac_c" 1>&6
9839 else
9840   
9841       
9842       ac_ext=C
9843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9844 ac_cpp='$CXXCPP $CPPFLAGS'
9845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9847 cross_compiling=$ac_cv_prog_cxx_cross
9848
9849       cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 #include <math.h>
9853 int main() {
9854  __builtin_sqrtf(0);
9855 ; return 0; }
9856 EOF
9857 if { (eval echo configure:9858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9858   rm -rf conftest*
9859   glibcpp_cv_func___builtin_sqrtf_use=yes
9860 else
9861   echo "configure: failed program was:" >&5
9862   cat conftest.$ac_ext >&5
9863   rm -rf conftest*
9864   glibcpp_cv_func___builtin_sqrtf_use=no
9865 fi
9866 rm -f conftest*
9867       ac_ext=c
9868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CPP $CPPFLAGS'
9870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cc_cross
9873
9874     
9875 fi
9876
9877   fi
9878   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9879   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9880     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9881 echo "configure:9882: checking for __builtin_sqrtf linkage" >&5
9882     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9883       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9884   echo $ac_n "(cached) $ac_c" 1>&6
9885 else
9886   
9887         cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 #include <math.h>
9891 int main() {
9892  __builtin_sqrtf(0);
9893 ; return 0; }
9894 EOF
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896   rm -rf conftest*
9897   glibcpp_cv_func___builtin_sqrtf_link=yes
9898 else
9899   echo "configure: failed program was:" >&5
9900   cat conftest.$ac_ext >&5
9901   rm -rf conftest*
9902   glibcpp_cv_func___builtin_sqrtf_link=no
9903 fi
9904 rm -f conftest*
9905       
9906 fi
9907
9908     fi
9909     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9910     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9911       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9912       cat >> confdefs.h <<EOF
9913 #define ${ac_tr_func} 1
9914 EOF
9915
9916     fi
9917   fi
9918
9919   
9920   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9921 echo "configure:9922: checking for __builtin_sqrt declaration" >&5
9922   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9923     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9924   echo $ac_n "(cached) $ac_c" 1>&6
9925 else
9926   
9927       
9928       ac_ext=C
9929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9930 ac_cpp='$CXXCPP $CPPFLAGS'
9931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9933 cross_compiling=$ac_cv_prog_cxx_cross
9934
9935       cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <math.h>
9939 int main() {
9940  __builtin_sqrt(0);
9941 ; return 0; }
9942 EOF
9943 if { (eval echo configure:9944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9944   rm -rf conftest*
9945   glibcpp_cv_func___builtin_sqrt_use=yes
9946 else
9947   echo "configure: failed program was:" >&5
9948   cat conftest.$ac_ext >&5
9949   rm -rf conftest*
9950   glibcpp_cv_func___builtin_sqrt_use=no
9951 fi
9952 rm -f conftest*
9953       ac_ext=c
9954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9955 ac_cpp='$CPP $CPPFLAGS'
9956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9958 cross_compiling=$ac_cv_prog_cc_cross
9959
9960     
9961 fi
9962
9963   fi
9964   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9965   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9966     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9967 echo "configure:9968: checking for __builtin_sqrt linkage" >&5
9968     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9969       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9970   echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972   
9973         cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9976 #include <math.h>
9977 int main() {
9978  __builtin_sqrt(0);
9979 ; return 0; }
9980 EOF
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982   rm -rf conftest*
9983   glibcpp_cv_func___builtin_sqrt_link=yes
9984 else
9985   echo "configure: failed program was:" >&5
9986   cat conftest.$ac_ext >&5
9987   rm -rf conftest*
9988   glibcpp_cv_func___builtin_sqrt_link=no
9989 fi
9990 rm -f conftest*
9991       
9992 fi
9993
9994     fi
9995     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9996     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9997       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9998       cat >> confdefs.h <<EOF
9999 #define ${ac_tr_func} 1
10000 EOF
10001
10002     fi
10003   fi
10004
10005   
10006   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10007 echo "configure:10008: checking for __builtin_sqrtl declaration" >&5
10008   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10009     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10010   echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10012   
10013       
10014       ac_ext=C
10015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016 ac_cpp='$CXXCPP $CPPFLAGS'
10017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019 cross_compiling=$ac_cv_prog_cxx_cross
10020
10021       cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 #include <math.h>
10025 int main() {
10026  __builtin_sqrtl(0);
10027 ; return 0; }
10028 EOF
10029 if { (eval echo configure:10030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030   rm -rf conftest*
10031   glibcpp_cv_func___builtin_sqrtl_use=yes
10032 else
10033   echo "configure: failed program was:" >&5
10034   cat conftest.$ac_ext >&5
10035   rm -rf conftest*
10036   glibcpp_cv_func___builtin_sqrtl_use=no
10037 fi
10038 rm -f conftest*
10039       ac_ext=c
10040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10044 cross_compiling=$ac_cv_prog_cc_cross
10045
10046     
10047 fi
10048
10049   fi
10050   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10051   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10052     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10053 echo "configure:10054: checking for __builtin_sqrtl linkage" >&5
10054     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10055       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10056   echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10058   
10059         cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 #include <math.h>
10063 int main() {
10064  __builtin_sqrtl(0);
10065 ; return 0; }
10066 EOF
10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10068   rm -rf conftest*
10069   glibcpp_cv_func___builtin_sqrtl_link=yes
10070 else
10071   echo "configure: failed program was:" >&5
10072   cat conftest.$ac_ext >&5
10073   rm -rf conftest*
10074   glibcpp_cv_func___builtin_sqrtl_link=no
10075 fi
10076 rm -f conftest*
10077       
10078 fi
10079
10080     fi
10081     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10082     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10083       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10084       cat >> confdefs.h <<EOF
10085 #define ${ac_tr_func} 1
10086 EOF
10087
10088     fi
10089   fi
10090
10091
10092   
10093   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10094 echo "configure:10095: checking for __builtin_sinf declaration" >&5
10095   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10096     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10097   echo $ac_n "(cached) $ac_c" 1>&6
10098 else
10099   
10100       
10101       ac_ext=C
10102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10103 ac_cpp='$CXXCPP $CPPFLAGS'
10104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10106 cross_compiling=$ac_cv_prog_cxx_cross
10107
10108       cat > conftest.$ac_ext <<EOF
10109 #line 10110 "configure"
10110 #include "confdefs.h"
10111 #include <math.h>
10112 int main() {
10113  __builtin_sinf(0);
10114 ; return 0; }
10115 EOF
10116 if { (eval echo configure:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10117   rm -rf conftest*
10118   glibcpp_cv_func___builtin_sinf_use=yes
10119 else
10120   echo "configure: failed program was:" >&5
10121   cat conftest.$ac_ext >&5
10122   rm -rf conftest*
10123   glibcpp_cv_func___builtin_sinf_use=no
10124 fi
10125 rm -f conftest*
10126       ac_ext=c
10127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10128 ac_cpp='$CPP $CPPFLAGS'
10129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10131 cross_compiling=$ac_cv_prog_cc_cross
10132
10133     
10134 fi
10135
10136   fi
10137   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10138   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10139     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10140 echo "configure:10141: checking for __builtin_sinf linkage" >&5
10141     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10142       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10143   echo $ac_n "(cached) $ac_c" 1>&6
10144 else
10145   
10146         cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 #include <math.h>
10150 int main() {
10151  __builtin_sinf(0);
10152 ; return 0; }
10153 EOF
10154 if { (eval echo configure:10155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10155   rm -rf conftest*
10156   glibcpp_cv_func___builtin_sinf_link=yes
10157 else
10158   echo "configure: failed program was:" >&5
10159   cat conftest.$ac_ext >&5
10160   rm -rf conftest*
10161   glibcpp_cv_func___builtin_sinf_link=no
10162 fi
10163 rm -f conftest*
10164       
10165 fi
10166
10167     fi
10168     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10169     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10170       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10171       cat >> confdefs.h <<EOF
10172 #define ${ac_tr_func} 1
10173 EOF
10174
10175     fi
10176   fi
10177
10178   
10179   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10180 echo "configure:10181: checking for __builtin_sin declaration" >&5
10181   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10182     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10183   echo $ac_n "(cached) $ac_c" 1>&6
10184 else
10185   
10186       
10187       ac_ext=C
10188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10189 ac_cpp='$CXXCPP $CPPFLAGS'
10190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10192 cross_compiling=$ac_cv_prog_cxx_cross
10193
10194       cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <math.h>
10198 int main() {
10199  __builtin_sin(0);
10200 ; return 0; }
10201 EOF
10202 if { (eval echo configure:10203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10203   rm -rf conftest*
10204   glibcpp_cv_func___builtin_sin_use=yes
10205 else
10206   echo "configure: failed program was:" >&5
10207   cat conftest.$ac_ext >&5
10208   rm -rf conftest*
10209   glibcpp_cv_func___builtin_sin_use=no
10210 fi
10211 rm -f conftest*
10212       ac_ext=c
10213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10217 cross_compiling=$ac_cv_prog_cc_cross
10218
10219     
10220 fi
10221
10222   fi
10223   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10224   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10225     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10226 echo "configure:10227: checking for __builtin_sin linkage" >&5
10227     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10228       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10229   echo $ac_n "(cached) $ac_c" 1>&6
10230 else
10231   
10232         cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10235 #include <math.h>
10236 int main() {
10237  __builtin_sin(0);
10238 ; return 0; }
10239 EOF
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10241   rm -rf conftest*
10242   glibcpp_cv_func___builtin_sin_link=yes
10243 else
10244   echo "configure: failed program was:" >&5
10245   cat conftest.$ac_ext >&5
10246   rm -rf conftest*
10247   glibcpp_cv_func___builtin_sin_link=no
10248 fi
10249 rm -f conftest*
10250       
10251 fi
10252
10253     fi
10254     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10255     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10256       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10257       cat >> confdefs.h <<EOF
10258 #define ${ac_tr_func} 1
10259 EOF
10260
10261     fi
10262   fi
10263
10264   
10265   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10266 echo "configure:10267: checking for __builtin_sinl declaration" >&5
10267   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10268     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10269   echo $ac_n "(cached) $ac_c" 1>&6
10270 else
10271   
10272       
10273       ac_ext=C
10274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10275 ac_cpp='$CXXCPP $CPPFLAGS'
10276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10278 cross_compiling=$ac_cv_prog_cxx_cross
10279
10280       cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include <math.h>
10284 int main() {
10285  __builtin_sinl(0);
10286 ; return 0; }
10287 EOF
10288 if { (eval echo configure:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10289   rm -rf conftest*
10290   glibcpp_cv_func___builtin_sinl_use=yes
10291 else
10292   echo "configure: failed program was:" >&5
10293   cat conftest.$ac_ext >&5
10294   rm -rf conftest*
10295   glibcpp_cv_func___builtin_sinl_use=no
10296 fi
10297 rm -f conftest*
10298       ac_ext=c
10299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10300 ac_cpp='$CPP $CPPFLAGS'
10301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10303 cross_compiling=$ac_cv_prog_cc_cross
10304
10305     
10306 fi
10307
10308   fi
10309   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10310   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10311     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10312 echo "configure:10313: checking for __builtin_sinl linkage" >&5
10313     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10314       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10315   echo $ac_n "(cached) $ac_c" 1>&6
10316 else
10317   
10318         cat > conftest.$ac_ext <<EOF
10319 #line 10320 "configure"
10320 #include "confdefs.h"
10321 #include <math.h>
10322 int main() {
10323  __builtin_sinl(0);
10324 ; return 0; }
10325 EOF
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10327   rm -rf conftest*
10328   glibcpp_cv_func___builtin_sinl_link=yes
10329 else
10330   echo "configure: failed program was:" >&5
10331   cat conftest.$ac_ext >&5
10332   rm -rf conftest*
10333   glibcpp_cv_func___builtin_sinl_link=no
10334 fi
10335 rm -f conftest*
10336       
10337 fi
10338
10339     fi
10340     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10341     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10342       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10343       cat >> confdefs.h <<EOF
10344 #define ${ac_tr_func} 1
10345 EOF
10346
10347     fi
10348   fi
10349
10350
10351   
10352   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10353 echo "configure:10354: checking for __builtin_cosf declaration" >&5
10354   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10355     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10356   echo $ac_n "(cached) $ac_c" 1>&6
10357 else
10358   
10359       
10360       ac_ext=C
10361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10362 ac_cpp='$CXXCPP $CPPFLAGS'
10363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10365 cross_compiling=$ac_cv_prog_cxx_cross
10366
10367       cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370 #include <math.h>
10371 int main() {
10372  __builtin_cosf(0);
10373 ; return 0; }
10374 EOF
10375 if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10376   rm -rf conftest*
10377   glibcpp_cv_func___builtin_cosf_use=yes
10378 else
10379   echo "configure: failed program was:" >&5
10380   cat conftest.$ac_ext >&5
10381   rm -rf conftest*
10382   glibcpp_cv_func___builtin_cosf_use=no
10383 fi
10384 rm -f conftest*
10385       ac_ext=c
10386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10387 ac_cpp='$CPP $CPPFLAGS'
10388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10390 cross_compiling=$ac_cv_prog_cc_cross
10391
10392     
10393 fi
10394
10395   fi
10396   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10397   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10398     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10399 echo "configure:10400: checking for __builtin_cosf linkage" >&5
10400     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10401       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10402   echo $ac_n "(cached) $ac_c" 1>&6
10403 else
10404   
10405         cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10408 #include <math.h>
10409 int main() {
10410  __builtin_cosf(0);
10411 ; return 0; }
10412 EOF
10413 if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10414   rm -rf conftest*
10415   glibcpp_cv_func___builtin_cosf_link=yes
10416 else
10417   echo "configure: failed program was:" >&5
10418   cat conftest.$ac_ext >&5
10419   rm -rf conftest*
10420   glibcpp_cv_func___builtin_cosf_link=no
10421 fi
10422 rm -f conftest*
10423       
10424 fi
10425
10426     fi
10427     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10428     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10429       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10430       cat >> confdefs.h <<EOF
10431 #define ${ac_tr_func} 1
10432 EOF
10433
10434     fi
10435   fi
10436
10437   
10438   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10439 echo "configure:10440: checking for __builtin_cos declaration" >&5
10440   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10441     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10442   echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10444   
10445       
10446       ac_ext=C
10447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10448 ac_cpp='$CXXCPP $CPPFLAGS'
10449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10451 cross_compiling=$ac_cv_prog_cxx_cross
10452
10453       cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include <math.h>
10457 int main() {
10458  __builtin_cos(0);
10459 ; return 0; }
10460 EOF
10461 if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462   rm -rf conftest*
10463   glibcpp_cv_func___builtin_cos_use=yes
10464 else
10465   echo "configure: failed program was:" >&5
10466   cat conftest.$ac_ext >&5
10467   rm -rf conftest*
10468   glibcpp_cv_func___builtin_cos_use=no
10469 fi
10470 rm -f conftest*
10471       ac_ext=c
10472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10476 cross_compiling=$ac_cv_prog_cc_cross
10477
10478     
10479 fi
10480
10481   fi
10482   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10483   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10484     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10485 echo "configure:10486: checking for __builtin_cos linkage" >&5
10486     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10487       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10488   echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490   
10491         cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 #include <math.h>
10495 int main() {
10496  __builtin_cos(0);
10497 ; return 0; }
10498 EOF
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500   rm -rf conftest*
10501   glibcpp_cv_func___builtin_cos_link=yes
10502 else
10503   echo "configure: failed program was:" >&5
10504   cat conftest.$ac_ext >&5
10505   rm -rf conftest*
10506   glibcpp_cv_func___builtin_cos_link=no
10507 fi
10508 rm -f conftest*
10509       
10510 fi
10511
10512     fi
10513     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10514     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10515       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10516       cat >> confdefs.h <<EOF
10517 #define ${ac_tr_func} 1
10518 EOF
10519
10520     fi
10521   fi
10522
10523   
10524   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10525 echo "configure:10526: checking for __builtin_cosl declaration" >&5
10526   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10527     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10528   echo $ac_n "(cached) $ac_c" 1>&6
10529 else
10530   
10531       
10532       ac_ext=C
10533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10534 ac_cpp='$CXXCPP $CPPFLAGS'
10535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10537 cross_compiling=$ac_cv_prog_cxx_cross
10538
10539       cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <math.h>
10543 int main() {
10544  __builtin_cosl(0);
10545 ; return 0; }
10546 EOF
10547 if { (eval echo configure:10548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10548   rm -rf conftest*
10549   glibcpp_cv_func___builtin_cosl_use=yes
10550 else
10551   echo "configure: failed program was:" >&5
10552   cat conftest.$ac_ext >&5
10553   rm -rf conftest*
10554   glibcpp_cv_func___builtin_cosl_use=no
10555 fi
10556 rm -f conftest*
10557       ac_ext=c
10558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10562 cross_compiling=$ac_cv_prog_cc_cross
10563
10564     
10565 fi
10566
10567   fi
10568   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10569   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10570     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10571 echo "configure:10572: checking for __builtin_cosl linkage" >&5
10572     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10573       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10574   echo $ac_n "(cached) $ac_c" 1>&6
10575 else
10576   
10577         cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10580 #include <math.h>
10581 int main() {
10582  __builtin_cosl(0);
10583 ; return 0; }
10584 EOF
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10586   rm -rf conftest*
10587   glibcpp_cv_func___builtin_cosl_link=yes
10588 else
10589   echo "configure: failed program was:" >&5
10590   cat conftest.$ac_ext >&5
10591   rm -rf conftest*
10592   glibcpp_cv_func___builtin_cosl_link=no
10593 fi
10594 rm -f conftest*
10595       
10596 fi
10597
10598     fi
10599     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10600     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10601       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10602       cat >> confdefs.h <<EOF
10603 #define ${ac_tr_func} 1
10604 EOF
10605
10606     fi
10607   fi
10608
10609
10610               dummyvar=no
10611   if test x$dummyvar = x"yes"; then
10612     cat >> confdefs.h <<\EOF
10613 #define HAVE___BUILTIN_ABS 1
10614 EOF
10615
10616     cat >> confdefs.h <<\EOF
10617 #define HAVE___BUILTIN_LABS 1
10618 EOF
10619
10620     cat >> confdefs.h <<\EOF
10621 #define HAVE___BUILTIN_COS 1
10622 EOF
10623
10624     cat >> confdefs.h <<\EOF
10625 #define HAVE___BUILTIN_COSF 1
10626 EOF
10627
10628     cat >> confdefs.h <<\EOF
10629 #define HAVE___BUILTIN_COSL 1
10630 EOF
10631
10632     cat >> confdefs.h <<\EOF
10633 #define HAVE___BUILTIN_FABS 1
10634 EOF
10635
10636     cat >> confdefs.h <<\EOF
10637 #define HAVE___BUILTIN_FABSF 1
10638 EOF
10639
10640     cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_FABSL 1
10642 EOF
10643
10644     cat >> confdefs.h <<\EOF
10645 #define HAVE___BUILTIN_SIN 1
10646 EOF
10647
10648     cat >> confdefs.h <<\EOF
10649 #define HAVE___BUILTIN_SINF 1
10650 EOF
10651
10652     cat >> confdefs.h <<\EOF
10653 #define HAVE___BUILTIN_SINL 1
10654 EOF
10655
10656     cat >> confdefs.h <<\EOF
10657 #define HAVE___BUILTIN_SQRT 1
10658 EOF
10659
10660     cat >> confdefs.h <<\EOF
10661 #define HAVE___BUILTIN_SQRTF 1
10662 EOF
10663
10664     cat >> confdefs.h <<\EOF
10665 #define HAVE___BUILTIN_SQRTL 1
10666 EOF
10667
10668   fi
10669
10670   
10671   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10672   ac_save_CXXFLAGS="$CXXFLAGS"
10673   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10674
10675     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10676 echo "configure:10677: checking for sin in -lm" >&5
10677 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10679   echo $ac_n "(cached) $ac_c" 1>&6
10680 else
10681   ac_save_LIBS="$LIBS"
10682 LIBS="-lm  $LIBS"
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 /* Override any gcc2 internal prototype to avoid an error.  */
10687 /* We use char because int might match the return type of a gcc2
10688     builtin and then its argument prototype would still apply.  */
10689 char sin();
10690
10691 int main() {
10692 sin()
10693 ; return 0; }
10694 EOF
10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696   rm -rf conftest*
10697   eval "ac_cv_lib_$ac_lib_var=yes"
10698 else
10699   echo "configure: failed program was:" >&5
10700   cat conftest.$ac_ext >&5
10701   rm -rf conftest*
10702   eval "ac_cv_lib_$ac_lib_var=no"
10703 fi
10704 rm -f conftest*
10705 LIBS="$ac_save_LIBS"
10706
10707 fi
10708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10709   echo "$ac_t""yes" 1>&6
10710   libm="-lm"
10711 else
10712   echo "$ac_t""no" 1>&6
10713 fi
10714
10715   ac_save_LIBS="$LIBS"
10716   LIBS="$LIBS $libm"
10717
10718     
10719   
10720   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10721 echo "configure:10722: checking for isinf declaration" >&5
10722   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10723     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10724   echo $ac_n "(cached) $ac_c" 1>&6
10725 else
10726   
10727       
10728       ac_ext=C
10729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10730 ac_cpp='$CXXCPP $CPPFLAGS'
10731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10733 cross_compiling=$ac_cv_prog_cxx_cross
10734
10735       cat > conftest.$ac_ext <<EOF
10736 #line 10737 "configure"
10737 #include "confdefs.h"
10738 #include <math.h>
10739                       #ifdef HAVE_IEEEFP_H
10740                       #include <ieeefp.h>
10741                       #endif
10742                      
10743 int main() {
10744  isinf(0);
10745 ; return 0; }
10746 EOF
10747 if { (eval echo configure:10748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10748   rm -rf conftest*
10749   glibcpp_cv_func_isinf_use=yes
10750 else
10751   echo "configure: failed program was:" >&5
10752   cat conftest.$ac_ext >&5
10753   rm -rf conftest*
10754   glibcpp_cv_func_isinf_use=no
10755 fi
10756 rm -f conftest*
10757       ac_ext=c
10758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10762 cross_compiling=$ac_cv_prog_cc_cross
10763
10764     
10765 fi
10766
10767   fi
10768   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10769
10770   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10771     for ac_func in isinf
10772 do
10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10774 echo "configure:10775: checking for $ac_func" >&5
10775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10776   echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10778   cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 /* System header to define __stub macros and hopefully few prototypes,
10782     which can conflict with char $ac_func(); below.  */
10783 #include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error.  */
10785 /* We use char because int might match the return type of a gcc2
10786     builtin and then its argument prototype would still apply.  */
10787 char $ac_func();
10788
10789 int main() {
10790
10791 /* The GNU C library defines this for functions which it implements
10792     to always fail with ENOSYS.  Some functions are actually named
10793     something starting with __ and the normal name is an alias.  */
10794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10795 choke me
10796 #else
10797 $ac_func();
10798 #endif
10799
10800 ; return 0; }
10801 EOF
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803   rm -rf conftest*
10804   eval "ac_cv_func_$ac_func=yes"
10805 else
10806   echo "configure: failed program was:" >&5
10807   cat conftest.$ac_ext >&5
10808   rm -rf conftest*
10809   eval "ac_cv_func_$ac_func=no"
10810 fi
10811 rm -f conftest*
10812 fi
10813
10814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10815   echo "$ac_t""yes" 1>&6
10816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10817   cat >> confdefs.h <<EOF
10818 #define $ac_tr_func 1
10819 EOF
10820  
10821 else
10822   echo "$ac_t""no" 1>&6
10823 fi
10824 done
10825     
10826   else
10827     
10828   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10829 echo "configure:10830: checking for _isinf declaration" >&5
10830   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10831     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10832   echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10834   
10835       
10836       ac_ext=C
10837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10838 ac_cpp='$CXXCPP $CPPFLAGS'
10839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10841 cross_compiling=$ac_cv_prog_cxx_cross
10842
10843       cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 #include <math.h>
10847                       #ifdef HAVE_IEEEFP_H
10848                       #include <ieeefp.h>
10849                       #endif
10850                      
10851 int main() {
10852  _isinf(0);
10853 ; return 0; }
10854 EOF
10855 if { (eval echo configure:10856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10856   rm -rf conftest*
10857   glibcpp_cv_func__isinf_use=yes
10858 else
10859   echo "configure: failed program was:" >&5
10860   cat conftest.$ac_ext >&5
10861   rm -rf conftest*
10862   glibcpp_cv_func__isinf_use=no
10863 fi
10864 rm -f conftest*
10865       ac_ext=c
10866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10867 ac_cpp='$CPP $CPPFLAGS'
10868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10870 cross_compiling=$ac_cv_prog_cc_cross
10871
10872     
10873 fi
10874
10875   fi
10876   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10877
10878     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10879       for ac_func in _isinf
10880 do
10881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10882 echo "configure:10883: checking for $ac_func" >&5
10883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10884   echo $ac_n "(cached) $ac_c" 1>&6
10885 else
10886   cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 /* System header to define __stub macros and hopefully few prototypes,
10890     which can conflict with char $ac_func(); below.  */
10891 #include <assert.h>
10892 /* Override any gcc2 internal prototype to avoid an error.  */
10893 /* We use char because int might match the return type of a gcc2
10894     builtin and then its argument prototype would still apply.  */
10895 char $ac_func();
10896
10897 int main() {
10898
10899 /* The GNU C library defines this for functions which it implements
10900     to always fail with ENOSYS.  Some functions are actually named
10901     something starting with __ and the normal name is an alias.  */
10902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10903 choke me
10904 #else
10905 $ac_func();
10906 #endif
10907
10908 ; return 0; }
10909 EOF
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10911   rm -rf conftest*
10912   eval "ac_cv_func_$ac_func=yes"
10913 else
10914   echo "configure: failed program was:" >&5
10915   cat conftest.$ac_ext >&5
10916   rm -rf conftest*
10917   eval "ac_cv_func_$ac_func=no"
10918 fi
10919 rm -f conftest*
10920 fi
10921
10922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10923   echo "$ac_t""yes" 1>&6
10924     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10925   cat >> confdefs.h <<EOF
10926 #define $ac_tr_func 1
10927 EOF
10928  
10929 else
10930   echo "$ac_t""no" 1>&6
10931 fi
10932 done
10933     
10934     fi
10935   fi
10936
10937   
10938   
10939   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for isnan declaration" >&5
10941   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10942     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10943   echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10945   
10946       
10947       ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10953
10954       cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958                       #ifdef HAVE_IEEEFP_H
10959                       #include <ieeefp.h>
10960                       #endif
10961                      
10962 int main() {
10963  isnan(0);
10964 ; return 0; }
10965 EOF
10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10967   rm -rf conftest*
10968   glibcpp_cv_func_isnan_use=yes
10969 else
10970   echo "configure: failed program was:" >&5
10971   cat conftest.$ac_ext >&5
10972   rm -rf conftest*
10973   glibcpp_cv_func_isnan_use=no
10974 fi
10975 rm -f conftest*
10976       ac_ext=c
10977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10981 cross_compiling=$ac_cv_prog_cc_cross
10982
10983     
10984 fi
10985
10986   fi
10987   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10988
10989   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10990     for ac_func in isnan
10991 do
10992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_func" >&5
10994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10995   echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10997   cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001     which can conflict with char $ac_func(); below.  */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 /* We use char because int might match the return type of a gcc2
11005     builtin and then its argument prototype would still apply.  */
11006 char $ac_func();
11007
11008 int main() {
11009
11010 /* The GNU C library defines this for functions which it implements
11011     to always fail with ENOSYS.  Some functions are actually named
11012     something starting with __ and the normal name is an alias.  */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 $ac_func();
11017 #endif
11018
11019 ; return 0; }
11020 EOF
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022   rm -rf conftest*
11023   eval "ac_cv_func_$ac_func=yes"
11024 else
11025   echo "configure: failed program was:" >&5
11026   cat conftest.$ac_ext >&5
11027   rm -rf conftest*
11028   eval "ac_cv_func_$ac_func=no"
11029 fi
11030 rm -f conftest*
11031 fi
11032
11033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11034   echo "$ac_t""yes" 1>&6
11035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036   cat >> confdefs.h <<EOF
11037 #define $ac_tr_func 1
11038 EOF
11039  
11040 else
11041   echo "$ac_t""no" 1>&6
11042 fi
11043 done
11044     
11045   else
11046     
11047   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11048 echo "configure:11049: checking for _isnan declaration" >&5
11049   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11050     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11051   echo $ac_n "(cached) $ac_c" 1>&6
11052 else
11053   
11054       
11055       ac_ext=C
11056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11057 ac_cpp='$CXXCPP $CPPFLAGS'
11058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060 cross_compiling=$ac_cv_prog_cxx_cross
11061
11062       cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <math.h>
11066                       #ifdef HAVE_IEEEFP_H
11067                       #include <ieeefp.h>
11068                       #endif
11069                      
11070 int main() {
11071  _isnan(0);
11072 ; return 0; }
11073 EOF
11074 if { (eval echo configure:11075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11075   rm -rf conftest*
11076   glibcpp_cv_func__isnan_use=yes
11077 else
11078   echo "configure: failed program was:" >&5
11079   cat conftest.$ac_ext >&5
11080   rm -rf conftest*
11081   glibcpp_cv_func__isnan_use=no
11082 fi
11083 rm -f conftest*
11084       ac_ext=c
11085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089 cross_compiling=$ac_cv_prog_cc_cross
11090
11091     
11092 fi
11093
11094   fi
11095   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11096
11097     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11098       for ac_func in _isnan
11099 do
11100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_func" >&5
11102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11103   echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105   cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func(); below.  */
11110 #include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error.  */
11112 /* We use char because int might match the return type of a gcc2
11113     builtin and then its argument prototype would still apply.  */
11114 char $ac_func();
11115
11116 int main() {
11117
11118 /* The GNU C library defines this for functions which it implements
11119     to always fail with ENOSYS.  Some functions are actually named
11120     something starting with __ and the normal name is an alias.  */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 $ac_func();
11125 #endif
11126
11127 ; return 0; }
11128 EOF
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130   rm -rf conftest*
11131   eval "ac_cv_func_$ac_func=yes"
11132 else
11133   echo "configure: failed program was:" >&5
11134   cat conftest.$ac_ext >&5
11135   rm -rf conftest*
11136   eval "ac_cv_func_$ac_func=no"
11137 fi
11138 rm -f conftest*
11139 fi
11140
11141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11142   echo "$ac_t""yes" 1>&6
11143     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11144   cat >> confdefs.h <<EOF
11145 #define $ac_tr_func 1
11146 EOF
11147  
11148 else
11149   echo "$ac_t""no" 1>&6
11150 fi
11151 done
11152     
11153     fi
11154   fi
11155
11156   
11157   
11158   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11159 echo "configure:11160: checking for finite declaration" >&5
11160   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11161     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11162   echo $ac_n "(cached) $ac_c" 1>&6
11163 else
11164   
11165       
11166       ac_ext=C
11167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11171 cross_compiling=$ac_cv_prog_cxx_cross
11172
11173       cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 #include <math.h>
11177                       #ifdef HAVE_IEEEFP_H
11178                       #include <ieeefp.h>
11179                       #endif
11180                      
11181 int main() {
11182  finite(0);
11183 ; return 0; }
11184 EOF
11185 if { (eval echo configure:11186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11186   rm -rf conftest*
11187   glibcpp_cv_func_finite_use=yes
11188 else
11189   echo "configure: failed program was:" >&5
11190   cat conftest.$ac_ext >&5
11191   rm -rf conftest*
11192   glibcpp_cv_func_finite_use=no
11193 fi
11194 rm -f conftest*
11195       ac_ext=c
11196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cc_cross
11201
11202     
11203 fi
11204
11205   fi
11206   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11207
11208   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11209     for ac_func in finite
11210 do
11211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_func" >&5
11213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11214   echo $ac_n "(cached) $ac_c" 1>&6
11215 else
11216   cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 /* System header to define __stub macros and hopefully few prototypes,
11220     which can conflict with char $ac_func(); below.  */
11221 #include <assert.h>
11222 /* Override any gcc2 internal prototype to avoid an error.  */
11223 /* We use char because int might match the return type of a gcc2
11224     builtin and then its argument prototype would still apply.  */
11225 char $ac_func();
11226
11227 int main() {
11228
11229 /* The GNU C library defines this for functions which it implements
11230     to always fail with ENOSYS.  Some functions are actually named
11231     something starting with __ and the normal name is an alias.  */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 choke me
11234 #else
11235 $ac_func();
11236 #endif
11237
11238 ; return 0; }
11239 EOF
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11241   rm -rf conftest*
11242   eval "ac_cv_func_$ac_func=yes"
11243 else
11244   echo "configure: failed program was:" >&5
11245   cat conftest.$ac_ext >&5
11246   rm -rf conftest*
11247   eval "ac_cv_func_$ac_func=no"
11248 fi
11249 rm -f conftest*
11250 fi
11251
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253   echo "$ac_t""yes" 1>&6
11254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255   cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11257 EOF
11258  
11259 else
11260   echo "$ac_t""no" 1>&6
11261 fi
11262 done
11263     
11264   else
11265     
11266   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11267 echo "configure:11268: checking for _finite declaration" >&5
11268   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11269     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11270   echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11272   
11273       
11274       ac_ext=C
11275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11279 cross_compiling=$ac_cv_prog_cxx_cross
11280
11281       cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include <math.h>
11285                       #ifdef HAVE_IEEEFP_H
11286                       #include <ieeefp.h>
11287                       #endif
11288                      
11289 int main() {
11290  _finite(0);
11291 ; return 0; }
11292 EOF
11293 if { (eval echo configure:11294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294   rm -rf conftest*
11295   glibcpp_cv_func__finite_use=yes
11296 else
11297   echo "configure: failed program was:" >&5
11298   cat conftest.$ac_ext >&5
11299   rm -rf conftest*
11300   glibcpp_cv_func__finite_use=no
11301 fi
11302 rm -f conftest*
11303       ac_ext=c
11304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11308 cross_compiling=$ac_cv_prog_cc_cross
11309
11310     
11311 fi
11312
11313   fi
11314   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11315
11316     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11317       for ac_func in _finite
11318 do
11319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11320 echo "configure:11321: checking for $ac_func" >&5
11321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11322   echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324   cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328     which can conflict with char $ac_func(); below.  */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error.  */
11331 /* We use char because int might match the return type of a gcc2
11332     builtin and then its argument prototype would still apply.  */
11333 char $ac_func();
11334
11335 int main() {
11336
11337 /* The GNU C library defines this for functions which it implements
11338     to always fail with ENOSYS.  Some functions are actually named
11339     something starting with __ and the normal name is an alias.  */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 choke me
11342 #else
11343 $ac_func();
11344 #endif
11345
11346 ; return 0; }
11347 EOF
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349   rm -rf conftest*
11350   eval "ac_cv_func_$ac_func=yes"
11351 else
11352   echo "configure: failed program was:" >&5
11353   cat conftest.$ac_ext >&5
11354   rm -rf conftest*
11355   eval "ac_cv_func_$ac_func=no"
11356 fi
11357 rm -f conftest*
11358 fi
11359
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11361   echo "$ac_t""yes" 1>&6
11362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11363   cat >> confdefs.h <<EOF
11364 #define $ac_tr_func 1
11365 EOF
11366  
11367 else
11368   echo "$ac_t""no" 1>&6
11369 fi
11370 done
11371     
11372     fi
11373   fi
11374
11375   
11376   
11377   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11378 echo "configure:11379: checking for copysign declaration" >&5
11379   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11380     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11381   echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11383   
11384       
11385       ac_ext=C
11386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11387 ac_cpp='$CXXCPP $CPPFLAGS'
11388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11390 cross_compiling=$ac_cv_prog_cxx_cross
11391
11392       cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include <math.h>
11396 int main() {
11397  copysign(0, 0);
11398 ; return 0; }
11399 EOF
11400 if { (eval echo configure:11401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11401   rm -rf conftest*
11402   glibcpp_cv_func_copysign_use=yes
11403 else
11404   echo "configure: failed program was:" >&5
11405   cat conftest.$ac_ext >&5
11406   rm -rf conftest*
11407   glibcpp_cv_func_copysign_use=no
11408 fi
11409 rm -f conftest*
11410       ac_ext=c
11411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11412 ac_cpp='$CPP $CPPFLAGS'
11413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11415 cross_compiling=$ac_cv_prog_cc_cross
11416
11417     
11418 fi
11419
11420   fi
11421   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11422
11423   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11424     for ac_func in copysign
11425 do
11426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11427 echo "configure:11428: checking for $ac_func" >&5
11428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11429   echo $ac_n "(cached) $ac_c" 1>&6
11430 else
11431   cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 /* System header to define __stub macros and hopefully few prototypes,
11435     which can conflict with char $ac_func(); below.  */
11436 #include <assert.h>
11437 /* Override any gcc2 internal prototype to avoid an error.  */
11438 /* We use char because int might match the return type of a gcc2
11439     builtin and then its argument prototype would still apply.  */
11440 char $ac_func();
11441
11442 int main() {
11443
11444 /* The GNU C library defines this for functions which it implements
11445     to always fail with ENOSYS.  Some functions are actually named
11446     something starting with __ and the normal name is an alias.  */
11447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11448 choke me
11449 #else
11450 $ac_func();
11451 #endif
11452
11453 ; return 0; }
11454 EOF
11455 if { (eval echo configure:11456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11456   rm -rf conftest*
11457   eval "ac_cv_func_$ac_func=yes"
11458 else
11459   echo "configure: failed program was:" >&5
11460   cat conftest.$ac_ext >&5
11461   rm -rf conftest*
11462   eval "ac_cv_func_$ac_func=no"
11463 fi
11464 rm -f conftest*
11465 fi
11466
11467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11468   echo "$ac_t""yes" 1>&6
11469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11470   cat >> confdefs.h <<EOF
11471 #define $ac_tr_func 1
11472 EOF
11473  
11474 else
11475   echo "$ac_t""no" 1>&6
11476 fi
11477 done
11478     
11479   else
11480     
11481   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11482 echo "configure:11483: checking for _copysign declaration" >&5
11483   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11484     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11485   echo $ac_n "(cached) $ac_c" 1>&6
11486 else
11487   
11488       
11489       ac_ext=C
11490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11491 ac_cpp='$CXXCPP $CPPFLAGS'
11492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11494 cross_compiling=$ac_cv_prog_cxx_cross
11495
11496       cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 #include <math.h>
11500 int main() {
11501  _copysign(0, 0);
11502 ; return 0; }
11503 EOF
11504 if { (eval echo configure:11505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11505   rm -rf conftest*
11506   glibcpp_cv_func__copysign_use=yes
11507 else
11508   echo "configure: failed program was:" >&5
11509   cat conftest.$ac_ext >&5
11510   rm -rf conftest*
11511   glibcpp_cv_func__copysign_use=no
11512 fi
11513 rm -f conftest*
11514       ac_ext=c
11515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11516 ac_cpp='$CPP $CPPFLAGS'
11517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11519 cross_compiling=$ac_cv_prog_cc_cross
11520
11521     
11522 fi
11523
11524   fi
11525   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11526
11527     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11528       for ac_func in _copysign
11529 do
11530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11531 echo "configure:11532: checking for $ac_func" >&5
11532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11533   echo $ac_n "(cached) $ac_c" 1>&6
11534 else
11535   cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11538 /* System header to define __stub macros and hopefully few prototypes,
11539     which can conflict with char $ac_func(); below.  */
11540 #include <assert.h>
11541 /* Override any gcc2 internal prototype to avoid an error.  */
11542 /* We use char because int might match the return type of a gcc2
11543     builtin and then its argument prototype would still apply.  */
11544 char $ac_func();
11545
11546 int main() {
11547
11548 /* The GNU C library defines this for functions which it implements
11549     to always fail with ENOSYS.  Some functions are actually named
11550     something starting with __ and the normal name is an alias.  */
11551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11552 choke me
11553 #else
11554 $ac_func();
11555 #endif
11556
11557 ; return 0; }
11558 EOF
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11560   rm -rf conftest*
11561   eval "ac_cv_func_$ac_func=yes"
11562 else
11563   echo "configure: failed program was:" >&5
11564   cat conftest.$ac_ext >&5
11565   rm -rf conftest*
11566   eval "ac_cv_func_$ac_func=no"
11567 fi
11568 rm -f conftest*
11569 fi
11570
11571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11572   echo "$ac_t""yes" 1>&6
11573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11574   cat >> confdefs.h <<EOF
11575 #define $ac_tr_func 1
11576 EOF
11577  
11578 else
11579   echo "$ac_t""no" 1>&6
11580 fi
11581 done
11582     
11583     fi
11584   fi
11585
11586   
11587   
11588   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11589 echo "configure:11590: checking for sincos declaration" >&5
11590   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11591     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11592   echo $ac_n "(cached) $ac_c" 1>&6
11593 else
11594   
11595       
11596       ac_ext=C
11597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11598 ac_cpp='$CXXCPP $CPPFLAGS'
11599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11601 cross_compiling=$ac_cv_prog_cxx_cross
11602
11603       cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure"
11605 #include "confdefs.h"
11606 #include <math.h>
11607 int main() {
11608  sincos(0, 0, 0);
11609 ; return 0; }
11610 EOF
11611 if { (eval echo configure:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11612   rm -rf conftest*
11613   glibcpp_cv_func_sincos_use=yes
11614 else
11615   echo "configure: failed program was:" >&5
11616   cat conftest.$ac_ext >&5
11617   rm -rf conftest*
11618   glibcpp_cv_func_sincos_use=no
11619 fi
11620 rm -f conftest*
11621       ac_ext=c
11622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11623 ac_cpp='$CPP $CPPFLAGS'
11624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11626 cross_compiling=$ac_cv_prog_cc_cross
11627
11628     
11629 fi
11630
11631   fi
11632   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11633
11634   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11635     for ac_func in sincos
11636 do
11637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11638 echo "configure:11639: checking for $ac_func" >&5
11639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11640   echo $ac_n "(cached) $ac_c" 1>&6
11641 else
11642   cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646     which can conflict with char $ac_func(); below.  */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 /* We use char because int might match the return type of a gcc2
11650     builtin and then its argument prototype would still apply.  */
11651 char $ac_func();
11652
11653 int main() {
11654
11655 /* The GNU C library defines this for functions which it implements
11656     to always fail with ENOSYS.  Some functions are actually named
11657     something starting with __ and the normal name is an alias.  */
11658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11659 choke me
11660 #else
11661 $ac_func();
11662 #endif
11663
11664 ; return 0; }
11665 EOF
11666 if { (eval echo configure:11667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11667   rm -rf conftest*
11668   eval "ac_cv_func_$ac_func=yes"
11669 else
11670   echo "configure: failed program was:" >&5
11671   cat conftest.$ac_ext >&5
11672   rm -rf conftest*
11673   eval "ac_cv_func_$ac_func=no"
11674 fi
11675 rm -f conftest*
11676 fi
11677
11678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11679   echo "$ac_t""yes" 1>&6
11680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11681   cat >> confdefs.h <<EOF
11682 #define $ac_tr_func 1
11683 EOF
11684  
11685 else
11686   echo "$ac_t""no" 1>&6
11687 fi
11688 done
11689     
11690   else
11691     
11692   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11693 echo "configure:11694: checking for _sincos declaration" >&5
11694   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11695     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11696   echo $ac_n "(cached) $ac_c" 1>&6
11697 else
11698   
11699       
11700       ac_ext=C
11701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11702 ac_cpp='$CXXCPP $CPPFLAGS'
11703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11705 cross_compiling=$ac_cv_prog_cxx_cross
11706
11707       cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 #include <math.h>
11711 int main() {
11712  _sincos(0, 0, 0);
11713 ; return 0; }
11714 EOF
11715 if { (eval echo configure:11716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11716   rm -rf conftest*
11717   glibcpp_cv_func__sincos_use=yes
11718 else
11719   echo "configure: failed program was:" >&5
11720   cat conftest.$ac_ext >&5
11721   rm -rf conftest*
11722   glibcpp_cv_func__sincos_use=no
11723 fi
11724 rm -f conftest*
11725       ac_ext=c
11726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11727 ac_cpp='$CPP $CPPFLAGS'
11728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11730 cross_compiling=$ac_cv_prog_cc_cross
11731
11732     
11733 fi
11734
11735   fi
11736   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11737
11738     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11739       for ac_func in _sincos
11740 do
11741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11742 echo "configure:11743: checking for $ac_func" >&5
11743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11744   echo $ac_n "(cached) $ac_c" 1>&6
11745 else
11746   cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749 /* System header to define __stub macros and hopefully few prototypes,
11750     which can conflict with char $ac_func(); below.  */
11751 #include <assert.h>
11752 /* Override any gcc2 internal prototype to avoid an error.  */
11753 /* We use char because int might match the return type of a gcc2
11754     builtin and then its argument prototype would still apply.  */
11755 char $ac_func();
11756
11757 int main() {
11758
11759 /* The GNU C library defines this for functions which it implements
11760     to always fail with ENOSYS.  Some functions are actually named
11761     something starting with __ and the normal name is an alias.  */
11762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11763 choke me
11764 #else
11765 $ac_func();
11766 #endif
11767
11768 ; return 0; }
11769 EOF
11770 if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11771   rm -rf conftest*
11772   eval "ac_cv_func_$ac_func=yes"
11773 else
11774   echo "configure: failed program was:" >&5
11775   cat conftest.$ac_ext >&5
11776   rm -rf conftest*
11777   eval "ac_cv_func_$ac_func=no"
11778 fi
11779 rm -f conftest*
11780 fi
11781
11782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11783   echo "$ac_t""yes" 1>&6
11784     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11785   cat >> confdefs.h <<EOF
11786 #define $ac_tr_func 1
11787 EOF
11788  
11789 else
11790   echo "$ac_t""no" 1>&6
11791 fi
11792 done
11793     
11794     fi
11795   fi
11796
11797   
11798   
11799   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11800 echo "configure:11801: checking for fpclass declaration" >&5
11801   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11802     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11803   echo $ac_n "(cached) $ac_c" 1>&6
11804 else
11805   
11806       
11807       ac_ext=C
11808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11809 ac_cpp='$CXXCPP $CPPFLAGS'
11810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11812 cross_compiling=$ac_cv_prog_cxx_cross
11813
11814       cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 #include <math.h>
11818                       #ifdef HAVE_IEEEFP_H
11819                       #include <ieeefp.h>
11820                       #endif
11821                      
11822 int main() {
11823  fpclass(0);
11824 ; return 0; }
11825 EOF
11826 if { (eval echo configure:11827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11827   rm -rf conftest*
11828   glibcpp_cv_func_fpclass_use=yes
11829 else
11830   echo "configure: failed program was:" >&5
11831   cat conftest.$ac_ext >&5
11832   rm -rf conftest*
11833   glibcpp_cv_func_fpclass_use=no
11834 fi
11835 rm -f conftest*
11836       ac_ext=c
11837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11838 ac_cpp='$CPP $CPPFLAGS'
11839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11841 cross_compiling=$ac_cv_prog_cc_cross
11842
11843     
11844 fi
11845
11846   fi
11847   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11848
11849   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11850     for ac_func in fpclass
11851 do
11852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11853 echo "configure:11854: checking for $ac_func" >&5
11854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11855   echo $ac_n "(cached) $ac_c" 1>&6
11856 else
11857   cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861     which can conflict with char $ac_func(); below.  */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error.  */
11864 /* We use char because int might match the return type of a gcc2
11865     builtin and then its argument prototype would still apply.  */
11866 char $ac_func();
11867
11868 int main() {
11869
11870 /* The GNU C library defines this for functions which it implements
11871     to always fail with ENOSYS.  Some functions are actually named
11872     something starting with __ and the normal name is an alias.  */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11874 choke me
11875 #else
11876 $ac_func();
11877 #endif
11878
11879 ; return 0; }
11880 EOF
11881 if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11882   rm -rf conftest*
11883   eval "ac_cv_func_$ac_func=yes"
11884 else
11885   echo "configure: failed program was:" >&5
11886   cat conftest.$ac_ext >&5
11887   rm -rf conftest*
11888   eval "ac_cv_func_$ac_func=no"
11889 fi
11890 rm -f conftest*
11891 fi
11892
11893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11894   echo "$ac_t""yes" 1>&6
11895     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11896   cat >> confdefs.h <<EOF
11897 #define $ac_tr_func 1
11898 EOF
11899  
11900 else
11901   echo "$ac_t""no" 1>&6
11902 fi
11903 done
11904     
11905   else
11906     
11907   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11908 echo "configure:11909: checking for _fpclass declaration" >&5
11909   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11910     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11911   echo $ac_n "(cached) $ac_c" 1>&6
11912 else
11913   
11914       
11915       ac_ext=C
11916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11917 ac_cpp='$CXXCPP $CPPFLAGS'
11918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11920 cross_compiling=$ac_cv_prog_cxx_cross
11921
11922       cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 #include <math.h>
11926                       #ifdef HAVE_IEEEFP_H
11927                       #include <ieeefp.h>
11928                       #endif
11929                      
11930 int main() {
11931  _fpclass(0);
11932 ; return 0; }
11933 EOF
11934 if { (eval echo configure:11935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11935   rm -rf conftest*
11936   glibcpp_cv_func__fpclass_use=yes
11937 else
11938   echo "configure: failed program was:" >&5
11939   cat conftest.$ac_ext >&5
11940   rm -rf conftest*
11941   glibcpp_cv_func__fpclass_use=no
11942 fi
11943 rm -f conftest*
11944       ac_ext=c
11945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cc_cross
11950
11951     
11952 fi
11953
11954   fi
11955   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11956
11957     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11958       for ac_func in _fpclass
11959 do
11960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11961 echo "configure:11962: checking for $ac_func" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11963   echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965   cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969     which can conflict with char $ac_func(); below.  */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error.  */
11972 /* We use char because int might match the return type of a gcc2
11973     builtin and then its argument prototype would still apply.  */
11974 char $ac_func();
11975
11976 int main() {
11977
11978 /* The GNU C library defines this for functions which it implements
11979     to always fail with ENOSYS.  Some functions are actually named
11980     something starting with __ and the normal name is an alias.  */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 $ac_func();
11985 #endif
11986
11987 ; return 0; }
11988 EOF
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990   rm -rf conftest*
11991   eval "ac_cv_func_$ac_func=yes"
11992 else
11993   echo "configure: failed program was:" >&5
11994   cat conftest.$ac_ext >&5
11995   rm -rf conftest*
11996   eval "ac_cv_func_$ac_func=no"
11997 fi
11998 rm -f conftest*
11999 fi
12000
12001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12002   echo "$ac_t""yes" 1>&6
12003     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12004   cat >> confdefs.h <<EOF
12005 #define $ac_tr_func 1
12006 EOF
12007  
12008 else
12009   echo "$ac_t""no" 1>&6
12010 fi
12011 done
12012     
12013     fi
12014   fi
12015
12016   
12017   
12018   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12019 echo "configure:12020: checking for qfpclass declaration" >&5
12020   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12021     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12022   echo $ac_n "(cached) $ac_c" 1>&6
12023 else
12024   
12025       
12026       ac_ext=C
12027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12031 cross_compiling=$ac_cv_prog_cxx_cross
12032
12033       cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037                       #ifdef HAVE_IEEEFP_H
12038                       #include <ieeefp.h>
12039                       #endif
12040                      
12041 int main() {
12042  qfpclass(0);
12043 ; return 0; }
12044 EOF
12045 if { (eval echo configure:12046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046   rm -rf conftest*
12047   glibcpp_cv_func_qfpclass_use=yes
12048 else
12049   echo "configure: failed program was:" >&5
12050   cat conftest.$ac_ext >&5
12051   rm -rf conftest*
12052   glibcpp_cv_func_qfpclass_use=no
12053 fi
12054 rm -f conftest*
12055       ac_ext=c
12056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cc_cross
12061
12062     
12063 fi
12064
12065   fi
12066   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12067
12068   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12069     for ac_func in qfpclass
12070 do
12071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12072 echo "configure:12073: checking for $ac_func" >&5
12073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12074   echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076   cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080     which can conflict with char $ac_func(); below.  */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error.  */
12083 /* We use char because int might match the return type of a gcc2
12084     builtin and then its argument prototype would still apply.  */
12085 char $ac_func();
12086
12087 int main() {
12088
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 $ac_func();
12096 #endif
12097
12098 ; return 0; }
12099 EOF
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101   rm -rf conftest*
12102   eval "ac_cv_func_$ac_func=yes"
12103 else
12104   echo "configure: failed program was:" >&5
12105   cat conftest.$ac_ext >&5
12106   rm -rf conftest*
12107   eval "ac_cv_func_$ac_func=no"
12108 fi
12109 rm -f conftest*
12110 fi
12111
12112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12113   echo "$ac_t""yes" 1>&6
12114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12115   cat >> confdefs.h <<EOF
12116 #define $ac_tr_func 1
12117 EOF
12118  
12119 else
12120   echo "$ac_t""no" 1>&6
12121 fi
12122 done
12123     
12124   else
12125     
12126   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12127 echo "configure:12128: checking for _qfpclass declaration" >&5
12128   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12129     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12130   echo $ac_n "(cached) $ac_c" 1>&6
12131 else
12132   
12133       
12134       ac_ext=C
12135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12136 ac_cpp='$CXXCPP $CPPFLAGS'
12137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12139 cross_compiling=$ac_cv_prog_cxx_cross
12140
12141       cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <math.h>
12145                       #ifdef HAVE_IEEEFP_H
12146                       #include <ieeefp.h>
12147                       #endif
12148                      
12149 int main() {
12150  _qfpclass(0);
12151 ; return 0; }
12152 EOF
12153 if { (eval echo configure:12154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12154   rm -rf conftest*
12155   glibcpp_cv_func__qfpclass_use=yes
12156 else
12157   echo "configure: failed program was:" >&5
12158   cat conftest.$ac_ext >&5
12159   rm -rf conftest*
12160   glibcpp_cv_func__qfpclass_use=no
12161 fi
12162 rm -f conftest*
12163       ac_ext=c
12164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cc_cross
12169
12170     
12171 fi
12172
12173   fi
12174   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12175
12176     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12177       for ac_func in _qfpclass
12178 do
12179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12180 echo "configure:12181: checking for $ac_func" >&5
12181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12182   echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184   cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* System header to define __stub macros and hopefully few prototypes,
12188     which can conflict with char $ac_func(); below.  */
12189 #include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error.  */
12191 /* We use char because int might match the return type of a gcc2
12192     builtin and then its argument prototype would still apply.  */
12193 char $ac_func();
12194
12195 int main() {
12196
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 $ac_func();
12204 #endif
12205
12206 ; return 0; }
12207 EOF
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209   rm -rf conftest*
12210   eval "ac_cv_func_$ac_func=yes"
12211 else
12212   echo "configure: failed program was:" >&5
12213   cat conftest.$ac_ext >&5
12214   rm -rf conftest*
12215   eval "ac_cv_func_$ac_func=no"
12216 fi
12217 rm -f conftest*
12218 fi
12219
12220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12221   echo "$ac_t""yes" 1>&6
12222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12223   cat >> confdefs.h <<EOF
12224 #define $ac_tr_func 1
12225 EOF
12226  
12227 else
12228   echo "$ac_t""no" 1>&6
12229 fi
12230 done
12231     
12232     fi
12233   fi
12234
12235   
12236   
12237   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12238 echo "configure:12239: checking for hypot declaration" >&5
12239   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12240     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12241   echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12243   
12244       
12245       ac_ext=C
12246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cxx_cross
12251
12252       cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #include <math.h>
12256 int main() {
12257  hypot(0, 0);
12258 ; return 0; }
12259 EOF
12260 if { (eval echo configure:12261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12261   rm -rf conftest*
12262   glibcpp_cv_func_hypot_use=yes
12263 else
12264   echo "configure: failed program was:" >&5
12265   cat conftest.$ac_ext >&5
12266   rm -rf conftest*
12267   glibcpp_cv_func_hypot_use=no
12268 fi
12269 rm -f conftest*
12270       ac_ext=c
12271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12272 ac_cpp='$CPP $CPPFLAGS'
12273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12275 cross_compiling=$ac_cv_prog_cc_cross
12276
12277     
12278 fi
12279
12280   fi
12281   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12282
12283   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12284     for ac_func in hypot
12285 do
12286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12287 echo "configure:12288: checking for $ac_func" >&5
12288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12289   echo $ac_n "(cached) $ac_c" 1>&6
12290 else
12291   cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 /* System header to define __stub macros and hopefully few prototypes,
12295     which can conflict with char $ac_func(); below.  */
12296 #include <assert.h>
12297 /* Override any gcc2 internal prototype to avoid an error.  */
12298 /* We use char because int might match the return type of a gcc2
12299     builtin and then its argument prototype would still apply.  */
12300 char $ac_func();
12301
12302 int main() {
12303
12304 /* The GNU C library defines this for functions which it implements
12305     to always fail with ENOSYS.  Some functions are actually named
12306     something starting with __ and the normal name is an alias.  */
12307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12308 choke me
12309 #else
12310 $ac_func();
12311 #endif
12312
12313 ; return 0; }
12314 EOF
12315 if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316   rm -rf conftest*
12317   eval "ac_cv_func_$ac_func=yes"
12318 else
12319   echo "configure: failed program was:" >&5
12320   cat conftest.$ac_ext >&5
12321   rm -rf conftest*
12322   eval "ac_cv_func_$ac_func=no"
12323 fi
12324 rm -f conftest*
12325 fi
12326
12327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12328   echo "$ac_t""yes" 1>&6
12329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12330   cat >> confdefs.h <<EOF
12331 #define $ac_tr_func 1
12332 EOF
12333  
12334 else
12335   echo "$ac_t""no" 1>&6
12336 fi
12337 done
12338     
12339   else
12340     
12341   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12342 echo "configure:12343: checking for _hypot declaration" >&5
12343   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12344     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12345   echo $ac_n "(cached) $ac_c" 1>&6
12346 else
12347   
12348       
12349       ac_ext=C
12350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12351 ac_cpp='$CXXCPP $CPPFLAGS'
12352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12354 cross_compiling=$ac_cv_prog_cxx_cross
12355
12356       cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <math.h>
12360 int main() {
12361  _hypot(0, 0);
12362 ; return 0; }
12363 EOF
12364 if { (eval echo configure:12365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12365   rm -rf conftest*
12366   glibcpp_cv_func__hypot_use=yes
12367 else
12368   echo "configure: failed program was:" >&5
12369   cat conftest.$ac_ext >&5
12370   rm -rf conftest*
12371   glibcpp_cv_func__hypot_use=no
12372 fi
12373 rm -f conftest*
12374       ac_ext=c
12375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12379 cross_compiling=$ac_cv_prog_cc_cross
12380
12381     
12382 fi
12383
12384   fi
12385   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12386
12387     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12388       for ac_func in _hypot
12389 do
12390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12391 echo "configure:12392: checking for $ac_func" >&5
12392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12393   echo $ac_n "(cached) $ac_c" 1>&6
12394 else
12395   cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* System header to define __stub macros and hopefully few prototypes,
12399     which can conflict with char $ac_func(); below.  */
12400 #include <assert.h>
12401 /* Override any gcc2 internal prototype to avoid an error.  */
12402 /* We use char because int might match the return type of a gcc2
12403     builtin and then its argument prototype would still apply.  */
12404 char $ac_func();
12405
12406 int main() {
12407
12408 /* The GNU C library defines this for functions which it implements
12409     to always fail with ENOSYS.  Some functions are actually named
12410     something starting with __ and the normal name is an alias.  */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 choke me
12413 #else
12414 $ac_func();
12415 #endif
12416
12417 ; return 0; }
12418 EOF
12419 if { (eval echo configure:12420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12420   rm -rf conftest*
12421   eval "ac_cv_func_$ac_func=yes"
12422 else
12423   echo "configure: failed program was:" >&5
12424   cat conftest.$ac_ext >&5
12425   rm -rf conftest*
12426   eval "ac_cv_func_$ac_func=no"
12427 fi
12428 rm -f conftest*
12429 fi
12430
12431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12432   echo "$ac_t""yes" 1>&6
12433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12434   cat >> confdefs.h <<EOF
12435 #define $ac_tr_func 1
12436 EOF
12437  
12438 else
12439   echo "$ac_t""no" 1>&6
12440 fi
12441 done
12442     
12443     fi
12444   fi
12445
12446
12447     
12448   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12449 echo "configure:12450: checking for float trig functions" >&5
12450   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12451   echo $ac_n "(cached) $ac_c" 1>&6
12452 else
12453   
12454     
12455     ac_ext=C
12456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12457 ac_cpp='$CXXCPP $CPPFLAGS'
12458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12460 cross_compiling=$ac_cv_prog_cxx_cross
12461
12462     cat > conftest.$ac_ext <<EOF
12463 #line 12464 "configure"
12464 #include "confdefs.h"
12465 #include <math.h>
12466 int main() {
12467  `for x in acosf asinf atanf \
12468                                           cosf sinf tanf \
12469                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12470 ; return 0; }
12471 EOF
12472 if { (eval echo configure:12473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12473   rm -rf conftest*
12474   glibcpp_cv_func_float_trig_use=yes
12475 else
12476   echo "configure: failed program was:" >&5
12477   cat conftest.$ac_ext >&5
12478   rm -rf conftest*
12479   glibcpp_cv_func_float_trig_use=no
12480 fi
12481 rm -f conftest*
12482     ac_ext=c
12483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12484 ac_cpp='$CPP $CPPFLAGS'
12485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12487 cross_compiling=$ac_cv_prog_cc_cross
12488
12489 fi
12490
12491   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12492   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12493     for ac_func in acosf asinf atanf \
12494                                           cosf sinf tanf \
12495                                           coshf sinhf tanhf
12496 do
12497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12498 echo "configure:12499: checking for $ac_func" >&5
12499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12500   echo $ac_n "(cached) $ac_c" 1>&6
12501 else
12502   cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 /* System header to define __stub macros and hopefully few prototypes,
12506     which can conflict with char $ac_func(); below.  */
12507 #include <assert.h>
12508 /* Override any gcc2 internal prototype to avoid an error.  */
12509 /* We use char because int might match the return type of a gcc2
12510     builtin and then its argument prototype would still apply.  */
12511 char $ac_func();
12512
12513 int main() {
12514
12515 /* The GNU C library defines this for functions which it implements
12516     to always fail with ENOSYS.  Some functions are actually named
12517     something starting with __ and the normal name is an alias.  */
12518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12519 choke me
12520 #else
12521 $ac_func();
12522 #endif
12523
12524 ; return 0; }
12525 EOF
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12527   rm -rf conftest*
12528   eval "ac_cv_func_$ac_func=yes"
12529 else
12530   echo "configure: failed program was:" >&5
12531   cat conftest.$ac_ext >&5
12532   rm -rf conftest*
12533   eval "ac_cv_func_$ac_func=no"
12534 fi
12535 rm -f conftest*
12536 fi
12537
12538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12539   echo "$ac_t""yes" 1>&6
12540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12541   cat >> confdefs.h <<EOF
12542 #define $ac_tr_func 1
12543 EOF
12544  
12545 else
12546   echo "$ac_t""no" 1>&6
12547 fi
12548 done
12549
12550   fi
12551
12552   
12553   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12554 echo "configure:12555: checking for float round functions" >&5
12555   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12556   echo $ac_n "(cached) $ac_c" 1>&6
12557 else
12558   
12559     
12560     ac_ext=C
12561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12562 ac_cpp='$CXXCPP $CPPFLAGS'
12563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12565 cross_compiling=$ac_cv_prog_cxx_cross
12566
12567     cat > conftest.$ac_ext <<EOF
12568 #line 12569 "configure"
12569 #include "confdefs.h"
12570 #include <math.h>
12571 int main() {
12572  `for x in ceilf floorf; do echo "$x (0);"; done` 
12573 ; return 0; }
12574 EOF
12575 if { (eval echo configure:12576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12576   rm -rf conftest*
12577   glibcpp_cv_func_float_round_use=yes
12578 else
12579   echo "configure: failed program was:" >&5
12580   cat conftest.$ac_ext >&5
12581   rm -rf conftest*
12582   glibcpp_cv_func_float_round_use=no
12583 fi
12584 rm -f conftest*
12585     ac_ext=c
12586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12590 cross_compiling=$ac_cv_prog_cc_cross
12591
12592 fi
12593
12594   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12595   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12596     for ac_func in ceilf floorf
12597 do
12598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12599 echo "configure:12600: checking for $ac_func" >&5
12600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12601   echo $ac_n "(cached) $ac_c" 1>&6
12602 else
12603   cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12606 /* System header to define __stub macros and hopefully few prototypes,
12607     which can conflict with char $ac_func(); below.  */
12608 #include <assert.h>
12609 /* Override any gcc2 internal prototype to avoid an error.  */
12610 /* We use char because int might match the return type of a gcc2
12611     builtin and then its argument prototype would still apply.  */
12612 char $ac_func();
12613
12614 int main() {
12615
12616 /* The GNU C library defines this for functions which it implements
12617     to always fail with ENOSYS.  Some functions are actually named
12618     something starting with __ and the normal name is an alias.  */
12619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12620 choke me
12621 #else
12622 $ac_func();
12623 #endif
12624
12625 ; return 0; }
12626 EOF
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12628   rm -rf conftest*
12629   eval "ac_cv_func_$ac_func=yes"
12630 else
12631   echo "configure: failed program was:" >&5
12632   cat conftest.$ac_ext >&5
12633   rm -rf conftest*
12634   eval "ac_cv_func_$ac_func=no"
12635 fi
12636 rm -f conftest*
12637 fi
12638
12639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12640   echo "$ac_t""yes" 1>&6
12641     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12642   cat >> confdefs.h <<EOF
12643 #define $ac_tr_func 1
12644 EOF
12645  
12646 else
12647   echo "$ac_t""no" 1>&6
12648 fi
12649 done
12650
12651   fi
12652
12653   
12654   
12655   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12656 echo "configure:12657: checking for expf declaration" >&5
12657   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12658     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12659   echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661   
12662       
12663       ac_ext=C
12664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12665 ac_cpp='$CXXCPP $CPPFLAGS'
12666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668 cross_compiling=$ac_cv_prog_cxx_cross
12669
12670       cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 #include <math.h>
12674                       #ifdef HAVE_IEEEFP_H
12675                       #include <ieeefp.h>
12676                       #endif
12677                      
12678 int main() {
12679  expf(0);
12680 ; return 0; }
12681 EOF
12682 if { (eval echo configure:12683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12683   rm -rf conftest*
12684   glibcpp_cv_func_expf_use=yes
12685 else
12686   echo "configure: failed program was:" >&5
12687   cat conftest.$ac_ext >&5
12688   rm -rf conftest*
12689   glibcpp_cv_func_expf_use=no
12690 fi
12691 rm -f conftest*
12692       ac_ext=c
12693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12694 ac_cpp='$CPP $CPPFLAGS'
12695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12697 cross_compiling=$ac_cv_prog_cc_cross
12698
12699     
12700 fi
12701
12702   fi
12703   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12704
12705   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12706     for ac_func in expf
12707 do
12708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12709 echo "configure:12710: checking for $ac_func" >&5
12710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12711   echo $ac_n "(cached) $ac_c" 1>&6
12712 else
12713   cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 /* System header to define __stub macros and hopefully few prototypes,
12717     which can conflict with char $ac_func(); below.  */
12718 #include <assert.h>
12719 /* Override any gcc2 internal prototype to avoid an error.  */
12720 /* We use char because int might match the return type of a gcc2
12721     builtin and then its argument prototype would still apply.  */
12722 char $ac_func();
12723
12724 int main() {
12725
12726 /* The GNU C library defines this for functions which it implements
12727     to always fail with ENOSYS.  Some functions are actually named
12728     something starting with __ and the normal name is an alias.  */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 $ac_func();
12733 #endif
12734
12735 ; return 0; }
12736 EOF
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738   rm -rf conftest*
12739   eval "ac_cv_func_$ac_func=yes"
12740 else
12741   echo "configure: failed program was:" >&5
12742   cat conftest.$ac_ext >&5
12743   rm -rf conftest*
12744   eval "ac_cv_func_$ac_func=no"
12745 fi
12746 rm -f conftest*
12747 fi
12748
12749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12750   echo "$ac_t""yes" 1>&6
12751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12752   cat >> confdefs.h <<EOF
12753 #define $ac_tr_func 1
12754 EOF
12755  
12756 else
12757   echo "$ac_t""no" 1>&6
12758 fi
12759 done
12760     
12761   else
12762     
12763   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12764 echo "configure:12765: checking for _expf declaration" >&5
12765   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12766     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12767   echo $ac_n "(cached) $ac_c" 1>&6
12768 else
12769   
12770       
12771       ac_ext=C
12772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12773 ac_cpp='$CXXCPP $CPPFLAGS'
12774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12776 cross_compiling=$ac_cv_prog_cxx_cross
12777
12778       cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 #include <math.h>
12782                       #ifdef HAVE_IEEEFP_H
12783                       #include <ieeefp.h>
12784                       #endif
12785                      
12786 int main() {
12787  _expf(0);
12788 ; return 0; }
12789 EOF
12790 if { (eval echo configure:12791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12791   rm -rf conftest*
12792   glibcpp_cv_func__expf_use=yes
12793 else
12794   echo "configure: failed program was:" >&5
12795   cat conftest.$ac_ext >&5
12796   rm -rf conftest*
12797   glibcpp_cv_func__expf_use=no
12798 fi
12799 rm -f conftest*
12800       ac_ext=c
12801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12805 cross_compiling=$ac_cv_prog_cc_cross
12806
12807     
12808 fi
12809
12810   fi
12811   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12812
12813     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12814       for ac_func in _expf
12815 do
12816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12817 echo "configure:12818: checking for $ac_func" >&5
12818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12819   echo $ac_n "(cached) $ac_c" 1>&6
12820 else
12821   cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 /* System header to define __stub macros and hopefully few prototypes,
12825     which can conflict with char $ac_func(); below.  */
12826 #include <assert.h>
12827 /* Override any gcc2 internal prototype to avoid an error.  */
12828 /* We use char because int might match the return type of a gcc2
12829     builtin and then its argument prototype would still apply.  */
12830 char $ac_func();
12831
12832 int main() {
12833
12834 /* The GNU C library defines this for functions which it implements
12835     to always fail with ENOSYS.  Some functions are actually named
12836     something starting with __ and the normal name is an alias.  */
12837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12838 choke me
12839 #else
12840 $ac_func();
12841 #endif
12842
12843 ; return 0; }
12844 EOF
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12846   rm -rf conftest*
12847   eval "ac_cv_func_$ac_func=yes"
12848 else
12849   echo "configure: failed program was:" >&5
12850   cat conftest.$ac_ext >&5
12851   rm -rf conftest*
12852   eval "ac_cv_func_$ac_func=no"
12853 fi
12854 rm -f conftest*
12855 fi
12856
12857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12858   echo "$ac_t""yes" 1>&6
12859     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12860   cat >> confdefs.h <<EOF
12861 #define $ac_tr_func 1
12862 EOF
12863  
12864 else
12865   echo "$ac_t""no" 1>&6
12866 fi
12867 done
12868     
12869     fi
12870   fi
12871
12872   
12873   
12874   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12875 echo "configure:12876: checking for isnanf declaration" >&5
12876   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12877     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12878   echo $ac_n "(cached) $ac_c" 1>&6
12879 else
12880   
12881       
12882       ac_ext=C
12883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12884 ac_cpp='$CXXCPP $CPPFLAGS'
12885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12887 cross_compiling=$ac_cv_prog_cxx_cross
12888
12889       cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892 #include <math.h>
12893                       #ifdef HAVE_IEEEFP_H
12894                       #include <ieeefp.h>
12895                       #endif
12896                      
12897 int main() {
12898  isnanf(0);
12899 ; return 0; }
12900 EOF
12901 if { (eval echo configure:12902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12902   rm -rf conftest*
12903   glibcpp_cv_func_isnanf_use=yes
12904 else
12905   echo "configure: failed program was:" >&5
12906   cat conftest.$ac_ext >&5
12907   rm -rf conftest*
12908   glibcpp_cv_func_isnanf_use=no
12909 fi
12910 rm -f conftest*
12911       ac_ext=c
12912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12913 ac_cpp='$CPP $CPPFLAGS'
12914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12916 cross_compiling=$ac_cv_prog_cc_cross
12917
12918     
12919 fi
12920
12921   fi
12922   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12923
12924   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12925     for ac_func in isnanf
12926 do
12927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_func" >&5
12929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930   echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932   cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936     which can conflict with char $ac_func(); below.  */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error.  */
12939 /* We use char because int might match the return type of a gcc2
12940     builtin and then its argument prototype would still apply.  */
12941 char $ac_func();
12942
12943 int main() {
12944
12945 /* The GNU C library defines this for functions which it implements
12946     to always fail with ENOSYS.  Some functions are actually named
12947     something starting with __ and the normal name is an alias.  */
12948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949 choke me
12950 #else
12951 $ac_func();
12952 #endif
12953
12954 ; return 0; }
12955 EOF
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12957   rm -rf conftest*
12958   eval "ac_cv_func_$ac_func=yes"
12959 else
12960   echo "configure: failed program was:" >&5
12961   cat conftest.$ac_ext >&5
12962   rm -rf conftest*
12963   eval "ac_cv_func_$ac_func=no"
12964 fi
12965 rm -f conftest*
12966 fi
12967
12968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969   echo "$ac_t""yes" 1>&6
12970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971   cat >> confdefs.h <<EOF
12972 #define $ac_tr_func 1
12973 EOF
12974  
12975 else
12976   echo "$ac_t""no" 1>&6
12977 fi
12978 done
12979     
12980   else
12981     
12982   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12983 echo "configure:12984: checking for _isnanf declaration" >&5
12984   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12985     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12986   echo $ac_n "(cached) $ac_c" 1>&6
12987 else
12988   
12989       
12990       ac_ext=C
12991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12992 ac_cpp='$CXXCPP $CPPFLAGS'
12993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12995 cross_compiling=$ac_cv_prog_cxx_cross
12996
12997       cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 #include <math.h>
13001                       #ifdef HAVE_IEEEFP_H
13002                       #include <ieeefp.h>
13003                       #endif
13004                      
13005 int main() {
13006  _isnanf(0);
13007 ; return 0; }
13008 EOF
13009 if { (eval echo configure:13010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13010   rm -rf conftest*
13011   glibcpp_cv_func__isnanf_use=yes
13012 else
13013   echo "configure: failed program was:" >&5
13014   cat conftest.$ac_ext >&5
13015   rm -rf conftest*
13016   glibcpp_cv_func__isnanf_use=no
13017 fi
13018 rm -f conftest*
13019       ac_ext=c
13020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13021 ac_cpp='$CPP $CPPFLAGS'
13022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13024 cross_compiling=$ac_cv_prog_cc_cross
13025
13026     
13027 fi
13028
13029   fi
13030   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13031
13032     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13033       for ac_func in _isnanf
13034 do
13035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13036 echo "configure:13037: checking for $ac_func" >&5
13037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13038   echo $ac_n "(cached) $ac_c" 1>&6
13039 else
13040   cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044     which can conflict with char $ac_func(); below.  */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error.  */
13047 /* We use char because int might match the return type of a gcc2
13048     builtin and then its argument prototype would still apply.  */
13049 char $ac_func();
13050
13051 int main() {
13052
13053 /* The GNU C library defines this for functions which it implements
13054     to always fail with ENOSYS.  Some functions are actually named
13055     something starting with __ and the normal name is an alias.  */
13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057 choke me
13058 #else
13059 $ac_func();
13060 #endif
13061
13062 ; return 0; }
13063 EOF
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065   rm -rf conftest*
13066   eval "ac_cv_func_$ac_func=yes"
13067 else
13068   echo "configure: failed program was:" >&5
13069   cat conftest.$ac_ext >&5
13070   rm -rf conftest*
13071   eval "ac_cv_func_$ac_func=no"
13072 fi
13073 rm -f conftest*
13074 fi
13075
13076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13077   echo "$ac_t""yes" 1>&6
13078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13079   cat >> confdefs.h <<EOF
13080 #define $ac_tr_func 1
13081 EOF
13082  
13083 else
13084   echo "$ac_t""no" 1>&6
13085 fi
13086 done
13087     
13088     fi
13089   fi
13090
13091   
13092   
13093   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13094 echo "configure:13095: checking for isinff declaration" >&5
13095   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13096     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13097   echo $ac_n "(cached) $ac_c" 1>&6
13098 else
13099   
13100       
13101       ac_ext=C
13102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13106 cross_compiling=$ac_cv_prog_cxx_cross
13107
13108       cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <math.h>
13112                       #ifdef HAVE_IEEEFP_H
13113                       #include <ieeefp.h>
13114                       #endif
13115                      
13116 int main() {
13117  isinff(0);
13118 ; return 0; }
13119 EOF
13120 if { (eval echo configure:13121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13121   rm -rf conftest*
13122   glibcpp_cv_func_isinff_use=yes
13123 else
13124   echo "configure: failed program was:" >&5
13125   cat conftest.$ac_ext >&5
13126   rm -rf conftest*
13127   glibcpp_cv_func_isinff_use=no
13128 fi
13129 rm -f conftest*
13130       ac_ext=c
13131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13135 cross_compiling=$ac_cv_prog_cc_cross
13136
13137     
13138 fi
13139
13140   fi
13141   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13142
13143   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13144     for ac_func in isinff
13145 do
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149   echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151   cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155     which can conflict with char $ac_func(); below.  */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error.  */
13158 /* We use char because int might match the return type of a gcc2
13159     builtin and then its argument prototype would still apply.  */
13160 char $ac_func();
13161
13162 int main() {
13163
13164 /* The GNU C library defines this for functions which it implements
13165     to always fail with ENOSYS.  Some functions are actually named
13166     something starting with __ and the normal name is an alias.  */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13172
13173 ; return 0; }
13174 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176   rm -rf conftest*
13177   eval "ac_cv_func_$ac_func=yes"
13178 else
13179   echo "configure: failed program was:" >&5
13180   cat conftest.$ac_ext >&5
13181   rm -rf conftest*
13182   eval "ac_cv_func_$ac_func=no"
13183 fi
13184 rm -f conftest*
13185 fi
13186
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188   echo "$ac_t""yes" 1>&6
13189     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190   cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13192 EOF
13193  
13194 else
13195   echo "$ac_t""no" 1>&6
13196 fi
13197 done
13198     
13199   else
13200     
13201   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13202 echo "configure:13203: checking for _isinff declaration" >&5
13203   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13204     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13205   echo $ac_n "(cached) $ac_c" 1>&6
13206 else
13207   
13208       
13209       ac_ext=C
13210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13214 cross_compiling=$ac_cv_prog_cxx_cross
13215
13216       cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <math.h>
13220                       #ifdef HAVE_IEEEFP_H
13221                       #include <ieeefp.h>
13222                       #endif
13223                      
13224 int main() {
13225  _isinff(0);
13226 ; return 0; }
13227 EOF
13228 if { (eval echo configure:13229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13229   rm -rf conftest*
13230   glibcpp_cv_func__isinff_use=yes
13231 else
13232   echo "configure: failed program was:" >&5
13233   cat conftest.$ac_ext >&5
13234   rm -rf conftest*
13235   glibcpp_cv_func__isinff_use=no
13236 fi
13237 rm -f conftest*
13238       ac_ext=c
13239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243 cross_compiling=$ac_cv_prog_cc_cross
13244
13245     
13246 fi
13247
13248   fi
13249   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13250
13251     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13252       for ac_func in _isinff
13253 do
13254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_func" >&5
13256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13257   echo $ac_n "(cached) $ac_c" 1>&6
13258 else
13259   cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 /* System header to define __stub macros and hopefully few prototypes,
13263     which can conflict with char $ac_func(); below.  */
13264 #include <assert.h>
13265 /* Override any gcc2 internal prototype to avoid an error.  */
13266 /* We use char because int might match the return type of a gcc2
13267     builtin and then its argument prototype would still apply.  */
13268 char $ac_func();
13269
13270 int main() {
13271
13272 /* The GNU C library defines this for functions which it implements
13273     to always fail with ENOSYS.  Some functions are actually named
13274     something starting with __ and the normal name is an alias.  */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 $ac_func();
13279 #endif
13280
13281 ; return 0; }
13282 EOF
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284   rm -rf conftest*
13285   eval "ac_cv_func_$ac_func=yes"
13286 else
13287   echo "configure: failed program was:" >&5
13288   cat conftest.$ac_ext >&5
13289   rm -rf conftest*
13290   eval "ac_cv_func_$ac_func=no"
13291 fi
13292 rm -f conftest*
13293 fi
13294
13295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13296   echo "$ac_t""yes" 1>&6
13297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13298   cat >> confdefs.h <<EOF
13299 #define $ac_tr_func 1
13300 EOF
13301  
13302 else
13303   echo "$ac_t""no" 1>&6
13304 fi
13305 done
13306     
13307     fi
13308   fi
13309
13310   
13311   
13312   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13313 echo "configure:13314: checking for atan2f declaration" >&5
13314   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13315     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13316   echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13318   
13319       
13320       ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13326
13327       cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331 int main() {
13332  atan2f(0, 0);
13333 ; return 0; }
13334 EOF
13335 if { (eval echo configure:13336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13336   rm -rf conftest*
13337   glibcpp_cv_func_atan2f_use=yes
13338 else
13339   echo "configure: failed program was:" >&5
13340   cat conftest.$ac_ext >&5
13341   rm -rf conftest*
13342   glibcpp_cv_func_atan2f_use=no
13343 fi
13344 rm -f conftest*
13345       ac_ext=c
13346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13347 ac_cpp='$CPP $CPPFLAGS'
13348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13350 cross_compiling=$ac_cv_prog_cc_cross
13351
13352     
13353 fi
13354
13355   fi
13356   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13357
13358   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13359     for ac_func in atan2f
13360 do
13361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13362 echo "configure:13363: checking for $ac_func" >&5
13363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13364   echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366   cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* System header to define __stub macros and hopefully few prototypes,
13370     which can conflict with char $ac_func(); below.  */
13371 #include <assert.h>
13372 /* Override any gcc2 internal prototype to avoid an error.  */
13373 /* We use char because int might match the return type of a gcc2
13374     builtin and then its argument prototype would still apply.  */
13375 char $ac_func();
13376
13377 int main() {
13378
13379 /* The GNU C library defines this for functions which it implements
13380     to always fail with ENOSYS.  Some functions are actually named
13381     something starting with __ and the normal name is an alias.  */
13382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13383 choke me
13384 #else
13385 $ac_func();
13386 #endif
13387
13388 ; return 0; }
13389 EOF
13390 if { (eval echo configure:13391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13391   rm -rf conftest*
13392   eval "ac_cv_func_$ac_func=yes"
13393 else
13394   echo "configure: failed program was:" >&5
13395   cat conftest.$ac_ext >&5
13396   rm -rf conftest*
13397   eval "ac_cv_func_$ac_func=no"
13398 fi
13399 rm -f conftest*
13400 fi
13401
13402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13403   echo "$ac_t""yes" 1>&6
13404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13405   cat >> confdefs.h <<EOF
13406 #define $ac_tr_func 1
13407 EOF
13408  
13409 else
13410   echo "$ac_t""no" 1>&6
13411 fi
13412 done
13413     
13414   else
13415     
13416   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13417 echo "configure:13418: checking for _atan2f declaration" >&5
13418   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13419     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13420   echo $ac_n "(cached) $ac_c" 1>&6
13421 else
13422   
13423       
13424       ac_ext=C
13425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13426 ac_cpp='$CXXCPP $CPPFLAGS'
13427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13429 cross_compiling=$ac_cv_prog_cxx_cross
13430
13431       cat > conftest.$ac_ext <<EOF
13432 #line 13433 "configure"
13433 #include "confdefs.h"
13434 #include <math.h>
13435 int main() {
13436  _atan2f(0, 0);
13437 ; return 0; }
13438 EOF
13439 if { (eval echo configure:13440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13440   rm -rf conftest*
13441   glibcpp_cv_func__atan2f_use=yes
13442 else
13443   echo "configure: failed program was:" >&5
13444   cat conftest.$ac_ext >&5
13445   rm -rf conftest*
13446   glibcpp_cv_func__atan2f_use=no
13447 fi
13448 rm -f conftest*
13449       ac_ext=c
13450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13451 ac_cpp='$CPP $CPPFLAGS'
13452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13454 cross_compiling=$ac_cv_prog_cc_cross
13455
13456     
13457 fi
13458
13459   fi
13460   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13461
13462     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13463       for ac_func in _atan2f
13464 do
13465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13466 echo "configure:13467: checking for $ac_func" >&5
13467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13468   echo $ac_n "(cached) $ac_c" 1>&6
13469 else
13470   cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 /* System header to define __stub macros and hopefully few prototypes,
13474     which can conflict with char $ac_func(); below.  */
13475 #include <assert.h>
13476 /* Override any gcc2 internal prototype to avoid an error.  */
13477 /* We use char because int might match the return type of a gcc2
13478     builtin and then its argument prototype would still apply.  */
13479 char $ac_func();
13480
13481 int main() {
13482
13483 /* The GNU C library defines this for functions which it implements
13484     to always fail with ENOSYS.  Some functions are actually named
13485     something starting with __ and the normal name is an alias.  */
13486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13487 choke me
13488 #else
13489 $ac_func();
13490 #endif
13491
13492 ; return 0; }
13493 EOF
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495   rm -rf conftest*
13496   eval "ac_cv_func_$ac_func=yes"
13497 else
13498   echo "configure: failed program was:" >&5
13499   cat conftest.$ac_ext >&5
13500   rm -rf conftest*
13501   eval "ac_cv_func_$ac_func=no"
13502 fi
13503 rm -f conftest*
13504 fi
13505
13506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13507   echo "$ac_t""yes" 1>&6
13508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13509   cat >> confdefs.h <<EOF
13510 #define $ac_tr_func 1
13511 EOF
13512  
13513 else
13514   echo "$ac_t""no" 1>&6
13515 fi
13516 done
13517     
13518     fi
13519   fi
13520
13521   
13522   
13523   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13524 echo "configure:13525: checking for fabsf declaration" >&5
13525   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13526     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13527   echo $ac_n "(cached) $ac_c" 1>&6
13528 else
13529   
13530       
13531       ac_ext=C
13532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13533 ac_cpp='$CXXCPP $CPPFLAGS'
13534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13536 cross_compiling=$ac_cv_prog_cxx_cross
13537
13538       cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 #include <math.h>
13542                       #ifdef HAVE_IEEEFP_H
13543                       #include <ieeefp.h>
13544                       #endif
13545                      
13546 int main() {
13547  fabsf(0);
13548 ; return 0; }
13549 EOF
13550 if { (eval echo configure:13551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13551   rm -rf conftest*
13552   glibcpp_cv_func_fabsf_use=yes
13553 else
13554   echo "configure: failed program was:" >&5
13555   cat conftest.$ac_ext >&5
13556   rm -rf conftest*
13557   glibcpp_cv_func_fabsf_use=no
13558 fi
13559 rm -f conftest*
13560       ac_ext=c
13561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13562 ac_cpp='$CPP $CPPFLAGS'
13563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13565 cross_compiling=$ac_cv_prog_cc_cross
13566
13567     
13568 fi
13569
13570   fi
13571   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13572
13573   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13574     for ac_func in fabsf
13575 do
13576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13577 echo "configure:13578: checking for $ac_func" >&5
13578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13579   echo $ac_n "(cached) $ac_c" 1>&6
13580 else
13581   cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13584 /* System header to define __stub macros and hopefully few prototypes,
13585     which can conflict with char $ac_func(); below.  */
13586 #include <assert.h>
13587 /* Override any gcc2 internal prototype to avoid an error.  */
13588 /* We use char because int might match the return type of a gcc2
13589     builtin and then its argument prototype would still apply.  */
13590 char $ac_func();
13591
13592 int main() {
13593
13594 /* The GNU C library defines this for functions which it implements
13595     to always fail with ENOSYS.  Some functions are actually named
13596     something starting with __ and the normal name is an alias.  */
13597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13598 choke me
13599 #else
13600 $ac_func();
13601 #endif
13602
13603 ; return 0; }
13604 EOF
13605 if { (eval echo configure:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13606   rm -rf conftest*
13607   eval "ac_cv_func_$ac_func=yes"
13608 else
13609   echo "configure: failed program was:" >&5
13610   cat conftest.$ac_ext >&5
13611   rm -rf conftest*
13612   eval "ac_cv_func_$ac_func=no"
13613 fi
13614 rm -f conftest*
13615 fi
13616
13617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13618   echo "$ac_t""yes" 1>&6
13619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13620   cat >> confdefs.h <<EOF
13621 #define $ac_tr_func 1
13622 EOF
13623  
13624 else
13625   echo "$ac_t""no" 1>&6
13626 fi
13627 done
13628     
13629   else
13630     
13631   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13632 echo "configure:13633: checking for _fabsf declaration" >&5
13633   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13634     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13635   echo $ac_n "(cached) $ac_c" 1>&6
13636 else
13637   
13638       
13639       ac_ext=C
13640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13641 ac_cpp='$CXXCPP $CPPFLAGS'
13642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13644 cross_compiling=$ac_cv_prog_cxx_cross
13645
13646       cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 #include <math.h>
13650                       #ifdef HAVE_IEEEFP_H
13651                       #include <ieeefp.h>
13652                       #endif
13653                      
13654 int main() {
13655  _fabsf(0);
13656 ; return 0; }
13657 EOF
13658 if { (eval echo configure:13659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13659   rm -rf conftest*
13660   glibcpp_cv_func__fabsf_use=yes
13661 else
13662   echo "configure: failed program was:" >&5
13663   cat conftest.$ac_ext >&5
13664   rm -rf conftest*
13665   glibcpp_cv_func__fabsf_use=no
13666 fi
13667 rm -f conftest*
13668       ac_ext=c
13669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cc_cross
13674
13675     
13676 fi
13677
13678   fi
13679   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13680
13681     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13682       for ac_func in _fabsf
13683 do
13684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_func" >&5
13686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687   echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13689   cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* System header to define __stub macros and hopefully few prototypes,
13693     which can conflict with char $ac_func(); below.  */
13694 #include <assert.h>
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 /* We use char because int might match the return type of a gcc2
13697     builtin and then its argument prototype would still apply.  */
13698 char $ac_func();
13699
13700 int main() {
13701
13702 /* The GNU C library defines this for functions which it implements
13703     to always fail with ENOSYS.  Some functions are actually named
13704     something starting with __ and the normal name is an alias.  */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 $ac_func();
13709 #endif
13710
13711 ; return 0; }
13712 EOF
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714   rm -rf conftest*
13715   eval "ac_cv_func_$ac_func=yes"
13716 else
13717   echo "configure: failed program was:" >&5
13718   cat conftest.$ac_ext >&5
13719   rm -rf conftest*
13720   eval "ac_cv_func_$ac_func=no"
13721 fi
13722 rm -f conftest*
13723 fi
13724
13725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726   echo "$ac_t""yes" 1>&6
13727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728   cat >> confdefs.h <<EOF
13729 #define $ac_tr_func 1
13730 EOF
13731  
13732 else
13733   echo "$ac_t""no" 1>&6
13734 fi
13735 done
13736     
13737     fi
13738   fi
13739
13740   
13741   
13742   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13743 echo "configure:13744: checking for fmodf declaration" >&5
13744   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13745     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13746   echo $ac_n "(cached) $ac_c" 1>&6
13747 else
13748   
13749       
13750       ac_ext=C
13751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CXXCPP $CPPFLAGS'
13753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cxx_cross
13756
13757       cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <math.h>
13761 int main() {
13762  fmodf(0, 0);
13763 ; return 0; }
13764 EOF
13765 if { (eval echo configure:13766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13766   rm -rf conftest*
13767   glibcpp_cv_func_fmodf_use=yes
13768 else
13769   echo "configure: failed program was:" >&5
13770   cat conftest.$ac_ext >&5
13771   rm -rf conftest*
13772   glibcpp_cv_func_fmodf_use=no
13773 fi
13774 rm -f conftest*
13775       ac_ext=c
13776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13777 ac_cpp='$CPP $CPPFLAGS'
13778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13780 cross_compiling=$ac_cv_prog_cc_cross
13781
13782     
13783 fi
13784
13785   fi
13786   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13787
13788   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13789     for ac_func in fmodf
13790 do
13791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13792 echo "configure:13793: checking for $ac_func" >&5
13793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13794   echo $ac_n "(cached) $ac_c" 1>&6
13795 else
13796   cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* System header to define __stub macros and hopefully few prototypes,
13800     which can conflict with char $ac_func(); below.  */
13801 #include <assert.h>
13802 /* Override any gcc2 internal prototype to avoid an error.  */
13803 /* We use char because int might match the return type of a gcc2
13804     builtin and then its argument prototype would still apply.  */
13805 char $ac_func();
13806
13807 int main() {
13808
13809 /* The GNU C library defines this for functions which it implements
13810     to always fail with ENOSYS.  Some functions are actually named
13811     something starting with __ and the normal name is an alias.  */
13812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13813 choke me
13814 #else
13815 $ac_func();
13816 #endif
13817
13818 ; return 0; }
13819 EOF
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13821   rm -rf conftest*
13822   eval "ac_cv_func_$ac_func=yes"
13823 else
13824   echo "configure: failed program was:" >&5
13825   cat conftest.$ac_ext >&5
13826   rm -rf conftest*
13827   eval "ac_cv_func_$ac_func=no"
13828 fi
13829 rm -f conftest*
13830 fi
13831
13832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13833   echo "$ac_t""yes" 1>&6
13834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13835   cat >> confdefs.h <<EOF
13836 #define $ac_tr_func 1
13837 EOF
13838  
13839 else
13840   echo "$ac_t""no" 1>&6
13841 fi
13842 done
13843     
13844   else
13845     
13846   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13847 echo "configure:13848: checking for _fmodf declaration" >&5
13848   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13849     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13850   echo $ac_n "(cached) $ac_c" 1>&6
13851 else
13852   
13853       
13854       ac_ext=C
13855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13856 ac_cpp='$CXXCPP $CPPFLAGS'
13857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13859 cross_compiling=$ac_cv_prog_cxx_cross
13860
13861       cat > conftest.$ac_ext <<EOF
13862 #line 13863 "configure"
13863 #include "confdefs.h"
13864 #include <math.h>
13865 int main() {
13866  _fmodf(0, 0);
13867 ; return 0; }
13868 EOF
13869 if { (eval echo configure:13870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13870   rm -rf conftest*
13871   glibcpp_cv_func__fmodf_use=yes
13872 else
13873   echo "configure: failed program was:" >&5
13874   cat conftest.$ac_ext >&5
13875   rm -rf conftest*
13876   glibcpp_cv_func__fmodf_use=no
13877 fi
13878 rm -f conftest*
13879       ac_ext=c
13880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13884 cross_compiling=$ac_cv_prog_cc_cross
13885
13886     
13887 fi
13888
13889   fi
13890   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13891
13892     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13893       for ac_func in _fmodf
13894 do
13895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13896 echo "configure:13897: checking for $ac_func" >&5
13897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13898   echo $ac_n "(cached) $ac_c" 1>&6
13899 else
13900   cat > conftest.$ac_ext <<EOF
13901 #line 13902 "configure"
13902 #include "confdefs.h"
13903 /* System header to define __stub macros and hopefully few prototypes,
13904     which can conflict with char $ac_func(); below.  */
13905 #include <assert.h>
13906 /* Override any gcc2 internal prototype to avoid an error.  */
13907 /* We use char because int might match the return type of a gcc2
13908     builtin and then its argument prototype would still apply.  */
13909 char $ac_func();
13910
13911 int main() {
13912
13913 /* The GNU C library defines this for functions which it implements
13914     to always fail with ENOSYS.  Some functions are actually named
13915     something starting with __ and the normal name is an alias.  */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 choke me
13918 #else
13919 $ac_func();
13920 #endif
13921
13922 ; return 0; }
13923 EOF
13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925   rm -rf conftest*
13926   eval "ac_cv_func_$ac_func=yes"
13927 else
13928   echo "configure: failed program was:" >&5
13929   cat conftest.$ac_ext >&5
13930   rm -rf conftest*
13931   eval "ac_cv_func_$ac_func=no"
13932 fi
13933 rm -f conftest*
13934 fi
13935
13936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13937   echo "$ac_t""yes" 1>&6
13938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13939   cat >> confdefs.h <<EOF
13940 #define $ac_tr_func 1
13941 EOF
13942  
13943 else
13944   echo "$ac_t""no" 1>&6
13945 fi
13946 done
13947     
13948     fi
13949   fi
13950
13951   
13952   
13953   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13954 echo "configure:13955: checking for frexpf declaration" >&5
13955   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13956     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13957   echo $ac_n "(cached) $ac_c" 1>&6
13958 else
13959   
13960       
13961       ac_ext=C
13962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13963 ac_cpp='$CXXCPP $CPPFLAGS'
13964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13966 cross_compiling=$ac_cv_prog_cxx_cross
13967
13968       cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 #include <math.h>
13972 int main() {
13973  frexpf(0, 0);
13974 ; return 0; }
13975 EOF
13976 if { (eval echo configure:13977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13977   rm -rf conftest*
13978   glibcpp_cv_func_frexpf_use=yes
13979 else
13980   echo "configure: failed program was:" >&5
13981   cat conftest.$ac_ext >&5
13982   rm -rf conftest*
13983   glibcpp_cv_func_frexpf_use=no
13984 fi
13985 rm -f conftest*
13986       ac_ext=c
13987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13988 ac_cpp='$CPP $CPPFLAGS'
13989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13991 cross_compiling=$ac_cv_prog_cc_cross
13992
13993     
13994 fi
13995
13996   fi
13997   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13998
13999   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14000     for ac_func in frexpf
14001 do
14002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14003 echo "configure:14004: checking for $ac_func" >&5
14004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14005   echo $ac_n "(cached) $ac_c" 1>&6
14006 else
14007   cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* System header to define __stub macros and hopefully few prototypes,
14011     which can conflict with char $ac_func(); below.  */
14012 #include <assert.h>
14013 /* Override any gcc2 internal prototype to avoid an error.  */
14014 /* We use char because int might match the return type of a gcc2
14015     builtin and then its argument prototype would still apply.  */
14016 char $ac_func();
14017
14018 int main() {
14019
14020 /* The GNU C library defines this for functions which it implements
14021     to always fail with ENOSYS.  Some functions are actually named
14022     something starting with __ and the normal name is an alias.  */
14023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14024 choke me
14025 #else
14026 $ac_func();
14027 #endif
14028
14029 ; return 0; }
14030 EOF
14031 if { (eval echo configure:14032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14032   rm -rf conftest*
14033   eval "ac_cv_func_$ac_func=yes"
14034 else
14035   echo "configure: failed program was:" >&5
14036   cat conftest.$ac_ext >&5
14037   rm -rf conftest*
14038   eval "ac_cv_func_$ac_func=no"
14039 fi
14040 rm -f conftest*
14041 fi
14042
14043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14044   echo "$ac_t""yes" 1>&6
14045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14046   cat >> confdefs.h <<EOF
14047 #define $ac_tr_func 1
14048 EOF
14049  
14050 else
14051   echo "$ac_t""no" 1>&6
14052 fi
14053 done
14054     
14055   else
14056     
14057   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14058 echo "configure:14059: checking for _frexpf declaration" >&5
14059   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14060     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14061   echo $ac_n "(cached) $ac_c" 1>&6
14062 else
14063   
14064       
14065       ac_ext=C
14066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14067 ac_cpp='$CXXCPP $CPPFLAGS'
14068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14070 cross_compiling=$ac_cv_prog_cxx_cross
14071
14072       cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure"
14074 #include "confdefs.h"
14075 #include <math.h>
14076 int main() {
14077  _frexpf(0, 0);
14078 ; return 0; }
14079 EOF
14080 if { (eval echo configure:14081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14081   rm -rf conftest*
14082   glibcpp_cv_func__frexpf_use=yes
14083 else
14084   echo "configure: failed program was:" >&5
14085   cat conftest.$ac_ext >&5
14086   rm -rf conftest*
14087   glibcpp_cv_func__frexpf_use=no
14088 fi
14089 rm -f conftest*
14090       ac_ext=c
14091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14092 ac_cpp='$CPP $CPPFLAGS'
14093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14095 cross_compiling=$ac_cv_prog_cc_cross
14096
14097     
14098 fi
14099
14100   fi
14101   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14102
14103     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14104       for ac_func in _frexpf
14105 do
14106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14107 echo "configure:14108: checking for $ac_func" >&5
14108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14109   echo $ac_n "(cached) $ac_c" 1>&6
14110 else
14111   cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 /* System header to define __stub macros and hopefully few prototypes,
14115     which can conflict with char $ac_func(); below.  */
14116 #include <assert.h>
14117 /* Override any gcc2 internal prototype to avoid an error.  */
14118 /* We use char because int might match the return type of a gcc2
14119     builtin and then its argument prototype would still apply.  */
14120 char $ac_func();
14121
14122 int main() {
14123
14124 /* The GNU C library defines this for functions which it implements
14125     to always fail with ENOSYS.  Some functions are actually named
14126     something starting with __ and the normal name is an alias.  */
14127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14128 choke me
14129 #else
14130 $ac_func();
14131 #endif
14132
14133 ; return 0; }
14134 EOF
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14136   rm -rf conftest*
14137   eval "ac_cv_func_$ac_func=yes"
14138 else
14139   echo "configure: failed program was:" >&5
14140   cat conftest.$ac_ext >&5
14141   rm -rf conftest*
14142   eval "ac_cv_func_$ac_func=no"
14143 fi
14144 rm -f conftest*
14145 fi
14146
14147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14148   echo "$ac_t""yes" 1>&6
14149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14150   cat >> confdefs.h <<EOF
14151 #define $ac_tr_func 1
14152 EOF
14153  
14154 else
14155   echo "$ac_t""no" 1>&6
14156 fi
14157 done
14158     
14159     fi
14160   fi
14161
14162   
14163   
14164   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14165 echo "configure:14166: checking for hypotf declaration" >&5
14166   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14167     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14168   echo $ac_n "(cached) $ac_c" 1>&6
14169 else
14170   
14171       
14172       ac_ext=C
14173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14174 ac_cpp='$CXXCPP $CPPFLAGS'
14175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14177 cross_compiling=$ac_cv_prog_cxx_cross
14178
14179       cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14182 #include <math.h>
14183 int main() {
14184  hypotf(0, 0);
14185 ; return 0; }
14186 EOF
14187 if { (eval echo configure:14188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14188   rm -rf conftest*
14189   glibcpp_cv_func_hypotf_use=yes
14190 else
14191   echo "configure: failed program was:" >&5
14192   cat conftest.$ac_ext >&5
14193   rm -rf conftest*
14194   glibcpp_cv_func_hypotf_use=no
14195 fi
14196 rm -f conftest*
14197       ac_ext=c
14198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202 cross_compiling=$ac_cv_prog_cc_cross
14203
14204     
14205 fi
14206
14207   fi
14208   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14209
14210   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14211     for ac_func in hypotf
14212 do
14213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14214 echo "configure:14215: checking for $ac_func" >&5
14215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14216   echo $ac_n "(cached) $ac_c" 1>&6
14217 else
14218   cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 /* System header to define __stub macros and hopefully few prototypes,
14222     which can conflict with char $ac_func(); below.  */
14223 #include <assert.h>
14224 /* Override any gcc2 internal prototype to avoid an error.  */
14225 /* We use char because int might match the return type of a gcc2
14226     builtin and then its argument prototype would still apply.  */
14227 char $ac_func();
14228
14229 int main() {
14230
14231 /* The GNU C library defines this for functions which it implements
14232     to always fail with ENOSYS.  Some functions are actually named
14233     something starting with __ and the normal name is an alias.  */
14234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14235 choke me
14236 #else
14237 $ac_func();
14238 #endif
14239
14240 ; return 0; }
14241 EOF
14242 if { (eval echo configure:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14243   rm -rf conftest*
14244   eval "ac_cv_func_$ac_func=yes"
14245 else
14246   echo "configure: failed program was:" >&5
14247   cat conftest.$ac_ext >&5
14248   rm -rf conftest*
14249   eval "ac_cv_func_$ac_func=no"
14250 fi
14251 rm -f conftest*
14252 fi
14253
14254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14255   echo "$ac_t""yes" 1>&6
14256     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14257   cat >> confdefs.h <<EOF
14258 #define $ac_tr_func 1
14259 EOF
14260  
14261 else
14262   echo "$ac_t""no" 1>&6
14263 fi
14264 done
14265     
14266   else
14267     
14268   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14269 echo "configure:14270: checking for _hypotf declaration" >&5
14270   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14271     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14272   echo $ac_n "(cached) $ac_c" 1>&6
14273 else
14274   
14275       
14276       ac_ext=C
14277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14278 ac_cpp='$CXXCPP $CPPFLAGS'
14279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14281 cross_compiling=$ac_cv_prog_cxx_cross
14282
14283       cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 #include <math.h>
14287 int main() {
14288  _hypotf(0, 0);
14289 ; return 0; }
14290 EOF
14291 if { (eval echo configure:14292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14292   rm -rf conftest*
14293   glibcpp_cv_func__hypotf_use=yes
14294 else
14295   echo "configure: failed program was:" >&5
14296   cat conftest.$ac_ext >&5
14297   rm -rf conftest*
14298   glibcpp_cv_func__hypotf_use=no
14299 fi
14300 rm -f conftest*
14301       ac_ext=c
14302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14303 ac_cpp='$CPP $CPPFLAGS'
14304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14306 cross_compiling=$ac_cv_prog_cc_cross
14307
14308     
14309 fi
14310
14311   fi
14312   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14313
14314     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14315       for ac_func in _hypotf
14316 do
14317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14318 echo "configure:14319: checking for $ac_func" >&5
14319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14320   echo $ac_n "(cached) $ac_c" 1>&6
14321 else
14322   cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 /* System header to define __stub macros and hopefully few prototypes,
14326     which can conflict with char $ac_func(); below.  */
14327 #include <assert.h>
14328 /* Override any gcc2 internal prototype to avoid an error.  */
14329 /* We use char because int might match the return type of a gcc2
14330     builtin and then its argument prototype would still apply.  */
14331 char $ac_func();
14332
14333 int main() {
14334
14335 /* The GNU C library defines this for functions which it implements
14336     to always fail with ENOSYS.  Some functions are actually named
14337     something starting with __ and the normal name is an alias.  */
14338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14339 choke me
14340 #else
14341 $ac_func();
14342 #endif
14343
14344 ; return 0; }
14345 EOF
14346 if { (eval echo configure:14347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347   rm -rf conftest*
14348   eval "ac_cv_func_$ac_func=yes"
14349 else
14350   echo "configure: failed program was:" >&5
14351   cat conftest.$ac_ext >&5
14352   rm -rf conftest*
14353   eval "ac_cv_func_$ac_func=no"
14354 fi
14355 rm -f conftest*
14356 fi
14357
14358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14359   echo "$ac_t""yes" 1>&6
14360     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14361   cat >> confdefs.h <<EOF
14362 #define $ac_tr_func 1
14363 EOF
14364  
14365 else
14366   echo "$ac_t""no" 1>&6
14367 fi
14368 done
14369     
14370     fi
14371   fi
14372
14373   
14374   
14375   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14376 echo "configure:14377: checking for ldexpf declaration" >&5
14377   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14378     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14379   echo $ac_n "(cached) $ac_c" 1>&6
14380 else
14381   
14382       
14383       ac_ext=C
14384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14385 ac_cpp='$CXXCPP $CPPFLAGS'
14386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14388 cross_compiling=$ac_cv_prog_cxx_cross
14389
14390       cat > conftest.$ac_ext <<EOF
14391 #line 14392 "configure"
14392 #include "confdefs.h"
14393 #include <math.h>
14394 int main() {
14395  ldexpf(0, 0);
14396 ; return 0; }
14397 EOF
14398 if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14399   rm -rf conftest*
14400   glibcpp_cv_func_ldexpf_use=yes
14401 else
14402   echo "configure: failed program was:" >&5
14403   cat conftest.$ac_ext >&5
14404   rm -rf conftest*
14405   glibcpp_cv_func_ldexpf_use=no
14406 fi
14407 rm -f conftest*
14408       ac_ext=c
14409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14410 ac_cpp='$CPP $CPPFLAGS'
14411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14413 cross_compiling=$ac_cv_prog_cc_cross
14414
14415     
14416 fi
14417
14418   fi
14419   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14420
14421   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14422     for ac_func in ldexpf
14423 do
14424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14425 echo "configure:14426: checking for $ac_func" >&5
14426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14427   echo $ac_n "(cached) $ac_c" 1>&6
14428 else
14429   cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 /* System header to define __stub macros and hopefully few prototypes,
14433     which can conflict with char $ac_func(); below.  */
14434 #include <assert.h>
14435 /* Override any gcc2 internal prototype to avoid an error.  */
14436 /* We use char because int might match the return type of a gcc2
14437     builtin and then its argument prototype would still apply.  */
14438 char $ac_func();
14439
14440 int main() {
14441
14442 /* The GNU C library defines this for functions which it implements
14443     to always fail with ENOSYS.  Some functions are actually named
14444     something starting with __ and the normal name is an alias.  */
14445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14446 choke me
14447 #else
14448 $ac_func();
14449 #endif
14450
14451 ; return 0; }
14452 EOF
14453 if { (eval echo configure:14454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14454   rm -rf conftest*
14455   eval "ac_cv_func_$ac_func=yes"
14456 else
14457   echo "configure: failed program was:" >&5
14458   cat conftest.$ac_ext >&5
14459   rm -rf conftest*
14460   eval "ac_cv_func_$ac_func=no"
14461 fi
14462 rm -f conftest*
14463 fi
14464
14465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14466   echo "$ac_t""yes" 1>&6
14467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14468   cat >> confdefs.h <<EOF
14469 #define $ac_tr_func 1
14470 EOF
14471  
14472 else
14473   echo "$ac_t""no" 1>&6
14474 fi
14475 done
14476     
14477   else
14478     
14479   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14480 echo "configure:14481: checking for _ldexpf declaration" >&5
14481   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14482     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14483   echo $ac_n "(cached) $ac_c" 1>&6
14484 else
14485   
14486       
14487       ac_ext=C
14488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14489 ac_cpp='$CXXCPP $CPPFLAGS'
14490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14492 cross_compiling=$ac_cv_prog_cxx_cross
14493
14494       cat > conftest.$ac_ext <<EOF
14495 #line 14496 "configure"
14496 #include "confdefs.h"
14497 #include <math.h>
14498 int main() {
14499  _ldexpf(0, 0);
14500 ; return 0; }
14501 EOF
14502 if { (eval echo configure:14503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14503   rm -rf conftest*
14504   glibcpp_cv_func__ldexpf_use=yes
14505 else
14506   echo "configure: failed program was:" >&5
14507   cat conftest.$ac_ext >&5
14508   rm -rf conftest*
14509   glibcpp_cv_func__ldexpf_use=no
14510 fi
14511 rm -f conftest*
14512       ac_ext=c
14513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14517 cross_compiling=$ac_cv_prog_cc_cross
14518
14519     
14520 fi
14521
14522   fi
14523   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14524
14525     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14526       for ac_func in _ldexpf
14527 do
14528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14529 echo "configure:14530: checking for $ac_func" >&5
14530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14531   echo $ac_n "(cached) $ac_c" 1>&6
14532 else
14533   cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14536 /* System header to define __stub macros and hopefully few prototypes,
14537     which can conflict with char $ac_func(); below.  */
14538 #include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error.  */
14540 /* We use char because int might match the return type of a gcc2
14541     builtin and then its argument prototype would still apply.  */
14542 char $ac_func();
14543
14544 int main() {
14545
14546 /* The GNU C library defines this for functions which it implements
14547     to always fail with ENOSYS.  Some functions are actually named
14548     something starting with __ and the normal name is an alias.  */
14549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14550 choke me
14551 #else
14552 $ac_func();
14553 #endif
14554
14555 ; return 0; }
14556 EOF
14557 if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558   rm -rf conftest*
14559   eval "ac_cv_func_$ac_func=yes"
14560 else
14561   echo "configure: failed program was:" >&5
14562   cat conftest.$ac_ext >&5
14563   rm -rf conftest*
14564   eval "ac_cv_func_$ac_func=no"
14565 fi
14566 rm -f conftest*
14567 fi
14568
14569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14570   echo "$ac_t""yes" 1>&6
14571     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14572   cat >> confdefs.h <<EOF
14573 #define $ac_tr_func 1
14574 EOF
14575  
14576 else
14577   echo "$ac_t""no" 1>&6
14578 fi
14579 done
14580     
14581     fi
14582   fi
14583
14584   
14585   
14586   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14587 echo "configure:14588: checking for logf declaration" >&5
14588   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14589     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14590   echo $ac_n "(cached) $ac_c" 1>&6
14591 else
14592   
14593       
14594       ac_ext=C
14595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14596 ac_cpp='$CXXCPP $CPPFLAGS'
14597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14599 cross_compiling=$ac_cv_prog_cxx_cross
14600
14601       cat > conftest.$ac_ext <<EOF
14602 #line 14603 "configure"
14603 #include "confdefs.h"
14604 #include <math.h>
14605                       #ifdef HAVE_IEEEFP_H
14606                       #include <ieeefp.h>
14607                       #endif
14608                      
14609 int main() {
14610  logf(0);
14611 ; return 0; }
14612 EOF
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14614   rm -rf conftest*
14615   glibcpp_cv_func_logf_use=yes
14616 else
14617   echo "configure: failed program was:" >&5
14618   cat conftest.$ac_ext >&5
14619   rm -rf conftest*
14620   glibcpp_cv_func_logf_use=no
14621 fi
14622 rm -f conftest*
14623       ac_ext=c
14624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14625 ac_cpp='$CPP $CPPFLAGS'
14626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14628 cross_compiling=$ac_cv_prog_cc_cross
14629
14630     
14631 fi
14632
14633   fi
14634   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14635
14636   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14637     for ac_func in logf
14638 do
14639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14640 echo "configure:14641: checking for $ac_func" >&5
14641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14642   echo $ac_n "(cached) $ac_c" 1>&6
14643 else
14644   cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 /* System header to define __stub macros and hopefully few prototypes,
14648     which can conflict with char $ac_func(); below.  */
14649 #include <assert.h>
14650 /* Override any gcc2 internal prototype to avoid an error.  */
14651 /* We use char because int might match the return type of a gcc2
14652     builtin and then its argument prototype would still apply.  */
14653 char $ac_func();
14654
14655 int main() {
14656
14657 /* The GNU C library defines this for functions which it implements
14658     to always fail with ENOSYS.  Some functions are actually named
14659     something starting with __ and the normal name is an alias.  */
14660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14661 choke me
14662 #else
14663 $ac_func();
14664 #endif
14665
14666 ; return 0; }
14667 EOF
14668 if { (eval echo configure:14669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14669   rm -rf conftest*
14670   eval "ac_cv_func_$ac_func=yes"
14671 else
14672   echo "configure: failed program was:" >&5
14673   cat conftest.$ac_ext >&5
14674   rm -rf conftest*
14675   eval "ac_cv_func_$ac_func=no"
14676 fi
14677 rm -f conftest*
14678 fi
14679
14680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14681   echo "$ac_t""yes" 1>&6
14682     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14683   cat >> confdefs.h <<EOF
14684 #define $ac_tr_func 1
14685 EOF
14686  
14687 else
14688   echo "$ac_t""no" 1>&6
14689 fi
14690 done
14691     
14692   else
14693     
14694   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14695 echo "configure:14696: checking for _logf declaration" >&5
14696   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14697     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14698   echo $ac_n "(cached) $ac_c" 1>&6
14699 else
14700   
14701       
14702       ac_ext=C
14703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14704 ac_cpp='$CXXCPP $CPPFLAGS'
14705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14707 cross_compiling=$ac_cv_prog_cxx_cross
14708
14709       cat > conftest.$ac_ext <<EOF
14710 #line 14711 "configure"
14711 #include "confdefs.h"
14712 #include <math.h>
14713                       #ifdef HAVE_IEEEFP_H
14714                       #include <ieeefp.h>
14715                       #endif
14716                      
14717 int main() {
14718  _logf(0);
14719 ; return 0; }
14720 EOF
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14722   rm -rf conftest*
14723   glibcpp_cv_func__logf_use=yes
14724 else
14725   echo "configure: failed program was:" >&5
14726   cat conftest.$ac_ext >&5
14727   rm -rf conftest*
14728   glibcpp_cv_func__logf_use=no
14729 fi
14730 rm -f conftest*
14731       ac_ext=c
14732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14736 cross_compiling=$ac_cv_prog_cc_cross
14737
14738     
14739 fi
14740
14741   fi
14742   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14743
14744     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14745       for ac_func in _logf
14746 do
14747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14748 echo "configure:14749: checking for $ac_func" >&5
14749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14750   echo $ac_n "(cached) $ac_c" 1>&6
14751 else
14752   cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 /* System header to define __stub macros and hopefully few prototypes,
14756     which can conflict with char $ac_func(); below.  */
14757 #include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error.  */
14759 /* We use char because int might match the return type of a gcc2
14760     builtin and then its argument prototype would still apply.  */
14761 char $ac_func();
14762
14763 int main() {
14764
14765 /* The GNU C library defines this for functions which it implements
14766     to always fail with ENOSYS.  Some functions are actually named
14767     something starting with __ and the normal name is an alias.  */
14768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14769 choke me
14770 #else
14771 $ac_func();
14772 #endif
14773
14774 ; return 0; }
14775 EOF
14776 if { (eval echo configure:14777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14777   rm -rf conftest*
14778   eval "ac_cv_func_$ac_func=yes"
14779 else
14780   echo "configure: failed program was:" >&5
14781   cat conftest.$ac_ext >&5
14782   rm -rf conftest*
14783   eval "ac_cv_func_$ac_func=no"
14784 fi
14785 rm -f conftest*
14786 fi
14787
14788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14789   echo "$ac_t""yes" 1>&6
14790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14791   cat >> confdefs.h <<EOF
14792 #define $ac_tr_func 1
14793 EOF
14794  
14795 else
14796   echo "$ac_t""no" 1>&6
14797 fi
14798 done
14799     
14800     fi
14801   fi
14802
14803   
14804   
14805   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14806 echo "configure:14807: checking for log10f declaration" >&5
14807   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14808     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14809   echo $ac_n "(cached) $ac_c" 1>&6
14810 else
14811   
14812       
14813       ac_ext=C
14814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14815 ac_cpp='$CXXCPP $CPPFLAGS'
14816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14818 cross_compiling=$ac_cv_prog_cxx_cross
14819
14820       cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 #include <math.h>
14824                       #ifdef HAVE_IEEEFP_H
14825                       #include <ieeefp.h>
14826                       #endif
14827                      
14828 int main() {
14829  log10f(0);
14830 ; return 0; }
14831 EOF
14832 if { (eval echo configure:14833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14833   rm -rf conftest*
14834   glibcpp_cv_func_log10f_use=yes
14835 else
14836   echo "configure: failed program was:" >&5
14837   cat conftest.$ac_ext >&5
14838   rm -rf conftest*
14839   glibcpp_cv_func_log10f_use=no
14840 fi
14841 rm -f conftest*
14842       ac_ext=c
14843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14847 cross_compiling=$ac_cv_prog_cc_cross
14848
14849     
14850 fi
14851
14852   fi
14853   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14854
14855   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14856     for ac_func in log10f
14857 do
14858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14859 echo "configure:14860: checking for $ac_func" >&5
14860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14861   echo $ac_n "(cached) $ac_c" 1>&6
14862 else
14863   cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* System header to define __stub macros and hopefully few prototypes,
14867     which can conflict with char $ac_func(); below.  */
14868 #include <assert.h>
14869 /* Override any gcc2 internal prototype to avoid an error.  */
14870 /* We use char because int might match the return type of a gcc2
14871     builtin and then its argument prototype would still apply.  */
14872 char $ac_func();
14873
14874 int main() {
14875
14876 /* The GNU C library defines this for functions which it implements
14877     to always fail with ENOSYS.  Some functions are actually named
14878     something starting with __ and the normal name is an alias.  */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 $ac_func();
14883 #endif
14884
14885 ; return 0; }
14886 EOF
14887 if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888   rm -rf conftest*
14889   eval "ac_cv_func_$ac_func=yes"
14890 else
14891   echo "configure: failed program was:" >&5
14892   cat conftest.$ac_ext >&5
14893   rm -rf conftest*
14894   eval "ac_cv_func_$ac_func=no"
14895 fi
14896 rm -f conftest*
14897 fi
14898
14899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14900   echo "$ac_t""yes" 1>&6
14901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14902   cat >> confdefs.h <<EOF
14903 #define $ac_tr_func 1
14904 EOF
14905  
14906 else
14907   echo "$ac_t""no" 1>&6
14908 fi
14909 done
14910     
14911   else
14912     
14913   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14914 echo "configure:14915: checking for _log10f declaration" >&5
14915   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14916     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14917   echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919   
14920       
14921       ac_ext=C
14922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14926 cross_compiling=$ac_cv_prog_cxx_cross
14927
14928       cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 #include <math.h>
14932                       #ifdef HAVE_IEEEFP_H
14933                       #include <ieeefp.h>
14934                       #endif
14935                      
14936 int main() {
14937  _log10f(0);
14938 ; return 0; }
14939 EOF
14940 if { (eval echo configure:14941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14941   rm -rf conftest*
14942   glibcpp_cv_func__log10f_use=yes
14943 else
14944   echo "configure: failed program was:" >&5
14945   cat conftest.$ac_ext >&5
14946   rm -rf conftest*
14947   glibcpp_cv_func__log10f_use=no
14948 fi
14949 rm -f conftest*
14950       ac_ext=c
14951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14955 cross_compiling=$ac_cv_prog_cc_cross
14956
14957     
14958 fi
14959
14960   fi
14961   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14962
14963     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14964       for ac_func in _log10f
14965 do
14966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14967 echo "configure:14968: checking for $ac_func" >&5
14968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14969   echo $ac_n "(cached) $ac_c" 1>&6
14970 else
14971   cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 /* System header to define __stub macros and hopefully few prototypes,
14975     which can conflict with char $ac_func(); below.  */
14976 #include <assert.h>
14977 /* Override any gcc2 internal prototype to avoid an error.  */
14978 /* We use char because int might match the return type of a gcc2
14979     builtin and then its argument prototype would still apply.  */
14980 char $ac_func();
14981
14982 int main() {
14983
14984 /* The GNU C library defines this for functions which it implements
14985     to always fail with ENOSYS.  Some functions are actually named
14986     something starting with __ and the normal name is an alias.  */
14987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14988 choke me
14989 #else
14990 $ac_func();
14991 #endif
14992
14993 ; return 0; }
14994 EOF
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14996   rm -rf conftest*
14997   eval "ac_cv_func_$ac_func=yes"
14998 else
14999   echo "configure: failed program was:" >&5
15000   cat conftest.$ac_ext >&5
15001   rm -rf conftest*
15002   eval "ac_cv_func_$ac_func=no"
15003 fi
15004 rm -f conftest*
15005 fi
15006
15007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15008   echo "$ac_t""yes" 1>&6
15009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15010   cat >> confdefs.h <<EOF
15011 #define $ac_tr_func 1
15012 EOF
15013  
15014 else
15015   echo "$ac_t""no" 1>&6
15016 fi
15017 done
15018     
15019     fi
15020   fi
15021
15022   
15023   
15024   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15025 echo "configure:15026: checking for modff declaration" >&5
15026   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15027     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15028   echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15030   
15031       
15032       ac_ext=C
15033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CXXCPP $CPPFLAGS'
15035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cxx_cross
15038
15039       cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 #include <math.h>
15043 int main() {
15044  modff(0, 0);
15045 ; return 0; }
15046 EOF
15047 if { (eval echo configure:15048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15048   rm -rf conftest*
15049   glibcpp_cv_func_modff_use=yes
15050 else
15051   echo "configure: failed program was:" >&5
15052   cat conftest.$ac_ext >&5
15053   rm -rf conftest*
15054   glibcpp_cv_func_modff_use=no
15055 fi
15056 rm -f conftest*
15057       ac_ext=c
15058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15059 ac_cpp='$CPP $CPPFLAGS'
15060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15062 cross_compiling=$ac_cv_prog_cc_cross
15063
15064     
15065 fi
15066
15067   fi
15068   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15069
15070   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15071     for ac_func in modff
15072 do
15073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15074 echo "configure:15075: checking for $ac_func" >&5
15075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15076   echo $ac_n "(cached) $ac_c" 1>&6
15077 else
15078   cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 /* System header to define __stub macros and hopefully few prototypes,
15082     which can conflict with char $ac_func(); below.  */
15083 #include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error.  */
15085 /* We use char because int might match the return type of a gcc2
15086     builtin and then its argument prototype would still apply.  */
15087 char $ac_func();
15088
15089 int main() {
15090
15091 /* The GNU C library defines this for functions which it implements
15092     to always fail with ENOSYS.  Some functions are actually named
15093     something starting with __ and the normal name is an alias.  */
15094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15095 choke me
15096 #else
15097 $ac_func();
15098 #endif
15099
15100 ; return 0; }
15101 EOF
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15103   rm -rf conftest*
15104   eval "ac_cv_func_$ac_func=yes"
15105 else
15106   echo "configure: failed program was:" >&5
15107   cat conftest.$ac_ext >&5
15108   rm -rf conftest*
15109   eval "ac_cv_func_$ac_func=no"
15110 fi
15111 rm -f conftest*
15112 fi
15113
15114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15115   echo "$ac_t""yes" 1>&6
15116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15117   cat >> confdefs.h <<EOF
15118 #define $ac_tr_func 1
15119 EOF
15120  
15121 else
15122   echo "$ac_t""no" 1>&6
15123 fi
15124 done
15125     
15126   else
15127     
15128   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15129 echo "configure:15130: checking for _modff declaration" >&5
15130   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15131     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15132   echo $ac_n "(cached) $ac_c" 1>&6
15133 else
15134   
15135       
15136       ac_ext=C
15137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15138 ac_cpp='$CXXCPP $CPPFLAGS'
15139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15141 cross_compiling=$ac_cv_prog_cxx_cross
15142
15143       cat > conftest.$ac_ext <<EOF
15144 #line 15145 "configure"
15145 #include "confdefs.h"
15146 #include <math.h>
15147 int main() {
15148  _modff(0, 0);
15149 ; return 0; }
15150 EOF
15151 if { (eval echo configure:15152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15152   rm -rf conftest*
15153   glibcpp_cv_func__modff_use=yes
15154 else
15155   echo "configure: failed program was:" >&5
15156   cat conftest.$ac_ext >&5
15157   rm -rf conftest*
15158   glibcpp_cv_func__modff_use=no
15159 fi
15160 rm -f conftest*
15161       ac_ext=c
15162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15163 ac_cpp='$CPP $CPPFLAGS'
15164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15166 cross_compiling=$ac_cv_prog_cc_cross
15167
15168     
15169 fi
15170
15171   fi
15172   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15173
15174     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15175       for ac_func in _modff
15176 do
15177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15178 echo "configure:15179: checking for $ac_func" >&5
15179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15180   echo $ac_n "(cached) $ac_c" 1>&6
15181 else
15182   cat > conftest.$ac_ext <<EOF
15183 #line 15184 "configure"
15184 #include "confdefs.h"
15185 /* System header to define __stub macros and hopefully few prototypes,
15186     which can conflict with char $ac_func(); below.  */
15187 #include <assert.h>
15188 /* Override any gcc2 internal prototype to avoid an error.  */
15189 /* We use char because int might match the return type of a gcc2
15190     builtin and then its argument prototype would still apply.  */
15191 char $ac_func();
15192
15193 int main() {
15194
15195 /* The GNU C library defines this for functions which it implements
15196     to always fail with ENOSYS.  Some functions are actually named
15197     something starting with __ and the normal name is an alias.  */
15198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15199 choke me
15200 #else
15201 $ac_func();
15202 #endif
15203
15204 ; return 0; }
15205 EOF
15206 if { (eval echo configure:15207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15207   rm -rf conftest*
15208   eval "ac_cv_func_$ac_func=yes"
15209 else
15210   echo "configure: failed program was:" >&5
15211   cat conftest.$ac_ext >&5
15212   rm -rf conftest*
15213   eval "ac_cv_func_$ac_func=no"
15214 fi
15215 rm -f conftest*
15216 fi
15217
15218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15219   echo "$ac_t""yes" 1>&6
15220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15221   cat >> confdefs.h <<EOF
15222 #define $ac_tr_func 1
15223 EOF
15224  
15225 else
15226   echo "$ac_t""no" 1>&6
15227 fi
15228 done
15229     
15230     fi
15231   fi
15232
15233   
15234   
15235   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15236 echo "configure:15237: checking for powf declaration" >&5
15237   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15238     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15239   echo $ac_n "(cached) $ac_c" 1>&6
15240 else
15241   
15242       
15243       ac_ext=C
15244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15245 ac_cpp='$CXXCPP $CPPFLAGS'
15246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15248 cross_compiling=$ac_cv_prog_cxx_cross
15249
15250       cat > conftest.$ac_ext <<EOF
15251 #line 15252 "configure"
15252 #include "confdefs.h"
15253 #include <math.h>
15254 int main() {
15255  powf(0, 0);
15256 ; return 0; }
15257 EOF
15258 if { (eval echo configure:15259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15259   rm -rf conftest*
15260   glibcpp_cv_func_powf_use=yes
15261 else
15262   echo "configure: failed program was:" >&5
15263   cat conftest.$ac_ext >&5
15264   rm -rf conftest*
15265   glibcpp_cv_func_powf_use=no
15266 fi
15267 rm -f conftest*
15268       ac_ext=c
15269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15273 cross_compiling=$ac_cv_prog_cc_cross
15274
15275     
15276 fi
15277
15278   fi
15279   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15280
15281   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15282     for ac_func in powf
15283 do
15284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15285 echo "configure:15286: checking for $ac_func" >&5
15286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15287   echo $ac_n "(cached) $ac_c" 1>&6
15288 else
15289   cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 /* System header to define __stub macros and hopefully few prototypes,
15293     which can conflict with char $ac_func(); below.  */
15294 #include <assert.h>
15295 /* Override any gcc2 internal prototype to avoid an error.  */
15296 /* We use char because int might match the return type of a gcc2
15297     builtin and then its argument prototype would still apply.  */
15298 char $ac_func();
15299
15300 int main() {
15301
15302 /* The GNU C library defines this for functions which it implements
15303     to always fail with ENOSYS.  Some functions are actually named
15304     something starting with __ and the normal name is an alias.  */
15305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15306 choke me
15307 #else
15308 $ac_func();
15309 #endif
15310
15311 ; return 0; }
15312 EOF
15313 if { (eval echo configure:15314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15314   rm -rf conftest*
15315   eval "ac_cv_func_$ac_func=yes"
15316 else
15317   echo "configure: failed program was:" >&5
15318   cat conftest.$ac_ext >&5
15319   rm -rf conftest*
15320   eval "ac_cv_func_$ac_func=no"
15321 fi
15322 rm -f conftest*
15323 fi
15324
15325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15326   echo "$ac_t""yes" 1>&6
15327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15328   cat >> confdefs.h <<EOF
15329 #define $ac_tr_func 1
15330 EOF
15331  
15332 else
15333   echo "$ac_t""no" 1>&6
15334 fi
15335 done
15336     
15337   else
15338     
15339   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15340 echo "configure:15341: checking for _powf declaration" >&5
15341   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15342     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15343   echo $ac_n "(cached) $ac_c" 1>&6
15344 else
15345   
15346       
15347       ac_ext=C
15348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15349 ac_cpp='$CXXCPP $CPPFLAGS'
15350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15352 cross_compiling=$ac_cv_prog_cxx_cross
15353
15354       cat > conftest.$ac_ext <<EOF
15355 #line 15356 "configure"
15356 #include "confdefs.h"
15357 #include <math.h>
15358 int main() {
15359  _powf(0, 0);
15360 ; return 0; }
15361 EOF
15362 if { (eval echo configure:15363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15363   rm -rf conftest*
15364   glibcpp_cv_func__powf_use=yes
15365 else
15366   echo "configure: failed program was:" >&5
15367   cat conftest.$ac_ext >&5
15368   rm -rf conftest*
15369   glibcpp_cv_func__powf_use=no
15370 fi
15371 rm -f conftest*
15372       ac_ext=c
15373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15374 ac_cpp='$CPP $CPPFLAGS'
15375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15377 cross_compiling=$ac_cv_prog_cc_cross
15378
15379     
15380 fi
15381
15382   fi
15383   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15384
15385     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15386       for ac_func in _powf
15387 do
15388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15389 echo "configure:15390: checking for $ac_func" >&5
15390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15391   echo $ac_n "(cached) $ac_c" 1>&6
15392 else
15393   cat > conftest.$ac_ext <<EOF
15394 #line 15395 "configure"
15395 #include "confdefs.h"
15396 /* System header to define __stub macros and hopefully few prototypes,
15397     which can conflict with char $ac_func(); below.  */
15398 #include <assert.h>
15399 /* Override any gcc2 internal prototype to avoid an error.  */
15400 /* We use char because int might match the return type of a gcc2
15401     builtin and then its argument prototype would still apply.  */
15402 char $ac_func();
15403
15404 int main() {
15405
15406 /* The GNU C library defines this for functions which it implements
15407     to always fail with ENOSYS.  Some functions are actually named
15408     something starting with __ and the normal name is an alias.  */
15409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15410 choke me
15411 #else
15412 $ac_func();
15413 #endif
15414
15415 ; return 0; }
15416 EOF
15417 if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15418   rm -rf conftest*
15419   eval "ac_cv_func_$ac_func=yes"
15420 else
15421   echo "configure: failed program was:" >&5
15422   cat conftest.$ac_ext >&5
15423   rm -rf conftest*
15424   eval "ac_cv_func_$ac_func=no"
15425 fi
15426 rm -f conftest*
15427 fi
15428
15429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15430   echo "$ac_t""yes" 1>&6
15431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15432   cat >> confdefs.h <<EOF
15433 #define $ac_tr_func 1
15434 EOF
15435  
15436 else
15437   echo "$ac_t""no" 1>&6
15438 fi
15439 done
15440     
15441     fi
15442   fi
15443
15444   
15445   
15446   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15447 echo "configure:15448: checking for sqrtf declaration" >&5
15448   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15449     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15450   echo $ac_n "(cached) $ac_c" 1>&6
15451 else
15452   
15453       
15454       ac_ext=C
15455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15456 ac_cpp='$CXXCPP $CPPFLAGS'
15457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15459 cross_compiling=$ac_cv_prog_cxx_cross
15460
15461       cat > conftest.$ac_ext <<EOF
15462 #line 15463 "configure"
15463 #include "confdefs.h"
15464 #include <math.h>
15465                       #ifdef HAVE_IEEEFP_H
15466                       #include <ieeefp.h>
15467                       #endif
15468                      
15469 int main() {
15470  sqrtf(0);
15471 ; return 0; }
15472 EOF
15473 if { (eval echo configure:15474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15474   rm -rf conftest*
15475   glibcpp_cv_func_sqrtf_use=yes
15476 else
15477   echo "configure: failed program was:" >&5
15478   cat conftest.$ac_ext >&5
15479   rm -rf conftest*
15480   glibcpp_cv_func_sqrtf_use=no
15481 fi
15482 rm -f conftest*
15483       ac_ext=c
15484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15488 cross_compiling=$ac_cv_prog_cc_cross
15489
15490     
15491 fi
15492
15493   fi
15494   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15495
15496   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15497     for ac_func in sqrtf
15498 do
15499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15500 echo "configure:15501: checking for $ac_func" >&5
15501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15502   echo $ac_n "(cached) $ac_c" 1>&6
15503 else
15504   cat > conftest.$ac_ext <<EOF
15505 #line 15506 "configure"
15506 #include "confdefs.h"
15507 /* System header to define __stub macros and hopefully few prototypes,
15508     which can conflict with char $ac_func(); below.  */
15509 #include <assert.h>
15510 /* Override any gcc2 internal prototype to avoid an error.  */
15511 /* We use char because int might match the return type of a gcc2
15512     builtin and then its argument prototype would still apply.  */
15513 char $ac_func();
15514
15515 int main() {
15516
15517 /* The GNU C library defines this for functions which it implements
15518     to always fail with ENOSYS.  Some functions are actually named
15519     something starting with __ and the normal name is an alias.  */
15520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15521 choke me
15522 #else
15523 $ac_func();
15524 #endif
15525
15526 ; return 0; }
15527 EOF
15528 if { (eval echo configure:15529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15529   rm -rf conftest*
15530   eval "ac_cv_func_$ac_func=yes"
15531 else
15532   echo "configure: failed program was:" >&5
15533   cat conftest.$ac_ext >&5
15534   rm -rf conftest*
15535   eval "ac_cv_func_$ac_func=no"
15536 fi
15537 rm -f conftest*
15538 fi
15539
15540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15541   echo "$ac_t""yes" 1>&6
15542     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15543   cat >> confdefs.h <<EOF
15544 #define $ac_tr_func 1
15545 EOF
15546  
15547 else
15548   echo "$ac_t""no" 1>&6
15549 fi
15550 done
15551     
15552   else
15553     
15554   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15555 echo "configure:15556: checking for _sqrtf declaration" >&5
15556   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15557     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15558   echo $ac_n "(cached) $ac_c" 1>&6
15559 else
15560   
15561       
15562       ac_ext=C
15563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15564 ac_cpp='$CXXCPP $CPPFLAGS'
15565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15567 cross_compiling=$ac_cv_prog_cxx_cross
15568
15569       cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 #include <math.h>
15573                       #ifdef HAVE_IEEEFP_H
15574                       #include <ieeefp.h>
15575                       #endif
15576                      
15577 int main() {
15578  _sqrtf(0);
15579 ; return 0; }
15580 EOF
15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15582   rm -rf conftest*
15583   glibcpp_cv_func__sqrtf_use=yes
15584 else
15585   echo "configure: failed program was:" >&5
15586   cat conftest.$ac_ext >&5
15587   rm -rf conftest*
15588   glibcpp_cv_func__sqrtf_use=no
15589 fi
15590 rm -f conftest*
15591       ac_ext=c
15592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15596 cross_compiling=$ac_cv_prog_cc_cross
15597
15598     
15599 fi
15600
15601   fi
15602   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15603
15604     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15605       for ac_func in _sqrtf
15606 do
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610   echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612   cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616     which can conflict with char $ac_func(); below.  */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error.  */
15619 /* We use char because int might match the return type of a gcc2
15620     builtin and then its argument prototype would still apply.  */
15621 char $ac_func();
15622
15623 int main() {
15624
15625 /* The GNU C library defines this for functions which it implements
15626     to always fail with ENOSYS.  Some functions are actually named
15627     something starting with __ and the normal name is an alias.  */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15633
15634 ; return 0; }
15635 EOF
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637   rm -rf conftest*
15638   eval "ac_cv_func_$ac_func=yes"
15639 else
15640   echo "configure: failed program was:" >&5
15641   cat conftest.$ac_ext >&5
15642   rm -rf conftest*
15643   eval "ac_cv_func_$ac_func=no"
15644 fi
15645 rm -f conftest*
15646 fi
15647
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649   echo "$ac_t""yes" 1>&6
15650     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651   cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15653 EOF
15654  
15655 else
15656   echo "$ac_t""no" 1>&6
15657 fi
15658 done
15659     
15660     fi
15661   fi
15662
15663   
15664   
15665   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15666 echo "configure:15667: checking for sincosf declaration" >&5
15667   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15668     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15669   echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15671   
15672       
15673       ac_ext=C
15674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15675 ac_cpp='$CXXCPP $CPPFLAGS'
15676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15678 cross_compiling=$ac_cv_prog_cxx_cross
15679
15680       cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 #include <math.h>
15684 int main() {
15685  sincosf(0, 0, 0);
15686 ; return 0; }
15687 EOF
15688 if { (eval echo configure:15689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15689   rm -rf conftest*
15690   glibcpp_cv_func_sincosf_use=yes
15691 else
15692   echo "configure: failed program was:" >&5
15693   cat conftest.$ac_ext >&5
15694   rm -rf conftest*
15695   glibcpp_cv_func_sincosf_use=no
15696 fi
15697 rm -f conftest*
15698       ac_ext=c
15699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15703 cross_compiling=$ac_cv_prog_cc_cross
15704
15705     
15706 fi
15707
15708   fi
15709   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15710
15711   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15712     for ac_func in sincosf
15713 do
15714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15715 echo "configure:15716: checking for $ac_func" >&5
15716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15717   echo $ac_n "(cached) $ac_c" 1>&6
15718 else
15719   cat > conftest.$ac_ext <<EOF
15720 #line 15721 "configure"
15721 #include "confdefs.h"
15722 /* System header to define __stub macros and hopefully few prototypes,
15723     which can conflict with char $ac_func(); below.  */
15724 #include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error.  */
15726 /* We use char because int might match the return type of a gcc2
15727     builtin and then its argument prototype would still apply.  */
15728 char $ac_func();
15729
15730 int main() {
15731
15732 /* The GNU C library defines this for functions which it implements
15733     to always fail with ENOSYS.  Some functions are actually named
15734     something starting with __ and the normal name is an alias.  */
15735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15736 choke me
15737 #else
15738 $ac_func();
15739 #endif
15740
15741 ; return 0; }
15742 EOF
15743 if { (eval echo configure:15744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15744   rm -rf conftest*
15745   eval "ac_cv_func_$ac_func=yes"
15746 else
15747   echo "configure: failed program was:" >&5
15748   cat conftest.$ac_ext >&5
15749   rm -rf conftest*
15750   eval "ac_cv_func_$ac_func=no"
15751 fi
15752 rm -f conftest*
15753 fi
15754
15755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15756   echo "$ac_t""yes" 1>&6
15757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15758   cat >> confdefs.h <<EOF
15759 #define $ac_tr_func 1
15760 EOF
15761  
15762 else
15763   echo "$ac_t""no" 1>&6
15764 fi
15765 done
15766     
15767   else
15768     
15769   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15770 echo "configure:15771: checking for _sincosf declaration" >&5
15771   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15772     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15773   echo $ac_n "(cached) $ac_c" 1>&6
15774 else
15775   
15776       
15777       ac_ext=C
15778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15779 ac_cpp='$CXXCPP $CPPFLAGS'
15780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15782 cross_compiling=$ac_cv_prog_cxx_cross
15783
15784       cat > conftest.$ac_ext <<EOF
15785 #line 15786 "configure"
15786 #include "confdefs.h"
15787 #include <math.h>
15788 int main() {
15789  _sincosf(0, 0, 0);
15790 ; return 0; }
15791 EOF
15792 if { (eval echo configure:15793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15793   rm -rf conftest*
15794   glibcpp_cv_func__sincosf_use=yes
15795 else
15796   echo "configure: failed program was:" >&5
15797   cat conftest.$ac_ext >&5
15798   rm -rf conftest*
15799   glibcpp_cv_func__sincosf_use=no
15800 fi
15801 rm -f conftest*
15802       ac_ext=c
15803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15804 ac_cpp='$CPP $CPPFLAGS'
15805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15807 cross_compiling=$ac_cv_prog_cc_cross
15808
15809     
15810 fi
15811
15812   fi
15813   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15814
15815     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15816       for ac_func in _sincosf
15817 do
15818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15819 echo "configure:15820: checking for $ac_func" >&5
15820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15821   echo $ac_n "(cached) $ac_c" 1>&6
15822 else
15823   cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure"
15825 #include "confdefs.h"
15826 /* System header to define __stub macros and hopefully few prototypes,
15827     which can conflict with char $ac_func(); below.  */
15828 #include <assert.h>
15829 /* Override any gcc2 internal prototype to avoid an error.  */
15830 /* We use char because int might match the return type of a gcc2
15831     builtin and then its argument prototype would still apply.  */
15832 char $ac_func();
15833
15834 int main() {
15835
15836 /* The GNU C library defines this for functions which it implements
15837     to always fail with ENOSYS.  Some functions are actually named
15838     something starting with __ and the normal name is an alias.  */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 choke me
15841 #else
15842 $ac_func();
15843 #endif
15844
15845 ; return 0; }
15846 EOF
15847 if { (eval echo configure:15848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15848   rm -rf conftest*
15849   eval "ac_cv_func_$ac_func=yes"
15850 else
15851   echo "configure: failed program was:" >&5
15852   cat conftest.$ac_ext >&5
15853   rm -rf conftest*
15854   eval "ac_cv_func_$ac_func=no"
15855 fi
15856 rm -f conftest*
15857 fi
15858
15859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15860   echo "$ac_t""yes" 1>&6
15861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15862   cat >> confdefs.h <<EOF
15863 #define $ac_tr_func 1
15864 EOF
15865  
15866 else
15867   echo "$ac_t""no" 1>&6
15868 fi
15869 done
15870     
15871     fi
15872   fi
15873
15874   
15875   
15876   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15877 echo "configure:15878: checking for finitef declaration" >&5
15878   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15879     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15880   echo $ac_n "(cached) $ac_c" 1>&6
15881 else
15882   
15883       
15884       ac_ext=C
15885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15886 ac_cpp='$CXXCPP $CPPFLAGS'
15887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15889 cross_compiling=$ac_cv_prog_cxx_cross
15890
15891       cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15894 #include <math.h>
15895                       #ifdef HAVE_IEEEFP_H
15896                       #include <ieeefp.h>
15897                       #endif
15898                      
15899 int main() {
15900  finitef(0);
15901 ; return 0; }
15902 EOF
15903 if { (eval echo configure:15904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15904   rm -rf conftest*
15905   glibcpp_cv_func_finitef_use=yes
15906 else
15907   echo "configure: failed program was:" >&5
15908   cat conftest.$ac_ext >&5
15909   rm -rf conftest*
15910   glibcpp_cv_func_finitef_use=no
15911 fi
15912 rm -f conftest*
15913       ac_ext=c
15914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15915 ac_cpp='$CPP $CPPFLAGS'
15916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15918 cross_compiling=$ac_cv_prog_cc_cross
15919
15920     
15921 fi
15922
15923   fi
15924   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15925
15926   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15927     for ac_func in finitef
15928 do
15929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15930 echo "configure:15931: checking for $ac_func" >&5
15931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15932   echo $ac_n "(cached) $ac_c" 1>&6
15933 else
15934   cat > conftest.$ac_ext <<EOF
15935 #line 15936 "configure"
15936 #include "confdefs.h"
15937 /* System header to define __stub macros and hopefully few prototypes,
15938     which can conflict with char $ac_func(); below.  */
15939 #include <assert.h>
15940 /* Override any gcc2 internal prototype to avoid an error.  */
15941 /* We use char because int might match the return type of a gcc2
15942     builtin and then its argument prototype would still apply.  */
15943 char $ac_func();
15944
15945 int main() {
15946
15947 /* The GNU C library defines this for functions which it implements
15948     to always fail with ENOSYS.  Some functions are actually named
15949     something starting with __ and the normal name is an alias.  */
15950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15951 choke me
15952 #else
15953 $ac_func();
15954 #endif
15955
15956 ; return 0; }
15957 EOF
15958 if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959   rm -rf conftest*
15960   eval "ac_cv_func_$ac_func=yes"
15961 else
15962   echo "configure: failed program was:" >&5
15963   cat conftest.$ac_ext >&5
15964   rm -rf conftest*
15965   eval "ac_cv_func_$ac_func=no"
15966 fi
15967 rm -f conftest*
15968 fi
15969
15970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15971   echo "$ac_t""yes" 1>&6
15972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15973   cat >> confdefs.h <<EOF
15974 #define $ac_tr_func 1
15975 EOF
15976  
15977 else
15978   echo "$ac_t""no" 1>&6
15979 fi
15980 done
15981     
15982   else
15983     
15984   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15985 echo "configure:15986: checking for _finitef declaration" >&5
15986   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15987     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15988   echo $ac_n "(cached) $ac_c" 1>&6
15989 else
15990   
15991       
15992       ac_ext=C
15993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15994 ac_cpp='$CXXCPP $CPPFLAGS'
15995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15997 cross_compiling=$ac_cv_prog_cxx_cross
15998
15999       cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 #include <math.h>
16003                       #ifdef HAVE_IEEEFP_H
16004                       #include <ieeefp.h>
16005                       #endif
16006                      
16007 int main() {
16008  _finitef(0);
16009 ; return 0; }
16010 EOF
16011 if { (eval echo configure:16012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16012   rm -rf conftest*
16013   glibcpp_cv_func__finitef_use=yes
16014 else
16015   echo "configure: failed program was:" >&5
16016   cat conftest.$ac_ext >&5
16017   rm -rf conftest*
16018   glibcpp_cv_func__finitef_use=no
16019 fi
16020 rm -f conftest*
16021       ac_ext=c
16022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16026 cross_compiling=$ac_cv_prog_cc_cross
16027
16028     
16029 fi
16030
16031   fi
16032   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16033
16034     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16035       for ac_func in _finitef
16036 do
16037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16038 echo "configure:16039: checking for $ac_func" >&5
16039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16040   echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16042   cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 /* System header to define __stub macros and hopefully few prototypes,
16046     which can conflict with char $ac_func(); below.  */
16047 #include <assert.h>
16048 /* Override any gcc2 internal prototype to avoid an error.  */
16049 /* We use char because int might match the return type of a gcc2
16050     builtin and then its argument prototype would still apply.  */
16051 char $ac_func();
16052
16053 int main() {
16054
16055 /* The GNU C library defines this for functions which it implements
16056     to always fail with ENOSYS.  Some functions are actually named
16057     something starting with __ and the normal name is an alias.  */
16058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 choke me
16060 #else
16061 $ac_func();
16062 #endif
16063
16064 ; return 0; }
16065 EOF
16066 if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16067   rm -rf conftest*
16068   eval "ac_cv_func_$ac_func=yes"
16069 else
16070   echo "configure: failed program was:" >&5
16071   cat conftest.$ac_ext >&5
16072   rm -rf conftest*
16073   eval "ac_cv_func_$ac_func=no"
16074 fi
16075 rm -f conftest*
16076 fi
16077
16078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16079   echo "$ac_t""yes" 1>&6
16080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16081   cat >> confdefs.h <<EOF
16082 #define $ac_tr_func 1
16083 EOF
16084  
16085 else
16086   echo "$ac_t""no" 1>&6
16087 fi
16088 done
16089     
16090     fi
16091   fi
16092
16093
16094     
16095   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16096 echo "configure:16097: checking for long double trig functions" >&5
16097   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16098   echo $ac_n "(cached) $ac_c" 1>&6
16099 else
16100   
16101     
16102     ac_ext=C
16103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16104 ac_cpp='$CXXCPP $CPPFLAGS'
16105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16107 cross_compiling=$ac_cv_prog_cxx_cross
16108
16109     cat > conftest.$ac_ext <<EOF
16110 #line 16111 "configure"
16111 #include "confdefs.h"
16112 #include <math.h>
16113 int main() {
16114  `for x in acosl asinl atanl \
16115                                           cosl sinl tanl \
16116                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16117 ; return 0; }
16118 EOF
16119 if { (eval echo configure:16120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16120   rm -rf conftest*
16121   glibcpp_cv_func_long_double_trig_use=yes
16122 else
16123   echo "configure: failed program was:" >&5
16124   cat conftest.$ac_ext >&5
16125   rm -rf conftest*
16126   glibcpp_cv_func_long_double_trig_use=no
16127 fi
16128 rm -f conftest*
16129     ac_ext=c
16130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16134 cross_compiling=$ac_cv_prog_cc_cross
16135
16136 fi
16137
16138   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16139   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16140     for ac_func in acosl asinl atanl \
16141                                           cosl sinl tanl \
16142                                           coshl sinhl tanhl
16143 do
16144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16145 echo "configure:16146: checking for $ac_func" >&5
16146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16147   echo $ac_n "(cached) $ac_c" 1>&6
16148 else
16149   cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16152 /* System header to define __stub macros and hopefully few prototypes,
16153     which can conflict with char $ac_func(); below.  */
16154 #include <assert.h>
16155 /* Override any gcc2 internal prototype to avoid an error.  */
16156 /* We use char because int might match the return type of a gcc2
16157     builtin and then its argument prototype would still apply.  */
16158 char $ac_func();
16159
16160 int main() {
16161
16162 /* The GNU C library defines this for functions which it implements
16163     to always fail with ENOSYS.  Some functions are actually named
16164     something starting with __ and the normal name is an alias.  */
16165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16166 choke me
16167 #else
16168 $ac_func();
16169 #endif
16170
16171 ; return 0; }
16172 EOF
16173 if { (eval echo configure:16174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16174   rm -rf conftest*
16175   eval "ac_cv_func_$ac_func=yes"
16176 else
16177   echo "configure: failed program was:" >&5
16178   cat conftest.$ac_ext >&5
16179   rm -rf conftest*
16180   eval "ac_cv_func_$ac_func=no"
16181 fi
16182 rm -f conftest*
16183 fi
16184
16185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16186   echo "$ac_t""yes" 1>&6
16187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16188   cat >> confdefs.h <<EOF
16189 #define $ac_tr_func 1
16190 EOF
16191  
16192 else
16193   echo "$ac_t""no" 1>&6
16194 fi
16195 done
16196
16197   fi
16198
16199   
16200   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16201 echo "configure:16202: checking for long double round functions" >&5
16202   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16203   echo $ac_n "(cached) $ac_c" 1>&6
16204 else
16205   
16206     
16207     ac_ext=C
16208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16209 ac_cpp='$CXXCPP $CPPFLAGS'
16210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16212 cross_compiling=$ac_cv_prog_cxx_cross
16213
16214     cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16217 #include <math.h>
16218 int main() {
16219  `for x in ceill floorl; do echo "$x (0);"; done` 
16220 ; return 0; }
16221 EOF
16222 if { (eval echo configure:16223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16223   rm -rf conftest*
16224   glibcpp_cv_func_long_double_round_use=yes
16225 else
16226   echo "configure: failed program was:" >&5
16227   cat conftest.$ac_ext >&5
16228   rm -rf conftest*
16229   glibcpp_cv_func_long_double_round_use=no
16230 fi
16231 rm -f conftest*
16232     ac_ext=c
16233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16234 ac_cpp='$CPP $CPPFLAGS'
16235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16237 cross_compiling=$ac_cv_prog_cc_cross
16238
16239 fi
16240
16241   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16242   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16243     for ac_func in ceill floorl
16244 do
16245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16246 echo "configure:16247: checking for $ac_func" >&5
16247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16248   echo $ac_n "(cached) $ac_c" 1>&6
16249 else
16250   cat > conftest.$ac_ext <<EOF
16251 #line 16252 "configure"
16252 #include "confdefs.h"
16253 /* System header to define __stub macros and hopefully few prototypes,
16254     which can conflict with char $ac_func(); below.  */
16255 #include <assert.h>
16256 /* Override any gcc2 internal prototype to avoid an error.  */
16257 /* We use char because int might match the return type of a gcc2
16258     builtin and then its argument prototype would still apply.  */
16259 char $ac_func();
16260
16261 int main() {
16262
16263 /* The GNU C library defines this for functions which it implements
16264     to always fail with ENOSYS.  Some functions are actually named
16265     something starting with __ and the normal name is an alias.  */
16266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 choke me
16268 #else
16269 $ac_func();
16270 #endif
16271
16272 ; return 0; }
16273 EOF
16274 if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16275   rm -rf conftest*
16276   eval "ac_cv_func_$ac_func=yes"
16277 else
16278   echo "configure: failed program was:" >&5
16279   cat conftest.$ac_ext >&5
16280   rm -rf conftest*
16281   eval "ac_cv_func_$ac_func=no"
16282 fi
16283 rm -f conftest*
16284 fi
16285
16286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16287   echo "$ac_t""yes" 1>&6
16288     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16289   cat >> confdefs.h <<EOF
16290 #define $ac_tr_func 1
16291 EOF
16292  
16293 else
16294   echo "$ac_t""no" 1>&6
16295 fi
16296 done
16297
16298   fi
16299
16300   
16301   
16302   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16303 echo "configure:16304: checking for isnanl declaration" >&5
16304   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16305     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16306   echo $ac_n "(cached) $ac_c" 1>&6
16307 else
16308   
16309       
16310       ac_ext=C
16311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312 ac_cpp='$CXXCPP $CPPFLAGS'
16313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315 cross_compiling=$ac_cv_prog_cxx_cross
16316
16317       cat > conftest.$ac_ext <<EOF
16318 #line 16319 "configure"
16319 #include "confdefs.h"
16320 #include <math.h>
16321                       #ifdef HAVE_IEEEFP_H
16322                       #include <ieeefp.h>
16323                       #endif
16324                      
16325 int main() {
16326  isnanl(0);
16327 ; return 0; }
16328 EOF
16329 if { (eval echo configure:16330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16330   rm -rf conftest*
16331   glibcpp_cv_func_isnanl_use=yes
16332 else
16333   echo "configure: failed program was:" >&5
16334   cat conftest.$ac_ext >&5
16335   rm -rf conftest*
16336   glibcpp_cv_func_isnanl_use=no
16337 fi
16338 rm -f conftest*
16339       ac_ext=c
16340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16341 ac_cpp='$CPP $CPPFLAGS'
16342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16344 cross_compiling=$ac_cv_prog_cc_cross
16345
16346     
16347 fi
16348
16349   fi
16350   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16351
16352   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16353     for ac_func in isnanl
16354 do
16355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16356 echo "configure:16357: checking for $ac_func" >&5
16357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16358   echo $ac_n "(cached) $ac_c" 1>&6
16359 else
16360   cat > conftest.$ac_ext <<EOF
16361 #line 16362 "configure"
16362 #include "confdefs.h"
16363 /* System header to define __stub macros and hopefully few prototypes,
16364     which can conflict with char $ac_func(); below.  */
16365 #include <assert.h>
16366 /* Override any gcc2 internal prototype to avoid an error.  */
16367 /* We use char because int might match the return type of a gcc2
16368     builtin and then its argument prototype would still apply.  */
16369 char $ac_func();
16370
16371 int main() {
16372
16373 /* The GNU C library defines this for functions which it implements
16374     to always fail with ENOSYS.  Some functions are actually named
16375     something starting with __ and the normal name is an alias.  */
16376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16377 choke me
16378 #else
16379 $ac_func();
16380 #endif
16381
16382 ; return 0; }
16383 EOF
16384 if { (eval echo configure:16385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16385   rm -rf conftest*
16386   eval "ac_cv_func_$ac_func=yes"
16387 else
16388   echo "configure: failed program was:" >&5
16389   cat conftest.$ac_ext >&5
16390   rm -rf conftest*
16391   eval "ac_cv_func_$ac_func=no"
16392 fi
16393 rm -f conftest*
16394 fi
16395
16396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16397   echo "$ac_t""yes" 1>&6
16398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16399   cat >> confdefs.h <<EOF
16400 #define $ac_tr_func 1
16401 EOF
16402  
16403 else
16404   echo "$ac_t""no" 1>&6
16405 fi
16406 done
16407     
16408   else
16409     
16410   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16411 echo "configure:16412: checking for _isnanl declaration" >&5
16412   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16413     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16414   echo $ac_n "(cached) $ac_c" 1>&6
16415 else
16416   
16417       
16418       ac_ext=C
16419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16420 ac_cpp='$CXXCPP $CPPFLAGS'
16421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16423 cross_compiling=$ac_cv_prog_cxx_cross
16424
16425       cat > conftest.$ac_ext <<EOF
16426 #line 16427 "configure"
16427 #include "confdefs.h"
16428 #include <math.h>
16429                       #ifdef HAVE_IEEEFP_H
16430                       #include <ieeefp.h>
16431                       #endif
16432                      
16433 int main() {
16434  _isnanl(0);
16435 ; return 0; }
16436 EOF
16437 if { (eval echo configure:16438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16438   rm -rf conftest*
16439   glibcpp_cv_func__isnanl_use=yes
16440 else
16441   echo "configure: failed program was:" >&5
16442   cat conftest.$ac_ext >&5
16443   rm -rf conftest*
16444   glibcpp_cv_func__isnanl_use=no
16445 fi
16446 rm -f conftest*
16447       ac_ext=c
16448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16449 ac_cpp='$CPP $CPPFLAGS'
16450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16452 cross_compiling=$ac_cv_prog_cc_cross
16453
16454     
16455 fi
16456
16457   fi
16458   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16459
16460     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16461       for ac_func in _isnanl
16462 do
16463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464 echo "configure:16465: checking for $ac_func" >&5
16465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466   echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468   cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 /* System header to define __stub macros and hopefully few prototypes,
16472     which can conflict with char $ac_func(); below.  */
16473 #include <assert.h>
16474 /* Override any gcc2 internal prototype to avoid an error.  */
16475 /* We use char because int might match the return type of a gcc2
16476     builtin and then its argument prototype would still apply.  */
16477 char $ac_func();
16478
16479 int main() {
16480
16481 /* The GNU C library defines this for functions which it implements
16482     to always fail with ENOSYS.  Some functions are actually named
16483     something starting with __ and the normal name is an alias.  */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 $ac_func();
16488 #endif
16489
16490 ; return 0; }
16491 EOF
16492 if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16493   rm -rf conftest*
16494   eval "ac_cv_func_$ac_func=yes"
16495 else
16496   echo "configure: failed program was:" >&5
16497   cat conftest.$ac_ext >&5
16498   rm -rf conftest*
16499   eval "ac_cv_func_$ac_func=no"
16500 fi
16501 rm -f conftest*
16502 fi
16503
16504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505   echo "$ac_t""yes" 1>&6
16506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507   cat >> confdefs.h <<EOF
16508 #define $ac_tr_func 1
16509 EOF
16510  
16511 else
16512   echo "$ac_t""no" 1>&6
16513 fi
16514 done
16515     
16516     fi
16517   fi
16518
16519   
16520   
16521   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16522 echo "configure:16523: checking for isinfl declaration" >&5
16523   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16524     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16525   echo $ac_n "(cached) $ac_c" 1>&6
16526 else
16527   
16528       
16529       ac_ext=C
16530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16531 ac_cpp='$CXXCPP $CPPFLAGS'
16532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16534 cross_compiling=$ac_cv_prog_cxx_cross
16535
16536       cat > conftest.$ac_ext <<EOF
16537 #line 16538 "configure"
16538 #include "confdefs.h"
16539 #include <math.h>
16540                       #ifdef HAVE_IEEEFP_H
16541                       #include <ieeefp.h>
16542                       #endif
16543                      
16544 int main() {
16545  isinfl(0);
16546 ; return 0; }
16547 EOF
16548 if { (eval echo configure:16549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16549   rm -rf conftest*
16550   glibcpp_cv_func_isinfl_use=yes
16551 else
16552   echo "configure: failed program was:" >&5
16553   cat conftest.$ac_ext >&5
16554   rm -rf conftest*
16555   glibcpp_cv_func_isinfl_use=no
16556 fi
16557 rm -f conftest*
16558       ac_ext=c
16559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16560 ac_cpp='$CPP $CPPFLAGS'
16561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16563 cross_compiling=$ac_cv_prog_cc_cross
16564
16565     
16566 fi
16567
16568   fi
16569   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16570
16571   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16572     for ac_func in isinfl
16573 do
16574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_func" >&5
16576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577   echo $ac_n "(cached) $ac_c" 1>&6
16578 else
16579   cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 /* System header to define __stub macros and hopefully few prototypes,
16583     which can conflict with char $ac_func(); below.  */
16584 #include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error.  */
16586 /* We use char because int might match the return type of a gcc2
16587     builtin and then its argument prototype would still apply.  */
16588 char $ac_func();
16589
16590 int main() {
16591
16592 /* The GNU C library defines this for functions which it implements
16593     to always fail with ENOSYS.  Some functions are actually named
16594     something starting with __ and the normal name is an alias.  */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 $ac_func();
16599 #endif
16600
16601 ; return 0; }
16602 EOF
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604   rm -rf conftest*
16605   eval "ac_cv_func_$ac_func=yes"
16606 else
16607   echo "configure: failed program was:" >&5
16608   cat conftest.$ac_ext >&5
16609   rm -rf conftest*
16610   eval "ac_cv_func_$ac_func=no"
16611 fi
16612 rm -f conftest*
16613 fi
16614
16615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616   echo "$ac_t""yes" 1>&6
16617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618   cat >> confdefs.h <<EOF
16619 #define $ac_tr_func 1
16620 EOF
16621  
16622 else
16623   echo "$ac_t""no" 1>&6
16624 fi
16625 done
16626     
16627   else
16628     
16629   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16630 echo "configure:16631: checking for _isinfl declaration" >&5
16631   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16632     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16633   echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16635   
16636       
16637       ac_ext=C
16638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16639 ac_cpp='$CXXCPP $CPPFLAGS'
16640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16642 cross_compiling=$ac_cv_prog_cxx_cross
16643
16644       cat > conftest.$ac_ext <<EOF
16645 #line 16646 "configure"
16646 #include "confdefs.h"
16647 #include <math.h>
16648                       #ifdef HAVE_IEEEFP_H
16649                       #include <ieeefp.h>
16650                       #endif
16651                      
16652 int main() {
16653  _isinfl(0);
16654 ; return 0; }
16655 EOF
16656 if { (eval echo configure:16657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16657   rm -rf conftest*
16658   glibcpp_cv_func__isinfl_use=yes
16659 else
16660   echo "configure: failed program was:" >&5
16661   cat conftest.$ac_ext >&5
16662   rm -rf conftest*
16663   glibcpp_cv_func__isinfl_use=no
16664 fi
16665 rm -f conftest*
16666       ac_ext=c
16667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16668 ac_cpp='$CPP $CPPFLAGS'
16669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16671 cross_compiling=$ac_cv_prog_cc_cross
16672
16673     
16674 fi
16675
16676   fi
16677   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16678
16679     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16680       for ac_func in _isinfl
16681 do
16682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16683 echo "configure:16684: checking for $ac_func" >&5
16684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16685   echo $ac_n "(cached) $ac_c" 1>&6
16686 else
16687   cat > conftest.$ac_ext <<EOF
16688 #line 16689 "configure"
16689 #include "confdefs.h"
16690 /* System header to define __stub macros and hopefully few prototypes,
16691     which can conflict with char $ac_func(); below.  */
16692 #include <assert.h>
16693 /* Override any gcc2 internal prototype to avoid an error.  */
16694 /* We use char because int might match the return type of a gcc2
16695     builtin and then its argument prototype would still apply.  */
16696 char $ac_func();
16697
16698 int main() {
16699
16700 /* The GNU C library defines this for functions which it implements
16701     to always fail with ENOSYS.  Some functions are actually named
16702     something starting with __ and the normal name is an alias.  */
16703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16704 choke me
16705 #else
16706 $ac_func();
16707 #endif
16708
16709 ; return 0; }
16710 EOF
16711 if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16712   rm -rf conftest*
16713   eval "ac_cv_func_$ac_func=yes"
16714 else
16715   echo "configure: failed program was:" >&5
16716   cat conftest.$ac_ext >&5
16717   rm -rf conftest*
16718   eval "ac_cv_func_$ac_func=no"
16719 fi
16720 rm -f conftest*
16721 fi
16722
16723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16724   echo "$ac_t""yes" 1>&6
16725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16726   cat >> confdefs.h <<EOF
16727 #define $ac_tr_func 1
16728 EOF
16729  
16730 else
16731   echo "$ac_t""no" 1>&6
16732 fi
16733 done
16734     
16735     fi
16736   fi
16737
16738   
16739   
16740   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16741 echo "configure:16742: checking for copysignl declaration" >&5
16742   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16743     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16744   echo $ac_n "(cached) $ac_c" 1>&6
16745 else
16746   
16747       
16748       ac_ext=C
16749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16750 ac_cpp='$CXXCPP $CPPFLAGS'
16751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16753 cross_compiling=$ac_cv_prog_cxx_cross
16754
16755       cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include <math.h>
16759 int main() {
16760  copysignl(0, 0);
16761 ; return 0; }
16762 EOF
16763 if { (eval echo configure:16764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16764   rm -rf conftest*
16765   glibcpp_cv_func_copysignl_use=yes
16766 else
16767   echo "configure: failed program was:" >&5
16768   cat conftest.$ac_ext >&5
16769   rm -rf conftest*
16770   glibcpp_cv_func_copysignl_use=no
16771 fi
16772 rm -f conftest*
16773       ac_ext=c
16774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16775 ac_cpp='$CPP $CPPFLAGS'
16776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16778 cross_compiling=$ac_cv_prog_cc_cross
16779
16780     
16781 fi
16782
16783   fi
16784   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16785
16786   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16787     for ac_func in copysignl
16788 do
16789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16790 echo "configure:16791: checking for $ac_func" >&5
16791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16792   echo $ac_n "(cached) $ac_c" 1>&6
16793 else
16794   cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16797 /* System header to define __stub macros and hopefully few prototypes,
16798     which can conflict with char $ac_func(); below.  */
16799 #include <assert.h>
16800 /* Override any gcc2 internal prototype to avoid an error.  */
16801 /* We use char because int might match the return type of a gcc2
16802     builtin and then its argument prototype would still apply.  */
16803 char $ac_func();
16804
16805 int main() {
16806
16807 /* The GNU C library defines this for functions which it implements
16808     to always fail with ENOSYS.  Some functions are actually named
16809     something starting with __ and the normal name is an alias.  */
16810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16811 choke me
16812 #else
16813 $ac_func();
16814 #endif
16815
16816 ; return 0; }
16817 EOF
16818 if { (eval echo configure:16819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16819   rm -rf conftest*
16820   eval "ac_cv_func_$ac_func=yes"
16821 else
16822   echo "configure: failed program was:" >&5
16823   cat conftest.$ac_ext >&5
16824   rm -rf conftest*
16825   eval "ac_cv_func_$ac_func=no"
16826 fi
16827 rm -f conftest*
16828 fi
16829
16830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16831   echo "$ac_t""yes" 1>&6
16832     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16833   cat >> confdefs.h <<EOF
16834 #define $ac_tr_func 1
16835 EOF
16836  
16837 else
16838   echo "$ac_t""no" 1>&6
16839 fi
16840 done
16841     
16842   else
16843     
16844   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16845 echo "configure:16846: checking for _copysignl declaration" >&5
16846   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16847     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16848   echo $ac_n "(cached) $ac_c" 1>&6
16849 else
16850   
16851       
16852       ac_ext=C
16853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16854 ac_cpp='$CXXCPP $CPPFLAGS'
16855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16857 cross_compiling=$ac_cv_prog_cxx_cross
16858
16859       cat > conftest.$ac_ext <<EOF
16860 #line 16861 "configure"
16861 #include "confdefs.h"
16862 #include <math.h>
16863 int main() {
16864  _copysignl(0, 0);
16865 ; return 0; }
16866 EOF
16867 if { (eval echo configure:16868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16868   rm -rf conftest*
16869   glibcpp_cv_func__copysignl_use=yes
16870 else
16871   echo "configure: failed program was:" >&5
16872   cat conftest.$ac_ext >&5
16873   rm -rf conftest*
16874   glibcpp_cv_func__copysignl_use=no
16875 fi
16876 rm -f conftest*
16877       ac_ext=c
16878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16879 ac_cpp='$CPP $CPPFLAGS'
16880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16882 cross_compiling=$ac_cv_prog_cc_cross
16883
16884     
16885 fi
16886
16887   fi
16888   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16889
16890     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16891       for ac_func in _copysignl
16892 do
16893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16894 echo "configure:16895: checking for $ac_func" >&5
16895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16896   echo $ac_n "(cached) $ac_c" 1>&6
16897 else
16898   cat > conftest.$ac_ext <<EOF
16899 #line 16900 "configure"
16900 #include "confdefs.h"
16901 /* System header to define __stub macros and hopefully few prototypes,
16902     which can conflict with char $ac_func(); below.  */
16903 #include <assert.h>
16904 /* Override any gcc2 internal prototype to avoid an error.  */
16905 /* We use char because int might match the return type of a gcc2
16906     builtin and then its argument prototype would still apply.  */
16907 char $ac_func();
16908
16909 int main() {
16910
16911 /* The GNU C library defines this for functions which it implements
16912     to always fail with ENOSYS.  Some functions are actually named
16913     something starting with __ and the normal name is an alias.  */
16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915 choke me
16916 #else
16917 $ac_func();
16918 #endif
16919
16920 ; return 0; }
16921 EOF
16922 if { (eval echo configure:16923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16923   rm -rf conftest*
16924   eval "ac_cv_func_$ac_func=yes"
16925 else
16926   echo "configure: failed program was:" >&5
16927   cat conftest.$ac_ext >&5
16928   rm -rf conftest*
16929   eval "ac_cv_func_$ac_func=no"
16930 fi
16931 rm -f conftest*
16932 fi
16933
16934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16935   echo "$ac_t""yes" 1>&6
16936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16937   cat >> confdefs.h <<EOF
16938 #define $ac_tr_func 1
16939 EOF
16940  
16941 else
16942   echo "$ac_t""no" 1>&6
16943 fi
16944 done
16945     
16946     fi
16947   fi
16948
16949   
16950   
16951   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16952 echo "configure:16953: checking for atan2l declaration" >&5
16953   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16954     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16955   echo $ac_n "(cached) $ac_c" 1>&6
16956 else
16957   
16958       
16959       ac_ext=C
16960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16961 ac_cpp='$CXXCPP $CPPFLAGS'
16962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16964 cross_compiling=$ac_cv_prog_cxx_cross
16965
16966       cat > conftest.$ac_ext <<EOF
16967 #line 16968 "configure"
16968 #include "confdefs.h"
16969 #include <math.h>
16970 int main() {
16971  atan2l(0, 0);
16972 ; return 0; }
16973 EOF
16974 if { (eval echo configure:16975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16975   rm -rf conftest*
16976   glibcpp_cv_func_atan2l_use=yes
16977 else
16978   echo "configure: failed program was:" >&5
16979   cat conftest.$ac_ext >&5
16980   rm -rf conftest*
16981   glibcpp_cv_func_atan2l_use=no
16982 fi
16983 rm -f conftest*
16984       ac_ext=c
16985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16986 ac_cpp='$CPP $CPPFLAGS'
16987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16989 cross_compiling=$ac_cv_prog_cc_cross
16990
16991     
16992 fi
16993
16994   fi
16995   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16996
16997   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16998     for ac_func in atan2l
16999 do
17000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17001 echo "configure:17002: checking for $ac_func" >&5
17002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17003   echo $ac_n "(cached) $ac_c" 1>&6
17004 else
17005   cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17008 /* System header to define __stub macros and hopefully few prototypes,
17009     which can conflict with char $ac_func(); below.  */
17010 #include <assert.h>
17011 /* Override any gcc2 internal prototype to avoid an error.  */
17012 /* We use char because int might match the return type of a gcc2
17013     builtin and then its argument prototype would still apply.  */
17014 char $ac_func();
17015
17016 int main() {
17017
17018 /* The GNU C library defines this for functions which it implements
17019     to always fail with ENOSYS.  Some functions are actually named
17020     something starting with __ and the normal name is an alias.  */
17021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17022 choke me
17023 #else
17024 $ac_func();
17025 #endif
17026
17027 ; return 0; }
17028 EOF
17029 if { (eval echo configure:17030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17030   rm -rf conftest*
17031   eval "ac_cv_func_$ac_func=yes"
17032 else
17033   echo "configure: failed program was:" >&5
17034   cat conftest.$ac_ext >&5
17035   rm -rf conftest*
17036   eval "ac_cv_func_$ac_func=no"
17037 fi
17038 rm -f conftest*
17039 fi
17040
17041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17042   echo "$ac_t""yes" 1>&6
17043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17044   cat >> confdefs.h <<EOF
17045 #define $ac_tr_func 1
17046 EOF
17047  
17048 else
17049   echo "$ac_t""no" 1>&6
17050 fi
17051 done
17052     
17053   else
17054     
17055   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17056 echo "configure:17057: checking for _atan2l declaration" >&5
17057   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17058     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17059   echo $ac_n "(cached) $ac_c" 1>&6
17060 else
17061   
17062       
17063       ac_ext=C
17064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17065 ac_cpp='$CXXCPP $CPPFLAGS'
17066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17068 cross_compiling=$ac_cv_prog_cxx_cross
17069
17070       cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17073 #include <math.h>
17074 int main() {
17075  _atan2l(0, 0);
17076 ; return 0; }
17077 EOF
17078 if { (eval echo configure:17079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17079   rm -rf conftest*
17080   glibcpp_cv_func__atan2l_use=yes
17081 else
17082   echo "configure: failed program was:" >&5
17083   cat conftest.$ac_ext >&5
17084   rm -rf conftest*
17085   glibcpp_cv_func__atan2l_use=no
17086 fi
17087 rm -f conftest*
17088       ac_ext=c
17089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17090 ac_cpp='$CPP $CPPFLAGS'
17091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17093 cross_compiling=$ac_cv_prog_cc_cross
17094
17095     
17096 fi
17097
17098   fi
17099   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17100
17101     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17102       for ac_func in _atan2l
17103 do
17104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17105 echo "configure:17106: checking for $ac_func" >&5
17106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17107   echo $ac_n "(cached) $ac_c" 1>&6
17108 else
17109   cat > conftest.$ac_ext <<EOF
17110 #line 17111 "configure"
17111 #include "confdefs.h"
17112 /* System header to define __stub macros and hopefully few prototypes,
17113     which can conflict with char $ac_func(); below.  */
17114 #include <assert.h>
17115 /* Override any gcc2 internal prototype to avoid an error.  */
17116 /* We use char because int might match the return type of a gcc2
17117     builtin and then its argument prototype would still apply.  */
17118 char $ac_func();
17119
17120 int main() {
17121
17122 /* The GNU C library defines this for functions which it implements
17123     to always fail with ENOSYS.  Some functions are actually named
17124     something starting with __ and the normal name is an alias.  */
17125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17126 choke me
17127 #else
17128 $ac_func();
17129 #endif
17130
17131 ; return 0; }
17132 EOF
17133 if { (eval echo configure:17134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17134   rm -rf conftest*
17135   eval "ac_cv_func_$ac_func=yes"
17136 else
17137   echo "configure: failed program was:" >&5
17138   cat conftest.$ac_ext >&5
17139   rm -rf conftest*
17140   eval "ac_cv_func_$ac_func=no"
17141 fi
17142 rm -f conftest*
17143 fi
17144
17145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17146   echo "$ac_t""yes" 1>&6
17147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17148   cat >> confdefs.h <<EOF
17149 #define $ac_tr_func 1
17150 EOF
17151  
17152 else
17153   echo "$ac_t""no" 1>&6
17154 fi
17155 done
17156     
17157     fi
17158   fi
17159
17160   
17161   
17162   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17163 echo "configure:17164: checking for expl declaration" >&5
17164   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17165     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17166   echo $ac_n "(cached) $ac_c" 1>&6
17167 else
17168   
17169       
17170       ac_ext=C
17171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17172 ac_cpp='$CXXCPP $CPPFLAGS'
17173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17175 cross_compiling=$ac_cv_prog_cxx_cross
17176
17177       cat > conftest.$ac_ext <<EOF
17178 #line 17179 "configure"
17179 #include "confdefs.h"
17180 #include <math.h>
17181                       #ifdef HAVE_IEEEFP_H
17182                       #include <ieeefp.h>
17183                       #endif
17184                      
17185 int main() {
17186  expl(0);
17187 ; return 0; }
17188 EOF
17189 if { (eval echo configure:17190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17190   rm -rf conftest*
17191   glibcpp_cv_func_expl_use=yes
17192 else
17193   echo "configure: failed program was:" >&5
17194   cat conftest.$ac_ext >&5
17195   rm -rf conftest*
17196   glibcpp_cv_func_expl_use=no
17197 fi
17198 rm -f conftest*
17199       ac_ext=c
17200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17201 ac_cpp='$CPP $CPPFLAGS'
17202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17204 cross_compiling=$ac_cv_prog_cc_cross
17205
17206     
17207 fi
17208
17209   fi
17210   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17211
17212   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17213     for ac_func in expl
17214 do
17215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17216 echo "configure:17217: checking for $ac_func" >&5
17217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17218   echo $ac_n "(cached) $ac_c" 1>&6
17219 else
17220   cat > conftest.$ac_ext <<EOF
17221 #line 17222 "configure"
17222 #include "confdefs.h"
17223 /* System header to define __stub macros and hopefully few prototypes,
17224     which can conflict with char $ac_func(); below.  */
17225 #include <assert.h>
17226 /* Override any gcc2 internal prototype to avoid an error.  */
17227 /* We use char because int might match the return type of a gcc2
17228     builtin and then its argument prototype would still apply.  */
17229 char $ac_func();
17230
17231 int main() {
17232
17233 /* The GNU C library defines this for functions which it implements
17234     to always fail with ENOSYS.  Some functions are actually named
17235     something starting with __ and the normal name is an alias.  */
17236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17237 choke me
17238 #else
17239 $ac_func();
17240 #endif
17241
17242 ; return 0; }
17243 EOF
17244 if { (eval echo configure:17245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17245   rm -rf conftest*
17246   eval "ac_cv_func_$ac_func=yes"
17247 else
17248   echo "configure: failed program was:" >&5
17249   cat conftest.$ac_ext >&5
17250   rm -rf conftest*
17251   eval "ac_cv_func_$ac_func=no"
17252 fi
17253 rm -f conftest*
17254 fi
17255
17256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17257   echo "$ac_t""yes" 1>&6
17258     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17259   cat >> confdefs.h <<EOF
17260 #define $ac_tr_func 1
17261 EOF
17262  
17263 else
17264   echo "$ac_t""no" 1>&6
17265 fi
17266 done
17267     
17268   else
17269     
17270   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17271 echo "configure:17272: checking for _expl declaration" >&5
17272   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17273     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17274   echo $ac_n "(cached) $ac_c" 1>&6
17275 else
17276   
17277       
17278       ac_ext=C
17279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17280 ac_cpp='$CXXCPP $CPPFLAGS'
17281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17283 cross_compiling=$ac_cv_prog_cxx_cross
17284
17285       cat > conftest.$ac_ext <<EOF
17286 #line 17287 "configure"
17287 #include "confdefs.h"
17288 #include <math.h>
17289                       #ifdef HAVE_IEEEFP_H
17290                       #include <ieeefp.h>
17291                       #endif
17292                      
17293 int main() {
17294  _expl(0);
17295 ; return 0; }
17296 EOF
17297 if { (eval echo configure:17298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17298   rm -rf conftest*
17299   glibcpp_cv_func__expl_use=yes
17300 else
17301   echo "configure: failed program was:" >&5
17302   cat conftest.$ac_ext >&5
17303   rm -rf conftest*
17304   glibcpp_cv_func__expl_use=no
17305 fi
17306 rm -f conftest*
17307       ac_ext=c
17308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17309 ac_cpp='$CPP $CPPFLAGS'
17310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17312 cross_compiling=$ac_cv_prog_cc_cross
17313
17314     
17315 fi
17316
17317   fi
17318   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17319
17320     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17321       for ac_func in _expl
17322 do
17323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17324 echo "configure:17325: checking for $ac_func" >&5
17325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17326   echo $ac_n "(cached) $ac_c" 1>&6
17327 else
17328   cat > conftest.$ac_ext <<EOF
17329 #line 17330 "configure"
17330 #include "confdefs.h"
17331 /* System header to define __stub macros and hopefully few prototypes,
17332     which can conflict with char $ac_func(); below.  */
17333 #include <assert.h>
17334 /* Override any gcc2 internal prototype to avoid an error.  */
17335 /* We use char because int might match the return type of a gcc2
17336     builtin and then its argument prototype would still apply.  */
17337 char $ac_func();
17338
17339 int main() {
17340
17341 /* The GNU C library defines this for functions which it implements
17342     to always fail with ENOSYS.  Some functions are actually named
17343     something starting with __ and the normal name is an alias.  */
17344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17345 choke me
17346 #else
17347 $ac_func();
17348 #endif
17349
17350 ; return 0; }
17351 EOF
17352 if { (eval echo configure:17353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17353   rm -rf conftest*
17354   eval "ac_cv_func_$ac_func=yes"
17355 else
17356   echo "configure: failed program was:" >&5
17357   cat conftest.$ac_ext >&5
17358   rm -rf conftest*
17359   eval "ac_cv_func_$ac_func=no"
17360 fi
17361 rm -f conftest*
17362 fi
17363
17364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17365   echo "$ac_t""yes" 1>&6
17366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17367   cat >> confdefs.h <<EOF
17368 #define $ac_tr_func 1
17369 EOF
17370  
17371 else
17372   echo "$ac_t""no" 1>&6
17373 fi
17374 done
17375     
17376     fi
17377   fi
17378
17379   
17380   
17381   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17382 echo "configure:17383: checking for fabsl declaration" >&5
17383   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17384     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17385   echo $ac_n "(cached) $ac_c" 1>&6
17386 else
17387   
17388       
17389       ac_ext=C
17390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17391 ac_cpp='$CXXCPP $CPPFLAGS'
17392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17394 cross_compiling=$ac_cv_prog_cxx_cross
17395
17396       cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.h"
17399 #include <math.h>
17400                       #ifdef HAVE_IEEEFP_H
17401                       #include <ieeefp.h>
17402                       #endif
17403                      
17404 int main() {
17405  fabsl(0);
17406 ; return 0; }
17407 EOF
17408 if { (eval echo configure:17409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17409   rm -rf conftest*
17410   glibcpp_cv_func_fabsl_use=yes
17411 else
17412   echo "configure: failed program was:" >&5
17413   cat conftest.$ac_ext >&5
17414   rm -rf conftest*
17415   glibcpp_cv_func_fabsl_use=no
17416 fi
17417 rm -f conftest*
17418       ac_ext=c
17419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17423 cross_compiling=$ac_cv_prog_cc_cross
17424
17425     
17426 fi
17427
17428   fi
17429   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17430
17431   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17432     for ac_func in fabsl
17433 do
17434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17435 echo "configure:17436: checking for $ac_func" >&5
17436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17437   echo $ac_n "(cached) $ac_c" 1>&6
17438 else
17439   cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17442 /* System header to define __stub macros and hopefully few prototypes,
17443     which can conflict with char $ac_func(); below.  */
17444 #include <assert.h>
17445 /* Override any gcc2 internal prototype to avoid an error.  */
17446 /* We use char because int might match the return type of a gcc2
17447     builtin and then its argument prototype would still apply.  */
17448 char $ac_func();
17449
17450 int main() {
17451
17452 /* The GNU C library defines this for functions which it implements
17453     to always fail with ENOSYS.  Some functions are actually named
17454     something starting with __ and the normal name is an alias.  */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 choke me
17457 #else
17458 $ac_func();
17459 #endif
17460
17461 ; return 0; }
17462 EOF
17463 if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464   rm -rf conftest*
17465   eval "ac_cv_func_$ac_func=yes"
17466 else
17467   echo "configure: failed program was:" >&5
17468   cat conftest.$ac_ext >&5
17469   rm -rf conftest*
17470   eval "ac_cv_func_$ac_func=no"
17471 fi
17472 rm -f conftest*
17473 fi
17474
17475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17476   echo "$ac_t""yes" 1>&6
17477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17478   cat >> confdefs.h <<EOF
17479 #define $ac_tr_func 1
17480 EOF
17481  
17482 else
17483   echo "$ac_t""no" 1>&6
17484 fi
17485 done
17486     
17487   else
17488     
17489   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17490 echo "configure:17491: checking for _fabsl declaration" >&5
17491   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17492     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17493   echo $ac_n "(cached) $ac_c" 1>&6
17494 else
17495   
17496       
17497       ac_ext=C
17498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17499 ac_cpp='$CXXCPP $CPPFLAGS'
17500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17502 cross_compiling=$ac_cv_prog_cxx_cross
17503
17504       cat > conftest.$ac_ext <<EOF
17505 #line 17506 "configure"
17506 #include "confdefs.h"
17507 #include <math.h>
17508                       #ifdef HAVE_IEEEFP_H
17509                       #include <ieeefp.h>
17510                       #endif
17511                      
17512 int main() {
17513  _fabsl(0);
17514 ; return 0; }
17515 EOF
17516 if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17517   rm -rf conftest*
17518   glibcpp_cv_func__fabsl_use=yes
17519 else
17520   echo "configure: failed program was:" >&5
17521   cat conftest.$ac_ext >&5
17522   rm -rf conftest*
17523   glibcpp_cv_func__fabsl_use=no
17524 fi
17525 rm -f conftest*
17526       ac_ext=c
17527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cc_cross
17532
17533     
17534 fi
17535
17536   fi
17537   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17538
17539     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17540       for ac_func in _fabsl
17541 do
17542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17543 echo "configure:17544: checking for $ac_func" >&5
17544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17545   echo $ac_n "(cached) $ac_c" 1>&6
17546 else
17547   cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 /* System header to define __stub macros and hopefully few prototypes,
17551     which can conflict with char $ac_func(); below.  */
17552 #include <assert.h>
17553 /* Override any gcc2 internal prototype to avoid an error.  */
17554 /* We use char because int might match the return type of a gcc2
17555     builtin and then its argument prototype would still apply.  */
17556 char $ac_func();
17557
17558 int main() {
17559
17560 /* The GNU C library defines this for functions which it implements
17561     to always fail with ENOSYS.  Some functions are actually named
17562     something starting with __ and the normal name is an alias.  */
17563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 choke me
17565 #else
17566 $ac_func();
17567 #endif
17568
17569 ; return 0; }
17570 EOF
17571 if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572   rm -rf conftest*
17573   eval "ac_cv_func_$ac_func=yes"
17574 else
17575   echo "configure: failed program was:" >&5
17576   cat conftest.$ac_ext >&5
17577   rm -rf conftest*
17578   eval "ac_cv_func_$ac_func=no"
17579 fi
17580 rm -f conftest*
17581 fi
17582
17583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17584   echo "$ac_t""yes" 1>&6
17585     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17586   cat >> confdefs.h <<EOF
17587 #define $ac_tr_func 1
17588 EOF
17589  
17590 else
17591   echo "$ac_t""no" 1>&6
17592 fi
17593 done
17594     
17595     fi
17596   fi
17597
17598   
17599   
17600   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17601 echo "configure:17602: checking for fmodl declaration" >&5
17602   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17603     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17604   echo $ac_n "(cached) $ac_c" 1>&6
17605 else
17606   
17607       
17608       ac_ext=C
17609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17613 cross_compiling=$ac_cv_prog_cxx_cross
17614
17615       cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <math.h>
17619 int main() {
17620  fmodl(0, 0);
17621 ; return 0; }
17622 EOF
17623 if { (eval echo configure:17624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17624   rm -rf conftest*
17625   glibcpp_cv_func_fmodl_use=yes
17626 else
17627   echo "configure: failed program was:" >&5
17628   cat conftest.$ac_ext >&5
17629   rm -rf conftest*
17630   glibcpp_cv_func_fmodl_use=no
17631 fi
17632 rm -f conftest*
17633       ac_ext=c
17634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17638 cross_compiling=$ac_cv_prog_cc_cross
17639
17640     
17641 fi
17642
17643   fi
17644   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17645
17646   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17647     for ac_func in fmodl
17648 do
17649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17650 echo "configure:17651: checking for $ac_func" >&5
17651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17652   echo $ac_n "(cached) $ac_c" 1>&6
17653 else
17654   cat > conftest.$ac_ext <<EOF
17655 #line 17656 "configure"
17656 #include "confdefs.h"
17657 /* System header to define __stub macros and hopefully few prototypes,
17658     which can conflict with char $ac_func(); below.  */
17659 #include <assert.h>
17660 /* Override any gcc2 internal prototype to avoid an error.  */
17661 /* We use char because int might match the return type of a gcc2
17662     builtin and then its argument prototype would still apply.  */
17663 char $ac_func();
17664
17665 int main() {
17666
17667 /* The GNU C library defines this for functions which it implements
17668     to always fail with ENOSYS.  Some functions are actually named
17669     something starting with __ and the normal name is an alias.  */
17670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17671 choke me
17672 #else
17673 $ac_func();
17674 #endif
17675
17676 ; return 0; }
17677 EOF
17678 if { (eval echo configure:17679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17679   rm -rf conftest*
17680   eval "ac_cv_func_$ac_func=yes"
17681 else
17682   echo "configure: failed program was:" >&5
17683   cat conftest.$ac_ext >&5
17684   rm -rf conftest*
17685   eval "ac_cv_func_$ac_func=no"
17686 fi
17687 rm -f conftest*
17688 fi
17689
17690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17691   echo "$ac_t""yes" 1>&6
17692     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17693   cat >> confdefs.h <<EOF
17694 #define $ac_tr_func 1
17695 EOF
17696  
17697 else
17698   echo "$ac_t""no" 1>&6
17699 fi
17700 done
17701     
17702   else
17703     
17704   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17705 echo "configure:17706: checking for _fmodl declaration" >&5
17706   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17707     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17708   echo $ac_n "(cached) $ac_c" 1>&6
17709 else
17710   
17711       
17712       ac_ext=C
17713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17714 ac_cpp='$CXXCPP $CPPFLAGS'
17715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17717 cross_compiling=$ac_cv_prog_cxx_cross
17718
17719       cat > conftest.$ac_ext <<EOF
17720 #line 17721 "configure"
17721 #include "confdefs.h"
17722 #include <math.h>
17723 int main() {
17724  _fmodl(0, 0);
17725 ; return 0; }
17726 EOF
17727 if { (eval echo configure:17728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17728   rm -rf conftest*
17729   glibcpp_cv_func__fmodl_use=yes
17730 else
17731   echo "configure: failed program was:" >&5
17732   cat conftest.$ac_ext >&5
17733   rm -rf conftest*
17734   glibcpp_cv_func__fmodl_use=no
17735 fi
17736 rm -f conftest*
17737       ac_ext=c
17738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17739 ac_cpp='$CPP $CPPFLAGS'
17740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742 cross_compiling=$ac_cv_prog_cc_cross
17743
17744     
17745 fi
17746
17747   fi
17748   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17749
17750     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17751       for ac_func in _fmodl
17752 do
17753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17754 echo "configure:17755: checking for $ac_func" >&5
17755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17756   echo $ac_n "(cached) $ac_c" 1>&6
17757 else
17758   cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17761 /* System header to define __stub macros and hopefully few prototypes,
17762     which can conflict with char $ac_func(); below.  */
17763 #include <assert.h>
17764 /* Override any gcc2 internal prototype to avoid an error.  */
17765 /* We use char because int might match the return type of a gcc2
17766     builtin and then its argument prototype would still apply.  */
17767 char $ac_func();
17768
17769 int main() {
17770
17771 /* The GNU C library defines this for functions which it implements
17772     to always fail with ENOSYS.  Some functions are actually named
17773     something starting with __ and the normal name is an alias.  */
17774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17775 choke me
17776 #else
17777 $ac_func();
17778 #endif
17779
17780 ; return 0; }
17781 EOF
17782 if { (eval echo configure:17783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17783   rm -rf conftest*
17784   eval "ac_cv_func_$ac_func=yes"
17785 else
17786   echo "configure: failed program was:" >&5
17787   cat conftest.$ac_ext >&5
17788   rm -rf conftest*
17789   eval "ac_cv_func_$ac_func=no"
17790 fi
17791 rm -f conftest*
17792 fi
17793
17794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17795   echo "$ac_t""yes" 1>&6
17796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17797   cat >> confdefs.h <<EOF
17798 #define $ac_tr_func 1
17799 EOF
17800  
17801 else
17802   echo "$ac_t""no" 1>&6
17803 fi
17804 done
17805     
17806     fi
17807   fi
17808
17809   
17810   
17811   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17812 echo "configure:17813: checking for frexpl declaration" >&5
17813   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17814     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17815   echo $ac_n "(cached) $ac_c" 1>&6
17816 else
17817   
17818       
17819       ac_ext=C
17820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17821 ac_cpp='$CXXCPP $CPPFLAGS'
17822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17824 cross_compiling=$ac_cv_prog_cxx_cross
17825
17826       cat > conftest.$ac_ext <<EOF
17827 #line 17828 "configure"
17828 #include "confdefs.h"
17829 #include <math.h>
17830 int main() {
17831  frexpl(0, 0);
17832 ; return 0; }
17833 EOF
17834 if { (eval echo configure:17835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17835   rm -rf conftest*
17836   glibcpp_cv_func_frexpl_use=yes
17837 else
17838   echo "configure: failed program was:" >&5
17839   cat conftest.$ac_ext >&5
17840   rm -rf conftest*
17841   glibcpp_cv_func_frexpl_use=no
17842 fi
17843 rm -f conftest*
17844       ac_ext=c
17845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17846 ac_cpp='$CPP $CPPFLAGS'
17847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17849 cross_compiling=$ac_cv_prog_cc_cross
17850
17851     
17852 fi
17853
17854   fi
17855   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17856
17857   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17858     for ac_func in frexpl
17859 do
17860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17861 echo "configure:17862: checking for $ac_func" >&5
17862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17863   echo $ac_n "(cached) $ac_c" 1>&6
17864 else
17865   cat > conftest.$ac_ext <<EOF
17866 #line 17867 "configure"
17867 #include "confdefs.h"
17868 /* System header to define __stub macros and hopefully few prototypes,
17869     which can conflict with char $ac_func(); below.  */
17870 #include <assert.h>
17871 /* Override any gcc2 internal prototype to avoid an error.  */
17872 /* We use char because int might match the return type of a gcc2
17873     builtin and then its argument prototype would still apply.  */
17874 char $ac_func();
17875
17876 int main() {
17877
17878 /* The GNU C library defines this for functions which it implements
17879     to always fail with ENOSYS.  Some functions are actually named
17880     something starting with __ and the normal name is an alias.  */
17881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17882 choke me
17883 #else
17884 $ac_func();
17885 #endif
17886
17887 ; return 0; }
17888 EOF
17889 if { (eval echo configure:17890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17890   rm -rf conftest*
17891   eval "ac_cv_func_$ac_func=yes"
17892 else
17893   echo "configure: failed program was:" >&5
17894   cat conftest.$ac_ext >&5
17895   rm -rf conftest*
17896   eval "ac_cv_func_$ac_func=no"
17897 fi
17898 rm -f conftest*
17899 fi
17900
17901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17902   echo "$ac_t""yes" 1>&6
17903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17904   cat >> confdefs.h <<EOF
17905 #define $ac_tr_func 1
17906 EOF
17907  
17908 else
17909   echo "$ac_t""no" 1>&6
17910 fi
17911 done
17912     
17913   else
17914     
17915   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17916 echo "configure:17917: checking for _frexpl declaration" >&5
17917   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17918     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17919   echo $ac_n "(cached) $ac_c" 1>&6
17920 else
17921   
17922       
17923       ac_ext=C
17924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17925 ac_cpp='$CXXCPP $CPPFLAGS'
17926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17928 cross_compiling=$ac_cv_prog_cxx_cross
17929
17930       cat > conftest.$ac_ext <<EOF
17931 #line 17932 "configure"
17932 #include "confdefs.h"
17933 #include <math.h>
17934 int main() {
17935  _frexpl(0, 0);
17936 ; return 0; }
17937 EOF
17938 if { (eval echo configure:17939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17939   rm -rf conftest*
17940   glibcpp_cv_func__frexpl_use=yes
17941 else
17942   echo "configure: failed program was:" >&5
17943   cat conftest.$ac_ext >&5
17944   rm -rf conftest*
17945   glibcpp_cv_func__frexpl_use=no
17946 fi
17947 rm -f conftest*
17948       ac_ext=c
17949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17950 ac_cpp='$CPP $CPPFLAGS'
17951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17953 cross_compiling=$ac_cv_prog_cc_cross
17954
17955     
17956 fi
17957
17958   fi
17959   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17960
17961     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17962       for ac_func in _frexpl
17963 do
17964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17965 echo "configure:17966: checking for $ac_func" >&5
17966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17967   echo $ac_n "(cached) $ac_c" 1>&6
17968 else
17969   cat > conftest.$ac_ext <<EOF
17970 #line 17971 "configure"
17971 #include "confdefs.h"
17972 /* System header to define __stub macros and hopefully few prototypes,
17973     which can conflict with char $ac_func(); below.  */
17974 #include <assert.h>
17975 /* Override any gcc2 internal prototype to avoid an error.  */
17976 /* We use char because int might match the return type of a gcc2
17977     builtin and then its argument prototype would still apply.  */
17978 char $ac_func();
17979
17980 int main() {
17981
17982 /* The GNU C library defines this for functions which it implements
17983     to always fail with ENOSYS.  Some functions are actually named
17984     something starting with __ and the normal name is an alias.  */
17985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17986 choke me
17987 #else
17988 $ac_func();
17989 #endif
17990
17991 ; return 0; }
17992 EOF
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17994   rm -rf conftest*
17995   eval "ac_cv_func_$ac_func=yes"
17996 else
17997   echo "configure: failed program was:" >&5
17998   cat conftest.$ac_ext >&5
17999   rm -rf conftest*
18000   eval "ac_cv_func_$ac_func=no"
18001 fi
18002 rm -f conftest*
18003 fi
18004
18005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18006   echo "$ac_t""yes" 1>&6
18007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18008   cat >> confdefs.h <<EOF
18009 #define $ac_tr_func 1
18010 EOF
18011  
18012 else
18013   echo "$ac_t""no" 1>&6
18014 fi
18015 done
18016     
18017     fi
18018   fi
18019
18020   
18021   
18022   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18023 echo "configure:18024: checking for hypotl declaration" >&5
18024   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18025     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18026   echo $ac_n "(cached) $ac_c" 1>&6
18027 else
18028   
18029       
18030       ac_ext=C
18031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18032 ac_cpp='$CXXCPP $CPPFLAGS'
18033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18035 cross_compiling=$ac_cv_prog_cxx_cross
18036
18037       cat > conftest.$ac_ext <<EOF
18038 #line 18039 "configure"
18039 #include "confdefs.h"
18040 #include <math.h>
18041 int main() {
18042  hypotl(0, 0);
18043 ; return 0; }
18044 EOF
18045 if { (eval echo configure:18046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18046   rm -rf conftest*
18047   glibcpp_cv_func_hypotl_use=yes
18048 else
18049   echo "configure: failed program was:" >&5
18050   cat conftest.$ac_ext >&5
18051   rm -rf conftest*
18052   glibcpp_cv_func_hypotl_use=no
18053 fi
18054 rm -f conftest*
18055       ac_ext=c
18056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18060 cross_compiling=$ac_cv_prog_cc_cross
18061
18062     
18063 fi
18064
18065   fi
18066   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18067
18068   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18069     for ac_func in hypotl
18070 do
18071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18072 echo "configure:18073: checking for $ac_func" >&5
18073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18074   echo $ac_n "(cached) $ac_c" 1>&6
18075 else
18076   cat > conftest.$ac_ext <<EOF
18077 #line 18078 "configure"
18078 #include "confdefs.h"
18079 /* System header to define __stub macros and hopefully few prototypes,
18080     which can conflict with char $ac_func(); below.  */
18081 #include <assert.h>
18082 /* Override any gcc2 internal prototype to avoid an error.  */
18083 /* We use char because int might match the return type of a gcc2
18084     builtin and then its argument prototype would still apply.  */
18085 char $ac_func();
18086
18087 int main() {
18088
18089 /* The GNU C library defines this for functions which it implements
18090     to always fail with ENOSYS.  Some functions are actually named
18091     something starting with __ and the normal name is an alias.  */
18092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18093 choke me
18094 #else
18095 $ac_func();
18096 #endif
18097
18098 ; return 0; }
18099 EOF
18100 if { (eval echo configure:18101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18101   rm -rf conftest*
18102   eval "ac_cv_func_$ac_func=yes"
18103 else
18104   echo "configure: failed program was:" >&5
18105   cat conftest.$ac_ext >&5
18106   rm -rf conftest*
18107   eval "ac_cv_func_$ac_func=no"
18108 fi
18109 rm -f conftest*
18110 fi
18111
18112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18113   echo "$ac_t""yes" 1>&6
18114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18115   cat >> confdefs.h <<EOF
18116 #define $ac_tr_func 1
18117 EOF
18118  
18119 else
18120   echo "$ac_t""no" 1>&6
18121 fi
18122 done
18123     
18124   else
18125     
18126   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18127 echo "configure:18128: checking for _hypotl declaration" >&5
18128   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18129     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18130   echo $ac_n "(cached) $ac_c" 1>&6
18131 else
18132   
18133       
18134       ac_ext=C
18135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18136 ac_cpp='$CXXCPP $CPPFLAGS'
18137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18139 cross_compiling=$ac_cv_prog_cxx_cross
18140
18141       cat > conftest.$ac_ext <<EOF
18142 #line 18143 "configure"
18143 #include "confdefs.h"
18144 #include <math.h>
18145 int main() {
18146  _hypotl(0, 0);
18147 ; return 0; }
18148 EOF
18149 if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18150   rm -rf conftest*
18151   glibcpp_cv_func__hypotl_use=yes
18152 else
18153   echo "configure: failed program was:" >&5
18154   cat conftest.$ac_ext >&5
18155   rm -rf conftest*
18156   glibcpp_cv_func__hypotl_use=no
18157 fi
18158 rm -f conftest*
18159       ac_ext=c
18160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18161 ac_cpp='$CPP $CPPFLAGS'
18162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18164 cross_compiling=$ac_cv_prog_cc_cross
18165
18166     
18167 fi
18168
18169   fi
18170   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18171
18172     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18173       for ac_func in _hypotl
18174 do
18175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18176 echo "configure:18177: checking for $ac_func" >&5
18177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18178   echo $ac_n "(cached) $ac_c" 1>&6
18179 else
18180   cat > conftest.$ac_ext <<EOF
18181 #line 18182 "configure"
18182 #include "confdefs.h"
18183 /* System header to define __stub macros and hopefully few prototypes,
18184     which can conflict with char $ac_func(); below.  */
18185 #include <assert.h>
18186 /* Override any gcc2 internal prototype to avoid an error.  */
18187 /* We use char because int might match the return type of a gcc2
18188     builtin and then its argument prototype would still apply.  */
18189 char $ac_func();
18190
18191 int main() {
18192
18193 /* The GNU C library defines this for functions which it implements
18194     to always fail with ENOSYS.  Some functions are actually named
18195     something starting with __ and the normal name is an alias.  */
18196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18197 choke me
18198 #else
18199 $ac_func();
18200 #endif
18201
18202 ; return 0; }
18203 EOF
18204 if { (eval echo configure:18205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18205   rm -rf conftest*
18206   eval "ac_cv_func_$ac_func=yes"
18207 else
18208   echo "configure: failed program was:" >&5
18209   cat conftest.$ac_ext >&5
18210   rm -rf conftest*
18211   eval "ac_cv_func_$ac_func=no"
18212 fi
18213 rm -f conftest*
18214 fi
18215
18216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18217   echo "$ac_t""yes" 1>&6
18218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18219   cat >> confdefs.h <<EOF
18220 #define $ac_tr_func 1
18221 EOF
18222  
18223 else
18224   echo "$ac_t""no" 1>&6
18225 fi
18226 done
18227     
18228     fi
18229   fi
18230
18231   
18232   
18233   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18234 echo "configure:18235: checking for ldexpl declaration" >&5
18235   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18236     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18237   echo $ac_n "(cached) $ac_c" 1>&6
18238 else
18239   
18240       
18241       ac_ext=C
18242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18246 cross_compiling=$ac_cv_prog_cxx_cross
18247
18248       cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18251 #include <math.h>
18252 int main() {
18253  ldexpl(0, 0);
18254 ; return 0; }
18255 EOF
18256 if { (eval echo configure:18257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18257   rm -rf conftest*
18258   glibcpp_cv_func_ldexpl_use=yes
18259 else
18260   echo "configure: failed program was:" >&5
18261   cat conftest.$ac_ext >&5
18262   rm -rf conftest*
18263   glibcpp_cv_func_ldexpl_use=no
18264 fi
18265 rm -f conftest*
18266       ac_ext=c
18267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18268 ac_cpp='$CPP $CPPFLAGS'
18269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18271 cross_compiling=$ac_cv_prog_cc_cross
18272
18273     
18274 fi
18275
18276   fi
18277   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18278
18279   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18280     for ac_func in ldexpl
18281 do
18282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18283 echo "configure:18284: checking for $ac_func" >&5
18284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18285   echo $ac_n "(cached) $ac_c" 1>&6
18286 else
18287   cat > conftest.$ac_ext <<EOF
18288 #line 18289 "configure"
18289 #include "confdefs.h"
18290 /* System header to define __stub macros and hopefully few prototypes,
18291     which can conflict with char $ac_func(); below.  */
18292 #include <assert.h>
18293 /* Override any gcc2 internal prototype to avoid an error.  */
18294 /* We use char because int might match the return type of a gcc2
18295     builtin and then its argument prototype would still apply.  */
18296 char $ac_func();
18297
18298 int main() {
18299
18300 /* The GNU C library defines this for functions which it implements
18301     to always fail with ENOSYS.  Some functions are actually named
18302     something starting with __ and the normal name is an alias.  */
18303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18304 choke me
18305 #else
18306 $ac_func();
18307 #endif
18308
18309 ; return 0; }
18310 EOF
18311 if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18312   rm -rf conftest*
18313   eval "ac_cv_func_$ac_func=yes"
18314 else
18315   echo "configure: failed program was:" >&5
18316   cat conftest.$ac_ext >&5
18317   rm -rf conftest*
18318   eval "ac_cv_func_$ac_func=no"
18319 fi
18320 rm -f conftest*
18321 fi
18322
18323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18324   echo "$ac_t""yes" 1>&6
18325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18326   cat >> confdefs.h <<EOF
18327 #define $ac_tr_func 1
18328 EOF
18329  
18330 else
18331   echo "$ac_t""no" 1>&6
18332 fi
18333 done
18334     
18335   else
18336     
18337   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18338 echo "configure:18339: checking for _ldexpl declaration" >&5
18339   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18340     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18341   echo $ac_n "(cached) $ac_c" 1>&6
18342 else
18343   
18344       
18345       ac_ext=C
18346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18347 ac_cpp='$CXXCPP $CPPFLAGS'
18348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18350 cross_compiling=$ac_cv_prog_cxx_cross
18351
18352       cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18355 #include <math.h>
18356 int main() {
18357  _ldexpl(0, 0);
18358 ; return 0; }
18359 EOF
18360 if { (eval echo configure:18361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18361   rm -rf conftest*
18362   glibcpp_cv_func__ldexpl_use=yes
18363 else
18364   echo "configure: failed program was:" >&5
18365   cat conftest.$ac_ext >&5
18366   rm -rf conftest*
18367   glibcpp_cv_func__ldexpl_use=no
18368 fi
18369 rm -f conftest*
18370       ac_ext=c
18371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18375 cross_compiling=$ac_cv_prog_cc_cross
18376
18377     
18378 fi
18379
18380   fi
18381   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18382
18383     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18384       for ac_func in _ldexpl
18385 do
18386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18387 echo "configure:18388: checking for $ac_func" >&5
18388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18389   echo $ac_n "(cached) $ac_c" 1>&6
18390 else
18391   cat > conftest.$ac_ext <<EOF
18392 #line 18393 "configure"
18393 #include "confdefs.h"
18394 /* System header to define __stub macros and hopefully few prototypes,
18395     which can conflict with char $ac_func(); below.  */
18396 #include <assert.h>
18397 /* Override any gcc2 internal prototype to avoid an error.  */
18398 /* We use char because int might match the return type of a gcc2
18399     builtin and then its argument prototype would still apply.  */
18400 char $ac_func();
18401
18402 int main() {
18403
18404 /* The GNU C library defines this for functions which it implements
18405     to always fail with ENOSYS.  Some functions are actually named
18406     something starting with __ and the normal name is an alias.  */
18407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18408 choke me
18409 #else
18410 $ac_func();
18411 #endif
18412
18413 ; return 0; }
18414 EOF
18415 if { (eval echo configure:18416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18416   rm -rf conftest*
18417   eval "ac_cv_func_$ac_func=yes"
18418 else
18419   echo "configure: failed program was:" >&5
18420   cat conftest.$ac_ext >&5
18421   rm -rf conftest*
18422   eval "ac_cv_func_$ac_func=no"
18423 fi
18424 rm -f conftest*
18425 fi
18426
18427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18428   echo "$ac_t""yes" 1>&6
18429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18430   cat >> confdefs.h <<EOF
18431 #define $ac_tr_func 1
18432 EOF
18433  
18434 else
18435   echo "$ac_t""no" 1>&6
18436 fi
18437 done
18438     
18439     fi
18440   fi
18441
18442   
18443   
18444   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18445 echo "configure:18446: checking for logl declaration" >&5
18446   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18447     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18448   echo $ac_n "(cached) $ac_c" 1>&6
18449 else
18450   
18451       
18452       ac_ext=C
18453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18454 ac_cpp='$CXXCPP $CPPFLAGS'
18455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18457 cross_compiling=$ac_cv_prog_cxx_cross
18458
18459       cat > conftest.$ac_ext <<EOF
18460 #line 18461 "configure"
18461 #include "confdefs.h"
18462 #include <math.h>
18463                       #ifdef HAVE_IEEEFP_H
18464                       #include <ieeefp.h>
18465                       #endif
18466                      
18467 int main() {
18468  logl(0);
18469 ; return 0; }
18470 EOF
18471 if { (eval echo configure:18472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18472   rm -rf conftest*
18473   glibcpp_cv_func_logl_use=yes
18474 else
18475   echo "configure: failed program was:" >&5
18476   cat conftest.$ac_ext >&5
18477   rm -rf conftest*
18478   glibcpp_cv_func_logl_use=no
18479 fi
18480 rm -f conftest*
18481       ac_ext=c
18482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18483 ac_cpp='$CPP $CPPFLAGS'
18484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18486 cross_compiling=$ac_cv_prog_cc_cross
18487
18488     
18489 fi
18490
18491   fi
18492   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18493
18494   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18495     for ac_func in logl
18496 do
18497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18498 echo "configure:18499: checking for $ac_func" >&5
18499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18500   echo $ac_n "(cached) $ac_c" 1>&6
18501 else
18502   cat > conftest.$ac_ext <<EOF
18503 #line 18504 "configure"
18504 #include "confdefs.h"
18505 /* System header to define __stub macros and hopefully few prototypes,
18506     which can conflict with char $ac_func(); below.  */
18507 #include <assert.h>
18508 /* Override any gcc2 internal prototype to avoid an error.  */
18509 /* We use char because int might match the return type of a gcc2
18510     builtin and then its argument prototype would still apply.  */
18511 char $ac_func();
18512
18513 int main() {
18514
18515 /* The GNU C library defines this for functions which it implements
18516     to always fail with ENOSYS.  Some functions are actually named
18517     something starting with __ and the normal name is an alias.  */
18518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18519 choke me
18520 #else
18521 $ac_func();
18522 #endif
18523
18524 ; return 0; }
18525 EOF
18526 if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18527   rm -rf conftest*
18528   eval "ac_cv_func_$ac_func=yes"
18529 else
18530   echo "configure: failed program was:" >&5
18531   cat conftest.$ac_ext >&5
18532   rm -rf conftest*
18533   eval "ac_cv_func_$ac_func=no"
18534 fi
18535 rm -f conftest*
18536 fi
18537
18538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18539   echo "$ac_t""yes" 1>&6
18540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18541   cat >> confdefs.h <<EOF
18542 #define $ac_tr_func 1
18543 EOF
18544  
18545 else
18546   echo "$ac_t""no" 1>&6
18547 fi
18548 done
18549     
18550   else
18551     
18552   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18553 echo "configure:18554: checking for _logl declaration" >&5
18554   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18555     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18556   echo $ac_n "(cached) $ac_c" 1>&6
18557 else
18558   
18559       
18560       ac_ext=C
18561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18562 ac_cpp='$CXXCPP $CPPFLAGS'
18563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18565 cross_compiling=$ac_cv_prog_cxx_cross
18566
18567       cat > conftest.$ac_ext <<EOF
18568 #line 18569 "configure"
18569 #include "confdefs.h"
18570 #include <math.h>
18571                       #ifdef HAVE_IEEEFP_H
18572                       #include <ieeefp.h>
18573                       #endif
18574                      
18575 int main() {
18576  _logl(0);
18577 ; return 0; }
18578 EOF
18579 if { (eval echo configure:18580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18580   rm -rf conftest*
18581   glibcpp_cv_func__logl_use=yes
18582 else
18583   echo "configure: failed program was:" >&5
18584   cat conftest.$ac_ext >&5
18585   rm -rf conftest*
18586   glibcpp_cv_func__logl_use=no
18587 fi
18588 rm -f conftest*
18589       ac_ext=c
18590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18594 cross_compiling=$ac_cv_prog_cc_cross
18595
18596     
18597 fi
18598
18599   fi
18600   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18601
18602     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18603       for ac_func in _logl
18604 do
18605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18606 echo "configure:18607: checking for $ac_func" >&5
18607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18608   echo $ac_n "(cached) $ac_c" 1>&6
18609 else
18610   cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18613 /* System header to define __stub macros and hopefully few prototypes,
18614     which can conflict with char $ac_func(); below.  */
18615 #include <assert.h>
18616 /* Override any gcc2 internal prototype to avoid an error.  */
18617 /* We use char because int might match the return type of a gcc2
18618     builtin and then its argument prototype would still apply.  */
18619 char $ac_func();
18620
18621 int main() {
18622
18623 /* The GNU C library defines this for functions which it implements
18624     to always fail with ENOSYS.  Some functions are actually named
18625     something starting with __ and the normal name is an alias.  */
18626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18627 choke me
18628 #else
18629 $ac_func();
18630 #endif
18631
18632 ; return 0; }
18633 EOF
18634 if { (eval echo configure:18635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635   rm -rf conftest*
18636   eval "ac_cv_func_$ac_func=yes"
18637 else
18638   echo "configure: failed program was:" >&5
18639   cat conftest.$ac_ext >&5
18640   rm -rf conftest*
18641   eval "ac_cv_func_$ac_func=no"
18642 fi
18643 rm -f conftest*
18644 fi
18645
18646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18647   echo "$ac_t""yes" 1>&6
18648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18649   cat >> confdefs.h <<EOF
18650 #define $ac_tr_func 1
18651 EOF
18652  
18653 else
18654   echo "$ac_t""no" 1>&6
18655 fi
18656 done
18657     
18658     fi
18659   fi
18660
18661   
18662   
18663   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18664 echo "configure:18665: checking for log10l declaration" >&5
18665   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18666     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18667   echo $ac_n "(cached) $ac_c" 1>&6
18668 else
18669   
18670       
18671       ac_ext=C
18672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18676 cross_compiling=$ac_cv_prog_cxx_cross
18677
18678       cat > conftest.$ac_ext <<EOF
18679 #line 18680 "configure"
18680 #include "confdefs.h"
18681 #include <math.h>
18682                       #ifdef HAVE_IEEEFP_H
18683                       #include <ieeefp.h>
18684                       #endif
18685                      
18686 int main() {
18687  log10l(0);
18688 ; return 0; }
18689 EOF
18690 if { (eval echo configure:18691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18691   rm -rf conftest*
18692   glibcpp_cv_func_log10l_use=yes
18693 else
18694   echo "configure: failed program was:" >&5
18695   cat conftest.$ac_ext >&5
18696   rm -rf conftest*
18697   glibcpp_cv_func_log10l_use=no
18698 fi
18699 rm -f conftest*
18700       ac_ext=c
18701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18705 cross_compiling=$ac_cv_prog_cc_cross
18706
18707     
18708 fi
18709
18710   fi
18711   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18712
18713   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18714     for ac_func in log10l
18715 do
18716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18717 echo "configure:18718: checking for $ac_func" >&5
18718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18719   echo $ac_n "(cached) $ac_c" 1>&6
18720 else
18721   cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18724 /* System header to define __stub macros and hopefully few prototypes,
18725     which can conflict with char $ac_func(); below.  */
18726 #include <assert.h>
18727 /* Override any gcc2 internal prototype to avoid an error.  */
18728 /* We use char because int might match the return type of a gcc2
18729     builtin and then its argument prototype would still apply.  */
18730 char $ac_func();
18731
18732 int main() {
18733
18734 /* The GNU C library defines this for functions which it implements
18735     to always fail with ENOSYS.  Some functions are actually named
18736     something starting with __ and the normal name is an alias.  */
18737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738 choke me
18739 #else
18740 $ac_func();
18741 #endif
18742
18743 ; return 0; }
18744 EOF
18745 if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18746   rm -rf conftest*
18747   eval "ac_cv_func_$ac_func=yes"
18748 else
18749   echo "configure: failed program was:" >&5
18750   cat conftest.$ac_ext >&5
18751   rm -rf conftest*
18752   eval "ac_cv_func_$ac_func=no"
18753 fi
18754 rm -f conftest*
18755 fi
18756
18757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18758   echo "$ac_t""yes" 1>&6
18759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18760   cat >> confdefs.h <<EOF
18761 #define $ac_tr_func 1
18762 EOF
18763  
18764 else
18765   echo "$ac_t""no" 1>&6
18766 fi
18767 done
18768     
18769   else
18770     
18771   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18772 echo "configure:18773: checking for _log10l declaration" >&5
18773   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18774     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18775   echo $ac_n "(cached) $ac_c" 1>&6
18776 else
18777   
18778       
18779       ac_ext=C
18780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18781 ac_cpp='$CXXCPP $CPPFLAGS'
18782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18784 cross_compiling=$ac_cv_prog_cxx_cross
18785
18786       cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 #include <math.h>
18790                       #ifdef HAVE_IEEEFP_H
18791                       #include <ieeefp.h>
18792                       #endif
18793                      
18794 int main() {
18795  _log10l(0);
18796 ; return 0; }
18797 EOF
18798 if { (eval echo configure:18799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18799   rm -rf conftest*
18800   glibcpp_cv_func__log10l_use=yes
18801 else
18802   echo "configure: failed program was:" >&5
18803   cat conftest.$ac_ext >&5
18804   rm -rf conftest*
18805   glibcpp_cv_func__log10l_use=no
18806 fi
18807 rm -f conftest*
18808       ac_ext=c
18809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18813 cross_compiling=$ac_cv_prog_cc_cross
18814
18815     
18816 fi
18817
18818   fi
18819   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18820
18821     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18822       for ac_func in _log10l
18823 do
18824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18825 echo "configure:18826: checking for $ac_func" >&5
18826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18827   echo $ac_n "(cached) $ac_c" 1>&6
18828 else
18829   cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833     which can conflict with char $ac_func(); below.  */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error.  */
18836 /* We use char because int might match the return type of a gcc2
18837     builtin and then its argument prototype would still apply.  */
18838 char $ac_func();
18839
18840 int main() {
18841
18842 /* The GNU C library defines this for functions which it implements
18843     to always fail with ENOSYS.  Some functions are actually named
18844     something starting with __ and the normal name is an alias.  */
18845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18846 choke me
18847 #else
18848 $ac_func();
18849 #endif
18850
18851 ; return 0; }
18852 EOF
18853 if { (eval echo configure:18854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18854   rm -rf conftest*
18855   eval "ac_cv_func_$ac_func=yes"
18856 else
18857   echo "configure: failed program was:" >&5
18858   cat conftest.$ac_ext >&5
18859   rm -rf conftest*
18860   eval "ac_cv_func_$ac_func=no"
18861 fi
18862 rm -f conftest*
18863 fi
18864
18865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18866   echo "$ac_t""yes" 1>&6
18867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18868   cat >> confdefs.h <<EOF
18869 #define $ac_tr_func 1
18870 EOF
18871  
18872 else
18873   echo "$ac_t""no" 1>&6
18874 fi
18875 done
18876     
18877     fi
18878   fi
18879
18880   
18881   
18882   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18883 echo "configure:18884: checking for modfl declaration" >&5
18884   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18885     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18886   echo $ac_n "(cached) $ac_c" 1>&6
18887 else
18888   
18889       
18890       ac_ext=C
18891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18895 cross_compiling=$ac_cv_prog_cxx_cross
18896
18897       cat > conftest.$ac_ext <<EOF
18898 #line 18899 "configure"
18899 #include "confdefs.h"
18900 #include <math.h>
18901 int main() {
18902  modfl(0, 0);
18903 ; return 0; }
18904 EOF
18905 if { (eval echo configure:18906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18906   rm -rf conftest*
18907   glibcpp_cv_func_modfl_use=yes
18908 else
18909   echo "configure: failed program was:" >&5
18910   cat conftest.$ac_ext >&5
18911   rm -rf conftest*
18912   glibcpp_cv_func_modfl_use=no
18913 fi
18914 rm -f conftest*
18915       ac_ext=c
18916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18920 cross_compiling=$ac_cv_prog_cc_cross
18921
18922     
18923 fi
18924
18925   fi
18926   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18927
18928   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18929     for ac_func in modfl
18930 do
18931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18932 echo "configure:18933: checking for $ac_func" >&5
18933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18934   echo $ac_n "(cached) $ac_c" 1>&6
18935 else
18936   cat > conftest.$ac_ext <<EOF
18937 #line 18938 "configure"
18938 #include "confdefs.h"
18939 /* System header to define __stub macros and hopefully few prototypes,
18940     which can conflict with char $ac_func(); below.  */
18941 #include <assert.h>
18942 /* Override any gcc2 internal prototype to avoid an error.  */
18943 /* We use char because int might match the return type of a gcc2
18944     builtin and then its argument prototype would still apply.  */
18945 char $ac_func();
18946
18947 int main() {
18948
18949 /* The GNU C library defines this for functions which it implements
18950     to always fail with ENOSYS.  Some functions are actually named
18951     something starting with __ and the normal name is an alias.  */
18952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18953 choke me
18954 #else
18955 $ac_func();
18956 #endif
18957
18958 ; return 0; }
18959 EOF
18960 if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18961   rm -rf conftest*
18962   eval "ac_cv_func_$ac_func=yes"
18963 else
18964   echo "configure: failed program was:" >&5
18965   cat conftest.$ac_ext >&5
18966   rm -rf conftest*
18967   eval "ac_cv_func_$ac_func=no"
18968 fi
18969 rm -f conftest*
18970 fi
18971
18972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18973   echo "$ac_t""yes" 1>&6
18974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18975   cat >> confdefs.h <<EOF
18976 #define $ac_tr_func 1
18977 EOF
18978  
18979 else
18980   echo "$ac_t""no" 1>&6
18981 fi
18982 done
18983     
18984   else
18985     
18986   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18987 echo "configure:18988: checking for _modfl declaration" >&5
18988   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18989     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18990   echo $ac_n "(cached) $ac_c" 1>&6
18991 else
18992   
18993       
18994       ac_ext=C
18995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18996 ac_cpp='$CXXCPP $CPPFLAGS'
18997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18999 cross_compiling=$ac_cv_prog_cxx_cross
19000
19001       cat > conftest.$ac_ext <<EOF
19002 #line 19003 "configure"
19003 #include "confdefs.h"
19004 #include <math.h>
19005 int main() {
19006  _modfl(0, 0);
19007 ; return 0; }
19008 EOF
19009 if { (eval echo configure:19010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19010   rm -rf conftest*
19011   glibcpp_cv_func__modfl_use=yes
19012 else
19013   echo "configure: failed program was:" >&5
19014   cat conftest.$ac_ext >&5
19015   rm -rf conftest*
19016   glibcpp_cv_func__modfl_use=no
19017 fi
19018 rm -f conftest*
19019       ac_ext=c
19020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19024 cross_compiling=$ac_cv_prog_cc_cross
19025
19026     
19027 fi
19028
19029   fi
19030   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19031
19032     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19033       for ac_func in _modfl
19034 do
19035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19036 echo "configure:19037: checking for $ac_func" >&5
19037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19038   echo $ac_n "(cached) $ac_c" 1>&6
19039 else
19040   cat > conftest.$ac_ext <<EOF
19041 #line 19042 "configure"
19042 #include "confdefs.h"
19043 /* System header to define __stub macros and hopefully few prototypes,
19044     which can conflict with char $ac_func(); below.  */
19045 #include <assert.h>
19046 /* Override any gcc2 internal prototype to avoid an error.  */
19047 /* We use char because int might match the return type of a gcc2
19048     builtin and then its argument prototype would still apply.  */
19049 char $ac_func();
19050
19051 int main() {
19052
19053 /* The GNU C library defines this for functions which it implements
19054     to always fail with ENOSYS.  Some functions are actually named
19055     something starting with __ and the normal name is an alias.  */
19056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19057 choke me
19058 #else
19059 $ac_func();
19060 #endif
19061
19062 ; return 0; }
19063 EOF
19064 if { (eval echo configure:19065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19065   rm -rf conftest*
19066   eval "ac_cv_func_$ac_func=yes"
19067 else
19068   echo "configure: failed program was:" >&5
19069   cat conftest.$ac_ext >&5
19070   rm -rf conftest*
19071   eval "ac_cv_func_$ac_func=no"
19072 fi
19073 rm -f conftest*
19074 fi
19075
19076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19077   echo "$ac_t""yes" 1>&6
19078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19079   cat >> confdefs.h <<EOF
19080 #define $ac_tr_func 1
19081 EOF
19082  
19083 else
19084   echo "$ac_t""no" 1>&6
19085 fi
19086 done
19087     
19088     fi
19089   fi
19090
19091   
19092   
19093   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19094 echo "configure:19095: checking for powl declaration" >&5
19095   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19096     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19097   echo $ac_n "(cached) $ac_c" 1>&6
19098 else
19099   
19100       
19101       ac_ext=C
19102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19106 cross_compiling=$ac_cv_prog_cxx_cross
19107
19108       cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19111 #include <math.h>
19112 int main() {
19113  powl(0, 0);
19114 ; return 0; }
19115 EOF
19116 if { (eval echo configure:19117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19117   rm -rf conftest*
19118   glibcpp_cv_func_powl_use=yes
19119 else
19120   echo "configure: failed program was:" >&5
19121   cat conftest.$ac_ext >&5
19122   rm -rf conftest*
19123   glibcpp_cv_func_powl_use=no
19124 fi
19125 rm -f conftest*
19126       ac_ext=c
19127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19128 ac_cpp='$CPP $CPPFLAGS'
19129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19131 cross_compiling=$ac_cv_prog_cc_cross
19132
19133     
19134 fi
19135
19136   fi
19137   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19138
19139   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19140     for ac_func in powl
19141 do
19142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19143 echo "configure:19144: checking for $ac_func" >&5
19144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19145   echo $ac_n "(cached) $ac_c" 1>&6
19146 else
19147   cat > conftest.$ac_ext <<EOF
19148 #line 19149 "configure"
19149 #include "confdefs.h"
19150 /* System header to define __stub macros and hopefully few prototypes,
19151     which can conflict with char $ac_func(); below.  */
19152 #include <assert.h>
19153 /* Override any gcc2 internal prototype to avoid an error.  */
19154 /* We use char because int might match the return type of a gcc2
19155     builtin and then its argument prototype would still apply.  */
19156 char $ac_func();
19157
19158 int main() {
19159
19160 /* The GNU C library defines this for functions which it implements
19161     to always fail with ENOSYS.  Some functions are actually named
19162     something starting with __ and the normal name is an alias.  */
19163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19164 choke me
19165 #else
19166 $ac_func();
19167 #endif
19168
19169 ; return 0; }
19170 EOF
19171 if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19172   rm -rf conftest*
19173   eval "ac_cv_func_$ac_func=yes"
19174 else
19175   echo "configure: failed program was:" >&5
19176   cat conftest.$ac_ext >&5
19177   rm -rf conftest*
19178   eval "ac_cv_func_$ac_func=no"
19179 fi
19180 rm -f conftest*
19181 fi
19182
19183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19184   echo "$ac_t""yes" 1>&6
19185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19186   cat >> confdefs.h <<EOF
19187 #define $ac_tr_func 1
19188 EOF
19189  
19190 else
19191   echo "$ac_t""no" 1>&6
19192 fi
19193 done
19194     
19195   else
19196     
19197   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19198 echo "configure:19199: checking for _powl declaration" >&5
19199   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19200     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19201   echo $ac_n "(cached) $ac_c" 1>&6
19202 else
19203   
19204       
19205       ac_ext=C
19206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19207 ac_cpp='$CXXCPP $CPPFLAGS'
19208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19210 cross_compiling=$ac_cv_prog_cxx_cross
19211
19212       cat > conftest.$ac_ext <<EOF
19213 #line 19214 "configure"
19214 #include "confdefs.h"
19215 #include <math.h>
19216 int main() {
19217  _powl(0, 0);
19218 ; return 0; }
19219 EOF
19220 if { (eval echo configure:19221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19221   rm -rf conftest*
19222   glibcpp_cv_func__powl_use=yes
19223 else
19224   echo "configure: failed program was:" >&5
19225   cat conftest.$ac_ext >&5
19226   rm -rf conftest*
19227   glibcpp_cv_func__powl_use=no
19228 fi
19229 rm -f conftest*
19230       ac_ext=c
19231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19232 ac_cpp='$CPP $CPPFLAGS'
19233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19235 cross_compiling=$ac_cv_prog_cc_cross
19236
19237     
19238 fi
19239
19240   fi
19241   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19242
19243     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19244       for ac_func in _powl
19245 do
19246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19247 echo "configure:19248: checking for $ac_func" >&5
19248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19249   echo $ac_n "(cached) $ac_c" 1>&6
19250 else
19251   cat > conftest.$ac_ext <<EOF
19252 #line 19253 "configure"
19253 #include "confdefs.h"
19254 /* System header to define __stub macros and hopefully few prototypes,
19255     which can conflict with char $ac_func(); below.  */
19256 #include <assert.h>
19257 /* Override any gcc2 internal prototype to avoid an error.  */
19258 /* We use char because int might match the return type of a gcc2
19259     builtin and then its argument prototype would still apply.  */
19260 char $ac_func();
19261
19262 int main() {
19263
19264 /* The GNU C library defines this for functions which it implements
19265     to always fail with ENOSYS.  Some functions are actually named
19266     something starting with __ and the normal name is an alias.  */
19267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19268 choke me
19269 #else
19270 $ac_func();
19271 #endif
19272
19273 ; return 0; }
19274 EOF
19275 if { (eval echo configure:19276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19276   rm -rf conftest*
19277   eval "ac_cv_func_$ac_func=yes"
19278 else
19279   echo "configure: failed program was:" >&5
19280   cat conftest.$ac_ext >&5
19281   rm -rf conftest*
19282   eval "ac_cv_func_$ac_func=no"
19283 fi
19284 rm -f conftest*
19285 fi
19286
19287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19288   echo "$ac_t""yes" 1>&6
19289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19290   cat >> confdefs.h <<EOF
19291 #define $ac_tr_func 1
19292 EOF
19293  
19294 else
19295   echo "$ac_t""no" 1>&6
19296 fi
19297 done
19298     
19299     fi
19300   fi
19301
19302   
19303   
19304   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19305 echo "configure:19306: checking for sqrtl declaration" >&5
19306   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19307     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19308   echo $ac_n "(cached) $ac_c" 1>&6
19309 else
19310   
19311       
19312       ac_ext=C
19313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19314 ac_cpp='$CXXCPP $CPPFLAGS'
19315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19317 cross_compiling=$ac_cv_prog_cxx_cross
19318
19319       cat > conftest.$ac_ext <<EOF
19320 #line 19321 "configure"
19321 #include "confdefs.h"
19322 #include <math.h>
19323                       #ifdef HAVE_IEEEFP_H
19324                       #include <ieeefp.h>
19325                       #endif
19326                      
19327 int main() {
19328  sqrtl(0);
19329 ; return 0; }
19330 EOF
19331 if { (eval echo configure:19332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19332   rm -rf conftest*
19333   glibcpp_cv_func_sqrtl_use=yes
19334 else
19335   echo "configure: failed program was:" >&5
19336   cat conftest.$ac_ext >&5
19337   rm -rf conftest*
19338   glibcpp_cv_func_sqrtl_use=no
19339 fi
19340 rm -f conftest*
19341       ac_ext=c
19342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19346 cross_compiling=$ac_cv_prog_cc_cross
19347
19348     
19349 fi
19350
19351   fi
19352   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19353
19354   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19355     for ac_func in sqrtl
19356 do
19357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19358 echo "configure:19359: checking for $ac_func" >&5
19359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19360   echo $ac_n "(cached) $ac_c" 1>&6
19361 else
19362   cat > conftest.$ac_ext <<EOF
19363 #line 19364 "configure"
19364 #include "confdefs.h"
19365 /* System header to define __stub macros and hopefully few prototypes,
19366     which can conflict with char $ac_func(); below.  */
19367 #include <assert.h>
19368 /* Override any gcc2 internal prototype to avoid an error.  */
19369 /* We use char because int might match the return type of a gcc2
19370     builtin and then its argument prototype would still apply.  */
19371 char $ac_func();
19372
19373 int main() {
19374
19375 /* The GNU C library defines this for functions which it implements
19376     to always fail with ENOSYS.  Some functions are actually named
19377     something starting with __ and the normal name is an alias.  */
19378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19379 choke me
19380 #else
19381 $ac_func();
19382 #endif
19383
19384 ; return 0; }
19385 EOF
19386 if { (eval echo configure:19387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19387   rm -rf conftest*
19388   eval "ac_cv_func_$ac_func=yes"
19389 else
19390   echo "configure: failed program was:" >&5
19391   cat conftest.$ac_ext >&5
19392   rm -rf conftest*
19393   eval "ac_cv_func_$ac_func=no"
19394 fi
19395 rm -f conftest*
19396 fi
19397
19398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19399   echo "$ac_t""yes" 1>&6
19400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19401   cat >> confdefs.h <<EOF
19402 #define $ac_tr_func 1
19403 EOF
19404  
19405 else
19406   echo "$ac_t""no" 1>&6
19407 fi
19408 done
19409     
19410   else
19411     
19412   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19413 echo "configure:19414: checking for _sqrtl declaration" >&5
19414   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19415     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19416   echo $ac_n "(cached) $ac_c" 1>&6
19417 else
19418   
19419       
19420       ac_ext=C
19421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19422 ac_cpp='$CXXCPP $CPPFLAGS'
19423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19425 cross_compiling=$ac_cv_prog_cxx_cross
19426
19427       cat > conftest.$ac_ext <<EOF
19428 #line 19429 "configure"
19429 #include "confdefs.h"
19430 #include <math.h>
19431                       #ifdef HAVE_IEEEFP_H
19432                       #include <ieeefp.h>
19433                       #endif
19434                      
19435 int main() {
19436  _sqrtl(0);
19437 ; return 0; }
19438 EOF
19439 if { (eval echo configure:19440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19440   rm -rf conftest*
19441   glibcpp_cv_func__sqrtl_use=yes
19442 else
19443   echo "configure: failed program was:" >&5
19444   cat conftest.$ac_ext >&5
19445   rm -rf conftest*
19446   glibcpp_cv_func__sqrtl_use=no
19447 fi
19448 rm -f conftest*
19449       ac_ext=c
19450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19454 cross_compiling=$ac_cv_prog_cc_cross
19455
19456     
19457 fi
19458
19459   fi
19460   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19461
19462     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19463       for ac_func in _sqrtl
19464 do
19465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19466 echo "configure:19467: checking for $ac_func" >&5
19467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19468   echo $ac_n "(cached) $ac_c" 1>&6
19469 else
19470   cat > conftest.$ac_ext <<EOF
19471 #line 19472 "configure"
19472 #include "confdefs.h"
19473 /* System header to define __stub macros and hopefully few prototypes,
19474     which can conflict with char $ac_func(); below.  */
19475 #include <assert.h>
19476 /* Override any gcc2 internal prototype to avoid an error.  */
19477 /* We use char because int might match the return type of a gcc2
19478     builtin and then its argument prototype would still apply.  */
19479 char $ac_func();
19480
19481 int main() {
19482
19483 /* The GNU C library defines this for functions which it implements
19484     to always fail with ENOSYS.  Some functions are actually named
19485     something starting with __ and the normal name is an alias.  */
19486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19487 choke me
19488 #else
19489 $ac_func();
19490 #endif
19491
19492 ; return 0; }
19493 EOF
19494 if { (eval echo configure:19495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19495   rm -rf conftest*
19496   eval "ac_cv_func_$ac_func=yes"
19497 else
19498   echo "configure: failed program was:" >&5
19499   cat conftest.$ac_ext >&5
19500   rm -rf conftest*
19501   eval "ac_cv_func_$ac_func=no"
19502 fi
19503 rm -f conftest*
19504 fi
19505
19506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19507   echo "$ac_t""yes" 1>&6
19508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19509   cat >> confdefs.h <<EOF
19510 #define $ac_tr_func 1
19511 EOF
19512  
19513 else
19514   echo "$ac_t""no" 1>&6
19515 fi
19516 done
19517     
19518     fi
19519   fi
19520
19521   
19522   
19523   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19524 echo "configure:19525: checking for sincosl declaration" >&5
19525   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19526     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19527   echo $ac_n "(cached) $ac_c" 1>&6
19528 else
19529   
19530       
19531       ac_ext=C
19532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19536 cross_compiling=$ac_cv_prog_cxx_cross
19537
19538       cat > conftest.$ac_ext <<EOF
19539 #line 19540 "configure"
19540 #include "confdefs.h"
19541 #include <math.h>
19542 int main() {
19543  sincosl(0, 0, 0);
19544 ; return 0; }
19545 EOF
19546 if { (eval echo configure:19547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19547   rm -rf conftest*
19548   glibcpp_cv_func_sincosl_use=yes
19549 else
19550   echo "configure: failed program was:" >&5
19551   cat conftest.$ac_ext >&5
19552   rm -rf conftest*
19553   glibcpp_cv_func_sincosl_use=no
19554 fi
19555 rm -f conftest*
19556       ac_ext=c
19557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19558 ac_cpp='$CPP $CPPFLAGS'
19559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19561 cross_compiling=$ac_cv_prog_cc_cross
19562
19563     
19564 fi
19565
19566   fi
19567   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19568
19569   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19570     for ac_func in sincosl
19571 do
19572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19573 echo "configure:19574: checking for $ac_func" >&5
19574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19575   echo $ac_n "(cached) $ac_c" 1>&6
19576 else
19577   cat > conftest.$ac_ext <<EOF
19578 #line 19579 "configure"
19579 #include "confdefs.h"
19580 /* System header to define __stub macros and hopefully few prototypes,
19581     which can conflict with char $ac_func(); below.  */
19582 #include <assert.h>
19583 /* Override any gcc2 internal prototype to avoid an error.  */
19584 /* We use char because int might match the return type of a gcc2
19585     builtin and then its argument prototype would still apply.  */
19586 char $ac_func();
19587
19588 int main() {
19589
19590 /* The GNU C library defines this for functions which it implements
19591     to always fail with ENOSYS.  Some functions are actually named
19592     something starting with __ and the normal name is an alias.  */
19593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19594 choke me
19595 #else
19596 $ac_func();
19597 #endif
19598
19599 ; return 0; }
19600 EOF
19601 if { (eval echo configure:19602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19602   rm -rf conftest*
19603   eval "ac_cv_func_$ac_func=yes"
19604 else
19605   echo "configure: failed program was:" >&5
19606   cat conftest.$ac_ext >&5
19607   rm -rf conftest*
19608   eval "ac_cv_func_$ac_func=no"
19609 fi
19610 rm -f conftest*
19611 fi
19612
19613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19614   echo "$ac_t""yes" 1>&6
19615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19616   cat >> confdefs.h <<EOF
19617 #define $ac_tr_func 1
19618 EOF
19619  
19620 else
19621   echo "$ac_t""no" 1>&6
19622 fi
19623 done
19624     
19625   else
19626     
19627   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19628 echo "configure:19629: checking for _sincosl declaration" >&5
19629   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19630     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19631   echo $ac_n "(cached) $ac_c" 1>&6
19632 else
19633   
19634       
19635       ac_ext=C
19636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19637 ac_cpp='$CXXCPP $CPPFLAGS'
19638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19640 cross_compiling=$ac_cv_prog_cxx_cross
19641
19642       cat > conftest.$ac_ext <<EOF
19643 #line 19644 "configure"
19644 #include "confdefs.h"
19645 #include <math.h>
19646 int main() {
19647  _sincosl(0, 0, 0);
19648 ; return 0; }
19649 EOF
19650 if { (eval echo configure:19651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19651   rm -rf conftest*
19652   glibcpp_cv_func__sincosl_use=yes
19653 else
19654   echo "configure: failed program was:" >&5
19655   cat conftest.$ac_ext >&5
19656   rm -rf conftest*
19657   glibcpp_cv_func__sincosl_use=no
19658 fi
19659 rm -f conftest*
19660       ac_ext=c
19661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19662 ac_cpp='$CPP $CPPFLAGS'
19663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19665 cross_compiling=$ac_cv_prog_cc_cross
19666
19667     
19668 fi
19669
19670   fi
19671   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19672
19673     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19674       for ac_func in _sincosl
19675 do
19676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19677 echo "configure:19678: checking for $ac_func" >&5
19678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19679   echo $ac_n "(cached) $ac_c" 1>&6
19680 else
19681   cat > conftest.$ac_ext <<EOF
19682 #line 19683 "configure"
19683 #include "confdefs.h"
19684 /* System header to define __stub macros and hopefully few prototypes,
19685     which can conflict with char $ac_func(); below.  */
19686 #include <assert.h>
19687 /* Override any gcc2 internal prototype to avoid an error.  */
19688 /* We use char because int might match the return type of a gcc2
19689     builtin and then its argument prototype would still apply.  */
19690 char $ac_func();
19691
19692 int main() {
19693
19694 /* The GNU C library defines this for functions which it implements
19695     to always fail with ENOSYS.  Some functions are actually named
19696     something starting with __ and the normal name is an alias.  */
19697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19698 choke me
19699 #else
19700 $ac_func();
19701 #endif
19702
19703 ; return 0; }
19704 EOF
19705 if { (eval echo configure:19706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19706   rm -rf conftest*
19707   eval "ac_cv_func_$ac_func=yes"
19708 else
19709   echo "configure: failed program was:" >&5
19710   cat conftest.$ac_ext >&5
19711   rm -rf conftest*
19712   eval "ac_cv_func_$ac_func=no"
19713 fi
19714 rm -f conftest*
19715 fi
19716
19717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19718   echo "$ac_t""yes" 1>&6
19719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19720   cat >> confdefs.h <<EOF
19721 #define $ac_tr_func 1
19722 EOF
19723  
19724 else
19725   echo "$ac_t""no" 1>&6
19726 fi
19727 done
19728     
19729     fi
19730   fi
19731
19732   
19733   
19734   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19735 echo "configure:19736: checking for finitel declaration" >&5
19736   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19737     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19738   echo $ac_n "(cached) $ac_c" 1>&6
19739 else
19740   
19741       
19742       ac_ext=C
19743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19744 ac_cpp='$CXXCPP $CPPFLAGS'
19745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19747 cross_compiling=$ac_cv_prog_cxx_cross
19748
19749       cat > conftest.$ac_ext <<EOF
19750 #line 19751 "configure"
19751 #include "confdefs.h"
19752 #include <math.h>
19753                       #ifdef HAVE_IEEEFP_H
19754                       #include <ieeefp.h>
19755                       #endif
19756                      
19757 int main() {
19758  finitel(0);
19759 ; return 0; }
19760 EOF
19761 if { (eval echo configure:19762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19762   rm -rf conftest*
19763   glibcpp_cv_func_finitel_use=yes
19764 else
19765   echo "configure: failed program was:" >&5
19766   cat conftest.$ac_ext >&5
19767   rm -rf conftest*
19768   glibcpp_cv_func_finitel_use=no
19769 fi
19770 rm -f conftest*
19771       ac_ext=c
19772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19776 cross_compiling=$ac_cv_prog_cc_cross
19777
19778     
19779 fi
19780
19781   fi
19782   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19783
19784   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19785     for ac_func in finitel
19786 do
19787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19788 echo "configure:19789: checking for $ac_func" >&5
19789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19790   echo $ac_n "(cached) $ac_c" 1>&6
19791 else
19792   cat > conftest.$ac_ext <<EOF
19793 #line 19794 "configure"
19794 #include "confdefs.h"
19795 /* System header to define __stub macros and hopefully few prototypes,
19796     which can conflict with char $ac_func(); below.  */
19797 #include <assert.h>
19798 /* Override any gcc2 internal prototype to avoid an error.  */
19799 /* We use char because int might match the return type of a gcc2
19800     builtin and then its argument prototype would still apply.  */
19801 char $ac_func();
19802
19803 int main() {
19804
19805 /* The GNU C library defines this for functions which it implements
19806     to always fail with ENOSYS.  Some functions are actually named
19807     something starting with __ and the normal name is an alias.  */
19808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19809 choke me
19810 #else
19811 $ac_func();
19812 #endif
19813
19814 ; return 0; }
19815 EOF
19816 if { (eval echo configure:19817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19817   rm -rf conftest*
19818   eval "ac_cv_func_$ac_func=yes"
19819 else
19820   echo "configure: failed program was:" >&5
19821   cat conftest.$ac_ext >&5
19822   rm -rf conftest*
19823   eval "ac_cv_func_$ac_func=no"
19824 fi
19825 rm -f conftest*
19826 fi
19827
19828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19829   echo "$ac_t""yes" 1>&6
19830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19831   cat >> confdefs.h <<EOF
19832 #define $ac_tr_func 1
19833 EOF
19834  
19835 else
19836   echo "$ac_t""no" 1>&6
19837 fi
19838 done
19839     
19840   else
19841     
19842   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19843 echo "configure:19844: checking for _finitel declaration" >&5
19844   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19845     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19846   echo $ac_n "(cached) $ac_c" 1>&6
19847 else
19848   
19849       
19850       ac_ext=C
19851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19852 ac_cpp='$CXXCPP $CPPFLAGS'
19853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19855 cross_compiling=$ac_cv_prog_cxx_cross
19856
19857       cat > conftest.$ac_ext <<EOF
19858 #line 19859 "configure"
19859 #include "confdefs.h"
19860 #include <math.h>
19861                       #ifdef HAVE_IEEEFP_H
19862                       #include <ieeefp.h>
19863                       #endif
19864                      
19865 int main() {
19866  _finitel(0);
19867 ; return 0; }
19868 EOF
19869 if { (eval echo configure:19870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19870   rm -rf conftest*
19871   glibcpp_cv_func__finitel_use=yes
19872 else
19873   echo "configure: failed program was:" >&5
19874   cat conftest.$ac_ext >&5
19875   rm -rf conftest*
19876   glibcpp_cv_func__finitel_use=no
19877 fi
19878 rm -f conftest*
19879       ac_ext=c
19880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19884 cross_compiling=$ac_cv_prog_cc_cross
19885
19886     
19887 fi
19888
19889   fi
19890   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19891
19892     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19893       for ac_func in _finitel
19894 do
19895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19896 echo "configure:19897: checking for $ac_func" >&5
19897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19898   echo $ac_n "(cached) $ac_c" 1>&6
19899 else
19900   cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19903 /* System header to define __stub macros and hopefully few prototypes,
19904     which can conflict with char $ac_func(); below.  */
19905 #include <assert.h>
19906 /* Override any gcc2 internal prototype to avoid an error.  */
19907 /* We use char because int might match the return type of a gcc2
19908     builtin and then its argument prototype would still apply.  */
19909 char $ac_func();
19910
19911 int main() {
19912
19913 /* The GNU C library defines this for functions which it implements
19914     to always fail with ENOSYS.  Some functions are actually named
19915     something starting with __ and the normal name is an alias.  */
19916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19917 choke me
19918 #else
19919 $ac_func();
19920 #endif
19921
19922 ; return 0; }
19923 EOF
19924 if { (eval echo configure:19925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19925   rm -rf conftest*
19926   eval "ac_cv_func_$ac_func=yes"
19927 else
19928   echo "configure: failed program was:" >&5
19929   cat conftest.$ac_ext >&5
19930   rm -rf conftest*
19931   eval "ac_cv_func_$ac_func=no"
19932 fi
19933 rm -f conftest*
19934 fi
19935
19936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19937   echo "$ac_t""yes" 1>&6
19938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19939   cat >> confdefs.h <<EOF
19940 #define $ac_tr_func 1
19941 EOF
19942  
19943 else
19944   echo "$ac_t""no" 1>&6
19945 fi
19946 done
19947     
19948     fi
19949   fi
19950
19951
19952         
19953     
19954   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19955 echo "configure:19956: checking for _float trig functions" >&5
19956   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19957   echo $ac_n "(cached) $ac_c" 1>&6
19958 else
19959   
19960     
19961     ac_ext=C
19962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19966 cross_compiling=$ac_cv_prog_cxx_cross
19967
19968     cat > conftest.$ac_ext <<EOF
19969 #line 19970 "configure"
19970 #include "confdefs.h"
19971 #include <math.h>
19972 int main() {
19973  `for x in _acosf _asinf _atanf \
19974                                           _cosf _sinf _tanf \
19975                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19976 ; return 0; }
19977 EOF
19978 if { (eval echo configure:19979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19979   rm -rf conftest*
19980   glibcpp_cv_func__float_trig_use=yes
19981 else
19982   echo "configure: failed program was:" >&5
19983   cat conftest.$ac_ext >&5
19984   rm -rf conftest*
19985   glibcpp_cv_func__float_trig_use=no
19986 fi
19987 rm -f conftest*
19988     ac_ext=c
19989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19990 ac_cpp='$CPP $CPPFLAGS'
19991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19993 cross_compiling=$ac_cv_prog_cc_cross
19994
19995 fi
19996
19997   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19998   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19999     for ac_func in _acosf _asinf _atanf \
20000                                           _cosf _sinf _tanf \
20001                                           _coshf _sinhf _tanhf
20002 do
20003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20004 echo "configure:20005: checking for $ac_func" >&5
20005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20006   echo $ac_n "(cached) $ac_c" 1>&6
20007 else
20008   cat > conftest.$ac_ext <<EOF
20009 #line 20010 "configure"
20010 #include "confdefs.h"
20011 /* System header to define __stub macros and hopefully few prototypes,
20012     which can conflict with char $ac_func(); below.  */
20013 #include <assert.h>
20014 /* Override any gcc2 internal prototype to avoid an error.  */
20015 /* We use char because int might match the return type of a gcc2
20016     builtin and then its argument prototype would still apply.  */
20017 char $ac_func();
20018
20019 int main() {
20020
20021 /* The GNU C library defines this for functions which it implements
20022     to always fail with ENOSYS.  Some functions are actually named
20023     something starting with __ and the normal name is an alias.  */
20024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20025 choke me
20026 #else
20027 $ac_func();
20028 #endif
20029
20030 ; return 0; }
20031 EOF
20032 if { (eval echo configure:20033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20033   rm -rf conftest*
20034   eval "ac_cv_func_$ac_func=yes"
20035 else
20036   echo "configure: failed program was:" >&5
20037   cat conftest.$ac_ext >&5
20038   rm -rf conftest*
20039   eval "ac_cv_func_$ac_func=no"
20040 fi
20041 rm -f conftest*
20042 fi
20043
20044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20045   echo "$ac_t""yes" 1>&6
20046     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20047   cat >> confdefs.h <<EOF
20048 #define $ac_tr_func 1
20049 EOF
20050  
20051 else
20052   echo "$ac_t""no" 1>&6
20053 fi
20054 done
20055
20056   fi
20057
20058   
20059   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20060 echo "configure:20061: checking for _float round functions" >&5
20061   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20062   echo $ac_n "(cached) $ac_c" 1>&6
20063 else
20064   
20065     
20066     ac_ext=C
20067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20068 ac_cpp='$CXXCPP $CPPFLAGS'
20069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20071 cross_compiling=$ac_cv_prog_cxx_cross
20072
20073     cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20076 #include <math.h>
20077 int main() {
20078  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20079 ; return 0; }
20080 EOF
20081 if { (eval echo configure:20082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20082   rm -rf conftest*
20083   glibcpp_cv_func__float_round_use=yes
20084 else
20085   echo "configure: failed program was:" >&5
20086   cat conftest.$ac_ext >&5
20087   rm -rf conftest*
20088   glibcpp_cv_func__float_round_use=no
20089 fi
20090 rm -f conftest*
20091     ac_ext=c
20092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20096 cross_compiling=$ac_cv_prog_cc_cross
20097
20098 fi
20099
20100   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20101   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20102     for ac_func in _ceilf _floorf
20103 do
20104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20105 echo "configure:20106: checking for $ac_func" >&5
20106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20107   echo $ac_n "(cached) $ac_c" 1>&6
20108 else
20109   cat > conftest.$ac_ext <<EOF
20110 #line 20111 "configure"
20111 #include "confdefs.h"
20112 /* System header to define __stub macros and hopefully few prototypes,
20113     which can conflict with char $ac_func(); below.  */
20114 #include <assert.h>
20115 /* Override any gcc2 internal prototype to avoid an error.  */
20116 /* We use char because int might match the return type of a gcc2
20117     builtin and then its argument prototype would still apply.  */
20118 char $ac_func();
20119
20120 int main() {
20121
20122 /* The GNU C library defines this for functions which it implements
20123     to always fail with ENOSYS.  Some functions are actually named
20124     something starting with __ and the normal name is an alias.  */
20125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20126 choke me
20127 #else
20128 $ac_func();
20129 #endif
20130
20131 ; return 0; }
20132 EOF
20133 if { (eval echo configure:20134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20134   rm -rf conftest*
20135   eval "ac_cv_func_$ac_func=yes"
20136 else
20137   echo "configure: failed program was:" >&5
20138   cat conftest.$ac_ext >&5
20139   rm -rf conftest*
20140   eval "ac_cv_func_$ac_func=no"
20141 fi
20142 rm -f conftest*
20143 fi
20144
20145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20146   echo "$ac_t""yes" 1>&6
20147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20148   cat >> confdefs.h <<EOF
20149 #define $ac_tr_func 1
20150 EOF
20151  
20152 else
20153   echo "$ac_t""no" 1>&6
20154 fi
20155 done
20156
20157   fi
20158
20159
20160     
20161   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20162 echo "configure:20163: checking for _long double trig functions" >&5
20163   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20164   echo $ac_n "(cached) $ac_c" 1>&6
20165 else
20166   
20167     
20168     ac_ext=C
20169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20170 ac_cpp='$CXXCPP $CPPFLAGS'
20171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20173 cross_compiling=$ac_cv_prog_cxx_cross
20174
20175     cat > conftest.$ac_ext <<EOF
20176 #line 20177 "configure"
20177 #include "confdefs.h"
20178 #include <math.h>
20179 int main() {
20180  `for x in _acosl _asinl _atanl \
20181                                           _cosl _sinl _tanl \
20182                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20183 ; return 0; }
20184 EOF
20185 if { (eval echo configure:20186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20186   rm -rf conftest*
20187   glibcpp_cv_func__long_double_trig_use=yes
20188 else
20189   echo "configure: failed program was:" >&5
20190   cat conftest.$ac_ext >&5
20191   rm -rf conftest*
20192   glibcpp_cv_func__long_double_trig_use=no
20193 fi
20194 rm -f conftest*
20195     ac_ext=c
20196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20197 ac_cpp='$CPP $CPPFLAGS'
20198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20200 cross_compiling=$ac_cv_prog_cc_cross
20201
20202 fi
20203
20204   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20205   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20206     for ac_func in _acosl _asinl _atanl \
20207                                           _cosl _sinl _tanl \
20208                                           _coshl _sinhl _tanhl
20209 do
20210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20211 echo "configure:20212: checking for $ac_func" >&5
20212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20213   echo $ac_n "(cached) $ac_c" 1>&6
20214 else
20215   cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20218 /* System header to define __stub macros and hopefully few prototypes,
20219     which can conflict with char $ac_func(); below.  */
20220 #include <assert.h>
20221 /* Override any gcc2 internal prototype to avoid an error.  */
20222 /* We use char because int might match the return type of a gcc2
20223     builtin and then its argument prototype would still apply.  */
20224 char $ac_func();
20225
20226 int main() {
20227
20228 /* The GNU C library defines this for functions which it implements
20229     to always fail with ENOSYS.  Some functions are actually named
20230     something starting with __ and the normal name is an alias.  */
20231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20232 choke me
20233 #else
20234 $ac_func();
20235 #endif
20236
20237 ; return 0; }
20238 EOF
20239 if { (eval echo configure:20240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20240   rm -rf conftest*
20241   eval "ac_cv_func_$ac_func=yes"
20242 else
20243   echo "configure: failed program was:" >&5
20244   cat conftest.$ac_ext >&5
20245   rm -rf conftest*
20246   eval "ac_cv_func_$ac_func=no"
20247 fi
20248 rm -f conftest*
20249 fi
20250
20251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20252   echo "$ac_t""yes" 1>&6
20253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20254   cat >> confdefs.h <<EOF
20255 #define $ac_tr_func 1
20256 EOF
20257  
20258 else
20259   echo "$ac_t""no" 1>&6
20260 fi
20261 done
20262
20263   fi
20264
20265   
20266   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20267 echo "configure:20268: checking for _long double round functions" >&5
20268   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20269   echo $ac_n "(cached) $ac_c" 1>&6
20270 else
20271   
20272     
20273     ac_ext=C
20274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20275 ac_cpp='$CXXCPP $CPPFLAGS'
20276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20278 cross_compiling=$ac_cv_prog_cxx_cross
20279
20280     cat > conftest.$ac_ext <<EOF
20281 #line 20282 "configure"
20282 #include "confdefs.h"
20283 #include <math.h>
20284 int main() {
20285  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20286 ; return 0; }
20287 EOF
20288 if { (eval echo configure:20289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20289   rm -rf conftest*
20290   glibcpp_cv_func__long_double_round_use=yes
20291 else
20292   echo "configure: failed program was:" >&5
20293   cat conftest.$ac_ext >&5
20294   rm -rf conftest*
20295   glibcpp_cv_func__long_double_round_use=no
20296 fi
20297 rm -f conftest*
20298     ac_ext=c
20299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20300 ac_cpp='$CPP $CPPFLAGS'
20301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20303 cross_compiling=$ac_cv_prog_cc_cross
20304
20305 fi
20306
20307   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20308   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20309     for ac_func in _ceill _floorl
20310 do
20311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20312 echo "configure:20313: checking for $ac_func" >&5
20313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20314   echo $ac_n "(cached) $ac_c" 1>&6
20315 else
20316   cat > conftest.$ac_ext <<EOF
20317 #line 20318 "configure"
20318 #include "confdefs.h"
20319 /* System header to define __stub macros and hopefully few prototypes,
20320     which can conflict with char $ac_func(); below.  */
20321 #include <assert.h>
20322 /* Override any gcc2 internal prototype to avoid an error.  */
20323 /* We use char because int might match the return type of a gcc2
20324     builtin and then its argument prototype would still apply.  */
20325 char $ac_func();
20326
20327 int main() {
20328
20329 /* The GNU C library defines this for functions which it implements
20330     to always fail with ENOSYS.  Some functions are actually named
20331     something starting with __ and the normal name is an alias.  */
20332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20333 choke me
20334 #else
20335 $ac_func();
20336 #endif
20337
20338 ; return 0; }
20339 EOF
20340 if { (eval echo configure:20341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20341   rm -rf conftest*
20342   eval "ac_cv_func_$ac_func=yes"
20343 else
20344   echo "configure: failed program was:" >&5
20345   cat conftest.$ac_ext >&5
20346   rm -rf conftest*
20347   eval "ac_cv_func_$ac_func=no"
20348 fi
20349 rm -f conftest*
20350 fi
20351
20352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20353   echo "$ac_t""yes" 1>&6
20354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20355   cat >> confdefs.h <<EOF
20356 #define $ac_tr_func 1
20357 EOF
20358  
20359 else
20360   echo "$ac_t""no" 1>&6
20361 fi
20362 done
20363
20364   fi
20365
20366
20367   LIBS="$ac_save_LIBS"
20368   CXXFLAGS="$ac_save_CXXFLAGS"
20369
20370   
20371     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20372 echo "configure:20373: checking for main in -lm" >&5
20373 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20375   echo $ac_n "(cached) $ac_c" 1>&6
20376 else
20377   ac_save_LIBS="$LIBS"
20378 LIBS="-lm  $LIBS"
20379 cat > conftest.$ac_ext <<EOF
20380 #line 20381 "configure"
20381 #include "confdefs.h"
20382
20383 int main() {
20384 main()
20385 ; return 0; }
20386 EOF
20387 if { (eval echo configure:20388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20388   rm -rf conftest*
20389   eval "ac_cv_lib_$ac_lib_var=yes"
20390 else
20391   echo "configure: failed program was:" >&5
20392   cat conftest.$ac_ext >&5
20393   rm -rf conftest*
20394   eval "ac_cv_lib_$ac_lib_var=no"
20395 fi
20396 rm -f conftest*
20397 LIBS="$ac_save_LIBS"
20398
20399 fi
20400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20401   echo "$ac_t""yes" 1>&6
20402     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20403     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20404   cat >> confdefs.h <<EOF
20405 #define $ac_tr_lib 1
20406 EOF
20407
20408   LIBS="-lm $LIBS"
20409
20410 else
20411   echo "$ac_t""no" 1>&6
20412 fi
20413
20414   for ac_func in nan copysignf
20415 do
20416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20417 echo "configure:20418: checking for $ac_func" >&5
20418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20419   echo $ac_n "(cached) $ac_c" 1>&6
20420 else
20421   cat > conftest.$ac_ext <<EOF
20422 #line 20423 "configure"
20423 #include "confdefs.h"
20424 /* System header to define __stub macros and hopefully few prototypes,
20425     which can conflict with char $ac_func(); below.  */
20426 #include <assert.h>
20427 /* Override any gcc2 internal prototype to avoid an error.  */
20428 /* We use char because int might match the return type of a gcc2
20429     builtin and then its argument prototype would still apply.  */
20430 char $ac_func();
20431
20432 int main() {
20433
20434 /* The GNU C library defines this for functions which it implements
20435     to always fail with ENOSYS.  Some functions are actually named
20436     something starting with __ and the normal name is an alias.  */
20437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20438 choke me
20439 #else
20440 $ac_func();
20441 #endif
20442
20443 ; return 0; }
20444 EOF
20445 if { (eval echo configure:20446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20446   rm -rf conftest*
20447   eval "ac_cv_func_$ac_func=yes"
20448 else
20449   echo "configure: failed program was:" >&5
20450   cat conftest.$ac_ext >&5
20451   rm -rf conftest*
20452   eval "ac_cv_func_$ac_func=no"
20453 fi
20454 rm -f conftest*
20455 fi
20456
20457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20458   echo "$ac_t""yes" 1>&6
20459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20460   cat >> confdefs.h <<EOF
20461 #define $ac_tr_func 1
20462 EOF
20463  
20464 else
20465   echo "$ac_t""no" 1>&6
20466 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20467 fi
20468 done
20469
20470
20471     for ac_func in __signbit
20472 do
20473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20474 echo "configure:20475: checking for $ac_func" >&5
20475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20476   echo $ac_n "(cached) $ac_c" 1>&6
20477 else
20478   cat > conftest.$ac_ext <<EOF
20479 #line 20480 "configure"
20480 #include "confdefs.h"
20481 /* System header to define __stub macros and hopefully few prototypes,
20482     which can conflict with char $ac_func(); below.  */
20483 #include <assert.h>
20484 /* Override any gcc2 internal prototype to avoid an error.  */
20485 /* We use char because int might match the return type of a gcc2
20486     builtin and then its argument prototype would still apply.  */
20487 char $ac_func();
20488
20489 int main() {
20490
20491 /* The GNU C library defines this for functions which it implements
20492     to always fail with ENOSYS.  Some functions are actually named
20493     something starting with __ and the normal name is an alias.  */
20494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20495 choke me
20496 #else
20497 $ac_func();
20498 #endif
20499
20500 ; return 0; }
20501 EOF
20502 if { (eval echo configure:20503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20503   rm -rf conftest*
20504   eval "ac_cv_func_$ac_func=yes"
20505 else
20506   echo "configure: failed program was:" >&5
20507   cat conftest.$ac_ext >&5
20508   rm -rf conftest*
20509   eval "ac_cv_func_$ac_func=no"
20510 fi
20511 rm -f conftest*
20512 fi
20513
20514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20515   echo "$ac_t""yes" 1>&6
20516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20517   cat >> confdefs.h <<EOF
20518 #define $ac_tr_func 1
20519 EOF
20520  
20521 else
20522   echo "$ac_t""no" 1>&6
20523 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20524 fi
20525 done
20526
20527   for ac_func in __signbitf
20528 do
20529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20530 echo "configure:20531: checking for $ac_func" >&5
20531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20532   echo $ac_n "(cached) $ac_c" 1>&6
20533 else
20534   cat > conftest.$ac_ext <<EOF
20535 #line 20536 "configure"
20536 #include "confdefs.h"
20537 /* System header to define __stub macros and hopefully few prototypes,
20538     which can conflict with char $ac_func(); below.  */
20539 #include <assert.h>
20540 /* Override any gcc2 internal prototype to avoid an error.  */
20541 /* We use char because int might match the return type of a gcc2
20542     builtin and then its argument prototype would still apply.  */
20543 char $ac_func();
20544
20545 int main() {
20546
20547 /* The GNU C library defines this for functions which it implements
20548     to always fail with ENOSYS.  Some functions are actually named
20549     something starting with __ and the normal name is an alias.  */
20550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20551 choke me
20552 #else
20553 $ac_func();
20554 #endif
20555
20556 ; return 0; }
20557 EOF
20558 if { (eval echo configure:20559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20559   rm -rf conftest*
20560   eval "ac_cv_func_$ac_func=yes"
20561 else
20562   echo "configure: failed program was:" >&5
20563   cat conftest.$ac_ext >&5
20564   rm -rf conftest*
20565   eval "ac_cv_func_$ac_func=no"
20566 fi
20567 rm -f conftest*
20568 fi
20569
20570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20571   echo "$ac_t""yes" 1>&6
20572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20573   cat >> confdefs.h <<EOF
20574 #define $ac_tr_func 1
20575 EOF
20576  
20577 else
20578   echo "$ac_t""no" 1>&6
20579 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20580 fi
20581 done
20582
20583
20584           if test x$ac_cv_func_copysignl = x"yes"; then
20585     for ac_func in __signbitl
20586 do
20587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20588 echo "configure:20589: checking for $ac_func" >&5
20589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20590   echo $ac_n "(cached) $ac_c" 1>&6
20591 else
20592   cat > conftest.$ac_ext <<EOF
20593 #line 20594 "configure"
20594 #include "confdefs.h"
20595 /* System header to define __stub macros and hopefully few prototypes,
20596     which can conflict with char $ac_func(); below.  */
20597 #include <assert.h>
20598 /* Override any gcc2 internal prototype to avoid an error.  */
20599 /* We use char because int might match the return type of a gcc2
20600     builtin and then its argument prototype would still apply.  */
20601 char $ac_func();
20602
20603 int main() {
20604
20605 /* The GNU C library defines this for functions which it implements
20606     to always fail with ENOSYS.  Some functions are actually named
20607     something starting with __ and the normal name is an alias.  */
20608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20609 choke me
20610 #else
20611 $ac_func();
20612 #endif
20613
20614 ; return 0; }
20615 EOF
20616 if { (eval echo configure:20617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20617   rm -rf conftest*
20618   eval "ac_cv_func_$ac_func=yes"
20619 else
20620   echo "configure: failed program was:" >&5
20621   cat conftest.$ac_ext >&5
20622   rm -rf conftest*
20623   eval "ac_cv_func_$ac_func=no"
20624 fi
20625 rm -f conftest*
20626 fi
20627
20628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20629   echo "$ac_t""yes" 1>&6
20630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20631   cat >> confdefs.h <<EOF
20632 #define $ac_tr_func 1
20633 EOF
20634  
20635 else
20636   echo "$ac_t""no" 1>&6
20637 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20638 fi
20639 done
20640
20641   fi
20642
20643   
20644
20645   
20646
20647       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20648 echo "configure:20649: checking for mbstate_t" >&5
20649   cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20652 #include <wchar.h>
20653 int main() {
20654 mbstate_t teststate;
20655 ; return 0; }
20656 EOF
20657 if { (eval echo configure:20658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20658   rm -rf conftest*
20659   have_mbstate_t=yes
20660 else
20661   echo "configure: failed program was:" >&5
20662   cat conftest.$ac_ext >&5
20663   rm -rf conftest*
20664   have_mbstate_t=no
20665 fi
20666 rm -f conftest*
20667   echo "$ac_t""$have_mbstate_t" 1>&6
20668   if test x"$have_mbstate_t" = xyes; then
20669     cat >> confdefs.h <<\EOF
20670 #define HAVE_MBSTATE_T 1
20671 EOF
20672
20673   fi
20674
20675     for ac_hdr in wchar.h
20676 do
20677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20679 echo "configure:20680: checking for $ac_hdr" >&5
20680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20681   echo $ac_n "(cached) $ac_c" 1>&6
20682 else
20683   cat > conftest.$ac_ext <<EOF
20684 #line 20685 "configure"
20685 #include "confdefs.h"
20686 #include <$ac_hdr>
20687 EOF
20688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20689 { (eval echo configure:20690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20691 if test -z "$ac_err"; then
20692   rm -rf conftest*
20693   eval "ac_cv_header_$ac_safe=yes"
20694 else
20695   echo "$ac_err" >&5
20696   echo "configure: failed program was:" >&5
20697   cat conftest.$ac_ext >&5
20698   rm -rf conftest*
20699   eval "ac_cv_header_$ac_safe=no"
20700 fi
20701 rm -f conftest*
20702 fi
20703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20704   echo "$ac_t""yes" 1>&6
20705     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20706   cat >> confdefs.h <<EOF
20707 #define $ac_tr_hdr 1
20708 EOF
20709  ac_has_wchar_h=yes
20710 else
20711   echo "$ac_t""no" 1>&6
20712 ac_has_wchar_h=no
20713 fi
20714 done
20715
20716   for ac_hdr in wctype.h
20717 do
20718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20720 echo "configure:20721: checking for $ac_hdr" >&5
20721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20722   echo $ac_n "(cached) $ac_c" 1>&6
20723 else
20724   cat > conftest.$ac_ext <<EOF
20725 #line 20726 "configure"
20726 #include "confdefs.h"
20727 #include <$ac_hdr>
20728 EOF
20729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20730 { (eval echo configure:20731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20732 if test -z "$ac_err"; then
20733   rm -rf conftest*
20734   eval "ac_cv_header_$ac_safe=yes"
20735 else
20736   echo "$ac_err" >&5
20737   echo "configure: failed program was:" >&5
20738   cat conftest.$ac_ext >&5
20739   rm -rf conftest*
20740   eval "ac_cv_header_$ac_safe=no"
20741 fi
20742 rm -f conftest*
20743 fi
20744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20745   echo "$ac_t""yes" 1>&6
20746     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20747   cat >> confdefs.h <<EOF
20748 #define $ac_tr_hdr 1
20749 EOF
20750  ac_has_wctype_h=yes
20751 else
20752   echo "$ac_t""no" 1>&6
20753 ac_has_wctype_h=no
20754 fi
20755 done
20756
20757   
20758     if test x"$ac_has_wchar_h" = xyes &&
20759      test x"$ac_has_wctype_h" = xyes &&
20760      test x"$enable_c_mbchar" != xno; then
20761       
20762             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20763 echo "configure:20764: checking for WCHAR_MIN and WCHAR_MAX" >&5
20764     cat > conftest.$ac_ext <<EOF
20765 #line 20766 "configure"
20766 #include "confdefs.h"
20767 #include <wchar.h>
20768 int main() {
20769 int i = WCHAR_MIN; int j = WCHAR_MAX;
20770 ; return 0; }
20771 EOF
20772 if { (eval echo configure:20773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20773   rm -rf conftest*
20774   has_wchar_minmax=yes
20775 else
20776   echo "configure: failed program was:" >&5
20777   cat conftest.$ac_ext >&5
20778   rm -rf conftest*
20779   has_wchar_minmax=no
20780 fi
20781 rm -f conftest*
20782     echo "$ac_t""$has_wchar_minmax" 1>&6
20783     
20784             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20785 echo "configure:20786: checking for WEOF" >&5
20786     cat > conftest.$ac_ext <<EOF
20787 #line 20788 "configure"
20788 #include "confdefs.h"
20789
20790       #include <wchar.h>
20791       #include <stddef.h>
20792 int main() {
20793 wint_t i = WEOF;
20794 ; return 0; }
20795 EOF
20796 if { (eval echo configure:20797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20797   rm -rf conftest*
20798   has_weof=yes
20799 else
20800   echo "configure: failed program was:" >&5
20801   cat conftest.$ac_ext >&5
20802   rm -rf conftest*
20803   has_weof=no
20804 fi
20805 rm -f conftest*
20806     echo "$ac_t""$has_weof" 1>&6
20807   
20808         ac_wfuncs=yes
20809     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20810 do
20811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20812 echo "configure:20813: checking for $ac_func" >&5
20813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20814   echo $ac_n "(cached) $ac_c" 1>&6
20815 else
20816   cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 /* System header to define __stub macros and hopefully few prototypes,
20820     which can conflict with char $ac_func(); below.  */
20821 #include <assert.h>
20822 /* Override any gcc2 internal prototype to avoid an error.  */
20823 /* We use char because int might match the return type of a gcc2
20824     builtin and then its argument prototype would still apply.  */
20825 char $ac_func();
20826
20827 int main() {
20828
20829 /* The GNU C library defines this for functions which it implements
20830     to always fail with ENOSYS.  Some functions are actually named
20831     something starting with __ and the normal name is an alias.  */
20832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20833 choke me
20834 #else
20835 $ac_func();
20836 #endif
20837
20838 ; return 0; }
20839 EOF
20840 if { (eval echo configure:20841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20841   rm -rf conftest*
20842   eval "ac_cv_func_$ac_func=yes"
20843 else
20844   echo "configure: failed program was:" >&5
20845   cat conftest.$ac_ext >&5
20846   rm -rf conftest*
20847   eval "ac_cv_func_$ac_func=no"
20848 fi
20849 rm -f conftest*
20850 fi
20851
20852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20853   echo "$ac_t""yes" 1>&6
20854     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20855   cat >> confdefs.h <<EOF
20856 #define $ac_tr_func 1
20857 EOF
20858  
20859 else
20860   echo "$ac_t""no" 1>&6
20861 \
20862     ac_wfuncs=no
20863 fi
20864 done
20865
20866   
20867         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20868     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20869     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20870     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20871     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20872     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20873 do
20874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20875 echo "configure:20876: checking for $ac_func" >&5
20876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20877   echo $ac_n "(cached) $ac_c" 1>&6
20878 else
20879   cat > conftest.$ac_ext <<EOF
20880 #line 20881 "configure"
20881 #include "confdefs.h"
20882 /* System header to define __stub macros and hopefully few prototypes,
20883     which can conflict with char $ac_func(); below.  */
20884 #include <assert.h>
20885 /* Override any gcc2 internal prototype to avoid an error.  */
20886 /* We use char because int might match the return type of a gcc2
20887     builtin and then its argument prototype would still apply.  */
20888 char $ac_func();
20889
20890 int main() {
20891
20892 /* The GNU C library defines this for functions which it implements
20893     to always fail with ENOSYS.  Some functions are actually named
20894     something starting with __ and the normal name is an alias.  */
20895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20896 choke me
20897 #else
20898 $ac_func();
20899 #endif
20900
20901 ; return 0; }
20902 EOF
20903 if { (eval echo configure:20904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20904   rm -rf conftest*
20905   eval "ac_cv_func_$ac_func=yes"
20906 else
20907   echo "configure: failed program was:" >&5
20908   cat conftest.$ac_ext >&5
20909   rm -rf conftest*
20910   eval "ac_cv_func_$ac_func=no"
20911 fi
20912 rm -f conftest*
20913 fi
20914
20915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20916   echo "$ac_t""yes" 1>&6
20917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20918   cat >> confdefs.h <<EOF
20919 #define $ac_tr_func 1
20920 EOF
20921  
20922 else
20923   echo "$ac_t""no" 1>&6
20924 \
20925     ac_wfuncs=no
20926 fi
20927 done
20928
20929
20930     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20931 echo "configure:20932: checking for ISO C99 wchar_t support" >&5
20932     if test x"$has_weof" = xyes &&
20933        test x"$has_wchar_minmax" = xyes &&
20934        test x"$ac_wfuncs" = xyes; then
20935       ac_isoC99_wchar_t=yes
20936     else
20937       ac_isoC99_wchar_t=no
20938     fi
20939     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20940   
20941             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20942 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20943 echo "configure:20944: checking for iconv.h" >&5
20944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20945   echo $ac_n "(cached) $ac_c" 1>&6
20946 else
20947   cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 #include <iconv.h>
20951 EOF
20952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20953 { (eval echo configure:20954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20955 if test -z "$ac_err"; then
20956   rm -rf conftest*
20957   eval "ac_cv_header_$ac_safe=yes"
20958 else
20959   echo "$ac_err" >&5
20960   echo "configure: failed program was:" >&5
20961   cat conftest.$ac_ext >&5
20962   rm -rf conftest*
20963   eval "ac_cv_header_$ac_safe=no"
20964 fi
20965 rm -f conftest*
20966 fi
20967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20968   echo "$ac_t""yes" 1>&6
20969   ac_has_iconv_h=yes
20970 else
20971   echo "$ac_t""no" 1>&6
20972 ac_has_iconv_h=no
20973 fi
20974
20975     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20976 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20977 echo "configure:20978: checking for langinfo.h" >&5
20978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20979   echo $ac_n "(cached) $ac_c" 1>&6
20980 else
20981   cat > conftest.$ac_ext <<EOF
20982 #line 20983 "configure"
20983 #include "confdefs.h"
20984 #include <langinfo.h>
20985 EOF
20986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20987 { (eval echo configure:20988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20989 if test -z "$ac_err"; then
20990   rm -rf conftest*
20991   eval "ac_cv_header_$ac_safe=yes"
20992 else
20993   echo "$ac_err" >&5
20994   echo "configure: failed program was:" >&5
20995   cat conftest.$ac_ext >&5
20996   rm -rf conftest*
20997   eval "ac_cv_header_$ac_safe=no"
20998 fi
20999 rm -f conftest*
21000 fi
21001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21002   echo "$ac_t""yes" 1>&6
21003   ac_has_langinfo_h=yes
21004 else
21005   echo "$ac_t""no" 1>&6
21006 ac_has_langinfo_h=no
21007 fi
21008
21009
21010         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21011 echo "configure:21012: checking for iconv in -liconv" >&5
21012 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21014   echo $ac_n "(cached) $ac_c" 1>&6
21015 else
21016   ac_save_LIBS="$LIBS"
21017 LIBS="-liconv  $LIBS"
21018 cat > conftest.$ac_ext <<EOF
21019 #line 21020 "configure"
21020 #include "confdefs.h"
21021 /* Override any gcc2 internal prototype to avoid an error.  */
21022 /* We use char because int might match the return type of a gcc2
21023     builtin and then its argument prototype would still apply.  */
21024 char iconv();
21025
21026 int main() {
21027 iconv()
21028 ; return 0; }
21029 EOF
21030 if { (eval echo configure:21031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21031   rm -rf conftest*
21032   eval "ac_cv_lib_$ac_lib_var=yes"
21033 else
21034   echo "configure: failed program was:" >&5
21035   cat conftest.$ac_ext >&5
21036   rm -rf conftest*
21037   eval "ac_cv_lib_$ac_lib_var=no"
21038 fi
21039 rm -f conftest*
21040 LIBS="$ac_save_LIBS"
21041
21042 fi
21043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21044   echo "$ac_t""yes" 1>&6
21045   libiconv="-liconv"
21046 else
21047   echo "$ac_t""no" 1>&6
21048 fi
21049
21050     ac_save_LIBS="$LIBS"
21051     LIBS="$LIBS $libiconv"
21052
21053     for ac_func in iconv_open iconv_close iconv nl_langinfo
21054 do
21055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21056 echo "configure:21057: checking for $ac_func" >&5
21057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21058   echo $ac_n "(cached) $ac_c" 1>&6
21059 else
21060   cat > conftest.$ac_ext <<EOF
21061 #line 21062 "configure"
21062 #include "confdefs.h"
21063 /* System header to define __stub macros and hopefully few prototypes,
21064     which can conflict with char $ac_func(); below.  */
21065 #include <assert.h>
21066 /* Override any gcc2 internal prototype to avoid an error.  */
21067 /* We use char because int might match the return type of a gcc2
21068     builtin and then its argument prototype would still apply.  */
21069 char $ac_func();
21070
21071 int main() {
21072
21073 /* The GNU C library defines this for functions which it implements
21074     to always fail with ENOSYS.  Some functions are actually named
21075     something starting with __ and the normal name is an alias.  */
21076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21077 choke me
21078 #else
21079 $ac_func();
21080 #endif
21081
21082 ; return 0; }
21083 EOF
21084 if { (eval echo configure:21085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21085   rm -rf conftest*
21086   eval "ac_cv_func_$ac_func=yes"
21087 else
21088   echo "configure: failed program was:" >&5
21089   cat conftest.$ac_ext >&5
21090   rm -rf conftest*
21091   eval "ac_cv_func_$ac_func=no"
21092 fi
21093 rm -f conftest*
21094 fi
21095
21096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21097   echo "$ac_t""yes" 1>&6
21098     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21099   cat >> confdefs.h <<EOF
21100 #define $ac_tr_func 1
21101 EOF
21102  \
21103     ac_XPG2funcs=yes
21104 else
21105   echo "$ac_t""no" 1>&6
21106 ac_XPG2funcs=no
21107 fi
21108 done
21109
21110   
21111     LIBS="$ac_save_LIBS"
21112
21113     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21114 echo "configure:21115: checking for XPG2 wchar_t support" >&5
21115     if test x"$ac_has_iconv_h" = xyes &&
21116        test x"$ac_has_langinfo_h" = xyes &&
21117        test x"$ac_XPG2funcs" = xyes; then
21118       ac_XPG2_wchar_t=yes
21119     else
21120       ac_XPG2_wchar_t=no
21121     fi
21122     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21123   
21124             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21125 echo "configure:21126: checking for enabled wchar_t specializations" >&5
21126     if test x"$ac_isoC99_wchar_t" = xyes &&
21127        test x"$ac_XPG2_wchar_t" = xyes; then
21128       cat >> confdefs.h <<\EOF
21129 #define _GLIBCPP_USE_WCHAR_T 1
21130 EOF
21131
21132       echo "$ac_t"""yes"" 1>&6
21133     else
21134       echo "$ac_t"""no"" 1>&6
21135     fi
21136   else
21137         echo "configure: warning: wchar_t support disabled." 1>&2
21138   fi
21139
21140   
21141   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21142   ac_save_CXXFLAGS="$CXXFLAGS"
21143   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21144
21145   
21146   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21147 echo "configure:21148: checking for strtold declaration" >&5
21148   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21149     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21150   echo $ac_n "(cached) $ac_c" 1>&6
21151 else
21152   
21153       
21154       ac_ext=C
21155 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21158 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21159 cross_compiling=$ac_cv_prog_cxx_cross
21160
21161       cat > conftest.$ac_ext <<EOF
21162 #line 21163 "configure"
21163 #include "confdefs.h"
21164 #include <stdlib.h>
21165 int main() {
21166  strtold(0, 0);
21167 ; return 0; }
21168 EOF
21169 if { (eval echo configure:21170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21170   rm -rf conftest*
21171   glibcpp_cv_func_strtold_use=yes
21172 else
21173   echo "configure: failed program was:" >&5
21174   cat conftest.$ac_ext >&5
21175   rm -rf conftest*
21176   glibcpp_cv_func_strtold_use=no
21177 fi
21178 rm -f conftest*
21179       ac_ext=c
21180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21184 cross_compiling=$ac_cv_prog_cc_cross
21185
21186     
21187 fi
21188
21189   fi
21190   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21191   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21192     for ac_func in strtold
21193 do
21194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21195 echo "configure:21196: checking for $ac_func" >&5
21196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21197   echo $ac_n "(cached) $ac_c" 1>&6
21198 else
21199   cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 /* System header to define __stub macros and hopefully few prototypes,
21203     which can conflict with char $ac_func(); below.  */
21204 #include <assert.h>
21205 /* Override any gcc2 internal prototype to avoid an error.  */
21206 /* We use char because int might match the return type of a gcc2
21207     builtin and then its argument prototype would still apply.  */
21208 char $ac_func();
21209
21210 int main() {
21211
21212 /* The GNU C library defines this for functions which it implements
21213     to always fail with ENOSYS.  Some functions are actually named
21214     something starting with __ and the normal name is an alias.  */
21215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21216 choke me
21217 #else
21218 $ac_func();
21219 #endif
21220
21221 ; return 0; }
21222 EOF
21223 if { (eval echo configure:21224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21224   rm -rf conftest*
21225   eval "ac_cv_func_$ac_func=yes"
21226 else
21227   echo "configure: failed program was:" >&5
21228   cat conftest.$ac_ext >&5
21229   rm -rf conftest*
21230   eval "ac_cv_func_$ac_func=no"
21231 fi
21232 rm -f conftest*
21233 fi
21234
21235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21236   echo "$ac_t""yes" 1>&6
21237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21238   cat >> confdefs.h <<EOF
21239 #define $ac_tr_func 1
21240 EOF
21241  
21242 else
21243   echo "$ac_t""no" 1>&6
21244 fi
21245 done
21246     
21247   fi
21248
21249   
21250   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21251 echo "configure:21252: checking for strtof declaration" >&5
21252   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21253     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21254   echo $ac_n "(cached) $ac_c" 1>&6
21255 else
21256   
21257       
21258       ac_ext=C
21259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21260 ac_cpp='$CXXCPP $CPPFLAGS'
21261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21263 cross_compiling=$ac_cv_prog_cxx_cross
21264
21265       cat > conftest.$ac_ext <<EOF
21266 #line 21267 "configure"
21267 #include "confdefs.h"
21268 #include <stdlib.h>
21269 int main() {
21270  strtof(0, 0);
21271 ; return 0; }
21272 EOF
21273 if { (eval echo configure:21274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21274   rm -rf conftest*
21275   glibcpp_cv_func_strtof_use=yes
21276 else
21277   echo "configure: failed program was:" >&5
21278   cat conftest.$ac_ext >&5
21279   rm -rf conftest*
21280   glibcpp_cv_func_strtof_use=no
21281 fi
21282 rm -f conftest*
21283       ac_ext=c
21284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21285 ac_cpp='$CPP $CPPFLAGS'
21286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21288 cross_compiling=$ac_cv_prog_cc_cross
21289
21290     
21291 fi
21292
21293   fi
21294   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21295   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21296     for ac_func in strtof
21297 do
21298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21299 echo "configure:21300: checking for $ac_func" >&5
21300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21301   echo $ac_n "(cached) $ac_c" 1>&6
21302 else
21303   cat > conftest.$ac_ext <<EOF
21304 #line 21305 "configure"
21305 #include "confdefs.h"
21306 /* System header to define __stub macros and hopefully few prototypes,
21307     which can conflict with char $ac_func(); below.  */
21308 #include <assert.h>
21309 /* Override any gcc2 internal prototype to avoid an error.  */
21310 /* We use char because int might match the return type of a gcc2
21311     builtin and then its argument prototype would still apply.  */
21312 char $ac_func();
21313
21314 int main() {
21315
21316 /* The GNU C library defines this for functions which it implements
21317     to always fail with ENOSYS.  Some functions are actually named
21318     something starting with __ and the normal name is an alias.  */
21319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21320 choke me
21321 #else
21322 $ac_func();
21323 #endif
21324
21325 ; return 0; }
21326 EOF
21327 if { (eval echo configure:21328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21328   rm -rf conftest*
21329   eval "ac_cv_func_$ac_func=yes"
21330 else
21331   echo "configure: failed program was:" >&5
21332   cat conftest.$ac_ext >&5
21333   rm -rf conftest*
21334   eval "ac_cv_func_$ac_func=no"
21335 fi
21336 rm -f conftest*
21337 fi
21338
21339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21340   echo "$ac_t""yes" 1>&6
21341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21342   cat >> confdefs.h <<EOF
21343 #define $ac_tr_func 1
21344 EOF
21345  
21346 else
21347   echo "$ac_t""no" 1>&6
21348 fi
21349 done
21350     
21351   fi
21352
21353   for ac_func in drand48
21354 do
21355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21356 echo "configure:21357: checking for $ac_func" >&5
21357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21358   echo $ac_n "(cached) $ac_c" 1>&6
21359 else
21360   cat > conftest.$ac_ext <<EOF
21361 #line 21362 "configure"
21362 #include "confdefs.h"
21363 /* System header to define __stub macros and hopefully few prototypes,
21364     which can conflict with char $ac_func(); below.  */
21365 #include <assert.h>
21366 /* Override any gcc2 internal prototype to avoid an error.  */
21367 /* We use char because int might match the return type of a gcc2
21368     builtin and then its argument prototype would still apply.  */
21369 char $ac_func();
21370
21371 int main() {
21372
21373 /* The GNU C library defines this for functions which it implements
21374     to always fail with ENOSYS.  Some functions are actually named
21375     something starting with __ and the normal name is an alias.  */
21376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21377 choke me
21378 #else
21379 $ac_func();
21380 #endif
21381
21382 ; return 0; }
21383 EOF
21384 if { (eval echo configure:21385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21385   rm -rf conftest*
21386   eval "ac_cv_func_$ac_func=yes"
21387 else
21388   echo "configure: failed program was:" >&5
21389   cat conftest.$ac_ext >&5
21390   rm -rf conftest*
21391   eval "ac_cv_func_$ac_func=no"
21392 fi
21393 rm -f conftest*
21394 fi
21395
21396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21397   echo "$ac_t""yes" 1>&6
21398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21399   cat >> confdefs.h <<EOF
21400 #define $ac_tr_func 1
21401 EOF
21402  
21403 else
21404   echo "$ac_t""no" 1>&6
21405 fi
21406 done
21407
21408
21409   CXXFLAGS="$ac_save_CXXFLAGS"
21410
21411   
21412   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21413 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21414 echo "configure:21415: checking for locale.h" >&5
21415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21416   echo $ac_n "(cached) $ac_c" 1>&6
21417 else
21418   cat > conftest.$ac_ext <<EOF
21419 #line 21420 "configure"
21420 #include "confdefs.h"
21421 #include <locale.h>
21422 EOF
21423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21424 { (eval echo configure:21425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21426 if test -z "$ac_err"; then
21427   rm -rf conftest*
21428   eval "ac_cv_header_$ac_safe=yes"
21429 else
21430   echo "$ac_err" >&5
21431   echo "configure: failed program was:" >&5
21432   cat conftest.$ac_ext >&5
21433   rm -rf conftest*
21434   eval "ac_cv_header_$ac_safe=no"
21435 fi
21436 rm -f conftest*
21437 fi
21438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21439   echo "$ac_t""yes" 1>&6
21440   
21441     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21442 echo "configure:21443: checking for LC_MESSAGES" >&5
21443 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21444   echo $ac_n "(cached) $ac_c" 1>&6
21445 else
21446   cat > conftest.$ac_ext <<EOF
21447 #line 21448 "configure"
21448 #include "confdefs.h"
21449 #include <locale.h>
21450 int main() {
21451 return LC_MESSAGES
21452 ; return 0; }
21453 EOF
21454 if { (eval echo configure:21455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21455   rm -rf conftest*
21456   ac_cv_val_LC_MESSAGES=yes
21457 else
21458   echo "configure: failed program was:" >&5
21459   cat conftest.$ac_ext >&5
21460   rm -rf conftest*
21461   ac_cv_val_LC_MESSAGES=no
21462 fi
21463 rm -f conftest*
21464 fi
21465
21466 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21467     if test $ac_cv_val_LC_MESSAGES = yes; then
21468       cat >> confdefs.h <<\EOF
21469 #define HAVE_LC_MESSAGES 1
21470 EOF
21471
21472     fi
21473   
21474 else
21475   echo "$ac_t""no" 1>&6
21476 fi
21477
21478
21479
21480   cat > conftest.$ac_ext <<EOF
21481 #line 21482 "configure"
21482 #include "confdefs.h"
21483
21484   #include <setjmp.h>
21485   
21486 int main() {
21487 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21488 ; return 0; }
21489 EOF
21490 if { (eval echo configure:21491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491   rm -rf conftest*
21492   cat >> confdefs.h <<\EOF
21493 #define HAVE_SIGSETJMP 1
21494 EOF
21495
21496   
21497 else
21498   echo "configure: failed program was:" >&5
21499   cat conftest.$ac_ext >&5
21500 fi
21501 rm -f conftest*
21502
21503   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21504 do
21505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21507 echo "configure:21508: checking for $ac_hdr" >&5
21508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21509   echo $ac_n "(cached) $ac_c" 1>&6
21510 else
21511   cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21514 #include <$ac_hdr>
21515 EOF
21516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21517 { (eval echo configure:21518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21519 if test -z "$ac_err"; then
21520   rm -rf conftest*
21521   eval "ac_cv_header_$ac_safe=yes"
21522 else
21523   echo "$ac_err" >&5
21524   echo "configure: failed program was:" >&5
21525   cat conftest.$ac_ext >&5
21526   rm -rf conftest*
21527   eval "ac_cv_header_$ac_safe=no"
21528 fi
21529 rm -f conftest*
21530 fi
21531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21532   echo "$ac_t""yes" 1>&6
21533     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21534   cat >> confdefs.h <<EOF
21535 #define $ac_tr_hdr 1
21536 EOF
21537  
21538 else
21539   echo "$ac_t""no" 1>&6
21540 fi
21541 done
21542
21543 for ac_func in getpagesize
21544 do
21545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21546 echo "configure:21547: checking for $ac_func" >&5
21547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21548   echo $ac_n "(cached) $ac_c" 1>&6
21549 else
21550   cat > conftest.$ac_ext <<EOF
21551 #line 21552 "configure"
21552 #include "confdefs.h"
21553 /* System header to define __stub macros and hopefully few prototypes,
21554     which can conflict with char $ac_func(); below.  */
21555 #include <assert.h>
21556 /* Override any gcc2 internal prototype to avoid an error.  */
21557 /* We use char because int might match the return type of a gcc2
21558     builtin and then its argument prototype would still apply.  */
21559 char $ac_func();
21560
21561 int main() {
21562
21563 /* The GNU C library defines this for functions which it implements
21564     to always fail with ENOSYS.  Some functions are actually named
21565     something starting with __ and the normal name is an alias.  */
21566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21567 choke me
21568 #else
21569 $ac_func();
21570 #endif
21571
21572 ; return 0; }
21573 EOF
21574 if { (eval echo configure:21575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21575   rm -rf conftest*
21576   eval "ac_cv_func_$ac_func=yes"
21577 else
21578   echo "configure: failed program was:" >&5
21579   cat conftest.$ac_ext >&5
21580   rm -rf conftest*
21581   eval "ac_cv_func_$ac_func=no"
21582 fi
21583 rm -f conftest*
21584 fi
21585
21586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21587   echo "$ac_t""yes" 1>&6
21588     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21589   cat >> confdefs.h <<EOF
21590 #define $ac_tr_func 1
21591 EOF
21592  
21593 else
21594   echo "$ac_t""no" 1>&6
21595 fi
21596 done
21597
21598 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21599 echo "configure:21600: checking for working mmap" >&5
21600 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21601   echo $ac_n "(cached) $ac_c" 1>&6
21602 else
21603   if test "$cross_compiling" = yes; then
21604   ac_cv_func_mmap_fixed_mapped=no
21605 else
21606   cat > conftest.$ac_ext <<EOF
21607 #line 21608 "configure"
21608 #include "confdefs.h"
21609
21610 /* Thanks to Mike Haertel and Jim Avera for this test.
21611    Here is a matrix of mmap possibilities:
21612         mmap private not fixed
21613         mmap private fixed at somewhere currently unmapped
21614         mmap private fixed at somewhere already mapped
21615         mmap shared not fixed
21616         mmap shared fixed at somewhere currently unmapped
21617         mmap shared fixed at somewhere already mapped
21618    For private mappings, we should verify that changes cannot be read()
21619    back from the file, nor mmap's back from the file at a different
21620    address.  (There have been systems where private was not correctly
21621    implemented like the infamous i386 svr4.0, and systems where the
21622    VM page cache was not coherent with the filesystem buffer cache
21623    like early versions of FreeBSD and possibly contemporary NetBSD.)
21624    For shared mappings, we should conversely verify that changes get
21625    propogated back to all the places they're supposed to be.
21626
21627    Grep wants private fixed already mapped.
21628    The main things grep needs to know about mmap are:
21629    * does it exist and is it safe to write into the mmap'd area
21630    * how to use it (BSD variants)  */
21631 #include <sys/types.h>
21632 #include <fcntl.h>
21633 #include <sys/mman.h>
21634
21635 #if HAVE_SYS_TYPES_H
21636 # include <sys/types.h>
21637 #endif
21638
21639 #if HAVE_STDLIB_H
21640 # include <stdlib.h>
21641 #endif
21642
21643 #if HAVE_SYS_STAT_H
21644 # include <sys/stat.h>
21645 #endif
21646
21647 #if HAVE_UNISTD_H
21648 # include <unistd.h>
21649 #endif
21650
21651 /* This mess was copied from the GNU getpagesize.h.  */
21652 #ifndef HAVE_GETPAGESIZE
21653
21654 /* Assume that all systems that can run configure have sys/param.h.  */
21655 # ifndef HAVE_SYS_PARAM_H
21656 #  define HAVE_SYS_PARAM_H 1
21657 # endif
21658
21659 # ifdef _SC_PAGESIZE
21660 #  define getpagesize() sysconf(_SC_PAGESIZE)
21661 # else /* no _SC_PAGESIZE */
21662 #  ifdef HAVE_SYS_PARAM_H
21663 #   include <sys/param.h>
21664 #   ifdef EXEC_PAGESIZE
21665 #    define getpagesize() EXEC_PAGESIZE
21666 #   else /* no EXEC_PAGESIZE */
21667 #    ifdef NBPG
21668 #     define getpagesize() NBPG * CLSIZE
21669 #     ifndef CLSIZE
21670 #      define CLSIZE 1
21671 #     endif /* no CLSIZE */
21672 #    else /* no NBPG */
21673 #     ifdef NBPC
21674 #      define getpagesize() NBPC
21675 #     else /* no NBPC */
21676 #      ifdef PAGESIZE
21677 #       define getpagesize() PAGESIZE
21678 #      endif /* PAGESIZE */
21679 #     endif /* no NBPC */
21680 #    endif /* no NBPG */
21681 #   endif /* no EXEC_PAGESIZE */
21682 #  else /* no HAVE_SYS_PARAM_H */
21683 #   define getpagesize() 8192   /* punt totally */
21684 #  endif /* no HAVE_SYS_PARAM_H */
21685 # endif /* no _SC_PAGESIZE */
21686
21687 #endif /* no HAVE_GETPAGESIZE */
21688
21689 #ifdef __cplusplus
21690 extern "C" { void *malloc(unsigned); }
21691 #else
21692 char *malloc();
21693 #endif
21694
21695 int
21696 main()
21697 {
21698         char *data, *data2, *data3;
21699         int i, pagesize;
21700         int fd;
21701
21702         pagesize = getpagesize();
21703
21704         /*
21705          * First, make a file with some known garbage in it.
21706          */
21707         data = malloc(pagesize);
21708         if (!data)
21709                 exit(1);
21710         for (i = 0; i < pagesize; ++i)
21711                 *(data + i) = rand();
21712         umask(0);
21713         fd = creat("conftestmmap", 0600);
21714         if (fd < 0)
21715                 exit(1);
21716         if (write(fd, data, pagesize) != pagesize)
21717                 exit(1);
21718         close(fd);
21719
21720         /*
21721          * Next, try to mmap the file at a fixed address which
21722          * already has something else allocated at it.  If we can,
21723          * also make sure that we see the same garbage.
21724          */
21725         fd = open("conftestmmap", O_RDWR);
21726         if (fd < 0)
21727                 exit(1);
21728         data2 = malloc(2 * pagesize);
21729         if (!data2)
21730                 exit(1);
21731         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21732         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21733             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21734                 exit(1);
21735         for (i = 0; i < pagesize; ++i)
21736                 if (*(data + i) != *(data2 + i))
21737                         exit(1);
21738
21739         /*
21740          * Finally, make sure that changes to the mapped area
21741          * do not percolate back to the file as seen by read().
21742          * (This is a bug on some variants of i386 svr4.0.)
21743          */
21744         for (i = 0; i < pagesize; ++i)
21745                 *(data2 + i) = *(data2 + i) + 1;
21746         data3 = malloc(pagesize);
21747         if (!data3)
21748                 exit(1);
21749         if (read(fd, data3, pagesize) != pagesize)
21750                 exit(1);
21751         for (i = 0; i < pagesize; ++i)
21752                 if (*(data + i) != *(data3 + i))
21753                         exit(1);
21754         close(fd);
21755         unlink("conftestmmap");
21756         exit(0);
21757 }
21758
21759 EOF
21760 if { (eval echo configure:21761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21761 then
21762   ac_cv_func_mmap_fixed_mapped=yes
21763 else
21764   echo "configure: failed program was:" >&5
21765   cat conftest.$ac_ext >&5
21766   rm -fr conftest*
21767   ac_cv_func_mmap_fixed_mapped=no
21768 fi
21769 rm -fr conftest*
21770 fi
21771
21772 fi
21773
21774 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21775 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21776   cat >> confdefs.h <<\EOF
21777 #define HAVE_MMAP 1
21778 EOF
21779
21780 fi
21781
21782
21783   # Establish limits on memory usage during 'make check'
21784   
21785   
21786   setrlimit_have_headers=yes
21787   for ac_hdr in unistd.h sys/time.h sys/resource.h
21788 do
21789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21791 echo "configure:21792: checking for $ac_hdr" >&5
21792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21793   echo $ac_n "(cached) $ac_c" 1>&6
21794 else
21795   cat > conftest.$ac_ext <<EOF
21796 #line 21797 "configure"
21797 #include "confdefs.h"
21798 #include <$ac_hdr>
21799 EOF
21800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21801 { (eval echo configure:21802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21803 if test -z "$ac_err"; then
21804   rm -rf conftest*
21805   eval "ac_cv_header_$ac_safe=yes"
21806 else
21807   echo "$ac_err" >&5
21808   echo "configure: failed program was:" >&5
21809   cat conftest.$ac_ext >&5
21810   rm -rf conftest*
21811   eval "ac_cv_header_$ac_safe=no"
21812 fi
21813 rm -f conftest*
21814 fi
21815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21816   echo "$ac_t""yes" 1>&6
21817     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21818   cat >> confdefs.h <<EOF
21819 #define $ac_tr_hdr 1
21820 EOF
21821  
21822 else
21823   echo "$ac_t""no" 1>&6
21824 setrlimit_have_headers=no
21825 fi
21826 done
21827
21828   # If don't have the headers, then we can't run the tests now, and we
21829   # won't be seeing any of these during testsuite compilation.
21830   if test $setrlimit_have_headers = yes; then
21831     # Can't do these in a loop, else the resulting syntax is wrong.
21832     
21833   cat > conftest.$ac_ext <<EOF
21834 #line 21835 "configure"
21835 #include "confdefs.h"
21836 #include <unistd.h>
21837                   #include <sys/time.h>
21838                   #include <sys/resource.h>
21839                  
21840 int main() {
21841  int f = RLIMIT_DATA ; 
21842 ; return 0; }
21843 EOF
21844 if { (eval echo configure:21845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21845   rm -rf conftest*
21846   glibcpp_mresult=1
21847 else
21848   echo "configure: failed program was:" >&5
21849   cat conftest.$ac_ext >&5
21850   rm -rf conftest*
21851   glibcpp_mresult=0
21852 fi
21853 rm -f conftest*
21854   cat >> confdefs.h <<EOF
21855 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21856 EOF
21857
21858
21859     
21860   cat > conftest.$ac_ext <<EOF
21861 #line 21862 "configure"
21862 #include "confdefs.h"
21863 #include <unistd.h>
21864                   #include <sys/time.h>
21865                   #include <sys/resource.h>
21866                  
21867 int main() {
21868  int f = RLIMIT_RSS ; 
21869 ; return 0; }
21870 EOF
21871 if { (eval echo configure:21872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21872   rm -rf conftest*
21873   glibcpp_mresult=1
21874 else
21875   echo "configure: failed program was:" >&5
21876   cat conftest.$ac_ext >&5
21877   rm -rf conftest*
21878   glibcpp_mresult=0
21879 fi
21880 rm -f conftest*
21881   cat >> confdefs.h <<EOF
21882 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21883 EOF
21884
21885
21886     
21887   cat > conftest.$ac_ext <<EOF
21888 #line 21889 "configure"
21889 #include "confdefs.h"
21890 #include <unistd.h>
21891                   #include <sys/time.h>
21892                   #include <sys/resource.h>
21893                  
21894 int main() {
21895  int f = RLIMIT_VMEM ; 
21896 ; return 0; }
21897 EOF
21898 if { (eval echo configure:21899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21899   rm -rf conftest*
21900   glibcpp_mresult=1
21901 else
21902   echo "configure: failed program was:" >&5
21903   cat conftest.$ac_ext >&5
21904   rm -rf conftest*
21905   glibcpp_mresult=0
21906 fi
21907 rm -f conftest*
21908   cat >> confdefs.h <<EOF
21909 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21910 EOF
21911
21912
21913     
21914   cat > conftest.$ac_ext <<EOF
21915 #line 21916 "configure"
21916 #include "confdefs.h"
21917 #include <unistd.h>
21918                   #include <sys/time.h>
21919                   #include <sys/resource.h>
21920                  
21921 int main() {
21922  int f = RLIMIT_AS ; 
21923 ; return 0; }
21924 EOF
21925 if { (eval echo configure:21926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21926   rm -rf conftest*
21927   glibcpp_mresult=1
21928 else
21929   echo "configure: failed program was:" >&5
21930   cat conftest.$ac_ext >&5
21931   rm -rf conftest*
21932   glibcpp_mresult=0
21933 fi
21934 rm -f conftest*
21935   cat >> confdefs.h <<EOF
21936 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21937 EOF
21938
21939
21940
21941     # Check for rlimit, setrlimit.
21942     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21943   echo $ac_n "(cached) $ac_c" 1>&6
21944 else
21945   
21946       cat > conftest.$ac_ext <<EOF
21947 #line 21948 "configure"
21948 #include "confdefs.h"
21949 #include <unistd.h>
21950                   #include <sys/time.h>
21951                   #include <sys/resource.h>
21952                      
21953 int main() {
21954  struct rlimit r; setrlimit(0, &r);
21955 ; return 0; }
21956 EOF
21957 if { (eval echo configure:21958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21958   rm -rf conftest*
21959   ac_setrlimit=yes
21960 else
21961   echo "configure: failed program was:" >&5
21962   cat conftest.$ac_ext >&5
21963   rm -rf conftest*
21964   ac_setrlimit=no
21965 fi
21966 rm -f conftest*
21967     
21968 fi
21969
21970   fi
21971
21972   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21973 echo "configure:21974: checking for testsuite memory limit support" >&5
21974   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21975     ac_mem_limits=yes
21976     cat >> confdefs.h <<\EOF
21977 #define _GLIBCPP_MEM_LIMITS 1
21978 EOF
21979
21980   else
21981     ac_mem_limits=no
21982   fi
21983   echo "$ac_t""$ac_mem_limits" 1>&6
21984
21985
21986   # Look for setenv, so that extended locale tests can be performed.
21987   
21988   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21989 echo "configure:21990: checking for setenv declaration" >&5
21990   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21991     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21992   echo $ac_n "(cached) $ac_c" 1>&6
21993 else
21994   
21995       
21996       ac_ext=C
21997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21998 ac_cpp='$CXXCPP $CPPFLAGS'
21999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22001 cross_compiling=$ac_cv_prog_cxx_cross
22002
22003       cat > conftest.$ac_ext <<EOF
22004 #line 22005 "configure"
22005 #include "confdefs.h"
22006 #include <stdlib.h>
22007 int main() {
22008  setenv(0, 0, 0);
22009 ; return 0; }
22010 EOF
22011 if { (eval echo configure:22012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22012   rm -rf conftest*
22013   glibcpp_cv_func_setenv_use=yes
22014 else
22015   echo "configure: failed program was:" >&5
22016   cat conftest.$ac_ext >&5
22017   rm -rf conftest*
22018   glibcpp_cv_func_setenv_use=no
22019 fi
22020 rm -f conftest*
22021       ac_ext=c
22022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22023 ac_cpp='$CPP $CPPFLAGS'
22024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22026 cross_compiling=$ac_cv_prog_cc_cross
22027
22028     
22029 fi
22030
22031   fi
22032   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22033   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22034     for ac_func in setenv
22035 do
22036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22037 echo "configure:22038: checking for $ac_func" >&5
22038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22039   echo $ac_n "(cached) $ac_c" 1>&6
22040 else
22041   cat > conftest.$ac_ext <<EOF
22042 #line 22043 "configure"
22043 #include "confdefs.h"
22044 /* System header to define __stub macros and hopefully few prototypes,
22045     which can conflict with char $ac_func(); below.  */
22046 #include <assert.h>
22047 /* Override any gcc2 internal prototype to avoid an error.  */
22048 /* We use char because int might match the return type of a gcc2
22049     builtin and then its argument prototype would still apply.  */
22050 char $ac_func();
22051
22052 int main() {
22053
22054 /* The GNU C library defines this for functions which it implements
22055     to always fail with ENOSYS.  Some functions are actually named
22056     something starting with __ and the normal name is an alias.  */
22057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22058 choke me
22059 #else
22060 $ac_func();
22061 #endif
22062
22063 ; return 0; }
22064 EOF
22065 if { (eval echo configure:22066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22066   rm -rf conftest*
22067   eval "ac_cv_func_$ac_func=yes"
22068 else
22069   echo "configure: failed program was:" >&5
22070   cat conftest.$ac_ext >&5
22071   rm -rf conftest*
22072   eval "ac_cv_func_$ac_func=no"
22073 fi
22074 rm -f conftest*
22075 fi
22076
22077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22078   echo "$ac_t""yes" 1>&6
22079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22080   cat >> confdefs.h <<EOF
22081 #define $ac_tr_func 1
22082 EOF
22083  
22084 else
22085   echo "$ac_t""no" 1>&6
22086 fi
22087 done
22088     
22089   fi
22090
22091
22092   # Export file names for ABI checking.
22093   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
22094   
22095
22096   # Don't do ABI checking unless native.
22097   
22098
22099 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
22100   GLIBCPP_BUILD_ABI_CHECK_TRUE=
22101   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
22102 else
22103   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
22104   GLIBCPP_BUILD_ABI_CHECK_FALSE=
22105 fi
22106
22107 fi
22108
22109 # This depends on the possibly-skipped linker test above.
22110 # Check whether --enable-symvers or --disable-symvers was given.
22111 if test "${enable_symvers+set}" = set; then
22112   enableval="$enable_symvers"
22113   case "$enableval" in
22114  yes) enable_symvers=yes ;;
22115  no)  enable_symvers=no ;;
22116  # other names here, just as sanity checks
22117  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22118  gnu) enable_symvers=$enableval ;;
22119  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22120  esac
22121 else
22122   enable_symvers=yes
22123 fi
22124
22125 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22126 # don't know enough about $LD to do tricks... 
22127 if test x$enable_shared = xno || 
22128         test "x$LD" = x || 
22129         test x$glibcpp_gnu_ld_version = x; then
22130   enable_symvers=no
22131 fi
22132
22133 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22134 if test $enable_symvers != no; then
22135   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22136 echo "configure:22137: checking for shared libgcc" >&5
22137   ac_save_CFLAGS="$CFLAGS"
22138   CFLAGS=' -lgcc_s'
22139   cat > conftest.$ac_ext <<EOF
22140 #line 22141 "configure"
22141 #include "confdefs.h"
22142
22143 int main() {
22144 return 0
22145 ; return 0; }
22146 EOF
22147 if { (eval echo configure:22148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22148   rm -rf conftest*
22149   glibcpp_shared_libgcc=yes
22150 else
22151   echo "configure: failed program was:" >&5
22152   cat conftest.$ac_ext >&5
22153   rm -rf conftest*
22154   glibcpp_shared_libgcc=no
22155 fi
22156 rm -f conftest*
22157   CFLAGS="$ac_save_CFLAGS"
22158   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22159 fi
22160
22161 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22162 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22163 glibcpp_min_gnu_ld_version=21200
22164
22165 # Check to see if unspecified "yes" value can win, given results
22166 # above.  
22167 if test $enable_symvers = yes ; then
22168   if test $with_gnu_ld = yes &&
22169     test $glibcpp_shared_libgcc = yes ;
22170   then
22171     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22172         enable_symvers=gnu
22173     else
22174       ac_test_CFLAGS="${CFLAGS+set}"
22175       ac_save_CFLAGS="$CFLAGS"
22176       CFLAGS='-shared -Wl,--version-script,conftest.map'
22177       enable_symvers=no
22178       
22179       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22180       
22181       cat > conftest.$ac_ext <<EOF
22182 #line 22183 "configure"
22183 #include "confdefs.h"
22184 int foo;
22185 int main() {
22186
22187 ; return 0; }
22188 EOF
22189 if { (eval echo configure:22190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22190   rm -rf conftest*
22191   enable_symvers=gnu
22192 else
22193   echo "configure: failed program was:" >&5
22194   cat conftest.$ac_ext >&5
22195 fi
22196 rm -f conftest*
22197       if test "$ac_test_CFLAGS" = set; then
22198         CFLAGS="$ac_save_CFLAGS"
22199       else
22200         # this is the suspicious part
22201         CFLAGS=''
22202       fi
22203       rm -f conftest.map
22204     fi
22205   else
22206     # just fail for now
22207     enable_symvers=no
22208   fi
22209 fi
22210
22211 case $enable_symvers in
22212   no)
22213       LINKER_MAP=config/linker-map.dummy
22214       ;;
22215   gnu)
22216       LINKER_MAP=config/linker-map.gnu
22217       ;;
22218 esac
22219
22220
22221
22222
22223 if test $enable_symvers != no; then
22224   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22225   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22226 else
22227   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22228   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22229 fi
22230 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22231 echo "configure:22232: checking versioning on shared library symbols" >&5
22232 echo "$ac_t""$enable_symvers" 1>&6
22233
22234
22235 # Propagate the target-specific source directories through the build chain.
22236 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
22237 # uses it, and they only get used here.)
22238 OS_INC_SRCDIR=config/${os_include_dir}
22239 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22240
22241
22242
22243 # Set up cross-compile flags
22244   
22245
22246 if test "$CANADIAN" = yes; then
22247   CANADIAN_TRUE=
22248   CANADIAN_FALSE='#'
22249 else
22250   CANADIAN_TRUE='#'
22251   CANADIAN_FALSE=
22252 fi
22253  
22254 cat > confcache <<\EOF
22255 # This file is a shell script that caches the results of configure
22256 # tests run on this system so they can be shared between configure
22257 # scripts and configure runs.  It is not useful on other systems.
22258 # If it contains results you don't want to keep, you may remove or edit it.
22259 #
22260 # By default, configure uses ./config.cache as the cache file,
22261 # creating it if it does not exist already.  You can give configure
22262 # the --cache-file=FILE option to use a different cache file; that is
22263 # what configure does when it calls configure scripts in
22264 # subdirectories, so they share the cache.
22265 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22266 # config.status only pays attention to the cache file if you give it the
22267 # --recheck option to rerun configure.
22268 #
22269 EOF
22270 # The following way of writing the cache mishandles newlines in values,
22271 # but we know of no workaround that is simple, portable, and efficient.
22272 # So, don't put newlines in cache variables' values.
22273 # Ultrix sh set writes to stderr and can't be redirected directly,
22274 # and sets the high bit in the cache file unless we assign to the vars.
22275 (set) 2>&1 |
22276   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22277   *ac_space=\ *)
22278     # `set' does not quote correctly, so add quotes (double-quote substitution
22279     # turns \\\\ into \\, and sed turns \\ into \).
22280     sed -n \
22281       -e "s/'/'\\\\''/g" \
22282       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22283     ;;
22284   *)
22285     # `set' quotes correctly as required by POSIX, so do not add quotes.
22286     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22287     ;;
22288   esac >> confcache
22289 if cmp -s $cache_file confcache; then
22290   :
22291 else
22292   if test -w $cache_file; then
22293     echo "updating cache $cache_file"
22294     cat confcache > $cache_file
22295   else
22296     echo "not updating unwritable cache $cache_file"
22297   fi
22298 fi
22299 rm -f confcache
22300
22301
22302 if test "${multilib}" = "yes"; then
22303   multilib_arg="--enable-multilib"
22304 else
22305   multilib_arg=
22306 fi
22307
22308 # Export all the install information
22309
22310 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22311 # exported correctly in GLIBCPP_CONFIGURE.
22312 glibcpp_toolexecdir=no
22313 glibcpp_toolexeclibdir=no
22314 glibcpp_prefixdir=${prefix}
22315
22316 # Process the option --with-gxx-include-dir=<path to include-files directory>
22317 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22318 echo "configure:22319: checking for --with-gxx-include-dir" >&5
22319 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22320 if test "${with_gxx_include_dir+set}" = set; then
22321   withval="$with_gxx_include_dir"
22322   case "${withval}" in
22323   yes)
22324     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22325     gxx_include_dir=no
22326     ;;
22327   no)
22328     gxx_include_dir=no
22329     ;;
22330   *)
22331     gxx_include_dir=${withval}
22332     ;;
22333 esac
22334 else
22335   gxx_include_dir=no
22336 fi
22337
22338 echo "$ac_t""$gxx_include_dir" 1>&6
22339
22340 # Process the option "--enable-version-specific-runtime-libs"
22341 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22342 echo "configure:22343: checking for --enable-version-specific-runtime-libs" >&5
22343 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22344 if test "${enable_version_specific_runtime_libs+set}" = set; then
22345   enableval="$enable_version_specific_runtime_libs"
22346   case "$enableval" in
22347  yes) version_specific_libs=yes ;;
22348  no)  version_specific_libs=no ;;
22349  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22350  esac
22351 else
22352   version_specific_libs=no
22353 fi
22354 # Option set, now we can test it.
22355 echo "$ac_t""$version_specific_libs" 1>&6
22356
22357 # Default case for install directory for include files.
22358 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22359   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22360 fi
22361
22362 # Version-specific runtime libs processing.
22363 if test $version_specific_libs = yes; then
22364   # Need the gcc compiler version to know where to install libraries
22365   # and header files if --enable-version-specific-runtime-libs option
22366   # is selected.
22367   if test x"$gxx_include_dir" = x"no"; then
22368     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22369   fi
22370   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22371   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22372 fi
22373
22374 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22375 # Install a library built with a cross compiler in tooldir, not libdir.
22376 if test x"$glibcpp_toolexecdir" = x"no"; then 
22377   if test -n "$with_cross_host" &&
22378      test x"$with_cross_host" != x"no"; then
22379     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22380     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22381   else
22382     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22383     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22384   fi
22385 fi
22386
22387 echo $ac_n "checking for install location""... $ac_c" 1>&6
22388 echo "configure:22389: checking for install location" >&5
22389 echo "$ac_t""$gxx_include_dir" 1>&6
22390
22391
22392
22393
22394
22395
22396
22397 # Export all the include and flag information to makefiles.
22398
22399   # Root level of the build directory include sources.
22400   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22401
22402   # Passed down for canadian crosses.
22403   if test x"$CANADIAN" = xyes; then
22404     TOPLEVEL_INCLUDES='-I$(includedir)'
22405   fi
22406
22407   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22408
22409   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22410
22411   if test x"$need_libio" = xyes; then
22412     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22413     
22414   fi
22415
22416   # Now, export this to all the little Makefiles....
22417   
22418   
22419   
22420   
22421
22422
22423   # Optimization flags that are probably a good idea for thrill-seekers. Just
22424   # uncomment the lines below and make, everything else is ready to go... 
22425   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22426   OPTIMIZE_CXXFLAGS=
22427   
22428
22429   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22430   
22431
22432
22433 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22434    grep "enable shared" > /dev/null; then
22435   LIBSUPCXX_PICFLAGS=-prefer-pic
22436 else
22437   LIBSUPCXX_PICFLAGS=
22438 fi
22439
22440
22441 # Generate the various Makefiles, include files, and scripts.
22442 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22443 # and libsupc++/Makefile.am so that multilib installs will end up
22444 # installed in the correct place. To work around this not being passed
22445 # down from config-ml.in -> top_srcdir/Makefile.am ->
22446 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22447 trap '' 1 2 15
22448 cat > confcache <<\EOF
22449 # This file is a shell script that caches the results of configure
22450 # tests run on this system so they can be shared between configure
22451 # scripts and configure runs.  It is not useful on other systems.
22452 # If it contains results you don't want to keep, you may remove or edit it.
22453 #
22454 # By default, configure uses ./config.cache as the cache file,
22455 # creating it if it does not exist already.  You can give configure
22456 # the --cache-file=FILE option to use a different cache file; that is
22457 # what configure does when it calls configure scripts in
22458 # subdirectories, so they share the cache.
22459 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22460 # config.status only pays attention to the cache file if you give it the
22461 # --recheck option to rerun configure.
22462 #
22463 EOF
22464 # The following way of writing the cache mishandles newlines in values,
22465 # but we know of no workaround that is simple, portable, and efficient.
22466 # So, don't put newlines in cache variables' values.
22467 # Ultrix sh set writes to stderr and can't be redirected directly,
22468 # and sets the high bit in the cache file unless we assign to the vars.
22469 (set) 2>&1 |
22470   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22471   *ac_space=\ *)
22472     # `set' does not quote correctly, so add quotes (double-quote substitution
22473     # turns \\\\ into \\, and sed turns \\ into \).
22474     sed -n \
22475       -e "s/'/'\\\\''/g" \
22476       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22477     ;;
22478   *)
22479     # `set' quotes correctly as required by POSIX, so do not add quotes.
22480     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22481     ;;
22482   esac >> confcache
22483 if cmp -s $cache_file confcache; then
22484   :
22485 else
22486   if test -w $cache_file; then
22487     echo "updating cache $cache_file"
22488     cat confcache > $cache_file
22489   else
22490     echo "not updating unwritable cache $cache_file"
22491   fi
22492 fi
22493 rm -f confcache
22494
22495 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22496
22497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22498 # Let make expand exec_prefix.
22499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22500
22501 # Any assignment to VPATH causes Sun make to only execute
22502 # the first set of double-colon rules, so remove it if not needed.
22503 # If there is a colon in the path, we need to keep it.
22504 if test "x$srcdir" = x.; then
22505   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22506 fi
22507
22508 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22509
22510 DEFS=-DHAVE_CONFIG_H
22511
22512 # Without the "./", some shells look in PATH for config.status.
22513 : ${CONFIG_STATUS=./config.status}
22514
22515 echo creating $CONFIG_STATUS
22516 rm -f $CONFIG_STATUS
22517 cat > $CONFIG_STATUS <<EOF
22518 #! /bin/sh
22519 # Generated automatically by configure.
22520 # Run this file to recreate the current configuration.
22521 # This directory was configured as follows,
22522 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22523 #
22524 # $0 $ac_configure_args
22525 #
22526 # Compiler output produced by configure, useful for debugging
22527 # configure, is in ./config.log if it exists.
22528
22529 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22530 for ac_option
22531 do
22532   case "\$ac_option" in
22533   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22534     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22535     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22536   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22537     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22538     exit 0 ;;
22539   -help | --help | --hel | --he | --h)
22540     echo "\$ac_cs_usage"; exit 0 ;;
22541   *) echo "\$ac_cs_usage"; exit 1 ;;
22542   esac
22543 done
22544
22545 ac_given_srcdir=$srcdir
22546 ac_given_INSTALL="$INSTALL"
22547
22548 trap 'rm -fr `echo "Makefile \
22549     include/Makefile src/Makefile \
22550     libmath/Makefile libio/Makefile libsupc++/Makefile \
22551     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22552 EOF
22553 cat >> $CONFIG_STATUS <<EOF
22554
22555 # Protect against being on the right side of a sed subst in config.status.
22556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22557  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22558 $ac_vpsub
22559 $extrasub
22560 s%@SHELL@%$SHELL%g
22561 s%@CFLAGS@%$CFLAGS%g
22562 s%@CPPFLAGS@%$CPPFLAGS%g
22563 s%@CXXFLAGS@%$CXXFLAGS%g
22564 s%@FFLAGS@%$FFLAGS%g
22565 s%@DEFS@%$DEFS%g
22566 s%@LDFLAGS@%$LDFLAGS%g
22567 s%@LIBS@%$LIBS%g
22568 s%@exec_prefix@%$exec_prefix%g
22569 s%@prefix@%$prefix%g
22570 s%@program_transform_name@%$program_transform_name%g
22571 s%@bindir@%$bindir%g
22572 s%@sbindir@%$sbindir%g
22573 s%@libexecdir@%$libexecdir%g
22574 s%@datadir@%$datadir%g
22575 s%@sysconfdir@%$sysconfdir%g
22576 s%@sharedstatedir@%$sharedstatedir%g
22577 s%@localstatedir@%$localstatedir%g
22578 s%@libdir@%$libdir%g
22579 s%@includedir@%$includedir%g
22580 s%@oldincludedir@%$oldincludedir%g
22581 s%@infodir@%$infodir%g
22582 s%@mandir@%$mandir%g
22583 s%@PACKAGE@%$PACKAGE%g
22584 s%@libtool_VERSION@%$libtool_VERSION%g
22585 s%@toplevel_srcdir@%$toplevel_srcdir%g
22586 s%@host@%$host%g
22587 s%@host_alias@%$host_alias%g
22588 s%@host_cpu@%$host_cpu%g
22589 s%@host_vendor@%$host_vendor%g
22590 s%@host_os@%$host_os%g
22591 s%@target@%$target%g
22592 s%@target_alias@%$target_alias%g
22593 s%@target_cpu@%$target_cpu%g
22594 s%@target_vendor@%$target_vendor%g
22595 s%@target_os@%$target_os%g
22596 s%@build@%$build%g
22597 s%@build_alias@%$build_alias%g
22598 s%@build_cpu@%$build_cpu%g
22599 s%@build_vendor@%$build_vendor%g
22600 s%@build_os@%$build_os%g
22601 s%@glibcpp_builddir@%$glibcpp_builddir%g
22602 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22603 s%@AWK@%$AWK%g
22604 s%@LN_S@%$LN_S%g
22605 s%@glibcpp_basedir@%$glibcpp_basedir%g
22606 s%@CC@%$CC%g
22607 s%@glibcpp_CXX@%$glibcpp_CXX%g
22608 s%@AS@%$AS%g
22609 s%@AR@%$AR%g
22610 s%@RANLIB@%$RANLIB%g
22611 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22612 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22613 s%@INSTALL_DATA@%$INSTALL_DATA%g
22614 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22615 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22616 s%@MAINT@%$MAINT%g
22617 s%@EXEEXT@%$EXEEXT%g
22618 s%@VERSION@%$VERSION%g
22619 s%@ACLOCAL@%$ACLOCAL%g
22620 s%@AUTOCONF@%$AUTOCONF%g
22621 s%@AUTOMAKE@%$AUTOMAKE%g
22622 s%@AUTOHEADER@%$AUTOHEADER%g
22623 s%@MAKEINFO@%$MAKEINFO%g
22624 s%@SET_MAKE@%$SET_MAKE%g
22625 s%@OBJEXT@%$OBJEXT%g
22626 s%@STRIP@%$STRIP%g
22627 s%@LIBTOOL@%$LIBTOOL%g
22628 s%@CXXCPP@%$CXXCPP%g
22629 s%@enable_shared@%$enable_shared%g
22630 s%@enable_static@%$enable_static%g
22631 s%@ifGNUmake@%$ifGNUmake%g
22632 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22633 s%@CPP@%$CPP%g
22634 s%@CSTDIO_H@%$CSTDIO_H%g
22635 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22636 s%@CCODECVT_C@%$CCODECVT_C%g
22637 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22638 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22639 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22640 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22641 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22642 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22643 s%@libio_la@%$libio_la%g
22644 s%@check_msgfmt@%$check_msgfmt%g
22645 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22646 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22647 s%@glibcpp_localedir@%$glibcpp_localedir%g
22648 s%@USE_NLS@%$USE_NLS%g
22649 s%@CLOCALE_H@%$CLOCALE_H%g
22650 s%@CCODECVT_H@%$CCODECVT_H%g
22651 s%@CMESSAGES_H@%$CMESSAGES_H%g
22652 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22653 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22654 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22655 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22656 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22657 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22658 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22659 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22660 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22661 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22662 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22663 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22664 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22665 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22666 s%@WERROR@%$WERROR%g
22667 s%@baseline_file@%$baseline_file%g
22668 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
22669 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
22670 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22671 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22672 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22673 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22674 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22675 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22676 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22677 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22678 s%@gxx_include_dir@%$gxx_include_dir%g
22679 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22680 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22681 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22682 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22683 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22684 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22685 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22686 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22687 s%@WARN_FLAGS@%$WARN_FLAGS%g
22688 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22689
22690 CEOF
22691 EOF
22692
22693 cat >> $CONFIG_STATUS <<\EOF
22694
22695 # Split the substitutions into bite-sized pieces for seds with
22696 # small command number limits, like on Digital OSF/1 and HP-UX.
22697 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22698 ac_file=1 # Number of current file.
22699 ac_beg=1 # First line for current file.
22700 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22701 ac_more_lines=:
22702 ac_sed_cmds=""
22703 while $ac_more_lines; do
22704   if test $ac_beg -gt 1; then
22705     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22706   else
22707     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22708   fi
22709   if test ! -s conftest.s$ac_file; then
22710     ac_more_lines=false
22711     rm -f conftest.s$ac_file
22712   else
22713     if test -z "$ac_sed_cmds"; then
22714       ac_sed_cmds="sed -f conftest.s$ac_file"
22715     else
22716       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22717     fi
22718     ac_file=`expr $ac_file + 1`
22719     ac_beg=$ac_end
22720     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22721   fi
22722 done
22723 if test -z "$ac_sed_cmds"; then
22724   ac_sed_cmds=cat
22725 fi
22726 EOF
22727
22728 cat >> $CONFIG_STATUS <<EOF
22729
22730 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22731     include/Makefile src/Makefile \
22732     libmath/Makefile libio/Makefile libsupc++/Makefile \
22733     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22734 EOF
22735 cat >> $CONFIG_STATUS <<\EOF
22736 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22737   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22738   case "$ac_file" in
22739   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22740        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22741   *) ac_file_in="${ac_file}.in" ;;
22742   esac
22743
22744   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22745
22746   # Remove last slash and all that follows it.  Not all systems have dirname.
22747   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22748   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22749     # The file is in a subdirectory.
22750     test ! -d "$ac_dir" && mkdir "$ac_dir"
22751     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22752     # A "../" for each directory in $ac_dir_suffix.
22753     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22754   else
22755     ac_dir_suffix= ac_dots=
22756   fi
22757
22758   case "$ac_given_srcdir" in
22759   .)  srcdir=.
22760       if test -z "$ac_dots"; then top_srcdir=.
22761       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22762   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22763   *) # Relative path.
22764     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22765     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22766   esac
22767
22768   case "$ac_given_INSTALL" in
22769   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22770   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22771   esac
22772
22773   echo creating "$ac_file"
22774   rm -f "$ac_file"
22775   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22776   case "$ac_file" in
22777   *Makefile*) ac_comsub="1i\\
22778 # $configure_input" ;;
22779   *) ac_comsub= ;;
22780   esac
22781
22782   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22783   sed -e "$ac_comsub
22784 s%@configure_input@%$configure_input%g
22785 s%@srcdir@%$srcdir%g
22786 s%@top_srcdir@%$top_srcdir%g
22787 s%@INSTALL@%$INSTALL%g
22788 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22789 fi; done
22790 rm -f conftest.s*
22791
22792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22794 #
22795 # ac_d sets the value in "#define NAME VALUE" lines.
22796 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22797 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22798 ac_dC='\3'
22799 ac_dD='%g'
22800 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22801 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22802 ac_uB='\([      ]\)%\1#\2define\3'
22803 ac_uC=' '
22804 ac_uD='\4%g'
22805 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22806 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22807 ac_eB='$%\1#\2define\3'
22808 ac_eC=' '
22809 ac_eD='%g'
22810
22811 if test "${CONFIG_HEADERS+set}" != set; then
22812 EOF
22813 cat >> $CONFIG_STATUS <<EOF
22814   CONFIG_HEADERS="config.h"
22815 EOF
22816 cat >> $CONFIG_STATUS <<\EOF
22817 fi
22818 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22819   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22820   case "$ac_file" in
22821   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22822        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22823   *) ac_file_in="${ac_file}.in" ;;
22824   esac
22825
22826   echo creating $ac_file
22827
22828   rm -f conftest.frag conftest.in conftest.out
22829   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22830   cat $ac_file_inputs > conftest.in
22831
22832 EOF
22833
22834 # Transform confdefs.h into a sed script conftest.vals that substitutes
22835 # the proper values into config.h.in to produce config.h.  And first:
22836 # Protect against being on the right side of a sed subst in config.status.
22837 # Protect against being in an unquoted here document in config.status.
22838 rm -f conftest.vals
22839 cat > conftest.hdr <<\EOF
22840 s/[\\&%]/\\&/g
22841 s%[\\$`]%\\&%g
22842 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22843 s%ac_d%ac_u%gp
22844 s%ac_u%ac_e%gp
22845 EOF
22846 sed -n -f conftest.hdr confdefs.h > conftest.vals
22847 rm -f conftest.hdr
22848
22849 # This sed command replaces #undef with comments.  This is necessary, for
22850 # example, in the case of _POSIX_SOURCE, which is predefined and required
22851 # on some systems where configure will not decide to define it.
22852 cat >> conftest.vals <<\EOF
22853 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22854 EOF
22855
22856 # Break up conftest.vals because some shells have a limit on
22857 # the size of here documents, and old seds have small limits too.
22858
22859 rm -f conftest.tail
22860 while :
22861 do
22862   ac_lines=`grep -c . conftest.vals`
22863   # grep -c gives empty output for an empty file on some AIX systems.
22864   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22865   # Write a limited-size here document to conftest.frag.
22866   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22867   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22868   echo 'CEOF
22869   sed -f conftest.frag conftest.in > conftest.out
22870   rm -f conftest.in
22871   mv conftest.out conftest.in
22872 ' >> $CONFIG_STATUS
22873   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22874   rm -f conftest.vals
22875   mv conftest.tail conftest.vals
22876 done
22877 rm -f conftest.vals
22878
22879 cat >> $CONFIG_STATUS <<\EOF
22880   rm -f conftest.frag conftest.h
22881   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22882   cat conftest.in >> conftest.h
22883   rm -f conftest.in
22884   if cmp -s $ac_file conftest.h 2>/dev/null; then
22885     echo "$ac_file is unchanged"
22886     rm -f conftest.h
22887   else
22888     # Remove last slash and all that follows it.  Not all systems have dirname.
22889       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22890       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22891       # The file is in a subdirectory.
22892       test ! -d "$ac_dir" && mkdir "$ac_dir"
22893     fi
22894     rm -f $ac_file
22895     mv conftest.h $ac_file
22896   fi
22897 fi; done
22898
22899 EOF
22900
22901 cat >> $CONFIG_STATUS <<EOF
22902 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
22903 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
22904 EOF
22905
22906 cat >> $CONFIG_STATUS <<\EOF
22907 srcdir=$ac_given_srcdir
22908 while test -n "$ac_sources"; do
22909   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22910   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22911
22912   echo "linking $srcdir/$ac_source to $ac_dest"
22913
22914   if test ! -r $srcdir/$ac_source; then
22915     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22916   fi
22917   rm -f $ac_dest
22918
22919   # Make relative symlinks.
22920   # Remove last slash and all that follows it.  Not all systems have dirname.
22921   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22922   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22923     # The dest file is in a subdirectory.
22924     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22925     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22926     # A "../" for each directory in $ac_dest_dir_suffix.
22927     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22928   else
22929     ac_dest_dir_suffix= ac_dots=
22930   fi
22931
22932   case "$srcdir" in
22933   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22934   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22935   esac
22936
22937   # Make a symlink if possible; otherwise try a hard link.
22938   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22939     ln $srcdir/$ac_source $ac_dest; then :
22940   else
22941     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22942   fi
22943 done
22944 EOF
22945 cat >> $CONFIG_STATUS <<EOF
22946
22947 srcdir=${srcdir}
22948 host=${host}
22949 target=${target}
22950 with_multisubdir=${with_multisubdir}
22951 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22952 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22953 glibcpp_basedir=${glibcpp_basedir}
22954 CC="${CC}"
22955 CXX="${CXX}"
22956
22957 EOF
22958 cat >> $CONFIG_STATUS <<\EOF
22959 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22960 if test -n "$CONFIG_FILES"; then
22961   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22962   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22963   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22964   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22965 fi
22966 chmod +x mkcheck
22967 chmod +x testsuite_flags
22968
22969 exit 0
22970 EOF
22971 chmod +x $CONFIG_STATUS
22972 rm -fr confdefs* $ac_clean_files
22973 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22974
22975
22976
22977 # Sanity checking & User-visible messages.
22978 # Checks down here, otherwise they get scrolled off before
22979 # the user will notice.
22980
22981 # Trying to get more people to read documentation.  Possibly remove
22982 # check and warn all the time. There is no "informational" AC_MSG_
22983 # macro, so these are going to be printed even when --quiet/--silent
22984 # is given.
22985 if test ! -f stamp-sanity-warned; then
22986   touch stamp-sanity-warned
22987   echo ""
22988   echo "Please make certain that you read the installation information here:"
22989   echo "  faster => ${srcdir}/docs/html/install.html"
22990   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22991   echo ""
22992   echo "and the configuration information here:"
22993   echo "  faster => ${srcdir}/docs/html/configopts.html"
22994   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22995   echo ""
22996   echo "before proceeding with ${_cv_gnu_make_command}."
22997   echo ""
22998 fi