linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
[platform/upstream/gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --enable-symvers        enables symbol versioning of the shared library [default=no]"
63 ac_help="$ac_help
64   --with-gxx-include-dir  the installation directory for include files"
65 ac_help="$ac_help
66   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
67
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
101
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
108
109 ac_prev=
110 for ac_option
111 do
112
113   # If the previous option needs an argument, assign it.
114   if test -n "$ac_prev"; then
115     eval "$ac_prev=\$ac_option"
116     ac_prev=
117     continue
118   fi
119
120   case "$ac_option" in
121   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122   *) ac_optarg= ;;
123   esac
124
125   # Accept the important Cygnus configure options, so we can diagnose typos.
126
127   case "$ac_option" in
128
129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
130     ac_prev=bindir ;;
131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132     bindir="$ac_optarg" ;;
133
134   -build | --build | --buil | --bui | --bu)
135     ac_prev=build ;;
136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137     build="$ac_optarg" ;;
138
139   -cache-file | --cache-file | --cache-fil | --cache-fi \
140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141     ac_prev=cache_file ;;
142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144     cache_file="$ac_optarg" ;;
145
146   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147     ac_prev=datadir ;;
148   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149   | --da=*)
150     datadir="$ac_optarg" ;;
151
152   -disable-* | --disable-*)
153     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154     # Reject names that are not valid shell variable names.
155     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157     fi
158     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159     eval "enable_${ac_feature}=no" ;;
160
161   -enable-* | --enable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     case "$ac_option" in
169       *=*) ;;
170       *) ac_optarg=yes ;;
171     esac
172     eval "enable_${ac_feature}='$ac_optarg'" ;;
173
174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176   | --exec | --exe | --ex)
177     ac_prev=exec_prefix ;;
178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180   | --exec=* | --exe=* | --ex=*)
181     exec_prefix="$ac_optarg" ;;
182
183   -gas | --gas | --ga | --g)
184     # Obsolete; use --with-gas.
185     with_gas=yes ;;
186
187   -help | --help | --hel | --he)
188     # Omit some internal or obsolete options to make the list less imposing.
189     # This message is too long to be a string in the A/UX 3.1 sh.
190     cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194   --cache-file=FILE       cache test results in FILE
195   --help                  print this message
196   --no-create             do not create output files
197   --quiet, --silent       do not print \`checking...' messages
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
325   -program-transform-name | --program-transform-name \
326   | --program-transform-nam | --program-transform-na \
327   | --program-transform-n | --program-transform- \
328   | --program-transform | --program-transfor \
329   | --program-transfo | --program-transf \
330   | --program-trans | --program-tran \
331   | --progr-tra | --program-tr | --program-t)
332     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369     ac_prev=srcdir ;;
370   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371     srcdir="$ac_optarg" ;;
372
373   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374   | --syscon | --sysco | --sysc | --sys | --sy)
375     ac_prev=sysconfdir ;;
376   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378     sysconfdir="$ac_optarg" ;;
379
380   -target | --target | --targe | --targ | --tar | --ta | --t)
381     ac_prev=target ;;
382   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383     target="$ac_optarg" ;;
384
385   -v | -verbose | --verbose | --verbos | --verbo | --verb)
386     verbose=yes ;;
387
388   -version | --version | --versio | --versi | --vers)
389     echo "configure generated by autoconf version 2.13"
390     exit 0 ;;
391
392   -with-* | --with-*)
393     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     case "$ac_option" in
400       *=*) ;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "with_${ac_package}='$ac_optarg'" ;;
404
405   -without-* | --without-*)
406     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     eval "with_${ac_package}=no" ;;
413
414   --x)
415     # Obsolete; use --with-x.
416     with_x=yes ;;
417
418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419   | --x-incl | --x-inc | --x-in | --x-i)
420     ac_prev=x_includes ;;
421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423     x_includes="$ac_optarg" ;;
424
425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427     ac_prev=x_libraries ;;
428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430     x_libraries="$ac_optarg" ;;
431
432   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433     ;;
434
435   *)
436     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437       echo "configure: warning: $ac_option: invalid host type" 1>&2
438     fi
439     if test "x$nonopt" != xNONE; then
440       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441     fi
442     nonopt="$ac_option"
443     ;;
444
445   esac
446 done
447
448 if test -n "$ac_prev"; then
449   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 fi
451
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463   exec 6>/dev/null
464 else
465   exec 6>&1
466 fi
467 exec 5>./config.log
468
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
473
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
478 do
479   case "$ac_arg" in
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c) ;;
482   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487   esac
488 done
489
490 # NLS nuisances.
491 # Only set these to C if already set.  These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
499
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
504
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=src/ios.cc
508
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511   ac_srcdir_defaulted=yes
512   # Try the directory containing this script, then its parent.
513   ac_prog=$0
514   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516   srcdir=$ac_confdir
517   if test ! -r $srcdir/$ac_unique_file; then
518     srcdir=..
519   fi
520 else
521   ac_srcdir_defaulted=no
522 fi
523 if test ! -r $srcdir/$ac_unique_file; then
524   if test "$ac_srcdir_defaulted" = yes; then
525     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526   else
527     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528   fi
529 fi
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534   if test "x$prefix" != xNONE; then
535     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536   else
537     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538   fi
539 fi
540 for ac_site_file in $CONFIG_SITE; do
541   if test -r "$ac_site_file"; then
542     echo "loading site script $ac_site_file"
543     . "$ac_site_file"
544   fi
545 done
546
547 if test -r "$cache_file"; then
548   echo "loading cache $cache_file"
549   . $cache_file
550 else
551   echo "creating cache $cache_file"
552   > $cache_file
553 fi
554
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
561
562 ac_exeext=
563 ac_objext=o
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567     ac_n= ac_c='
568 ' ac_t='        '
569   else
570     ac_n=-n ac_c= ac_t=
571   fi
572 else
573   ac_n= ac_c='\c' ac_t=
574 fi
575
576
577
578 PACKAGE=libstdc++
579
580 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
581 release_VERSION=3.1.0
582
583 # For libtool versioning info, format is CURRENT:REVISION:AGE
584 libtool_VERSION=4:0:0
585
586
587 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
588 # AC 2.50 sets target_alias iff the user specified --target, but we use it
589 # everywhere, so we set it here just to be sure.
590 ac_aux_dir=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592   if test -f $ac_dir/install-sh; then
593     ac_aux_dir=$ac_dir
594     ac_install_sh="$ac_aux_dir/install-sh -c"
595     break
596   elif test -f $ac_dir/install.sh; then
597     ac_aux_dir=$ac_dir
598     ac_install_sh="$ac_aux_dir/install.sh -c"
599     break
600   fi
601 done
602 if test -z "$ac_aux_dir"; then
603   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
604 fi
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608
609
610 # Do some error checking and defaulting for the host and target type.
611 # The inputs are:
612 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
613 #
614 # The rules are:
615 # 1. You are not allowed to specify --host, --target, and nonopt at the
616 #    same time.
617 # 2. Host defaults to nonopt.
618 # 3. If nonopt is not specified, then host defaults to the current host,
619 #    as determined by config.guess.
620 # 4. Target and build default to nonopt.
621 # 5. If nonopt is not specified, then target and build default to host.
622
623 # The aliases save the names the user supplied, while $host etc.
624 # will get canonicalized.
625 case $host---$target---$nonopt in
626 NONE---*---* | *---NONE---* | *---*---NONE) ;;
627 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
628 esac
629
630
631 # Make sure we can run config.sub.
632 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
633 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634 fi
635
636 echo $ac_n "checking host system type""... $ac_c" 1>&6
637 echo "configure:638: checking host system type" >&5
638
639 host_alias=$host
640 case "$host_alias" in
641 NONE)
642   case $nonopt in
643   NONE)
644     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
645     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
646     fi ;;
647   *) host_alias=$nonopt ;;
648   esac ;;
649 esac
650
651 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
652 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$host" 1>&6
656
657 echo $ac_n "checking target system type""... $ac_c" 1>&6
658 echo "configure:659: checking target system type" >&5
659
660 target_alias=$target
661 case "$target_alias" in
662 NONE)
663   case $nonopt in
664   NONE) target_alias=$host_alias ;;
665   *) target_alias=$nonopt ;;
666   esac ;;
667 esac
668
669 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
670 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$target" 1>&6
674
675 echo $ac_n "checking build system type""... $ac_c" 1>&6
676 echo "configure:677: checking build system type" >&5
677
678 build_alias=$build
679 case "$build_alias" in
680 NONE)
681   case $nonopt in
682   NONE) build_alias=$host_alias ;;
683   *) build_alias=$nonopt ;;
684   esac ;;
685 esac
686
687 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
688 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$build" 1>&6
692
693 test "$host_alias" != "$target_alias" &&
694   test "$program_prefix$program_suffix$program_transform_name" = \
695     NONENONEs,x,x, &&
696   program_prefix=${target_alias}-
697
698 target_alias=${target_alias-$target}
699
700
701 # Find a good install program.  We prefer a C program (faster),
702 # so one script is as good as another.  But avoid the broken or
703 # incompatible versions:
704 # SysV /etc/install, /usr/sbin/install
705 # SunOS /usr/etc/install
706 # IRIX /sbin/install
707 # AIX /bin/install
708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
711 # ./install, which can be erroneously created by make from ./install.sh.
712 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
713 echo "configure:714: checking for a BSD compatible install" >&5
714 if test -z "$INSTALL"; then
715 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
716   echo $ac_n "(cached) $ac_c" 1>&6
717 else
718     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
719   for ac_dir in $PATH; do
720     # Account for people who put trailing slashes in PATH elements.
721     case "$ac_dir/" in
722     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
723     *)
724       # OSF1 and SCO ODT 3.0 have their own names for install.
725       # Don't use installbsd from OSF since it installs stuff as root
726       # by default.
727       for ac_prog in ginstall scoinst install; do
728         if test -f $ac_dir/$ac_prog; then
729           if test $ac_prog = install &&
730             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
731             # AIX install.  It has an incompatible calling convention.
732             :
733           else
734             ac_cv_path_install="$ac_dir/$ac_prog -c"
735             break 2
736           fi
737         fi
738       done
739       ;;
740     esac
741   done
742   IFS="$ac_save_IFS"
743
744 fi
745   if test "${ac_cv_path_install+set}" = set; then
746     INSTALL="$ac_cv_path_install"
747   else
748     # As a last resort, use the slow shell script.  We don't cache a
749     # path for INSTALL within a source directory, because that will
750     # break other packages using the cache if that directory is
751     # removed, or if the path is relative.
752     INSTALL="$ac_install_sh"
753   fi
754 fi
755 echo "$ac_t""$INSTALL" 1>&6
756
757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
758 # It thinks the first close brace ends the variable substitution.
759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760
761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762
763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
766 echo "configure:767: checking whether build environment is sane" >&5
767 # Just in case
768 sleep 1
769 echo timestamp > conftestfile
770 # Do `set' in a subshell so we don't clobber the current shell's
771 # arguments.  Must try -L first in case configure is actually a
772 # symlink; some systems play weird games with the mod time of symlinks
773 # (eg FreeBSD returns the mod time of the symlink's containing
774 # directory).
775 if (
776    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
777    if test "$*" = "X"; then
778       # -L didn't work.
779       set X `ls -t $srcdir/configure conftestfile`
780    fi
781    if test "$*" != "X $srcdir/configure conftestfile" \
782       && test "$*" != "X conftestfile $srcdir/configure"; then
783
784       # If neither matched, then we have a broken ls.  This can happen
785       # if, for instance, CONFIG_SHELL is bash and it inherits a
786       # broken ls alias from the environment.  This has actually
787       # happened.  Such a system could not be considered "sane".
788       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
789 alias in your environment" 1>&2; exit 1; }
790    fi
791
792    test "$2" = conftestfile
793    )
794 then
795    # Ok.
796    :
797 else
798    { echo "configure: error: newly created file is older than distributed files!
799 Check your system clock" 1>&2; exit 1; }
800 fi
801 rm -f conftest*
802 echo "$ac_t""yes" 1>&6
803 if test "$program_transform_name" = s,x,x,; then
804   program_transform_name=
805 else
806   # Double any \ or $.  echo might interpret backslashes.
807   cat <<\EOF_SED > conftestsed
808 s,\\,\\\\,g; s,\$,$$,g
809 EOF_SED
810   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
811   rm -f conftestsed
812 fi
813 test "$program_prefix" != NONE &&
814   program_transform_name="s,^,${program_prefix},; $program_transform_name"
815 # Use a double $ so make ignores it.
816 test "$program_suffix" != NONE &&
817   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818
819 # sed with no file args requires a program.
820 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821
822 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${MAKE-make} sets \${MAKE}" >&5
824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
825 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
826   echo $ac_n "(cached) $ac_c" 1>&6
827 else
828   cat > conftestmake <<\EOF
829 all:
830         @echo 'ac_maketemp="${MAKE}"'
831 EOF
832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
833 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
834 if test -n "$ac_maketemp"; then
835   eval ac_cv_prog_make_${ac_make}_set=yes
836 else
837   eval ac_cv_prog_make_${ac_make}_set=no
838 fi
839 rm -f conftestmake
840 fi
841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
842   echo "$ac_t""yes" 1>&6
843   SET_MAKE=
844 else
845   echo "$ac_t""no" 1>&6
846   SET_MAKE="MAKE=${MAKE-make}"
847 fi
848
849
850 PACKAGE=$PACKAGE
851
852 VERSION=$release_VERSION
853
854 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856 fi
857 cat >> confdefs.h <<EOF
858 #define PACKAGE "$PACKAGE"
859 EOF
860
861 cat >> confdefs.h <<EOF
862 #define VERSION "$VERSION"
863 EOF
864
865
866
867 missing_dir=`cd $ac_aux_dir && pwd`
868 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
869 echo "configure:870: checking for working aclocal" >&5
870 # Run test in a subshell; some versions of sh will print an error if
871 # an executable is not found, even if stderr is redirected.
872 # Redirect stdin to placate older versions of autoconf.  Sigh.
873 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
874    ACLOCAL=aclocal
875    echo "$ac_t""found" 1>&6
876 else
877    ACLOCAL="$missing_dir/missing aclocal"
878    echo "$ac_t""missing" 1>&6
879 fi
880
881 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
882 echo "configure:883: checking for working autoconf" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf.  Sigh.
886 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
887    AUTOCONF=autoconf
888    echo "$ac_t""found" 1>&6
889 else
890    AUTOCONF="$missing_dir/missing autoconf"
891    echo "$ac_t""missing" 1>&6
892 fi
893
894 echo $ac_n "checking for working automake""... $ac_c" 1>&6
895 echo "configure:896: checking for working automake" >&5
896 # Run test in a subshell; some versions of sh will print an error if
897 # an executable is not found, even if stderr is redirected.
898 # Redirect stdin to placate older versions of autoconf.  Sigh.
899 if (automake --version) < /dev/null > /dev/null 2>&1; then
900    AUTOMAKE=automake
901    echo "$ac_t""found" 1>&6
902 else
903    AUTOMAKE="$missing_dir/missing automake"
904    echo "$ac_t""missing" 1>&6
905 fi
906
907 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
908 echo "configure:909: checking for working autoheader" >&5
909 # Run test in a subshell; some versions of sh will print an error if
910 # an executable is not found, even if stderr is redirected.
911 # Redirect stdin to placate older versions of autoconf.  Sigh.
912 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
913    AUTOHEADER=autoheader
914    echo "$ac_t""found" 1>&6
915 else
916    AUTOHEADER="$missing_dir/missing autoheader"
917    echo "$ac_t""missing" 1>&6
918 fi
919
920 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
921 echo "configure:922: checking for working makeinfo" >&5
922 # Run test in a subshell; some versions of sh will print an error if
923 # an executable is not found, even if stderr is redirected.
924 # Redirect stdin to placate older versions of autoconf.  Sigh.
925 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
926    MAKEINFO=makeinfo
927    echo "$ac_t""found" 1>&6
928 else
929    MAKEINFO="$missing_dir/missing makeinfo"
930    echo "$ac_t""missing" 1>&6
931 fi
932
933
934
935
936
937
938 # Runs configure.host and configure.target, as well as finds CC, CXX
939 # and assorted other critical bits. Have to run this before the
940 # GLIBCPP_ENABLE_* macros below.
941 if test $host != $build; then
942   ac_tool_prefix=${host_alias}-
943 else
944   ac_tool_prefix=
945 fi
946
947 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
948 echo "configure:949: checking for Cygwin environment" >&5
949 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
950   echo $ac_n "(cached) $ac_c" 1>&6
951 else
952   cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955
956 int main() {
957
958 #ifndef __CYGWIN__
959 #define __CYGWIN__ __CYGWIN32__
960 #endif
961 return __CYGWIN__;
962 ; return 0; }
963 EOF
964 if { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
965   rm -rf conftest*
966   ac_cv_cygwin=yes
967 else
968   echo "configure: failed program was:" >&5
969   cat conftest.$ac_ext >&5
970   rm -rf conftest*
971   ac_cv_cygwin=no
972 fi
973 rm -f conftest*
974 rm -f conftest*
975 fi
976
977 echo "$ac_t""$ac_cv_cygwin" 1>&6
978 CYGWIN=
979 test "$ac_cv_cygwin" = yes && CYGWIN=yes
980 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
981 echo "configure:982: checking for mingw32 environment" >&5
982 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
983   echo $ac_n "(cached) $ac_c" 1>&6
984 else
985   cat > conftest.$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
988
989 int main() {
990 return __MINGW32__;
991 ; return 0; }
992 EOF
993 if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994   rm -rf conftest*
995   ac_cv_mingw32=yes
996 else
997   echo "configure: failed program was:" >&5
998   cat conftest.$ac_ext >&5
999   rm -rf conftest*
1000   ac_cv_mingw32=no
1001 fi
1002 rm -f conftest*
1003 rm -f conftest*
1004 fi
1005
1006 echo "$ac_t""$ac_cv_mingw32" 1>&6
1007 MINGW32=
1008 test "$ac_cv_mingw32" = yes && MINGW32=yes
1009
1010     # Check whether --enable-multilib or --disable-multilib was given.
1011 if test "${enable_multilib+set}" = set; then
1012   enableval="$enable_multilib"
1013   case "${enableval}" in
1014     yes) multilib=yes ;;
1015     no)  multilib=no ;;
1016     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1017    esac
1018 else
1019   multilib=yes
1020 fi
1021
1022 # When building with srcdir == objdir, links to the source files will
1023 # be created in directories within the target_subdir.  We have to
1024 # adjust toplevel_srcdir accordingly, so that configure finds
1025 # install-sh and other auxiliary files that live in the top-level
1026 # source directory.
1027 if test "${srcdir}" = "."; then
1028   if test -z "${with_target_subdir}"; then
1029     toprel=".."
1030   else
1031     if test "${with_target_subdir}" != "."; then
1032       toprel="${with_multisrctop}../.."
1033     else
1034       toprel="${with_multisrctop}.."
1035     fi
1036   fi
1037 else
1038   toprel=".."
1039 fi
1040 ac_aux_dir=
1041 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1042   if test -f $ac_dir/install-sh; then
1043     ac_aux_dir=$ac_dir
1044     ac_install_sh="$ac_aux_dir/install-sh -c"
1045     break
1046   elif test -f $ac_dir/install.sh; then
1047     ac_aux_dir=$ac_dir
1048     ac_install_sh="$ac_aux_dir/install.sh -c"
1049     break
1050   fi
1051 done
1052 if test -z "$ac_aux_dir"; then
1053   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1054 fi
1055 ac_config_guess=$ac_aux_dir/config.guess
1056 ac_config_sub=$ac_aux_dir/config.sub
1057 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1058
1059 toplevel_srcdir=\${top_srcdir}/$toprel
1060
1061
1062 # Export build and source directories.
1063 # These need to be absolute paths, yet at the same time need to
1064 # canonicalize only relative paths, because then amd will not unmount
1065 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1066 glibcpp_builddir=`pwd`
1067 case $srcdir in
1068 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1069 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1070 esac
1071
1072
1073
1074
1075
1076 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1077 # be 'cp -p' if linking isn't available.
1078 #ac_cv_prog_LN_S='cp -p'
1079 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether ln -s works" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1082   echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084   rm -f conftestdata
1085 if ln -s X conftestdata 2>/dev/null
1086 then
1087   rm -f conftestdata
1088   ac_cv_prog_LN_S="ln -s"
1089 else
1090   ac_cv_prog_LN_S=ln
1091 fi
1092 fi
1093 LN_S="$ac_cv_prog_LN_S"
1094 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1095   echo "$ac_t""yes" 1>&6
1096 else
1097   echo "$ac_t""no" 1>&6
1098 fi
1099
1100
1101 # We use these options to decide which functions to include.
1102 # Check whether --with-target-subdir or --without-target-subdir was given.
1103 if test "${with_target_subdir+set}" = set; then
1104   withval="$with_target_subdir"
1105   :
1106 fi
1107
1108 # Check whether --with-cross-host or --without-cross-host was given.
1109 if test "${with_cross_host+set}" = set; then
1110   withval="$with_cross_host"
1111   :
1112 fi
1113
1114
1115   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1116   
1117
1118   # Never versions of autoconf add an underscore to these functions.
1119   # Prevent future problems ...
1120   
1121   
1122   
1123   
1124
1125 #  AC_PROG_CC
1126
1127 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1128 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1129 # are probably using a cross compiler, which will not be able to fully
1130 # link an executable.  This should really be fixed in autoconf
1131 # itself.
1132
1133
1134
1135
1136 # Extract the first word of "gcc", so it can be a program name with args.
1137 set dummy gcc; ac_word=$2
1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_word" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1141   echo $ac_n "(cached) $ac_c" 1>&6
1142 else
1143   if test -n "$CC"; then
1144   ac_cv_prog_CC="$CC" # Let the user override the test.
1145 else
1146   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1147   ac_dummy="$PATH"
1148   for ac_dir in $ac_dummy; do
1149     test -z "$ac_dir" && ac_dir=.
1150     if test -f $ac_dir/$ac_word; then
1151       ac_cv_prog_CC="gcc"
1152       break
1153     fi
1154   done
1155   IFS="$ac_save_ifs"
1156 fi
1157 fi
1158 CC="$ac_cv_prog_CC"
1159 if test -n "$CC"; then
1160   echo "$ac_t""$CC" 1>&6
1161 else
1162   echo "$ac_t""no" 1>&6
1163 fi
1164
1165 if test -z "$CC"; then
1166   # Extract the first word of "cc", so it can be a program name with args.
1167 set dummy cc; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1171   echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173   if test -n "$CC"; then
1174   ac_cv_prog_CC="$CC" # Let the user override the test.
1175 else
1176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1177   ac_prog_rejected=no
1178   ac_dummy="$PATH"
1179   for ac_dir in $ac_dummy; do
1180     test -z "$ac_dir" && ac_dir=.
1181     if test -f $ac_dir/$ac_word; then
1182       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1183         ac_prog_rejected=yes
1184         continue
1185       fi
1186       ac_cv_prog_CC="cc"
1187       break
1188     fi
1189   done
1190   IFS="$ac_save_ifs"
1191 if test $ac_prog_rejected = yes; then
1192   # We found a bogon in the path, so make sure we never use it.
1193   set dummy $ac_cv_prog_CC
1194   shift
1195   if test $# -gt 0; then
1196     # We chose a different compiler from the bogus one.
1197     # However, it has the same basename, so the bogon will be chosen
1198     # first if we set CC to just the basename; use the full file name.
1199     shift
1200     set dummy "$ac_dir/$ac_word" "$@"
1201     shift
1202     ac_cv_prog_CC="$@"
1203   fi
1204 fi
1205 fi
1206 fi
1207 CC="$ac_cv_prog_CC"
1208 if test -n "$CC"; then
1209   echo "$ac_t""$CC" 1>&6
1210 else
1211   echo "$ac_t""no" 1>&6
1212 fi
1213
1214   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1215 fi
1216
1217 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1220   echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222   cat > conftest.c <<EOF
1223 #ifdef __GNUC__
1224   yes;
1225 #endif
1226 EOF
1227 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1228   ac_cv_prog_gcc=yes
1229 else
1230   ac_cv_prog_gcc=no
1231 fi
1232 fi
1233
1234 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1235
1236 if test $ac_cv_prog_gcc = yes; then
1237   GCC=yes
1238   ac_test_CFLAGS="${CFLAGS+set}"
1239   ac_save_CFLAGS="$CFLAGS"
1240   CFLAGS=
1241   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether ${CC-cc} accepts -g" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1244   echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246   echo 'void f(){}' > conftest.c
1247 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1248   ac_cv_prog_cc_g=yes
1249 else
1250   ac_cv_prog_cc_g=no
1251 fi
1252 rm -f conftest*
1253
1254 fi
1255
1256 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1257   if test "$ac_test_CFLAGS" = set; then
1258     CFLAGS="$ac_save_CFLAGS"
1259   elif test $ac_cv_prog_cc_g = yes; then
1260     CFLAGS="-g -O2"
1261   else
1262     CFLAGS="-O2"
1263   fi
1264 else
1265   GCC=
1266   test "${CFLAGS+set}" = set || CFLAGS="-g"
1267 fi
1268
1269
1270 # Can't just call these here as g++ requires libstc++ to be built....
1271 #  AC_PROG_CXX
1272
1273 # Likewise for AC_PROG_CXX.
1274
1275
1276
1277 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1278 # flags that come in CXX while configuring libstdc++.  They're different
1279 # from those used for all other target libraries.  If CXX is set in
1280 # the environment, respect that here.
1281 glibcpp_CXX=$CXX
1282 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1283 do
1284 # Extract the first word of "$ac_prog", so it can be a program name with args.
1285 set dummy $ac_prog; 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_glibcpp_CXX'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$glibcpp_CXX"; then
1292   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # 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_glibcpp_CXX="$ac_prog"
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304 fi
1305 fi
1306 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1307 if test -n "$glibcpp_CXX"; then
1308   echo "$ac_t""$glibcpp_CXX" 1>&6
1309 else
1310   echo "$ac_t""no" 1>&6
1311 fi
1312
1313 test -n "$glibcpp_CXX" && break
1314 done
1315 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1316
1317
1318 CXX=$glibcpp_CXX
1319 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1320
1321 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1322 echo "configure:1323: checking whether we are using GNU C++" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   cat > conftest.C <<EOF
1327 #ifdef __GNUC__
1328   yes;
1329 #endif
1330 EOF
1331 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1332   ac_cv_prog_gxx=yes
1333 else
1334   ac_cv_prog_gxx=no
1335 fi
1336 fi
1337
1338 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1339
1340 if test $ac_cv_prog_gxx = yes; then
1341   GXX=yes
1342   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1343   ac_save_CXXFLAGS="$CXXFLAGS"
1344   CXXFLAGS=
1345   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1346 echo "configure:1347: checking whether ${CXX-g++} accepts -g" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1348   echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350   echo 'void f(){}' > conftest.cc
1351 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1352   ac_cv_prog_cxx_g=yes
1353 else
1354   ac_cv_prog_cxx_g=no
1355 fi
1356 rm -f conftest*
1357
1358 fi
1359
1360 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1361   if test "$ac_test_CXXFLAGS" = set; then
1362     CXXFLAGS="$ac_save_CXXFLAGS"
1363   elif test $ac_cv_prog_cxx_g = yes; then
1364     CXXFLAGS="-g -O2"
1365   else
1366     CXXFLAGS="-O2"
1367   fi
1368 else
1369   GXX=
1370   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1371 fi
1372
1373
1374    # For some reason, gettext needs this.
1375    
1376         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1377 echo "configure:1378: checking for strerror in -lcposix" >&5
1378 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1380   echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382   ac_save_LIBS="$LIBS"
1383 LIBS="-lcposix  $LIBS"
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 /* Override any gcc2 internal prototype to avoid an error.  */
1388 /* We use char because int might match the return type of a gcc2
1389     builtin and then its argument prototype would still apply.  */
1390 char strerror();
1391
1392 int main() {
1393 strerror()
1394 ; return 0; }
1395 EOF
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397   rm -rf conftest*
1398   eval "ac_cv_lib_$ac_lib_var=yes"
1399 else
1400   echo "configure: failed program was:" >&5
1401   cat conftest.$ac_ext >&5
1402   rm -rf conftest*
1403   eval "ac_cv_lib_$ac_lib_var=no"
1404 fi
1405 rm -f conftest*
1406 LIBS="$ac_save_LIBS"
1407
1408 fi
1409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1410   echo "$ac_t""yes" 1>&6
1411   LIBS="$LIBS -lcposix"
1412 else
1413   echo "$ac_t""no" 1>&6
1414 fi
1415
1416   
1417
1418
1419   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}as; ac_word=$2
1421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1422 echo "configure:1423: checking for $ac_word" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1424   echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426   if test -n "$AS"; then
1427   ac_cv_prog_AS="$AS" # Let the user override the test.
1428 else
1429   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1430   ac_dummy="$PATH"
1431   for ac_dir in $ac_dummy; do
1432     test -z "$ac_dir" && ac_dir=.
1433     if test -f $ac_dir/$ac_word; then
1434       ac_cv_prog_AS="${ac_tool_prefix}as"
1435       break
1436     fi
1437   done
1438   IFS="$ac_save_ifs"
1439   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1440 fi
1441 fi
1442 AS="$ac_cv_prog_AS"
1443 if test -n "$AS"; then
1444   echo "$ac_t""$AS" 1>&6
1445 else
1446   echo "$ac_t""no" 1>&6
1447 fi
1448
1449
1450
1451   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1452 set dummy ${ac_tool_prefix}ar; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1456   echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458   if test -n "$AR"; then
1459   ac_cv_prog_AR="$AR" # Let the user override the test.
1460 else
1461   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1462   ac_dummy="$PATH"
1463   for ac_dir in $ac_dummy; do
1464     test -z "$ac_dir" && ac_dir=.
1465     if test -f $ac_dir/$ac_word; then
1466       ac_cv_prog_AR="${ac_tool_prefix}ar"
1467       break
1468     fi
1469   done
1470   IFS="$ac_save_ifs"
1471   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1472 fi
1473 fi
1474 AR="$ac_cv_prog_AR"
1475 if test -n "$AR"; then
1476   echo "$ac_t""$AR" 1>&6
1477 else
1478   echo "$ac_t""no" 1>&6
1479 fi
1480
1481
1482
1483   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1486 echo "configure:1487: checking for $ac_word" >&5
1487 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1488   echo $ac_n "(cached) $ac_c" 1>&6
1489 else
1490   if test -n "$RANLIB"; then
1491   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1492 else
1493   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1494   ac_dummy="$PATH"
1495   for ac_dir in $ac_dummy; do
1496     test -z "$ac_dir" && ac_dir=.
1497     if test -f $ac_dir/$ac_word; then
1498       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1499       break
1500     fi
1501   done
1502   IFS="$ac_save_ifs"
1503 fi
1504 fi
1505 RANLIB="$ac_cv_prog_RANLIB"
1506 if test -n "$RANLIB"; then
1507   echo "$ac_t""$RANLIB" 1>&6
1508 else
1509   echo "$ac_t""no" 1>&6
1510 fi
1511
1512
1513 if test -z "$ac_cv_prog_RANLIB"; then
1514 if test -n "$ac_tool_prefix"; then
1515   # Extract the first word of "ranlib", so it can be a program name with args.
1516 set dummy ranlib; ac_word=$2
1517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1518 echo "configure:1519: checking for $ac_word" >&5
1519 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1520   echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522   if test -n "$RANLIB"; then
1523   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1524 else
1525   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1526   ac_dummy="$PATH"
1527   for ac_dir in $ac_dummy; do
1528     test -z "$ac_dir" && ac_dir=.
1529     if test -f $ac_dir/$ac_word; then
1530       ac_cv_prog_RANLIB="ranlib"
1531       break
1532     fi
1533   done
1534   IFS="$ac_save_ifs"
1535   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1536 fi
1537 fi
1538 RANLIB="$ac_cv_prog_RANLIB"
1539 if test -n "$RANLIB"; then
1540   echo "$ac_t""$RANLIB" 1>&6
1541 else
1542   echo "$ac_t""no" 1>&6
1543 fi
1544
1545 else
1546   RANLIB="ranlib-not-found-in-path-error"
1547 fi
1548 fi
1549
1550   # Find a good install program.  We prefer a C program (faster),
1551 # so one script is as good as another.  But avoid the broken or
1552 # incompatible versions:
1553 # SysV /etc/install, /usr/sbin/install
1554 # SunOS /usr/etc/install
1555 # IRIX /sbin/install
1556 # AIX /bin/install
1557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1560 # ./install, which can be erroneously created by make from ./install.sh.
1561 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1562 echo "configure:1563: checking for a BSD compatible install" >&5
1563 if test -z "$INSTALL"; then
1564 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1568   for ac_dir in $PATH; do
1569     # Account for people who put trailing slashes in PATH elements.
1570     case "$ac_dir/" in
1571     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1572     *)
1573       # OSF1 and SCO ODT 3.0 have their own names for install.
1574       # Don't use installbsd from OSF since it installs stuff as root
1575       # by default.
1576       for ac_prog in ginstall scoinst install; do
1577         if test -f $ac_dir/$ac_prog; then
1578           if test $ac_prog = install &&
1579             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1580             # AIX install.  It has an incompatible calling convention.
1581             :
1582           else
1583             ac_cv_path_install="$ac_dir/$ac_prog -c"
1584             break 2
1585           fi
1586         fi
1587       done
1588       ;;
1589     esac
1590   done
1591   IFS="$ac_save_IFS"
1592
1593 fi
1594   if test "${ac_cv_path_install+set}" = set; then
1595     INSTALL="$ac_cv_path_install"
1596   else
1597     # As a last resort, use the slow shell script.  We don't cache a
1598     # path for INSTALL within a source directory, because that will
1599     # break other packages using the cache if that directory is
1600     # removed, or if the path is relative.
1601     INSTALL="$ac_install_sh"
1602   fi
1603 fi
1604 echo "$ac_t""$INSTALL" 1>&6
1605
1606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1607 # It thinks the first close brace ends the variable substitution.
1608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1609
1610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1611
1612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613
1614
1615   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether to enable maintainer-specific portions of Makefiles" >&5
1617     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1618 if test "${enable_maintainer_mode+set}" = set; then
1619   enableval="$enable_maintainer_mode"
1620   USE_MAINTAINER_MODE=$enableval
1621 else
1622   USE_MAINTAINER_MODE=no
1623 fi
1624
1625   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1626   
1627
1628 if test $USE_MAINTAINER_MODE = yes; then
1629   MAINTAINER_MODE_TRUE=
1630   MAINTAINER_MODE_FALSE='#'
1631 else
1632   MAINTAINER_MODE_TRUE='#'
1633   MAINTAINER_MODE_FALSE=
1634 fi
1635   MAINT=$MAINTAINER_MODE_TRUE
1636   
1637
1638
1639   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1640   # at least currently, we never actually build a program, so we never
1641   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1642   # fails, because we are probably configuring with a cross compiler
1643   # which can't create executables.  So we include AC_EXEEXT to keep
1644   # automake happy, but we don't execute it, since we don't care about
1645   # the result.
1646   if false; then
1647     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1648     # to nothing, so nothing would remain between `then' and `fi' if it
1649     # were not for the `:' below.
1650     :
1651     
1652
1653 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1654 echo "configure:1655: checking for executable suffix" >&5
1655 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1656   echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1659   ac_cv_exeext=.exe
1660 else
1661   rm -f conftest*
1662   echo 'int main () { return 0; }' > conftest.$ac_ext
1663   ac_cv_exeext=
1664   if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1665     for file in conftest.*; do
1666       case $file in
1667       *.c | *.o | *.obj) ;;
1668       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1669       esac
1670     done
1671   else
1672     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1673   fi
1674   rm -f conftest*
1675   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1676 fi
1677 fi
1678
1679 EXEEXT=""
1680 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1681 echo "$ac_t""${ac_cv_exeext}" 1>&6
1682 ac_exeext=$EXEEXT
1683
1684   fi
1685
1686   . ${glibcpp_basedir}/configure.host
1687
1688   case ${glibcpp_basedir} in
1689     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1690     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1691   esac
1692
1693   # This does for the target what configure.host does for the host.  In
1694   # addition to possibly modifying the same flags, it also sets up symlinks.
1695   
1696     . ${glibcpp_basedir}/configure.target
1697     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1698     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1699
1700
1701   # 
1702
1703
1704
1705 # Check whether --enable-shared or --disable-shared was given.
1706 if test "${enable_shared+set}" = set; then
1707   enableval="$enable_shared"
1708   p=${PACKAGE-default}
1709 case $enableval in
1710 yes) enable_shared=yes ;;
1711 no) enable_shared=no ;;
1712 *)
1713   enable_shared=no
1714   # Look at the argument we got.  We use all the common list separators.
1715   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1716   for pkg in $enableval; do
1717     if test "X$pkg" = "X$p"; then
1718       enable_shared=yes
1719     fi
1720   done
1721   IFS="$ac_save_ifs"
1722   ;;
1723 esac
1724 else
1725   enable_shared=yes
1726 fi
1727
1728 # Check whether --enable-static or --disable-static was given.
1729 if test "${enable_static+set}" = set; then
1730   enableval="$enable_static"
1731   p=${PACKAGE-default}
1732 case $enableval in
1733 yes) enable_static=yes ;;
1734 no) enable_static=no ;;
1735 *)
1736   enable_static=no
1737   # Look at the argument we got.  We use all the common list separators.
1738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1739   for pkg in $enableval; do
1740     if test "X$pkg" = "X$p"; then
1741       enable_static=yes
1742     fi
1743   done
1744   IFS="$ac_save_ifs"
1745   ;;
1746 esac
1747 else
1748   enable_static=yes
1749 fi
1750
1751 # Check whether --enable-fast-install or --disable-fast-install was given.
1752 if test "${enable_fast_install+set}" = set; then
1753   enableval="$enable_fast_install"
1754   p=${PACKAGE-default}
1755 case $enableval in
1756 yes) enable_fast_install=yes ;;
1757 no) enable_fast_install=no ;;
1758 *)
1759   enable_fast_install=no
1760   # Look at the argument we got.  We use all the common list separators.
1761   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1762   for pkg in $enableval; do
1763     if test "X$pkg" = "X$p"; then
1764       enable_fast_install=yes
1765     fi
1766   done
1767   IFS="$ac_save_ifs"
1768   ;;
1769 esac
1770 else
1771   enable_fast_install=yes
1772 fi
1773
1774 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1775 if test "${with_gnu_ld+set}" = set; then
1776   withval="$with_gnu_ld"
1777   test "$withval" = no || with_gnu_ld=yes
1778 else
1779   with_gnu_ld=no
1780 fi
1781
1782 ac_prog=ld
1783 if test "$GCC" = yes; then
1784   # Check if gcc -print-prog-name=ld gives a path.
1785   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1786 echo "configure:1787: checking for ld used by GCC" >&5
1787   case $host in
1788   *-*-mingw*)
1789     # gcc leaves a trailing carriage return which upsets mingw
1790     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1791   *)
1792     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1793   esac
1794   case $ac_prog in
1795     # Accept absolute paths.
1796     [\\/]* | [A-Za-z]:[\\/]*)
1797       re_direlt='/[^/][^/]*/\.\./'
1798       # Canonicalize the path of ld
1799       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1800       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1801         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1802       done
1803       test -z "$LD" && LD="$ac_prog"
1804       ;;
1805   "")
1806     # If it fails, then pretend we aren't using GCC.
1807     ac_prog=ld
1808     ;;
1809   *)
1810     # If it is relative, then search for the first ld in PATH.
1811     with_gnu_ld=unknown
1812     ;;
1813   esac
1814 elif test "$with_gnu_ld" = yes; then
1815   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1816 echo "configure:1817: checking for GNU ld" >&5
1817 else
1818   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1819 echo "configure:1820: checking for non-GNU ld" >&5
1820 fi
1821 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1822   echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824   if test -z "$LD"; then
1825   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1826   for ac_dir in $PATH; do
1827     test -z "$ac_dir" && ac_dir=.
1828     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1829       lt_cv_path_LD="$ac_dir/$ac_prog"
1830       # Check to see if the program is GNU ld.  I'd rather use --version,
1831       # but apparently some GNU ld's only accept -v.
1832       # Break only if it was the GNU/non-GNU ld that we prefer.
1833       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1834         test "$with_gnu_ld" != no && break
1835       else
1836         test "$with_gnu_ld" != yes && break
1837       fi
1838     fi
1839   done
1840   IFS="$ac_save_ifs"
1841 else
1842   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1843 fi
1844 fi
1845
1846 LD="$lt_cv_path_LD"
1847 if test -n "$LD"; then
1848   echo "$ac_t""$LD" 1>&6
1849 else
1850   echo "$ac_t""no" 1>&6
1851 fi
1852 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1853 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1854 echo "configure:1855: checking if the linker ($LD) is GNU ld" >&5
1855 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1859 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1860   lt_cv_prog_gnu_ld=yes
1861 else
1862   lt_cv_prog_gnu_ld=no
1863 fi
1864 fi
1865
1866 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1867 with_gnu_ld=$lt_cv_prog_gnu_ld
1868
1869
1870 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1871 echo "configure:1872: checking for $LD option to reload object files" >&5
1872 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   lt_cv_ld_reload_flag='-r'
1876 fi
1877
1878 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1879 reload_flag=$lt_cv_ld_reload_flag
1880 test -n "$reload_flag" && reload_flag=" $reload_flag"
1881
1882 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1883 echo "configure:1884: checking for BSD-compatible nm" >&5
1884 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1885   echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887   if test -n "$NM"; then
1888   # Let the user override the test.
1889   lt_cv_path_NM="$NM"
1890 else
1891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1892   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1893     test -z "$ac_dir" && ac_dir=.
1894     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1895     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1896       # Check to see if the nm accepts a BSD-compat flag.
1897       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1898       #   nm: unknown option "B" ignored
1899       # Tru64's nm complains that /dev/null is an invalid object file
1900       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1901         lt_cv_path_NM="$tmp_nm -B"
1902         break
1903       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1904         lt_cv_path_NM="$tmp_nm -p"
1905         break
1906       else
1907         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1908         continue # so that we can try to find one that supports BSD flags
1909       fi
1910     fi
1911   done
1912   IFS="$ac_save_ifs"
1913   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1914 fi
1915 fi
1916
1917 NM="$lt_cv_path_NM"
1918 echo "$ac_t""$NM" 1>&6
1919
1920 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1921 echo "configure:1922: checking how to recognise dependant libraries" >&5
1922 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1923   echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925   lt_cv_file_magic_cmd='$MAGIC_CMD'
1926 lt_cv_file_magic_test_file=
1927 lt_cv_deplibs_check_method='unknown'
1928 # Need to set the preceding variable on all platforms that support
1929 # interlibrary dependencies.
1930 # 'none' -- dependencies not supported.
1931 # `unknown' -- same as none, but documents that we really don't know.
1932 # 'pass_all' -- all dependencies passed with no checks.
1933 # 'test_compile' -- check by making test program.
1934 # 'file_magic [regex]' -- check by looking for files in library path
1935 # which responds to the $file_magic_cmd with a given egrep regex.
1936 # If you have `file' or equivalent on your system and you're not sure
1937 # whether `pass_all' will *always* work, you probably want this one.
1938
1939 case $host_os in
1940 aix*)
1941   lt_cv_deplibs_check_method=pass_all
1942   ;;
1943
1944 beos*)
1945   lt_cv_deplibs_check_method=pass_all
1946   ;;
1947
1948 bsdi4*)
1949   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1950   lt_cv_file_magic_cmd='/usr/bin/file -L'
1951   lt_cv_file_magic_test_file=/shlib/libc.so
1952   ;;
1953
1954 cygwin* | mingw* |pw32*)
1955   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1956   lt_cv_file_magic_cmd='$OBJDUMP -f'
1957   ;;
1958
1959 darwin* | rhapsody*)
1960   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1961   lt_cv_file_magic_cmd='/usr/bin/file -L'
1962   case "$host_os" in
1963   rhapsody* | darwin1.012)
1964     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1965     ;;
1966   *) # Darwin 1.3 on
1967     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1968     ;;
1969   esac
1970   ;;
1971
1972 freebsd* )
1973   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1974     case $host_cpu in
1975     i*86 )
1976       # Not sure whether the presence of OpenBSD here was a mistake.
1977       # Let's accept both of them until this is cleared up.
1978       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1979       lt_cv_file_magic_cmd=/usr/bin/file
1980       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1981       ;;
1982     esac
1983   else
1984     lt_cv_deplibs_check_method=pass_all
1985   fi
1986   ;;
1987
1988 gnu*)
1989   lt_cv_deplibs_check_method=pass_all
1990   ;;
1991
1992 hpux10.20*|hpux11*)
1993   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1994   lt_cv_file_magic_cmd=/usr/bin/file
1995   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1996   ;;
1997
1998 irix5* | irix6*)
1999   case $host_os in
2000   irix5*)
2001     # this will be overridden with pass_all, but let us keep it just in case
2002     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2003     ;;
2004   *)
2005     case $LD in
2006     *-32|*"-32 ") libmagic=32-bit;;
2007     *-n32|*"-n32 ") libmagic=N32;;
2008     *-64|*"-64 ") libmagic=64-bit;;
2009     *) libmagic=never-match;;
2010     esac
2011     # this will be overridden with pass_all, but let us keep it just in case
2012     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2013     ;;
2014   esac
2015   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2016   lt_cv_deplibs_check_method=pass_all
2017   ;;
2018
2019 # This must be Linux ELF.
2020 linux-gnu*)
2021   case $host_cpu in
2022   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2023     lt_cv_deplibs_check_method=pass_all ;;
2024   *)
2025     # glibc up to 2.1.1 does not perform some relocations on ARM
2026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2027   esac
2028   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2029   ;;
2030
2031 netbsd*)
2032   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2033     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2034   else
2035     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2036   fi
2037   ;;
2038
2039 newsos6)
2040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2041   lt_cv_file_magic_cmd=/usr/bin/file
2042   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2043   ;;
2044
2045 osf3* | osf4* | osf5*)
2046   # this will be overridden with pass_all, but let us keep it just in case
2047   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2048   lt_cv_file_magic_test_file=/shlib/libc.so
2049   lt_cv_deplibs_check_method=pass_all
2050   ;;
2051
2052 sco3.2v5*)
2053   lt_cv_deplibs_check_method=pass_all
2054   ;;
2055
2056 solaris*)
2057   lt_cv_deplibs_check_method=pass_all
2058   lt_cv_file_magic_test_file=/lib/libc.so
2059   ;;
2060
2061 sysv5uw[78]* | sysv4*uw2*)
2062   lt_cv_deplibs_check_method=pass_all
2063   ;;
2064
2065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2066   case $host_vendor in
2067   ncr)
2068     lt_cv_deplibs_check_method=pass_all
2069     ;;
2070   motorola)
2071     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2072     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2073     ;;
2074   esac
2075   ;;
2076 esac
2077
2078 fi
2079
2080 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2081 file_magic_cmd=$lt_cv_file_magic_cmd
2082 deplibs_check_method=$lt_cv_deplibs_check_method
2083
2084 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2085 echo "configure:2086: checking for object suffix" >&5
2086 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2087   echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089   rm -f conftest*
2090 echo 'int i = 1;' > conftest.$ac_ext
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092   for ac_file in conftest.*; do
2093     case $ac_file in
2094     *.c) ;;
2095     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2096     esac
2097   done
2098 else
2099   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2100 fi
2101 rm -f conftest*
2102 fi
2103
2104 echo "$ac_t""$ac_cv_objext" 1>&6
2105 OBJEXT=$ac_cv_objext
2106 ac_objext=$ac_cv_objext
2107
2108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2109
2110 # Only perform the check for file, if the check method requires it
2111 case $deplibs_check_method in
2112 file_magic*)
2113   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2114     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ${ac_tool_prefix}file" >&5
2116 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2117   echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119   case $MAGIC_CMD in
2120   /*)
2121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2122   ;;
2123   ?:/*)
2124   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2125   ;;
2126   *)
2127   ac_save_MAGIC_CMD="$MAGIC_CMD"
2128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2129   ac_dummy="/usr/bin:$PATH"
2130   for ac_dir in $ac_dummy; do
2131     test -z "$ac_dir" && ac_dir=.
2132     if test -f $ac_dir/${ac_tool_prefix}file; then
2133       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2134       if test -n "$file_magic_test_file"; then
2135         case $deplibs_check_method in
2136         "file_magic "*)
2137           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2140             egrep "$file_magic_regex" > /dev/null; then
2141             :
2142           else
2143             cat <<EOF 1>&2
2144
2145 *** Warning: the command libtool uses to detect shared libraries,
2146 *** $file_magic_cmd, produces output that libtool cannot recognize.
2147 *** The result is that libtool may fail to recognize shared libraries
2148 *** as such.  This will affect the creation of libtool libraries that
2149 *** depend on shared libraries, but programs linked with such libtool
2150 *** libraries will work regardless of this problem.  Nevertheless, you
2151 *** may want to report the problem to your system manager and/or to
2152 *** bug-libtool@gnu.org
2153
2154 EOF
2155           fi ;;
2156         esac
2157       fi
2158       break
2159     fi
2160   done
2161   IFS="$ac_save_ifs"
2162   MAGIC_CMD="$ac_save_MAGIC_CMD"
2163   ;;
2164 esac
2165 fi
2166
2167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2168 if test -n "$MAGIC_CMD"; then
2169   echo "$ac_t""$MAGIC_CMD" 1>&6
2170 else
2171   echo "$ac_t""no" 1>&6
2172 fi
2173
2174 if test -z "$lt_cv_path_MAGIC_CMD"; then
2175   if test -n "$ac_tool_prefix"; then
2176     echo $ac_n "checking for file""... $ac_c" 1>&6
2177 echo "configure:2178: checking for file" >&5
2178 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2179   echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181   case $MAGIC_CMD in
2182   /*)
2183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2184   ;;
2185   ?:/*)
2186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187   ;;
2188   *)
2189   ac_save_MAGIC_CMD="$MAGIC_CMD"
2190   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191   ac_dummy="/usr/bin:$PATH"
2192   for ac_dir in $ac_dummy; do
2193     test -z "$ac_dir" && ac_dir=.
2194     if test -f $ac_dir/file; then
2195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2196       if test -n "$file_magic_test_file"; then
2197         case $deplibs_check_method in
2198         "file_magic "*)
2199           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2202             egrep "$file_magic_regex" > /dev/null; then
2203             :
2204           else
2205             cat <<EOF 1>&2
2206
2207 *** Warning: the command libtool uses to detect shared libraries,
2208 *** $file_magic_cmd, produces output that libtool cannot recognize.
2209 *** The result is that libtool may fail to recognize shared libraries
2210 *** as such.  This will affect the creation of libtool libraries that
2211 *** depend on shared libraries, but programs linked with such libtool
2212 *** libraries will work regardless of this problem.  Nevertheless, you
2213 *** may want to report the problem to your system manager and/or to
2214 *** bug-libtool@gnu.org
2215
2216 EOF
2217           fi ;;
2218         esac
2219       fi
2220       break
2221     fi
2222   done
2223   IFS="$ac_save_ifs"
2224   MAGIC_CMD="$ac_save_MAGIC_CMD"
2225   ;;
2226 esac
2227 fi
2228
2229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230 if test -n "$MAGIC_CMD"; then
2231   echo "$ac_t""$MAGIC_CMD" 1>&6
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235
2236   else
2237     MAGIC_CMD=:
2238   fi
2239 fi
2240
2241   fi
2242   ;;
2243 esac
2244
2245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_word" >&5
2249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2250   echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252   if test -n "$RANLIB"; then
2253   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2254 else
2255   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2256   ac_dummy="$PATH"
2257   for ac_dir in $ac_dummy; do
2258     test -z "$ac_dir" && ac_dir=.
2259     if test -f $ac_dir/$ac_word; then
2260       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2261       break
2262     fi
2263   done
2264   IFS="$ac_save_ifs"
2265 fi
2266 fi
2267 RANLIB="$ac_cv_prog_RANLIB"
2268 if test -n "$RANLIB"; then
2269   echo "$ac_t""$RANLIB" 1>&6
2270 else
2271   echo "$ac_t""no" 1>&6
2272 fi
2273
2274
2275 if test -z "$ac_cv_prog_RANLIB"; then
2276 if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "ranlib", so it can be a program name with args.
2278 set dummy ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282   echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284   if test -n "$RANLIB"; then
2285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2288   ac_dummy="$PATH"
2289   for ac_dir in $ac_dummy; do
2290     test -z "$ac_dir" && ac_dir=.
2291     if test -f $ac_dir/$ac_word; then
2292       ac_cv_prog_RANLIB="ranlib"
2293       break
2294     fi
2295   done
2296   IFS="$ac_save_ifs"
2297   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2298 fi
2299 fi
2300 RANLIB="$ac_cv_prog_RANLIB"
2301 if test -n "$RANLIB"; then
2302   echo "$ac_t""$RANLIB" 1>&6
2303 else
2304   echo "$ac_t""no" 1>&6
2305 fi
2306
2307 else
2308   RANLIB=":"
2309 fi
2310 fi
2311
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   if test -n "$STRIP"; then
2320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2323   ac_dummy="$PATH"
2324   for ac_dir in $ac_dummy; do
2325     test -z "$ac_dir" && ac_dir=.
2326     if test -f $ac_dir/$ac_word; then
2327       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328       break
2329     fi
2330   done
2331   IFS="$ac_save_ifs"
2332 fi
2333 fi
2334 STRIP="$ac_cv_prog_STRIP"
2335 if test -n "$STRIP"; then
2336   echo "$ac_t""$STRIP" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 if test -n "$ac_tool_prefix"; then
2344   # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349   echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351   if test -n "$STRIP"; then
2352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2355   ac_dummy="$PATH"
2356   for ac_dir in $ac_dummy; do
2357     test -z "$ac_dir" && ac_dir=.
2358     if test -f $ac_dir/$ac_word; then
2359       ac_cv_prog_STRIP="strip"
2360       break
2361     fi
2362   done
2363   IFS="$ac_save_ifs"
2364   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2365 fi
2366 fi
2367 STRIP="$ac_cv_prog_STRIP"
2368 if test -n "$STRIP"; then
2369   echo "$ac_t""$STRIP" 1>&6
2370 else
2371   echo "$ac_t""no" 1>&6
2372 fi
2373
2374 else
2375   STRIP=":"
2376 fi
2377 fi
2378
2379
2380 # Check for any special flags to pass to ltconfig.
2381 libtool_flags="--cache-file=$cache_file"
2382 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2383 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2384 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2385 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2386 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2387 libtool_flags="$libtool_flags --enable-dlopen"
2388
2389 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2390 if test "${enable_libtool_lock+set}" = set; then
2391   enableval="$enable_libtool_lock"
2392   :
2393 fi
2394
2395 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2396 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2397
2398 # Check whether --with-pic or --without-pic was given.
2399 if test "${with_pic+set}" = set; then
2400   withval="$with_pic"
2401   pic_mode="$withval"
2402 else
2403   pic_mode=default
2404 fi
2405
2406 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2407 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2408
2409 # Some flags need to be propagated to the compiler or linker for good
2410 # libtool support.
2411 case $host in
2412 *-*-irix6*)
2413   # Find out which ABI we are using.
2414   echo '#line 2415 "configure"' > conftest.$ac_ext
2415   if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416     case `/usr/bin/file conftest.$ac_objext` in
2417     *32-bit*)
2418       LD="${LD-ld} -32"
2419       ;;
2420     *N32*)
2421       LD="${LD-ld} -n32"
2422       ;;
2423     *64-bit*)
2424       LD="${LD-ld} -64"
2425       ;;
2426     esac
2427   fi
2428   rm -rf conftest*
2429   ;;
2430
2431 *-*-sco3.2v5*)
2432   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2433   SAVE_CFLAGS="$CFLAGS"
2434   CFLAGS="$CFLAGS -belf"
2435   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2436 echo "configure:2437: checking whether the C compiler needs -belf" >&5
2437 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2438   echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440   
2441      ac_ext=c
2442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2446 cross_compiling=$ac_cv_prog_cc_cross
2447
2448      cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451
2452 int main() {
2453
2454 ; return 0; }
2455 EOF
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2457   rm -rf conftest*
2458   lt_cv_cc_needs_belf=yes
2459 else
2460   echo "configure: failed program was:" >&5
2461   cat conftest.$ac_ext >&5
2462   rm -rf conftest*
2463   lt_cv_cc_needs_belf=no
2464 fi
2465 rm -f conftest*
2466      ac_ext=c
2467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2471 cross_compiling=$ac_cv_prog_cc_cross
2472
2473 fi
2474
2475 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2476   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2477     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2478     CFLAGS="$SAVE_CFLAGS"
2479   fi
2480   ;;
2481
2482
2483 esac
2484
2485 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2486 echo "configure:2487: checking how to run the C++ preprocessor" >&5
2487 if test -z "$CXXCPP"; then
2488 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2489   echo $ac_n "(cached) $ac_c" 1>&6
2490 else
2491   ac_ext=C
2492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CXXCPP $CPPFLAGS'
2494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cxx_cross
2497   CXXCPP="${CXX-g++} -E"
2498   cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <stdlib.h>
2502 EOF
2503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2504 { (eval echo configure:2505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2506 if test -z "$ac_err"; then
2507   :
2508 else
2509   echo "$ac_err" >&5
2510   echo "configure: failed program was:" >&5
2511   cat conftest.$ac_ext >&5
2512   rm -rf conftest*
2513   CXXCPP=/lib/cpp
2514 fi
2515 rm -f conftest*
2516   ac_cv_prog_CXXCPP="$CXXCPP"
2517 ac_ext=c
2518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling=$ac_cv_prog_cc_cross
2523 fi
2524 fi
2525 CXXCPP="$ac_cv_prog_CXXCPP"
2526 echo "$ac_t""$CXXCPP" 1>&6
2527
2528
2529 # Save cache, so that ltconfig can load it
2530 cat > confcache <<\EOF
2531 # This file is a shell script that caches the results of configure
2532 # tests run on this system so they can be shared between configure
2533 # scripts and configure runs.  It is not useful on other systems.
2534 # If it contains results you don't want to keep, you may remove or edit it.
2535 #
2536 # By default, configure uses ./config.cache as the cache file,
2537 # creating it if it does not exist already.  You can give configure
2538 # the --cache-file=FILE option to use a different cache file; that is
2539 # what configure does when it calls configure scripts in
2540 # subdirectories, so they share the cache.
2541 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2542 # config.status only pays attention to the cache file if you give it the
2543 # --recheck option to rerun configure.
2544 #
2545 EOF
2546 # The following way of writing the cache mishandles newlines in values,
2547 # but we know of no workaround that is simple, portable, and efficient.
2548 # So, don't put newlines in cache variables' values.
2549 # Ultrix sh set writes to stderr and can't be redirected directly,
2550 # and sets the high bit in the cache file unless we assign to the vars.
2551 (set) 2>&1 |
2552   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2553   *ac_space=\ *)
2554     # `set' does not quote correctly, so add quotes (double-quote substitution
2555     # turns \\\\ into \\, and sed turns \\ into \).
2556     sed -n \
2557       -e "s/'/'\\\\''/g" \
2558       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2559     ;;
2560   *)
2561     # `set' quotes correctly as required by POSIX, so do not add quotes.
2562     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2563     ;;
2564   esac >> confcache
2565 if cmp -s $cache_file confcache; then
2566   :
2567 else
2568   if test -w $cache_file; then
2569     echo "updating cache $cache_file"
2570     cat confcache > $cache_file
2571   else
2572     echo "not updating unwritable cache $cache_file"
2573   fi
2574 fi
2575 rm -f confcache
2576
2577
2578 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2579 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2580 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2581 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2582 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2583 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2584 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2585 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2586 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2587 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2588
2589 # Reload cache, that may have been modified by ltconfig
2590 if test -r "$cache_file"; then
2591   echo "loading cache $cache_file"
2592   . $cache_file
2593 else
2594   echo "creating cache $cache_file"
2595   > $cache_file
2596 fi
2597
2598
2599 # This can be used to rebuild libtool when needed
2600 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2601
2602 # Always use our own libtool.
2603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2604
2605 # Redirect the config.log output again, so that the ltconfig log is not
2606 # clobbered by the next message.
2607 exec 5>>./config.log
2608
2609
2610
2611 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2612 lt_save_CC="$CC"
2613 lt_save_CFLAGS="$CFLAGS"
2614 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2615 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2616 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2617 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2618 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2619 deplibs_check_method="$deplibs_check_method" \
2620 file_magic_cmd="$file_magic_cmd" \
2621 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2622 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2623 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2624 CC="$lt_save_CC"
2625 CFLAGS="$lt_save_CFLAGS"
2626
2627 # Redirect the config.log output again, so that the ltconfig log is not
2628 # clobbered by the next message.
2629 exec 5>>./config.log
2630
2631   
2632
2633   
2634          
2635          
2636
2637
2638
2639 # Check for c++ or library specific bits that don't require linking.
2640 #GLIBCPP_CHECK_COMPILER_VERSION
2641 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2642 echo "configure:2643: checking for GNU make" >&5
2643 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2644   echo $ac_n "(cached) $ac_c" 1>&6
2645 else
2646   _cv_gnu_make_command='' ;
2647           for a in "${MAKE-make}" make gmake gnumake ; do
2648                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2649                   then
2650                           _cv_gnu_make_command=$a ;
2651                           break;
2652                   fi
2653           done ;
2654   
2655 fi
2656
2657 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2658   if test  "x$_cv_gnu_make_command" != "x"  ; then
2659           ifGNUmake='' ;
2660   else
2661           ifGNUmake='#' ;
2662   fi
2663   
2664
2665
2666 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2667 # Check whether --enable-debug or --disable-debug was given.
2668 if test "${enable_debug+set}" = set; then
2669   enableval="$enable_debug"
2670   case "${enableval}" in
2671  yes) enable_debug=yes ;;
2672  no)  enable_debug=no ;;
2673  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2674  esac
2675 else
2676   enable_debug=no
2677 fi
2678
2679 case "${enable_debug}" in
2680     yes) 
2681         DEBUG_FLAGS='-O0 -ggdb3'                        
2682         ;; 
2683     no)   
2684         DEBUG_FLAGS='-g'
2685         ;;
2686 esac
2687
2688
2689 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2690 echo "configure:2691: checking how to run the C preprocessor" >&5
2691 # On Suns, sometimes $CPP names a directory.
2692 if test -n "$CPP" && test -d "$CPP"; then
2693   CPP=
2694 fi
2695 if test -z "$CPP"; then
2696 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2697   echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699     # This must be in double quotes, not single quotes, because CPP may get
2700   # substituted into the Makefile and "${CC-cc}" will confuse make.
2701   CPP="${CC-cc} -E"
2702   # On the NeXT, cc -E runs the code through the compiler's parser,
2703   # not just through cpp.
2704   cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <assert.h>
2708 Syntax Error
2709 EOF
2710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713 if test -z "$ac_err"; then
2714   :
2715 else
2716   echo "$ac_err" >&5
2717   echo "configure: failed program was:" >&5
2718   cat conftest.$ac_ext >&5
2719   rm -rf conftest*
2720   CPP="${CC-cc} -E -traditional-cpp"
2721   cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 #include <assert.h>
2725 Syntax Error
2726 EOF
2727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728 { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730 if test -z "$ac_err"; then
2731   :
2732 else
2733   echo "$ac_err" >&5
2734   echo "configure: failed program was:" >&5
2735   cat conftest.$ac_ext >&5
2736   rm -rf conftest*
2737   CPP="${CC-cc} -nologo -E"
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <assert.h>
2742 Syntax Error
2743 EOF
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748   :
2749 else
2750   echo "$ac_err" >&5
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   CPP=/lib/cpp
2755 fi
2756 rm -f conftest*
2757 fi
2758 rm -f conftest*
2759 fi
2760 rm -f conftest*
2761   ac_cv_prog_CPP="$CPP"
2762 fi
2763   CPP="$ac_cv_prog_CPP"
2764 else
2765   ac_cv_prog_CPP="$CPP"
2766 fi
2767 echo "$ac_t""$CPP" 1>&6
2768
2769
2770   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2771 echo "configure:2772: checking for cstdio to use" >&5
2772   # Check whether --enable-cstdio or --disable-cstdio was given.
2773 if test "${enable_cstdio+set}" = set; then
2774   enableval="$enable_cstdio"
2775   if test x$enable_cstdio = xno; then
2776      enable_cstdio=stdio
2777   fi
2778 else
2779   enable_cstdio=stdio
2780 fi
2781
2782
2783   enable_cstdio_flag=$enable_cstdio
2784
2785     case x${enable_cstdio_flag} in
2786     xlibio)
2787       CSTDIO_H=config/io/c_io_libio.h
2788       BASIC_FILE_H=config/io/basic_file_libio.h
2789       BASIC_FILE_CC=config/io/basic_file_libio.cc
2790       echo "$ac_t""libio" 1>&6
2791
2792       # see if we are on a system with libio native (ie, linux)
2793       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2794 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2795 echo "configure:2796: checking for libio.h" >&5
2796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2797   echo $ac_n "(cached) $ac_c" 1>&6
2798 else
2799   cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <libio.h>
2803 EOF
2804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2805 { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2807 if test -z "$ac_err"; then
2808   rm -rf conftest*
2809   eval "ac_cv_header_$ac_safe=yes"
2810 else
2811   echo "$ac_err" >&5
2812   echo "configure: failed program was:" >&5
2813   cat conftest.$ac_ext >&5
2814   rm -rf conftest*
2815   eval "ac_cv_header_$ac_safe=no"
2816 fi
2817 rm -f conftest*
2818 fi
2819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2820   echo "$ac_t""yes" 1>&6
2821   has_libio=yes
2822 else
2823   echo "$ac_t""no" 1>&6
2824 has_libio=no
2825 fi
2826
2827
2828       # Need to check and see what version of glibc is being used. If
2829       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2830       # compile most of libio for linux systems.
2831       if test x$has_libio = x"yes"; then
2832         case "$target" in
2833           *-*-linux*)
2834               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2835 echo "configure:2836: checking for glibc version >= 2.2" >&5
2836               cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839
2840             #include <features.h>
2841               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2842                     ok
2843               #endif
2844               
2845 EOF
2846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2847   egrep "ok" >/dev/null 2>&1; then
2848   rm -rf conftest*
2849   glibc_satisfactory=yes
2850 else
2851   rm -rf conftest*
2852   glibc_satisfactory=no
2853 fi
2854 rm -f conftest*
2855
2856               echo "$ac_t""$glibc_satisfactory" 1>&6
2857             ;;
2858         esac
2859
2860         # XXX at the moment, admit defeat and force the recompilation
2861         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2862         glibc_satisfactory=no        
2863
2864         if test x$glibc_satisfactory = x"yes"; then
2865            need_libio=no
2866            need_wlibio=no        
2867         else
2868            need_libio=yes
2869            # bkoz XXX need to add checks to enable this
2870            # pme XXX here's a first pass at such a check
2871            if test x$enable_c_mbchar != xno; then
2872               need_wlibio=yes
2873            else
2874               need_wlibio=no
2875            fi
2876         fi
2877
2878       else
2879          # Using libio, but <libio.h> doesn't exist on the target system. . .
2880          need_libio=yes
2881          # bkoz XXX need to add checks to enable this
2882          # pme XXX here's a first pass at such a check
2883          if test x$enable_c_mbchar != xno; then
2884              need_wlibio=yes
2885          else
2886              need_wlibio=no
2887          fi
2888       fi
2889       ;;
2890     xstdio | x | xno | xnone | xyes)
2891       # default
2892       CSTDIO_H=config/io/c_io_stdio.h
2893       BASIC_FILE_H=config/io/basic_file_stdio.h
2894       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2895       echo "$ac_t""stdio" 1>&6
2896
2897       # We're not using stdio.
2898       need_libio=no
2899       need_wlibio=no
2900       ;;
2901     *)
2902       echo "$enable_cstdio is an unknown io package" 1>&2
2903       exit 1
2904       ;;
2905   esac
2906   
2907   
2908   
2909
2910   # 2000-08-04 bkoz hack
2911   CCODECVT_C=config/io/c_io_libio_codecvt.c
2912   
2913   # 2000-08-04 bkoz hack
2914
2915   
2916
2917 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2918   GLIBCPP_BUILD_LIBIO_TRUE=
2919   GLIBCPP_BUILD_LIBIO_FALSE='#'
2920 else
2921   GLIBCPP_BUILD_LIBIO_TRUE='#'
2922   GLIBCPP_BUILD_LIBIO_FALSE=
2923 fi
2924   
2925
2926 if test "$need_libio" = yes; then
2927   GLIBCPP_NEED_LIBIO_TRUE=
2928   GLIBCPP_NEED_LIBIO_FALSE='#'
2929 else
2930   GLIBCPP_NEED_LIBIO_TRUE='#'
2931   GLIBCPP_NEED_LIBIO_FALSE=
2932 fi
2933   
2934
2935 if test "$need_wlibio" = yes; then
2936   GLIBCPP_NEED_WLIBIO_TRUE=
2937   GLIBCPP_NEED_WLIBIO_FALSE='#'
2938 else
2939   GLIBCPP_NEED_WLIBIO_TRUE='#'
2940   GLIBCPP_NEED_WLIBIO_FALSE=
2941 fi
2942   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2943     libio_la=../libio/libio.la
2944   else
2945     libio_la=
2946   fi
2947   
2948
2949
2950   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2951 echo "configure:2952: checking for clocale to use" >&5
2952   # Check whether --enable-clocale or --disable-clocale was given.
2953 if test "${enable_clocale+set}" = set; then
2954   enableval="$enable_clocale"
2955   if test x$enable_clocale = xno; then
2956      enable_clocale=no
2957   fi
2958 else
2959   enable_clocale=no
2960 fi
2961
2962
2963   enable_clocale_flag=$enable_clocale
2964
2965       if test x$enable_clocale_flag = xno; then
2966     case x${target_os} in
2967       xlinux* | xgnu*)
2968         cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971
2972         #include <features.h>
2973         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2974           _GLIBCPP_ok
2975         #endif
2976         
2977 EOF
2978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2979   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2980   rm -rf conftest*
2981   enable_clocale_flag=gnu
2982 else
2983   rm -rf conftest*
2984   enable_clocale_flag=generic
2985 fi
2986 rm -f conftest*
2987
2988
2989         # Test for bugs early in glibc-2.2.x series
2990         if test x$enable_clocale_flag = xgnu; then
2991           if test "$cross_compiling" = yes; then
2992   enable_clocale_flag=generic
2993 else
2994   cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997
2998           #define _GNU_SOURCE 1
2999           #include <locale.h>
3000           int main()
3001           {
3002             const char __one[] = "Äuglein Augmen";
3003             const char __two[] = "Äuglein";
3004             int i;
3005             int j;
3006             __locale_t  loc;
3007             __locale_t  loc_dup;
3008             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3009             loc_dup = __duplocale(loc);
3010             i = __strcoll_l(__one, __two, loc);
3011             j = __strcoll_l(__one, __two, loc_dup);
3012             return 0;
3013           }
3014           
3015 EOF
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3017 then
3018   enable_clocale_flag=gnu
3019 else
3020   echo "configure: failed program was:" >&5
3021   cat conftest.$ac_ext >&5
3022   rm -fr conftest*
3023   enable_clocale_flag=generic
3024 fi
3025 rm -fr conftest*
3026 fi
3027
3028         fi
3029
3030         # ... at some point put __strxfrm_l tests in as well.
3031         ;;
3032       *)
3033         enable_clocale_flag=generic
3034         ;;
3035     esac
3036   fi
3037
3038     case x${enable_clocale_flag} in
3039     xgeneric)
3040       echo "$ac_t""generic" 1>&6
3041
3042       # Don't use gettext.
3043       USE_NLS=no
3044
3045       CLOCALE_H=config/locale/c_locale_generic.h
3046       CLOCALE_CC=config/locale/c_locale_generic.cc
3047       CCODECVT_H=config/locale/codecvt_specializations_generic.h
3048       CCOLLATE_CC=config/locale/collate_members_generic.cc
3049       CCTYPE_CC=config/locale/ctype_members_generic.cc
3050       CMESSAGES_H=config/locale/messages_members_generic.h
3051       CMESSAGES_CC=config/locale/messages_members_generic.cc
3052       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3053       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3054       CTIME_CC=config/locale/time_members_generic.cc
3055       ;;
3056     xgnu)
3057       echo "$ac_t""gnu" 1>&6
3058
3059       # Declare intention to use gettext, and add support for specific
3060       # languages.
3061       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3062       ALL_LINGUAS="de fr"
3063       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3064       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3065       USE_NLS=yes
3066
3067       # Export the build objects.
3068       for ling in $ALL_LINGUAS; do \
3069         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3070         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3071       done
3072       
3073       
3074
3075       CLOCALE_H=config/locale/c_locale_gnu.h
3076       CLOCALE_CC=config/locale/c_locale_gnu.cc
3077       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3078       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3079       CCTYPE_CC=config/locale/ctype_members_gnu.cc
3080       CMESSAGES_H=config/locale/messages_members_gnu.h
3081       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3082       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3083       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3084       CTIME_CC=config/locale/time_members_gnu.cc
3085       ;;
3086     xieee_1003.1)
3087       echo "$ac_t""generic" 1>&6
3088
3089       # Don't use gettext.
3090       USE_NLS=no
3091
3092       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3093       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3094       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3095       CCOLLATE_CC=config/locale/collate_members_generic.cc
3096       CCTYPE_CC=config/locale/ctype_members_generic.cc
3097       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3098       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3099       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3100       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3101       CTIME_CC=config/locale/time_members_generic.cc
3102       ;;
3103     *)
3104       echo "$enable_clocale is an unknown locale package" 1>&2
3105       exit 1
3106       ;;
3107   esac
3108
3109   # This is where the testsuite looks for locale catalogs, using the
3110   # -DLOCALEDIR define during testsuite compilation.
3111   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3112   
3113
3114   
3115   
3116   
3117   
3118   
3119   
3120   
3121   
3122   
3123   
3124   
3125
3126 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3127 if test "${enable_c_mbchar+set}" = set; then
3128   enableval="$enable_c_mbchar"
3129   case "$enableval" in
3130  yes) enable_c_mbchar=yes ;;
3131  no)  enable_c_mbchar=no ;;
3132  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3133  esac
3134 else
3135   enable_c_mbchar=yes
3136 fi
3137
3138   
3139   # Check whether --enable-c99 or --disable-c99 was given.
3140 if test "${enable_c99+set}" = set; then
3141   enableval="$enable_c99"
3142     case "$enableval" in
3143    yes) enable_c99=yes ;;
3144    no)  enable_c99=no ;;
3145    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3146    esac
3147 else
3148   enable_c99=yes
3149 fi
3150  
3151   
3152   ac_ext=C
3153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3154 ac_cpp='$CXXCPP $CPPFLAGS'
3155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3157 cross_compiling=$ac_cv_prog_cxx_cross
3158
3159
3160   # Check for the existence of <math.h> functions used if C99 is enabled.
3161   ac_c99_math=yes;
3162   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3163 echo "configure:3164: checking for ISO C99 support in <math.h>" >&5
3164   cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <math.h>
3168 int main() {
3169 fpclassify(0.0);
3170 ; return 0; }
3171 EOF
3172 if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173   :
3174 else
3175   echo "configure: failed program was:" >&5
3176   cat conftest.$ac_ext >&5
3177   rm -rf conftest*
3178   ac_c99_math=no
3179 fi
3180 rm -f conftest*
3181   cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 #include <math.h>
3185 int main() {
3186 isfinite(0.0);
3187 ; return 0; }
3188 EOF
3189 if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190   :
3191 else
3192   echo "configure: failed program was:" >&5
3193   cat conftest.$ac_ext >&5
3194   rm -rf conftest*
3195   ac_c99_math=no
3196 fi
3197 rm -f conftest*
3198   cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <math.h>
3202 int main() {
3203 isinf(0.0);
3204 ; return 0; }
3205 EOF
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207   :
3208 else
3209   echo "configure: failed program was:" >&5
3210   cat conftest.$ac_ext >&5
3211   rm -rf conftest*
3212   ac_c99_math=no
3213 fi
3214 rm -f conftest*
3215   cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <math.h>
3219 int main() {
3220 isnan(0.0);
3221 ; return 0; }
3222 EOF
3223 if { (eval echo configure:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224   :
3225 else
3226   echo "configure: failed program was:" >&5
3227   cat conftest.$ac_ext >&5
3228   rm -rf conftest*
3229   ac_c99_math=no
3230 fi
3231 rm -f conftest*
3232   cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <math.h>
3236 int main() {
3237 isnormal(0.0);
3238 ; return 0; }
3239 EOF
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241   :
3242 else
3243   echo "configure: failed program was:" >&5
3244   cat conftest.$ac_ext >&5
3245   rm -rf conftest*
3246   ac_c99_math=no
3247 fi
3248 rm -f conftest*
3249   cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #include <math.h>
3253 int main() {
3254 signbit(0.0);
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258   :
3259 else
3260   echo "configure: failed program was:" >&5
3261   cat conftest.$ac_ext >&5
3262   rm -rf conftest*
3263   ac_c99_math=no
3264 fi
3265 rm -f conftest*
3266   cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <math.h>
3270 int main() {
3271 isgreater(0.0,0.0);
3272 ; return 0; }
3273 EOF
3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275   :
3276 else
3277   echo "configure: failed program was:" >&5
3278   cat conftest.$ac_ext >&5
3279   rm -rf conftest*
3280   ac_c99_math=no
3281 fi
3282 rm -f conftest*
3283   cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include <math.h>
3287 int main() {
3288 isgreaterequal(0.0,0.0);
3289 ; return 0; }
3290 EOF
3291 if { (eval echo configure:3292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292   :
3293 else
3294   echo "configure: failed program was:" >&5
3295   cat conftest.$ac_ext >&5
3296   rm -rf conftest*
3297   ac_c99_math=no
3298 fi
3299 rm -f conftest*
3300   cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <math.h>
3304 int main() {
3305 isless(0.0,0.0);
3306 ; return 0; }
3307 EOF
3308 if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3309   :
3310 else
3311   echo "configure: failed program was:" >&5
3312   cat conftest.$ac_ext >&5
3313   rm -rf conftest*
3314   ac_c99_math=no
3315 fi
3316 rm -f conftest*
3317   cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <math.h>
3321 int main() {
3322 islessequal(0.0,0.0);
3323 ; return 0; }
3324 EOF
3325 if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326   :
3327 else
3328   echo "configure: failed program was:" >&5
3329   cat conftest.$ac_ext >&5
3330   rm -rf conftest*
3331   ac_c99_math=no
3332 fi
3333 rm -f conftest*
3334   cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 #include <math.h>
3338 int main() {
3339 islessgreater(0.0,0.0);
3340 ; return 0; }
3341 EOF
3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343   :
3344 else
3345   echo "configure: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   rm -rf conftest*
3348   ac_c99_math=no
3349 fi
3350 rm -f conftest*
3351   cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 #include <math.h>
3355 int main() {
3356 isunordered(0.0,0.0);
3357 ; return 0; }
3358 EOF
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360   :
3361 else
3362   echo "configure: failed program was:" >&5
3363   cat conftest.$ac_ext >&5
3364   rm -rf conftest*
3365   ac_c99_math=no
3366 fi
3367 rm -f conftest*
3368   echo "$ac_t""$ac_c99_math" 1>&6
3369
3370   # Check for the existence in <stdio.h> of vscanf, et. al.
3371   ac_c99_stdio=yes;
3372   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3373 echo "configure:3374: checking for ISO C99 support in <stdio.h>" >&5
3374   cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <stdio.h>
3378 int main() {
3379 snprintf("12", 0, "%i");
3380 ; return 0; }
3381 EOF
3382 if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383   :
3384 else
3385   echo "configure: failed program was:" >&5
3386   cat conftest.$ac_ext >&5
3387   rm -rf conftest*
3388   ac_c99_stdio=no
3389 fi
3390 rm -f conftest*
3391   cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <stdio.h>
3395                   #include <stdarg.h>
3396                   void foo(char* fmt, ...)
3397                   {va_list args; va_start(args, fmt);
3398                   vfscanf(stderr, "%i", args);}
3399 int main() {
3400
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404   :
3405 else
3406   echo "configure: failed program was:" >&5
3407   cat conftest.$ac_ext >&5
3408   rm -rf conftest*
3409   ac_c99_stdio=no
3410 fi
3411 rm -f conftest*
3412   cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <stdio.h>
3416                   #include <stdarg.h>
3417                   void foo(char* fmt, ...)
3418                   {va_list args; va_start(args, fmt);
3419                   vscanf("%i", args);}
3420 int main() {
3421
3422 ; return 0; }
3423 EOF
3424 if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425   :
3426 else
3427   echo "configure: failed program was:" >&5
3428   cat conftest.$ac_ext >&5
3429   rm -rf conftest*
3430   ac_c99_stdio=no
3431 fi
3432 rm -f conftest*
3433   cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <stdio.h>
3437                   #include <stdarg.h>
3438                   void foo(char* fmt, ...)
3439                   {va_list args; va_start(args, fmt);
3440                   vsnprintf(fmt, 0, "%i", args);}
3441 int main() {
3442
3443 ; return 0; }
3444 EOF
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446   :
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   ac_c99_stdio=no
3452 fi
3453 rm -f conftest*
3454   cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <stdio.h>
3458                   #include <stdarg.h>
3459                   void foo(char* fmt, ...)
3460                   {va_list args; va_start(args, fmt);
3461                   vsscanf(fmt, "%i", args);}
3462 int main() {
3463
3464 ; return 0; }
3465 EOF
3466 if { (eval echo configure:3467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3467   :
3468 else
3469   echo "configure: failed program was:" >&5
3470   cat conftest.$ac_ext >&5
3471   rm -rf conftest*
3472   ac_c99_stdio=no
3473 fi
3474 rm -f conftest*
3475   echo "$ac_t""$ac_c99_stdio" 1>&6
3476
3477   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3478   ac_c99_stdlib=yes;
3479   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3480 echo "configure:3481: checking for lldiv_t declaration" >&5
3481   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3482   echo $ac_n "(cached) $ac_c" 1>&6
3483 else
3484   
3485   cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <stdlib.h>
3489 int main() {
3490  lldiv_t mydivt;
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494   rm -rf conftest*
3495   ac_c99_lldiv_t=yes
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_lldiv_t=no
3501 fi
3502 rm -f conftest*
3503   
3504 fi
3505
3506   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3507
3508   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3509 echo "configure:3510: checking for ISO C99 support in <stdlib.h>" >&5
3510   cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <stdlib.h>
3514 int main() {
3515 char* tmp; strtof("gnu", &tmp);
3516 ; return 0; }
3517 EOF
3518 if { (eval echo configure:3519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3519   :
3520 else
3521   echo "configure: failed program was:" >&5
3522   cat conftest.$ac_ext >&5
3523   rm -rf conftest*
3524   ac_c99_stdlib=no
3525 fi
3526 rm -f conftest*
3527   cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <stdlib.h>
3531 int main() {
3532 char* tmp; strtold("gnu", &tmp);
3533 ; return 0; }
3534 EOF
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536   :
3537 else
3538   echo "configure: failed program was:" >&5
3539   cat conftest.$ac_ext >&5
3540   rm -rf conftest*
3541   ac_c99_stdlib=no
3542 fi
3543 rm -f conftest*
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdlib.h>
3548 int main() {
3549 llabs(10);
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   :
3554 else
3555   echo "configure: failed program was:" >&5
3556   cat conftest.$ac_ext >&5
3557   rm -rf conftest*
3558   ac_c99_stdlib=no
3559 fi
3560 rm -f conftest*
3561   cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <stdlib.h>
3565 int main() {
3566 lldiv(10,1);
3567 ; return 0; }
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570   :
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -rf conftest*
3575   ac_c99_stdlib=no
3576 fi
3577 rm -f conftest*
3578   cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <stdlib.h>
3582 int main() {
3583 atoll("10");
3584 ; return 0; }
3585 EOF
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587   :
3588 else
3589   echo "configure: failed program was:" >&5
3590   cat conftest.$ac_ext >&5
3591   rm -rf conftest*
3592   ac_c99_stdlib=no
3593 fi
3594 rm -f conftest*
3595   cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <stdlib.h>
3599 int main() {
3600 _Exit(0);
3601 ; return 0; }
3602 EOF
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604   :
3605 else
3606   echo "configure: failed program was:" >&5
3607   cat conftest.$ac_ext >&5
3608   rm -rf conftest*
3609   ac_c99_stdlib=no
3610 fi
3611 rm -f conftest*
3612   if test x"$ac_c99_lldiv_t" = x"no"; then
3613     ac_c99_stdlib=no; 
3614   fi; 
3615   echo "$ac_t""$ac_c99_stdlib" 1>&6
3616
3617   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3618   # XXX the wchar.h checks should be rolled into the general C99 bits.
3619   ac_c99_wchar=yes;
3620   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3621 echo "configure:3622: checking for additional ISO C99 support in <wchar.h>" >&5
3622   cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <wchar.h>
3626 int main() {
3627 wcstold(L"10.0", NULL);
3628 ; return 0; }
3629 EOF
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631   :
3632 else
3633   echo "configure: failed program was:" >&5
3634   cat conftest.$ac_ext >&5
3635   rm -rf conftest*
3636   ac_c99_wchar=no
3637 fi
3638 rm -f conftest*
3639   cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <wchar.h>
3643 int main() {
3644 wcstoll(L"10", NULL, 10);
3645 ; return 0; }
3646 EOF
3647 if { (eval echo configure:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648   :
3649 else
3650   echo "configure: failed program was:" >&5
3651   cat conftest.$ac_ext >&5
3652   rm -rf conftest*
3653   ac_c99_wchar=no
3654 fi
3655 rm -f conftest*
3656   cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <wchar.h>
3660 int main() {
3661 wcstoull(L"10", NULL, 10);
3662 ; return 0; }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665   :
3666 else
3667   echo "configure: failed program was:" >&5
3668   cat conftest.$ac_ext >&5
3669   rm -rf conftest*
3670   ac_c99_wchar=no
3671 fi
3672 rm -f conftest*
3673   echo "$ac_t""$ac_c99_wchar" 1>&6
3674
3675   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3676 echo "configure:3677: checking for enabled ISO C99 support" >&5
3677   if test x"$ac_c99_math" = x"no" ||
3678      test x"$ac_c99_stdio" = x"no" ||
3679      test x"$ac_c99_stdlib" = x"no" ||
3680      test x"$ac_c99_wchar" = x"no"; then
3681     enable_c99=no; 
3682   fi; 
3683   echo "$ac_t""$enable_c99" 1>&6
3684
3685   # Option parsed, now set things appropriately
3686   if test x"$enable_c99" = x"yes"; then
3687     cat >> confdefs.h <<\EOF
3688 #define _GLIBCPP_USE_C99 1
3689 EOF
3690
3691   fi
3692
3693   ac_ext=c
3694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3698 cross_compiling=$ac_cv_prog_cc_cross
3699
3700
3701   
3702   # Check whether --enable-long-long or --disable-long-long was given.
3703 if test "${enable_long_long+set}" = set; then
3704   enableval="$enable_long_long"
3705     case "$enableval" in
3706    yes) enable_long_long=yes ;;
3707    no)  enable_long_long=no ;;
3708    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3709    esac
3710 else
3711   enable_long_long=yes
3712 fi
3713
3714   
3715   ac_ext=C
3716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3717 ac_cpp='$CXXCPP $CPPFLAGS'
3718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3720 cross_compiling=$ac_cv_prog_cxx_cross
3721
3722
3723   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3724 echo "configure:3725: checking for enabled long long I/O support" >&5
3725   # iostreams require strtoll, strtoull to compile
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <stdlib.h>
3730 int main() {
3731 char* tmp; strtoll("gnu", &tmp, 10);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   enable_long_long=no
3741 fi
3742 rm -f conftest*
3743   cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <stdlib.h>
3747 int main() {
3748 char* tmp; strtoull("gnu", &tmp, 10);
3749 ; return 0; }
3750 EOF
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752   :
3753 else
3754   echo "configure: failed program was:" >&5
3755   cat conftest.$ac_ext >&5
3756   rm -rf conftest*
3757   enable_long_long=no
3758 fi
3759 rm -f conftest*
3760
3761   # Option parsed, now set things appropriately
3762   if test x"$enable_long_long" = xyes; then
3763     cat >> confdefs.h <<\EOF
3764 #define _GLIBCPP_USE_LONG_LONG 1
3765 EOF
3766
3767   fi
3768   echo "$ac_t""$enable_long_long" 1>&6
3769
3770   ac_ext=c
3771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3775 cross_compiling=$ac_cv_prog_cc_cross
3776
3777
3778 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3779 echo "configure:3780: checking for c header strategy to use" >&5
3780 # Check whether --enable-cheaders or --disable-cheaders was given.
3781 if test "${enable_cheaders+set}" = set; then
3782   enableval="$enable_cheaders"
3783   
3784   case "$enableval" in
3785    c) 
3786         enable_cheaders=c 
3787         ;;
3788    c_std)  
3789         enable_cheaders=c_std 
3790         ;;
3791    c_shadow)  
3792         enable_cheaders=c_shadow 
3793         ;;
3794    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3795         ;;
3796   esac
3797 else
3798   enable_cheaders=c_std
3799 fi
3800
3801   echo "$ac_t""$enable_cheaders" 1>&6
3802
3803     case "$enable_cheaders" in
3804     c_shadow) 
3805         CSHADOW_FLAGS="-fno-builtin"
3806         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3807         cat >> confdefs.h <<\EOF
3808 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3809 EOF
3810
3811         ;;
3812     c_std)   
3813         CSHADOW_FLAGS=""
3814         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3815         ;;
3816     c)   
3817         CSHADOW_FLAGS=""
3818         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3819         ;;
3820   esac
3821
3822   
3823   
3824   
3825
3826 if test "$enable_cheaders" = c_shadow; then
3827   GLIBCPP_USE_CSHADOW_TRUE=
3828   GLIBCPP_USE_CSHADOW_FALSE='#'
3829 else
3830   GLIBCPP_USE_CSHADOW_TRUE='#'
3831   GLIBCPP_USE_CSHADOW_FALSE=
3832 fi
3833
3834
3835   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3836 echo "configure:3837: checking for thread model used by GCC" >&5
3837   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3838   echo "$ac_t""$target_thread_file" 1>&6
3839
3840   if test $target_thread_file != single; then
3841     cat >> confdefs.h <<\EOF
3842 #define HAVE_GTHR_DEFAULT 1
3843 EOF
3844
3845     cat >> confdefs.h <<\EOF
3846 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3847 EOF
3848
3849   fi
3850
3851   glibcpp_thread_h=gthr-$target_thread_file.h
3852   
3853
3854 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3855 if test "${enable_cxx_flags+set}" = set; then
3856   enableval="$enable_cxx_flags"
3857   case "x$enableval" in
3858  xyes)   
3859         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3860  xno|x)  
3861         enable_cxx_flags='' ;;
3862  *)      
3863         enable_cxx_flags="$enableval" ;;
3864  esac
3865 else
3866   enable_cxx_flags='none'
3867 fi
3868
3869
3870 if test "$enable_cxx_flags" = "none"; then 
3871   enable_cxx_flags=''; 
3872 fi
3873
3874 if test -n "$enable_cxx_flags"; then
3875     for f in $enable_cxx_flags; do
3876         case "$f" in
3877             -fhonor-std)  ;;
3878             -*)  ;;
3879             *)   # and we're trying to pass /what/ exactly?
3880                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3881         esac
3882     done
3883 fi
3884 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3885
3886
3887
3888   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3889 echo "configure:3890: checking for exception model to use" >&5
3890   
3891   ac_ext=C
3892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3893 ac_cpp='$CXXCPP $CPPFLAGS'
3894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3896 cross_compiling=$ac_cv_prog_cxx_cross
3897
3898   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3899 if test "${enable_sjlj_exceptions+set}" = set; then
3900   enableval="$enable_sjlj_exceptions"
3901   :
3902 else
3903                        cat > conftest.$ac_ext << EOF
3904 #line 3905 "configure"
3905 struct S { ~S(); };
3906 void bar();
3907 void foo()
3908 {
3909   S s;
3910   bar();
3911 }
3912 EOF
3913    old_CXXFLAGS="$CXXFLAGS"  
3914    CXXFLAGS=-S
3915    if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3916      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3917        enable_sjlj_exceptions=yes
3918      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3919        enable_sjlj_exceptions=no
3920      fi
3921    fi
3922    CXXFLAGS="$old_CXXFLAGS"
3923    rm -f conftest*
3924 fi
3925
3926    if test x$enable_sjlj_exceptions = xyes; then
3927      cat >> confdefs.h <<\EOF
3928 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3929 EOF
3930
3931      ac_exception_model_name=sjlj
3932    elif test x$enable_sjlj_exceptions = xno; then
3933      ac_exception_model_name="call frame"
3934    else
3935      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3936    fi
3937    ac_ext=c
3938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3942 cross_compiling=$ac_cv_prog_cc_cross
3943
3944    echo "$ac_t""$ac_exception_model_name" 1>&6
3945
3946 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3947 if test "${enable_concept_checks+set}" = set; then
3948   enableval="$enable_concept_checks"
3949   case "$enableval" in
3950  yes) enable_concept_checks=yes ;;
3951  no)  enable_concept_checks=no ;;
3952  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3953  esac
3954 else
3955   enable_concept_checks=no
3956 fi
3957 if test x"$enable_concept_checks" = xyes; then
3958   cat >> confdefs.h <<\EOF
3959 #define _GLIBCPP_CONCEPT_CHECKS 1
3960 EOF
3961
3962 fi
3963
3964
3965 # Check whether --enable-symvers or --disable-symvers was given.
3966 if test "${enable_symvers+set}" = set; then
3967   enableval="$enable_symvers"
3968   case "$enableval" in
3969  yes) enable_symvers=yes ;;
3970  no)  enable_symvers=no ;;
3971  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
3972  esac
3973 else
3974   enable_symvers=no
3975 fi
3976 echo $ac_n "checking whether to version shared lib symbols""... $ac_c" 1>&6
3977 echo "configure:3978: checking whether to version shared lib symbols" >&5
3978 if test $enable_shared = no; then
3979   enable_symvers=irrelevant
3980 fi
3981 # placeholder -- maybe have a fallback later
3982 LINKER_MAP=config/linker-map.gnu
3983 # symvers variable may evolve into holding the type of linker map someday
3984 if test $enable_symvers = yes; then
3985   # flat-out assume a whole bunch of things right now
3986   #
3987   # The name of this variable changed between autoconf versions (our problem
3988   # for depending on an impl detail, tsk tsk).  It used to be
3989   # ac_cv_prog_gnu_ld but is now lt_cv_prog_gnu_ld, and is copied back into
3990   # with_gnu_ld which can also be user-settable.  Let's use that one.
3991   if test $with_gnu_ld = yes; then
3992     # we also assume that the gnu ld in question has phil's patches... can't
3993     # think today of an easy way to programatically test for that; revisit
3994     LINKER_MAP=config/linker-map.gnu
3995   else
3996     # placeholder -- maybe have a fallback later
3997     LINKER_MAP=config/linker-map.gnu
3998     enable_symvers=no
3999   fi
4000 fi
4001
4002
4003
4004 if test "$enable_symvers" = yes; then
4005   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
4006   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
4007 else
4008   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
4009   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
4010 fi
4011 echo "$ac_t""$enable_symvers" 1>&6
4012
4013
4014
4015 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4016
4017   # This lets us hard-code the functionality we know
4018   # we'll have in the cross target environment. "Let" is a
4019   # sugar-coated word placed on an especially dull and tedious hack, actually.
4020   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4021   # that involve linking can't be used:
4022   # "cannot open sim-crt0.o"
4023   # "cannot open crt0.o"
4024   # etc. All this is because there currently exists no unified,
4025   # consistent way for top level CC information to be passed down
4026   # to target directories: newlib includes, newlib linking info,
4027   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4028   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4029
4030   # We are being configured with some form of cross compiler.
4031   GLIBCPP_IS_CROSS_COMPILING=1
4032
4033   # If Canadian cross, then don't pick up tools from the build
4034   # directory.
4035   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4036     CANADIAN=yes
4037   else
4038     CANADIAN=no
4039   fi
4040
4041   # Construct crosses by hand, eliminating bits that need ld...
4042   # GLIBCPP_CHECK_COMPILER_FEATURES
4043   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4044   # GLIBCPP_CHECK_MATH_SUPPORT
4045
4046   case "$target_alias" in
4047     *-linux*)
4048       # Check for available headers.
4049       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4050         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4051         fp.h locale.h float.h inttypes.h
4052 do
4053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4055 echo "configure:4056: checking for $ac_hdr" >&5
4056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4057   echo $ac_n "(cached) $ac_c" 1>&6
4058 else
4059   cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <$ac_hdr>
4063 EOF
4064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4065 { (eval echo configure:4066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4067 if test -z "$ac_err"; then
4068   rm -rf conftest*
4069   eval "ac_cv_header_$ac_safe=yes"
4070 else
4071   echo "$ac_err" >&5
4072   echo "configure: failed program was:" >&5
4073   cat conftest.$ac_ext >&5
4074   rm -rf conftest*
4075   eval "ac_cv_header_$ac_safe=no"
4076 fi
4077 rm -f conftest*
4078 fi
4079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4080   echo "$ac_t""yes" 1>&6
4081     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4082   cat >> confdefs.h <<EOF
4083 #define $ac_tr_hdr 1
4084 EOF
4085  
4086 else
4087   echo "$ac_t""no" 1>&6
4088 fi
4089 done
4090
4091       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4092       
4093       
4094   # If we're not using GNU ld, then there's no point in even trying these
4095   # tests.  Check for that first.  We should have already tested for gld
4096   # by now (in libtool), but require it now just to be safe...
4097   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4098   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4099   
4100
4101   # Set --gc-sections.
4102   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4103     # GNU ld it is!  Joy and bunny rabbits!
4104
4105     # All these tests are for C++; save the language and the compiler flags.
4106     # Need to do this so that g++ won't try to link in libstdc++
4107     ac_test_CFLAGS="${CFLAGS+set}"
4108     ac_save_CFLAGS="$CFLAGS"
4109     CFLAGS='-x c++  -Wl,--gc-sections'
4110
4111     # Check for -Wl,--gc-sections
4112     # XXX This test is broken at the moment, as symbols required for
4113     # linking are now in libsupc++ (not built yet.....). In addition, 
4114     # this test has cored on solaris in the past. In addition,
4115     # --gc-sections doesn't really work at the moment (keeps on discarding
4116     # used sections, first .eh_frame and now some of the glibc sections for
4117     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4118     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4119 echo "configure:4120: checking for ld that supports -Wl,--gc-sections" >&5
4120     if test "$cross_compiling" = yes; then
4121   ac_sectionLDflags=yes
4122 else
4123   cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126
4127      int main(void) 
4128      {
4129        try { throw 1; }
4130        catch (...) { };
4131        return 0;
4132      }
4133     
4134 EOF
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4136 then
4137   ac_sectionLDflags=yes
4138 else
4139   echo "configure: failed program was:" >&5
4140   cat conftest.$ac_ext >&5
4141   rm -fr conftest*
4142   ac_sectionLDflags=no
4143 fi
4144 rm -fr conftest*
4145 fi
4146
4147     if test "$ac_test_CFLAGS" = set; then
4148       CFLAGS="$ac_save_CFLAGS"
4149     else
4150       # this is the suspicious part
4151       CFLAGS=''
4152     fi
4153     if test "$ac_sectionLDflags" = "yes"; then
4154       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4155     fi
4156     echo "$ac_t""$ac_sectionLDflags" 1>&6
4157   fi
4158
4159   # Set linker optimization flags.
4160   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4161      test x"$enable_debug" = x"no"; then
4162     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4163   fi
4164
4165   
4166   
4167
4168       
4169     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4170 echo "configure:4171: checking for main in -lm" >&5
4171 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4173   echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175   ac_save_LIBS="$LIBS"
4176 LIBS="-lm  $LIBS"
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180
4181 int main() {
4182 main()
4183 ; return 0; }
4184 EOF
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186   rm -rf conftest*
4187   eval "ac_cv_lib_$ac_lib_var=yes"
4188 else
4189   echo "configure: failed program was:" >&5
4190   cat conftest.$ac_ext >&5
4191   rm -rf conftest*
4192   eval "ac_cv_lib_$ac_lib_var=no"
4193 fi
4194 rm -f conftest*
4195 LIBS="$ac_save_LIBS"
4196
4197 fi
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199   echo "$ac_t""yes" 1>&6
4200     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4201     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4202   cat >> confdefs.h <<EOF
4203 #define $ac_tr_lib 1
4204 EOF
4205
4206   LIBS="-lm $LIBS"
4207
4208 else
4209   echo "$ac_t""no" 1>&6
4210 fi
4211
4212   for ac_func in nan copysignf
4213 do
4214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4215 echo "configure:4216: checking for $ac_func" >&5
4216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4217   echo $ac_n "(cached) $ac_c" 1>&6
4218 else
4219   cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 /* System header to define __stub macros and hopefully few prototypes,
4223     which can conflict with char $ac_func(); below.  */
4224 #include <assert.h>
4225 /* Override any gcc2 internal prototype to avoid an error.  */
4226 /* We use char because int might match the return type of a gcc2
4227     builtin and then its argument prototype would still apply.  */
4228 char $ac_func();
4229
4230 int main() {
4231
4232 /* The GNU C library defines this for functions which it implements
4233     to always fail with ENOSYS.  Some functions are actually named
4234     something starting with __ and the normal name is an alias.  */
4235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4236 choke me
4237 #else
4238 $ac_func();
4239 #endif
4240
4241 ; return 0; }
4242 EOF
4243 if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244   rm -rf conftest*
4245   eval "ac_cv_func_$ac_func=yes"
4246 else
4247   echo "configure: failed program was:" >&5
4248   cat conftest.$ac_ext >&5
4249   rm -rf conftest*
4250   eval "ac_cv_func_$ac_func=no"
4251 fi
4252 rm -f conftest*
4253 fi
4254
4255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4256   echo "$ac_t""yes" 1>&6
4257     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4258   cat >> confdefs.h <<EOF
4259 #define $ac_tr_func 1
4260 EOF
4261  
4262 else
4263   echo "$ac_t""no" 1>&6
4264 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4265 fi
4266 done
4267
4268
4269
4270           USE_COMPLEX_LONG_DOUBLE=no
4271   if test x$ac_cv_func_copysignl = x"yes"; then
4272     USE_COMPLEX_LONG_DOUBLE=yes
4273     for ac_func in signbitl
4274 do
4275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_func" >&5
4277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4278   echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280   cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284     which can conflict with char $ac_func(); below.  */
4285 #include <assert.h>
4286 /* Override any gcc2 internal prototype to avoid an error.  */
4287 /* We use char because int might match the return type of a gcc2
4288     builtin and then its argument prototype would still apply.  */
4289 char $ac_func();
4290
4291 int main() {
4292
4293 /* The GNU C library defines this for functions which it implements
4294     to always fail with ENOSYS.  Some functions are actually named
4295     something starting with __ and the normal name is an alias.  */
4296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297 choke me
4298 #else
4299 $ac_func();
4300 #endif
4301
4302 ; return 0; }
4303 EOF
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4305   rm -rf conftest*
4306   eval "ac_cv_func_$ac_func=yes"
4307 else
4308   echo "configure: failed program was:" >&5
4309   cat conftest.$ac_ext >&5
4310   rm -rf conftest*
4311   eval "ac_cv_func_$ac_func=no"
4312 fi
4313 rm -f conftest*
4314 fi
4315
4316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4317   echo "$ac_t""yes" 1>&6
4318     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4319   cat >> confdefs.h <<EOF
4320 #define $ac_tr_func 1
4321 EOF
4322  
4323 else
4324   echo "$ac_t""no" 1>&6
4325 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4326 fi
4327 done
4328
4329
4330   fi
4331
4332   
4333
4334       
4335
4336       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4337 echo "configure:4338: checking for mbstate_t" >&5
4338   cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <wchar.h>
4342 int main() {
4343 mbstate_t teststate;
4344 ; return 0; }
4345 EOF
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347   rm -rf conftest*
4348   have_mbstate_t=yes
4349 else
4350   echo "configure: failed program was:" >&5
4351   cat conftest.$ac_ext >&5
4352   rm -rf conftest*
4353   have_mbstate_t=no
4354 fi
4355 rm -f conftest*
4356   echo "$ac_t""$have_mbstate_t" 1>&6
4357   if test x"$have_mbstate_t" = xyes; then
4358     cat >> confdefs.h <<\EOF
4359 #define HAVE_MBSTATE_T 1
4360 EOF
4361
4362   fi
4363
4364     for ac_hdr in wchar.h
4365 do
4366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370   echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372   cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <$ac_hdr>
4376 EOF
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4381   rm -rf conftest*
4382   eval "ac_cv_header_$ac_safe=yes"
4383 else
4384   echo "$ac_err" >&5
4385   echo "configure: failed program was:" >&5
4386   cat conftest.$ac_ext >&5
4387   rm -rf conftest*
4388   eval "ac_cv_header_$ac_safe=no"
4389 fi
4390 rm -f conftest*
4391 fi
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393   echo "$ac_t""yes" 1>&6
4394     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395   cat >> confdefs.h <<EOF
4396 #define $ac_tr_hdr 1
4397 EOF
4398  ac_has_wchar_h=yes
4399 else
4400   echo "$ac_t""no" 1>&6
4401 ac_has_wchar_h=no
4402 fi
4403 done
4404
4405   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4406 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4407 echo "configure:4408: checking for wctype.h" >&5
4408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4409   echo $ac_n "(cached) $ac_c" 1>&6
4410 else
4411   cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <wctype.h>
4415 EOF
4416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4417 { (eval echo configure:4418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4419 if test -z "$ac_err"; then
4420   rm -rf conftest*
4421   eval "ac_cv_header_$ac_safe=yes"
4422 else
4423   echo "$ac_err" >&5
4424   echo "configure: failed program was:" >&5
4425   cat conftest.$ac_ext >&5
4426   rm -rf conftest*
4427   eval "ac_cv_header_$ac_safe=no"
4428 fi
4429 rm -f conftest*
4430 fi
4431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4432   echo "$ac_t""yes" 1>&6
4433   ac_has_wctype_h=yes
4434 else
4435   echo "$ac_t""no" 1>&6
4436 ac_has_wctype_h=no
4437 fi
4438
4439   
4440     if test x"$ac_has_wchar_h" = xyes &&
4441      test x"$ac_has_wctype_h" = xyes &&
4442      test x"$enable_c_mbchar" != xno; then
4443       
4444             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4445 echo "configure:4446: checking for WCHAR_MIN and WCHAR_MAX" >&5
4446     cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 #include <wchar.h>
4450 int main() {
4451 int i = WCHAR_MIN; int j = WCHAR_MAX;
4452 ; return 0; }
4453 EOF
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455   rm -rf conftest*
4456   has_wchar_minmax=yes
4457 else
4458   echo "configure: failed program was:" >&5
4459   cat conftest.$ac_ext >&5
4460   rm -rf conftest*
4461   has_wchar_minmax=no
4462 fi
4463 rm -f conftest*
4464     echo "$ac_t""$has_wchar_minmax" 1>&6
4465     
4466             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4467 echo "configure:4468: checking for WEOF" >&5
4468     cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471
4472       #include <wchar.h>
4473       #include <stddef.h>
4474 int main() {
4475 wint_t i = WEOF;
4476 ; return 0; }
4477 EOF
4478 if { (eval echo configure:4479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4479   rm -rf conftest*
4480   has_weof=yes
4481 else
4482   echo "configure: failed program was:" >&5
4483   cat conftest.$ac_ext >&5
4484   rm -rf conftest*
4485   has_weof=no
4486 fi
4487 rm -f conftest*
4488     echo "$ac_t""$has_weof" 1>&6
4489   
4490         ac_wfuncs=yes
4491     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4492 do
4493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_func" >&5
4495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4496   echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498   cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 /* System header to define __stub macros and hopefully few prototypes,
4502     which can conflict with char $ac_func(); below.  */
4503 #include <assert.h>
4504 /* Override any gcc2 internal prototype to avoid an error.  */
4505 /* We use char because int might match the return type of a gcc2
4506     builtin and then its argument prototype would still apply.  */
4507 char $ac_func();
4508
4509 int main() {
4510
4511 /* The GNU C library defines this for functions which it implements
4512     to always fail with ENOSYS.  Some functions are actually named
4513     something starting with __ and the normal name is an alias.  */
4514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4515 choke me
4516 #else
4517 $ac_func();
4518 #endif
4519
4520 ; return 0; }
4521 EOF
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523   rm -rf conftest*
4524   eval "ac_cv_func_$ac_func=yes"
4525 else
4526   echo "configure: failed program was:" >&5
4527   cat conftest.$ac_ext >&5
4528   rm -rf conftest*
4529   eval "ac_cv_func_$ac_func=no"
4530 fi
4531 rm -f conftest*
4532 fi
4533
4534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4535   echo "$ac_t""yes" 1>&6
4536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4537   cat >> confdefs.h <<EOF
4538 #define $ac_tr_func 1
4539 EOF
4540  
4541 else
4542   echo "$ac_t""no" 1>&6
4543 \
4544     ac_wfuncs=no
4545 fi
4546 done
4547
4548   
4549         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4550     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4551     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4552     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4553     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4554     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4555 do
4556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_func" >&5
4558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4559   echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561   cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565     which can conflict with char $ac_func(); below.  */
4566 #include <assert.h>
4567 /* Override any gcc2 internal prototype to avoid an error.  */
4568 /* We use char because int might match the return type of a gcc2
4569     builtin and then its argument prototype would still apply.  */
4570 char $ac_func();
4571
4572 int main() {
4573
4574 /* The GNU C library defines this for functions which it implements
4575     to always fail with ENOSYS.  Some functions are actually named
4576     something starting with __ and the normal name is an alias.  */
4577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 choke me
4579 #else
4580 $ac_func();
4581 #endif
4582
4583 ; return 0; }
4584 EOF
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586   rm -rf conftest*
4587   eval "ac_cv_func_$ac_func=yes"
4588 else
4589   echo "configure: failed program was:" >&5
4590   cat conftest.$ac_ext >&5
4591   rm -rf conftest*
4592   eval "ac_cv_func_$ac_func=no"
4593 fi
4594 rm -f conftest*
4595 fi
4596
4597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4598   echo "$ac_t""yes" 1>&6
4599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4600   cat >> confdefs.h <<EOF
4601 #define $ac_tr_func 1
4602 EOF
4603  
4604 else
4605   echo "$ac_t""no" 1>&6
4606 \
4607     ac_wfuncs=no
4608 fi
4609 done
4610
4611
4612     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4613 echo "configure:4614: checking for ISO C99 wchar_t support" >&5
4614     if test x"$has_weof" = xyes &&
4615        test x"$has_wchar_minmax" = xyes &&
4616        test x"$ac_wfuncs" = xyes; then
4617       ac_isoC99_wchar_t=yes
4618     else
4619       ac_isoC99_wchar_t=no
4620     fi
4621     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4622   
4623             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4625 echo "configure:4626: checking for iconv.h" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627   echo $ac_n "(cached) $ac_c" 1>&6
4628 else
4629   cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <iconv.h>
4633 EOF
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4638   rm -rf conftest*
4639   eval "ac_cv_header_$ac_safe=yes"
4640 else
4641   echo "$ac_err" >&5
4642   echo "configure: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   rm -rf conftest*
4645   eval "ac_cv_header_$ac_safe=no"
4646 fi
4647 rm -f conftest*
4648 fi
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650   echo "$ac_t""yes" 1>&6
4651   ac_has_iconv_h=yes
4652 else
4653   echo "$ac_t""no" 1>&6
4654 ac_has_iconv_h=no
4655 fi
4656
4657     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4659 echo "configure:4660: checking for langinfo.h" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661   echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663   cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <langinfo.h>
4667 EOF
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4672   rm -rf conftest*
4673   eval "ac_cv_header_$ac_safe=yes"
4674 else
4675   echo "$ac_err" >&5
4676   echo "configure: failed program was:" >&5
4677   cat conftest.$ac_ext >&5
4678   rm -rf conftest*
4679   eval "ac_cv_header_$ac_safe=no"
4680 fi
4681 rm -f conftest*
4682 fi
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684   echo "$ac_t""yes" 1>&6
4685   ac_has_langinfo_h=yes
4686 else
4687   echo "$ac_t""no" 1>&6
4688 ac_has_langinfo_h=no
4689 fi
4690
4691
4692         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4693 echo "configure:4694: checking for iconv in -liconv" >&5
4694 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4696   echo $ac_n "(cached) $ac_c" 1>&6
4697 else
4698   ac_save_LIBS="$LIBS"
4699 LIBS="-liconv  $LIBS"
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* Override any gcc2 internal prototype to avoid an error.  */
4704 /* We use char because int might match the return type of a gcc2
4705     builtin and then its argument prototype would still apply.  */
4706 char iconv();
4707
4708 int main() {
4709 iconv()
4710 ; return 0; }
4711 EOF
4712 if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4713   rm -rf conftest*
4714   eval "ac_cv_lib_$ac_lib_var=yes"
4715 else
4716   echo "configure: failed program was:" >&5
4717   cat conftest.$ac_ext >&5
4718   rm -rf conftest*
4719   eval "ac_cv_lib_$ac_lib_var=no"
4720 fi
4721 rm -f conftest*
4722 LIBS="$ac_save_LIBS"
4723
4724 fi
4725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4726   echo "$ac_t""yes" 1>&6
4727   libiconv="-liconv"
4728 else
4729   echo "$ac_t""no" 1>&6
4730 fi
4731
4732     ac_save_LIBS="$LIBS"
4733     LIBS="$LIBS $libiconv"
4734
4735     for ac_func in iconv_open iconv_close iconv nl_langinfo
4736 do
4737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_func" >&5
4739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4740   echo $ac_n "(cached) $ac_c" 1>&6
4741 else
4742   cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 /* System header to define __stub macros and hopefully few prototypes,
4746     which can conflict with char $ac_func(); below.  */
4747 #include <assert.h>
4748 /* Override any gcc2 internal prototype to avoid an error.  */
4749 /* We use char because int might match the return type of a gcc2
4750     builtin and then its argument prototype would still apply.  */
4751 char $ac_func();
4752
4753 int main() {
4754
4755 /* The GNU C library defines this for functions which it implements
4756     to always fail with ENOSYS.  Some functions are actually named
4757     something starting with __ and the normal name is an alias.  */
4758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4759 choke me
4760 #else
4761 $ac_func();
4762 #endif
4763
4764 ; return 0; }
4765 EOF
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767   rm -rf conftest*
4768   eval "ac_cv_func_$ac_func=yes"
4769 else
4770   echo "configure: failed program was:" >&5
4771   cat conftest.$ac_ext >&5
4772   rm -rf conftest*
4773   eval "ac_cv_func_$ac_func=no"
4774 fi
4775 rm -f conftest*
4776 fi
4777
4778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4779   echo "$ac_t""yes" 1>&6
4780     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4781   cat >> confdefs.h <<EOF
4782 #define $ac_tr_func 1
4783 EOF
4784  \
4785     ac_XPG2funcs=yes
4786 else
4787   echo "$ac_t""no" 1>&6
4788 ac_XPG2funcs=no
4789 fi
4790 done
4791
4792   
4793     LIBS="$ac_save_LIBS"
4794
4795     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4796 echo "configure:4797: checking for XPG2 wchar_t support" >&5
4797     if test x"$ac_has_iconv_h" = xyes &&
4798        test x"$ac_has_langinfo_h" = xyes &&
4799        test x"$ac_XPG2funcs" = xyes; then
4800       ac_XPG2_wchar_t=yes
4801     else
4802       ac_XPG2_wchar_t=no
4803     fi
4804     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4805   
4806             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4807 echo "configure:4808: checking for enabled wchar_t specializations" >&5
4808     if test x"$ac_isoC99_wchar_t" = xyes &&
4809        test x"$ac_XPG2_wchar_t" = xyes; then
4810       cat >> confdefs.h <<\EOF
4811 #define _GLIBCPP_USE_WCHAR_T 1
4812 EOF
4813
4814       echo "$ac_t"""yes"" 1>&6
4815     else
4816       echo "$ac_t"""no"" 1>&6
4817     fi
4818   else
4819         echo "configure: warning: wchar_t support disabled." 1>&2
4820   fi
4821
4822       os_include_dir="config/os/gnu-linux"
4823       cat >> confdefs.h <<\EOF
4824 #define HAVE_COPYSIGN 1
4825 EOF
4826
4827       cat >> confdefs.h <<\EOF
4828 #define HAVE_COPYSIGNF 1
4829 EOF
4830
4831       cat >> confdefs.h <<\EOF
4832 #define HAVE_FINITEF 1
4833 EOF
4834
4835       cat >> confdefs.h <<\EOF
4836 #define HAVE_FREXPF 1
4837 EOF
4838
4839       cat >> confdefs.h <<\EOF
4840 #define HAVE_HYPOTF 1
4841 EOF
4842
4843       cat >> confdefs.h <<\EOF
4844 #define HAVE_SINCOS 1
4845 EOF
4846
4847       cat >> confdefs.h <<\EOF
4848 #define HAVE_SINCOSF 1
4849 EOF
4850
4851       if test x"long_double_math_on_this_cpu" = x"yes"; then
4852         cat >> confdefs.h <<\EOF
4853 #define HAVE_HYPOTL 1
4854 EOF
4855
4856       fi
4857       ;;
4858     *-hpux*)
4859       # Check for available headers.
4860       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4861         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4862         fp.h locale.h float.h inttypes.h
4863 do
4864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4866 echo "configure:4867: checking for $ac_hdr" >&5
4867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4868   echo $ac_n "(cached) $ac_c" 1>&6
4869 else
4870   cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 #include <$ac_hdr>
4874 EOF
4875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4876 { (eval echo configure:4877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4878 if test -z "$ac_err"; then
4879   rm -rf conftest*
4880   eval "ac_cv_header_$ac_safe=yes"
4881 else
4882   echo "$ac_err" >&5
4883   echo "configure: failed program was:" >&5
4884   cat conftest.$ac_ext >&5
4885   rm -rf conftest*
4886   eval "ac_cv_header_$ac_safe=no"
4887 fi
4888 rm -f conftest*
4889 fi
4890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4891   echo "$ac_t""yes" 1>&6
4892     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4893   cat >> confdefs.h <<EOF
4894 #define $ac_tr_hdr 1
4895 EOF
4896  
4897 else
4898   echo "$ac_t""no" 1>&6
4899 fi
4900 done
4901
4902       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4903       
4904       
4905   # If we're not using GNU ld, then there's no point in even trying these
4906   # tests.  Check for that first.  We should have already tested for gld
4907   # by now (in libtool), but require it now just to be safe...
4908   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4909   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4910   
4911
4912   # Set --gc-sections.
4913   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4914     # GNU ld it is!  Joy and bunny rabbits!
4915
4916     # All these tests are for C++; save the language and the compiler flags.
4917     # Need to do this so that g++ won't try to link in libstdc++
4918     ac_test_CFLAGS="${CFLAGS+set}"
4919     ac_save_CFLAGS="$CFLAGS"
4920     CFLAGS='-x c++  -Wl,--gc-sections'
4921
4922     # Check for -Wl,--gc-sections
4923     # XXX This test is broken at the moment, as symbols required for
4924     # linking are now in libsupc++ (not built yet.....). In addition, 
4925     # this test has cored on solaris in the past. In addition,
4926     # --gc-sections doesn't really work at the moment (keeps on discarding
4927     # used sections, first .eh_frame and now some of the glibc sections for
4928     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4929     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4930 echo "configure:4931: checking for ld that supports -Wl,--gc-sections" >&5
4931     if test "$cross_compiling" = yes; then
4932   ac_sectionLDflags=yes
4933 else
4934   cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937
4938      int main(void) 
4939      {
4940        try { throw 1; }
4941        catch (...) { };
4942        return 0;
4943      }
4944     
4945 EOF
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4947 then
4948   ac_sectionLDflags=yes
4949 else
4950   echo "configure: failed program was:" >&5
4951   cat conftest.$ac_ext >&5
4952   rm -fr conftest*
4953   ac_sectionLDflags=no
4954 fi
4955 rm -fr conftest*
4956 fi
4957
4958     if test "$ac_test_CFLAGS" = set; then
4959       CFLAGS="$ac_save_CFLAGS"
4960     else
4961       # this is the suspicious part
4962       CFLAGS=''
4963     fi
4964     if test "$ac_sectionLDflags" = "yes"; then
4965       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4966     fi
4967     echo "$ac_t""$ac_sectionLDflags" 1>&6
4968   fi
4969
4970   # Set linker optimization flags.
4971   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4972      test x"$enable_debug" = x"no"; then
4973     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4974   fi
4975
4976   
4977   
4978
4979       
4980     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4981 echo "configure:4982: checking for main in -lm" >&5
4982 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4984   echo $ac_n "(cached) $ac_c" 1>&6
4985 else
4986   ac_save_LIBS="$LIBS"
4987 LIBS="-lm  $LIBS"
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991
4992 int main() {
4993 main()
4994 ; return 0; }
4995 EOF
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997   rm -rf conftest*
4998   eval "ac_cv_lib_$ac_lib_var=yes"
4999 else
5000   echo "configure: failed program was:" >&5
5001   cat conftest.$ac_ext >&5
5002   rm -rf conftest*
5003   eval "ac_cv_lib_$ac_lib_var=no"
5004 fi
5005 rm -f conftest*
5006 LIBS="$ac_save_LIBS"
5007
5008 fi
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010   echo "$ac_t""yes" 1>&6
5011     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5012     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5013   cat >> confdefs.h <<EOF
5014 #define $ac_tr_lib 1
5015 EOF
5016
5017   LIBS="-lm $LIBS"
5018
5019 else
5020   echo "$ac_t""no" 1>&6
5021 fi
5022
5023   for ac_func in nan copysignf
5024 do
5025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5026 echo "configure:5027: checking for $ac_func" >&5
5027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5028   echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5030   cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* System header to define __stub macros and hopefully few prototypes,
5034     which can conflict with char $ac_func(); below.  */
5035 #include <assert.h>
5036 /* Override any gcc2 internal prototype to avoid an error.  */
5037 /* We use char because int might match the return type of a gcc2
5038     builtin and then its argument prototype would still apply.  */
5039 char $ac_func();
5040
5041 int main() {
5042
5043 /* The GNU C library defines this for functions which it implements
5044     to always fail with ENOSYS.  Some functions are actually named
5045     something starting with __ and the normal name is an alias.  */
5046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5047 choke me
5048 #else
5049 $ac_func();
5050 #endif
5051
5052 ; return 0; }
5053 EOF
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055   rm -rf conftest*
5056   eval "ac_cv_func_$ac_func=yes"
5057 else
5058   echo "configure: failed program was:" >&5
5059   cat conftest.$ac_ext >&5
5060   rm -rf conftest*
5061   eval "ac_cv_func_$ac_func=no"
5062 fi
5063 rm -f conftest*
5064 fi
5065
5066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5067   echo "$ac_t""yes" 1>&6
5068     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5069   cat >> confdefs.h <<EOF
5070 #define $ac_tr_func 1
5071 EOF
5072  
5073 else
5074   echo "$ac_t""no" 1>&6
5075 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5076 fi
5077 done
5078
5079
5080
5081           USE_COMPLEX_LONG_DOUBLE=no
5082   if test x$ac_cv_func_copysignl = x"yes"; then
5083     USE_COMPLEX_LONG_DOUBLE=yes
5084     for ac_func in signbitl
5085 do
5086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_func" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5089   echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091   cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095     which can conflict with char $ac_func(); below.  */
5096 #include <assert.h>
5097 /* Override any gcc2 internal prototype to avoid an error.  */
5098 /* We use char because int might match the return type of a gcc2
5099     builtin and then its argument prototype would still apply.  */
5100 char $ac_func();
5101
5102 int main() {
5103
5104 /* The GNU C library defines this for functions which it implements
5105     to always fail with ENOSYS.  Some functions are actually named
5106     something starting with __ and the normal name is an alias.  */
5107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5108 choke me
5109 #else
5110 $ac_func();
5111 #endif
5112
5113 ; return 0; }
5114 EOF
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116   rm -rf conftest*
5117   eval "ac_cv_func_$ac_func=yes"
5118 else
5119   echo "configure: failed program was:" >&5
5120   cat conftest.$ac_ext >&5
5121   rm -rf conftest*
5122   eval "ac_cv_func_$ac_func=no"
5123 fi
5124 rm -f conftest*
5125 fi
5126
5127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5128   echo "$ac_t""yes" 1>&6
5129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5130   cat >> confdefs.h <<EOF
5131 #define $ac_tr_func 1
5132 EOF
5133  
5134 else
5135   echo "$ac_t""no" 1>&6
5136 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5137 fi
5138 done
5139
5140
5141   fi
5142
5143   
5144
5145       
5146
5147       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5148 echo "configure:5149: checking for mbstate_t" >&5
5149   cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 #include <wchar.h>
5153 int main() {
5154 mbstate_t teststate;
5155 ; return 0; }
5156 EOF
5157 if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5158   rm -rf conftest*
5159   have_mbstate_t=yes
5160 else
5161   echo "configure: failed program was:" >&5
5162   cat conftest.$ac_ext >&5
5163   rm -rf conftest*
5164   have_mbstate_t=no
5165 fi
5166 rm -f conftest*
5167   echo "$ac_t""$have_mbstate_t" 1>&6
5168   if test x"$have_mbstate_t" = xyes; then
5169     cat >> confdefs.h <<\EOF
5170 #define HAVE_MBSTATE_T 1
5171 EOF
5172
5173   fi
5174
5175     for ac_hdr in wchar.h
5176 do
5177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_hdr" >&5
5180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5181   echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183   cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 #include <$ac_hdr>
5187 EOF
5188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5189 { (eval echo configure:5190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5191 if test -z "$ac_err"; then
5192   rm -rf conftest*
5193   eval "ac_cv_header_$ac_safe=yes"
5194 else
5195   echo "$ac_err" >&5
5196   echo "configure: failed program was:" >&5
5197   cat conftest.$ac_ext >&5
5198   rm -rf conftest*
5199   eval "ac_cv_header_$ac_safe=no"
5200 fi
5201 rm -f conftest*
5202 fi
5203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5204   echo "$ac_t""yes" 1>&6
5205     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5206   cat >> confdefs.h <<EOF
5207 #define $ac_tr_hdr 1
5208 EOF
5209  ac_has_wchar_h=yes
5210 else
5211   echo "$ac_t""no" 1>&6
5212 ac_has_wchar_h=no
5213 fi
5214 done
5215
5216   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5217 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5218 echo "configure:5219: checking for wctype.h" >&5
5219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5220   echo $ac_n "(cached) $ac_c" 1>&6
5221 else
5222   cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5225 #include <wctype.h>
5226 EOF
5227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5228 { (eval echo configure:5229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5230 if test -z "$ac_err"; then
5231   rm -rf conftest*
5232   eval "ac_cv_header_$ac_safe=yes"
5233 else
5234   echo "$ac_err" >&5
5235   echo "configure: failed program was:" >&5
5236   cat conftest.$ac_ext >&5
5237   rm -rf conftest*
5238   eval "ac_cv_header_$ac_safe=no"
5239 fi
5240 rm -f conftest*
5241 fi
5242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5243   echo "$ac_t""yes" 1>&6
5244   ac_has_wctype_h=yes
5245 else
5246   echo "$ac_t""no" 1>&6
5247 ac_has_wctype_h=no
5248 fi
5249
5250   
5251     if test x"$ac_has_wchar_h" = xyes &&
5252      test x"$ac_has_wctype_h" = xyes &&
5253      test x"$enable_c_mbchar" != xno; then
5254       
5255             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5256 echo "configure:5257: checking for WCHAR_MIN and WCHAR_MAX" >&5
5257     cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 #include <wchar.h>
5261 int main() {
5262 int i = WCHAR_MIN; int j = WCHAR_MAX;
5263 ; return 0; }
5264 EOF
5265 if { (eval echo configure:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5266   rm -rf conftest*
5267   has_wchar_minmax=yes
5268 else
5269   echo "configure: failed program was:" >&5
5270   cat conftest.$ac_ext >&5
5271   rm -rf conftest*
5272   has_wchar_minmax=no
5273 fi
5274 rm -f conftest*
5275     echo "$ac_t""$has_wchar_minmax" 1>&6
5276     
5277             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5278 echo "configure:5279: checking for WEOF" >&5
5279     cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282
5283       #include <wchar.h>
5284       #include <stddef.h>
5285 int main() {
5286 wint_t i = WEOF;
5287 ; return 0; }
5288 EOF
5289 if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5290   rm -rf conftest*
5291   has_weof=yes
5292 else
5293   echo "configure: failed program was:" >&5
5294   cat conftest.$ac_ext >&5
5295   rm -rf conftest*
5296   has_weof=no
5297 fi
5298 rm -f conftest*
5299     echo "$ac_t""$has_weof" 1>&6
5300   
5301         ac_wfuncs=yes
5302     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5303 do
5304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5305 echo "configure:5306: checking for $ac_func" >&5
5306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5307   echo $ac_n "(cached) $ac_c" 1>&6
5308 else
5309   cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 /* System header to define __stub macros and hopefully few prototypes,
5313     which can conflict with char $ac_func(); below.  */
5314 #include <assert.h>
5315 /* Override any gcc2 internal prototype to avoid an error.  */
5316 /* We use char because int might match the return type of a gcc2
5317     builtin and then its argument prototype would still apply.  */
5318 char $ac_func();
5319
5320 int main() {
5321
5322 /* The GNU C library defines this for functions which it implements
5323     to always fail with ENOSYS.  Some functions are actually named
5324     something starting with __ and the normal name is an alias.  */
5325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5326 choke me
5327 #else
5328 $ac_func();
5329 #endif
5330
5331 ; return 0; }
5332 EOF
5333 if { (eval echo configure:5334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334   rm -rf conftest*
5335   eval "ac_cv_func_$ac_func=yes"
5336 else
5337   echo "configure: failed program was:" >&5
5338   cat conftest.$ac_ext >&5
5339   rm -rf conftest*
5340   eval "ac_cv_func_$ac_func=no"
5341 fi
5342 rm -f conftest*
5343 fi
5344
5345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5346   echo "$ac_t""yes" 1>&6
5347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5348   cat >> confdefs.h <<EOF
5349 #define $ac_tr_func 1
5350 EOF
5351  
5352 else
5353   echo "$ac_t""no" 1>&6
5354 \
5355     ac_wfuncs=no
5356 fi
5357 done
5358
5359   
5360         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5361     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5362     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5363     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5364     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5365     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5366 do
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370   echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372   cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376     which can conflict with char $ac_func(); below.  */
5377 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error.  */
5379 /* We use char because int might match the return type of a gcc2
5380     builtin and then its argument prototype would still apply.  */
5381 char $ac_func();
5382
5383 int main() {
5384
5385 /* The GNU C library defines this for functions which it implements
5386     to always fail with ENOSYS.  Some functions are actually named
5387     something starting with __ and the normal name is an alias.  */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5389 choke me
5390 #else
5391 $ac_func();
5392 #endif
5393
5394 ; return 0; }
5395 EOF
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397   rm -rf conftest*
5398   eval "ac_cv_func_$ac_func=yes"
5399 else
5400   echo "configure: failed program was:" >&5
5401   cat conftest.$ac_ext >&5
5402   rm -rf conftest*
5403   eval "ac_cv_func_$ac_func=no"
5404 fi
5405 rm -f conftest*
5406 fi
5407
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409   echo "$ac_t""yes" 1>&6
5410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411   cat >> confdefs.h <<EOF
5412 #define $ac_tr_func 1
5413 EOF
5414  
5415 else
5416   echo "$ac_t""no" 1>&6
5417 \
5418     ac_wfuncs=no
5419 fi
5420 done
5421
5422
5423     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5424 echo "configure:5425: checking for ISO C99 wchar_t support" >&5
5425     if test x"$has_weof" = xyes &&
5426        test x"$has_wchar_minmax" = xyes &&
5427        test x"$ac_wfuncs" = xyes; then
5428       ac_isoC99_wchar_t=yes
5429     else
5430       ac_isoC99_wchar_t=no
5431     fi
5432     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5433   
5434             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5435 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5436 echo "configure:5437: checking for iconv.h" >&5
5437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5438   echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440   cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <iconv.h>
5444 EOF
5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5448 if test -z "$ac_err"; then
5449   rm -rf conftest*
5450   eval "ac_cv_header_$ac_safe=yes"
5451 else
5452   echo "$ac_err" >&5
5453   echo "configure: failed program was:" >&5
5454   cat conftest.$ac_ext >&5
5455   rm -rf conftest*
5456   eval "ac_cv_header_$ac_safe=no"
5457 fi
5458 rm -f conftest*
5459 fi
5460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5461   echo "$ac_t""yes" 1>&6
5462   ac_has_iconv_h=yes
5463 else
5464   echo "$ac_t""no" 1>&6
5465 ac_has_iconv_h=no
5466 fi
5467
5468     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5469 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5470 echo "configure:5471: checking for langinfo.h" >&5
5471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5472   echo $ac_n "(cached) $ac_c" 1>&6
5473 else
5474   cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 #include <langinfo.h>
5478 EOF
5479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5480 { (eval echo configure:5481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5482 if test -z "$ac_err"; then
5483   rm -rf conftest*
5484   eval "ac_cv_header_$ac_safe=yes"
5485 else
5486   echo "$ac_err" >&5
5487   echo "configure: failed program was:" >&5
5488   cat conftest.$ac_ext >&5
5489   rm -rf conftest*
5490   eval "ac_cv_header_$ac_safe=no"
5491 fi
5492 rm -f conftest*
5493 fi
5494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5495   echo "$ac_t""yes" 1>&6
5496   ac_has_langinfo_h=yes
5497 else
5498   echo "$ac_t""no" 1>&6
5499 ac_has_langinfo_h=no
5500 fi
5501
5502
5503         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5504 echo "configure:5505: checking for iconv in -liconv" >&5
5505 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5507   echo $ac_n "(cached) $ac_c" 1>&6
5508 else
5509   ac_save_LIBS="$LIBS"
5510 LIBS="-liconv  $LIBS"
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* Override any gcc2 internal prototype to avoid an error.  */
5515 /* We use char because int might match the return type of a gcc2
5516     builtin and then its argument prototype would still apply.  */
5517 char iconv();
5518
5519 int main() {
5520 iconv()
5521 ; return 0; }
5522 EOF
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524   rm -rf conftest*
5525   eval "ac_cv_lib_$ac_lib_var=yes"
5526 else
5527   echo "configure: failed program was:" >&5
5528   cat conftest.$ac_ext >&5
5529   rm -rf conftest*
5530   eval "ac_cv_lib_$ac_lib_var=no"
5531 fi
5532 rm -f conftest*
5533 LIBS="$ac_save_LIBS"
5534
5535 fi
5536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5537   echo "$ac_t""yes" 1>&6
5538   libiconv="-liconv"
5539 else
5540   echo "$ac_t""no" 1>&6
5541 fi
5542
5543     ac_save_LIBS="$LIBS"
5544     LIBS="$LIBS $libiconv"
5545
5546     for ac_func in iconv_open iconv_close iconv nl_langinfo
5547 do
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551   echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553   cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557     which can conflict with char $ac_func(); below.  */
5558 #include <assert.h>
5559 /* Override any gcc2 internal prototype to avoid an error.  */
5560 /* We use char because int might match the return type of a gcc2
5561     builtin and then its argument prototype would still apply.  */
5562 char $ac_func();
5563
5564 int main() {
5565
5566 /* The GNU C library defines this for functions which it implements
5567     to always fail with ENOSYS.  Some functions are actually named
5568     something starting with __ and the normal name is an alias.  */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 choke me
5571 #else
5572 $ac_func();
5573 #endif
5574
5575 ; return 0; }
5576 EOF
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578   rm -rf conftest*
5579   eval "ac_cv_func_$ac_func=yes"
5580 else
5581   echo "configure: failed program was:" >&5
5582   cat conftest.$ac_ext >&5
5583   rm -rf conftest*
5584   eval "ac_cv_func_$ac_func=no"
5585 fi
5586 rm -f conftest*
5587 fi
5588
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590   echo "$ac_t""yes" 1>&6
5591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592   cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5594 EOF
5595  \
5596     ac_XPG2funcs=yes
5597 else
5598   echo "$ac_t""no" 1>&6
5599 ac_XPG2funcs=no
5600 fi
5601 done
5602
5603   
5604     LIBS="$ac_save_LIBS"
5605
5606     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5607 echo "configure:5608: checking for XPG2 wchar_t support" >&5
5608     if test x"$ac_has_iconv_h" = xyes &&
5609        test x"$ac_has_langinfo_h" = xyes &&
5610        test x"$ac_XPG2funcs" = xyes; then
5611       ac_XPG2_wchar_t=yes
5612     else
5613       ac_XPG2_wchar_t=no
5614     fi
5615     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5616   
5617             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5618 echo "configure:5619: checking for enabled wchar_t specializations" >&5
5619     if test x"$ac_isoC99_wchar_t" = xyes &&
5620        test x"$ac_XPG2_wchar_t" = xyes; then
5621       cat >> confdefs.h <<\EOF
5622 #define _GLIBCPP_USE_WCHAR_T 1
5623 EOF
5624
5625       echo "$ac_t"""yes"" 1>&6
5626     else
5627       echo "$ac_t"""no"" 1>&6
5628     fi
5629   else
5630         echo "configure: warning: wchar_t support disabled." 1>&2
5631   fi
5632
5633       os_include_dir="config/os/hpux"
5634       cat >> confdefs.h <<\EOF
5635 #define HAVE_COPYSIGN 1
5636 EOF
5637
5638       cat >> confdefs.h <<\EOF
5639 #define HAVE_COPYSIGNF 1
5640 EOF
5641
5642       cat >> confdefs.h <<\EOF
5643 #define HAVE_FINITEF 1
5644 EOF
5645
5646       cat >> confdefs.h <<\EOF
5647 #define HAVE_FREXPF 1
5648 EOF
5649
5650       cat >> confdefs.h <<\EOF
5651 #define HAVE_HYPOT 1
5652 EOF
5653
5654       cat >> confdefs.h <<\EOF
5655 #define HAVE_SINCOS 1
5656 EOF
5657
5658       cat >> confdefs.h <<\EOF
5659 #define HAVE_SINCOSF 1
5660 EOF
5661
5662       ;;
5663     *-netbsd*)
5664       # Check for available headers.
5665       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5666         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5667         fp.h locale.h float.h inttypes.h
5668 do
5669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_hdr" >&5
5672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5673   echo $ac_n "(cached) $ac_c" 1>&6
5674 else
5675   cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <$ac_hdr>
5679 EOF
5680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5681 { (eval echo configure:5682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5683 if test -z "$ac_err"; then
5684   rm -rf conftest*
5685   eval "ac_cv_header_$ac_safe=yes"
5686 else
5687   echo "$ac_err" >&5
5688   echo "configure: failed program was:" >&5
5689   cat conftest.$ac_ext >&5
5690   rm -rf conftest*
5691   eval "ac_cv_header_$ac_safe=no"
5692 fi
5693 rm -f conftest*
5694 fi
5695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5696   echo "$ac_t""yes" 1>&6
5697     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5698   cat >> confdefs.h <<EOF
5699 #define $ac_tr_hdr 1
5700 EOF
5701  
5702 else
5703   echo "$ac_t""no" 1>&6
5704 fi
5705 done
5706
5707       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5708        
5709       
5710   # If we're not using GNU ld, then there's no point in even trying these
5711   # tests.  Check for that first.  We should have already tested for gld
5712   # by now (in libtool), but require it now just to be safe...
5713   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5714   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5715   
5716
5717   # Set --gc-sections.
5718   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5719     # GNU ld it is!  Joy and bunny rabbits!
5720
5721     # All these tests are for C++; save the language and the compiler flags.
5722     # Need to do this so that g++ won't try to link in libstdc++
5723     ac_test_CFLAGS="${CFLAGS+set}"
5724     ac_save_CFLAGS="$CFLAGS"
5725     CFLAGS='-x c++  -Wl,--gc-sections'
5726
5727     # Check for -Wl,--gc-sections
5728     # XXX This test is broken at the moment, as symbols required for
5729     # linking are now in libsupc++ (not built yet.....). In addition, 
5730     # this test has cored on solaris in the past. In addition,
5731     # --gc-sections doesn't really work at the moment (keeps on discarding
5732     # used sections, first .eh_frame and now some of the glibc sections for
5733     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5734     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5735 echo "configure:5736: checking for ld that supports -Wl,--gc-sections" >&5
5736     if test "$cross_compiling" = yes; then
5737   ac_sectionLDflags=yes
5738 else
5739   cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742
5743      int main(void) 
5744      {
5745        try { throw 1; }
5746        catch (...) { };
5747        return 0;
5748      }
5749     
5750 EOF
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5752 then
5753   ac_sectionLDflags=yes
5754 else
5755   echo "configure: failed program was:" >&5
5756   cat conftest.$ac_ext >&5
5757   rm -fr conftest*
5758   ac_sectionLDflags=no
5759 fi
5760 rm -fr conftest*
5761 fi
5762
5763     if test "$ac_test_CFLAGS" = set; then
5764       CFLAGS="$ac_save_CFLAGS"
5765     else
5766       # this is the suspicious part
5767       CFLAGS=''
5768     fi
5769     if test "$ac_sectionLDflags" = "yes"; then
5770       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5771     fi
5772     echo "$ac_t""$ac_sectionLDflags" 1>&6
5773   fi
5774
5775   # Set linker optimization flags.
5776   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5777      test x"$enable_debug" = x"no"; then
5778     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5779   fi
5780
5781   
5782   
5783
5784       
5785     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5786 echo "configure:5787: checking for main in -lm" >&5
5787 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5789   echo $ac_n "(cached) $ac_c" 1>&6
5790 else
5791   ac_save_LIBS="$LIBS"
5792 LIBS="-lm  $LIBS"
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796
5797 int main() {
5798 main()
5799 ; return 0; }
5800 EOF
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802   rm -rf conftest*
5803   eval "ac_cv_lib_$ac_lib_var=yes"
5804 else
5805   echo "configure: failed program was:" >&5
5806   cat conftest.$ac_ext >&5
5807   rm -rf conftest*
5808   eval "ac_cv_lib_$ac_lib_var=no"
5809 fi
5810 rm -f conftest*
5811 LIBS="$ac_save_LIBS"
5812
5813 fi
5814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5815   echo "$ac_t""yes" 1>&6
5816     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5817     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5818   cat >> confdefs.h <<EOF
5819 #define $ac_tr_lib 1
5820 EOF
5821
5822   LIBS="-lm $LIBS"
5823
5824 else
5825   echo "$ac_t""no" 1>&6
5826 fi
5827
5828   for ac_func in nan copysignf
5829 do
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833   echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835   cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839     which can conflict with char $ac_func(); below.  */
5840 #include <assert.h>
5841 /* Override any gcc2 internal prototype to avoid an error.  */
5842 /* We use char because int might match the return type of a gcc2
5843     builtin and then its argument prototype would still apply.  */
5844 char $ac_func();
5845
5846 int main() {
5847
5848 /* The GNU C library defines this for functions which it implements
5849     to always fail with ENOSYS.  Some functions are actually named
5850     something starting with __ and the normal name is an alias.  */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5852 choke me
5853 #else
5854 $ac_func();
5855 #endif
5856
5857 ; return 0; }
5858 EOF
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860   rm -rf conftest*
5861   eval "ac_cv_func_$ac_func=yes"
5862 else
5863   echo "configure: failed program was:" >&5
5864   cat conftest.$ac_ext >&5
5865   rm -rf conftest*
5866   eval "ac_cv_func_$ac_func=no"
5867 fi
5868 rm -f conftest*
5869 fi
5870
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872   echo "$ac_t""yes" 1>&6
5873     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874   cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5876 EOF
5877  
5878 else
5879   echo "$ac_t""no" 1>&6
5880 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5881 fi
5882 done
5883
5884
5885
5886           USE_COMPLEX_LONG_DOUBLE=no
5887   if test x$ac_cv_func_copysignl = x"yes"; then
5888     USE_COMPLEX_LONG_DOUBLE=yes
5889     for ac_func in signbitl
5890 do
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5894   echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896   cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900     which can conflict with char $ac_func(); below.  */
5901 #include <assert.h>
5902 /* Override any gcc2 internal prototype to avoid an error.  */
5903 /* We use char because int might match the return type of a gcc2
5904     builtin and then its argument prototype would still apply.  */
5905 char $ac_func();
5906
5907 int main() {
5908
5909 /* The GNU C library defines this for functions which it implements
5910     to always fail with ENOSYS.  Some functions are actually named
5911     something starting with __ and the normal name is an alias.  */
5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5913 choke me
5914 #else
5915 $ac_func();
5916 #endif
5917
5918 ; return 0; }
5919 EOF
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921   rm -rf conftest*
5922   eval "ac_cv_func_$ac_func=yes"
5923 else
5924   echo "configure: failed program was:" >&5
5925   cat conftest.$ac_ext >&5
5926   rm -rf conftest*
5927   eval "ac_cv_func_$ac_func=no"
5928 fi
5929 rm -f conftest*
5930 fi
5931
5932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5933   echo "$ac_t""yes" 1>&6
5934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5935   cat >> confdefs.h <<EOF
5936 #define $ac_tr_func 1
5937 EOF
5938  
5939 else
5940   echo "$ac_t""no" 1>&6
5941 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5942 fi
5943 done
5944
5945
5946   fi
5947
5948   
5949
5950       
5951
5952       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5953 echo "configure:5954: checking for mbstate_t" >&5
5954   cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <wchar.h>
5958 int main() {
5959 mbstate_t teststate;
5960 ; return 0; }
5961 EOF
5962 if { (eval echo configure:5963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5963   rm -rf conftest*
5964   have_mbstate_t=yes
5965 else
5966   echo "configure: failed program was:" >&5
5967   cat conftest.$ac_ext >&5
5968   rm -rf conftest*
5969   have_mbstate_t=no
5970 fi
5971 rm -f conftest*
5972   echo "$ac_t""$have_mbstate_t" 1>&6
5973   if test x"$have_mbstate_t" = xyes; then
5974     cat >> confdefs.h <<\EOF
5975 #define HAVE_MBSTATE_T 1
5976 EOF
5977
5978   fi
5979
5980     for ac_hdr in wchar.h
5981 do
5982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_hdr" >&5
5985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5986   echo $ac_n "(cached) $ac_c" 1>&6
5987 else
5988   cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 #include <$ac_hdr>
5992 EOF
5993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5994 { (eval echo configure:5995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5996 if test -z "$ac_err"; then
5997   rm -rf conftest*
5998   eval "ac_cv_header_$ac_safe=yes"
5999 else
6000   echo "$ac_err" >&5
6001   echo "configure: failed program was:" >&5
6002   cat conftest.$ac_ext >&5
6003   rm -rf conftest*
6004   eval "ac_cv_header_$ac_safe=no"
6005 fi
6006 rm -f conftest*
6007 fi
6008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6009   echo "$ac_t""yes" 1>&6
6010     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6011   cat >> confdefs.h <<EOF
6012 #define $ac_tr_hdr 1
6013 EOF
6014  ac_has_wchar_h=yes
6015 else
6016   echo "$ac_t""no" 1>&6
6017 ac_has_wchar_h=no
6018 fi
6019 done
6020
6021   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
6022 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
6023 echo "configure:6024: checking for wctype.h" >&5
6024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6025   echo $ac_n "(cached) $ac_c" 1>&6
6026 else
6027   cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #include <wctype.h>
6031 EOF
6032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6033 { (eval echo configure:6034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6035 if test -z "$ac_err"; then
6036   rm -rf conftest*
6037   eval "ac_cv_header_$ac_safe=yes"
6038 else
6039   echo "$ac_err" >&5
6040   echo "configure: failed program was:" >&5
6041   cat conftest.$ac_ext >&5
6042   rm -rf conftest*
6043   eval "ac_cv_header_$ac_safe=no"
6044 fi
6045 rm -f conftest*
6046 fi
6047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6048   echo "$ac_t""yes" 1>&6
6049   ac_has_wctype_h=yes
6050 else
6051   echo "$ac_t""no" 1>&6
6052 ac_has_wctype_h=no
6053 fi
6054
6055   
6056     if test x"$ac_has_wchar_h" = xyes &&
6057      test x"$ac_has_wctype_h" = xyes &&
6058      test x"$enable_c_mbchar" != xno; then
6059       
6060             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6061 echo "configure:6062: checking for WCHAR_MIN and WCHAR_MAX" >&5
6062     cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 #include <wchar.h>
6066 int main() {
6067 int i = WCHAR_MIN; int j = WCHAR_MAX;
6068 ; return 0; }
6069 EOF
6070 if { (eval echo configure:6071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6071   rm -rf conftest*
6072   has_wchar_minmax=yes
6073 else
6074   echo "configure: failed program was:" >&5
6075   cat conftest.$ac_ext >&5
6076   rm -rf conftest*
6077   has_wchar_minmax=no
6078 fi
6079 rm -f conftest*
6080     echo "$ac_t""$has_wchar_minmax" 1>&6
6081     
6082             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6083 echo "configure:6084: checking for WEOF" >&5
6084     cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087
6088       #include <wchar.h>
6089       #include <stddef.h>
6090 int main() {
6091 wint_t i = WEOF;
6092 ; return 0; }
6093 EOF
6094 if { (eval echo configure:6095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6095   rm -rf conftest*
6096   has_weof=yes
6097 else
6098   echo "configure: failed program was:" >&5
6099   cat conftest.$ac_ext >&5
6100   rm -rf conftest*
6101   has_weof=no
6102 fi
6103 rm -f conftest*
6104     echo "$ac_t""$has_weof" 1>&6
6105   
6106         ac_wfuncs=yes
6107     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6108 do
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112   echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114   cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118     which can conflict with char $ac_func(); below.  */
6119 #include <assert.h>
6120 /* Override any gcc2 internal prototype to avoid an error.  */
6121 /* We use char because int might match the return type of a gcc2
6122     builtin and then its argument prototype would still apply.  */
6123 char $ac_func();
6124
6125 int main() {
6126
6127 /* The GNU C library defines this for functions which it implements
6128     to always fail with ENOSYS.  Some functions are actually named
6129     something starting with __ and the normal name is an alias.  */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 choke me
6132 #else
6133 $ac_func();
6134 #endif
6135
6136 ; return 0; }
6137 EOF
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139   rm -rf conftest*
6140   eval "ac_cv_func_$ac_func=yes"
6141 else
6142   echo "configure: failed program was:" >&5
6143   cat conftest.$ac_ext >&5
6144   rm -rf conftest*
6145   eval "ac_cv_func_$ac_func=no"
6146 fi
6147 rm -f conftest*
6148 fi
6149
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151   echo "$ac_t""yes" 1>&6
6152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153   cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6155 EOF
6156  
6157 else
6158   echo "$ac_t""no" 1>&6
6159 \
6160     ac_wfuncs=no
6161 fi
6162 done
6163
6164   
6165         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6166     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6167     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6168     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6169     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6170     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6171 do
6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_func" >&5
6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6175   echo $ac_n "(cached) $ac_c" 1>&6
6176 else
6177   cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 /* System header to define __stub macros and hopefully few prototypes,
6181     which can conflict with char $ac_func(); below.  */
6182 #include <assert.h>
6183 /* Override any gcc2 internal prototype to avoid an error.  */
6184 /* We use char because int might match the return type of a gcc2
6185     builtin and then its argument prototype would still apply.  */
6186 char $ac_func();
6187
6188 int main() {
6189
6190 /* The GNU C library defines this for functions which it implements
6191     to always fail with ENOSYS.  Some functions are actually named
6192     something starting with __ and the normal name is an alias.  */
6193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 choke me
6195 #else
6196 $ac_func();
6197 #endif
6198
6199 ; return 0; }
6200 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202   rm -rf conftest*
6203   eval "ac_cv_func_$ac_func=yes"
6204 else
6205   echo "configure: failed program was:" >&5
6206   cat conftest.$ac_ext >&5
6207   rm -rf conftest*
6208   eval "ac_cv_func_$ac_func=no"
6209 fi
6210 rm -f conftest*
6211 fi
6212
6213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6214   echo "$ac_t""yes" 1>&6
6215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6216   cat >> confdefs.h <<EOF
6217 #define $ac_tr_func 1
6218 EOF
6219  
6220 else
6221   echo "$ac_t""no" 1>&6
6222 \
6223     ac_wfuncs=no
6224 fi
6225 done
6226
6227
6228     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6229 echo "configure:6230: checking for ISO C99 wchar_t support" >&5
6230     if test x"$has_weof" = xyes &&
6231        test x"$has_wchar_minmax" = xyes &&
6232        test x"$ac_wfuncs" = xyes; then
6233       ac_isoC99_wchar_t=yes
6234     else
6235       ac_isoC99_wchar_t=no
6236     fi
6237     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6238   
6239             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6240 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6241 echo "configure:6242: checking for iconv.h" >&5
6242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6243   echo $ac_n "(cached) $ac_c" 1>&6
6244 else
6245   cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6248 #include <iconv.h>
6249 EOF
6250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6251 { (eval echo configure:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6253 if test -z "$ac_err"; then
6254   rm -rf conftest*
6255   eval "ac_cv_header_$ac_safe=yes"
6256 else
6257   echo "$ac_err" >&5
6258   echo "configure: failed program was:" >&5
6259   cat conftest.$ac_ext >&5
6260   rm -rf conftest*
6261   eval "ac_cv_header_$ac_safe=no"
6262 fi
6263 rm -f conftest*
6264 fi
6265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6266   echo "$ac_t""yes" 1>&6
6267   ac_has_iconv_h=yes
6268 else
6269   echo "$ac_t""no" 1>&6
6270 ac_has_iconv_h=no
6271 fi
6272
6273     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6274 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6275 echo "configure:6276: checking for langinfo.h" >&5
6276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6277   echo $ac_n "(cached) $ac_c" 1>&6
6278 else
6279   cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 #include <langinfo.h>
6283 EOF
6284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6285 { (eval echo configure:6286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6287 if test -z "$ac_err"; then
6288   rm -rf conftest*
6289   eval "ac_cv_header_$ac_safe=yes"
6290 else
6291   echo "$ac_err" >&5
6292   echo "configure: failed program was:" >&5
6293   cat conftest.$ac_ext >&5
6294   rm -rf conftest*
6295   eval "ac_cv_header_$ac_safe=no"
6296 fi
6297 rm -f conftest*
6298 fi
6299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6300   echo "$ac_t""yes" 1>&6
6301   ac_has_langinfo_h=yes
6302 else
6303   echo "$ac_t""no" 1>&6
6304 ac_has_langinfo_h=no
6305 fi
6306
6307
6308         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6309 echo "configure:6310: checking for iconv in -liconv" >&5
6310 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6312   echo $ac_n "(cached) $ac_c" 1>&6
6313 else
6314   ac_save_LIBS="$LIBS"
6315 LIBS="-liconv  $LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* Override any gcc2 internal prototype to avoid an error.  */
6320 /* We use char because int might match the return type of a gcc2
6321     builtin and then its argument prototype would still apply.  */
6322 char iconv();
6323
6324 int main() {
6325 iconv()
6326 ; return 0; }
6327 EOF
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329   rm -rf conftest*
6330   eval "ac_cv_lib_$ac_lib_var=yes"
6331 else
6332   echo "configure: failed program was:" >&5
6333   cat conftest.$ac_ext >&5
6334   rm -rf conftest*
6335   eval "ac_cv_lib_$ac_lib_var=no"
6336 fi
6337 rm -f conftest*
6338 LIBS="$ac_save_LIBS"
6339
6340 fi
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342   echo "$ac_t""yes" 1>&6
6343   libiconv="-liconv"
6344 else
6345   echo "$ac_t""no" 1>&6
6346 fi
6347
6348     ac_save_LIBS="$LIBS"
6349     LIBS="$LIBS $libiconv"
6350
6351     for ac_func in iconv_open iconv_close iconv nl_langinfo
6352 do
6353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_func" >&5
6355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6356   echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6358   cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* System header to define __stub macros and hopefully few prototypes,
6362     which can conflict with char $ac_func(); below.  */
6363 #include <assert.h>
6364 /* Override any gcc2 internal prototype to avoid an error.  */
6365 /* We use char because int might match the return type of a gcc2
6366     builtin and then its argument prototype would still apply.  */
6367 char $ac_func();
6368
6369 int main() {
6370
6371 /* The GNU C library defines this for functions which it implements
6372     to always fail with ENOSYS.  Some functions are actually named
6373     something starting with __ and the normal name is an alias.  */
6374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6375 choke me
6376 #else
6377 $ac_func();
6378 #endif
6379
6380 ; return 0; }
6381 EOF
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383   rm -rf conftest*
6384   eval "ac_cv_func_$ac_func=yes"
6385 else
6386   echo "configure: failed program was:" >&5
6387   cat conftest.$ac_ext >&5
6388   rm -rf conftest*
6389   eval "ac_cv_func_$ac_func=no"
6390 fi
6391 rm -f conftest*
6392 fi
6393
6394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6395   echo "$ac_t""yes" 1>&6
6396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6397   cat >> confdefs.h <<EOF
6398 #define $ac_tr_func 1
6399 EOF
6400  \
6401     ac_XPG2funcs=yes
6402 else
6403   echo "$ac_t""no" 1>&6
6404 ac_XPG2funcs=no
6405 fi
6406 done
6407
6408   
6409     LIBS="$ac_save_LIBS"
6410
6411     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6412 echo "configure:6413: checking for XPG2 wchar_t support" >&5
6413     if test x"$ac_has_iconv_h" = xyes &&
6414        test x"$ac_has_langinfo_h" = xyes &&
6415        test x"$ac_XPG2funcs" = xyes; then
6416       ac_XPG2_wchar_t=yes
6417     else
6418       ac_XPG2_wchar_t=no
6419     fi
6420     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6421   
6422             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6423 echo "configure:6424: checking for enabled wchar_t specializations" >&5
6424     if test x"$ac_isoC99_wchar_t" = xyes &&
6425        test x"$ac_XPG2_wchar_t" = xyes; then
6426       cat >> confdefs.h <<\EOF
6427 #define _GLIBCPP_USE_WCHAR_T 1
6428 EOF
6429
6430       echo "$ac_t"""yes"" 1>&6
6431     else
6432       echo "$ac_t"""no"" 1>&6
6433     fi
6434   else
6435         echo "configure: warning: wchar_t support disabled." 1>&2
6436   fi
6437
6438       os_include_dir="config/os/bsd/netbsd"
6439       cat >> confdefs.h <<\EOF
6440 #define HAVE_COPYSIGN 1
6441 EOF
6442
6443       cat >> confdefs.h <<\EOF
6444 #define HAVE_COPYSIGNF 1
6445 EOF
6446
6447       cat >> confdefs.h <<\EOF
6448 #define HAVE_FINITEF 1
6449 EOF
6450
6451       cat >> confdefs.h <<\EOF
6452 #define HAVE_FREXPF 1
6453 EOF
6454
6455       cat >> confdefs.h <<\EOF
6456 #define HAVE_HYPOTF 1
6457 EOF
6458
6459       ;;
6460     *)
6461       os_include_dir="config/os/newlib"
6462       cat >> confdefs.h <<\EOF
6463 #define HAVE_HYPOT 1
6464 EOF
6465
6466       ;;
6467   esac
6468
6469   # GLIBCPP_CHECK_STDLIB_SUPPORT
6470   cat >> confdefs.h <<\EOF
6471 #define HAVE_STRTOF 1
6472 EOF
6473         
6474   cat >> confdefs.h <<\EOF
6475 #define HAVE_STRTOLD 1
6476 EOF
6477         
6478   # AC_FUNC_MMAP
6479   cat >> confdefs.h <<\EOF
6480 #define HAVE_MMAP 1
6481 EOF
6482
6483
6484   cat >> confdefs.h <<\EOF
6485 #define HAVE_ACOSF 1
6486 EOF
6487
6488   cat >> confdefs.h <<\EOF
6489 #define HAVE_ASINF 1
6490 EOF
6491
6492   cat >> confdefs.h <<\EOF
6493 #define HAVE_ATAN2F 1
6494 EOF
6495
6496   cat >> confdefs.h <<\EOF
6497 #define HAVE_ATANF 1
6498 EOF
6499
6500   cat >> confdefs.h <<\EOF
6501 #define HAVE_CEILF 1
6502 EOF
6503
6504   cat >> confdefs.h <<\EOF
6505 #define HAVE_COPYSIGN 1
6506 EOF
6507
6508   cat >> confdefs.h <<\EOF
6509 #define HAVE_COPYSIGNF 1
6510 EOF
6511
6512   cat >> confdefs.h <<\EOF
6513 #define HAVE_COSF 1
6514 EOF
6515
6516   cat >> confdefs.h <<\EOF
6517 #define HAVE_COSHF 1
6518 EOF
6519
6520   cat >> confdefs.h <<\EOF
6521 #define HAVE_EXPF 1
6522 EOF
6523
6524   cat >> confdefs.h <<\EOF
6525 #define HAVE_FABSF 1
6526 EOF
6527
6528   cat >> confdefs.h <<\EOF
6529 #define HAVE_FINITE 1
6530 EOF
6531
6532   cat >> confdefs.h <<\EOF
6533 #define HAVE_FINITEF 1
6534 EOF
6535
6536   cat >> confdefs.h <<\EOF
6537 #define HAVE_FLOORF 1
6538 EOF
6539
6540   cat >> confdefs.h <<\EOF
6541 #define HAVE_FMODF 1
6542 EOF
6543
6544   cat >> confdefs.h <<\EOF
6545 #define HAVE_FREXPF 1
6546 EOF
6547
6548   cat >> confdefs.h <<\EOF
6549 #define HAVE_ISINF 1
6550 EOF
6551
6552   cat >> confdefs.h <<\EOF
6553 #define HAVE_ISINFF 1
6554 EOF
6555
6556   cat >> confdefs.h <<\EOF
6557 #define HAVE_ISNAN 1
6558 EOF
6559
6560   cat >> confdefs.h <<\EOF
6561 #define HAVE_ISNANF 1
6562 EOF
6563
6564   cat >> confdefs.h <<\EOF
6565 #define HAVE_LDEXPF 1
6566 EOF
6567
6568   cat >> confdefs.h <<\EOF
6569 #define HAVE_LOG10F 1
6570 EOF
6571
6572   cat >> confdefs.h <<\EOF
6573 #define HAVE_LOGF 1
6574 EOF
6575
6576   cat >> confdefs.h <<\EOF
6577 #define HAVE_MODFF 1
6578 EOF
6579
6580   cat >> confdefs.h <<\EOF
6581 #define HAVE_POWF 1
6582 EOF
6583
6584   cat >> confdefs.h <<\EOF
6585 #define HAVE_SINF 1
6586 EOF
6587
6588   cat >> confdefs.h <<\EOF
6589 #define HAVE_SINHF 1
6590 EOF
6591
6592   cat >> confdefs.h <<\EOF
6593 #define HAVE_SQRTF 1
6594 EOF
6595
6596   cat >> confdefs.h <<\EOF
6597 #define HAVE_TANF 1
6598 EOF
6599
6600   cat >> confdefs.h <<\EOF
6601 #define HAVE_TANHF 1
6602 EOF
6603
6604
6605   # At some point, we should differentiate between architectures
6606   # like x86, which have long double versions, and alpha/powerpc/etc.,
6607   # which don't. For the time being, punt.
6608   if test x"long_double_math_on_this_cpu" = x"yes"; then
6609     cat >> confdefs.h <<\EOF
6610 #define HAVE_ACOSL 1
6611 EOF
6612
6613     cat >> confdefs.h <<\EOF
6614 #define HAVE_ASINL 1
6615 EOF
6616
6617     cat >> confdefs.h <<\EOF
6618 #define HAVE_ATAN2L 1
6619 EOF
6620
6621     cat >> confdefs.h <<\EOF
6622 #define HAVE_ATANL 1
6623 EOF
6624
6625     cat >> confdefs.h <<\EOF
6626 #define HAVE_CEILL 1
6627 EOF
6628
6629     cat >> confdefs.h <<\EOF
6630 #define HAVE_COPYSIGNL 1
6631 EOF
6632
6633     cat >> confdefs.h <<\EOF
6634 #define HAVE_COSL 1
6635 EOF
6636
6637     cat >> confdefs.h <<\EOF
6638 #define HAVE_COSHL 1
6639 EOF
6640
6641     cat >> confdefs.h <<\EOF
6642 #define HAVE_EXPL 1
6643 EOF
6644
6645     cat >> confdefs.h <<\EOF
6646 #define HAVE_FABSL 1
6647 EOF
6648
6649     cat >> confdefs.h <<\EOF
6650 #define HAVE_FINITEL 1
6651 EOF
6652
6653     cat >> confdefs.h <<\EOF
6654 #define HAVE_FLOORL 1
6655 EOF
6656
6657     cat >> confdefs.h <<\EOF
6658 #define HAVE_FMODL 1
6659 EOF
6660
6661     cat >> confdefs.h <<\EOF
6662 #define HAVE_FREXPL 1
6663 EOF
6664
6665     cat >> confdefs.h <<\EOF
6666 #define HAVE_ISINFL 1
6667 EOF
6668
6669     cat >> confdefs.h <<\EOF
6670 #define HAVE_ISNANL 1
6671 EOF
6672
6673     cat >> confdefs.h <<\EOF
6674 #define HAVE_LDEXPL 1
6675 EOF
6676
6677     cat >> confdefs.h <<\EOF
6678 #define HAVE_LOG10L 1
6679 EOF
6680
6681     cat >> confdefs.h <<\EOF
6682 #define HAVE_LOGL 1
6683 EOF
6684
6685     cat >> confdefs.h <<\EOF
6686 #define HAVE_MODFL 1
6687 EOF
6688
6689     cat >> confdefs.h <<\EOF
6690 #define HAVE_POWL 1
6691 EOF
6692
6693     cat >> confdefs.h <<\EOF
6694 #define HAVE_SINCOSL 1
6695 EOF
6696
6697     cat >> confdefs.h <<\EOF
6698 #define HAVE_SINL 1
6699 EOF
6700
6701     cat >> confdefs.h <<\EOF
6702 #define HAVE_SINHL 1
6703 EOF
6704
6705     cat >> confdefs.h <<\EOF
6706 #define HAVE_SQRTL 1
6707 EOF
6708
6709     cat >> confdefs.h <<\EOF
6710 #define HAVE_TANL 1
6711 EOF
6712
6713     cat >> confdefs.h <<\EOF
6714 #define HAVE_TANHL 1
6715 EOF
6716
6717   fi
6718 else
6719
6720   # We are being configured natively. We can do more elaborate tests
6721   # that include AC_TRY_COMPILE now, as the linker is assumed to be
6722   # working.
6723   GLIBCPP_IS_CROSS_COMPILING=0
6724   CANADIAN=no
6725
6726   # Check for available headers.
6727   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6728   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6729 do
6730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_hdr" >&5
6733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6734   echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736   cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 #include <$ac_hdr>
6740 EOF
6741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6742 { (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6744 if test -z "$ac_err"; then
6745   rm -rf conftest*
6746   eval "ac_cv_header_$ac_safe=yes"
6747 else
6748   echo "$ac_err" >&5
6749   echo "configure: failed program was:" >&5
6750   cat conftest.$ac_ext >&5
6751   rm -rf conftest*
6752   eval "ac_cv_header_$ac_safe=no"
6753 fi
6754 rm -f conftest*
6755 fi
6756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6757   echo "$ac_t""yes" 1>&6
6758     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6759   cat >> confdefs.h <<EOF
6760 #define $ac_tr_hdr 1
6761 EOF
6762  
6763 else
6764   echo "$ac_t""no" 1>&6
6765 fi
6766 done
6767
6768
6769   
6770   # All these tests are for C++; save the language and the compiler flags.
6771   # The CXXFLAGS thing is suspicious, but based on similar bits previously
6772   # found in GLIBCPP_CONFIGURE.
6773   
6774   ac_ext=C
6775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6776 ac_cpp='$CXXCPP $CPPFLAGS'
6777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6779 cross_compiling=$ac_cv_prog_cxx_cross
6780
6781   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6782   ac_save_CXXFLAGS="$CXXFLAGS"
6783
6784   # Check for maintainer-mode bits.
6785   if test x"$USE_MAINTAINER_MODE" = xno; then
6786     WERROR=''
6787   else
6788     WERROR='-Werror'
6789   fi
6790
6791   # Check for -ffunction-sections -fdata-sections
6792   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6793 echo "configure:6794: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6794   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6795   cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798
6799 int main() {
6800 int foo;
6801   
6802 ; return 0; }
6803 EOF
6804 if { (eval echo configure:6805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6805   rm -rf conftest*
6806   ac_fdsections=yes
6807 else
6808   echo "configure: failed program was:" >&5
6809   cat conftest.$ac_ext >&5
6810   rm -rf conftest*
6811   ac_fdsections=no
6812 fi
6813 rm -f conftest*
6814   if test "$ac_test_CXXFLAGS" = set; then
6815     CXXFLAGS="$ac_save_CXXFLAGS"
6816   else
6817     # this is the suspicious part
6818     CXXFLAGS=''
6819   fi
6820   if test x"$ac_fdsections" = x"yes" &&
6821      test x"$enable_debug" = x"no"; then
6822     SECTION_FLAGS='-ffunction-sections -fdata-sections'
6823   fi
6824   echo "$ac_t""$ac_fdsections" 1>&6
6825
6826   ac_ext=c
6827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6831 cross_compiling=$ac_cv_prog_cc_cross
6832
6833   
6834   
6835
6836   
6837   # If we're not using GNU ld, then there's no point in even trying these
6838   # tests.  Check for that first.  We should have already tested for gld
6839   # by now (in libtool), but require it now just to be safe...
6840   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6841   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6842   
6843
6844   # Set --gc-sections.
6845   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
6846     # GNU ld it is!  Joy and bunny rabbits!
6847
6848     # All these tests are for C++; save the language and the compiler flags.
6849     # Need to do this so that g++ won't try to link in libstdc++
6850     ac_test_CFLAGS="${CFLAGS+set}"
6851     ac_save_CFLAGS="$CFLAGS"
6852     CFLAGS='-x c++  -Wl,--gc-sections'
6853
6854     # Check for -Wl,--gc-sections
6855     # XXX This test is broken at the moment, as symbols required for
6856     # linking are now in libsupc++ (not built yet.....). In addition, 
6857     # this test has cored on solaris in the past. In addition,
6858     # --gc-sections doesn't really work at the moment (keeps on discarding
6859     # used sections, first .eh_frame and now some of the glibc sections for
6860     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6861     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6862 echo "configure:6863: checking for ld that supports -Wl,--gc-sections" >&5
6863     if test "$cross_compiling" = yes; then
6864   ac_sectionLDflags=yes
6865 else
6866   cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869
6870      int main(void) 
6871      {
6872        try { throw 1; }
6873        catch (...) { };
6874        return 0;
6875      }
6876     
6877 EOF
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6879 then
6880   ac_sectionLDflags=yes
6881 else
6882   echo "configure: failed program was:" >&5
6883   cat conftest.$ac_ext >&5
6884   rm -fr conftest*
6885   ac_sectionLDflags=no
6886 fi
6887 rm -fr conftest*
6888 fi
6889
6890     if test "$ac_test_CFLAGS" = set; then
6891       CFLAGS="$ac_save_CFLAGS"
6892     else
6893       # this is the suspicious part
6894       CFLAGS=''
6895     fi
6896     if test "$ac_sectionLDflags" = "yes"; then
6897       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6898     fi
6899     echo "$ac_t""$ac_sectionLDflags" 1>&6
6900   fi
6901
6902   # Set linker optimization flags.
6903   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6904      test x"$enable_debug" = x"no"; then
6905     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6906   fi
6907
6908   
6909   
6910
6911   
6912       
6913   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6914 echo "configure:6915: checking for __builtin_abs declaration" >&5
6915   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6916     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6917   echo $ac_n "(cached) $ac_c" 1>&6
6918 else
6919   
6920       
6921       ac_ext=C
6922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6923 ac_cpp='$CXXCPP $CPPFLAGS'
6924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6926 cross_compiling=$ac_cv_prog_cxx_cross
6927
6928       cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 #include <math.h>
6932 int main() {
6933  __builtin_abs(0);
6934 ; return 0; }
6935 EOF
6936 if { (eval echo configure:6937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937   rm -rf conftest*
6938   glibcpp_cv_func___builtin_abs_use=yes
6939 else
6940   echo "configure: failed program was:" >&5
6941   cat conftest.$ac_ext >&5
6942   rm -rf conftest*
6943   glibcpp_cv_func___builtin_abs_use=no
6944 fi
6945 rm -f conftest*
6946       ac_ext=c
6947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6951 cross_compiling=$ac_cv_prog_cc_cross
6952
6953     
6954 fi
6955
6956   fi
6957   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6958   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6959     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6960 echo "configure:6961: checking for __builtin_abs linkage" >&5
6961     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6962       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6963   echo $ac_n "(cached) $ac_c" 1>&6
6964 else
6965   
6966         cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 #include <math.h>
6970 int main() {
6971  __builtin_abs(0);
6972 ; return 0; }
6973 EOF
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975   rm -rf conftest*
6976   glibcpp_cv_func___builtin_abs_link=yes
6977 else
6978   echo "configure: failed program was:" >&5
6979   cat conftest.$ac_ext >&5
6980   rm -rf conftest*
6981   glibcpp_cv_func___builtin_abs_link=no
6982 fi
6983 rm -f conftest*
6984       
6985 fi
6986
6987     fi
6988     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6989     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6990       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6991       cat >> confdefs.h <<EOF
6992 #define ${ac_tr_func} 1
6993 EOF
6994
6995     fi
6996   fi
6997
6998   
6999   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7000 echo "configure:7001: checking for __builtin_fabsf declaration" >&5
7001   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7002     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7003   echo $ac_n "(cached) $ac_c" 1>&6
7004 else
7005   
7006       
7007       ac_ext=C
7008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7009 ac_cpp='$CXXCPP $CPPFLAGS'
7010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7012 cross_compiling=$ac_cv_prog_cxx_cross
7013
7014       cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 #include <math.h>
7018 int main() {
7019  __builtin_fabsf(0);
7020 ; return 0; }
7021 EOF
7022 if { (eval echo configure:7023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7023   rm -rf conftest*
7024   glibcpp_cv_func___builtin_fabsf_use=yes
7025 else
7026   echo "configure: failed program was:" >&5
7027   cat conftest.$ac_ext >&5
7028   rm -rf conftest*
7029   glibcpp_cv_func___builtin_fabsf_use=no
7030 fi
7031 rm -f conftest*
7032       ac_ext=c
7033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7037 cross_compiling=$ac_cv_prog_cc_cross
7038
7039     
7040 fi
7041
7042   fi
7043   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7044   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7045     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7046 echo "configure:7047: checking for __builtin_fabsf linkage" >&5
7047     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7048       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7049   echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051   
7052         cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 #include <math.h>
7056 int main() {
7057  __builtin_fabsf(0);
7058 ; return 0; }
7059 EOF
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061   rm -rf conftest*
7062   glibcpp_cv_func___builtin_fabsf_link=yes
7063 else
7064   echo "configure: failed program was:" >&5
7065   cat conftest.$ac_ext >&5
7066   rm -rf conftest*
7067   glibcpp_cv_func___builtin_fabsf_link=no
7068 fi
7069 rm -f conftest*
7070       
7071 fi
7072
7073     fi
7074     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7075     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7076       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7077       cat >> confdefs.h <<EOF
7078 #define ${ac_tr_func} 1
7079 EOF
7080
7081     fi
7082   fi
7083
7084   
7085   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7086 echo "configure:7087: checking for __builtin_fabs declaration" >&5
7087   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7088     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7089   echo $ac_n "(cached) $ac_c" 1>&6
7090 else
7091   
7092       
7093       ac_ext=C
7094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7095 ac_cpp='$CXXCPP $CPPFLAGS'
7096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7098 cross_compiling=$ac_cv_prog_cxx_cross
7099
7100       cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7103 #include <math.h>
7104 int main() {
7105  __builtin_fabs(0);
7106 ; return 0; }
7107 EOF
7108 if { (eval echo configure:7109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7109   rm -rf conftest*
7110   glibcpp_cv_func___builtin_fabs_use=yes
7111 else
7112   echo "configure: failed program was:" >&5
7113   cat conftest.$ac_ext >&5
7114   rm -rf conftest*
7115   glibcpp_cv_func___builtin_fabs_use=no
7116 fi
7117 rm -f conftest*
7118       ac_ext=c
7119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7123 cross_compiling=$ac_cv_prog_cc_cross
7124
7125     
7126 fi
7127
7128   fi
7129   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7130   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7131     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7132 echo "configure:7133: checking for __builtin_fabs linkage" >&5
7133     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7134       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7135   echo $ac_n "(cached) $ac_c" 1>&6
7136 else
7137   
7138         cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 #include <math.h>
7142 int main() {
7143  __builtin_fabs(0);
7144 ; return 0; }
7145 EOF
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147   rm -rf conftest*
7148   glibcpp_cv_func___builtin_fabs_link=yes
7149 else
7150   echo "configure: failed program was:" >&5
7151   cat conftest.$ac_ext >&5
7152   rm -rf conftest*
7153   glibcpp_cv_func___builtin_fabs_link=no
7154 fi
7155 rm -f conftest*
7156       
7157 fi
7158
7159     fi
7160     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7161     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7162       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7163       cat >> confdefs.h <<EOF
7164 #define ${ac_tr_func} 1
7165 EOF
7166
7167     fi
7168   fi
7169
7170   
7171   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7172 echo "configure:7173: checking for __builtin_fabsl declaration" >&5
7173   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7174     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7175   echo $ac_n "(cached) $ac_c" 1>&6
7176 else
7177   
7178       
7179       ac_ext=C
7180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7181 ac_cpp='$CXXCPP $CPPFLAGS'
7182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7184 cross_compiling=$ac_cv_prog_cxx_cross
7185
7186       cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 #include <math.h>
7190 int main() {
7191  __builtin_fabsl(0);
7192 ; return 0; }
7193 EOF
7194 if { (eval echo configure:7195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7195   rm -rf conftest*
7196   glibcpp_cv_func___builtin_fabsl_use=yes
7197 else
7198   echo "configure: failed program was:" >&5
7199   cat conftest.$ac_ext >&5
7200   rm -rf conftest*
7201   glibcpp_cv_func___builtin_fabsl_use=no
7202 fi
7203 rm -f conftest*
7204       ac_ext=c
7205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7206 ac_cpp='$CPP $CPPFLAGS'
7207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7209 cross_compiling=$ac_cv_prog_cc_cross
7210
7211     
7212 fi
7213
7214   fi
7215   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7216   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7217     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7218 echo "configure:7219: checking for __builtin_fabsl linkage" >&5
7219     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7220       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7221   echo $ac_n "(cached) $ac_c" 1>&6
7222 else
7223   
7224         cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 #include <math.h>
7228 int main() {
7229  __builtin_fabsl(0);
7230 ; return 0; }
7231 EOF
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7233   rm -rf conftest*
7234   glibcpp_cv_func___builtin_fabsl_link=yes
7235 else
7236   echo "configure: failed program was:" >&5
7237   cat conftest.$ac_ext >&5
7238   rm -rf conftest*
7239   glibcpp_cv_func___builtin_fabsl_link=no
7240 fi
7241 rm -f conftest*
7242       
7243 fi
7244
7245     fi
7246     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7247     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7248       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7249       cat >> confdefs.h <<EOF
7250 #define ${ac_tr_func} 1
7251 EOF
7252
7253     fi
7254   fi
7255
7256   
7257   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7258 echo "configure:7259: checking for __builtin_labs declaration" >&5
7259   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7260     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7261   echo $ac_n "(cached) $ac_c" 1>&6
7262 else
7263   
7264       
7265       ac_ext=C
7266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7267 ac_cpp='$CXXCPP $CPPFLAGS'
7268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7270 cross_compiling=$ac_cv_prog_cxx_cross
7271
7272       cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 #include <math.h>
7276 int main() {
7277  __builtin_labs(0);
7278 ; return 0; }
7279 EOF
7280 if { (eval echo configure:7281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7281   rm -rf conftest*
7282   glibcpp_cv_func___builtin_labs_use=yes
7283 else
7284   echo "configure: failed program was:" >&5
7285   cat conftest.$ac_ext >&5
7286   rm -rf conftest*
7287   glibcpp_cv_func___builtin_labs_use=no
7288 fi
7289 rm -f conftest*
7290       ac_ext=c
7291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7295 cross_compiling=$ac_cv_prog_cc_cross
7296
7297     
7298 fi
7299
7300   fi
7301   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7302   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7303     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7304 echo "configure:7305: checking for __builtin_labs linkage" >&5
7305     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7306       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7307   echo $ac_n "(cached) $ac_c" 1>&6
7308 else
7309   
7310         cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 #include <math.h>
7314 int main() {
7315  __builtin_labs(0);
7316 ; return 0; }
7317 EOF
7318 if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7319   rm -rf conftest*
7320   glibcpp_cv_func___builtin_labs_link=yes
7321 else
7322   echo "configure: failed program was:" >&5
7323   cat conftest.$ac_ext >&5
7324   rm -rf conftest*
7325   glibcpp_cv_func___builtin_labs_link=no
7326 fi
7327 rm -f conftest*
7328       
7329 fi
7330
7331     fi
7332     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7333     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7334       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335       cat >> confdefs.h <<EOF
7336 #define ${ac_tr_func} 1
7337 EOF
7338
7339     fi
7340   fi
7341
7342
7343   
7344   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7345 echo "configure:7346: checking for __builtin_sqrtf declaration" >&5
7346   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7347     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7348   echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350   
7351       
7352       ac_ext=C
7353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7354 ac_cpp='$CXXCPP $CPPFLAGS'
7355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7357 cross_compiling=$ac_cv_prog_cxx_cross
7358
7359       cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 #include <math.h>
7363 int main() {
7364  __builtin_sqrtf(0);
7365 ; return 0; }
7366 EOF
7367 if { (eval echo configure:7368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7368   rm -rf conftest*
7369   glibcpp_cv_func___builtin_sqrtf_use=yes
7370 else
7371   echo "configure: failed program was:" >&5
7372   cat conftest.$ac_ext >&5
7373   rm -rf conftest*
7374   glibcpp_cv_func___builtin_sqrtf_use=no
7375 fi
7376 rm -f conftest*
7377       ac_ext=c
7378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7382 cross_compiling=$ac_cv_prog_cc_cross
7383
7384     
7385 fi
7386
7387   fi
7388   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7389   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7390     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7391 echo "configure:7392: checking for __builtin_sqrtf linkage" >&5
7392     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7393       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7394   echo $ac_n "(cached) $ac_c" 1>&6
7395 else
7396   
7397         cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 #include <math.h>
7401 int main() {
7402  __builtin_sqrtf(0);
7403 ; return 0; }
7404 EOF
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406   rm -rf conftest*
7407   glibcpp_cv_func___builtin_sqrtf_link=yes
7408 else
7409   echo "configure: failed program was:" >&5
7410   cat conftest.$ac_ext >&5
7411   rm -rf conftest*
7412   glibcpp_cv_func___builtin_sqrtf_link=no
7413 fi
7414 rm -f conftest*
7415       
7416 fi
7417
7418     fi
7419     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7420     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7421       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7422       cat >> confdefs.h <<EOF
7423 #define ${ac_tr_func} 1
7424 EOF
7425
7426     fi
7427   fi
7428
7429   
7430   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7431 echo "configure:7432: checking for __builtin_sqrt declaration" >&5
7432   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7433     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7434   echo $ac_n "(cached) $ac_c" 1>&6
7435 else
7436   
7437       
7438       ac_ext=C
7439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7440 ac_cpp='$CXXCPP $CPPFLAGS'
7441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7443 cross_compiling=$ac_cv_prog_cxx_cross
7444
7445       cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 #include <math.h>
7449 int main() {
7450  __builtin_sqrt(0);
7451 ; return 0; }
7452 EOF
7453 if { (eval echo configure:7454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7454   rm -rf conftest*
7455   glibcpp_cv_func___builtin_sqrt_use=yes
7456 else
7457   echo "configure: failed program was:" >&5
7458   cat conftest.$ac_ext >&5
7459   rm -rf conftest*
7460   glibcpp_cv_func___builtin_sqrt_use=no
7461 fi
7462 rm -f conftest*
7463       ac_ext=c
7464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7468 cross_compiling=$ac_cv_prog_cc_cross
7469
7470     
7471 fi
7472
7473   fi
7474   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7475   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7476     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7477 echo "configure:7478: checking for __builtin_sqrt linkage" >&5
7478     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7479       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7480   echo $ac_n "(cached) $ac_c" 1>&6
7481 else
7482   
7483         cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 #include <math.h>
7487 int main() {
7488  __builtin_sqrt(0);
7489 ; return 0; }
7490 EOF
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7492   rm -rf conftest*
7493   glibcpp_cv_func___builtin_sqrt_link=yes
7494 else
7495   echo "configure: failed program was:" >&5
7496   cat conftest.$ac_ext >&5
7497   rm -rf conftest*
7498   glibcpp_cv_func___builtin_sqrt_link=no
7499 fi
7500 rm -f conftest*
7501       
7502 fi
7503
7504     fi
7505     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7506     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7507       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7508       cat >> confdefs.h <<EOF
7509 #define ${ac_tr_func} 1
7510 EOF
7511
7512     fi
7513   fi
7514
7515   
7516   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7517 echo "configure:7518: checking for __builtin_sqrtl declaration" >&5
7518   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7519     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7520   echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522   
7523       
7524       ac_ext=C
7525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7526 ac_cpp='$CXXCPP $CPPFLAGS'
7527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7529 cross_compiling=$ac_cv_prog_cxx_cross
7530
7531       cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7534 #include <math.h>
7535 int main() {
7536  __builtin_sqrtl(0);
7537 ; return 0; }
7538 EOF
7539 if { (eval echo configure:7540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7540   rm -rf conftest*
7541   glibcpp_cv_func___builtin_sqrtl_use=yes
7542 else
7543   echo "configure: failed program was:" >&5
7544   cat conftest.$ac_ext >&5
7545   rm -rf conftest*
7546   glibcpp_cv_func___builtin_sqrtl_use=no
7547 fi
7548 rm -f conftest*
7549       ac_ext=c
7550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7551 ac_cpp='$CPP $CPPFLAGS'
7552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7554 cross_compiling=$ac_cv_prog_cc_cross
7555
7556     
7557 fi
7558
7559   fi
7560   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7561   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7562     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7563 echo "configure:7564: checking for __builtin_sqrtl linkage" >&5
7564     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7565       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7566   echo $ac_n "(cached) $ac_c" 1>&6
7567 else
7568   
7569         cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 #include <math.h>
7573 int main() {
7574  __builtin_sqrtl(0);
7575 ; return 0; }
7576 EOF
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578   rm -rf conftest*
7579   glibcpp_cv_func___builtin_sqrtl_link=yes
7580 else
7581   echo "configure: failed program was:" >&5
7582   cat conftest.$ac_ext >&5
7583   rm -rf conftest*
7584   glibcpp_cv_func___builtin_sqrtl_link=no
7585 fi
7586 rm -f conftest*
7587       
7588 fi
7589
7590     fi
7591     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7592     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7593       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7594       cat >> confdefs.h <<EOF
7595 #define ${ac_tr_func} 1
7596 EOF
7597
7598     fi
7599   fi
7600
7601
7602   
7603   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7604 echo "configure:7605: checking for __builtin_sinf declaration" >&5
7605   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7606     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7607   echo $ac_n "(cached) $ac_c" 1>&6
7608 else
7609   
7610       
7611       ac_ext=C
7612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7613 ac_cpp='$CXXCPP $CPPFLAGS'
7614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7616 cross_compiling=$ac_cv_prog_cxx_cross
7617
7618       cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 #include <math.h>
7622 int main() {
7623  __builtin_sinf(0);
7624 ; return 0; }
7625 EOF
7626 if { (eval echo configure:7627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7627   rm -rf conftest*
7628   glibcpp_cv_func___builtin_sinf_use=yes
7629 else
7630   echo "configure: failed program was:" >&5
7631   cat conftest.$ac_ext >&5
7632   rm -rf conftest*
7633   glibcpp_cv_func___builtin_sinf_use=no
7634 fi
7635 rm -f conftest*
7636       ac_ext=c
7637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7641 cross_compiling=$ac_cv_prog_cc_cross
7642
7643     
7644 fi
7645
7646   fi
7647   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7648   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7649     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7650 echo "configure:7651: checking for __builtin_sinf linkage" >&5
7651     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7652       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7653   echo $ac_n "(cached) $ac_c" 1>&6
7654 else
7655   
7656         cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 #include <math.h>
7660 int main() {
7661  __builtin_sinf(0);
7662 ; return 0; }
7663 EOF
7664 if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7665   rm -rf conftest*
7666   glibcpp_cv_func___builtin_sinf_link=yes
7667 else
7668   echo "configure: failed program was:" >&5
7669   cat conftest.$ac_ext >&5
7670   rm -rf conftest*
7671   glibcpp_cv_func___builtin_sinf_link=no
7672 fi
7673 rm -f conftest*
7674       
7675 fi
7676
7677     fi
7678     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7679     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7680       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7681       cat >> confdefs.h <<EOF
7682 #define ${ac_tr_func} 1
7683 EOF
7684
7685     fi
7686   fi
7687
7688   
7689   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7690 echo "configure:7691: checking for __builtin_sin declaration" >&5
7691   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7692     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7693   echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695   
7696       
7697       ac_ext=C
7698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7699 ac_cpp='$CXXCPP $CPPFLAGS'
7700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7702 cross_compiling=$ac_cv_prog_cxx_cross
7703
7704       cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7707 #include <math.h>
7708 int main() {
7709  __builtin_sin(0);
7710 ; return 0; }
7711 EOF
7712 if { (eval echo configure:7713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7713   rm -rf conftest*
7714   glibcpp_cv_func___builtin_sin_use=yes
7715 else
7716   echo "configure: failed program was:" >&5
7717   cat conftest.$ac_ext >&5
7718   rm -rf conftest*
7719   glibcpp_cv_func___builtin_sin_use=no
7720 fi
7721 rm -f conftest*
7722       ac_ext=c
7723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7727 cross_compiling=$ac_cv_prog_cc_cross
7728
7729     
7730 fi
7731
7732   fi
7733   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7734   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7735     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7736 echo "configure:7737: checking for __builtin_sin linkage" >&5
7737     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7738       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7739   echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741   
7742         cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 #include <math.h>
7746 int main() {
7747  __builtin_sin(0);
7748 ; return 0; }
7749 EOF
7750 if { (eval echo configure:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751   rm -rf conftest*
7752   glibcpp_cv_func___builtin_sin_link=yes
7753 else
7754   echo "configure: failed program was:" >&5
7755   cat conftest.$ac_ext >&5
7756   rm -rf conftest*
7757   glibcpp_cv_func___builtin_sin_link=no
7758 fi
7759 rm -f conftest*
7760       
7761 fi
7762
7763     fi
7764     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7765     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7766       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7767       cat >> confdefs.h <<EOF
7768 #define ${ac_tr_func} 1
7769 EOF
7770
7771     fi
7772   fi
7773
7774   
7775   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7776 echo "configure:7777: checking for __builtin_sinl declaration" >&5
7777   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7778     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7779   echo $ac_n "(cached) $ac_c" 1>&6
7780 else
7781   
7782       
7783       ac_ext=C
7784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7785 ac_cpp='$CXXCPP $CPPFLAGS'
7786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7788 cross_compiling=$ac_cv_prog_cxx_cross
7789
7790       cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 #include <math.h>
7794 int main() {
7795  __builtin_sinl(0);
7796 ; return 0; }
7797 EOF
7798 if { (eval echo configure:7799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7799   rm -rf conftest*
7800   glibcpp_cv_func___builtin_sinl_use=yes
7801 else
7802   echo "configure: failed program was:" >&5
7803   cat conftest.$ac_ext >&5
7804   rm -rf conftest*
7805   glibcpp_cv_func___builtin_sinl_use=no
7806 fi
7807 rm -f conftest*
7808       ac_ext=c
7809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7810 ac_cpp='$CPP $CPPFLAGS'
7811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7813 cross_compiling=$ac_cv_prog_cc_cross
7814
7815     
7816 fi
7817
7818   fi
7819   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7820   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7821     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7822 echo "configure:7823: checking for __builtin_sinl linkage" >&5
7823     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7824       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7825   echo $ac_n "(cached) $ac_c" 1>&6
7826 else
7827   
7828         cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 #include <math.h>
7832 int main() {
7833  __builtin_sinl(0);
7834 ; return 0; }
7835 EOF
7836 if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7837   rm -rf conftest*
7838   glibcpp_cv_func___builtin_sinl_link=yes
7839 else
7840   echo "configure: failed program was:" >&5
7841   cat conftest.$ac_ext >&5
7842   rm -rf conftest*
7843   glibcpp_cv_func___builtin_sinl_link=no
7844 fi
7845 rm -f conftest*
7846       
7847 fi
7848
7849     fi
7850     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7851     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7852       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7853       cat >> confdefs.h <<EOF
7854 #define ${ac_tr_func} 1
7855 EOF
7856
7857     fi
7858   fi
7859
7860
7861   
7862   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7863 echo "configure:7864: checking for __builtin_cosf declaration" >&5
7864   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7865     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7866   echo $ac_n "(cached) $ac_c" 1>&6
7867 else
7868   
7869       
7870       ac_ext=C
7871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7872 ac_cpp='$CXXCPP $CPPFLAGS'
7873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7875 cross_compiling=$ac_cv_prog_cxx_cross
7876
7877       cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 #include <math.h>
7881 int main() {
7882  __builtin_cosf(0);
7883 ; return 0; }
7884 EOF
7885 if { (eval echo configure:7886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7886   rm -rf conftest*
7887   glibcpp_cv_func___builtin_cosf_use=yes
7888 else
7889   echo "configure: failed program was:" >&5
7890   cat conftest.$ac_ext >&5
7891   rm -rf conftest*
7892   glibcpp_cv_func___builtin_cosf_use=no
7893 fi
7894 rm -f conftest*
7895       ac_ext=c
7896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7900 cross_compiling=$ac_cv_prog_cc_cross
7901
7902     
7903 fi
7904
7905   fi
7906   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7907   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7908     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7909 echo "configure:7910: checking for __builtin_cosf linkage" >&5
7910     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7911       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7912   echo $ac_n "(cached) $ac_c" 1>&6
7913 else
7914   
7915         cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 #include <math.h>
7919 int main() {
7920  __builtin_cosf(0);
7921 ; return 0; }
7922 EOF
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924   rm -rf conftest*
7925   glibcpp_cv_func___builtin_cosf_link=yes
7926 else
7927   echo "configure: failed program was:" >&5
7928   cat conftest.$ac_ext >&5
7929   rm -rf conftest*
7930   glibcpp_cv_func___builtin_cosf_link=no
7931 fi
7932 rm -f conftest*
7933       
7934 fi
7935
7936     fi
7937     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7938     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7939       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7940       cat >> confdefs.h <<EOF
7941 #define ${ac_tr_func} 1
7942 EOF
7943
7944     fi
7945   fi
7946
7947   
7948   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7949 echo "configure:7950: checking for __builtin_cos declaration" >&5
7950   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7951     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7952   echo $ac_n "(cached) $ac_c" 1>&6
7953 else
7954   
7955       
7956       ac_ext=C
7957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7958 ac_cpp='$CXXCPP $CPPFLAGS'
7959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7961 cross_compiling=$ac_cv_prog_cxx_cross
7962
7963       cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 #include <math.h>
7967 int main() {
7968  __builtin_cos(0);
7969 ; return 0; }
7970 EOF
7971 if { (eval echo configure:7972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7972   rm -rf conftest*
7973   glibcpp_cv_func___builtin_cos_use=yes
7974 else
7975   echo "configure: failed program was:" >&5
7976   cat conftest.$ac_ext >&5
7977   rm -rf conftest*
7978   glibcpp_cv_func___builtin_cos_use=no
7979 fi
7980 rm -f conftest*
7981       ac_ext=c
7982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7983 ac_cpp='$CPP $CPPFLAGS'
7984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7986 cross_compiling=$ac_cv_prog_cc_cross
7987
7988     
7989 fi
7990
7991   fi
7992   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7993   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7994     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7995 echo "configure:7996: checking for __builtin_cos linkage" >&5
7996     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7997       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7998   echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000   
8001         cat > conftest.$ac_ext <<EOF
8002 #line 8003 "configure"
8003 #include "confdefs.h"
8004 #include <math.h>
8005 int main() {
8006  __builtin_cos(0);
8007 ; return 0; }
8008 EOF
8009 if { (eval echo configure:8010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010   rm -rf conftest*
8011   glibcpp_cv_func___builtin_cos_link=yes
8012 else
8013   echo "configure: failed program was:" >&5
8014   cat conftest.$ac_ext >&5
8015   rm -rf conftest*
8016   glibcpp_cv_func___builtin_cos_link=no
8017 fi
8018 rm -f conftest*
8019       
8020 fi
8021
8022     fi
8023     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8024     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8025       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8026       cat >> confdefs.h <<EOF
8027 #define ${ac_tr_func} 1
8028 EOF
8029
8030     fi
8031   fi
8032
8033   
8034   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8035 echo "configure:8036: checking for __builtin_cosl declaration" >&5
8036   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8037     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8038   echo $ac_n "(cached) $ac_c" 1>&6
8039 else
8040   
8041       
8042       ac_ext=C
8043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8044 ac_cpp='$CXXCPP $CPPFLAGS'
8045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8047 cross_compiling=$ac_cv_prog_cxx_cross
8048
8049       cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 #include <math.h>
8053 int main() {
8054  __builtin_cosl(0);
8055 ; return 0; }
8056 EOF
8057 if { (eval echo configure:8058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8058   rm -rf conftest*
8059   glibcpp_cv_func___builtin_cosl_use=yes
8060 else
8061   echo "configure: failed program was:" >&5
8062   cat conftest.$ac_ext >&5
8063   rm -rf conftest*
8064   glibcpp_cv_func___builtin_cosl_use=no
8065 fi
8066 rm -f conftest*
8067       ac_ext=c
8068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8069 ac_cpp='$CPP $CPPFLAGS'
8070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8072 cross_compiling=$ac_cv_prog_cc_cross
8073
8074     
8075 fi
8076
8077   fi
8078   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8079   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8080     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8081 echo "configure:8082: checking for __builtin_cosl linkage" >&5
8082     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8083       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8084   echo $ac_n "(cached) $ac_c" 1>&6
8085 else
8086   
8087         cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 #include <math.h>
8091 int main() {
8092  __builtin_cosl(0);
8093 ; return 0; }
8094 EOF
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8096   rm -rf conftest*
8097   glibcpp_cv_func___builtin_cosl_link=yes
8098 else
8099   echo "configure: failed program was:" >&5
8100   cat conftest.$ac_ext >&5
8101   rm -rf conftest*
8102   glibcpp_cv_func___builtin_cosl_link=no
8103 fi
8104 rm -f conftest*
8105       
8106 fi
8107
8108     fi
8109     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8110     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8111       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8112       cat >> confdefs.h <<EOF
8113 #define ${ac_tr_func} 1
8114 EOF
8115
8116     fi
8117   fi
8118
8119
8120               dummyvar=no
8121   if test x$dummyvar = x"yes"; then
8122     cat >> confdefs.h <<\EOF
8123 #define HAVE___BUILTIN_ABS 1
8124 EOF
8125
8126     cat >> confdefs.h <<\EOF
8127 #define HAVE___BUILTIN_LABS 1
8128 EOF
8129
8130     cat >> confdefs.h <<\EOF
8131 #define HAVE___BUILTIN_COS 1
8132 EOF
8133
8134     cat >> confdefs.h <<\EOF
8135 #define HAVE___BUILTIN_COSF 1
8136 EOF
8137
8138     cat >> confdefs.h <<\EOF
8139 #define HAVE___BUILTIN_COSL 1
8140 EOF
8141
8142     cat >> confdefs.h <<\EOF
8143 #define HAVE___BUILTIN_FABS 1
8144 EOF
8145
8146     cat >> confdefs.h <<\EOF
8147 #define HAVE___BUILTIN_FABSF 1
8148 EOF
8149
8150     cat >> confdefs.h <<\EOF
8151 #define HAVE___BUILTIN_FABSL 1
8152 EOF
8153
8154     cat >> confdefs.h <<\EOF
8155 #define HAVE___BUILTIN_SIN 1
8156 EOF
8157
8158     cat >> confdefs.h <<\EOF
8159 #define HAVE___BUILTIN_SINF 1
8160 EOF
8161
8162     cat >> confdefs.h <<\EOF
8163 #define HAVE___BUILTIN_SINL 1
8164 EOF
8165
8166     cat >> confdefs.h <<\EOF
8167 #define HAVE___BUILTIN_SQRT 1
8168 EOF
8169
8170     cat >> confdefs.h <<\EOF
8171 #define HAVE___BUILTIN_SQRTF 1
8172 EOF
8173
8174     cat >> confdefs.h <<\EOF
8175 #define HAVE___BUILTIN_SQRTL 1
8176 EOF
8177
8178   fi
8179
8180   
8181   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8182   ac_save_CXXFLAGS="$CXXFLAGS"
8183   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8184
8185     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8186 echo "configure:8187: checking for sin in -lm" >&5
8187 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8189   echo $ac_n "(cached) $ac_c" 1>&6
8190 else
8191   ac_save_LIBS="$LIBS"
8192 LIBS="-lm  $LIBS"
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error.  */
8197 /* We use char because int might match the return type of a gcc2
8198     builtin and then its argument prototype would still apply.  */
8199 char sin();
8200
8201 int main() {
8202 sin()
8203 ; return 0; }
8204 EOF
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8206   rm -rf conftest*
8207   eval "ac_cv_lib_$ac_lib_var=yes"
8208 else
8209   echo "configure: failed program was:" >&5
8210   cat conftest.$ac_ext >&5
8211   rm -rf conftest*
8212   eval "ac_cv_lib_$ac_lib_var=no"
8213 fi
8214 rm -f conftest*
8215 LIBS="$ac_save_LIBS"
8216
8217 fi
8218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8219   echo "$ac_t""yes" 1>&6
8220   libm="-lm"
8221 else
8222   echo "$ac_t""no" 1>&6
8223 fi
8224
8225   ac_save_LIBS="$LIBS"
8226   LIBS="$LIBS $libm"
8227
8228     
8229   
8230   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8231 echo "configure:8232: checking for isinf declaration" >&5
8232   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8233     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8234   echo $ac_n "(cached) $ac_c" 1>&6
8235 else
8236   
8237       
8238       ac_ext=C
8239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8240 ac_cpp='$CXXCPP $CPPFLAGS'
8241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8243 cross_compiling=$ac_cv_prog_cxx_cross
8244
8245       cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 #include <math.h>
8249                       #ifdef HAVE_IEEEFP_H
8250                       #include <ieeefp.h>
8251                       #endif
8252                      
8253 int main() {
8254  isinf(0);
8255 ; return 0; }
8256 EOF
8257 if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8258   rm -rf conftest*
8259   glibcpp_cv_func_isinf_use=yes
8260 else
8261   echo "configure: failed program was:" >&5
8262   cat conftest.$ac_ext >&5
8263   rm -rf conftest*
8264   glibcpp_cv_func_isinf_use=no
8265 fi
8266 rm -f conftest*
8267       ac_ext=c
8268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8272 cross_compiling=$ac_cv_prog_cc_cross
8273
8274     
8275 fi
8276
8277   fi
8278   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8279
8280   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8281     for ac_func in isinf
8282 do
8283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8284 echo "configure:8285: checking for $ac_func" >&5
8285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8286   echo $ac_n "(cached) $ac_c" 1>&6
8287 else
8288   cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* System header to define __stub macros and hopefully few prototypes,
8292     which can conflict with char $ac_func(); below.  */
8293 #include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 /* We use char because int might match the return type of a gcc2
8296     builtin and then its argument prototype would still apply.  */
8297 char $ac_func();
8298
8299 int main() {
8300
8301 /* The GNU C library defines this for functions which it implements
8302     to always fail with ENOSYS.  Some functions are actually named
8303     something starting with __ and the normal name is an alias.  */
8304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8305 choke me
8306 #else
8307 $ac_func();
8308 #endif
8309
8310 ; return 0; }
8311 EOF
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313   rm -rf conftest*
8314   eval "ac_cv_func_$ac_func=yes"
8315 else
8316   echo "configure: failed program was:" >&5
8317   cat conftest.$ac_ext >&5
8318   rm -rf conftest*
8319   eval "ac_cv_func_$ac_func=no"
8320 fi
8321 rm -f conftest*
8322 fi
8323
8324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8325   echo "$ac_t""yes" 1>&6
8326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327   cat >> confdefs.h <<EOF
8328 #define $ac_tr_func 1
8329 EOF
8330  
8331 else
8332   echo "$ac_t""no" 1>&6
8333 fi
8334 done
8335     
8336   else
8337     
8338   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8339 echo "configure:8340: checking for _isinf declaration" >&5
8340   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8341     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8342   echo $ac_n "(cached) $ac_c" 1>&6
8343 else
8344   
8345       
8346       ac_ext=C
8347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8348 ac_cpp='$CXXCPP $CPPFLAGS'
8349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8351 cross_compiling=$ac_cv_prog_cxx_cross
8352
8353       cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 #include <math.h>
8357                       #ifdef HAVE_IEEEFP_H
8358                       #include <ieeefp.h>
8359                       #endif
8360                      
8361 int main() {
8362  _isinf(0);
8363 ; return 0; }
8364 EOF
8365 if { (eval echo configure:8366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8366   rm -rf conftest*
8367   glibcpp_cv_func__isinf_use=yes
8368 else
8369   echo "configure: failed program was:" >&5
8370   cat conftest.$ac_ext >&5
8371   rm -rf conftest*
8372   glibcpp_cv_func__isinf_use=no
8373 fi
8374 rm -f conftest*
8375       ac_ext=c
8376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8380 cross_compiling=$ac_cv_prog_cc_cross
8381
8382     
8383 fi
8384
8385   fi
8386   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8387
8388     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8389       for ac_func in _isinf
8390 do
8391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8392 echo "configure:8393: checking for $ac_func" >&5
8393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8394   echo $ac_n "(cached) $ac_c" 1>&6
8395 else
8396   cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 /* System header to define __stub macros and hopefully few prototypes,
8400     which can conflict with char $ac_func(); below.  */
8401 #include <assert.h>
8402 /* Override any gcc2 internal prototype to avoid an error.  */
8403 /* We use char because int might match the return type of a gcc2
8404     builtin and then its argument prototype would still apply.  */
8405 char $ac_func();
8406
8407 int main() {
8408
8409 /* The GNU C library defines this for functions which it implements
8410     to always fail with ENOSYS.  Some functions are actually named
8411     something starting with __ and the normal name is an alias.  */
8412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8413 choke me
8414 #else
8415 $ac_func();
8416 #endif
8417
8418 ; return 0; }
8419 EOF
8420 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8421   rm -rf conftest*
8422   eval "ac_cv_func_$ac_func=yes"
8423 else
8424   echo "configure: failed program was:" >&5
8425   cat conftest.$ac_ext >&5
8426   rm -rf conftest*
8427   eval "ac_cv_func_$ac_func=no"
8428 fi
8429 rm -f conftest*
8430 fi
8431
8432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8433   echo "$ac_t""yes" 1>&6
8434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8435   cat >> confdefs.h <<EOF
8436 #define $ac_tr_func 1
8437 EOF
8438  
8439 else
8440   echo "$ac_t""no" 1>&6
8441 fi
8442 done
8443     
8444     fi
8445   fi
8446
8447   
8448   
8449   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8450 echo "configure:8451: checking for isnan declaration" >&5
8451   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8452     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8453   echo $ac_n "(cached) $ac_c" 1>&6
8454 else
8455   
8456       
8457       ac_ext=C
8458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8459 ac_cpp='$CXXCPP $CPPFLAGS'
8460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8462 cross_compiling=$ac_cv_prog_cxx_cross
8463
8464       cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 #include <math.h>
8468                       #ifdef HAVE_IEEEFP_H
8469                       #include <ieeefp.h>
8470                       #endif
8471                      
8472 int main() {
8473  isnan(0);
8474 ; return 0; }
8475 EOF
8476 if { (eval echo configure:8477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8477   rm -rf conftest*
8478   glibcpp_cv_func_isnan_use=yes
8479 else
8480   echo "configure: failed program was:" >&5
8481   cat conftest.$ac_ext >&5
8482   rm -rf conftest*
8483   glibcpp_cv_func_isnan_use=no
8484 fi
8485 rm -f conftest*
8486       ac_ext=c
8487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8491 cross_compiling=$ac_cv_prog_cc_cross
8492
8493     
8494 fi
8495
8496   fi
8497   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8498
8499   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8500     for ac_func in isnan
8501 do
8502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8503 echo "configure:8504: checking for $ac_func" >&5
8504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8505   echo $ac_n "(cached) $ac_c" 1>&6
8506 else
8507   cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 /* System header to define __stub macros and hopefully few prototypes,
8511     which can conflict with char $ac_func(); below.  */
8512 #include <assert.h>
8513 /* Override any gcc2 internal prototype to avoid an error.  */
8514 /* We use char because int might match the return type of a gcc2
8515     builtin and then its argument prototype would still apply.  */
8516 char $ac_func();
8517
8518 int main() {
8519
8520 /* The GNU C library defines this for functions which it implements
8521     to always fail with ENOSYS.  Some functions are actually named
8522     something starting with __ and the normal name is an alias.  */
8523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8524 choke me
8525 #else
8526 $ac_func();
8527 #endif
8528
8529 ; return 0; }
8530 EOF
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8532   rm -rf conftest*
8533   eval "ac_cv_func_$ac_func=yes"
8534 else
8535   echo "configure: failed program was:" >&5
8536   cat conftest.$ac_ext >&5
8537   rm -rf conftest*
8538   eval "ac_cv_func_$ac_func=no"
8539 fi
8540 rm -f conftest*
8541 fi
8542
8543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8544   echo "$ac_t""yes" 1>&6
8545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8546   cat >> confdefs.h <<EOF
8547 #define $ac_tr_func 1
8548 EOF
8549  
8550 else
8551   echo "$ac_t""no" 1>&6
8552 fi
8553 done
8554     
8555   else
8556     
8557   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8558 echo "configure:8559: checking for _isnan declaration" >&5
8559   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8560     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8561   echo $ac_n "(cached) $ac_c" 1>&6
8562 else
8563   
8564       
8565       ac_ext=C
8566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8567 ac_cpp='$CXXCPP $CPPFLAGS'
8568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8570 cross_compiling=$ac_cv_prog_cxx_cross
8571
8572       cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <math.h>
8576                       #ifdef HAVE_IEEEFP_H
8577                       #include <ieeefp.h>
8578                       #endif
8579                      
8580 int main() {
8581  _isnan(0);
8582 ; return 0; }
8583 EOF
8584 if { (eval echo configure:8585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8585   rm -rf conftest*
8586   glibcpp_cv_func__isnan_use=yes
8587 else
8588   echo "configure: failed program was:" >&5
8589   cat conftest.$ac_ext >&5
8590   rm -rf conftest*
8591   glibcpp_cv_func__isnan_use=no
8592 fi
8593 rm -f conftest*
8594       ac_ext=c
8595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8596 ac_cpp='$CPP $CPPFLAGS'
8597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8599 cross_compiling=$ac_cv_prog_cc_cross
8600
8601     
8602 fi
8603
8604   fi
8605   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8606
8607     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8608       for ac_func in _isnan
8609 do
8610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8611 echo "configure:8612: checking for $ac_func" >&5
8612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
8619     which can conflict with char $ac_func(); below.  */
8620 #include <assert.h>
8621 /* Override any gcc2 internal prototype to avoid an error.  */
8622 /* We use char because int might match the return type of a gcc2
8623     builtin and then its argument prototype would still apply.  */
8624 char $ac_func();
8625
8626 int main() {
8627
8628 /* The GNU C library defines this for functions which it implements
8629     to always fail with ENOSYS.  Some functions are actually named
8630     something starting with __ and the normal name is an alias.  */
8631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8632 choke me
8633 #else
8634 $ac_func();
8635 #endif
8636
8637 ; return 0; }
8638 EOF
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640   rm -rf conftest*
8641   eval "ac_cv_func_$ac_func=yes"
8642 else
8643   echo "configure: failed program was:" >&5
8644   cat conftest.$ac_ext >&5
8645   rm -rf conftest*
8646   eval "ac_cv_func_$ac_func=no"
8647 fi
8648 rm -f conftest*
8649 fi
8650
8651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8652   echo "$ac_t""yes" 1>&6
8653     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8654   cat >> confdefs.h <<EOF
8655 #define $ac_tr_func 1
8656 EOF
8657  
8658 else
8659   echo "$ac_t""no" 1>&6
8660 fi
8661 done
8662     
8663     fi
8664   fi
8665
8666   
8667   
8668   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8669 echo "configure:8670: checking for finite declaration" >&5
8670   if test x${glibcpp_cv_func_finite_use+set} != xset; then
8671     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8672   echo $ac_n "(cached) $ac_c" 1>&6
8673 else
8674   
8675       
8676       ac_ext=C
8677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8678 ac_cpp='$CXXCPP $CPPFLAGS'
8679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8681 cross_compiling=$ac_cv_prog_cxx_cross
8682
8683       cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 #include <math.h>
8687                       #ifdef HAVE_IEEEFP_H
8688                       #include <ieeefp.h>
8689                       #endif
8690                      
8691 int main() {
8692  finite(0);
8693 ; return 0; }
8694 EOF
8695 if { (eval echo configure:8696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8696   rm -rf conftest*
8697   glibcpp_cv_func_finite_use=yes
8698 else
8699   echo "configure: failed program was:" >&5
8700   cat conftest.$ac_ext >&5
8701   rm -rf conftest*
8702   glibcpp_cv_func_finite_use=no
8703 fi
8704 rm -f conftest*
8705       ac_ext=c
8706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8707 ac_cpp='$CPP $CPPFLAGS'
8708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8710 cross_compiling=$ac_cv_prog_cc_cross
8711
8712     
8713 fi
8714
8715   fi
8716   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8717
8718   if test x$glibcpp_cv_func_finite_use = x"yes"; then
8719     for ac_func in finite
8720 do
8721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8722 echo "configure:8723: checking for $ac_func" >&5
8723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8724   echo $ac_n "(cached) $ac_c" 1>&6
8725 else
8726   cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* System header to define __stub macros and hopefully few prototypes,
8730     which can conflict with char $ac_func(); below.  */
8731 #include <assert.h>
8732 /* Override any gcc2 internal prototype to avoid an error.  */
8733 /* We use char because int might match the return type of a gcc2
8734     builtin and then its argument prototype would still apply.  */
8735 char $ac_func();
8736
8737 int main() {
8738
8739 /* The GNU C library defines this for functions which it implements
8740     to always fail with ENOSYS.  Some functions are actually named
8741     something starting with __ and the normal name is an alias.  */
8742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 choke me
8744 #else
8745 $ac_func();
8746 #endif
8747
8748 ; return 0; }
8749 EOF
8750 if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8751   rm -rf conftest*
8752   eval "ac_cv_func_$ac_func=yes"
8753 else
8754   echo "configure: failed program was:" >&5
8755   cat conftest.$ac_ext >&5
8756   rm -rf conftest*
8757   eval "ac_cv_func_$ac_func=no"
8758 fi
8759 rm -f conftest*
8760 fi
8761
8762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8763   echo "$ac_t""yes" 1>&6
8764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8765   cat >> confdefs.h <<EOF
8766 #define $ac_tr_func 1
8767 EOF
8768  
8769 else
8770   echo "$ac_t""no" 1>&6
8771 fi
8772 done
8773     
8774   else
8775     
8776   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8777 echo "configure:8778: checking for _finite declaration" >&5
8778   if test x${glibcpp_cv_func__finite_use+set} != xset; then
8779     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8780   echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8782   
8783       
8784       ac_ext=C
8785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8786 ac_cpp='$CXXCPP $CPPFLAGS'
8787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8789 cross_compiling=$ac_cv_prog_cxx_cross
8790
8791       cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 #include <math.h>
8795                       #ifdef HAVE_IEEEFP_H
8796                       #include <ieeefp.h>
8797                       #endif
8798                      
8799 int main() {
8800  _finite(0);
8801 ; return 0; }
8802 EOF
8803 if { (eval echo configure:8804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8804   rm -rf conftest*
8805   glibcpp_cv_func__finite_use=yes
8806 else
8807   echo "configure: failed program was:" >&5
8808   cat conftest.$ac_ext >&5
8809   rm -rf conftest*
8810   glibcpp_cv_func__finite_use=no
8811 fi
8812 rm -f conftest*
8813       ac_ext=c
8814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8815 ac_cpp='$CPP $CPPFLAGS'
8816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8818 cross_compiling=$ac_cv_prog_cc_cross
8819
8820     
8821 fi
8822
8823   fi
8824   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8825
8826     if test x$glibcpp_cv_func__finite_use = x"yes"; then
8827       for ac_func in _finite
8828 do
8829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8830 echo "configure:8831: checking for $ac_func" >&5
8831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8832   echo $ac_n "(cached) $ac_c" 1>&6
8833 else
8834   cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 /* System header to define __stub macros and hopefully few prototypes,
8838     which can conflict with char $ac_func(); below.  */
8839 #include <assert.h>
8840 /* Override any gcc2 internal prototype to avoid an error.  */
8841 /* We use char because int might match the return type of a gcc2
8842     builtin and then its argument prototype would still apply.  */
8843 char $ac_func();
8844
8845 int main() {
8846
8847 /* The GNU C library defines this for functions which it implements
8848     to always fail with ENOSYS.  Some functions are actually named
8849     something starting with __ and the normal name is an alias.  */
8850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8851 choke me
8852 #else
8853 $ac_func();
8854 #endif
8855
8856 ; return 0; }
8857 EOF
8858 if { (eval echo configure:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8859   rm -rf conftest*
8860   eval "ac_cv_func_$ac_func=yes"
8861 else
8862   echo "configure: failed program was:" >&5
8863   cat conftest.$ac_ext >&5
8864   rm -rf conftest*
8865   eval "ac_cv_func_$ac_func=no"
8866 fi
8867 rm -f conftest*
8868 fi
8869
8870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8871   echo "$ac_t""yes" 1>&6
8872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8873   cat >> confdefs.h <<EOF
8874 #define $ac_tr_func 1
8875 EOF
8876  
8877 else
8878   echo "$ac_t""no" 1>&6
8879 fi
8880 done
8881     
8882     fi
8883   fi
8884
8885   
8886   
8887   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8888 echo "configure:8889: checking for copysign declaration" >&5
8889   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8890     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8891   echo $ac_n "(cached) $ac_c" 1>&6
8892 else
8893   
8894       
8895       ac_ext=C
8896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8897 ac_cpp='$CXXCPP $CPPFLAGS'
8898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8900 cross_compiling=$ac_cv_prog_cxx_cross
8901
8902       cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 #include <math.h>
8906 int main() {
8907  copysign(0, 0);
8908 ; return 0; }
8909 EOF
8910 if { (eval echo configure:8911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8911   rm -rf conftest*
8912   glibcpp_cv_func_copysign_use=yes
8913 else
8914   echo "configure: failed program was:" >&5
8915   cat conftest.$ac_ext >&5
8916   rm -rf conftest*
8917   glibcpp_cv_func_copysign_use=no
8918 fi
8919 rm -f conftest*
8920       ac_ext=c
8921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8925 cross_compiling=$ac_cv_prog_cc_cross
8926
8927     
8928 fi
8929
8930   fi
8931   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8932
8933   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8934     for ac_func in copysign
8935 do
8936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8937 echo "configure:8938: checking for $ac_func" >&5
8938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8939   echo $ac_n "(cached) $ac_c" 1>&6
8940 else
8941   cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 /* System header to define __stub macros and hopefully few prototypes,
8945     which can conflict with char $ac_func(); below.  */
8946 #include <assert.h>
8947 /* Override any gcc2 internal prototype to avoid an error.  */
8948 /* We use char because int might match the return type of a gcc2
8949     builtin and then its argument prototype would still apply.  */
8950 char $ac_func();
8951
8952 int main() {
8953
8954 /* The GNU C library defines this for functions which it implements
8955     to always fail with ENOSYS.  Some functions are actually named
8956     something starting with __ and the normal name is an alias.  */
8957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958 choke me
8959 #else
8960 $ac_func();
8961 #endif
8962
8963 ; return 0; }
8964 EOF
8965 if { (eval echo configure:8966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966   rm -rf conftest*
8967   eval "ac_cv_func_$ac_func=yes"
8968 else
8969   echo "configure: failed program was:" >&5
8970   cat conftest.$ac_ext >&5
8971   rm -rf conftest*
8972   eval "ac_cv_func_$ac_func=no"
8973 fi
8974 rm -f conftest*
8975 fi
8976
8977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8978   echo "$ac_t""yes" 1>&6
8979     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8980   cat >> confdefs.h <<EOF
8981 #define $ac_tr_func 1
8982 EOF
8983  
8984 else
8985   echo "$ac_t""no" 1>&6
8986 fi
8987 done
8988     
8989   else
8990     
8991   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8992 echo "configure:8993: checking for _copysign declaration" >&5
8993   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8994     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8995   echo $ac_n "(cached) $ac_c" 1>&6
8996 else
8997   
8998       
8999       ac_ext=C
9000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9001 ac_cpp='$CXXCPP $CPPFLAGS'
9002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9004 cross_compiling=$ac_cv_prog_cxx_cross
9005
9006       cat > conftest.$ac_ext <<EOF
9007 #line 9008 "configure"
9008 #include "confdefs.h"
9009 #include <math.h>
9010 int main() {
9011  _copysign(0, 0);
9012 ; return 0; }
9013 EOF
9014 if { (eval echo configure:9015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9015   rm -rf conftest*
9016   glibcpp_cv_func__copysign_use=yes
9017 else
9018   echo "configure: failed program was:" >&5
9019   cat conftest.$ac_ext >&5
9020   rm -rf conftest*
9021   glibcpp_cv_func__copysign_use=no
9022 fi
9023 rm -f conftest*
9024       ac_ext=c
9025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029 cross_compiling=$ac_cv_prog_cc_cross
9030
9031     
9032 fi
9033
9034   fi
9035   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9036
9037     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9038       for ac_func in _copysign
9039 do
9040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9041 echo "configure:9042: checking for $ac_func" >&5
9042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9043   echo $ac_n "(cached) $ac_c" 1>&6
9044 else
9045   cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 /* System header to define __stub macros and hopefully few prototypes,
9049     which can conflict with char $ac_func(); below.  */
9050 #include <assert.h>
9051 /* Override any gcc2 internal prototype to avoid an error.  */
9052 /* We use char because int might match the return type of a gcc2
9053     builtin and then its argument prototype would still apply.  */
9054 char $ac_func();
9055
9056 int main() {
9057
9058 /* The GNU C library defines this for functions which it implements
9059     to always fail with ENOSYS.  Some functions are actually named
9060     something starting with __ and the normal name is an alias.  */
9061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9062 choke me
9063 #else
9064 $ac_func();
9065 #endif
9066
9067 ; return 0; }
9068 EOF
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9070   rm -rf conftest*
9071   eval "ac_cv_func_$ac_func=yes"
9072 else
9073   echo "configure: failed program was:" >&5
9074   cat conftest.$ac_ext >&5
9075   rm -rf conftest*
9076   eval "ac_cv_func_$ac_func=no"
9077 fi
9078 rm -f conftest*
9079 fi
9080
9081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9082   echo "$ac_t""yes" 1>&6
9083     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9084   cat >> confdefs.h <<EOF
9085 #define $ac_tr_func 1
9086 EOF
9087  
9088 else
9089   echo "$ac_t""no" 1>&6
9090 fi
9091 done
9092     
9093     fi
9094   fi
9095
9096   
9097   
9098   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9099 echo "configure:9100: checking for sincos declaration" >&5
9100   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9101     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9102   echo $ac_n "(cached) $ac_c" 1>&6
9103 else
9104   
9105       
9106       ac_ext=C
9107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9108 ac_cpp='$CXXCPP $CPPFLAGS'
9109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9111 cross_compiling=$ac_cv_prog_cxx_cross
9112
9113       cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 #include <math.h>
9117 int main() {
9118  sincos(0, 0, 0);
9119 ; return 0; }
9120 EOF
9121 if { (eval echo configure:9122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9122   rm -rf conftest*
9123   glibcpp_cv_func_sincos_use=yes
9124 else
9125   echo "configure: failed program was:" >&5
9126   cat conftest.$ac_ext >&5
9127   rm -rf conftest*
9128   glibcpp_cv_func_sincos_use=no
9129 fi
9130 rm -f conftest*
9131       ac_ext=c
9132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9133 ac_cpp='$CPP $CPPFLAGS'
9134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9136 cross_compiling=$ac_cv_prog_cc_cross
9137
9138     
9139 fi
9140
9141   fi
9142   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9143
9144   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9145     for ac_func in sincos
9146 do
9147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9148 echo "configure:9149: checking for $ac_func" >&5
9149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9150   echo $ac_n "(cached) $ac_c" 1>&6
9151 else
9152   cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 /* System header to define __stub macros and hopefully few prototypes,
9156     which can conflict with char $ac_func(); below.  */
9157 #include <assert.h>
9158 /* Override any gcc2 internal prototype to avoid an error.  */
9159 /* We use char because int might match the return type of a gcc2
9160     builtin and then its argument prototype would still apply.  */
9161 char $ac_func();
9162
9163 int main() {
9164
9165 /* The GNU C library defines this for functions which it implements
9166     to always fail with ENOSYS.  Some functions are actually named
9167     something starting with __ and the normal name is an alias.  */
9168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9169 choke me
9170 #else
9171 $ac_func();
9172 #endif
9173
9174 ; return 0; }
9175 EOF
9176 if { (eval echo configure:9177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9177   rm -rf conftest*
9178   eval "ac_cv_func_$ac_func=yes"
9179 else
9180   echo "configure: failed program was:" >&5
9181   cat conftest.$ac_ext >&5
9182   rm -rf conftest*
9183   eval "ac_cv_func_$ac_func=no"
9184 fi
9185 rm -f conftest*
9186 fi
9187
9188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9189   echo "$ac_t""yes" 1>&6
9190     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9191   cat >> confdefs.h <<EOF
9192 #define $ac_tr_func 1
9193 EOF
9194  
9195 else
9196   echo "$ac_t""no" 1>&6
9197 fi
9198 done
9199     
9200   else
9201     
9202   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9203 echo "configure:9204: checking for _sincos declaration" >&5
9204   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9205     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9206   echo $ac_n "(cached) $ac_c" 1>&6
9207 else
9208   
9209       
9210       ac_ext=C
9211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9212 ac_cpp='$CXXCPP $CPPFLAGS'
9213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9215 cross_compiling=$ac_cv_prog_cxx_cross
9216
9217       cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <math.h>
9221 int main() {
9222  _sincos(0, 0, 0);
9223 ; return 0; }
9224 EOF
9225 if { (eval echo configure:9226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9226   rm -rf conftest*
9227   glibcpp_cv_func__sincos_use=yes
9228 else
9229   echo "configure: failed program was:" >&5
9230   cat conftest.$ac_ext >&5
9231   rm -rf conftest*
9232   glibcpp_cv_func__sincos_use=no
9233 fi
9234 rm -f conftest*
9235       ac_ext=c
9236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9237 ac_cpp='$CPP $CPPFLAGS'
9238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9240 cross_compiling=$ac_cv_prog_cc_cross
9241
9242     
9243 fi
9244
9245   fi
9246   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9247
9248     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9249       for ac_func in _sincos
9250 do
9251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9252 echo "configure:9253: checking for $ac_func" >&5
9253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9254   echo $ac_n "(cached) $ac_c" 1>&6
9255 else
9256   cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* System header to define __stub macros and hopefully few prototypes,
9260     which can conflict with char $ac_func(); below.  */
9261 #include <assert.h>
9262 /* Override any gcc2 internal prototype to avoid an error.  */
9263 /* We use char because int might match the return type of a gcc2
9264     builtin and then its argument prototype would still apply.  */
9265 char $ac_func();
9266
9267 int main() {
9268
9269 /* The GNU C library defines this for functions which it implements
9270     to always fail with ENOSYS.  Some functions are actually named
9271     something starting with __ and the normal name is an alias.  */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273 choke me
9274 #else
9275 $ac_func();
9276 #endif
9277
9278 ; return 0; }
9279 EOF
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281   rm -rf conftest*
9282   eval "ac_cv_func_$ac_func=yes"
9283 else
9284   echo "configure: failed program was:" >&5
9285   cat conftest.$ac_ext >&5
9286   rm -rf conftest*
9287   eval "ac_cv_func_$ac_func=no"
9288 fi
9289 rm -f conftest*
9290 fi
9291
9292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9293   echo "$ac_t""yes" 1>&6
9294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9295   cat >> confdefs.h <<EOF
9296 #define $ac_tr_func 1
9297 EOF
9298  
9299 else
9300   echo "$ac_t""no" 1>&6
9301 fi
9302 done
9303     
9304     fi
9305   fi
9306
9307   
9308   
9309   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9310 echo "configure:9311: checking for fpclass declaration" >&5
9311   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9312     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9313   echo $ac_n "(cached) $ac_c" 1>&6
9314 else
9315   
9316       
9317       ac_ext=C
9318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9319 ac_cpp='$CXXCPP $CPPFLAGS'
9320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9322 cross_compiling=$ac_cv_prog_cxx_cross
9323
9324       cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9327 #include <math.h>
9328                       #ifdef HAVE_IEEEFP_H
9329                       #include <ieeefp.h>
9330                       #endif
9331                      
9332 int main() {
9333  fpclass(0);
9334 ; return 0; }
9335 EOF
9336 if { (eval echo configure:9337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9337   rm -rf conftest*
9338   glibcpp_cv_func_fpclass_use=yes
9339 else
9340   echo "configure: failed program was:" >&5
9341   cat conftest.$ac_ext >&5
9342   rm -rf conftest*
9343   glibcpp_cv_func_fpclass_use=no
9344 fi
9345 rm -f conftest*
9346       ac_ext=c
9347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9348 ac_cpp='$CPP $CPPFLAGS'
9349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9351 cross_compiling=$ac_cv_prog_cc_cross
9352
9353     
9354 fi
9355
9356   fi
9357   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9358
9359   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9360     for ac_func in fpclass
9361 do
9362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9363 echo "configure:9364: checking for $ac_func" >&5
9364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9365   echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367   cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 /* System header to define __stub macros and hopefully few prototypes,
9371     which can conflict with char $ac_func(); below.  */
9372 #include <assert.h>
9373 /* Override any gcc2 internal prototype to avoid an error.  */
9374 /* We use char because int might match the return type of a gcc2
9375     builtin and then its argument prototype would still apply.  */
9376 char $ac_func();
9377
9378 int main() {
9379
9380 /* The GNU C library defines this for functions which it implements
9381     to always fail with ENOSYS.  Some functions are actually named
9382     something starting with __ and the normal name is an alias.  */
9383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384 choke me
9385 #else
9386 $ac_func();
9387 #endif
9388
9389 ; return 0; }
9390 EOF
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9392   rm -rf conftest*
9393   eval "ac_cv_func_$ac_func=yes"
9394 else
9395   echo "configure: failed program was:" >&5
9396   cat conftest.$ac_ext >&5
9397   rm -rf conftest*
9398   eval "ac_cv_func_$ac_func=no"
9399 fi
9400 rm -f conftest*
9401 fi
9402
9403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9404   echo "$ac_t""yes" 1>&6
9405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9406   cat >> confdefs.h <<EOF
9407 #define $ac_tr_func 1
9408 EOF
9409  
9410 else
9411   echo "$ac_t""no" 1>&6
9412 fi
9413 done
9414     
9415   else
9416     
9417   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9418 echo "configure:9419: checking for _fpclass declaration" >&5
9419   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9420     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9421   echo $ac_n "(cached) $ac_c" 1>&6
9422 else
9423   
9424       
9425       ac_ext=C
9426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9427 ac_cpp='$CXXCPP $CPPFLAGS'
9428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9430 cross_compiling=$ac_cv_prog_cxx_cross
9431
9432       cat > conftest.$ac_ext <<EOF
9433 #line 9434 "configure"
9434 #include "confdefs.h"
9435 #include <math.h>
9436                       #ifdef HAVE_IEEEFP_H
9437                       #include <ieeefp.h>
9438                       #endif
9439                      
9440 int main() {
9441  _fpclass(0);
9442 ; return 0; }
9443 EOF
9444 if { (eval echo configure:9445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9445   rm -rf conftest*
9446   glibcpp_cv_func__fpclass_use=yes
9447 else
9448   echo "configure: failed program was:" >&5
9449   cat conftest.$ac_ext >&5
9450   rm -rf conftest*
9451   glibcpp_cv_func__fpclass_use=no
9452 fi
9453 rm -f conftest*
9454       ac_ext=c
9455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9456 ac_cpp='$CPP $CPPFLAGS'
9457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9459 cross_compiling=$ac_cv_prog_cc_cross
9460
9461     
9462 fi
9463
9464   fi
9465   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9466
9467     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9468       for ac_func in _fpclass
9469 do
9470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9471 echo "configure:9472: checking for $ac_func" >&5
9472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9473   echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9475   cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func(); below.  */
9480 #include <assert.h>
9481 /* Override any gcc2 internal prototype to avoid an error.  */
9482 /* We use char because int might match the return type of a gcc2
9483     builtin and then its argument prototype would still apply.  */
9484 char $ac_func();
9485
9486 int main() {
9487
9488 /* The GNU C library defines this for functions which it implements
9489     to always fail with ENOSYS.  Some functions are actually named
9490     something starting with __ and the normal name is an alias.  */
9491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 choke me
9493 #else
9494 $ac_func();
9495 #endif
9496
9497 ; return 0; }
9498 EOF
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9500   rm -rf conftest*
9501   eval "ac_cv_func_$ac_func=yes"
9502 else
9503   echo "configure: failed program was:" >&5
9504   cat conftest.$ac_ext >&5
9505   rm -rf conftest*
9506   eval "ac_cv_func_$ac_func=no"
9507 fi
9508 rm -f conftest*
9509 fi
9510
9511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9512   echo "$ac_t""yes" 1>&6
9513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9514   cat >> confdefs.h <<EOF
9515 #define $ac_tr_func 1
9516 EOF
9517  
9518 else
9519   echo "$ac_t""no" 1>&6
9520 fi
9521 done
9522     
9523     fi
9524   fi
9525
9526   
9527   
9528   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9529 echo "configure:9530: checking for qfpclass declaration" >&5
9530   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9531     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9532   echo $ac_n "(cached) $ac_c" 1>&6
9533 else
9534   
9535       
9536       ac_ext=C
9537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9538 ac_cpp='$CXXCPP $CPPFLAGS'
9539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9541 cross_compiling=$ac_cv_prog_cxx_cross
9542
9543       cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 #include <math.h>
9547                       #ifdef HAVE_IEEEFP_H
9548                       #include <ieeefp.h>
9549                       #endif
9550                      
9551 int main() {
9552  qfpclass(0);
9553 ; return 0; }
9554 EOF
9555 if { (eval echo configure:9556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9556   rm -rf conftest*
9557   glibcpp_cv_func_qfpclass_use=yes
9558 else
9559   echo "configure: failed program was:" >&5
9560   cat conftest.$ac_ext >&5
9561   rm -rf conftest*
9562   glibcpp_cv_func_qfpclass_use=no
9563 fi
9564 rm -f conftest*
9565       ac_ext=c
9566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9567 ac_cpp='$CPP $CPPFLAGS'
9568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9570 cross_compiling=$ac_cv_prog_cc_cross
9571
9572     
9573 fi
9574
9575   fi
9576   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9577
9578   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9579     for ac_func in qfpclass
9580 do
9581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9582 echo "configure:9583: checking for $ac_func" >&5
9583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9584   echo $ac_n "(cached) $ac_c" 1>&6
9585 else
9586   cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure"
9588 #include "confdefs.h"
9589 /* System header to define __stub macros and hopefully few prototypes,
9590     which can conflict with char $ac_func(); below.  */
9591 #include <assert.h>
9592 /* Override any gcc2 internal prototype to avoid an error.  */
9593 /* We use char because int might match the return type of a gcc2
9594     builtin and then its argument prototype would still apply.  */
9595 char $ac_func();
9596
9597 int main() {
9598
9599 /* The GNU C library defines this for functions which it implements
9600     to always fail with ENOSYS.  Some functions are actually named
9601     something starting with __ and the normal name is an alias.  */
9602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9603 choke me
9604 #else
9605 $ac_func();
9606 #endif
9607
9608 ; return 0; }
9609 EOF
9610 if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9611   rm -rf conftest*
9612   eval "ac_cv_func_$ac_func=yes"
9613 else
9614   echo "configure: failed program was:" >&5
9615   cat conftest.$ac_ext >&5
9616   rm -rf conftest*
9617   eval "ac_cv_func_$ac_func=no"
9618 fi
9619 rm -f conftest*
9620 fi
9621
9622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9623   echo "$ac_t""yes" 1>&6
9624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9625   cat >> confdefs.h <<EOF
9626 #define $ac_tr_func 1
9627 EOF
9628  
9629 else
9630   echo "$ac_t""no" 1>&6
9631 fi
9632 done
9633     
9634   else
9635     
9636   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9637 echo "configure:9638: checking for _qfpclass declaration" >&5
9638   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9639     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9640   echo $ac_n "(cached) $ac_c" 1>&6
9641 else
9642   
9643       
9644       ac_ext=C
9645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9646 ac_cpp='$CXXCPP $CPPFLAGS'
9647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9649 cross_compiling=$ac_cv_prog_cxx_cross
9650
9651       cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 #include <math.h>
9655                       #ifdef HAVE_IEEEFP_H
9656                       #include <ieeefp.h>
9657                       #endif
9658                      
9659 int main() {
9660  _qfpclass(0);
9661 ; return 0; }
9662 EOF
9663 if { (eval echo configure:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664   rm -rf conftest*
9665   glibcpp_cv_func__qfpclass_use=yes
9666 else
9667   echo "configure: failed program was:" >&5
9668   cat conftest.$ac_ext >&5
9669   rm -rf conftest*
9670   glibcpp_cv_func__qfpclass_use=no
9671 fi
9672 rm -f conftest*
9673       ac_ext=c
9674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9675 ac_cpp='$CPP $CPPFLAGS'
9676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9678 cross_compiling=$ac_cv_prog_cc_cross
9679
9680     
9681 fi
9682
9683   fi
9684   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9685
9686     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9687       for ac_func in _qfpclass
9688 do
9689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9690 echo "configure:9691: checking for $ac_func" >&5
9691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9692   echo $ac_n "(cached) $ac_c" 1>&6
9693 else
9694   cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* System header to define __stub macros and hopefully few prototypes,
9698     which can conflict with char $ac_func(); below.  */
9699 #include <assert.h>
9700 /* Override any gcc2 internal prototype to avoid an error.  */
9701 /* We use char because int might match the return type of a gcc2
9702     builtin and then its argument prototype would still apply.  */
9703 char $ac_func();
9704
9705 int main() {
9706
9707 /* The GNU C library defines this for functions which it implements
9708     to always fail with ENOSYS.  Some functions are actually named
9709     something starting with __ and the normal name is an alias.  */
9710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9711 choke me
9712 #else
9713 $ac_func();
9714 #endif
9715
9716 ; return 0; }
9717 EOF
9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9719   rm -rf conftest*
9720   eval "ac_cv_func_$ac_func=yes"
9721 else
9722   echo "configure: failed program was:" >&5
9723   cat conftest.$ac_ext >&5
9724   rm -rf conftest*
9725   eval "ac_cv_func_$ac_func=no"
9726 fi
9727 rm -f conftest*
9728 fi
9729
9730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9731   echo "$ac_t""yes" 1>&6
9732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9733   cat >> confdefs.h <<EOF
9734 #define $ac_tr_func 1
9735 EOF
9736  
9737 else
9738   echo "$ac_t""no" 1>&6
9739 fi
9740 done
9741     
9742     fi
9743   fi
9744
9745   
9746   
9747   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9748 echo "configure:9749: checking for hypot declaration" >&5
9749   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9750     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_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  hypot(0, 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_hypot_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_hypot_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_hypot_use" 1>&6
9792
9793   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9794     for ac_func in hypot
9795 do
9796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9797 echo "configure:9798: checking for $ac_func" >&5
9798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9799   echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801   cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 /* System header to define __stub macros and hopefully few prototypes,
9805     which can conflict with char $ac_func(); below.  */
9806 #include <assert.h>
9807 /* Override any gcc2 internal prototype to avoid an error.  */
9808 /* We use char because int might match the return type of a gcc2
9809     builtin and then its argument prototype would still apply.  */
9810 char $ac_func();
9811
9812 int main() {
9813
9814 /* The GNU C library defines this for functions which it implements
9815     to always fail with ENOSYS.  Some functions are actually named
9816     something starting with __ and the normal name is an alias.  */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 choke me
9819 #else
9820 $ac_func();
9821 #endif
9822
9823 ; return 0; }
9824 EOF
9825 if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9826   rm -rf conftest*
9827   eval "ac_cv_func_$ac_func=yes"
9828 else
9829   echo "configure: failed program was:" >&5
9830   cat conftest.$ac_ext >&5
9831   rm -rf conftest*
9832   eval "ac_cv_func_$ac_func=no"
9833 fi
9834 rm -f conftest*
9835 fi
9836
9837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9838   echo "$ac_t""yes" 1>&6
9839     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9840   cat >> confdefs.h <<EOF
9841 #define $ac_tr_func 1
9842 EOF
9843  
9844 else
9845   echo "$ac_t""no" 1>&6
9846 fi
9847 done
9848     
9849   else
9850     
9851   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9852 echo "configure:9853: checking for _hypot declaration" >&5
9853   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9854     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9855   echo $ac_n "(cached) $ac_c" 1>&6
9856 else
9857   
9858       
9859       ac_ext=C
9860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9861 ac_cpp='$CXXCPP $CPPFLAGS'
9862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9864 cross_compiling=$ac_cv_prog_cxx_cross
9865
9866       cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 #include <math.h>
9870 int main() {
9871  _hypot(0, 0);
9872 ; return 0; }
9873 EOF
9874 if { (eval echo configure:9875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9875   rm -rf conftest*
9876   glibcpp_cv_func__hypot_use=yes
9877 else
9878   echo "configure: failed program was:" >&5
9879   cat conftest.$ac_ext >&5
9880   rm -rf conftest*
9881   glibcpp_cv_func__hypot_use=no
9882 fi
9883 rm -f conftest*
9884       ac_ext=c
9885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9886 ac_cpp='$CPP $CPPFLAGS'
9887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9889 cross_compiling=$ac_cv_prog_cc_cross
9890
9891     
9892 fi
9893
9894   fi
9895   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9896
9897     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9898       for ac_func in _hypot
9899 do
9900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9901 echo "configure:9902: checking for $ac_func" >&5
9902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9903   echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9905   cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 /* System header to define __stub macros and hopefully few prototypes,
9909     which can conflict with char $ac_func(); below.  */
9910 #include <assert.h>
9911 /* Override any gcc2 internal prototype to avoid an error.  */
9912 /* We use char because int might match the return type of a gcc2
9913     builtin and then its argument prototype would still apply.  */
9914 char $ac_func();
9915
9916 int main() {
9917
9918 /* The GNU C library defines this for functions which it implements
9919     to always fail with ENOSYS.  Some functions are actually named
9920     something starting with __ and the normal name is an alias.  */
9921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9922 choke me
9923 #else
9924 $ac_func();
9925 #endif
9926
9927 ; return 0; }
9928 EOF
9929 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930   rm -rf conftest*
9931   eval "ac_cv_func_$ac_func=yes"
9932 else
9933   echo "configure: failed program was:" >&5
9934   cat conftest.$ac_ext >&5
9935   rm -rf conftest*
9936   eval "ac_cv_func_$ac_func=no"
9937 fi
9938 rm -f conftest*
9939 fi
9940
9941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9942   echo "$ac_t""yes" 1>&6
9943     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9944   cat >> confdefs.h <<EOF
9945 #define $ac_tr_func 1
9946 EOF
9947  
9948 else
9949   echo "$ac_t""no" 1>&6
9950 fi
9951 done
9952     
9953     fi
9954   fi
9955
9956
9957     
9958   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9959 echo "configure:9960: checking for float trig functions" >&5
9960   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9961   echo $ac_n "(cached) $ac_c" 1>&6
9962 else
9963   
9964     
9965     ac_ext=C
9966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9967 ac_cpp='$CXXCPP $CPPFLAGS'
9968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9970 cross_compiling=$ac_cv_prog_cxx_cross
9971
9972     cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 #include <math.h>
9976 int main() {
9977  `for x in acosf asinf atanf \
9978                                           cosf sinf tanf \
9979                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
9980 ; return 0; }
9981 EOF
9982 if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9983   rm -rf conftest*
9984   glibcpp_cv_func_float_trig_use=yes
9985 else
9986   echo "configure: failed program was:" >&5
9987   cat conftest.$ac_ext >&5
9988   rm -rf conftest*
9989   glibcpp_cv_func_float_trig_use=no
9990 fi
9991 rm -f conftest*
9992     ac_ext=c
9993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9994 ac_cpp='$CPP $CPPFLAGS'
9995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9997 cross_compiling=$ac_cv_prog_cc_cross
9998
9999 fi
10000
10001   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10002   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10003     for ac_func in acosf asinf atanf \
10004                                           cosf sinf tanf \
10005                                           coshf sinhf tanhf
10006 do
10007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10008 echo "configure:10009: checking for $ac_func" >&5
10009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10010   echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10012   cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char $ac_func(); below.  */
10017 #include <assert.h>
10018 /* Override any gcc2 internal prototype to avoid an error.  */
10019 /* We use char because int might match the return type of a gcc2
10020     builtin and then its argument prototype would still apply.  */
10021 char $ac_func();
10022
10023 int main() {
10024
10025 /* The GNU C library defines this for functions which it implements
10026     to always fail with ENOSYS.  Some functions are actually named
10027     something starting with __ and the normal name is an alias.  */
10028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10029 choke me
10030 #else
10031 $ac_func();
10032 #endif
10033
10034 ; return 0; }
10035 EOF
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037   rm -rf conftest*
10038   eval "ac_cv_func_$ac_func=yes"
10039 else
10040   echo "configure: failed program was:" >&5
10041   cat conftest.$ac_ext >&5
10042   rm -rf conftest*
10043   eval "ac_cv_func_$ac_func=no"
10044 fi
10045 rm -f conftest*
10046 fi
10047
10048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10049   echo "$ac_t""yes" 1>&6
10050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10051   cat >> confdefs.h <<EOF
10052 #define $ac_tr_func 1
10053 EOF
10054  
10055 else
10056   echo "$ac_t""no" 1>&6
10057 fi
10058 done
10059
10060   fi
10061
10062   
10063   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10064 echo "configure:10065: checking for float round functions" >&5
10065   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10066   echo $ac_n "(cached) $ac_c" 1>&6
10067 else
10068   
10069     
10070     ac_ext=C
10071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10072 ac_cpp='$CXXCPP $CPPFLAGS'
10073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10075 cross_compiling=$ac_cv_prog_cxx_cross
10076
10077     cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <math.h>
10081 int main() {
10082  `for x in ceilf floorf; do echo "$x (0);"; done` 
10083 ; return 0; }
10084 EOF
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086   rm -rf conftest*
10087   glibcpp_cv_func_float_round_use=yes
10088 else
10089   echo "configure: failed program was:" >&5
10090   cat conftest.$ac_ext >&5
10091   rm -rf conftest*
10092   glibcpp_cv_func_float_round_use=no
10093 fi
10094 rm -f conftest*
10095     ac_ext=c
10096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10097 ac_cpp='$CPP $CPPFLAGS'
10098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10100 cross_compiling=$ac_cv_prog_cc_cross
10101
10102 fi
10103
10104   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10105   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10106     for ac_func in ceilf floorf
10107 do
10108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10109 echo "configure:10110: checking for $ac_func" >&5
10110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10111   echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10113   cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 /* System header to define __stub macros and hopefully few prototypes,
10117     which can conflict with char $ac_func(); below.  */
10118 #include <assert.h>
10119 /* Override any gcc2 internal prototype to avoid an error.  */
10120 /* We use char because int might match the return type of a gcc2
10121     builtin and then its argument prototype would still apply.  */
10122 char $ac_func();
10123
10124 int main() {
10125
10126 /* The GNU C library defines this for functions which it implements
10127     to always fail with ENOSYS.  Some functions are actually named
10128     something starting with __ and the normal name is an alias.  */
10129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10130 choke me
10131 #else
10132 $ac_func();
10133 #endif
10134
10135 ; return 0; }
10136 EOF
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138   rm -rf conftest*
10139   eval "ac_cv_func_$ac_func=yes"
10140 else
10141   echo "configure: failed program was:" >&5
10142   cat conftest.$ac_ext >&5
10143   rm -rf conftest*
10144   eval "ac_cv_func_$ac_func=no"
10145 fi
10146 rm -f conftest*
10147 fi
10148
10149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10150   echo "$ac_t""yes" 1>&6
10151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10152   cat >> confdefs.h <<EOF
10153 #define $ac_tr_func 1
10154 EOF
10155  
10156 else
10157   echo "$ac_t""no" 1>&6
10158 fi
10159 done
10160
10161   fi
10162
10163   
10164   
10165   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10166 echo "configure:10167: checking for isnanf declaration" >&5
10167   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10168     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10169   echo $ac_n "(cached) $ac_c" 1>&6
10170 else
10171   
10172       
10173       ac_ext=C
10174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10175 ac_cpp='$CXXCPP $CPPFLAGS'
10176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10178 cross_compiling=$ac_cv_prog_cxx_cross
10179
10180       cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include <math.h>
10184                       #ifdef HAVE_IEEEFP_H
10185                       #include <ieeefp.h>
10186                       #endif
10187                      
10188 int main() {
10189  isnanf(0);
10190 ; return 0; }
10191 EOF
10192 if { (eval echo configure:10193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10193   rm -rf conftest*
10194   glibcpp_cv_func_isnanf_use=yes
10195 else
10196   echo "configure: failed program was:" >&5
10197   cat conftest.$ac_ext >&5
10198   rm -rf conftest*
10199   glibcpp_cv_func_isnanf_use=no
10200 fi
10201 rm -f conftest*
10202       ac_ext=c
10203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10204 ac_cpp='$CPP $CPPFLAGS'
10205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10207 cross_compiling=$ac_cv_prog_cc_cross
10208
10209     
10210 fi
10211
10212   fi
10213   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10214
10215   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10216     for ac_func in isnanf
10217 do
10218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10219 echo "configure:10220: checking for $ac_func" >&5
10220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10221   echo $ac_n "(cached) $ac_c" 1>&6
10222 else
10223   cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 /* System header to define __stub macros and hopefully few prototypes,
10227     which can conflict with char $ac_func(); below.  */
10228 #include <assert.h>
10229 /* Override any gcc2 internal prototype to avoid an error.  */
10230 /* We use char because int might match the return type of a gcc2
10231     builtin and then its argument prototype would still apply.  */
10232 char $ac_func();
10233
10234 int main() {
10235
10236 /* The GNU C library defines this for functions which it implements
10237     to always fail with ENOSYS.  Some functions are actually named
10238     something starting with __ and the normal name is an alias.  */
10239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10240 choke me
10241 #else
10242 $ac_func();
10243 #endif
10244
10245 ; return 0; }
10246 EOF
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10248   rm -rf conftest*
10249   eval "ac_cv_func_$ac_func=yes"
10250 else
10251   echo "configure: failed program was:" >&5
10252   cat conftest.$ac_ext >&5
10253   rm -rf conftest*
10254   eval "ac_cv_func_$ac_func=no"
10255 fi
10256 rm -f conftest*
10257 fi
10258
10259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10260   echo "$ac_t""yes" 1>&6
10261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10262   cat >> confdefs.h <<EOF
10263 #define $ac_tr_func 1
10264 EOF
10265  
10266 else
10267   echo "$ac_t""no" 1>&6
10268 fi
10269 done
10270     
10271   else
10272     
10273   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10274 echo "configure:10275: checking for _isnanf declaration" >&5
10275   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10276     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10277   echo $ac_n "(cached) $ac_c" 1>&6
10278 else
10279   
10280       
10281       ac_ext=C
10282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10283 ac_cpp='$CXXCPP $CPPFLAGS'
10284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10286 cross_compiling=$ac_cv_prog_cxx_cross
10287
10288       cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <math.h>
10292                       #ifdef HAVE_IEEEFP_H
10293                       #include <ieeefp.h>
10294                       #endif
10295                      
10296 int main() {
10297  _isnanf(0);
10298 ; return 0; }
10299 EOF
10300 if { (eval echo configure:10301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10301   rm -rf conftest*
10302   glibcpp_cv_func__isnanf_use=yes
10303 else
10304   echo "configure: failed program was:" >&5
10305   cat conftest.$ac_ext >&5
10306   rm -rf conftest*
10307   glibcpp_cv_func__isnanf_use=no
10308 fi
10309 rm -f conftest*
10310       ac_ext=c
10311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10315 cross_compiling=$ac_cv_prog_cc_cross
10316
10317     
10318 fi
10319
10320   fi
10321   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10322
10323     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10324       for ac_func in _isnanf
10325 do
10326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10327 echo "configure:10328: checking for $ac_func" >&5
10328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10329   echo $ac_n "(cached) $ac_c" 1>&6
10330 else
10331   cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10334 /* System header to define __stub macros and hopefully few prototypes,
10335     which can conflict with char $ac_func(); below.  */
10336 #include <assert.h>
10337 /* Override any gcc2 internal prototype to avoid an error.  */
10338 /* We use char because int might match the return type of a gcc2
10339     builtin and then its argument prototype would still apply.  */
10340 char $ac_func();
10341
10342 int main() {
10343
10344 /* The GNU C library defines this for functions which it implements
10345     to always fail with ENOSYS.  Some functions are actually named
10346     something starting with __ and the normal name is an alias.  */
10347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10348 choke me
10349 #else
10350 $ac_func();
10351 #endif
10352
10353 ; return 0; }
10354 EOF
10355 if { (eval echo configure:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10356   rm -rf conftest*
10357   eval "ac_cv_func_$ac_func=yes"
10358 else
10359   echo "configure: failed program was:" >&5
10360   cat conftest.$ac_ext >&5
10361   rm -rf conftest*
10362   eval "ac_cv_func_$ac_func=no"
10363 fi
10364 rm -f conftest*
10365 fi
10366
10367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10368   echo "$ac_t""yes" 1>&6
10369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10370   cat >> confdefs.h <<EOF
10371 #define $ac_tr_func 1
10372 EOF
10373  
10374 else
10375   echo "$ac_t""no" 1>&6
10376 fi
10377 done
10378     
10379     fi
10380   fi
10381
10382   
10383   
10384   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10385 echo "configure:10386: checking for isinff declaration" >&5
10386   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10387     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10388   echo $ac_n "(cached) $ac_c" 1>&6
10389 else
10390   
10391       
10392       ac_ext=C
10393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10394 ac_cpp='$CXXCPP $CPPFLAGS'
10395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10397 cross_compiling=$ac_cv_prog_cxx_cross
10398
10399       cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 #include <math.h>
10403                       #ifdef HAVE_IEEEFP_H
10404                       #include <ieeefp.h>
10405                       #endif
10406                      
10407 int main() {
10408  isinff(0);
10409 ; return 0; }
10410 EOF
10411 if { (eval echo configure:10412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10412   rm -rf conftest*
10413   glibcpp_cv_func_isinff_use=yes
10414 else
10415   echo "configure: failed program was:" >&5
10416   cat conftest.$ac_ext >&5
10417   rm -rf conftest*
10418   glibcpp_cv_func_isinff_use=no
10419 fi
10420 rm -f conftest*
10421       ac_ext=c
10422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10423 ac_cpp='$CPP $CPPFLAGS'
10424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10426 cross_compiling=$ac_cv_prog_cc_cross
10427
10428     
10429 fi
10430
10431   fi
10432   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10433
10434   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10435     for ac_func in isinff
10436 do
10437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10438 echo "configure:10439: checking for $ac_func" >&5
10439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10440   echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10442   cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 /* System header to define __stub macros and hopefully few prototypes,
10446     which can conflict with char $ac_func(); below.  */
10447 #include <assert.h>
10448 /* Override any gcc2 internal prototype to avoid an error.  */
10449 /* We use char because int might match the return type of a gcc2
10450     builtin and then its argument prototype would still apply.  */
10451 char $ac_func();
10452
10453 int main() {
10454
10455 /* The GNU C library defines this for functions which it implements
10456     to always fail with ENOSYS.  Some functions are actually named
10457     something starting with __ and the normal name is an alias.  */
10458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10459 choke me
10460 #else
10461 $ac_func();
10462 #endif
10463
10464 ; return 0; }
10465 EOF
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467   rm -rf conftest*
10468   eval "ac_cv_func_$ac_func=yes"
10469 else
10470   echo "configure: failed program was:" >&5
10471   cat conftest.$ac_ext >&5
10472   rm -rf conftest*
10473   eval "ac_cv_func_$ac_func=no"
10474 fi
10475 rm -f conftest*
10476 fi
10477
10478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10479   echo "$ac_t""yes" 1>&6
10480     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10481   cat >> confdefs.h <<EOF
10482 #define $ac_tr_func 1
10483 EOF
10484  
10485 else
10486   echo "$ac_t""no" 1>&6
10487 fi
10488 done
10489     
10490   else
10491     
10492   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10493 echo "configure:10494: checking for _isinff declaration" >&5
10494   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10495     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10496   echo $ac_n "(cached) $ac_c" 1>&6
10497 else
10498   
10499       
10500       ac_ext=C
10501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10502 ac_cpp='$CXXCPP $CPPFLAGS'
10503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10505 cross_compiling=$ac_cv_prog_cxx_cross
10506
10507       cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 #include <math.h>
10511                       #ifdef HAVE_IEEEFP_H
10512                       #include <ieeefp.h>
10513                       #endif
10514                      
10515 int main() {
10516  _isinff(0);
10517 ; return 0; }
10518 EOF
10519 if { (eval echo configure:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10520   rm -rf conftest*
10521   glibcpp_cv_func__isinff_use=yes
10522 else
10523   echo "configure: failed program was:" >&5
10524   cat conftest.$ac_ext >&5
10525   rm -rf conftest*
10526   glibcpp_cv_func__isinff_use=no
10527 fi
10528 rm -f conftest*
10529       ac_ext=c
10530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10531 ac_cpp='$CPP $CPPFLAGS'
10532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10534 cross_compiling=$ac_cv_prog_cc_cross
10535
10536     
10537 fi
10538
10539   fi
10540   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10541
10542     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10543       for ac_func in _isinff
10544 do
10545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10546 echo "configure:10547: checking for $ac_func" >&5
10547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10548   echo $ac_n "(cached) $ac_c" 1>&6
10549 else
10550   cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 /* System header to define __stub macros and hopefully few prototypes,
10554     which can conflict with char $ac_func(); below.  */
10555 #include <assert.h>
10556 /* Override any gcc2 internal prototype to avoid an error.  */
10557 /* We use char because int might match the return type of a gcc2
10558     builtin and then its argument prototype would still apply.  */
10559 char $ac_func();
10560
10561 int main() {
10562
10563 /* The GNU C library defines this for functions which it implements
10564     to always fail with ENOSYS.  Some functions are actually named
10565     something starting with __ and the normal name is an alias.  */
10566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10567 choke me
10568 #else
10569 $ac_func();
10570 #endif
10571
10572 ; return 0; }
10573 EOF
10574 if { (eval echo configure:10575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10575   rm -rf conftest*
10576   eval "ac_cv_func_$ac_func=yes"
10577 else
10578   echo "configure: failed program was:" >&5
10579   cat conftest.$ac_ext >&5
10580   rm -rf conftest*
10581   eval "ac_cv_func_$ac_func=no"
10582 fi
10583 rm -f conftest*
10584 fi
10585
10586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10587   echo "$ac_t""yes" 1>&6
10588     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10589   cat >> confdefs.h <<EOF
10590 #define $ac_tr_func 1
10591 EOF
10592  
10593 else
10594   echo "$ac_t""no" 1>&6
10595 fi
10596 done
10597     
10598     fi
10599   fi
10600
10601   
10602   
10603   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10604 echo "configure:10605: checking for atan2f declaration" >&5
10605   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10606     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10607   echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609   
10610       
10611       ac_ext=C
10612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10613 ac_cpp='$CXXCPP $CPPFLAGS'
10614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10616 cross_compiling=$ac_cv_prog_cxx_cross
10617
10618       cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 #include <math.h>
10622 int main() {
10623  atan2f(0, 0);
10624 ; return 0; }
10625 EOF
10626 if { (eval echo configure:10627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10627   rm -rf conftest*
10628   glibcpp_cv_func_atan2f_use=yes
10629 else
10630   echo "configure: failed program was:" >&5
10631   cat conftest.$ac_ext >&5
10632   rm -rf conftest*
10633   glibcpp_cv_func_atan2f_use=no
10634 fi
10635 rm -f conftest*
10636       ac_ext=c
10637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10638 ac_cpp='$CPP $CPPFLAGS'
10639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10641 cross_compiling=$ac_cv_prog_cc_cross
10642
10643     
10644 fi
10645
10646   fi
10647   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10648
10649   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10650     for ac_func in atan2f
10651 do
10652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10653 echo "configure:10654: checking for $ac_func" >&5
10654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10655   echo $ac_n "(cached) $ac_c" 1>&6
10656 else
10657   cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 /* System header to define __stub macros and hopefully few prototypes,
10661     which can conflict with char $ac_func(); below.  */
10662 #include <assert.h>
10663 /* Override any gcc2 internal prototype to avoid an error.  */
10664 /* We use char because int might match the return type of a gcc2
10665     builtin and then its argument prototype would still apply.  */
10666 char $ac_func();
10667
10668 int main() {
10669
10670 /* The GNU C library defines this for functions which it implements
10671     to always fail with ENOSYS.  Some functions are actually named
10672     something starting with __ and the normal name is an alias.  */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10674 choke me
10675 #else
10676 $ac_func();
10677 #endif
10678
10679 ; return 0; }
10680 EOF
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10682   rm -rf conftest*
10683   eval "ac_cv_func_$ac_func=yes"
10684 else
10685   echo "configure: failed program was:" >&5
10686   cat conftest.$ac_ext >&5
10687   rm -rf conftest*
10688   eval "ac_cv_func_$ac_func=no"
10689 fi
10690 rm -f conftest*
10691 fi
10692
10693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10694   echo "$ac_t""yes" 1>&6
10695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10696   cat >> confdefs.h <<EOF
10697 #define $ac_tr_func 1
10698 EOF
10699  
10700 else
10701   echo "$ac_t""no" 1>&6
10702 fi
10703 done
10704     
10705   else
10706     
10707   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10708 echo "configure:10709: checking for _atan2f declaration" >&5
10709   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10710     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10711   echo $ac_n "(cached) $ac_c" 1>&6
10712 else
10713   
10714       
10715       ac_ext=C
10716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10717 ac_cpp='$CXXCPP $CPPFLAGS'
10718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10720 cross_compiling=$ac_cv_prog_cxx_cross
10721
10722       cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 #include <math.h>
10726 int main() {
10727  _atan2f(0, 0);
10728 ; return 0; }
10729 EOF
10730 if { (eval echo configure:10731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10731   rm -rf conftest*
10732   glibcpp_cv_func__atan2f_use=yes
10733 else
10734   echo "configure: failed program was:" >&5
10735   cat conftest.$ac_ext >&5
10736   rm -rf conftest*
10737   glibcpp_cv_func__atan2f_use=no
10738 fi
10739 rm -f conftest*
10740       ac_ext=c
10741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10745 cross_compiling=$ac_cv_prog_cc_cross
10746
10747     
10748 fi
10749
10750   fi
10751   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10752
10753     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10754       for ac_func in _atan2f
10755 do
10756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_func" >&5
10758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10759   echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761   cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 /* System header to define __stub macros and hopefully few prototypes,
10765     which can conflict with char $ac_func(); below.  */
10766 #include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 /* We use char because int might match the return type of a gcc2
10769     builtin and then its argument prototype would still apply.  */
10770 char $ac_func();
10771
10772 int main() {
10773
10774 /* The GNU C library defines this for functions which it implements
10775     to always fail with ENOSYS.  Some functions are actually named
10776     something starting with __ and the normal name is an alias.  */
10777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10778 choke me
10779 #else
10780 $ac_func();
10781 #endif
10782
10783 ; return 0; }
10784 EOF
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786   rm -rf conftest*
10787   eval "ac_cv_func_$ac_func=yes"
10788 else
10789   echo "configure: failed program was:" >&5
10790   cat conftest.$ac_ext >&5
10791   rm -rf conftest*
10792   eval "ac_cv_func_$ac_func=no"
10793 fi
10794 rm -f conftest*
10795 fi
10796
10797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10798   echo "$ac_t""yes" 1>&6
10799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10800   cat >> confdefs.h <<EOF
10801 #define $ac_tr_func 1
10802 EOF
10803  
10804 else
10805   echo "$ac_t""no" 1>&6
10806 fi
10807 done
10808     
10809     fi
10810   fi
10811
10812   
10813   
10814   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10815 echo "configure:10816: checking for fabsf declaration" >&5
10816   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10817     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10818   echo $ac_n "(cached) $ac_c" 1>&6
10819 else
10820   
10821       
10822       ac_ext=C
10823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10824 ac_cpp='$CXXCPP $CPPFLAGS'
10825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10827 cross_compiling=$ac_cv_prog_cxx_cross
10828
10829       cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 #include <math.h>
10833                       #ifdef HAVE_IEEEFP_H
10834                       #include <ieeefp.h>
10835                       #endif
10836                      
10837 int main() {
10838  fabsf(0);
10839 ; return 0; }
10840 EOF
10841 if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10842   rm -rf conftest*
10843   glibcpp_cv_func_fabsf_use=yes
10844 else
10845   echo "configure: failed program was:" >&5
10846   cat conftest.$ac_ext >&5
10847   rm -rf conftest*
10848   glibcpp_cv_func_fabsf_use=no
10849 fi
10850 rm -f conftest*
10851       ac_ext=c
10852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CPP $CPPFLAGS'
10854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cc_cross
10857
10858     
10859 fi
10860
10861   fi
10862   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10863
10864   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10865     for ac_func in fabsf
10866 do
10867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10868 echo "configure:10869: checking for $ac_func" >&5
10869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10870   echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872   cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func(); below.  */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error.  */
10879 /* We use char because int might match the return type of a gcc2
10880     builtin and then its argument prototype would still apply.  */
10881 char $ac_func();
10882
10883 int main() {
10884
10885 /* The GNU C library defines this for functions which it implements
10886     to always fail with ENOSYS.  Some functions are actually named
10887     something starting with __ and the normal name is an alias.  */
10888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10889 choke me
10890 #else
10891 $ac_func();
10892 #endif
10893
10894 ; return 0; }
10895 EOF
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10897   rm -rf conftest*
10898   eval "ac_cv_func_$ac_func=yes"
10899 else
10900   echo "configure: failed program was:" >&5
10901   cat conftest.$ac_ext >&5
10902   rm -rf conftest*
10903   eval "ac_cv_func_$ac_func=no"
10904 fi
10905 rm -f conftest*
10906 fi
10907
10908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10909   echo "$ac_t""yes" 1>&6
10910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10911   cat >> confdefs.h <<EOF
10912 #define $ac_tr_func 1
10913 EOF
10914  
10915 else
10916   echo "$ac_t""no" 1>&6
10917 fi
10918 done
10919     
10920   else
10921     
10922   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10923 echo "configure:10924: checking for _fabsf declaration" >&5
10924   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10925     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10926   echo $ac_n "(cached) $ac_c" 1>&6
10927 else
10928   
10929       
10930       ac_ext=C
10931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10932 ac_cpp='$CXXCPP $CPPFLAGS'
10933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10935 cross_compiling=$ac_cv_prog_cxx_cross
10936
10937       cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <math.h>
10941                       #ifdef HAVE_IEEEFP_H
10942                       #include <ieeefp.h>
10943                       #endif
10944                      
10945 int main() {
10946  _fabsf(0);
10947 ; return 0; }
10948 EOF
10949 if { (eval echo configure:10950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10950   rm -rf conftest*
10951   glibcpp_cv_func__fabsf_use=yes
10952 else
10953   echo "configure: failed program was:" >&5
10954   cat conftest.$ac_ext >&5
10955   rm -rf conftest*
10956   glibcpp_cv_func__fabsf_use=no
10957 fi
10958 rm -f conftest*
10959       ac_ext=c
10960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10964 cross_compiling=$ac_cv_prog_cc_cross
10965
10966     
10967 fi
10968
10969   fi
10970   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10971
10972     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10973       for ac_func in _fabsf
10974 do
10975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10976 echo "configure:10977: checking for $ac_func" >&5
10977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10978   echo $ac_n "(cached) $ac_c" 1>&6
10979 else
10980   cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10983 /* System header to define __stub macros and hopefully few prototypes,
10984     which can conflict with char $ac_func(); below.  */
10985 #include <assert.h>
10986 /* Override any gcc2 internal prototype to avoid an error.  */
10987 /* We use char because int might match the return type of a gcc2
10988     builtin and then its argument prototype would still apply.  */
10989 char $ac_func();
10990
10991 int main() {
10992
10993 /* The GNU C library defines this for functions which it implements
10994     to always fail with ENOSYS.  Some functions are actually named
10995     something starting with __ and the normal name is an alias.  */
10996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10997 choke me
10998 #else
10999 $ac_func();
11000 #endif
11001
11002 ; return 0; }
11003 EOF
11004 if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11005   rm -rf conftest*
11006   eval "ac_cv_func_$ac_func=yes"
11007 else
11008   echo "configure: failed program was:" >&5
11009   cat conftest.$ac_ext >&5
11010   rm -rf conftest*
11011   eval "ac_cv_func_$ac_func=no"
11012 fi
11013 rm -f conftest*
11014 fi
11015
11016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11017   echo "$ac_t""yes" 1>&6
11018     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11019   cat >> confdefs.h <<EOF
11020 #define $ac_tr_func 1
11021 EOF
11022  
11023 else
11024   echo "$ac_t""no" 1>&6
11025 fi
11026 done
11027     
11028     fi
11029   fi
11030
11031   
11032   
11033   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11034 echo "configure:11035: checking for fmodf declaration" >&5
11035   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11036     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11037   echo $ac_n "(cached) $ac_c" 1>&6
11038 else
11039   
11040       
11041       ac_ext=C
11042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11043 ac_cpp='$CXXCPP $CPPFLAGS'
11044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11046 cross_compiling=$ac_cv_prog_cxx_cross
11047
11048       cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 #include <math.h>
11052 int main() {
11053  fmodf(0, 0);
11054 ; return 0; }
11055 EOF
11056 if { (eval echo configure:11057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11057   rm -rf conftest*
11058   glibcpp_cv_func_fmodf_use=yes
11059 else
11060   echo "configure: failed program was:" >&5
11061   cat conftest.$ac_ext >&5
11062   rm -rf conftest*
11063   glibcpp_cv_func_fmodf_use=no
11064 fi
11065 rm -f conftest*
11066       ac_ext=c
11067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11068 ac_cpp='$CPP $CPPFLAGS'
11069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11071 cross_compiling=$ac_cv_prog_cc_cross
11072
11073     
11074 fi
11075
11076   fi
11077   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11078
11079   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11080     for ac_func in fmodf
11081 do
11082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11083 echo "configure:11084: checking for $ac_func" >&5
11084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11085   echo $ac_n "(cached) $ac_c" 1>&6
11086 else
11087   cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091     which can conflict with char $ac_func(); below.  */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error.  */
11094 /* We use char because int might match the return type of a gcc2
11095     builtin and then its argument prototype would still apply.  */
11096 char $ac_func();
11097
11098 int main() {
11099
11100 /* The GNU C library defines this for functions which it implements
11101     to always fail with ENOSYS.  Some functions are actually named
11102     something starting with __ and the normal name is an alias.  */
11103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11104 choke me
11105 #else
11106 $ac_func();
11107 #endif
11108
11109 ; return 0; }
11110 EOF
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11112   rm -rf conftest*
11113   eval "ac_cv_func_$ac_func=yes"
11114 else
11115   echo "configure: failed program was:" >&5
11116   cat conftest.$ac_ext >&5
11117   rm -rf conftest*
11118   eval "ac_cv_func_$ac_func=no"
11119 fi
11120 rm -f conftest*
11121 fi
11122
11123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11124   echo "$ac_t""yes" 1>&6
11125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11126   cat >> confdefs.h <<EOF
11127 #define $ac_tr_func 1
11128 EOF
11129  
11130 else
11131   echo "$ac_t""no" 1>&6
11132 fi
11133 done
11134     
11135   else
11136     
11137   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11138 echo "configure:11139: checking for _fmodf declaration" >&5
11139   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11140     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11141   echo $ac_n "(cached) $ac_c" 1>&6
11142 else
11143   
11144       
11145       ac_ext=C
11146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11147 ac_cpp='$CXXCPP $CPPFLAGS'
11148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11150 cross_compiling=$ac_cv_prog_cxx_cross
11151
11152       cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <math.h>
11156 int main() {
11157  _fmodf(0, 0);
11158 ; return 0; }
11159 EOF
11160 if { (eval echo configure:11161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11161   rm -rf conftest*
11162   glibcpp_cv_func__fmodf_use=yes
11163 else
11164   echo "configure: failed program was:" >&5
11165   cat conftest.$ac_ext >&5
11166   rm -rf conftest*
11167   glibcpp_cv_func__fmodf_use=no
11168 fi
11169 rm -f conftest*
11170       ac_ext=c
11171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11172 ac_cpp='$CPP $CPPFLAGS'
11173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11175 cross_compiling=$ac_cv_prog_cc_cross
11176
11177     
11178 fi
11179
11180   fi
11181   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11182
11183     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11184       for ac_func in _fmodf
11185 do
11186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11187 echo "configure:11188: checking for $ac_func" >&5
11188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11189   echo $ac_n "(cached) $ac_c" 1>&6
11190 else
11191   cat > conftest.$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 /* System header to define __stub macros and hopefully few prototypes,
11195     which can conflict with char $ac_func(); below.  */
11196 #include <assert.h>
11197 /* Override any gcc2 internal prototype to avoid an error.  */
11198 /* We use char because int might match the return type of a gcc2
11199     builtin and then its argument prototype would still apply.  */
11200 char $ac_func();
11201
11202 int main() {
11203
11204 /* The GNU C library defines this for functions which it implements
11205     to always fail with ENOSYS.  Some functions are actually named
11206     something starting with __ and the normal name is an alias.  */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11208 choke me
11209 #else
11210 $ac_func();
11211 #endif
11212
11213 ; return 0; }
11214 EOF
11215 if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216   rm -rf conftest*
11217   eval "ac_cv_func_$ac_func=yes"
11218 else
11219   echo "configure: failed program was:" >&5
11220   cat conftest.$ac_ext >&5
11221   rm -rf conftest*
11222   eval "ac_cv_func_$ac_func=no"
11223 fi
11224 rm -f conftest*
11225 fi
11226
11227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11228   echo "$ac_t""yes" 1>&6
11229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11230   cat >> confdefs.h <<EOF
11231 #define $ac_tr_func 1
11232 EOF
11233  
11234 else
11235   echo "$ac_t""no" 1>&6
11236 fi
11237 done
11238     
11239     fi
11240   fi
11241
11242   
11243   
11244   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11245 echo "configure:11246: checking for frexpf declaration" >&5
11246   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11247     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11248   echo $ac_n "(cached) $ac_c" 1>&6
11249 else
11250   
11251       
11252       ac_ext=C
11253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11254 ac_cpp='$CXXCPP $CPPFLAGS'
11255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11257 cross_compiling=$ac_cv_prog_cxx_cross
11258
11259       cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 #include <math.h>
11263 int main() {
11264  frexpf(0, 0);
11265 ; return 0; }
11266 EOF
11267 if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268   rm -rf conftest*
11269   glibcpp_cv_func_frexpf_use=yes
11270 else
11271   echo "configure: failed program was:" >&5
11272   cat conftest.$ac_ext >&5
11273   rm -rf conftest*
11274   glibcpp_cv_func_frexpf_use=no
11275 fi
11276 rm -f conftest*
11277       ac_ext=c
11278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11279 ac_cpp='$CPP $CPPFLAGS'
11280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11282 cross_compiling=$ac_cv_prog_cc_cross
11283
11284     
11285 fi
11286
11287   fi
11288   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11289
11290   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11291     for ac_func in frexpf
11292 do
11293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11294 echo "configure:11295: checking for $ac_func" >&5
11295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11296   echo $ac_n "(cached) $ac_c" 1>&6
11297 else
11298   cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11301 /* System header to define __stub macros and hopefully few prototypes,
11302     which can conflict with char $ac_func(); below.  */
11303 #include <assert.h>
11304 /* Override any gcc2 internal prototype to avoid an error.  */
11305 /* We use char because int might match the return type of a gcc2
11306     builtin and then its argument prototype would still apply.  */
11307 char $ac_func();
11308
11309 int main() {
11310
11311 /* The GNU C library defines this for functions which it implements
11312     to always fail with ENOSYS.  Some functions are actually named
11313     something starting with __ and the normal name is an alias.  */
11314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11315 choke me
11316 #else
11317 $ac_func();
11318 #endif
11319
11320 ; return 0; }
11321 EOF
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11323   rm -rf conftest*
11324   eval "ac_cv_func_$ac_func=yes"
11325 else
11326   echo "configure: failed program was:" >&5
11327   cat conftest.$ac_ext >&5
11328   rm -rf conftest*
11329   eval "ac_cv_func_$ac_func=no"
11330 fi
11331 rm -f conftest*
11332 fi
11333
11334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11335   echo "$ac_t""yes" 1>&6
11336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11337   cat >> confdefs.h <<EOF
11338 #define $ac_tr_func 1
11339 EOF
11340  
11341 else
11342   echo "$ac_t""no" 1>&6
11343 fi
11344 done
11345     
11346   else
11347     
11348   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11349 echo "configure:11350: checking for _frexpf declaration" >&5
11350   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11351     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11352   echo $ac_n "(cached) $ac_c" 1>&6
11353 else
11354   
11355       
11356       ac_ext=C
11357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11358 ac_cpp='$CXXCPP $CPPFLAGS'
11359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11361 cross_compiling=$ac_cv_prog_cxx_cross
11362
11363       cat > conftest.$ac_ext <<EOF
11364 #line 11365 "configure"
11365 #include "confdefs.h"
11366 #include <math.h>
11367 int main() {
11368  _frexpf(0, 0);
11369 ; return 0; }
11370 EOF
11371 if { (eval echo configure:11372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11372   rm -rf conftest*
11373   glibcpp_cv_func__frexpf_use=yes
11374 else
11375   echo "configure: failed program was:" >&5
11376   cat conftest.$ac_ext >&5
11377   rm -rf conftest*
11378   glibcpp_cv_func__frexpf_use=no
11379 fi
11380 rm -f conftest*
11381       ac_ext=c
11382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11383 ac_cpp='$CPP $CPPFLAGS'
11384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11386 cross_compiling=$ac_cv_prog_cc_cross
11387
11388     
11389 fi
11390
11391   fi
11392   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11393
11394     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11395       for ac_func in _frexpf
11396 do
11397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11398 echo "configure:11399: checking for $ac_func" >&5
11399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11400   echo $ac_n "(cached) $ac_c" 1>&6
11401 else
11402   cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406     which can conflict with char $ac_func(); below.  */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error.  */
11409 /* We use char because int might match the return type of a gcc2
11410     builtin and then its argument prototype would still apply.  */
11411 char $ac_func();
11412
11413 int main() {
11414
11415 /* The GNU C library defines this for functions which it implements
11416     to always fail with ENOSYS.  Some functions are actually named
11417     something starting with __ and the normal name is an alias.  */
11418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11419 choke me
11420 #else
11421 $ac_func();
11422 #endif
11423
11424 ; return 0; }
11425 EOF
11426 if { (eval echo configure:11427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11427   rm -rf conftest*
11428   eval "ac_cv_func_$ac_func=yes"
11429 else
11430   echo "configure: failed program was:" >&5
11431   cat conftest.$ac_ext >&5
11432   rm -rf conftest*
11433   eval "ac_cv_func_$ac_func=no"
11434 fi
11435 rm -f conftest*
11436 fi
11437
11438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11439   echo "$ac_t""yes" 1>&6
11440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11441   cat >> confdefs.h <<EOF
11442 #define $ac_tr_func 1
11443 EOF
11444  
11445 else
11446   echo "$ac_t""no" 1>&6
11447 fi
11448 done
11449     
11450     fi
11451   fi
11452
11453   
11454   
11455   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11456 echo "configure:11457: checking for hypotf declaration" >&5
11457   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11458     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11459   echo $ac_n "(cached) $ac_c" 1>&6
11460 else
11461   
11462       
11463       ac_ext=C
11464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11468 cross_compiling=$ac_cv_prog_cxx_cross
11469
11470       cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 #include <math.h>
11474 int main() {
11475  hypotf(0, 0);
11476 ; return 0; }
11477 EOF
11478 if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11479   rm -rf conftest*
11480   glibcpp_cv_func_hypotf_use=yes
11481 else
11482   echo "configure: failed program was:" >&5
11483   cat conftest.$ac_ext >&5
11484   rm -rf conftest*
11485   glibcpp_cv_func_hypotf_use=no
11486 fi
11487 rm -f conftest*
11488       ac_ext=c
11489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11490 ac_cpp='$CPP $CPPFLAGS'
11491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11493 cross_compiling=$ac_cv_prog_cc_cross
11494
11495     
11496 fi
11497
11498   fi
11499   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11500
11501   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11502     for ac_func in hypotf
11503 do
11504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11505 echo "configure:11506: checking for $ac_func" >&5
11506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11507   echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509   cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 /* System header to define __stub macros and hopefully few prototypes,
11513     which can conflict with char $ac_func(); below.  */
11514 #include <assert.h>
11515 /* Override any gcc2 internal prototype to avoid an error.  */
11516 /* We use char because int might match the return type of a gcc2
11517     builtin and then its argument prototype would still apply.  */
11518 char $ac_func();
11519
11520 int main() {
11521
11522 /* The GNU C library defines this for functions which it implements
11523     to always fail with ENOSYS.  Some functions are actually named
11524     something starting with __ and the normal name is an alias.  */
11525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11526 choke me
11527 #else
11528 $ac_func();
11529 #endif
11530
11531 ; return 0; }
11532 EOF
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534   rm -rf conftest*
11535   eval "ac_cv_func_$ac_func=yes"
11536 else
11537   echo "configure: failed program was:" >&5
11538   cat conftest.$ac_ext >&5
11539   rm -rf conftest*
11540   eval "ac_cv_func_$ac_func=no"
11541 fi
11542 rm -f conftest*
11543 fi
11544
11545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11546   echo "$ac_t""yes" 1>&6
11547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11548   cat >> confdefs.h <<EOF
11549 #define $ac_tr_func 1
11550 EOF
11551  
11552 else
11553   echo "$ac_t""no" 1>&6
11554 fi
11555 done
11556     
11557   else
11558     
11559   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11560 echo "configure:11561: checking for _hypotf declaration" >&5
11561   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11562     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11563   echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565   
11566       
11567       ac_ext=C
11568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11569 ac_cpp='$CXXCPP $CPPFLAGS'
11570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11572 cross_compiling=$ac_cv_prog_cxx_cross
11573
11574       cat > conftest.$ac_ext <<EOF
11575 #line 11576 "configure"
11576 #include "confdefs.h"
11577 #include <math.h>
11578 int main() {
11579  _hypotf(0, 0);
11580 ; return 0; }
11581 EOF
11582 if { (eval echo configure:11583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11583   rm -rf conftest*
11584   glibcpp_cv_func__hypotf_use=yes
11585 else
11586   echo "configure: failed program was:" >&5
11587   cat conftest.$ac_ext >&5
11588   rm -rf conftest*
11589   glibcpp_cv_func__hypotf_use=no
11590 fi
11591 rm -f conftest*
11592       ac_ext=c
11593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11594 ac_cpp='$CPP $CPPFLAGS'
11595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11597 cross_compiling=$ac_cv_prog_cc_cross
11598
11599     
11600 fi
11601
11602   fi
11603   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11604
11605     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11606       for ac_func in _hypotf
11607 do
11608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11609 echo "configure:11610: checking for $ac_func" >&5
11610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11611   echo $ac_n "(cached) $ac_c" 1>&6
11612 else
11613   cat > conftest.$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11616 /* System header to define __stub macros and hopefully few prototypes,
11617     which can conflict with char $ac_func(); below.  */
11618 #include <assert.h>
11619 /* Override any gcc2 internal prototype to avoid an error.  */
11620 /* We use char because int might match the return type of a gcc2
11621     builtin and then its argument prototype would still apply.  */
11622 char $ac_func();
11623
11624 int main() {
11625
11626 /* The GNU C library defines this for functions which it implements
11627     to always fail with ENOSYS.  Some functions are actually named
11628     something starting with __ and the normal name is an alias.  */
11629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11630 choke me
11631 #else
11632 $ac_func();
11633 #endif
11634
11635 ; return 0; }
11636 EOF
11637 if { (eval echo configure:11638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11638   rm -rf conftest*
11639   eval "ac_cv_func_$ac_func=yes"
11640 else
11641   echo "configure: failed program was:" >&5
11642   cat conftest.$ac_ext >&5
11643   rm -rf conftest*
11644   eval "ac_cv_func_$ac_func=no"
11645 fi
11646 rm -f conftest*
11647 fi
11648
11649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11650   echo "$ac_t""yes" 1>&6
11651     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11652   cat >> confdefs.h <<EOF
11653 #define $ac_tr_func 1
11654 EOF
11655  
11656 else
11657   echo "$ac_t""no" 1>&6
11658 fi
11659 done
11660     
11661     fi
11662   fi
11663
11664   
11665   
11666   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11667 echo "configure:11668: checking for ldexpf declaration" >&5
11668   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11669     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11670   echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672   
11673       
11674       ac_ext=C
11675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11676 ac_cpp='$CXXCPP $CPPFLAGS'
11677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11679 cross_compiling=$ac_cv_prog_cxx_cross
11680
11681       cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11684 #include <math.h>
11685 int main() {
11686  ldexpf(0, 0);
11687 ; return 0; }
11688 EOF
11689 if { (eval echo configure:11690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11690   rm -rf conftest*
11691   glibcpp_cv_func_ldexpf_use=yes
11692 else
11693   echo "configure: failed program was:" >&5
11694   cat conftest.$ac_ext >&5
11695   rm -rf conftest*
11696   glibcpp_cv_func_ldexpf_use=no
11697 fi
11698 rm -f conftest*
11699       ac_ext=c
11700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11701 ac_cpp='$CPP $CPPFLAGS'
11702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11704 cross_compiling=$ac_cv_prog_cc_cross
11705
11706     
11707 fi
11708
11709   fi
11710   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11711
11712   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11713     for ac_func in ldexpf
11714 do
11715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11716 echo "configure:11717: checking for $ac_func" >&5
11717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11718   echo $ac_n "(cached) $ac_c" 1>&6
11719 else
11720   cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11723 /* System header to define __stub macros and hopefully few prototypes,
11724     which can conflict with char $ac_func(); below.  */
11725 #include <assert.h>
11726 /* Override any gcc2 internal prototype to avoid an error.  */
11727 /* We use char because int might match the return type of a gcc2
11728     builtin and then its argument prototype would still apply.  */
11729 char $ac_func();
11730
11731 int main() {
11732
11733 /* The GNU C library defines this for functions which it implements
11734     to always fail with ENOSYS.  Some functions are actually named
11735     something starting with __ and the normal name is an alias.  */
11736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11737 choke me
11738 #else
11739 $ac_func();
11740 #endif
11741
11742 ; return 0; }
11743 EOF
11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11745   rm -rf conftest*
11746   eval "ac_cv_func_$ac_func=yes"
11747 else
11748   echo "configure: failed program was:" >&5
11749   cat conftest.$ac_ext >&5
11750   rm -rf conftest*
11751   eval "ac_cv_func_$ac_func=no"
11752 fi
11753 rm -f conftest*
11754 fi
11755
11756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11757   echo "$ac_t""yes" 1>&6
11758     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11759   cat >> confdefs.h <<EOF
11760 #define $ac_tr_func 1
11761 EOF
11762  
11763 else
11764   echo "$ac_t""no" 1>&6
11765 fi
11766 done
11767     
11768   else
11769     
11770   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11771 echo "configure:11772: checking for _ldexpf declaration" >&5
11772   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11773     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11774   echo $ac_n "(cached) $ac_c" 1>&6
11775 else
11776   
11777       
11778       ac_ext=C
11779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11780 ac_cpp='$CXXCPP $CPPFLAGS'
11781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11783 cross_compiling=$ac_cv_prog_cxx_cross
11784
11785       cat > conftest.$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 #include <math.h>
11789 int main() {
11790  _ldexpf(0, 0);
11791 ; return 0; }
11792 EOF
11793 if { (eval echo configure:11794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11794   rm -rf conftest*
11795   glibcpp_cv_func__ldexpf_use=yes
11796 else
11797   echo "configure: failed program was:" >&5
11798   cat conftest.$ac_ext >&5
11799   rm -rf conftest*
11800   glibcpp_cv_func__ldexpf_use=no
11801 fi
11802 rm -f conftest*
11803       ac_ext=c
11804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11808 cross_compiling=$ac_cv_prog_cc_cross
11809
11810     
11811 fi
11812
11813   fi
11814   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11815
11816     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11817       for ac_func in _ldexpf
11818 do
11819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11820 echo "configure:11821: checking for $ac_func" >&5
11821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11822   echo $ac_n "(cached) $ac_c" 1>&6
11823 else
11824   cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828     which can conflict with char $ac_func(); below.  */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error.  */
11831 /* We use char because int might match the return type of a gcc2
11832     builtin and then its argument prototype would still apply.  */
11833 char $ac_func();
11834
11835 int main() {
11836
11837 /* The GNU C library defines this for functions which it implements
11838     to always fail with ENOSYS.  Some functions are actually named
11839     something starting with __ and the normal name is an alias.  */
11840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11841 choke me
11842 #else
11843 $ac_func();
11844 #endif
11845
11846 ; return 0; }
11847 EOF
11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11849   rm -rf conftest*
11850   eval "ac_cv_func_$ac_func=yes"
11851 else
11852   echo "configure: failed program was:" >&5
11853   cat conftest.$ac_ext >&5
11854   rm -rf conftest*
11855   eval "ac_cv_func_$ac_func=no"
11856 fi
11857 rm -f conftest*
11858 fi
11859
11860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11861   echo "$ac_t""yes" 1>&6
11862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11863   cat >> confdefs.h <<EOF
11864 #define $ac_tr_func 1
11865 EOF
11866  
11867 else
11868   echo "$ac_t""no" 1>&6
11869 fi
11870 done
11871     
11872     fi
11873   fi
11874
11875   
11876   
11877   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11878 echo "configure:11879: checking for logf declaration" >&5
11879   if test x${glibcpp_cv_func_logf_use+set} != xset; then
11880     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11881   echo $ac_n "(cached) $ac_c" 1>&6
11882 else
11883   
11884       
11885       ac_ext=C
11886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11887 ac_cpp='$CXXCPP $CPPFLAGS'
11888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11890 cross_compiling=$ac_cv_prog_cxx_cross
11891
11892       cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 #include <math.h>
11896                       #ifdef HAVE_IEEEFP_H
11897                       #include <ieeefp.h>
11898                       #endif
11899                      
11900 int main() {
11901  logf(0);
11902 ; return 0; }
11903 EOF
11904 if { (eval echo configure:11905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11905   rm -rf conftest*
11906   glibcpp_cv_func_logf_use=yes
11907 else
11908   echo "configure: failed program was:" >&5
11909   cat conftest.$ac_ext >&5
11910   rm -rf conftest*
11911   glibcpp_cv_func_logf_use=no
11912 fi
11913 rm -f conftest*
11914       ac_ext=c
11915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11916 ac_cpp='$CPP $CPPFLAGS'
11917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11919 cross_compiling=$ac_cv_prog_cc_cross
11920
11921     
11922 fi
11923
11924   fi
11925   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11926
11927   if test x$glibcpp_cv_func_logf_use = x"yes"; then
11928     for ac_func in logf
11929 do
11930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11931 echo "configure:11932: checking for $ac_func" >&5
11932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11933   echo $ac_n "(cached) $ac_c" 1>&6
11934 else
11935   cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11938 /* System header to define __stub macros and hopefully few prototypes,
11939     which can conflict with char $ac_func(); below.  */
11940 #include <assert.h>
11941 /* Override any gcc2 internal prototype to avoid an error.  */
11942 /* We use char because int might match the return type of a gcc2
11943     builtin and then its argument prototype would still apply.  */
11944 char $ac_func();
11945
11946 int main() {
11947
11948 /* The GNU C library defines this for functions which it implements
11949     to always fail with ENOSYS.  Some functions are actually named
11950     something starting with __ and the normal name is an alias.  */
11951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11952 choke me
11953 #else
11954 $ac_func();
11955 #endif
11956
11957 ; return 0; }
11958 EOF
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960   rm -rf conftest*
11961   eval "ac_cv_func_$ac_func=yes"
11962 else
11963   echo "configure: failed program was:" >&5
11964   cat conftest.$ac_ext >&5
11965   rm -rf conftest*
11966   eval "ac_cv_func_$ac_func=no"
11967 fi
11968 rm -f conftest*
11969 fi
11970
11971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11972   echo "$ac_t""yes" 1>&6
11973     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11974   cat >> confdefs.h <<EOF
11975 #define $ac_tr_func 1
11976 EOF
11977  
11978 else
11979   echo "$ac_t""no" 1>&6
11980 fi
11981 done
11982     
11983   else
11984     
11985   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11986 echo "configure:11987: checking for _logf declaration" >&5
11987   if test x${glibcpp_cv_func__logf_use+set} != xset; then
11988     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11989   echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11991   
11992       
11993       ac_ext=C
11994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11995 ac_cpp='$CXXCPP $CPPFLAGS'
11996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11998 cross_compiling=$ac_cv_prog_cxx_cross
11999
12000       cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <math.h>
12004                       #ifdef HAVE_IEEEFP_H
12005                       #include <ieeefp.h>
12006                       #endif
12007                      
12008 int main() {
12009  _logf(0);
12010 ; return 0; }
12011 EOF
12012 if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12013   rm -rf conftest*
12014   glibcpp_cv_func__logf_use=yes
12015 else
12016   echo "configure: failed program was:" >&5
12017   cat conftest.$ac_ext >&5
12018   rm -rf conftest*
12019   glibcpp_cv_func__logf_use=no
12020 fi
12021 rm -f conftest*
12022       ac_ext=c
12023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12027 cross_compiling=$ac_cv_prog_cc_cross
12028
12029     
12030 fi
12031
12032   fi
12033   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12034
12035     if test x$glibcpp_cv_func__logf_use = x"yes"; then
12036       for ac_func in _logf
12037 do
12038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_func" >&5
12040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12041   echo $ac_n "(cached) $ac_c" 1>&6
12042 else
12043   cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 /* System header to define __stub macros and hopefully few prototypes,
12047     which can conflict with char $ac_func(); below.  */
12048 #include <assert.h>
12049 /* Override any gcc2 internal prototype to avoid an error.  */
12050 /* We use char because int might match the return type of a gcc2
12051     builtin and then its argument prototype would still apply.  */
12052 char $ac_func();
12053
12054 int main() {
12055
12056 /* The GNU C library defines this for functions which it implements
12057     to always fail with ENOSYS.  Some functions are actually named
12058     something starting with __ and the normal name is an alias.  */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12060 choke me
12061 #else
12062 $ac_func();
12063 #endif
12064
12065 ; return 0; }
12066 EOF
12067 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12068   rm -rf conftest*
12069   eval "ac_cv_func_$ac_func=yes"
12070 else
12071   echo "configure: failed program was:" >&5
12072   cat conftest.$ac_ext >&5
12073   rm -rf conftest*
12074   eval "ac_cv_func_$ac_func=no"
12075 fi
12076 rm -f conftest*
12077 fi
12078
12079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12080   echo "$ac_t""yes" 1>&6
12081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12082   cat >> confdefs.h <<EOF
12083 #define $ac_tr_func 1
12084 EOF
12085  
12086 else
12087   echo "$ac_t""no" 1>&6
12088 fi
12089 done
12090     
12091     fi
12092   fi
12093
12094   
12095   
12096   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12097 echo "configure:12098: checking for log10f declaration" >&5
12098   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12099     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12100   echo $ac_n "(cached) $ac_c" 1>&6
12101 else
12102   
12103       
12104       ac_ext=C
12105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12106 ac_cpp='$CXXCPP $CPPFLAGS'
12107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12109 cross_compiling=$ac_cv_prog_cxx_cross
12110
12111       cat > conftest.$ac_ext <<EOF
12112 #line 12113 "configure"
12113 #include "confdefs.h"
12114 #include <math.h>
12115                       #ifdef HAVE_IEEEFP_H
12116                       #include <ieeefp.h>
12117                       #endif
12118                      
12119 int main() {
12120  log10f(0);
12121 ; return 0; }
12122 EOF
12123 if { (eval echo configure:12124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12124   rm -rf conftest*
12125   glibcpp_cv_func_log10f_use=yes
12126 else
12127   echo "configure: failed program was:" >&5
12128   cat conftest.$ac_ext >&5
12129   rm -rf conftest*
12130   glibcpp_cv_func_log10f_use=no
12131 fi
12132 rm -f conftest*
12133       ac_ext=c
12134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12135 ac_cpp='$CPP $CPPFLAGS'
12136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12138 cross_compiling=$ac_cv_prog_cc_cross
12139
12140     
12141 fi
12142
12143   fi
12144   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12145
12146   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12147     for ac_func in log10f
12148 do
12149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12150 echo "configure:12151: checking for $ac_func" >&5
12151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12152   echo $ac_n "(cached) $ac_c" 1>&6
12153 else
12154   cat > conftest.$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 /* System header to define __stub macros and hopefully few prototypes,
12158     which can conflict with char $ac_func(); below.  */
12159 #include <assert.h>
12160 /* Override any gcc2 internal prototype to avoid an error.  */
12161 /* We use char because int might match the return type of a gcc2
12162     builtin and then its argument prototype would still apply.  */
12163 char $ac_func();
12164
12165 int main() {
12166
12167 /* The GNU C library defines this for functions which it implements
12168     to always fail with ENOSYS.  Some functions are actually named
12169     something starting with __ and the normal name is an alias.  */
12170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12171 choke me
12172 #else
12173 $ac_func();
12174 #endif
12175
12176 ; return 0; }
12177 EOF
12178 if { (eval echo configure:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12179   rm -rf conftest*
12180   eval "ac_cv_func_$ac_func=yes"
12181 else
12182   echo "configure: failed program was:" >&5
12183   cat conftest.$ac_ext >&5
12184   rm -rf conftest*
12185   eval "ac_cv_func_$ac_func=no"
12186 fi
12187 rm -f conftest*
12188 fi
12189
12190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12191   echo "$ac_t""yes" 1>&6
12192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12193   cat >> confdefs.h <<EOF
12194 #define $ac_tr_func 1
12195 EOF
12196  
12197 else
12198   echo "$ac_t""no" 1>&6
12199 fi
12200 done
12201     
12202   else
12203     
12204   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12205 echo "configure:12206: checking for _log10f declaration" >&5
12206   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12207     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12208   echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12210   
12211       
12212       ac_ext=C
12213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12214 ac_cpp='$CXXCPP $CPPFLAGS'
12215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12217 cross_compiling=$ac_cv_prog_cxx_cross
12218
12219       cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 #include <math.h>
12223                       #ifdef HAVE_IEEEFP_H
12224                       #include <ieeefp.h>
12225                       #endif
12226                      
12227 int main() {
12228  _log10f(0);
12229 ; return 0; }
12230 EOF
12231 if { (eval echo configure:12232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12232   rm -rf conftest*
12233   glibcpp_cv_func__log10f_use=yes
12234 else
12235   echo "configure: failed program was:" >&5
12236   cat conftest.$ac_ext >&5
12237   rm -rf conftest*
12238   glibcpp_cv_func__log10f_use=no
12239 fi
12240 rm -f conftest*
12241       ac_ext=c
12242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12243 ac_cpp='$CPP $CPPFLAGS'
12244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12246 cross_compiling=$ac_cv_prog_cc_cross
12247
12248     
12249 fi
12250
12251   fi
12252   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12253
12254     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12255       for ac_func in _log10f
12256 do
12257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12258 echo "configure:12259: checking for $ac_func" >&5
12259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12260   echo $ac_n "(cached) $ac_c" 1>&6
12261 else
12262   cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12265 /* System header to define __stub macros and hopefully few prototypes,
12266     which can conflict with char $ac_func(); below.  */
12267 #include <assert.h>
12268 /* Override any gcc2 internal prototype to avoid an error.  */
12269 /* We use char because int might match the return type of a gcc2
12270     builtin and then its argument prototype would still apply.  */
12271 char $ac_func();
12272
12273 int main() {
12274
12275 /* The GNU C library defines this for functions which it implements
12276     to always fail with ENOSYS.  Some functions are actually named
12277     something starting with __ and the normal name is an alias.  */
12278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12279 choke me
12280 #else
12281 $ac_func();
12282 #endif
12283
12284 ; return 0; }
12285 EOF
12286 if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12287   rm -rf conftest*
12288   eval "ac_cv_func_$ac_func=yes"
12289 else
12290   echo "configure: failed program was:" >&5
12291   cat conftest.$ac_ext >&5
12292   rm -rf conftest*
12293   eval "ac_cv_func_$ac_func=no"
12294 fi
12295 rm -f conftest*
12296 fi
12297
12298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12299   echo "$ac_t""yes" 1>&6
12300     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12301   cat >> confdefs.h <<EOF
12302 #define $ac_tr_func 1
12303 EOF
12304  
12305 else
12306   echo "$ac_t""no" 1>&6
12307 fi
12308 done
12309     
12310     fi
12311   fi
12312
12313   
12314   
12315   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12316 echo "configure:12317: checking for modff declaration" >&5
12317   if test x${glibcpp_cv_func_modff_use+set} != xset; then
12318     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12319   echo $ac_n "(cached) $ac_c" 1>&6
12320 else
12321   
12322       
12323       ac_ext=C
12324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12325 ac_cpp='$CXXCPP $CPPFLAGS'
12326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12328 cross_compiling=$ac_cv_prog_cxx_cross
12329
12330       cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 #include <math.h>
12334 int main() {
12335  modff(0, 0);
12336 ; return 0; }
12337 EOF
12338 if { (eval echo configure:12339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12339   rm -rf conftest*
12340   glibcpp_cv_func_modff_use=yes
12341 else
12342   echo "configure: failed program was:" >&5
12343   cat conftest.$ac_ext >&5
12344   rm -rf conftest*
12345   glibcpp_cv_func_modff_use=no
12346 fi
12347 rm -f conftest*
12348       ac_ext=c
12349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12350 ac_cpp='$CPP $CPPFLAGS'
12351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12353 cross_compiling=$ac_cv_prog_cc_cross
12354
12355     
12356 fi
12357
12358   fi
12359   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12360
12361   if test x$glibcpp_cv_func_modff_use = x"yes"; then
12362     for ac_func in modff
12363 do
12364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_func" >&5
12366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12367   echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369   cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char $ac_func(); below.  */
12374 #include <assert.h>
12375 /* Override any gcc2 internal prototype to avoid an error.  */
12376 /* We use char because int might match the return type of a gcc2
12377     builtin and then its argument prototype would still apply.  */
12378 char $ac_func();
12379
12380 int main() {
12381
12382 /* The GNU C library defines this for functions which it implements
12383     to always fail with ENOSYS.  Some functions are actually named
12384     something starting with __ and the normal name is an alias.  */
12385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12386 choke me
12387 #else
12388 $ac_func();
12389 #endif
12390
12391 ; return 0; }
12392 EOF
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12394   rm -rf conftest*
12395   eval "ac_cv_func_$ac_func=yes"
12396 else
12397   echo "configure: failed program was:" >&5
12398   cat conftest.$ac_ext >&5
12399   rm -rf conftest*
12400   eval "ac_cv_func_$ac_func=no"
12401 fi
12402 rm -f conftest*
12403 fi
12404
12405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12406   echo "$ac_t""yes" 1>&6
12407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12408   cat >> confdefs.h <<EOF
12409 #define $ac_tr_func 1
12410 EOF
12411  
12412 else
12413   echo "$ac_t""no" 1>&6
12414 fi
12415 done
12416     
12417   else
12418     
12419   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12420 echo "configure:12421: checking for _modff declaration" >&5
12421   if test x${glibcpp_cv_func__modff_use+set} != xset; then
12422     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12423   echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425   
12426       
12427       ac_ext=C
12428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12429 ac_cpp='$CXXCPP $CPPFLAGS'
12430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12432 cross_compiling=$ac_cv_prog_cxx_cross
12433
12434       cat > conftest.$ac_ext <<EOF
12435 #line 12436 "configure"
12436 #include "confdefs.h"
12437 #include <math.h>
12438 int main() {
12439  _modff(0, 0);
12440 ; return 0; }
12441 EOF
12442 if { (eval echo configure:12443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12443   rm -rf conftest*
12444   glibcpp_cv_func__modff_use=yes
12445 else
12446   echo "configure: failed program was:" >&5
12447   cat conftest.$ac_ext >&5
12448   rm -rf conftest*
12449   glibcpp_cv_func__modff_use=no
12450 fi
12451 rm -f conftest*
12452       ac_ext=c
12453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12457 cross_compiling=$ac_cv_prog_cc_cross
12458
12459     
12460 fi
12461
12462   fi
12463   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12464
12465     if test x$glibcpp_cv_func__modff_use = x"yes"; then
12466       for ac_func in _modff
12467 do
12468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12469 echo "configure:12470: checking for $ac_func" >&5
12470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12471   echo $ac_n "(cached) $ac_c" 1>&6
12472 else
12473   cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 /* System header to define __stub macros and hopefully few prototypes,
12477     which can conflict with char $ac_func(); below.  */
12478 #include <assert.h>
12479 /* Override any gcc2 internal prototype to avoid an error.  */
12480 /* We use char because int might match the return type of a gcc2
12481     builtin and then its argument prototype would still apply.  */
12482 char $ac_func();
12483
12484 int main() {
12485
12486 /* The GNU C library defines this for functions which it implements
12487     to always fail with ENOSYS.  Some functions are actually named
12488     something starting with __ and the normal name is an alias.  */
12489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490 choke me
12491 #else
12492 $ac_func();
12493 #endif
12494
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498   rm -rf conftest*
12499   eval "ac_cv_func_$ac_func=yes"
12500 else
12501   echo "configure: failed program was:" >&5
12502   cat conftest.$ac_ext >&5
12503   rm -rf conftest*
12504   eval "ac_cv_func_$ac_func=no"
12505 fi
12506 rm -f conftest*
12507 fi
12508
12509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510   echo "$ac_t""yes" 1>&6
12511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512   cat >> confdefs.h <<EOF
12513 #define $ac_tr_func 1
12514 EOF
12515  
12516 else
12517   echo "$ac_t""no" 1>&6
12518 fi
12519 done
12520     
12521     fi
12522   fi
12523
12524   
12525   
12526   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12527 echo "configure:12528: checking for powf declaration" >&5
12528   if test x${glibcpp_cv_func_powf_use+set} != xset; then
12529     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12530   echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12532   
12533       
12534       ac_ext=C
12535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539 cross_compiling=$ac_cv_prog_cxx_cross
12540
12541       cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 #include <math.h>
12545 int main() {
12546  powf(0, 0);
12547 ; return 0; }
12548 EOF
12549 if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12550   rm -rf conftest*
12551   glibcpp_cv_func_powf_use=yes
12552 else
12553   echo "configure: failed program was:" >&5
12554   cat conftest.$ac_ext >&5
12555   rm -rf conftest*
12556   glibcpp_cv_func_powf_use=no
12557 fi
12558 rm -f conftest*
12559       ac_ext=c
12560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12564 cross_compiling=$ac_cv_prog_cc_cross
12565
12566     
12567 fi
12568
12569   fi
12570   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12571
12572   if test x$glibcpp_cv_func_powf_use = x"yes"; then
12573     for ac_func in powf
12574 do
12575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12576 echo "configure:12577: checking for $ac_func" >&5
12577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12578   echo $ac_n "(cached) $ac_c" 1>&6
12579 else
12580   cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 /* System header to define __stub macros and hopefully few prototypes,
12584     which can conflict with char $ac_func(); below.  */
12585 #include <assert.h>
12586 /* Override any gcc2 internal prototype to avoid an error.  */
12587 /* We use char because int might match the return type of a gcc2
12588     builtin and then its argument prototype would still apply.  */
12589 char $ac_func();
12590
12591 int main() {
12592
12593 /* The GNU C library defines this for functions which it implements
12594     to always fail with ENOSYS.  Some functions are actually named
12595     something starting with __ and the normal name is an alias.  */
12596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12597 choke me
12598 #else
12599 $ac_func();
12600 #endif
12601
12602 ; return 0; }
12603 EOF
12604 if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605   rm -rf conftest*
12606   eval "ac_cv_func_$ac_func=yes"
12607 else
12608   echo "configure: failed program was:" >&5
12609   cat conftest.$ac_ext >&5
12610   rm -rf conftest*
12611   eval "ac_cv_func_$ac_func=no"
12612 fi
12613 rm -f conftest*
12614 fi
12615
12616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12617   echo "$ac_t""yes" 1>&6
12618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12619   cat >> confdefs.h <<EOF
12620 #define $ac_tr_func 1
12621 EOF
12622  
12623 else
12624   echo "$ac_t""no" 1>&6
12625 fi
12626 done
12627     
12628   else
12629     
12630   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12631 echo "configure:12632: checking for _powf declaration" >&5
12632   if test x${glibcpp_cv_func__powf_use+set} != xset; then
12633     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12634   echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636   
12637       
12638       ac_ext=C
12639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12640 ac_cpp='$CXXCPP $CPPFLAGS'
12641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12643 cross_compiling=$ac_cv_prog_cxx_cross
12644
12645       cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 #include <math.h>
12649 int main() {
12650  _powf(0, 0);
12651 ; return 0; }
12652 EOF
12653 if { (eval echo configure:12654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12654   rm -rf conftest*
12655   glibcpp_cv_func__powf_use=yes
12656 else
12657   echo "configure: failed program was:" >&5
12658   cat conftest.$ac_ext >&5
12659   rm -rf conftest*
12660   glibcpp_cv_func__powf_use=no
12661 fi
12662 rm -f conftest*
12663       ac_ext=c
12664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668 cross_compiling=$ac_cv_prog_cc_cross
12669
12670     
12671 fi
12672
12673   fi
12674   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12675
12676     if test x$glibcpp_cv_func__powf_use = x"yes"; then
12677       for ac_func in _powf
12678 do
12679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12680 echo "configure:12681: checking for $ac_func" >&5
12681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12682   echo $ac_n "(cached) $ac_c" 1>&6
12683 else
12684   cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 /* System header to define __stub macros and hopefully few prototypes,
12688     which can conflict with char $ac_func(); below.  */
12689 #include <assert.h>
12690 /* Override any gcc2 internal prototype to avoid an error.  */
12691 /* We use char because int might match the return type of a gcc2
12692     builtin and then its argument prototype would still apply.  */
12693 char $ac_func();
12694
12695 int main() {
12696
12697 /* The GNU C library defines this for functions which it implements
12698     to always fail with ENOSYS.  Some functions are actually named
12699     something starting with __ and the normal name is an alias.  */
12700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12701 choke me
12702 #else
12703 $ac_func();
12704 #endif
12705
12706 ; return 0; }
12707 EOF
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12709   rm -rf conftest*
12710   eval "ac_cv_func_$ac_func=yes"
12711 else
12712   echo "configure: failed program was:" >&5
12713   cat conftest.$ac_ext >&5
12714   rm -rf conftest*
12715   eval "ac_cv_func_$ac_func=no"
12716 fi
12717 rm -f conftest*
12718 fi
12719
12720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12721   echo "$ac_t""yes" 1>&6
12722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12723   cat >> confdefs.h <<EOF
12724 #define $ac_tr_func 1
12725 EOF
12726  
12727 else
12728   echo "$ac_t""no" 1>&6
12729 fi
12730 done
12731     
12732     fi
12733   fi
12734
12735   
12736   
12737   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12738 echo "configure:12739: checking for sqrtf declaration" >&5
12739   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12740     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12741   echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12743   
12744       
12745       ac_ext=C
12746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12747 ac_cpp='$CXXCPP $CPPFLAGS'
12748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12750 cross_compiling=$ac_cv_prog_cxx_cross
12751
12752       cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 #include <math.h>
12756                       #ifdef HAVE_IEEEFP_H
12757                       #include <ieeefp.h>
12758                       #endif
12759                      
12760 int main() {
12761  sqrtf(0);
12762 ; return 0; }
12763 EOF
12764 if { (eval echo configure:12765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12765   rm -rf conftest*
12766   glibcpp_cv_func_sqrtf_use=yes
12767 else
12768   echo "configure: failed program was:" >&5
12769   cat conftest.$ac_ext >&5
12770   rm -rf conftest*
12771   glibcpp_cv_func_sqrtf_use=no
12772 fi
12773 rm -f conftest*
12774       ac_ext=c
12775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12776 ac_cpp='$CPP $CPPFLAGS'
12777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12779 cross_compiling=$ac_cv_prog_cc_cross
12780
12781     
12782 fi
12783
12784   fi
12785   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12786
12787   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12788     for ac_func in sqrtf
12789 do
12790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12791 echo "configure:12792: checking for $ac_func" >&5
12792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12793   echo $ac_n "(cached) $ac_c" 1>&6
12794 else
12795   cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12798 /* System header to define __stub macros and hopefully few prototypes,
12799     which can conflict with char $ac_func(); below.  */
12800 #include <assert.h>
12801 /* Override any gcc2 internal prototype to avoid an error.  */
12802 /* We use char because int might match the return type of a gcc2
12803     builtin and then its argument prototype would still apply.  */
12804 char $ac_func();
12805
12806 int main() {
12807
12808 /* The GNU C library defines this for functions which it implements
12809     to always fail with ENOSYS.  Some functions are actually named
12810     something starting with __ and the normal name is an alias.  */
12811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12812 choke me
12813 #else
12814 $ac_func();
12815 #endif
12816
12817 ; return 0; }
12818 EOF
12819 if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12820   rm -rf conftest*
12821   eval "ac_cv_func_$ac_func=yes"
12822 else
12823   echo "configure: failed program was:" >&5
12824   cat conftest.$ac_ext >&5
12825   rm -rf conftest*
12826   eval "ac_cv_func_$ac_func=no"
12827 fi
12828 rm -f conftest*
12829 fi
12830
12831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12832   echo "$ac_t""yes" 1>&6
12833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12834   cat >> confdefs.h <<EOF
12835 #define $ac_tr_func 1
12836 EOF
12837  
12838 else
12839   echo "$ac_t""no" 1>&6
12840 fi
12841 done
12842     
12843   else
12844     
12845   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12846 echo "configure:12847: checking for _sqrtf declaration" >&5
12847   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12848     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12849   echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851   
12852       
12853       ac_ext=C
12854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12855 ac_cpp='$CXXCPP $CPPFLAGS'
12856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12858 cross_compiling=$ac_cv_prog_cxx_cross
12859
12860       cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 #include <math.h>
12864                       #ifdef HAVE_IEEEFP_H
12865                       #include <ieeefp.h>
12866                       #endif
12867                      
12868 int main() {
12869  _sqrtf(0);
12870 ; return 0; }
12871 EOF
12872 if { (eval echo configure:12873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12873   rm -rf conftest*
12874   glibcpp_cv_func__sqrtf_use=yes
12875 else
12876   echo "configure: failed program was:" >&5
12877   cat conftest.$ac_ext >&5
12878   rm -rf conftest*
12879   glibcpp_cv_func__sqrtf_use=no
12880 fi
12881 rm -f conftest*
12882       ac_ext=c
12883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12884 ac_cpp='$CPP $CPPFLAGS'
12885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12887 cross_compiling=$ac_cv_prog_cc_cross
12888
12889     
12890 fi
12891
12892   fi
12893   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12894
12895     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12896       for ac_func in _sqrtf
12897 do
12898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12899 echo "configure:12900: checking for $ac_func" >&5
12900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12901   echo $ac_n "(cached) $ac_c" 1>&6
12902 else
12903   cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12906 /* System header to define __stub macros and hopefully few prototypes,
12907     which can conflict with char $ac_func(); below.  */
12908 #include <assert.h>
12909 /* Override any gcc2 internal prototype to avoid an error.  */
12910 /* We use char because int might match the return type of a gcc2
12911     builtin and then its argument prototype would still apply.  */
12912 char $ac_func();
12913
12914 int main() {
12915
12916 /* The GNU C library defines this for functions which it implements
12917     to always fail with ENOSYS.  Some functions are actually named
12918     something starting with __ and the normal name is an alias.  */
12919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12920 choke me
12921 #else
12922 $ac_func();
12923 #endif
12924
12925 ; return 0; }
12926 EOF
12927 if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12928   rm -rf conftest*
12929   eval "ac_cv_func_$ac_func=yes"
12930 else
12931   echo "configure: failed program was:" >&5
12932   cat conftest.$ac_ext >&5
12933   rm -rf conftest*
12934   eval "ac_cv_func_$ac_func=no"
12935 fi
12936 rm -f conftest*
12937 fi
12938
12939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12940   echo "$ac_t""yes" 1>&6
12941     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12942   cat >> confdefs.h <<EOF
12943 #define $ac_tr_func 1
12944 EOF
12945  
12946 else
12947   echo "$ac_t""no" 1>&6
12948 fi
12949 done
12950     
12951     fi
12952   fi
12953
12954   
12955   
12956   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12957 echo "configure:12958: checking for sincosf declaration" >&5
12958   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12959     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12960   echo $ac_n "(cached) $ac_c" 1>&6
12961 else
12962   
12963       
12964       ac_ext=C
12965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12966 ac_cpp='$CXXCPP $CPPFLAGS'
12967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12969 cross_compiling=$ac_cv_prog_cxx_cross
12970
12971       cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 #include <math.h>
12975 int main() {
12976  sincosf(0, 0, 0);
12977 ; return 0; }
12978 EOF
12979 if { (eval echo configure:12980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12980   rm -rf conftest*
12981   glibcpp_cv_func_sincosf_use=yes
12982 else
12983   echo "configure: failed program was:" >&5
12984   cat conftest.$ac_ext >&5
12985   rm -rf conftest*
12986   glibcpp_cv_func_sincosf_use=no
12987 fi
12988 rm -f conftest*
12989       ac_ext=c
12990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12994 cross_compiling=$ac_cv_prog_cc_cross
12995
12996     
12997 fi
12998
12999   fi
13000   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13001
13002   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13003     for ac_func in sincosf
13004 do
13005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13006 echo "configure:13007: checking for $ac_func" >&5
13007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13008   echo $ac_n "(cached) $ac_c" 1>&6
13009 else
13010   cat > conftest.$ac_ext <<EOF
13011 #line 13012 "configure"
13012 #include "confdefs.h"
13013 /* System header to define __stub macros and hopefully few prototypes,
13014     which can conflict with char $ac_func(); below.  */
13015 #include <assert.h>
13016 /* Override any gcc2 internal prototype to avoid an error.  */
13017 /* We use char because int might match the return type of a gcc2
13018     builtin and then its argument prototype would still apply.  */
13019 char $ac_func();
13020
13021 int main() {
13022
13023 /* The GNU C library defines this for functions which it implements
13024     to always fail with ENOSYS.  Some functions are actually named
13025     something starting with __ and the normal name is an alias.  */
13026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13027 choke me
13028 #else
13029 $ac_func();
13030 #endif
13031
13032 ; return 0; }
13033 EOF
13034 if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13035   rm -rf conftest*
13036   eval "ac_cv_func_$ac_func=yes"
13037 else
13038   echo "configure: failed program was:" >&5
13039   cat conftest.$ac_ext >&5
13040   rm -rf conftest*
13041   eval "ac_cv_func_$ac_func=no"
13042 fi
13043 rm -f conftest*
13044 fi
13045
13046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13047   echo "$ac_t""yes" 1>&6
13048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13049   cat >> confdefs.h <<EOF
13050 #define $ac_tr_func 1
13051 EOF
13052  
13053 else
13054   echo "$ac_t""no" 1>&6
13055 fi
13056 done
13057     
13058   else
13059     
13060   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13061 echo "configure:13062: checking for _sincosf declaration" >&5
13062   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13063     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13064   echo $ac_n "(cached) $ac_c" 1>&6
13065 else
13066   
13067       
13068       ac_ext=C
13069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13070 ac_cpp='$CXXCPP $CPPFLAGS'
13071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13073 cross_compiling=$ac_cv_prog_cxx_cross
13074
13075       cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 #include <math.h>
13079 int main() {
13080  _sincosf(0, 0, 0);
13081 ; return 0; }
13082 EOF
13083 if { (eval echo configure:13084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13084   rm -rf conftest*
13085   glibcpp_cv_func__sincosf_use=yes
13086 else
13087   echo "configure: failed program was:" >&5
13088   cat conftest.$ac_ext >&5
13089   rm -rf conftest*
13090   glibcpp_cv_func__sincosf_use=no
13091 fi
13092 rm -f conftest*
13093       ac_ext=c
13094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13098 cross_compiling=$ac_cv_prog_cc_cross
13099
13100     
13101 fi
13102
13103   fi
13104   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13105
13106     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13107       for ac_func in _sincosf
13108 do
13109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13110 echo "configure:13111: checking for $ac_func" >&5
13111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13112   echo $ac_n "(cached) $ac_c" 1>&6
13113 else
13114   cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 /* System header to define __stub macros and hopefully few prototypes,
13118     which can conflict with char $ac_func(); below.  */
13119 #include <assert.h>
13120 /* Override any gcc2 internal prototype to avoid an error.  */
13121 /* We use char because int might match the return type of a gcc2
13122     builtin and then its argument prototype would still apply.  */
13123 char $ac_func();
13124
13125 int main() {
13126
13127 /* The GNU C library defines this for functions which it implements
13128     to always fail with ENOSYS.  Some functions are actually named
13129     something starting with __ and the normal name is an alias.  */
13130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13131 choke me
13132 #else
13133 $ac_func();
13134 #endif
13135
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13139   rm -rf conftest*
13140   eval "ac_cv_func_$ac_func=yes"
13141 else
13142   echo "configure: failed program was:" >&5
13143   cat conftest.$ac_ext >&5
13144   rm -rf conftest*
13145   eval "ac_cv_func_$ac_func=no"
13146 fi
13147 rm -f conftest*
13148 fi
13149
13150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13151   echo "$ac_t""yes" 1>&6
13152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13153   cat >> confdefs.h <<EOF
13154 #define $ac_tr_func 1
13155 EOF
13156  
13157 else
13158   echo "$ac_t""no" 1>&6
13159 fi
13160 done
13161     
13162     fi
13163   fi
13164
13165   
13166   
13167   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13168 echo "configure:13169: checking for finitef declaration" >&5
13169   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13170     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13171   echo $ac_n "(cached) $ac_c" 1>&6
13172 else
13173   
13174       
13175       ac_ext=C
13176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13177 ac_cpp='$CXXCPP $CPPFLAGS'
13178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13180 cross_compiling=$ac_cv_prog_cxx_cross
13181
13182       cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 #include <math.h>
13186                       #ifdef HAVE_IEEEFP_H
13187                       #include <ieeefp.h>
13188                       #endif
13189                      
13190 int main() {
13191  finitef(0);
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13195   rm -rf conftest*
13196   glibcpp_cv_func_finitef_use=yes
13197 else
13198   echo "configure: failed program was:" >&5
13199   cat conftest.$ac_ext >&5
13200   rm -rf conftest*
13201   glibcpp_cv_func_finitef_use=no
13202 fi
13203 rm -f conftest*
13204       ac_ext=c
13205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13206 ac_cpp='$CPP $CPPFLAGS'
13207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13209 cross_compiling=$ac_cv_prog_cc_cross
13210
13211     
13212 fi
13213
13214   fi
13215   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13216
13217   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13218     for ac_func in finitef
13219 do
13220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13221 echo "configure:13222: checking for $ac_func" >&5
13222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13223   echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225   cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 /* System header to define __stub macros and hopefully few prototypes,
13229     which can conflict with char $ac_func(); below.  */
13230 #include <assert.h>
13231 /* Override any gcc2 internal prototype to avoid an error.  */
13232 /* We use char because int might match the return type of a gcc2
13233     builtin and then its argument prototype would still apply.  */
13234 char $ac_func();
13235
13236 int main() {
13237
13238 /* The GNU C library defines this for functions which it implements
13239     to always fail with ENOSYS.  Some functions are actually named
13240     something starting with __ and the normal name is an alias.  */
13241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13242 choke me
13243 #else
13244 $ac_func();
13245 #endif
13246
13247 ; return 0; }
13248 EOF
13249 if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13250   rm -rf conftest*
13251   eval "ac_cv_func_$ac_func=yes"
13252 else
13253   echo "configure: failed program was:" >&5
13254   cat conftest.$ac_ext >&5
13255   rm -rf conftest*
13256   eval "ac_cv_func_$ac_func=no"
13257 fi
13258 rm -f conftest*
13259 fi
13260
13261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13262   echo "$ac_t""yes" 1>&6
13263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13264   cat >> confdefs.h <<EOF
13265 #define $ac_tr_func 1
13266 EOF
13267  
13268 else
13269   echo "$ac_t""no" 1>&6
13270 fi
13271 done
13272     
13273   else
13274     
13275   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13276 echo "configure:13277: checking for _finitef declaration" >&5
13277   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13278     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13279   echo $ac_n "(cached) $ac_c" 1>&6
13280 else
13281   
13282       
13283       ac_ext=C
13284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13285 ac_cpp='$CXXCPP $CPPFLAGS'
13286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13288 cross_compiling=$ac_cv_prog_cxx_cross
13289
13290       cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13293 #include <math.h>
13294                       #ifdef HAVE_IEEEFP_H
13295                       #include <ieeefp.h>
13296                       #endif
13297                      
13298 int main() {
13299  _finitef(0);
13300 ; return 0; }
13301 EOF
13302 if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13303   rm -rf conftest*
13304   glibcpp_cv_func__finitef_use=yes
13305 else
13306   echo "configure: failed program was:" >&5
13307   cat conftest.$ac_ext >&5
13308   rm -rf conftest*
13309   glibcpp_cv_func__finitef_use=no
13310 fi
13311 rm -f conftest*
13312       ac_ext=c
13313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13317 cross_compiling=$ac_cv_prog_cc_cross
13318
13319     
13320 fi
13321
13322   fi
13323   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13324
13325     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13326       for ac_func in _finitef
13327 do
13328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13329 echo "configure:13330: checking for $ac_func" >&5
13330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13331   echo $ac_n "(cached) $ac_c" 1>&6
13332 else
13333   cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 /* System header to define __stub macros and hopefully few prototypes,
13337     which can conflict with char $ac_func(); below.  */
13338 #include <assert.h>
13339 /* Override any gcc2 internal prototype to avoid an error.  */
13340 /* We use char because int might match the return type of a gcc2
13341     builtin and then its argument prototype would still apply.  */
13342 char $ac_func();
13343
13344 int main() {
13345
13346 /* The GNU C library defines this for functions which it implements
13347     to always fail with ENOSYS.  Some functions are actually named
13348     something starting with __ and the normal name is an alias.  */
13349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13350 choke me
13351 #else
13352 $ac_func();
13353 #endif
13354
13355 ; return 0; }
13356 EOF
13357 if { (eval echo configure:13358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13358   rm -rf conftest*
13359   eval "ac_cv_func_$ac_func=yes"
13360 else
13361   echo "configure: failed program was:" >&5
13362   cat conftest.$ac_ext >&5
13363   rm -rf conftest*
13364   eval "ac_cv_func_$ac_func=no"
13365 fi
13366 rm -f conftest*
13367 fi
13368
13369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13370   echo "$ac_t""yes" 1>&6
13371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13372   cat >> confdefs.h <<EOF
13373 #define $ac_tr_func 1
13374 EOF
13375  
13376 else
13377   echo "$ac_t""no" 1>&6
13378 fi
13379 done
13380     
13381     fi
13382   fi
13383
13384
13385     
13386   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13387 echo "configure:13388: checking for long double trig functions" >&5
13388   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13389   echo $ac_n "(cached) $ac_c" 1>&6
13390 else
13391   
13392     
13393     ac_ext=C
13394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13395 ac_cpp='$CXXCPP $CPPFLAGS'
13396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13398 cross_compiling=$ac_cv_prog_cxx_cross
13399
13400     cat > conftest.$ac_ext <<EOF
13401 #line 13402 "configure"
13402 #include "confdefs.h"
13403 #include <math.h>
13404 int main() {
13405  `for x in acosl asinl atanl \
13406                                           cosl sinl tanl \
13407                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
13408 ; return 0; }
13409 EOF
13410 if { (eval echo configure:13411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13411   rm -rf conftest*
13412   glibcpp_cv_func_long_double_trig_use=yes
13413 else
13414   echo "configure: failed program was:" >&5
13415   cat conftest.$ac_ext >&5
13416   rm -rf conftest*
13417   glibcpp_cv_func_long_double_trig_use=no
13418 fi
13419 rm -f conftest*
13420     ac_ext=c
13421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13422 ac_cpp='$CPP $CPPFLAGS'
13423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13425 cross_compiling=$ac_cv_prog_cc_cross
13426
13427 fi
13428
13429   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13430   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13431     for ac_func in acosl asinl atanl \
13432                                           cosl sinl tanl \
13433                                           coshl sinhl tanhl
13434 do
13435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13436 echo "configure:13437: checking for $ac_func" >&5
13437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13438   echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13440   cat > conftest.$ac_ext <<EOF
13441 #line 13442 "configure"
13442 #include "confdefs.h"
13443 /* System header to define __stub macros and hopefully few prototypes,
13444     which can conflict with char $ac_func(); below.  */
13445 #include <assert.h>
13446 /* Override any gcc2 internal prototype to avoid an error.  */
13447 /* We use char because int might match the return type of a gcc2
13448     builtin and then its argument prototype would still apply.  */
13449 char $ac_func();
13450
13451 int main() {
13452
13453 /* The GNU C library defines this for functions which it implements
13454     to always fail with ENOSYS.  Some functions are actually named
13455     something starting with __ and the normal name is an alias.  */
13456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13457 choke me
13458 #else
13459 $ac_func();
13460 #endif
13461
13462 ; return 0; }
13463 EOF
13464 if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465   rm -rf conftest*
13466   eval "ac_cv_func_$ac_func=yes"
13467 else
13468   echo "configure: failed program was:" >&5
13469   cat conftest.$ac_ext >&5
13470   rm -rf conftest*
13471   eval "ac_cv_func_$ac_func=no"
13472 fi
13473 rm -f conftest*
13474 fi
13475
13476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13477   echo "$ac_t""yes" 1>&6
13478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13479   cat >> confdefs.h <<EOF
13480 #define $ac_tr_func 1
13481 EOF
13482  
13483 else
13484   echo "$ac_t""no" 1>&6
13485 fi
13486 done
13487
13488   fi
13489
13490   
13491   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13492 echo "configure:13493: checking for long double round functions" >&5
13493   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13494   echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13496   
13497     
13498     ac_ext=C
13499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13500 ac_cpp='$CXXCPP $CPPFLAGS'
13501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13503 cross_compiling=$ac_cv_prog_cxx_cross
13504
13505     cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <math.h>
13509 int main() {
13510  `for x in ceill floorl; do echo "$x (0);"; done` 
13511 ; return 0; }
13512 EOF
13513 if { (eval echo configure:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13514   rm -rf conftest*
13515   glibcpp_cv_func_long_double_round_use=yes
13516 else
13517   echo "configure: failed program was:" >&5
13518   cat conftest.$ac_ext >&5
13519   rm -rf conftest*
13520   glibcpp_cv_func_long_double_round_use=no
13521 fi
13522 rm -f conftest*
13523     ac_ext=c
13524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cc_cross
13529
13530 fi
13531
13532   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13533   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13534     for ac_func in ceill floorl
13535 do
13536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13537 echo "configure:13538: checking for $ac_func" >&5
13538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13539   echo $ac_n "(cached) $ac_c" 1>&6
13540 else
13541   cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 /* System header to define __stub macros and hopefully few prototypes,
13545     which can conflict with char $ac_func(); below.  */
13546 #include <assert.h>
13547 /* Override any gcc2 internal prototype to avoid an error.  */
13548 /* We use char because int might match the return type of a gcc2
13549     builtin and then its argument prototype would still apply.  */
13550 char $ac_func();
13551
13552 int main() {
13553
13554 /* The GNU C library defines this for functions which it implements
13555     to always fail with ENOSYS.  Some functions are actually named
13556     something starting with __ and the normal name is an alias.  */
13557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13558 choke me
13559 #else
13560 $ac_func();
13561 #endif
13562
13563 ; return 0; }
13564 EOF
13565 if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13566   rm -rf conftest*
13567   eval "ac_cv_func_$ac_func=yes"
13568 else
13569   echo "configure: failed program was:" >&5
13570   cat conftest.$ac_ext >&5
13571   rm -rf conftest*
13572   eval "ac_cv_func_$ac_func=no"
13573 fi
13574 rm -f conftest*
13575 fi
13576
13577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13578   echo "$ac_t""yes" 1>&6
13579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13580   cat >> confdefs.h <<EOF
13581 #define $ac_tr_func 1
13582 EOF
13583  
13584 else
13585   echo "$ac_t""no" 1>&6
13586 fi
13587 done
13588
13589   fi
13590
13591   
13592   
13593   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13594 echo "configure:13595: checking for isnanl declaration" >&5
13595   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13596     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13597   echo $ac_n "(cached) $ac_c" 1>&6
13598 else
13599   
13600       
13601       ac_ext=C
13602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13603 ac_cpp='$CXXCPP $CPPFLAGS'
13604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13606 cross_compiling=$ac_cv_prog_cxx_cross
13607
13608       cat > conftest.$ac_ext <<EOF
13609 #line 13610 "configure"
13610 #include "confdefs.h"
13611 #include <math.h>
13612                       #ifdef HAVE_IEEEFP_H
13613                       #include <ieeefp.h>
13614                       #endif
13615                      
13616 int main() {
13617  isnanl(0);
13618 ; return 0; }
13619 EOF
13620 if { (eval echo configure:13621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13621   rm -rf conftest*
13622   glibcpp_cv_func_isnanl_use=yes
13623 else
13624   echo "configure: failed program was:" >&5
13625   cat conftest.$ac_ext >&5
13626   rm -rf conftest*
13627   glibcpp_cv_func_isnanl_use=no
13628 fi
13629 rm -f conftest*
13630       ac_ext=c
13631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13632 ac_cpp='$CPP $CPPFLAGS'
13633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13635 cross_compiling=$ac_cv_prog_cc_cross
13636
13637     
13638 fi
13639
13640   fi
13641   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13642
13643   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13644     for ac_func in isnanl
13645 do
13646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13647 echo "configure:13648: checking for $ac_func" >&5
13648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13649   echo $ac_n "(cached) $ac_c" 1>&6
13650 else
13651   cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* System header to define __stub macros and hopefully few prototypes,
13655     which can conflict with char $ac_func(); below.  */
13656 #include <assert.h>
13657 /* Override any gcc2 internal prototype to avoid an error.  */
13658 /* We use char because int might match the return type of a gcc2
13659     builtin and then its argument prototype would still apply.  */
13660 char $ac_func();
13661
13662 int main() {
13663
13664 /* The GNU C library defines this for functions which it implements
13665     to always fail with ENOSYS.  Some functions are actually named
13666     something starting with __ and the normal name is an alias.  */
13667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13668 choke me
13669 #else
13670 $ac_func();
13671 #endif
13672
13673 ; return 0; }
13674 EOF
13675 if { (eval echo configure:13676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13676   rm -rf conftest*
13677   eval "ac_cv_func_$ac_func=yes"
13678 else
13679   echo "configure: failed program was:" >&5
13680   cat conftest.$ac_ext >&5
13681   rm -rf conftest*
13682   eval "ac_cv_func_$ac_func=no"
13683 fi
13684 rm -f conftest*
13685 fi
13686
13687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13688   echo "$ac_t""yes" 1>&6
13689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13690   cat >> confdefs.h <<EOF
13691 #define $ac_tr_func 1
13692 EOF
13693  
13694 else
13695   echo "$ac_t""no" 1>&6
13696 fi
13697 done
13698     
13699   else
13700     
13701   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13702 echo "configure:13703: checking for _isnanl declaration" >&5
13703   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13704     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13705   echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13707   
13708       
13709       ac_ext=C
13710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13711 ac_cpp='$CXXCPP $CPPFLAGS'
13712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13714 cross_compiling=$ac_cv_prog_cxx_cross
13715
13716       cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <math.h>
13720                       #ifdef HAVE_IEEEFP_H
13721                       #include <ieeefp.h>
13722                       #endif
13723                      
13724 int main() {
13725  _isnanl(0);
13726 ; return 0; }
13727 EOF
13728 if { (eval echo configure:13729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13729   rm -rf conftest*
13730   glibcpp_cv_func__isnanl_use=yes
13731 else
13732   echo "configure: failed program was:" >&5
13733   cat conftest.$ac_ext >&5
13734   rm -rf conftest*
13735   glibcpp_cv_func__isnanl_use=no
13736 fi
13737 rm -f conftest*
13738       ac_ext=c
13739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13743 cross_compiling=$ac_cv_prog_cc_cross
13744
13745     
13746 fi
13747
13748   fi
13749   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13750
13751     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13752       for ac_func in _isnanl
13753 do
13754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13755 echo "configure:13756: checking for $ac_func" >&5
13756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13757   echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759   cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* System header to define __stub macros and hopefully few prototypes,
13763     which can conflict with char $ac_func(); below.  */
13764 #include <assert.h>
13765 /* Override any gcc2 internal prototype to avoid an error.  */
13766 /* We use char because int might match the return type of a gcc2
13767     builtin and then its argument prototype would still apply.  */
13768 char $ac_func();
13769
13770 int main() {
13771
13772 /* The GNU C library defines this for functions which it implements
13773     to always fail with ENOSYS.  Some functions are actually named
13774     something starting with __ and the normal name is an alias.  */
13775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13776 choke me
13777 #else
13778 $ac_func();
13779 #endif
13780
13781 ; return 0; }
13782 EOF
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784   rm -rf conftest*
13785   eval "ac_cv_func_$ac_func=yes"
13786 else
13787   echo "configure: failed program was:" >&5
13788   cat conftest.$ac_ext >&5
13789   rm -rf conftest*
13790   eval "ac_cv_func_$ac_func=no"
13791 fi
13792 rm -f conftest*
13793 fi
13794
13795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13796   echo "$ac_t""yes" 1>&6
13797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13798   cat >> confdefs.h <<EOF
13799 #define $ac_tr_func 1
13800 EOF
13801  
13802 else
13803   echo "$ac_t""no" 1>&6
13804 fi
13805 done
13806     
13807     fi
13808   fi
13809
13810   
13811   
13812   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13813 echo "configure:13814: checking for isinfl declaration" >&5
13814   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13815     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13816   echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13818   
13819       
13820       ac_ext=C
13821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13822 ac_cpp='$CXXCPP $CPPFLAGS'
13823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13825 cross_compiling=$ac_cv_prog_cxx_cross
13826
13827       cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 #include <math.h>
13831                       #ifdef HAVE_IEEEFP_H
13832                       #include <ieeefp.h>
13833                       #endif
13834                      
13835 int main() {
13836  isinfl(0);
13837 ; return 0; }
13838 EOF
13839 if { (eval echo configure:13840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13840   rm -rf conftest*
13841   glibcpp_cv_func_isinfl_use=yes
13842 else
13843   echo "configure: failed program was:" >&5
13844   cat conftest.$ac_ext >&5
13845   rm -rf conftest*
13846   glibcpp_cv_func_isinfl_use=no
13847 fi
13848 rm -f conftest*
13849       ac_ext=c
13850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13851 ac_cpp='$CPP $CPPFLAGS'
13852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13854 cross_compiling=$ac_cv_prog_cc_cross
13855
13856     
13857 fi
13858
13859   fi
13860   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13861
13862   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13863     for ac_func in isinfl
13864 do
13865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13866 echo "configure:13867: checking for $ac_func" >&5
13867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13868   echo $ac_n "(cached) $ac_c" 1>&6
13869 else
13870   cat > conftest.$ac_ext <<EOF
13871 #line 13872 "configure"
13872 #include "confdefs.h"
13873 /* System header to define __stub macros and hopefully few prototypes,
13874     which can conflict with char $ac_func(); below.  */
13875 #include <assert.h>
13876 /* Override any gcc2 internal prototype to avoid an error.  */
13877 /* We use char because int might match the return type of a gcc2
13878     builtin and then its argument prototype would still apply.  */
13879 char $ac_func();
13880
13881 int main() {
13882
13883 /* The GNU C library defines this for functions which it implements
13884     to always fail with ENOSYS.  Some functions are actually named
13885     something starting with __ and the normal name is an alias.  */
13886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13887 choke me
13888 #else
13889 $ac_func();
13890 #endif
13891
13892 ; return 0; }
13893 EOF
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13895   rm -rf conftest*
13896   eval "ac_cv_func_$ac_func=yes"
13897 else
13898   echo "configure: failed program was:" >&5
13899   cat conftest.$ac_ext >&5
13900   rm -rf conftest*
13901   eval "ac_cv_func_$ac_func=no"
13902 fi
13903 rm -f conftest*
13904 fi
13905
13906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13907   echo "$ac_t""yes" 1>&6
13908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13909   cat >> confdefs.h <<EOF
13910 #define $ac_tr_func 1
13911 EOF
13912  
13913 else
13914   echo "$ac_t""no" 1>&6
13915 fi
13916 done
13917     
13918   else
13919     
13920   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13921 echo "configure:13922: checking for _isinfl declaration" >&5
13922   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13923     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13924   echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13926   
13927       
13928       ac_ext=C
13929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13930 ac_cpp='$CXXCPP $CPPFLAGS'
13931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13933 cross_compiling=$ac_cv_prog_cxx_cross
13934
13935       cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <math.h>
13939                       #ifdef HAVE_IEEEFP_H
13940                       #include <ieeefp.h>
13941                       #endif
13942                      
13943 int main() {
13944  _isinfl(0);
13945 ; return 0; }
13946 EOF
13947 if { (eval echo configure:13948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13948   rm -rf conftest*
13949   glibcpp_cv_func__isinfl_use=yes
13950 else
13951   echo "configure: failed program was:" >&5
13952   cat conftest.$ac_ext >&5
13953   rm -rf conftest*
13954   glibcpp_cv_func__isinfl_use=no
13955 fi
13956 rm -f conftest*
13957       ac_ext=c
13958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13959 ac_cpp='$CPP $CPPFLAGS'
13960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13962 cross_compiling=$ac_cv_prog_cc_cross
13963
13964     
13965 fi
13966
13967   fi
13968   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13969
13970     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13971       for ac_func in _isinfl
13972 do
13973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13974 echo "configure:13975: checking for $ac_func" >&5
13975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13976   echo $ac_n "(cached) $ac_c" 1>&6
13977 else
13978   cat > conftest.$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13981 /* System header to define __stub macros and hopefully few prototypes,
13982     which can conflict with char $ac_func(); below.  */
13983 #include <assert.h>
13984 /* Override any gcc2 internal prototype to avoid an error.  */
13985 /* We use char because int might match the return type of a gcc2
13986     builtin and then its argument prototype would still apply.  */
13987 char $ac_func();
13988
13989 int main() {
13990
13991 /* The GNU C library defines this for functions which it implements
13992     to always fail with ENOSYS.  Some functions are actually named
13993     something starting with __ and the normal name is an alias.  */
13994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13995 choke me
13996 #else
13997 $ac_func();
13998 #endif
13999
14000 ; return 0; }
14001 EOF
14002 if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14003   rm -rf conftest*
14004   eval "ac_cv_func_$ac_func=yes"
14005 else
14006   echo "configure: failed program was:" >&5
14007   cat conftest.$ac_ext >&5
14008   rm -rf conftest*
14009   eval "ac_cv_func_$ac_func=no"
14010 fi
14011 rm -f conftest*
14012 fi
14013
14014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14015   echo "$ac_t""yes" 1>&6
14016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14017   cat >> confdefs.h <<EOF
14018 #define $ac_tr_func 1
14019 EOF
14020  
14021 else
14022   echo "$ac_t""no" 1>&6
14023 fi
14024 done
14025     
14026     fi
14027   fi
14028
14029   
14030   
14031   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14032 echo "configure:14033: checking for copysignl declaration" >&5
14033   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14034     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14035   echo $ac_n "(cached) $ac_c" 1>&6
14036 else
14037   
14038       
14039       ac_ext=C
14040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14041 ac_cpp='$CXXCPP $CPPFLAGS'
14042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14044 cross_compiling=$ac_cv_prog_cxx_cross
14045
14046       cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <math.h>
14050 int main() {
14051  copysignl(0, 0);
14052 ; return 0; }
14053 EOF
14054 if { (eval echo configure:14055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14055   rm -rf conftest*
14056   glibcpp_cv_func_copysignl_use=yes
14057 else
14058   echo "configure: failed program was:" >&5
14059   cat conftest.$ac_ext >&5
14060   rm -rf conftest*
14061   glibcpp_cv_func_copysignl_use=no
14062 fi
14063 rm -f conftest*
14064       ac_ext=c
14065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14066 ac_cpp='$CPP $CPPFLAGS'
14067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14069 cross_compiling=$ac_cv_prog_cc_cross
14070
14071     
14072 fi
14073
14074   fi
14075   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14076
14077   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14078     for ac_func in copysignl
14079 do
14080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14081 echo "configure:14082: checking for $ac_func" >&5
14082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14083   echo $ac_n "(cached) $ac_c" 1>&6
14084 else
14085   cat > conftest.$ac_ext <<EOF
14086 #line 14087 "configure"
14087 #include "confdefs.h"
14088 /* System header to define __stub macros and hopefully few prototypes,
14089     which can conflict with char $ac_func(); below.  */
14090 #include <assert.h>
14091 /* Override any gcc2 internal prototype to avoid an error.  */
14092 /* We use char because int might match the return type of a gcc2
14093     builtin and then its argument prototype would still apply.  */
14094 char $ac_func();
14095
14096 int main() {
14097
14098 /* The GNU C library defines this for functions which it implements
14099     to always fail with ENOSYS.  Some functions are actually named
14100     something starting with __ and the normal name is an alias.  */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14102 choke me
14103 #else
14104 $ac_func();
14105 #endif
14106
14107 ; return 0; }
14108 EOF
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110   rm -rf conftest*
14111   eval "ac_cv_func_$ac_func=yes"
14112 else
14113   echo "configure: failed program was:" >&5
14114   cat conftest.$ac_ext >&5
14115   rm -rf conftest*
14116   eval "ac_cv_func_$ac_func=no"
14117 fi
14118 rm -f conftest*
14119 fi
14120
14121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14122   echo "$ac_t""yes" 1>&6
14123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14124   cat >> confdefs.h <<EOF
14125 #define $ac_tr_func 1
14126 EOF
14127  
14128 else
14129   echo "$ac_t""no" 1>&6
14130 fi
14131 done
14132     
14133   else
14134     
14135   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14136 echo "configure:14137: checking for _copysignl declaration" >&5
14137   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14138     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14139   echo $ac_n "(cached) $ac_c" 1>&6
14140 else
14141   
14142       
14143       ac_ext=C
14144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14145 ac_cpp='$CXXCPP $CPPFLAGS'
14146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14148 cross_compiling=$ac_cv_prog_cxx_cross
14149
14150       cat > conftest.$ac_ext <<EOF
14151 #line 14152 "configure"
14152 #include "confdefs.h"
14153 #include <math.h>
14154 int main() {
14155  _copysignl(0, 0);
14156 ; return 0; }
14157 EOF
14158 if { (eval echo configure:14159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14159   rm -rf conftest*
14160   glibcpp_cv_func__copysignl_use=yes
14161 else
14162   echo "configure: failed program was:" >&5
14163   cat conftest.$ac_ext >&5
14164   rm -rf conftest*
14165   glibcpp_cv_func__copysignl_use=no
14166 fi
14167 rm -f conftest*
14168       ac_ext=c
14169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14173 cross_compiling=$ac_cv_prog_cc_cross
14174
14175     
14176 fi
14177
14178   fi
14179   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14180
14181     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14182       for ac_func in _copysignl
14183 do
14184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14185 echo "configure:14186: checking for $ac_func" >&5
14186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14187   echo $ac_n "(cached) $ac_c" 1>&6
14188 else
14189   cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* System header to define __stub macros and hopefully few prototypes,
14193     which can conflict with char $ac_func(); below.  */
14194 #include <assert.h>
14195 /* Override any gcc2 internal prototype to avoid an error.  */
14196 /* We use char because int might match the return type of a gcc2
14197     builtin and then its argument prototype would still apply.  */
14198 char $ac_func();
14199
14200 int main() {
14201
14202 /* The GNU C library defines this for functions which it implements
14203     to always fail with ENOSYS.  Some functions are actually named
14204     something starting with __ and the normal name is an alias.  */
14205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14206 choke me
14207 #else
14208 $ac_func();
14209 #endif
14210
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214   rm -rf conftest*
14215   eval "ac_cv_func_$ac_func=yes"
14216 else
14217   echo "configure: failed program was:" >&5
14218   cat conftest.$ac_ext >&5
14219   rm -rf conftest*
14220   eval "ac_cv_func_$ac_func=no"
14221 fi
14222 rm -f conftest*
14223 fi
14224
14225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14226   echo "$ac_t""yes" 1>&6
14227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14228   cat >> confdefs.h <<EOF
14229 #define $ac_tr_func 1
14230 EOF
14231  
14232 else
14233   echo "$ac_t""no" 1>&6
14234 fi
14235 done
14236     
14237     fi
14238   fi
14239
14240   
14241   
14242   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14243 echo "configure:14244: checking for atan2l declaration" >&5
14244   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14245     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14246   echo $ac_n "(cached) $ac_c" 1>&6
14247 else
14248   
14249       
14250       ac_ext=C
14251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14252 ac_cpp='$CXXCPP $CPPFLAGS'
14253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14255 cross_compiling=$ac_cv_prog_cxx_cross
14256
14257       cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 #include <math.h>
14261 int main() {
14262  atan2l(0, 0);
14263 ; return 0; }
14264 EOF
14265 if { (eval echo configure:14266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14266   rm -rf conftest*
14267   glibcpp_cv_func_atan2l_use=yes
14268 else
14269   echo "configure: failed program was:" >&5
14270   cat conftest.$ac_ext >&5
14271   rm -rf conftest*
14272   glibcpp_cv_func_atan2l_use=no
14273 fi
14274 rm -f conftest*
14275       ac_ext=c
14276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14277 ac_cpp='$CPP $CPPFLAGS'
14278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14280 cross_compiling=$ac_cv_prog_cc_cross
14281
14282     
14283 fi
14284
14285   fi
14286   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14287
14288   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14289     for ac_func in atan2l
14290 do
14291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14292 echo "configure:14293: checking for $ac_func" >&5
14293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14294   echo $ac_n "(cached) $ac_c" 1>&6
14295 else
14296   cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* System header to define __stub macros and hopefully few prototypes,
14300     which can conflict with char $ac_func(); below.  */
14301 #include <assert.h>
14302 /* Override any gcc2 internal prototype to avoid an error.  */
14303 /* We use char because int might match the return type of a gcc2
14304     builtin and then its argument prototype would still apply.  */
14305 char $ac_func();
14306
14307 int main() {
14308
14309 /* The GNU C library defines this for functions which it implements
14310     to always fail with ENOSYS.  Some functions are actually named
14311     something starting with __ and the normal name is an alias.  */
14312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14313 choke me
14314 #else
14315 $ac_func();
14316 #endif
14317
14318 ; return 0; }
14319 EOF
14320 if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321   rm -rf conftest*
14322   eval "ac_cv_func_$ac_func=yes"
14323 else
14324   echo "configure: failed program was:" >&5
14325   cat conftest.$ac_ext >&5
14326   rm -rf conftest*
14327   eval "ac_cv_func_$ac_func=no"
14328 fi
14329 rm -f conftest*
14330 fi
14331
14332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14333   echo "$ac_t""yes" 1>&6
14334     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14335   cat >> confdefs.h <<EOF
14336 #define $ac_tr_func 1
14337 EOF
14338  
14339 else
14340   echo "$ac_t""no" 1>&6
14341 fi
14342 done
14343     
14344   else
14345     
14346   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14347 echo "configure:14348: checking for _atan2l declaration" >&5
14348   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14349     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14350   echo $ac_n "(cached) $ac_c" 1>&6
14351 else
14352   
14353       
14354       ac_ext=C
14355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14356 ac_cpp='$CXXCPP $CPPFLAGS'
14357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14359 cross_compiling=$ac_cv_prog_cxx_cross
14360
14361       cat > conftest.$ac_ext <<EOF
14362 #line 14363 "configure"
14363 #include "confdefs.h"
14364 #include <math.h>
14365 int main() {
14366  _atan2l(0, 0);
14367 ; return 0; }
14368 EOF
14369 if { (eval echo configure:14370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14370   rm -rf conftest*
14371   glibcpp_cv_func__atan2l_use=yes
14372 else
14373   echo "configure: failed program was:" >&5
14374   cat conftest.$ac_ext >&5
14375   rm -rf conftest*
14376   glibcpp_cv_func__atan2l_use=no
14377 fi
14378 rm -f conftest*
14379       ac_ext=c
14380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14381 ac_cpp='$CPP $CPPFLAGS'
14382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14384 cross_compiling=$ac_cv_prog_cc_cross
14385
14386     
14387 fi
14388
14389   fi
14390   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14391
14392     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14393       for ac_func in _atan2l
14394 do
14395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14396 echo "configure:14397: checking for $ac_func" >&5
14397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14398   echo $ac_n "(cached) $ac_c" 1>&6
14399 else
14400   cat > conftest.$ac_ext <<EOF
14401 #line 14402 "configure"
14402 #include "confdefs.h"
14403 /* System header to define __stub macros and hopefully few prototypes,
14404     which can conflict with char $ac_func(); below.  */
14405 #include <assert.h>
14406 /* Override any gcc2 internal prototype to avoid an error.  */
14407 /* We use char because int might match the return type of a gcc2
14408     builtin and then its argument prototype would still apply.  */
14409 char $ac_func();
14410
14411 int main() {
14412
14413 /* The GNU C library defines this for functions which it implements
14414     to always fail with ENOSYS.  Some functions are actually named
14415     something starting with __ and the normal name is an alias.  */
14416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14417 choke me
14418 #else
14419 $ac_func();
14420 #endif
14421
14422 ; return 0; }
14423 EOF
14424 if { (eval echo configure:14425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14425   rm -rf conftest*
14426   eval "ac_cv_func_$ac_func=yes"
14427 else
14428   echo "configure: failed program was:" >&5
14429   cat conftest.$ac_ext >&5
14430   rm -rf conftest*
14431   eval "ac_cv_func_$ac_func=no"
14432 fi
14433 rm -f conftest*
14434 fi
14435
14436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14437   echo "$ac_t""yes" 1>&6
14438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14439   cat >> confdefs.h <<EOF
14440 #define $ac_tr_func 1
14441 EOF
14442  
14443 else
14444   echo "$ac_t""no" 1>&6
14445 fi
14446 done
14447     
14448     fi
14449   fi
14450
14451   
14452   
14453   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14454 echo "configure:14455: checking for expl declaration" >&5
14455   if test x${glibcpp_cv_func_expl_use+set} != xset; then
14456     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14457   echo $ac_n "(cached) $ac_c" 1>&6
14458 else
14459   
14460       
14461       ac_ext=C
14462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14463 ac_cpp='$CXXCPP $CPPFLAGS'
14464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14466 cross_compiling=$ac_cv_prog_cxx_cross
14467
14468       cat > conftest.$ac_ext <<EOF
14469 #line 14470 "configure"
14470 #include "confdefs.h"
14471 #include <math.h>
14472                       #ifdef HAVE_IEEEFP_H
14473                       #include <ieeefp.h>
14474                       #endif
14475                      
14476 int main() {
14477  expl(0);
14478 ; return 0; }
14479 EOF
14480 if { (eval echo configure:14481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14481   rm -rf conftest*
14482   glibcpp_cv_func_expl_use=yes
14483 else
14484   echo "configure: failed program was:" >&5
14485   cat conftest.$ac_ext >&5
14486   rm -rf conftest*
14487   glibcpp_cv_func_expl_use=no
14488 fi
14489 rm -f conftest*
14490       ac_ext=c
14491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14492 ac_cpp='$CPP $CPPFLAGS'
14493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14495 cross_compiling=$ac_cv_prog_cc_cross
14496
14497     
14498 fi
14499
14500   fi
14501   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14502
14503   if test x$glibcpp_cv_func_expl_use = x"yes"; then
14504     for ac_func in expl
14505 do
14506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14507 echo "configure:14508: checking for $ac_func" >&5
14508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14509   echo $ac_n "(cached) $ac_c" 1>&6
14510 else
14511   cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 /* System header to define __stub macros and hopefully few prototypes,
14515     which can conflict with char $ac_func(); below.  */
14516 #include <assert.h>
14517 /* Override any gcc2 internal prototype to avoid an error.  */
14518 /* We use char because int might match the return type of a gcc2
14519     builtin and then its argument prototype would still apply.  */
14520 char $ac_func();
14521
14522 int main() {
14523
14524 /* The GNU C library defines this for functions which it implements
14525     to always fail with ENOSYS.  Some functions are actually named
14526     something starting with __ and the normal name is an alias.  */
14527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14528 choke me
14529 #else
14530 $ac_func();
14531 #endif
14532
14533 ; return 0; }
14534 EOF
14535 if { (eval echo configure:14536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14536   rm -rf conftest*
14537   eval "ac_cv_func_$ac_func=yes"
14538 else
14539   echo "configure: failed program was:" >&5
14540   cat conftest.$ac_ext >&5
14541   rm -rf conftest*
14542   eval "ac_cv_func_$ac_func=no"
14543 fi
14544 rm -f conftest*
14545 fi
14546
14547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14548   echo "$ac_t""yes" 1>&6
14549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14550   cat >> confdefs.h <<EOF
14551 #define $ac_tr_func 1
14552 EOF
14553  
14554 else
14555   echo "$ac_t""no" 1>&6
14556 fi
14557 done
14558     
14559   else
14560     
14561   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14562 echo "configure:14563: checking for _expl declaration" >&5
14563   if test x${glibcpp_cv_func__expl_use+set} != xset; then
14564     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14565   echo $ac_n "(cached) $ac_c" 1>&6
14566 else
14567   
14568       
14569       ac_ext=C
14570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14571 ac_cpp='$CXXCPP $CPPFLAGS'
14572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14574 cross_compiling=$ac_cv_prog_cxx_cross
14575
14576       cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14579 #include <math.h>
14580                       #ifdef HAVE_IEEEFP_H
14581                       #include <ieeefp.h>
14582                       #endif
14583                      
14584 int main() {
14585  _expl(0);
14586 ; return 0; }
14587 EOF
14588 if { (eval echo configure:14589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14589   rm -rf conftest*
14590   glibcpp_cv_func__expl_use=yes
14591 else
14592   echo "configure: failed program was:" >&5
14593   cat conftest.$ac_ext >&5
14594   rm -rf conftest*
14595   glibcpp_cv_func__expl_use=no
14596 fi
14597 rm -f conftest*
14598       ac_ext=c
14599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14600 ac_cpp='$CPP $CPPFLAGS'
14601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14603 cross_compiling=$ac_cv_prog_cc_cross
14604
14605     
14606 fi
14607
14608   fi
14609   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14610
14611     if test x$glibcpp_cv_func__expl_use = x"yes"; then
14612       for ac_func in _expl
14613 do
14614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14615 echo "configure:14616: checking for $ac_func" >&5
14616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14617   echo $ac_n "(cached) $ac_c" 1>&6
14618 else
14619   cat > conftest.$ac_ext <<EOF
14620 #line 14621 "configure"
14621 #include "confdefs.h"
14622 /* System header to define __stub macros and hopefully few prototypes,
14623     which can conflict with char $ac_func(); below.  */
14624 #include <assert.h>
14625 /* Override any gcc2 internal prototype to avoid an error.  */
14626 /* We use char because int might match the return type of a gcc2
14627     builtin and then its argument prototype would still apply.  */
14628 char $ac_func();
14629
14630 int main() {
14631
14632 /* The GNU C library defines this for functions which it implements
14633     to always fail with ENOSYS.  Some functions are actually named
14634     something starting with __ and the normal name is an alias.  */
14635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14636 choke me
14637 #else
14638 $ac_func();
14639 #endif
14640
14641 ; return 0; }
14642 EOF
14643 if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14644   rm -rf conftest*
14645   eval "ac_cv_func_$ac_func=yes"
14646 else
14647   echo "configure: failed program was:" >&5
14648   cat conftest.$ac_ext >&5
14649   rm -rf conftest*
14650   eval "ac_cv_func_$ac_func=no"
14651 fi
14652 rm -f conftest*
14653 fi
14654
14655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14656   echo "$ac_t""yes" 1>&6
14657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14658   cat >> confdefs.h <<EOF
14659 #define $ac_tr_func 1
14660 EOF
14661  
14662 else
14663   echo "$ac_t""no" 1>&6
14664 fi
14665 done
14666     
14667     fi
14668   fi
14669
14670   
14671   
14672   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14673 echo "configure:14674: checking for fabsl declaration" >&5
14674   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14675     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14676   echo $ac_n "(cached) $ac_c" 1>&6
14677 else
14678   
14679       
14680       ac_ext=C
14681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14682 ac_cpp='$CXXCPP $CPPFLAGS'
14683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14685 cross_compiling=$ac_cv_prog_cxx_cross
14686
14687       cat > conftest.$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14690 #include <math.h>
14691                       #ifdef HAVE_IEEEFP_H
14692                       #include <ieeefp.h>
14693                       #endif
14694                      
14695 int main() {
14696  fabsl(0);
14697 ; return 0; }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700   rm -rf conftest*
14701   glibcpp_cv_func_fabsl_use=yes
14702 else
14703   echo "configure: failed program was:" >&5
14704   cat conftest.$ac_ext >&5
14705   rm -rf conftest*
14706   glibcpp_cv_func_fabsl_use=no
14707 fi
14708 rm -f conftest*
14709       ac_ext=c
14710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14711 ac_cpp='$CPP $CPPFLAGS'
14712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14714 cross_compiling=$ac_cv_prog_cc_cross
14715
14716     
14717 fi
14718
14719   fi
14720   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14721
14722   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14723     for ac_func in fabsl
14724 do
14725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14726 echo "configure:14727: checking for $ac_func" >&5
14727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func(); below.  */
14735 #include <assert.h>
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 /* We use char because int might match the return type of a gcc2
14738     builtin and then its argument prototype would still apply.  */
14739 char $ac_func();
14740
14741 int main() {
14742
14743 /* The GNU C library defines this for functions which it implements
14744     to always fail with ENOSYS.  Some functions are actually named
14745     something starting with __ and the normal name is an alias.  */
14746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14747 choke me
14748 #else
14749 $ac_func();
14750 #endif
14751
14752 ; return 0; }
14753 EOF
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14755   rm -rf conftest*
14756   eval "ac_cv_func_$ac_func=yes"
14757 else
14758   echo "configure: failed program was:" >&5
14759   cat conftest.$ac_ext >&5
14760   rm -rf conftest*
14761   eval "ac_cv_func_$ac_func=no"
14762 fi
14763 rm -f conftest*
14764 fi
14765
14766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14767   echo "$ac_t""yes" 1>&6
14768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14769   cat >> confdefs.h <<EOF
14770 #define $ac_tr_func 1
14771 EOF
14772  
14773 else
14774   echo "$ac_t""no" 1>&6
14775 fi
14776 done
14777     
14778   else
14779     
14780   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14781 echo "configure:14782: checking for _fabsl declaration" >&5
14782   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14783     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14784   echo $ac_n "(cached) $ac_c" 1>&6
14785 else
14786   
14787       
14788       ac_ext=C
14789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14790 ac_cpp='$CXXCPP $CPPFLAGS'
14791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14793 cross_compiling=$ac_cv_prog_cxx_cross
14794
14795       cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14798 #include <math.h>
14799                       #ifdef HAVE_IEEEFP_H
14800                       #include <ieeefp.h>
14801                       #endif
14802                      
14803 int main() {
14804  _fabsl(0);
14805 ; return 0; }
14806 EOF
14807 if { (eval echo configure:14808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14808   rm -rf conftest*
14809   glibcpp_cv_func__fabsl_use=yes
14810 else
14811   echo "configure: failed program was:" >&5
14812   cat conftest.$ac_ext >&5
14813   rm -rf conftest*
14814   glibcpp_cv_func__fabsl_use=no
14815 fi
14816 rm -f conftest*
14817       ac_ext=c
14818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14822 cross_compiling=$ac_cv_prog_cc_cross
14823
14824     
14825 fi
14826
14827   fi
14828   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14829
14830     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14831       for ac_func in _fabsl
14832 do
14833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14834 echo "configure:14835: checking for $ac_func" >&5
14835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14836   echo $ac_n "(cached) $ac_c" 1>&6
14837 else
14838   cat > conftest.$ac_ext <<EOF
14839 #line 14840 "configure"
14840 #include "confdefs.h"
14841 /* System header to define __stub macros and hopefully few prototypes,
14842     which can conflict with char $ac_func(); below.  */
14843 #include <assert.h>
14844 /* Override any gcc2 internal prototype to avoid an error.  */
14845 /* We use char because int might match the return type of a gcc2
14846     builtin and then its argument prototype would still apply.  */
14847 char $ac_func();
14848
14849 int main() {
14850
14851 /* The GNU C library defines this for functions which it implements
14852     to always fail with ENOSYS.  Some functions are actually named
14853     something starting with __ and the normal name is an alias.  */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 $ac_func();
14858 #endif
14859
14860 ; return 0; }
14861 EOF
14862 if { (eval echo configure:14863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14863   rm -rf conftest*
14864   eval "ac_cv_func_$ac_func=yes"
14865 else
14866   echo "configure: failed program was:" >&5
14867   cat conftest.$ac_ext >&5
14868   rm -rf conftest*
14869   eval "ac_cv_func_$ac_func=no"
14870 fi
14871 rm -f conftest*
14872 fi
14873
14874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14875   echo "$ac_t""yes" 1>&6
14876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14877   cat >> confdefs.h <<EOF
14878 #define $ac_tr_func 1
14879 EOF
14880  
14881 else
14882   echo "$ac_t""no" 1>&6
14883 fi
14884 done
14885     
14886     fi
14887   fi
14888
14889   
14890   
14891   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14892 echo "configure:14893: checking for fmodl declaration" >&5
14893   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14894     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14895   echo $ac_n "(cached) $ac_c" 1>&6
14896 else
14897   
14898       
14899       ac_ext=C
14900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14901 ac_cpp='$CXXCPP $CPPFLAGS'
14902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14904 cross_compiling=$ac_cv_prog_cxx_cross
14905
14906       cat > conftest.$ac_ext <<EOF
14907 #line 14908 "configure"
14908 #include "confdefs.h"
14909 #include <math.h>
14910 int main() {
14911  fmodl(0, 0);
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14915   rm -rf conftest*
14916   glibcpp_cv_func_fmodl_use=yes
14917 else
14918   echo "configure: failed program was:" >&5
14919   cat conftest.$ac_ext >&5
14920   rm -rf conftest*
14921   glibcpp_cv_func_fmodl_use=no
14922 fi
14923 rm -f conftest*
14924       ac_ext=c
14925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cc_cross
14930
14931     
14932 fi
14933
14934   fi
14935   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14936
14937   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14938     for ac_func in fmodl
14939 do
14940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14941 echo "configure:14942: checking for $ac_func" >&5
14942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14943   echo $ac_n "(cached) $ac_c" 1>&6
14944 else
14945   cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14948 /* System header to define __stub macros and hopefully few prototypes,
14949     which can conflict with char $ac_func(); below.  */
14950 #include <assert.h>
14951 /* Override any gcc2 internal prototype to avoid an error.  */
14952 /* We use char because int might match the return type of a gcc2
14953     builtin and then its argument prototype would still apply.  */
14954 char $ac_func();
14955
14956 int main() {
14957
14958 /* The GNU C library defines this for functions which it implements
14959     to always fail with ENOSYS.  Some functions are actually named
14960     something starting with __ and the normal name is an alias.  */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14962 choke me
14963 #else
14964 $ac_func();
14965 #endif
14966
14967 ; return 0; }
14968 EOF
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14970   rm -rf conftest*
14971   eval "ac_cv_func_$ac_func=yes"
14972 else
14973   echo "configure: failed program was:" >&5
14974   cat conftest.$ac_ext >&5
14975   rm -rf conftest*
14976   eval "ac_cv_func_$ac_func=no"
14977 fi
14978 rm -f conftest*
14979 fi
14980
14981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14982   echo "$ac_t""yes" 1>&6
14983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14984   cat >> confdefs.h <<EOF
14985 #define $ac_tr_func 1
14986 EOF
14987  
14988 else
14989   echo "$ac_t""no" 1>&6
14990 fi
14991 done
14992     
14993   else
14994     
14995   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14996 echo "configure:14997: checking for _fmodl declaration" >&5
14997   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14998     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14999   echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001   
15002       
15003       ac_ext=C
15004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15005 ac_cpp='$CXXCPP $CPPFLAGS'
15006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15008 cross_compiling=$ac_cv_prog_cxx_cross
15009
15010       cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 #include <math.h>
15014 int main() {
15015  _fmodl(0, 0);
15016 ; return 0; }
15017 EOF
15018 if { (eval echo configure:15019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15019   rm -rf conftest*
15020   glibcpp_cv_func__fmodl_use=yes
15021 else
15022   echo "configure: failed program was:" >&5
15023   cat conftest.$ac_ext >&5
15024   rm -rf conftest*
15025   glibcpp_cv_func__fmodl_use=no
15026 fi
15027 rm -f conftest*
15028       ac_ext=c
15029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15030 ac_cpp='$CPP $CPPFLAGS'
15031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15033 cross_compiling=$ac_cv_prog_cc_cross
15034
15035     
15036 fi
15037
15038   fi
15039   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15040
15041     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15042       for ac_func in _fmodl
15043 do
15044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15045 echo "configure:15046: checking for $ac_func" >&5
15046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15047   echo $ac_n "(cached) $ac_c" 1>&6
15048 else
15049   cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 /* System header to define __stub macros and hopefully few prototypes,
15053     which can conflict with char $ac_func(); below.  */
15054 #include <assert.h>
15055 /* Override any gcc2 internal prototype to avoid an error.  */
15056 /* We use char because int might match the return type of a gcc2
15057     builtin and then its argument prototype would still apply.  */
15058 char $ac_func();
15059
15060 int main() {
15061
15062 /* The GNU C library defines this for functions which it implements
15063     to always fail with ENOSYS.  Some functions are actually named
15064     something starting with __ and the normal name is an alias.  */
15065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15066 choke me
15067 #else
15068 $ac_func();
15069 #endif
15070
15071 ; return 0; }
15072 EOF
15073 if { (eval echo configure:15074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15074   rm -rf conftest*
15075   eval "ac_cv_func_$ac_func=yes"
15076 else
15077   echo "configure: failed program was:" >&5
15078   cat conftest.$ac_ext >&5
15079   rm -rf conftest*
15080   eval "ac_cv_func_$ac_func=no"
15081 fi
15082 rm -f conftest*
15083 fi
15084
15085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15086   echo "$ac_t""yes" 1>&6
15087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15088   cat >> confdefs.h <<EOF
15089 #define $ac_tr_func 1
15090 EOF
15091  
15092 else
15093   echo "$ac_t""no" 1>&6
15094 fi
15095 done
15096     
15097     fi
15098   fi
15099
15100   
15101   
15102   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15103 echo "configure:15104: checking for frexpl declaration" >&5
15104   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15105     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15106   echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108   
15109       
15110       ac_ext=C
15111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15112 ac_cpp='$CXXCPP $CPPFLAGS'
15113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15115 cross_compiling=$ac_cv_prog_cxx_cross
15116
15117       cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15120 #include <math.h>
15121 int main() {
15122  frexpl(0, 0);
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126   rm -rf conftest*
15127   glibcpp_cv_func_frexpl_use=yes
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   glibcpp_cv_func_frexpl_use=no
15133 fi
15134 rm -f conftest*
15135       ac_ext=c
15136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15140 cross_compiling=$ac_cv_prog_cc_cross
15141
15142     
15143 fi
15144
15145   fi
15146   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15147
15148   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15149     for ac_func in frexpl
15150 do
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15154   echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156   cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160     which can conflict with char $ac_func(); below.  */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error.  */
15163 /* We use char because int might match the return type of a gcc2
15164     builtin and then its argument prototype would still apply.  */
15165 char $ac_func();
15166
15167 int main() {
15168
15169 /* The GNU C library defines this for functions which it implements
15170     to always fail with ENOSYS.  Some functions are actually named
15171     something starting with __ and the normal name is an alias.  */
15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15173 choke me
15174 #else
15175 $ac_func();
15176 #endif
15177
15178 ; return 0; }
15179 EOF
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181   rm -rf conftest*
15182   eval "ac_cv_func_$ac_func=yes"
15183 else
15184   echo "configure: failed program was:" >&5
15185   cat conftest.$ac_ext >&5
15186   rm -rf conftest*
15187   eval "ac_cv_func_$ac_func=no"
15188 fi
15189 rm -f conftest*
15190 fi
15191
15192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15193   echo "$ac_t""yes" 1>&6
15194     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15195   cat >> confdefs.h <<EOF
15196 #define $ac_tr_func 1
15197 EOF
15198  
15199 else
15200   echo "$ac_t""no" 1>&6
15201 fi
15202 done
15203     
15204   else
15205     
15206   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15207 echo "configure:15208: checking for _frexpl declaration" >&5
15208   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15209     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15210   echo $ac_n "(cached) $ac_c" 1>&6
15211 else
15212   
15213       
15214       ac_ext=C
15215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15216 ac_cpp='$CXXCPP $CPPFLAGS'
15217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15219 cross_compiling=$ac_cv_prog_cxx_cross
15220
15221       cat > conftest.$ac_ext <<EOF
15222 #line 15223 "configure"
15223 #include "confdefs.h"
15224 #include <math.h>
15225 int main() {
15226  _frexpl(0, 0);
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15230   rm -rf conftest*
15231   glibcpp_cv_func__frexpl_use=yes
15232 else
15233   echo "configure: failed program was:" >&5
15234   cat conftest.$ac_ext >&5
15235   rm -rf conftest*
15236   glibcpp_cv_func__frexpl_use=no
15237 fi
15238 rm -f conftest*
15239       ac_ext=c
15240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15241 ac_cpp='$CPP $CPPFLAGS'
15242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15244 cross_compiling=$ac_cv_prog_cc_cross
15245
15246     
15247 fi
15248
15249   fi
15250   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15251
15252     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15253       for ac_func in _frexpl
15254 do
15255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15256 echo "configure:15257: checking for $ac_func" >&5
15257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15258   echo $ac_n "(cached) $ac_c" 1>&6
15259 else
15260   cat > conftest.$ac_ext <<EOF
15261 #line 15262 "configure"
15262 #include "confdefs.h"
15263 /* System header to define __stub macros and hopefully few prototypes,
15264     which can conflict with char $ac_func(); below.  */
15265 #include <assert.h>
15266 /* Override any gcc2 internal prototype to avoid an error.  */
15267 /* We use char because int might match the return type of a gcc2
15268     builtin and then its argument prototype would still apply.  */
15269 char $ac_func();
15270
15271 int main() {
15272
15273 /* The GNU C library defines this for functions which it implements
15274     to always fail with ENOSYS.  Some functions are actually named
15275     something starting with __ and the normal name is an alias.  */
15276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 choke me
15278 #else
15279 $ac_func();
15280 #endif
15281
15282 ; return 0; }
15283 EOF
15284 if { (eval echo configure:15285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15285   rm -rf conftest*
15286   eval "ac_cv_func_$ac_func=yes"
15287 else
15288   echo "configure: failed program was:" >&5
15289   cat conftest.$ac_ext >&5
15290   rm -rf conftest*
15291   eval "ac_cv_func_$ac_func=no"
15292 fi
15293 rm -f conftest*
15294 fi
15295
15296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15297   echo "$ac_t""yes" 1>&6
15298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15299   cat >> confdefs.h <<EOF
15300 #define $ac_tr_func 1
15301 EOF
15302  
15303 else
15304   echo "$ac_t""no" 1>&6
15305 fi
15306 done
15307     
15308     fi
15309   fi
15310
15311   
15312   
15313   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15314 echo "configure:15315: checking for hypotl declaration" >&5
15315   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15316     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15317   echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15319   
15320       
15321       ac_ext=C
15322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15323 ac_cpp='$CXXCPP $CPPFLAGS'
15324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15326 cross_compiling=$ac_cv_prog_cxx_cross
15327
15328       cat > conftest.$ac_ext <<EOF
15329 #line 15330 "configure"
15330 #include "confdefs.h"
15331 #include <math.h>
15332 int main() {
15333  hypotl(0, 0);
15334 ; return 0; }
15335 EOF
15336 if { (eval echo configure:15337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15337   rm -rf conftest*
15338   glibcpp_cv_func_hypotl_use=yes
15339 else
15340   echo "configure: failed program was:" >&5
15341   cat conftest.$ac_ext >&5
15342   rm -rf conftest*
15343   glibcpp_cv_func_hypotl_use=no
15344 fi
15345 rm -f conftest*
15346       ac_ext=c
15347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15348 ac_cpp='$CPP $CPPFLAGS'
15349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15351 cross_compiling=$ac_cv_prog_cc_cross
15352
15353     
15354 fi
15355
15356   fi
15357   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15358
15359   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15360     for ac_func in hypotl
15361 do
15362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15363 echo "configure:15364: checking for $ac_func" >&5
15364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15365   echo $ac_n "(cached) $ac_c" 1>&6
15366 else
15367   cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 /* System header to define __stub macros and hopefully few prototypes,
15371     which can conflict with char $ac_func(); below.  */
15372 #include <assert.h>
15373 /* Override any gcc2 internal prototype to avoid an error.  */
15374 /* We use char because int might match the return type of a gcc2
15375     builtin and then its argument prototype would still apply.  */
15376 char $ac_func();
15377
15378 int main() {
15379
15380 /* The GNU C library defines this for functions which it implements
15381     to always fail with ENOSYS.  Some functions are actually named
15382     something starting with __ and the normal name is an alias.  */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 choke me
15385 #else
15386 $ac_func();
15387 #endif
15388
15389 ; return 0; }
15390 EOF
15391 if { (eval echo configure:15392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15392   rm -rf conftest*
15393   eval "ac_cv_func_$ac_func=yes"
15394 else
15395   echo "configure: failed program was:" >&5
15396   cat conftest.$ac_ext >&5
15397   rm -rf conftest*
15398   eval "ac_cv_func_$ac_func=no"
15399 fi
15400 rm -f conftest*
15401 fi
15402
15403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15404   echo "$ac_t""yes" 1>&6
15405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15406   cat >> confdefs.h <<EOF
15407 #define $ac_tr_func 1
15408 EOF
15409  
15410 else
15411   echo "$ac_t""no" 1>&6
15412 fi
15413 done
15414     
15415   else
15416     
15417   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15418 echo "configure:15419: checking for _hypotl declaration" >&5
15419   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15420     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15421   echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423   
15424       
15425       ac_ext=C
15426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15427 ac_cpp='$CXXCPP $CPPFLAGS'
15428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15430 cross_compiling=$ac_cv_prog_cxx_cross
15431
15432       cat > conftest.$ac_ext <<EOF
15433 #line 15434 "configure"
15434 #include "confdefs.h"
15435 #include <math.h>
15436 int main() {
15437  _hypotl(0, 0);
15438 ; return 0; }
15439 EOF
15440 if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441   rm -rf conftest*
15442   glibcpp_cv_func__hypotl_use=yes
15443 else
15444   echo "configure: failed program was:" >&5
15445   cat conftest.$ac_ext >&5
15446   rm -rf conftest*
15447   glibcpp_cv_func__hypotl_use=no
15448 fi
15449 rm -f conftest*
15450       ac_ext=c
15451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15452 ac_cpp='$CPP $CPPFLAGS'
15453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15455 cross_compiling=$ac_cv_prog_cc_cross
15456
15457     
15458 fi
15459
15460   fi
15461   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15462
15463     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15464       for ac_func in _hypotl
15465 do
15466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15467 echo "configure:15468: checking for $ac_func" >&5
15468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15469   echo $ac_n "(cached) $ac_c" 1>&6
15470 else
15471   cat > conftest.$ac_ext <<EOF
15472 #line 15473 "configure"
15473 #include "confdefs.h"
15474 /* System header to define __stub macros and hopefully few prototypes,
15475     which can conflict with char $ac_func(); below.  */
15476 #include <assert.h>
15477 /* Override any gcc2 internal prototype to avoid an error.  */
15478 /* We use char because int might match the return type of a gcc2
15479     builtin and then its argument prototype would still apply.  */
15480 char $ac_func();
15481
15482 int main() {
15483
15484 /* The GNU C library defines this for functions which it implements
15485     to always fail with ENOSYS.  Some functions are actually named
15486     something starting with __ and the normal name is an alias.  */
15487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488 choke me
15489 #else
15490 $ac_func();
15491 #endif
15492
15493 ; return 0; }
15494 EOF
15495 if { (eval echo configure:15496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15496   rm -rf conftest*
15497   eval "ac_cv_func_$ac_func=yes"
15498 else
15499   echo "configure: failed program was:" >&5
15500   cat conftest.$ac_ext >&5
15501   rm -rf conftest*
15502   eval "ac_cv_func_$ac_func=no"
15503 fi
15504 rm -f conftest*
15505 fi
15506
15507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15508   echo "$ac_t""yes" 1>&6
15509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15510   cat >> confdefs.h <<EOF
15511 #define $ac_tr_func 1
15512 EOF
15513  
15514 else
15515   echo "$ac_t""no" 1>&6
15516 fi
15517 done
15518     
15519     fi
15520   fi
15521
15522   
15523   
15524   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15525 echo "configure:15526: checking for ldexpl declaration" >&5
15526   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15527     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15528   echo $ac_n "(cached) $ac_c" 1>&6
15529 else
15530   
15531       
15532       ac_ext=C
15533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15534 ac_cpp='$CXXCPP $CPPFLAGS'
15535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15537 cross_compiling=$ac_cv_prog_cxx_cross
15538
15539       cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15542 #include <math.h>
15543 int main() {
15544  ldexpl(0, 0);
15545 ; return 0; }
15546 EOF
15547 if { (eval echo configure:15548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15548   rm -rf conftest*
15549   glibcpp_cv_func_ldexpl_use=yes
15550 else
15551   echo "configure: failed program was:" >&5
15552   cat conftest.$ac_ext >&5
15553   rm -rf conftest*
15554   glibcpp_cv_func_ldexpl_use=no
15555 fi
15556 rm -f conftest*
15557       ac_ext=c
15558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15559 ac_cpp='$CPP $CPPFLAGS'
15560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15562 cross_compiling=$ac_cv_prog_cc_cross
15563
15564     
15565 fi
15566
15567   fi
15568   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15569
15570   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15571     for ac_func in ldexpl
15572 do
15573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15574 echo "configure:15575: checking for $ac_func" >&5
15575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15576   echo $ac_n "(cached) $ac_c" 1>&6
15577 else
15578   cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581 /* System header to define __stub macros and hopefully few prototypes,
15582     which can conflict with char $ac_func(); below.  */
15583 #include <assert.h>
15584 /* Override any gcc2 internal prototype to avoid an error.  */
15585 /* We use char because int might match the return type of a gcc2
15586     builtin and then its argument prototype would still apply.  */
15587 char $ac_func();
15588
15589 int main() {
15590
15591 /* The GNU C library defines this for functions which it implements
15592     to always fail with ENOSYS.  Some functions are actually named
15593     something starting with __ and the normal name is an alias.  */
15594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 choke me
15596 #else
15597 $ac_func();
15598 #endif
15599
15600 ; return 0; }
15601 EOF
15602 if { (eval echo configure:15603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15603   rm -rf conftest*
15604   eval "ac_cv_func_$ac_func=yes"
15605 else
15606   echo "configure: failed program was:" >&5
15607   cat conftest.$ac_ext >&5
15608   rm -rf conftest*
15609   eval "ac_cv_func_$ac_func=no"
15610 fi
15611 rm -f conftest*
15612 fi
15613
15614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15615   echo "$ac_t""yes" 1>&6
15616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15617   cat >> confdefs.h <<EOF
15618 #define $ac_tr_func 1
15619 EOF
15620  
15621 else
15622   echo "$ac_t""no" 1>&6
15623 fi
15624 done
15625     
15626   else
15627     
15628   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15629 echo "configure:15630: checking for _ldexpl declaration" >&5
15630   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15631     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15632   echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634   
15635       
15636       ac_ext=C
15637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15638 ac_cpp='$CXXCPP $CPPFLAGS'
15639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15641 cross_compiling=$ac_cv_prog_cxx_cross
15642
15643       cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 #include <math.h>
15647 int main() {
15648  _ldexpl(0, 0);
15649 ; return 0; }
15650 EOF
15651 if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15652   rm -rf conftest*
15653   glibcpp_cv_func__ldexpl_use=yes
15654 else
15655   echo "configure: failed program was:" >&5
15656   cat conftest.$ac_ext >&5
15657   rm -rf conftest*
15658   glibcpp_cv_func__ldexpl_use=no
15659 fi
15660 rm -f conftest*
15661       ac_ext=c
15662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15666 cross_compiling=$ac_cv_prog_cc_cross
15667
15668     
15669 fi
15670
15671   fi
15672   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15673
15674     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15675       for ac_func in _ldexpl
15676 do
15677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15678 echo "configure:15679: checking for $ac_func" >&5
15679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15680   echo $ac_n "(cached) $ac_c" 1>&6
15681 else
15682   cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 /* System header to define __stub macros and hopefully few prototypes,
15686     which can conflict with char $ac_func(); below.  */
15687 #include <assert.h>
15688 /* Override any gcc2 internal prototype to avoid an error.  */
15689 /* We use char because int might match the return type of a gcc2
15690     builtin and then its argument prototype would still apply.  */
15691 char $ac_func();
15692
15693 int main() {
15694
15695 /* The GNU C library defines this for functions which it implements
15696     to always fail with ENOSYS.  Some functions are actually named
15697     something starting with __ and the normal name is an alias.  */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 $ac_func();
15702 #endif
15703
15704 ; return 0; }
15705 EOF
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707   rm -rf conftest*
15708   eval "ac_cv_func_$ac_func=yes"
15709 else
15710   echo "configure: failed program was:" >&5
15711   cat conftest.$ac_ext >&5
15712   rm -rf conftest*
15713   eval "ac_cv_func_$ac_func=no"
15714 fi
15715 rm -f conftest*
15716 fi
15717
15718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15719   echo "$ac_t""yes" 1>&6
15720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15721   cat >> confdefs.h <<EOF
15722 #define $ac_tr_func 1
15723 EOF
15724  
15725 else
15726   echo "$ac_t""no" 1>&6
15727 fi
15728 done
15729     
15730     fi
15731   fi
15732
15733   
15734   
15735   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15736 echo "configure:15737: checking for logl declaration" >&5
15737   if test x${glibcpp_cv_func_logl_use+set} != xset; then
15738     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15739   echo $ac_n "(cached) $ac_c" 1>&6
15740 else
15741   
15742       
15743       ac_ext=C
15744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15745 ac_cpp='$CXXCPP $CPPFLAGS'
15746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15748 cross_compiling=$ac_cv_prog_cxx_cross
15749
15750       cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15753 #include <math.h>
15754                       #ifdef HAVE_IEEEFP_H
15755                       #include <ieeefp.h>
15756                       #endif
15757                      
15758 int main() {
15759  logl(0);
15760 ; return 0; }
15761 EOF
15762 if { (eval echo configure:15763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15763   rm -rf conftest*
15764   glibcpp_cv_func_logl_use=yes
15765 else
15766   echo "configure: failed program was:" >&5
15767   cat conftest.$ac_ext >&5
15768   rm -rf conftest*
15769   glibcpp_cv_func_logl_use=no
15770 fi
15771 rm -f conftest*
15772       ac_ext=c
15773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15774 ac_cpp='$CPP $CPPFLAGS'
15775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15777 cross_compiling=$ac_cv_prog_cc_cross
15778
15779     
15780 fi
15781
15782   fi
15783   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15784
15785   if test x$glibcpp_cv_func_logl_use = x"yes"; then
15786     for ac_func in logl
15787 do
15788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15789 echo "configure:15790: checking for $ac_func" >&5
15790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15791   echo $ac_n "(cached) $ac_c" 1>&6
15792 else
15793   cat > conftest.$ac_ext <<EOF
15794 #line 15795 "configure"
15795 #include "confdefs.h"
15796 /* System header to define __stub macros and hopefully few prototypes,
15797     which can conflict with char $ac_func(); below.  */
15798 #include <assert.h>
15799 /* Override any gcc2 internal prototype to avoid an error.  */
15800 /* We use char because int might match the return type of a gcc2
15801     builtin and then its argument prototype would still apply.  */
15802 char $ac_func();
15803
15804 int main() {
15805
15806 /* The GNU C library defines this for functions which it implements
15807     to always fail with ENOSYS.  Some functions are actually named
15808     something starting with __ and the normal name is an alias.  */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15810 choke me
15811 #else
15812 $ac_func();
15813 #endif
15814
15815 ; return 0; }
15816 EOF
15817 if { (eval echo configure:15818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15818   rm -rf conftest*
15819   eval "ac_cv_func_$ac_func=yes"
15820 else
15821   echo "configure: failed program was:" >&5
15822   cat conftest.$ac_ext >&5
15823   rm -rf conftest*
15824   eval "ac_cv_func_$ac_func=no"
15825 fi
15826 rm -f conftest*
15827 fi
15828
15829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15830   echo "$ac_t""yes" 1>&6
15831     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15832   cat >> confdefs.h <<EOF
15833 #define $ac_tr_func 1
15834 EOF
15835  
15836 else
15837   echo "$ac_t""no" 1>&6
15838 fi
15839 done
15840     
15841   else
15842     
15843   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15844 echo "configure:15845: checking for _logl declaration" >&5
15845   if test x${glibcpp_cv_func__logl_use+set} != xset; then
15846     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15847   echo $ac_n "(cached) $ac_c" 1>&6
15848 else
15849   
15850       
15851       ac_ext=C
15852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15853 ac_cpp='$CXXCPP $CPPFLAGS'
15854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15856 cross_compiling=$ac_cv_prog_cxx_cross
15857
15858       cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 #include <math.h>
15862                       #ifdef HAVE_IEEEFP_H
15863                       #include <ieeefp.h>
15864                       #endif
15865                      
15866 int main() {
15867  _logl(0);
15868 ; return 0; }
15869 EOF
15870 if { (eval echo configure:15871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15871   rm -rf conftest*
15872   glibcpp_cv_func__logl_use=yes
15873 else
15874   echo "configure: failed program was:" >&5
15875   cat conftest.$ac_ext >&5
15876   rm -rf conftest*
15877   glibcpp_cv_func__logl_use=no
15878 fi
15879 rm -f conftest*
15880       ac_ext=c
15881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15882 ac_cpp='$CPP $CPPFLAGS'
15883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15885 cross_compiling=$ac_cv_prog_cc_cross
15886
15887     
15888 fi
15889
15890   fi
15891   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15892
15893     if test x$glibcpp_cv_func__logl_use = x"yes"; then
15894       for ac_func in _logl
15895 do
15896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15897 echo "configure:15898: checking for $ac_func" >&5
15898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15899   echo $ac_n "(cached) $ac_c" 1>&6
15900 else
15901   cat > conftest.$ac_ext <<EOF
15902 #line 15903 "configure"
15903 #include "confdefs.h"
15904 /* System header to define __stub macros and hopefully few prototypes,
15905     which can conflict with char $ac_func(); below.  */
15906 #include <assert.h>
15907 /* Override any gcc2 internal prototype to avoid an error.  */
15908 /* We use char because int might match the return type of a gcc2
15909     builtin and then its argument prototype would still apply.  */
15910 char $ac_func();
15911
15912 int main() {
15913
15914 /* The GNU C library defines this for functions which it implements
15915     to always fail with ENOSYS.  Some functions are actually named
15916     something starting with __ and the normal name is an alias.  */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918 choke me
15919 #else
15920 $ac_func();
15921 #endif
15922
15923 ; return 0; }
15924 EOF
15925 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15926   rm -rf conftest*
15927   eval "ac_cv_func_$ac_func=yes"
15928 else
15929   echo "configure: failed program was:" >&5
15930   cat conftest.$ac_ext >&5
15931   rm -rf conftest*
15932   eval "ac_cv_func_$ac_func=no"
15933 fi
15934 rm -f conftest*
15935 fi
15936
15937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15938   echo "$ac_t""yes" 1>&6
15939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15940   cat >> confdefs.h <<EOF
15941 #define $ac_tr_func 1
15942 EOF
15943  
15944 else
15945   echo "$ac_t""no" 1>&6
15946 fi
15947 done
15948     
15949     fi
15950   fi
15951
15952   
15953   
15954   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15955 echo "configure:15956: checking for log10l declaration" >&5
15956   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15957     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15958   echo $ac_n "(cached) $ac_c" 1>&6
15959 else
15960   
15961       
15962       ac_ext=C
15963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15964 ac_cpp='$CXXCPP $CPPFLAGS'
15965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15967 cross_compiling=$ac_cv_prog_cxx_cross
15968
15969       cat > conftest.$ac_ext <<EOF
15970 #line 15971 "configure"
15971 #include "confdefs.h"
15972 #include <math.h>
15973                       #ifdef HAVE_IEEEFP_H
15974                       #include <ieeefp.h>
15975                       #endif
15976                      
15977 int main() {
15978  log10l(0);
15979 ; return 0; }
15980 EOF
15981 if { (eval echo configure:15982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15982   rm -rf conftest*
15983   glibcpp_cv_func_log10l_use=yes
15984 else
15985   echo "configure: failed program was:" >&5
15986   cat conftest.$ac_ext >&5
15987   rm -rf conftest*
15988   glibcpp_cv_func_log10l_use=no
15989 fi
15990 rm -f conftest*
15991       ac_ext=c
15992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15993 ac_cpp='$CPP $CPPFLAGS'
15994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15996 cross_compiling=$ac_cv_prog_cc_cross
15997
15998     
15999 fi
16000
16001   fi
16002   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16003
16004   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16005     for ac_func in log10l
16006 do
16007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16008 echo "configure:16009: checking for $ac_func" >&5
16009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16010   echo $ac_n "(cached) $ac_c" 1>&6
16011 else
16012   cat > conftest.$ac_ext <<EOF
16013 #line 16014 "configure"
16014 #include "confdefs.h"
16015 /* System header to define __stub macros and hopefully few prototypes,
16016     which can conflict with char $ac_func(); below.  */
16017 #include <assert.h>
16018 /* Override any gcc2 internal prototype to avoid an error.  */
16019 /* We use char because int might match the return type of a gcc2
16020     builtin and then its argument prototype would still apply.  */
16021 char $ac_func();
16022
16023 int main() {
16024
16025 /* The GNU C library defines this for functions which it implements
16026     to always fail with ENOSYS.  Some functions are actually named
16027     something starting with __ and the normal name is an alias.  */
16028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16029 choke me
16030 #else
16031 $ac_func();
16032 #endif
16033
16034 ; return 0; }
16035 EOF
16036 if { (eval echo configure:16037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16037   rm -rf conftest*
16038   eval "ac_cv_func_$ac_func=yes"
16039 else
16040   echo "configure: failed program was:" >&5
16041   cat conftest.$ac_ext >&5
16042   rm -rf conftest*
16043   eval "ac_cv_func_$ac_func=no"
16044 fi
16045 rm -f conftest*
16046 fi
16047
16048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16049   echo "$ac_t""yes" 1>&6
16050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16051   cat >> confdefs.h <<EOF
16052 #define $ac_tr_func 1
16053 EOF
16054  
16055 else
16056   echo "$ac_t""no" 1>&6
16057 fi
16058 done
16059     
16060   else
16061     
16062   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16063 echo "configure:16064: checking for _log10l declaration" >&5
16064   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16065     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16066   echo $ac_n "(cached) $ac_c" 1>&6
16067 else
16068   
16069       
16070       ac_ext=C
16071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16072 ac_cpp='$CXXCPP $CPPFLAGS'
16073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16075 cross_compiling=$ac_cv_prog_cxx_cross
16076
16077       cat > conftest.$ac_ext <<EOF
16078 #line 16079 "configure"
16079 #include "confdefs.h"
16080 #include <math.h>
16081                       #ifdef HAVE_IEEEFP_H
16082                       #include <ieeefp.h>
16083                       #endif
16084                      
16085 int main() {
16086  _log10l(0);
16087 ; return 0; }
16088 EOF
16089 if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16090   rm -rf conftest*
16091   glibcpp_cv_func__log10l_use=yes
16092 else
16093   echo "configure: failed program was:" >&5
16094   cat conftest.$ac_ext >&5
16095   rm -rf conftest*
16096   glibcpp_cv_func__log10l_use=no
16097 fi
16098 rm -f conftest*
16099       ac_ext=c
16100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16101 ac_cpp='$CPP $CPPFLAGS'
16102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16104 cross_compiling=$ac_cv_prog_cc_cross
16105
16106     
16107 fi
16108
16109   fi
16110   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16111
16112     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16113       for ac_func in _log10l
16114 do
16115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16116 echo "configure:16117: checking for $ac_func" >&5
16117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16118   echo $ac_n "(cached) $ac_c" 1>&6
16119 else
16120   cat > conftest.$ac_ext <<EOF
16121 #line 16122 "configure"
16122 #include "confdefs.h"
16123 /* System header to define __stub macros and hopefully few prototypes,
16124     which can conflict with char $ac_func(); below.  */
16125 #include <assert.h>
16126 /* Override any gcc2 internal prototype to avoid an error.  */
16127 /* We use char because int might match the return type of a gcc2
16128     builtin and then its argument prototype would still apply.  */
16129 char $ac_func();
16130
16131 int main() {
16132
16133 /* The GNU C library defines this for functions which it implements
16134     to always fail with ENOSYS.  Some functions are actually named
16135     something starting with __ and the normal name is an alias.  */
16136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16137 choke me
16138 #else
16139 $ac_func();
16140 #endif
16141
16142 ; return 0; }
16143 EOF
16144 if { (eval echo configure:16145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16145   rm -rf conftest*
16146   eval "ac_cv_func_$ac_func=yes"
16147 else
16148   echo "configure: failed program was:" >&5
16149   cat conftest.$ac_ext >&5
16150   rm -rf conftest*
16151   eval "ac_cv_func_$ac_func=no"
16152 fi
16153 rm -f conftest*
16154 fi
16155
16156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16157   echo "$ac_t""yes" 1>&6
16158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16159   cat >> confdefs.h <<EOF
16160 #define $ac_tr_func 1
16161 EOF
16162  
16163 else
16164   echo "$ac_t""no" 1>&6
16165 fi
16166 done
16167     
16168     fi
16169   fi
16170
16171   
16172   
16173   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16174 echo "configure:16175: checking for modfl declaration" >&5
16175   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16176     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16177   echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179   
16180       
16181       ac_ext=C
16182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16183 ac_cpp='$CXXCPP $CPPFLAGS'
16184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16186 cross_compiling=$ac_cv_prog_cxx_cross
16187
16188       cat > conftest.$ac_ext <<EOF
16189 #line 16190 "configure"
16190 #include "confdefs.h"
16191 #include <math.h>
16192 int main() {
16193  modfl(0, 0);
16194 ; return 0; }
16195 EOF
16196 if { (eval echo configure:16197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16197   rm -rf conftest*
16198   glibcpp_cv_func_modfl_use=yes
16199 else
16200   echo "configure: failed program was:" >&5
16201   cat conftest.$ac_ext >&5
16202   rm -rf conftest*
16203   glibcpp_cv_func_modfl_use=no
16204 fi
16205 rm -f conftest*
16206       ac_ext=c
16207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16211 cross_compiling=$ac_cv_prog_cc_cross
16212
16213     
16214 fi
16215
16216   fi
16217   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16218
16219   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16220     for ac_func in modfl
16221 do
16222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16223 echo "configure:16224: checking for $ac_func" >&5
16224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16225   echo $ac_n "(cached) $ac_c" 1>&6
16226 else
16227   cat > conftest.$ac_ext <<EOF
16228 #line 16229 "configure"
16229 #include "confdefs.h"
16230 /* System header to define __stub macros and hopefully few prototypes,
16231     which can conflict with char $ac_func(); below.  */
16232 #include <assert.h>
16233 /* Override any gcc2 internal prototype to avoid an error.  */
16234 /* We use char because int might match the return type of a gcc2
16235     builtin and then its argument prototype would still apply.  */
16236 char $ac_func();
16237
16238 int main() {
16239
16240 /* The GNU C library defines this for functions which it implements
16241     to always fail with ENOSYS.  Some functions are actually named
16242     something starting with __ and the normal name is an alias.  */
16243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16244 choke me
16245 #else
16246 $ac_func();
16247 #endif
16248
16249 ; return 0; }
16250 EOF
16251 if { (eval echo configure:16252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16252   rm -rf conftest*
16253   eval "ac_cv_func_$ac_func=yes"
16254 else
16255   echo "configure: failed program was:" >&5
16256   cat conftest.$ac_ext >&5
16257   rm -rf conftest*
16258   eval "ac_cv_func_$ac_func=no"
16259 fi
16260 rm -f conftest*
16261 fi
16262
16263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16264   echo "$ac_t""yes" 1>&6
16265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16266   cat >> confdefs.h <<EOF
16267 #define $ac_tr_func 1
16268 EOF
16269  
16270 else
16271   echo "$ac_t""no" 1>&6
16272 fi
16273 done
16274     
16275   else
16276     
16277   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16278 echo "configure:16279: checking for _modfl declaration" >&5
16279   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16280     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16281   echo $ac_n "(cached) $ac_c" 1>&6
16282 else
16283   
16284       
16285       ac_ext=C
16286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16287 ac_cpp='$CXXCPP $CPPFLAGS'
16288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16290 cross_compiling=$ac_cv_prog_cxx_cross
16291
16292       cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16295 #include <math.h>
16296 int main() {
16297  _modfl(0, 0);
16298 ; return 0; }
16299 EOF
16300 if { (eval echo configure:16301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16301   rm -rf conftest*
16302   glibcpp_cv_func__modfl_use=yes
16303 else
16304   echo "configure: failed program was:" >&5
16305   cat conftest.$ac_ext >&5
16306   rm -rf conftest*
16307   glibcpp_cv_func__modfl_use=no
16308 fi
16309 rm -f conftest*
16310       ac_ext=c
16311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312 ac_cpp='$CPP $CPPFLAGS'
16313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315 cross_compiling=$ac_cv_prog_cc_cross
16316
16317     
16318 fi
16319
16320   fi
16321   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16322
16323     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16324       for ac_func in _modfl
16325 do
16326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16327 echo "configure:16328: checking for $ac_func" >&5
16328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16329   echo $ac_n "(cached) $ac_c" 1>&6
16330 else
16331   cat > conftest.$ac_ext <<EOF
16332 #line 16333 "configure"
16333 #include "confdefs.h"
16334 /* System header to define __stub macros and hopefully few prototypes,
16335     which can conflict with char $ac_func(); below.  */
16336 #include <assert.h>
16337 /* Override any gcc2 internal prototype to avoid an error.  */
16338 /* We use char because int might match the return type of a gcc2
16339     builtin and then its argument prototype would still apply.  */
16340 char $ac_func();
16341
16342 int main() {
16343
16344 /* The GNU C library defines this for functions which it implements
16345     to always fail with ENOSYS.  Some functions are actually named
16346     something starting with __ and the normal name is an alias.  */
16347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348 choke me
16349 #else
16350 $ac_func();
16351 #endif
16352
16353 ; return 0; }
16354 EOF
16355 if { (eval echo configure:16356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16356   rm -rf conftest*
16357   eval "ac_cv_func_$ac_func=yes"
16358 else
16359   echo "configure: failed program was:" >&5
16360   cat conftest.$ac_ext >&5
16361   rm -rf conftest*
16362   eval "ac_cv_func_$ac_func=no"
16363 fi
16364 rm -f conftest*
16365 fi
16366
16367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16368   echo "$ac_t""yes" 1>&6
16369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16370   cat >> confdefs.h <<EOF
16371 #define $ac_tr_func 1
16372 EOF
16373  
16374 else
16375   echo "$ac_t""no" 1>&6
16376 fi
16377 done
16378     
16379     fi
16380   fi
16381
16382   
16383   
16384   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16385 echo "configure:16386: checking for powl declaration" >&5
16386   if test x${glibcpp_cv_func_powl_use+set} != xset; then
16387     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16388   echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16390   
16391       
16392       ac_ext=C
16393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16394 ac_cpp='$CXXCPP $CPPFLAGS'
16395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16397 cross_compiling=$ac_cv_prog_cxx_cross
16398
16399       cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 #include <math.h>
16403 int main() {
16404  powl(0, 0);
16405 ; return 0; }
16406 EOF
16407 if { (eval echo configure:16408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16408   rm -rf conftest*
16409   glibcpp_cv_func_powl_use=yes
16410 else
16411   echo "configure: failed program was:" >&5
16412   cat conftest.$ac_ext >&5
16413   rm -rf conftest*
16414   glibcpp_cv_func_powl_use=no
16415 fi
16416 rm -f conftest*
16417       ac_ext=c
16418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16419 ac_cpp='$CPP $CPPFLAGS'
16420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16422 cross_compiling=$ac_cv_prog_cc_cross
16423
16424     
16425 fi
16426
16427   fi
16428   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16429
16430   if test x$glibcpp_cv_func_powl_use = x"yes"; then
16431     for ac_func in powl
16432 do
16433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16434 echo "configure:16435: checking for $ac_func" >&5
16435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16436   echo $ac_n "(cached) $ac_c" 1>&6
16437 else
16438   cat > conftest.$ac_ext <<EOF
16439 #line 16440 "configure"
16440 #include "confdefs.h"
16441 /* System header to define __stub macros and hopefully few prototypes,
16442     which can conflict with char $ac_func(); below.  */
16443 #include <assert.h>
16444 /* Override any gcc2 internal prototype to avoid an error.  */
16445 /* We use char because int might match the return type of a gcc2
16446     builtin and then its argument prototype would still apply.  */
16447 char $ac_func();
16448
16449 int main() {
16450
16451 /* The GNU C library defines this for functions which it implements
16452     to always fail with ENOSYS.  Some functions are actually named
16453     something starting with __ and the normal name is an alias.  */
16454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16455 choke me
16456 #else
16457 $ac_func();
16458 #endif
16459
16460 ; return 0; }
16461 EOF
16462 if { (eval echo configure:16463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16463   rm -rf conftest*
16464   eval "ac_cv_func_$ac_func=yes"
16465 else
16466   echo "configure: failed program was:" >&5
16467   cat conftest.$ac_ext >&5
16468   rm -rf conftest*
16469   eval "ac_cv_func_$ac_func=no"
16470 fi
16471 rm -f conftest*
16472 fi
16473
16474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16475   echo "$ac_t""yes" 1>&6
16476     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16477   cat >> confdefs.h <<EOF
16478 #define $ac_tr_func 1
16479 EOF
16480  
16481 else
16482   echo "$ac_t""no" 1>&6
16483 fi
16484 done
16485     
16486   else
16487     
16488   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16489 echo "configure:16490: checking for _powl declaration" >&5
16490   if test x${glibcpp_cv_func__powl_use+set} != xset; then
16491     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16492   echo $ac_n "(cached) $ac_c" 1>&6
16493 else
16494   
16495       
16496       ac_ext=C
16497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16498 ac_cpp='$CXXCPP $CPPFLAGS'
16499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16501 cross_compiling=$ac_cv_prog_cxx_cross
16502
16503       cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16506 #include <math.h>
16507 int main() {
16508  _powl(0, 0);
16509 ; return 0; }
16510 EOF
16511 if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16512   rm -rf conftest*
16513   glibcpp_cv_func__powl_use=yes
16514 else
16515   echo "configure: failed program was:" >&5
16516   cat conftest.$ac_ext >&5
16517   rm -rf conftest*
16518   glibcpp_cv_func__powl_use=no
16519 fi
16520 rm -f conftest*
16521       ac_ext=c
16522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16523 ac_cpp='$CPP $CPPFLAGS'
16524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16526 cross_compiling=$ac_cv_prog_cc_cross
16527
16528     
16529 fi
16530
16531   fi
16532   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16533
16534     if test x$glibcpp_cv_func__powl_use = x"yes"; then
16535       for ac_func in _powl
16536 do
16537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16538 echo "configure:16539: checking for $ac_func" >&5
16539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16540   echo $ac_n "(cached) $ac_c" 1>&6
16541 else
16542   cat > conftest.$ac_ext <<EOF
16543 #line 16544 "configure"
16544 #include "confdefs.h"
16545 /* System header to define __stub macros and hopefully few prototypes,
16546     which can conflict with char $ac_func(); below.  */
16547 #include <assert.h>
16548 /* Override any gcc2 internal prototype to avoid an error.  */
16549 /* We use char because int might match the return type of a gcc2
16550     builtin and then its argument prototype would still apply.  */
16551 char $ac_func();
16552
16553 int main() {
16554
16555 /* The GNU C library defines this for functions which it implements
16556     to always fail with ENOSYS.  Some functions are actually named
16557     something starting with __ and the normal name is an alias.  */
16558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16559 choke me
16560 #else
16561 $ac_func();
16562 #endif
16563
16564 ; return 0; }
16565 EOF
16566 if { (eval echo configure:16567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16567   rm -rf conftest*
16568   eval "ac_cv_func_$ac_func=yes"
16569 else
16570   echo "configure: failed program was:" >&5
16571   cat conftest.$ac_ext >&5
16572   rm -rf conftest*
16573   eval "ac_cv_func_$ac_func=no"
16574 fi
16575 rm -f conftest*
16576 fi
16577
16578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16579   echo "$ac_t""yes" 1>&6
16580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16581   cat >> confdefs.h <<EOF
16582 #define $ac_tr_func 1
16583 EOF
16584  
16585 else
16586   echo "$ac_t""no" 1>&6
16587 fi
16588 done
16589     
16590     fi
16591   fi
16592
16593   
16594   
16595   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16596 echo "configure:16597: checking for sqrtl declaration" >&5
16597   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16598     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16599   echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601   
16602       
16603       ac_ext=C
16604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16605 ac_cpp='$CXXCPP $CPPFLAGS'
16606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16608 cross_compiling=$ac_cv_prog_cxx_cross
16609
16610       cat > conftest.$ac_ext <<EOF
16611 #line 16612 "configure"
16612 #include "confdefs.h"
16613 #include <math.h>
16614                       #ifdef HAVE_IEEEFP_H
16615                       #include <ieeefp.h>
16616                       #endif
16617                      
16618 int main() {
16619  sqrtl(0);
16620 ; return 0; }
16621 EOF
16622 if { (eval echo configure:16623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16623   rm -rf conftest*
16624   glibcpp_cv_func_sqrtl_use=yes
16625 else
16626   echo "configure: failed program was:" >&5
16627   cat conftest.$ac_ext >&5
16628   rm -rf conftest*
16629   glibcpp_cv_func_sqrtl_use=no
16630 fi
16631 rm -f conftest*
16632       ac_ext=c
16633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16634 ac_cpp='$CPP $CPPFLAGS'
16635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16637 cross_compiling=$ac_cv_prog_cc_cross
16638
16639     
16640 fi
16641
16642   fi
16643   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16644
16645   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16646     for ac_func in sqrtl
16647 do
16648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16649 echo "configure:16650: checking for $ac_func" >&5
16650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16651   echo $ac_n "(cached) $ac_c" 1>&6
16652 else
16653   cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 /* System header to define __stub macros and hopefully few prototypes,
16657     which can conflict with char $ac_func(); below.  */
16658 #include <assert.h>
16659 /* Override any gcc2 internal prototype to avoid an error.  */
16660 /* We use char because int might match the return type of a gcc2
16661     builtin and then its argument prototype would still apply.  */
16662 char $ac_func();
16663
16664 int main() {
16665
16666 /* The GNU C library defines this for functions which it implements
16667     to always fail with ENOSYS.  Some functions are actually named
16668     something starting with __ and the normal name is an alias.  */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 $ac_func();
16673 #endif
16674
16675 ; return 0; }
16676 EOF
16677 if { (eval echo configure:16678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16678   rm -rf conftest*
16679   eval "ac_cv_func_$ac_func=yes"
16680 else
16681   echo "configure: failed program was:" >&5
16682   cat conftest.$ac_ext >&5
16683   rm -rf conftest*
16684   eval "ac_cv_func_$ac_func=no"
16685 fi
16686 rm -f conftest*
16687 fi
16688
16689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16690   echo "$ac_t""yes" 1>&6
16691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16692   cat >> confdefs.h <<EOF
16693 #define $ac_tr_func 1
16694 EOF
16695  
16696 else
16697   echo "$ac_t""no" 1>&6
16698 fi
16699 done
16700     
16701   else
16702     
16703   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16704 echo "configure:16705: checking for _sqrtl declaration" >&5
16705   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16706     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16707   echo $ac_n "(cached) $ac_c" 1>&6
16708 else
16709   
16710       
16711       ac_ext=C
16712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16713 ac_cpp='$CXXCPP $CPPFLAGS'
16714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16716 cross_compiling=$ac_cv_prog_cxx_cross
16717
16718       cat > conftest.$ac_ext <<EOF
16719 #line 16720 "configure"
16720 #include "confdefs.h"
16721 #include <math.h>
16722                       #ifdef HAVE_IEEEFP_H
16723                       #include <ieeefp.h>
16724                       #endif
16725                      
16726 int main() {
16727  _sqrtl(0);
16728 ; return 0; }
16729 EOF
16730 if { (eval echo configure:16731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16731   rm -rf conftest*
16732   glibcpp_cv_func__sqrtl_use=yes
16733 else
16734   echo "configure: failed program was:" >&5
16735   cat conftest.$ac_ext >&5
16736   rm -rf conftest*
16737   glibcpp_cv_func__sqrtl_use=no
16738 fi
16739 rm -f conftest*
16740       ac_ext=c
16741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16745 cross_compiling=$ac_cv_prog_cc_cross
16746
16747     
16748 fi
16749
16750   fi
16751   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16752
16753     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16754       for ac_func in _sqrtl
16755 do
16756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16757 echo "configure:16758: checking for $ac_func" >&5
16758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16759   echo $ac_n "(cached) $ac_c" 1>&6
16760 else
16761   cat > conftest.$ac_ext <<EOF
16762 #line 16763 "configure"
16763 #include "confdefs.h"
16764 /* System header to define __stub macros and hopefully few prototypes,
16765     which can conflict with char $ac_func(); below.  */
16766 #include <assert.h>
16767 /* Override any gcc2 internal prototype to avoid an error.  */
16768 /* We use char because int might match the return type of a gcc2
16769     builtin and then its argument prototype would still apply.  */
16770 char $ac_func();
16771
16772 int main() {
16773
16774 /* The GNU C library defines this for functions which it implements
16775     to always fail with ENOSYS.  Some functions are actually named
16776     something starting with __ and the normal name is an alias.  */
16777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 choke me
16779 #else
16780 $ac_func();
16781 #endif
16782
16783 ; return 0; }
16784 EOF
16785 if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16786   rm -rf conftest*
16787   eval "ac_cv_func_$ac_func=yes"
16788 else
16789   echo "configure: failed program was:" >&5
16790   cat conftest.$ac_ext >&5
16791   rm -rf conftest*
16792   eval "ac_cv_func_$ac_func=no"
16793 fi
16794 rm -f conftest*
16795 fi
16796
16797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16798   echo "$ac_t""yes" 1>&6
16799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16800   cat >> confdefs.h <<EOF
16801 #define $ac_tr_func 1
16802 EOF
16803  
16804 else
16805   echo "$ac_t""no" 1>&6
16806 fi
16807 done
16808     
16809     fi
16810   fi
16811
16812   
16813   
16814   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16815 echo "configure:16816: checking for sincosl declaration" >&5
16816   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16817     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16818   echo $ac_n "(cached) $ac_c" 1>&6
16819 else
16820   
16821       
16822       ac_ext=C
16823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16824 ac_cpp='$CXXCPP $CPPFLAGS'
16825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16827 cross_compiling=$ac_cv_prog_cxx_cross
16828
16829       cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832 #include <math.h>
16833 int main() {
16834  sincosl(0, 0, 0);
16835 ; return 0; }
16836 EOF
16837 if { (eval echo configure:16838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16838   rm -rf conftest*
16839   glibcpp_cv_func_sincosl_use=yes
16840 else
16841   echo "configure: failed program was:" >&5
16842   cat conftest.$ac_ext >&5
16843   rm -rf conftest*
16844   glibcpp_cv_func_sincosl_use=no
16845 fi
16846 rm -f conftest*
16847       ac_ext=c
16848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16849 ac_cpp='$CPP $CPPFLAGS'
16850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16852 cross_compiling=$ac_cv_prog_cc_cross
16853
16854     
16855 fi
16856
16857   fi
16858   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16859
16860   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16861     for ac_func in sincosl
16862 do
16863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16864 echo "configure:16865: checking for $ac_func" >&5
16865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16866   echo $ac_n "(cached) $ac_c" 1>&6
16867 else
16868   cat > conftest.$ac_ext <<EOF
16869 #line 16870 "configure"
16870 #include "confdefs.h"
16871 /* System header to define __stub macros and hopefully few prototypes,
16872     which can conflict with char $ac_func(); below.  */
16873 #include <assert.h>
16874 /* Override any gcc2 internal prototype to avoid an error.  */
16875 /* We use char because int might match the return type of a gcc2
16876     builtin and then its argument prototype would still apply.  */
16877 char $ac_func();
16878
16879 int main() {
16880
16881 /* The GNU C library defines this for functions which it implements
16882     to always fail with ENOSYS.  Some functions are actually named
16883     something starting with __ and the normal name is an alias.  */
16884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16885 choke me
16886 #else
16887 $ac_func();
16888 #endif
16889
16890 ; return 0; }
16891 EOF
16892 if { (eval echo configure:16893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16893   rm -rf conftest*
16894   eval "ac_cv_func_$ac_func=yes"
16895 else
16896   echo "configure: failed program was:" >&5
16897   cat conftest.$ac_ext >&5
16898   rm -rf conftest*
16899   eval "ac_cv_func_$ac_func=no"
16900 fi
16901 rm -f conftest*
16902 fi
16903
16904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16905   echo "$ac_t""yes" 1>&6
16906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16907   cat >> confdefs.h <<EOF
16908 #define $ac_tr_func 1
16909 EOF
16910  
16911 else
16912   echo "$ac_t""no" 1>&6
16913 fi
16914 done
16915     
16916   else
16917     
16918   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16919 echo "configure:16920: checking for _sincosl declaration" >&5
16920   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16921     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16922   echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924   
16925       
16926       ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16932
16933       cat > conftest.$ac_ext <<EOF
16934 #line 16935 "configure"
16935 #include "confdefs.h"
16936 #include <math.h>
16937 int main() {
16938  _sincosl(0, 0, 0);
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942   rm -rf conftest*
16943   glibcpp_cv_func__sincosl_use=yes
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   glibcpp_cv_func__sincosl_use=no
16949 fi
16950 rm -f conftest*
16951       ac_ext=c
16952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cc_cross
16957
16958     
16959 fi
16960
16961   fi
16962   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16963
16964     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16965       for ac_func in _sincosl
16966 do
16967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16968 echo "configure:16969: checking for $ac_func" >&5
16969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16970   echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972   cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 /* System header to define __stub macros and hopefully few prototypes,
16976     which can conflict with char $ac_func(); below.  */
16977 #include <assert.h>
16978 /* Override any gcc2 internal prototype to avoid an error.  */
16979 /* We use char because int might match the return type of a gcc2
16980     builtin and then its argument prototype would still apply.  */
16981 char $ac_func();
16982
16983 int main() {
16984
16985 /* The GNU C library defines this for functions which it implements
16986     to always fail with ENOSYS.  Some functions are actually named
16987     something starting with __ and the normal name is an alias.  */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 $ac_func();
16992 #endif
16993
16994 ; return 0; }
16995 EOF
16996 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997   rm -rf conftest*
16998   eval "ac_cv_func_$ac_func=yes"
16999 else
17000   echo "configure: failed program was:" >&5
17001   cat conftest.$ac_ext >&5
17002   rm -rf conftest*
17003   eval "ac_cv_func_$ac_func=no"
17004 fi
17005 rm -f conftest*
17006 fi
17007
17008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17009   echo "$ac_t""yes" 1>&6
17010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17011   cat >> confdefs.h <<EOF
17012 #define $ac_tr_func 1
17013 EOF
17014  
17015 else
17016   echo "$ac_t""no" 1>&6
17017 fi
17018 done
17019     
17020     fi
17021   fi
17022
17023   
17024   
17025   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17026 echo "configure:17027: checking for finitel declaration" >&5
17027   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17028     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17029   echo $ac_n "(cached) $ac_c" 1>&6
17030 else
17031   
17032       
17033       ac_ext=C
17034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17035 ac_cpp='$CXXCPP $CPPFLAGS'
17036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17038 cross_compiling=$ac_cv_prog_cxx_cross
17039
17040       cat > conftest.$ac_ext <<EOF
17041 #line 17042 "configure"
17042 #include "confdefs.h"
17043 #include <math.h>
17044                       #ifdef HAVE_IEEEFP_H
17045                       #include <ieeefp.h>
17046                       #endif
17047                      
17048 int main() {
17049  finitel(0);
17050 ; return 0; }
17051 EOF
17052 if { (eval echo configure:17053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17053   rm -rf conftest*
17054   glibcpp_cv_func_finitel_use=yes
17055 else
17056   echo "configure: failed program was:" >&5
17057   cat conftest.$ac_ext >&5
17058   rm -rf conftest*
17059   glibcpp_cv_func_finitel_use=no
17060 fi
17061 rm -f conftest*
17062       ac_ext=c
17063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17064 ac_cpp='$CPP $CPPFLAGS'
17065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17067 cross_compiling=$ac_cv_prog_cc_cross
17068
17069     
17070 fi
17071
17072   fi
17073   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17074
17075   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17076     for ac_func in finitel
17077 do
17078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17079 echo "configure:17080: checking for $ac_func" >&5
17080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17081   echo $ac_n "(cached) $ac_c" 1>&6
17082 else
17083   cat > conftest.$ac_ext <<EOF
17084 #line 17085 "configure"
17085 #include "confdefs.h"
17086 /* System header to define __stub macros and hopefully few prototypes,
17087     which can conflict with char $ac_func(); below.  */
17088 #include <assert.h>
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 /* We use char because int might match the return type of a gcc2
17091     builtin and then its argument prototype would still apply.  */
17092 char $ac_func();
17093
17094 int main() {
17095
17096 /* The GNU C library defines this for functions which it implements
17097     to always fail with ENOSYS.  Some functions are actually named
17098     something starting with __ and the normal name is an alias.  */
17099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17100 choke me
17101 #else
17102 $ac_func();
17103 #endif
17104
17105 ; return 0; }
17106 EOF
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17108   rm -rf conftest*
17109   eval "ac_cv_func_$ac_func=yes"
17110 else
17111   echo "configure: failed program was:" >&5
17112   cat conftest.$ac_ext >&5
17113   rm -rf conftest*
17114   eval "ac_cv_func_$ac_func=no"
17115 fi
17116 rm -f conftest*
17117 fi
17118
17119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17120   echo "$ac_t""yes" 1>&6
17121     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17122   cat >> confdefs.h <<EOF
17123 #define $ac_tr_func 1
17124 EOF
17125  
17126 else
17127   echo "$ac_t""no" 1>&6
17128 fi
17129 done
17130     
17131   else
17132     
17133   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17134 echo "configure:17135: checking for _finitel declaration" >&5
17135   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17136     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17137   echo $ac_n "(cached) $ac_c" 1>&6
17138 else
17139   
17140       
17141       ac_ext=C
17142 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17143 ac_cpp='$CXXCPP $CPPFLAGS'
17144 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17145 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17146 cross_compiling=$ac_cv_prog_cxx_cross
17147
17148       cat > conftest.$ac_ext <<EOF
17149 #line 17150 "configure"
17150 #include "confdefs.h"
17151 #include <math.h>
17152                       #ifdef HAVE_IEEEFP_H
17153                       #include <ieeefp.h>
17154                       #endif
17155                      
17156 int main() {
17157  _finitel(0);
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17161   rm -rf conftest*
17162   glibcpp_cv_func__finitel_use=yes
17163 else
17164   echo "configure: failed program was:" >&5
17165   cat conftest.$ac_ext >&5
17166   rm -rf conftest*
17167   glibcpp_cv_func__finitel_use=no
17168 fi
17169 rm -f conftest*
17170       ac_ext=c
17171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17172 ac_cpp='$CPP $CPPFLAGS'
17173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17175 cross_compiling=$ac_cv_prog_cc_cross
17176
17177     
17178 fi
17179
17180   fi
17181   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17182
17183     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17184       for ac_func in _finitel
17185 do
17186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17187 echo "configure:17188: checking for $ac_func" >&5
17188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17189   echo $ac_n "(cached) $ac_c" 1>&6
17190 else
17191   cat > conftest.$ac_ext <<EOF
17192 #line 17193 "configure"
17193 #include "confdefs.h"
17194 /* System header to define __stub macros and hopefully few prototypes,
17195     which can conflict with char $ac_func(); below.  */
17196 #include <assert.h>
17197 /* Override any gcc2 internal prototype to avoid an error.  */
17198 /* We use char because int might match the return type of a gcc2
17199     builtin and then its argument prototype would still apply.  */
17200 char $ac_func();
17201
17202 int main() {
17203
17204 /* The GNU C library defines this for functions which it implements
17205     to always fail with ENOSYS.  Some functions are actually named
17206     something starting with __ and the normal name is an alias.  */
17207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17208 choke me
17209 #else
17210 $ac_func();
17211 #endif
17212
17213 ; return 0; }
17214 EOF
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17216   rm -rf conftest*
17217   eval "ac_cv_func_$ac_func=yes"
17218 else
17219   echo "configure: failed program was:" >&5
17220   cat conftest.$ac_ext >&5
17221   rm -rf conftest*
17222   eval "ac_cv_func_$ac_func=no"
17223 fi
17224 rm -f conftest*
17225 fi
17226
17227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17228   echo "$ac_t""yes" 1>&6
17229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17230   cat >> confdefs.h <<EOF
17231 #define $ac_tr_func 1
17232 EOF
17233  
17234 else
17235   echo "$ac_t""no" 1>&6
17236 fi
17237 done
17238     
17239     fi
17240   fi
17241
17242
17243         
17244     
17245   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17246 echo "configure:17247: checking for _float trig functions" >&5
17247   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17248   echo $ac_n "(cached) $ac_c" 1>&6
17249 else
17250   
17251     
17252     ac_ext=C
17253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17254 ac_cpp='$CXXCPP $CPPFLAGS'
17255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17257 cross_compiling=$ac_cv_prog_cxx_cross
17258
17259     cat > conftest.$ac_ext <<EOF
17260 #line 17261 "configure"
17261 #include "confdefs.h"
17262 #include <math.h>
17263 int main() {
17264  `for x in _acosf _asinf _atanf \
17265                                           _cosf _sinf _tanf \
17266                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
17267 ; return 0; }
17268 EOF
17269 if { (eval echo configure:17270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17270   rm -rf conftest*
17271   glibcpp_cv_func__float_trig_use=yes
17272 else
17273   echo "configure: failed program was:" >&5
17274   cat conftest.$ac_ext >&5
17275   rm -rf conftest*
17276   glibcpp_cv_func__float_trig_use=no
17277 fi
17278 rm -f conftest*
17279     ac_ext=c
17280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17281 ac_cpp='$CPP $CPPFLAGS'
17282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17284 cross_compiling=$ac_cv_prog_cc_cross
17285
17286 fi
17287
17288   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17289   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17290     for ac_func in _acosf _asinf _atanf \
17291                                           _cosf _sinf _tanf \
17292                                           _coshf _sinhf _tanhf
17293 do
17294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17295 echo "configure:17296: checking for $ac_func" >&5
17296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17297   echo $ac_n "(cached) $ac_c" 1>&6
17298 else
17299   cat > conftest.$ac_ext <<EOF
17300 #line 17301 "configure"
17301 #include "confdefs.h"
17302 /* System header to define __stub macros and hopefully few prototypes,
17303     which can conflict with char $ac_func(); below.  */
17304 #include <assert.h>
17305 /* Override any gcc2 internal prototype to avoid an error.  */
17306 /* We use char because int might match the return type of a gcc2
17307     builtin and then its argument prototype would still apply.  */
17308 char $ac_func();
17309
17310 int main() {
17311
17312 /* The GNU C library defines this for functions which it implements
17313     to always fail with ENOSYS.  Some functions are actually named
17314     something starting with __ and the normal name is an alias.  */
17315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17316 choke me
17317 #else
17318 $ac_func();
17319 #endif
17320
17321 ; return 0; }
17322 EOF
17323 if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17324   rm -rf conftest*
17325   eval "ac_cv_func_$ac_func=yes"
17326 else
17327   echo "configure: failed program was:" >&5
17328   cat conftest.$ac_ext >&5
17329   rm -rf conftest*
17330   eval "ac_cv_func_$ac_func=no"
17331 fi
17332 rm -f conftest*
17333 fi
17334
17335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17336   echo "$ac_t""yes" 1>&6
17337     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17338   cat >> confdefs.h <<EOF
17339 #define $ac_tr_func 1
17340 EOF
17341  
17342 else
17343   echo "$ac_t""no" 1>&6
17344 fi
17345 done
17346
17347   fi
17348
17349   
17350   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17351 echo "configure:17352: checking for _float round functions" >&5
17352   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17353   echo $ac_n "(cached) $ac_c" 1>&6
17354 else
17355   
17356     
17357     ac_ext=C
17358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17359 ac_cpp='$CXXCPP $CPPFLAGS'
17360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17362 cross_compiling=$ac_cv_prog_cxx_cross
17363
17364     cat > conftest.$ac_ext <<EOF
17365 #line 17366 "configure"
17366 #include "confdefs.h"
17367 #include <math.h>
17368 int main() {
17369  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
17370 ; return 0; }
17371 EOF
17372 if { (eval echo configure:17373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17373   rm -rf conftest*
17374   glibcpp_cv_func__float_round_use=yes
17375 else
17376   echo "configure: failed program was:" >&5
17377   cat conftest.$ac_ext >&5
17378   rm -rf conftest*
17379   glibcpp_cv_func__float_round_use=no
17380 fi
17381 rm -f conftest*
17382     ac_ext=c
17383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17384 ac_cpp='$CPP $CPPFLAGS'
17385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17387 cross_compiling=$ac_cv_prog_cc_cross
17388
17389 fi
17390
17391   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17392   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17393     for ac_func in _ceilf _floorf
17394 do
17395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17396 echo "configure:17397: checking for $ac_func" >&5
17397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17398   echo $ac_n "(cached) $ac_c" 1>&6
17399 else
17400   cat > conftest.$ac_ext <<EOF
17401 #line 17402 "configure"
17402 #include "confdefs.h"
17403 /* System header to define __stub macros and hopefully few prototypes,
17404     which can conflict with char $ac_func(); below.  */
17405 #include <assert.h>
17406 /* Override any gcc2 internal prototype to avoid an error.  */
17407 /* We use char because int might match the return type of a gcc2
17408     builtin and then its argument prototype would still apply.  */
17409 char $ac_func();
17410
17411 int main() {
17412
17413 /* The GNU C library defines this for functions which it implements
17414     to always fail with ENOSYS.  Some functions are actually named
17415     something starting with __ and the normal name is an alias.  */
17416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17417 choke me
17418 #else
17419 $ac_func();
17420 #endif
17421
17422 ; return 0; }
17423 EOF
17424 if { (eval echo configure:17425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17425   rm -rf conftest*
17426   eval "ac_cv_func_$ac_func=yes"
17427 else
17428   echo "configure: failed program was:" >&5
17429   cat conftest.$ac_ext >&5
17430   rm -rf conftest*
17431   eval "ac_cv_func_$ac_func=no"
17432 fi
17433 rm -f conftest*
17434 fi
17435
17436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17437   echo "$ac_t""yes" 1>&6
17438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17439   cat >> confdefs.h <<EOF
17440 #define $ac_tr_func 1
17441 EOF
17442  
17443 else
17444   echo "$ac_t""no" 1>&6
17445 fi
17446 done
17447
17448   fi
17449
17450
17451     
17452   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17453 echo "configure:17454: checking for _long double trig functions" >&5
17454   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17455   echo $ac_n "(cached) $ac_c" 1>&6
17456 else
17457   
17458     
17459     ac_ext=C
17460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17461 ac_cpp='$CXXCPP $CPPFLAGS'
17462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17464 cross_compiling=$ac_cv_prog_cxx_cross
17465
17466     cat > conftest.$ac_ext <<EOF
17467 #line 17468 "configure"
17468 #include "confdefs.h"
17469 #include <math.h>
17470 int main() {
17471  `for x in _acosl _asinl _atanl \
17472                                           _cosl _sinl _tanl \
17473                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
17474 ; return 0; }
17475 EOF
17476 if { (eval echo configure:17477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17477   rm -rf conftest*
17478   glibcpp_cv_func__long_double_trig_use=yes
17479 else
17480   echo "configure: failed program was:" >&5
17481   cat conftest.$ac_ext >&5
17482   rm -rf conftest*
17483   glibcpp_cv_func__long_double_trig_use=no
17484 fi
17485 rm -f conftest*
17486     ac_ext=c
17487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17488 ac_cpp='$CPP $CPPFLAGS'
17489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17491 cross_compiling=$ac_cv_prog_cc_cross
17492
17493 fi
17494
17495   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17496   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17497     for ac_func in _acosl _asinl _atanl \
17498                                           _cosl _sinl _tanl \
17499                                           _coshl _sinhl _tanhl
17500 do
17501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17502 echo "configure:17503: checking for $ac_func" >&5
17503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17504   echo $ac_n "(cached) $ac_c" 1>&6
17505 else
17506   cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17509 /* System header to define __stub macros and hopefully few prototypes,
17510     which can conflict with char $ac_func(); below.  */
17511 #include <assert.h>
17512 /* Override any gcc2 internal prototype to avoid an error.  */
17513 /* We use char because int might match the return type of a gcc2
17514     builtin and then its argument prototype would still apply.  */
17515 char $ac_func();
17516
17517 int main() {
17518
17519 /* The GNU C library defines this for functions which it implements
17520     to always fail with ENOSYS.  Some functions are actually named
17521     something starting with __ and the normal name is an alias.  */
17522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17523 choke me
17524 #else
17525 $ac_func();
17526 #endif
17527
17528 ; return 0; }
17529 EOF
17530 if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531   rm -rf conftest*
17532   eval "ac_cv_func_$ac_func=yes"
17533 else
17534   echo "configure: failed program was:" >&5
17535   cat conftest.$ac_ext >&5
17536   rm -rf conftest*
17537   eval "ac_cv_func_$ac_func=no"
17538 fi
17539 rm -f conftest*
17540 fi
17541
17542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17543   echo "$ac_t""yes" 1>&6
17544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17545   cat >> confdefs.h <<EOF
17546 #define $ac_tr_func 1
17547 EOF
17548  
17549 else
17550   echo "$ac_t""no" 1>&6
17551 fi
17552 done
17553
17554   fi
17555
17556   
17557   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17558 echo "configure:17559: checking for _long double round functions" >&5
17559   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17560   echo $ac_n "(cached) $ac_c" 1>&6
17561 else
17562   
17563     
17564     ac_ext=C
17565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17566 ac_cpp='$CXXCPP $CPPFLAGS'
17567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17569 cross_compiling=$ac_cv_prog_cxx_cross
17570
17571     cat > conftest.$ac_ext <<EOF
17572 #line 17573 "configure"
17573 #include "confdefs.h"
17574 #include <math.h>
17575 int main() {
17576  `for x in _ceill _floorl; do echo "$x (0);"; done` 
17577 ; return 0; }
17578 EOF
17579 if { (eval echo configure:17580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17580   rm -rf conftest*
17581   glibcpp_cv_func__long_double_round_use=yes
17582 else
17583   echo "configure: failed program was:" >&5
17584   cat conftest.$ac_ext >&5
17585   rm -rf conftest*
17586   glibcpp_cv_func__long_double_round_use=no
17587 fi
17588 rm -f conftest*
17589     ac_ext=c
17590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17591 ac_cpp='$CPP $CPPFLAGS'
17592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17594 cross_compiling=$ac_cv_prog_cc_cross
17595
17596 fi
17597
17598   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17599   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17600     for ac_func in _ceill _floorl
17601 do
17602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17603 echo "configure:17604: checking for $ac_func" >&5
17604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17605   echo $ac_n "(cached) $ac_c" 1>&6
17606 else
17607   cat > conftest.$ac_ext <<EOF
17608 #line 17609 "configure"
17609 #include "confdefs.h"
17610 /* System header to define __stub macros and hopefully few prototypes,
17611     which can conflict with char $ac_func(); below.  */
17612 #include <assert.h>
17613 /* Override any gcc2 internal prototype to avoid an error.  */
17614 /* We use char because int might match the return type of a gcc2
17615     builtin and then its argument prototype would still apply.  */
17616 char $ac_func();
17617
17618 int main() {
17619
17620 /* The GNU C library defines this for functions which it implements
17621     to always fail with ENOSYS.  Some functions are actually named
17622     something starting with __ and the normal name is an alias.  */
17623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17624 choke me
17625 #else
17626 $ac_func();
17627 #endif
17628
17629 ; return 0; }
17630 EOF
17631 if { (eval echo configure:17632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17632   rm -rf conftest*
17633   eval "ac_cv_func_$ac_func=yes"
17634 else
17635   echo "configure: failed program was:" >&5
17636   cat conftest.$ac_ext >&5
17637   rm -rf conftest*
17638   eval "ac_cv_func_$ac_func=no"
17639 fi
17640 rm -f conftest*
17641 fi
17642
17643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17644   echo "$ac_t""yes" 1>&6
17645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17646   cat >> confdefs.h <<EOF
17647 #define $ac_tr_func 1
17648 EOF
17649  
17650 else
17651   echo "$ac_t""no" 1>&6
17652 fi
17653 done
17654
17655   fi
17656
17657
17658   LIBS="$ac_save_LIBS"
17659   CXXFLAGS="$ac_save_CXXFLAGS"
17660
17661   
17662     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17663 echo "configure:17664: checking for main in -lm" >&5
17664 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17666   echo $ac_n "(cached) $ac_c" 1>&6
17667 else
17668   ac_save_LIBS="$LIBS"
17669 LIBS="-lm  $LIBS"
17670 cat > conftest.$ac_ext <<EOF
17671 #line 17672 "configure"
17672 #include "confdefs.h"
17673
17674 int main() {
17675 main()
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_lib_$ac_lib_var=yes"
17681 else
17682   echo "configure: failed program was:" >&5
17683   cat conftest.$ac_ext >&5
17684   rm -rf conftest*
17685   eval "ac_cv_lib_$ac_lib_var=no"
17686 fi
17687 rm -f conftest*
17688 LIBS="$ac_save_LIBS"
17689
17690 fi
17691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17692   echo "$ac_t""yes" 1>&6
17693     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17694     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17695   cat >> confdefs.h <<EOF
17696 #define $ac_tr_lib 1
17697 EOF
17698
17699   LIBS="-lm $LIBS"
17700
17701 else
17702   echo "$ac_t""no" 1>&6
17703 fi
17704
17705   for ac_func in nan copysignf
17706 do
17707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17708 echo "configure:17709: checking for $ac_func" >&5
17709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17710   echo $ac_n "(cached) $ac_c" 1>&6
17711 else
17712   cat > conftest.$ac_ext <<EOF
17713 #line 17714 "configure"
17714 #include "confdefs.h"
17715 /* System header to define __stub macros and hopefully few prototypes,
17716     which can conflict with char $ac_func(); below.  */
17717 #include <assert.h>
17718 /* Override any gcc2 internal prototype to avoid an error.  */
17719 /* We use char because int might match the return type of a gcc2
17720     builtin and then its argument prototype would still apply.  */
17721 char $ac_func();
17722
17723 int main() {
17724
17725 /* The GNU C library defines this for functions which it implements
17726     to always fail with ENOSYS.  Some functions are actually named
17727     something starting with __ and the normal name is an alias.  */
17728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17729 choke me
17730 #else
17731 $ac_func();
17732 #endif
17733
17734 ; return 0; }
17735 EOF
17736 if { (eval echo configure:17737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17737   rm -rf conftest*
17738   eval "ac_cv_func_$ac_func=yes"
17739 else
17740   echo "configure: failed program was:" >&5
17741   cat conftest.$ac_ext >&5
17742   rm -rf conftest*
17743   eval "ac_cv_func_$ac_func=no"
17744 fi
17745 rm -f conftest*
17746 fi
17747
17748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17749   echo "$ac_t""yes" 1>&6
17750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17751   cat >> confdefs.h <<EOF
17752 #define $ac_tr_func 1
17753 EOF
17754  
17755 else
17756   echo "$ac_t""no" 1>&6
17757 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17758 fi
17759 done
17760
17761
17762
17763           USE_COMPLEX_LONG_DOUBLE=no
17764   if test x$ac_cv_func_copysignl = x"yes"; then
17765     USE_COMPLEX_LONG_DOUBLE=yes
17766     for ac_func in signbitl
17767 do
17768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17769 echo "configure:17770: checking for $ac_func" >&5
17770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17771   echo $ac_n "(cached) $ac_c" 1>&6
17772 else
17773   cat > conftest.$ac_ext <<EOF
17774 #line 17775 "configure"
17775 #include "confdefs.h"
17776 /* System header to define __stub macros and hopefully few prototypes,
17777     which can conflict with char $ac_func(); below.  */
17778 #include <assert.h>
17779 /* Override any gcc2 internal prototype to avoid an error.  */
17780 /* We use char because int might match the return type of a gcc2
17781     builtin and then its argument prototype would still apply.  */
17782 char $ac_func();
17783
17784 int main() {
17785
17786 /* The GNU C library defines this for functions which it implements
17787     to always fail with ENOSYS.  Some functions are actually named
17788     something starting with __ and the normal name is an alias.  */
17789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17790 choke me
17791 #else
17792 $ac_func();
17793 #endif
17794
17795 ; return 0; }
17796 EOF
17797 if { (eval echo configure:17798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17798   rm -rf conftest*
17799   eval "ac_cv_func_$ac_func=yes"
17800 else
17801   echo "configure: failed program was:" >&5
17802   cat conftest.$ac_ext >&5
17803   rm -rf conftest*
17804   eval "ac_cv_func_$ac_func=no"
17805 fi
17806 rm -f conftest*
17807 fi
17808
17809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17810   echo "$ac_t""yes" 1>&6
17811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17812   cat >> confdefs.h <<EOF
17813 #define $ac_tr_func 1
17814 EOF
17815  
17816 else
17817   echo "$ac_t""no" 1>&6
17818 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17819 fi
17820 done
17821
17822
17823   fi
17824
17825   
17826
17827   
17828
17829       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17830 echo "configure:17831: checking for mbstate_t" >&5
17831   cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17834 #include <wchar.h>
17835 int main() {
17836 mbstate_t teststate;
17837 ; return 0; }
17838 EOF
17839 if { (eval echo configure:17840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17840   rm -rf conftest*
17841   have_mbstate_t=yes
17842 else
17843   echo "configure: failed program was:" >&5
17844   cat conftest.$ac_ext >&5
17845   rm -rf conftest*
17846   have_mbstate_t=no
17847 fi
17848 rm -f conftest*
17849   echo "$ac_t""$have_mbstate_t" 1>&6
17850   if test x"$have_mbstate_t" = xyes; then
17851     cat >> confdefs.h <<\EOF
17852 #define HAVE_MBSTATE_T 1
17853 EOF
17854
17855   fi
17856
17857     for ac_hdr in wchar.h
17858 do
17859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17861 echo "configure:17862: checking for $ac_hdr" >&5
17862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
17869 EOF
17870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17871 { (eval echo configure:17872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17873 if test -z "$ac_err"; then
17874   rm -rf conftest*
17875   eval "ac_cv_header_$ac_safe=yes"
17876 else
17877   echo "$ac_err" >&5
17878   echo "configure: failed program was:" >&5
17879   cat conftest.$ac_ext >&5
17880   rm -rf conftest*
17881   eval "ac_cv_header_$ac_safe=no"
17882 fi
17883 rm -f conftest*
17884 fi
17885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17886   echo "$ac_t""yes" 1>&6
17887     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17888   cat >> confdefs.h <<EOF
17889 #define $ac_tr_hdr 1
17890 EOF
17891  ac_has_wchar_h=yes
17892 else
17893   echo "$ac_t""no" 1>&6
17894 ac_has_wchar_h=no
17895 fi
17896 done
17897
17898   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17899 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17900 echo "configure:17901: checking for wctype.h" >&5
17901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17902   echo $ac_n "(cached) $ac_c" 1>&6
17903 else
17904   cat > conftest.$ac_ext <<EOF
17905 #line 17906 "configure"
17906 #include "confdefs.h"
17907 #include <wctype.h>
17908 EOF
17909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17910 { (eval echo configure:17911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17912 if test -z "$ac_err"; then
17913   rm -rf conftest*
17914   eval "ac_cv_header_$ac_safe=yes"
17915 else
17916   echo "$ac_err" >&5
17917   echo "configure: failed program was:" >&5
17918   cat conftest.$ac_ext >&5
17919   rm -rf conftest*
17920   eval "ac_cv_header_$ac_safe=no"
17921 fi
17922 rm -f conftest*
17923 fi
17924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17925   echo "$ac_t""yes" 1>&6
17926   ac_has_wctype_h=yes
17927 else
17928   echo "$ac_t""no" 1>&6
17929 ac_has_wctype_h=no
17930 fi
17931
17932   
17933     if test x"$ac_has_wchar_h" = xyes &&
17934      test x"$ac_has_wctype_h" = xyes &&
17935      test x"$enable_c_mbchar" != xno; then
17936       
17937             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17938 echo "configure:17939: checking for WCHAR_MIN and WCHAR_MAX" >&5
17939     cat > conftest.$ac_ext <<EOF
17940 #line 17941 "configure"
17941 #include "confdefs.h"
17942 #include <wchar.h>
17943 int main() {
17944 int i = WCHAR_MIN; int j = WCHAR_MAX;
17945 ; return 0; }
17946 EOF
17947 if { (eval echo configure:17948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17948   rm -rf conftest*
17949   has_wchar_minmax=yes
17950 else
17951   echo "configure: failed program was:" >&5
17952   cat conftest.$ac_ext >&5
17953   rm -rf conftest*
17954   has_wchar_minmax=no
17955 fi
17956 rm -f conftest*
17957     echo "$ac_t""$has_wchar_minmax" 1>&6
17958     
17959             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17960 echo "configure:17961: checking for WEOF" >&5
17961     cat > conftest.$ac_ext <<EOF
17962 #line 17963 "configure"
17963 #include "confdefs.h"
17964
17965       #include <wchar.h>
17966       #include <stddef.h>
17967 int main() {
17968 wint_t i = WEOF;
17969 ; return 0; }
17970 EOF
17971 if { (eval echo configure:17972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17972   rm -rf conftest*
17973   has_weof=yes
17974 else
17975   echo "configure: failed program was:" >&5
17976   cat conftest.$ac_ext >&5
17977   rm -rf conftest*
17978   has_weof=no
17979 fi
17980 rm -f conftest*
17981     echo "$ac_t""$has_weof" 1>&6
17982   
17983         ac_wfuncs=yes
17984     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17985 do
17986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17987 echo "configure:17988: checking for $ac_func" >&5
17988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17989   echo $ac_n "(cached) $ac_c" 1>&6
17990 else
17991   cat > conftest.$ac_ext <<EOF
17992 #line 17993 "configure"
17993 #include "confdefs.h"
17994 /* System header to define __stub macros and hopefully few prototypes,
17995     which can conflict with char $ac_func(); below.  */
17996 #include <assert.h>
17997 /* Override any gcc2 internal prototype to avoid an error.  */
17998 /* We use char because int might match the return type of a gcc2
17999     builtin and then its argument prototype would still apply.  */
18000 char $ac_func();
18001
18002 int main() {
18003
18004 /* The GNU C library defines this for functions which it implements
18005     to always fail with ENOSYS.  Some functions are actually named
18006     something starting with __ and the normal name is an alias.  */
18007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18008 choke me
18009 #else
18010 $ac_func();
18011 #endif
18012
18013 ; return 0; }
18014 EOF
18015 if { (eval echo configure:18016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18016   rm -rf conftest*
18017   eval "ac_cv_func_$ac_func=yes"
18018 else
18019   echo "configure: failed program was:" >&5
18020   cat conftest.$ac_ext >&5
18021   rm -rf conftest*
18022   eval "ac_cv_func_$ac_func=no"
18023 fi
18024 rm -f conftest*
18025 fi
18026
18027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18028   echo "$ac_t""yes" 1>&6
18029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18030   cat >> confdefs.h <<EOF
18031 #define $ac_tr_func 1
18032 EOF
18033  
18034 else
18035   echo "$ac_t""no" 1>&6
18036 \
18037     ac_wfuncs=no
18038 fi
18039 done
18040
18041   
18042         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18043     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18044     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18045     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18046     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18047     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18048 do
18049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18050 echo "configure:18051: checking for $ac_func" >&5
18051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18052   echo $ac_n "(cached) $ac_c" 1>&6
18053 else
18054   cat > conftest.$ac_ext <<EOF
18055 #line 18056 "configure"
18056 #include "confdefs.h"
18057 /* System header to define __stub macros and hopefully few prototypes,
18058     which can conflict with char $ac_func(); below.  */
18059 #include <assert.h>
18060 /* Override any gcc2 internal prototype to avoid an error.  */
18061 /* We use char because int might match the return type of a gcc2
18062     builtin and then its argument prototype would still apply.  */
18063 char $ac_func();
18064
18065 int main() {
18066
18067 /* The GNU C library defines this for functions which it implements
18068     to always fail with ENOSYS.  Some functions are actually named
18069     something starting with __ and the normal name is an alias.  */
18070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18071 choke me
18072 #else
18073 $ac_func();
18074 #endif
18075
18076 ; return 0; }
18077 EOF
18078 if { (eval echo configure:18079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18079   rm -rf conftest*
18080   eval "ac_cv_func_$ac_func=yes"
18081 else
18082   echo "configure: failed program was:" >&5
18083   cat conftest.$ac_ext >&5
18084   rm -rf conftest*
18085   eval "ac_cv_func_$ac_func=no"
18086 fi
18087 rm -f conftest*
18088 fi
18089
18090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18091   echo "$ac_t""yes" 1>&6
18092     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18093   cat >> confdefs.h <<EOF
18094 #define $ac_tr_func 1
18095 EOF
18096  
18097 else
18098   echo "$ac_t""no" 1>&6
18099 \
18100     ac_wfuncs=no
18101 fi
18102 done
18103
18104
18105     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18106 echo "configure:18107: checking for ISO C99 wchar_t support" >&5
18107     if test x"$has_weof" = xyes &&
18108        test x"$has_wchar_minmax" = xyes &&
18109        test x"$ac_wfuncs" = xyes; then
18110       ac_isoC99_wchar_t=yes
18111     else
18112       ac_isoC99_wchar_t=no
18113     fi
18114     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18115   
18116             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18117 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18118 echo "configure:18119: checking for iconv.h" >&5
18119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18120   echo $ac_n "(cached) $ac_c" 1>&6
18121 else
18122   cat > conftest.$ac_ext <<EOF
18123 #line 18124 "configure"
18124 #include "confdefs.h"
18125 #include <iconv.h>
18126 EOF
18127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18128 { (eval echo configure:18129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18130 if test -z "$ac_err"; then
18131   rm -rf conftest*
18132   eval "ac_cv_header_$ac_safe=yes"
18133 else
18134   echo "$ac_err" >&5
18135   echo "configure: failed program was:" >&5
18136   cat conftest.$ac_ext >&5
18137   rm -rf conftest*
18138   eval "ac_cv_header_$ac_safe=no"
18139 fi
18140 rm -f conftest*
18141 fi
18142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18143   echo "$ac_t""yes" 1>&6
18144   ac_has_iconv_h=yes
18145 else
18146   echo "$ac_t""no" 1>&6
18147 ac_has_iconv_h=no
18148 fi
18149
18150     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18151 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18152 echo "configure:18153: checking for langinfo.h" >&5
18153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18154   echo $ac_n "(cached) $ac_c" 1>&6
18155 else
18156   cat > conftest.$ac_ext <<EOF
18157 #line 18158 "configure"
18158 #include "confdefs.h"
18159 #include <langinfo.h>
18160 EOF
18161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18162 { (eval echo configure:18163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18164 if test -z "$ac_err"; then
18165   rm -rf conftest*
18166   eval "ac_cv_header_$ac_safe=yes"
18167 else
18168   echo "$ac_err" >&5
18169   echo "configure: failed program was:" >&5
18170   cat conftest.$ac_ext >&5
18171   rm -rf conftest*
18172   eval "ac_cv_header_$ac_safe=no"
18173 fi
18174 rm -f conftest*
18175 fi
18176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18177   echo "$ac_t""yes" 1>&6
18178   ac_has_langinfo_h=yes
18179 else
18180   echo "$ac_t""no" 1>&6
18181 ac_has_langinfo_h=no
18182 fi
18183
18184
18185         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18186 echo "configure:18187: checking for iconv in -liconv" >&5
18187 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18189   echo $ac_n "(cached) $ac_c" 1>&6
18190 else
18191   ac_save_LIBS="$LIBS"
18192 LIBS="-liconv  $LIBS"
18193 cat > conftest.$ac_ext <<EOF
18194 #line 18195 "configure"
18195 #include "confdefs.h"
18196 /* Override any gcc2 internal prototype to avoid an error.  */
18197 /* We use char because int might match the return type of a gcc2
18198     builtin and then its argument prototype would still apply.  */
18199 char iconv();
18200
18201 int main() {
18202 iconv()
18203 ; return 0; }
18204 EOF
18205 if { (eval echo configure:18206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18206   rm -rf conftest*
18207   eval "ac_cv_lib_$ac_lib_var=yes"
18208 else
18209   echo "configure: failed program was:" >&5
18210   cat conftest.$ac_ext >&5
18211   rm -rf conftest*
18212   eval "ac_cv_lib_$ac_lib_var=no"
18213 fi
18214 rm -f conftest*
18215 LIBS="$ac_save_LIBS"
18216
18217 fi
18218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18219   echo "$ac_t""yes" 1>&6
18220   libiconv="-liconv"
18221 else
18222   echo "$ac_t""no" 1>&6
18223 fi
18224
18225     ac_save_LIBS="$LIBS"
18226     LIBS="$LIBS $libiconv"
18227
18228     for ac_func in iconv_open iconv_close iconv nl_langinfo
18229 do
18230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18231 echo "configure:18232: checking for $ac_func" >&5
18232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18233   echo $ac_n "(cached) $ac_c" 1>&6
18234 else
18235   cat > conftest.$ac_ext <<EOF
18236 #line 18237 "configure"
18237 #include "confdefs.h"
18238 /* System header to define __stub macros and hopefully few prototypes,
18239     which can conflict with char $ac_func(); below.  */
18240 #include <assert.h>
18241 /* Override any gcc2 internal prototype to avoid an error.  */
18242 /* We use char because int might match the return type of a gcc2
18243     builtin and then its argument prototype would still apply.  */
18244 char $ac_func();
18245
18246 int main() {
18247
18248 /* The GNU C library defines this for functions which it implements
18249     to always fail with ENOSYS.  Some functions are actually named
18250     something starting with __ and the normal name is an alias.  */
18251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18252 choke me
18253 #else
18254 $ac_func();
18255 #endif
18256
18257 ; return 0; }
18258 EOF
18259 if { (eval echo configure:18260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18260   rm -rf conftest*
18261   eval "ac_cv_func_$ac_func=yes"
18262 else
18263   echo "configure: failed program was:" >&5
18264   cat conftest.$ac_ext >&5
18265   rm -rf conftest*
18266   eval "ac_cv_func_$ac_func=no"
18267 fi
18268 rm -f conftest*
18269 fi
18270
18271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18272   echo "$ac_t""yes" 1>&6
18273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18274   cat >> confdefs.h <<EOF
18275 #define $ac_tr_func 1
18276 EOF
18277  \
18278     ac_XPG2funcs=yes
18279 else
18280   echo "$ac_t""no" 1>&6
18281 ac_XPG2funcs=no
18282 fi
18283 done
18284
18285   
18286     LIBS="$ac_save_LIBS"
18287
18288     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18289 echo "configure:18290: checking for XPG2 wchar_t support" >&5
18290     if test x"$ac_has_iconv_h" = xyes &&
18291        test x"$ac_has_langinfo_h" = xyes &&
18292        test x"$ac_XPG2funcs" = xyes; then
18293       ac_XPG2_wchar_t=yes
18294     else
18295       ac_XPG2_wchar_t=no
18296     fi
18297     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18298   
18299             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18300 echo "configure:18301: checking for enabled wchar_t specializations" >&5
18301     if test x"$ac_isoC99_wchar_t" = xyes &&
18302        test x"$ac_XPG2_wchar_t" = xyes; then
18303       cat >> confdefs.h <<\EOF
18304 #define _GLIBCPP_USE_WCHAR_T 1
18305 EOF
18306
18307       echo "$ac_t"""yes"" 1>&6
18308     else
18309       echo "$ac_t"""no"" 1>&6
18310     fi
18311   else
18312         echo "configure: warning: wchar_t support disabled." 1>&2
18313   fi
18314
18315   
18316   ac_test_CXXFLAGS="${CXXFLAGS+set}"
18317   ac_save_CXXFLAGS="$CXXFLAGS"
18318   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18319
18320   
18321   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18322 echo "configure:18323: checking for strtold declaration" >&5
18323   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18324     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18325   echo $ac_n "(cached) $ac_c" 1>&6
18326 else
18327   
18328       
18329       ac_ext=C
18330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18331 ac_cpp='$CXXCPP $CPPFLAGS'
18332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18334 cross_compiling=$ac_cv_prog_cxx_cross
18335
18336       cat > conftest.$ac_ext <<EOF
18337 #line 18338 "configure"
18338 #include "confdefs.h"
18339 #include <stdlib.h>
18340 int main() {
18341  strtold(0, 0);
18342 ; return 0; }
18343 EOF
18344 if { (eval echo configure:18345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18345   rm -rf conftest*
18346   glibcpp_cv_func_strtold_use=yes
18347 else
18348   echo "configure: failed program was:" >&5
18349   cat conftest.$ac_ext >&5
18350   rm -rf conftest*
18351   glibcpp_cv_func_strtold_use=no
18352 fi
18353 rm -f conftest*
18354       ac_ext=c
18355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18356 ac_cpp='$CPP $CPPFLAGS'
18357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18359 cross_compiling=$ac_cv_prog_cc_cross
18360
18361     
18362 fi
18363
18364   fi
18365   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18366   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18367     for ac_func in strtold
18368 do
18369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18370 echo "configure:18371: checking for $ac_func" >&5
18371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18372   echo $ac_n "(cached) $ac_c" 1>&6
18373 else
18374   cat > conftest.$ac_ext <<EOF
18375 #line 18376 "configure"
18376 #include "confdefs.h"
18377 /* System header to define __stub macros and hopefully few prototypes,
18378     which can conflict with char $ac_func(); below.  */
18379 #include <assert.h>
18380 /* Override any gcc2 internal prototype to avoid an error.  */
18381 /* We use char because int might match the return type of a gcc2
18382     builtin and then its argument prototype would still apply.  */
18383 char $ac_func();
18384
18385 int main() {
18386
18387 /* The GNU C library defines this for functions which it implements
18388     to always fail with ENOSYS.  Some functions are actually named
18389     something starting with __ and the normal name is an alias.  */
18390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18391 choke me
18392 #else
18393 $ac_func();
18394 #endif
18395
18396 ; return 0; }
18397 EOF
18398 if { (eval echo configure:18399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18399   rm -rf conftest*
18400   eval "ac_cv_func_$ac_func=yes"
18401 else
18402   echo "configure: failed program was:" >&5
18403   cat conftest.$ac_ext >&5
18404   rm -rf conftest*
18405   eval "ac_cv_func_$ac_func=no"
18406 fi
18407 rm -f conftest*
18408 fi
18409
18410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18411   echo "$ac_t""yes" 1>&6
18412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18413   cat >> confdefs.h <<EOF
18414 #define $ac_tr_func 1
18415 EOF
18416  
18417 else
18418   echo "$ac_t""no" 1>&6
18419 fi
18420 done
18421     
18422   fi
18423
18424   
18425   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
18426 echo "configure:18427: checking for strtof declaration" >&5
18427   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
18428     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
18429   echo $ac_n "(cached) $ac_c" 1>&6
18430 else
18431   
18432       
18433       ac_ext=C
18434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18435 ac_cpp='$CXXCPP $CPPFLAGS'
18436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18438 cross_compiling=$ac_cv_prog_cxx_cross
18439
18440       cat > conftest.$ac_ext <<EOF
18441 #line 18442 "configure"
18442 #include "confdefs.h"
18443 #include <stdlib.h>
18444 int main() {
18445  strtof(0, 0);
18446 ; return 0; }
18447 EOF
18448 if { (eval echo configure:18449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18449   rm -rf conftest*
18450   glibcpp_cv_func_strtof_use=yes
18451 else
18452   echo "configure: failed program was:" >&5
18453   cat conftest.$ac_ext >&5
18454   rm -rf conftest*
18455   glibcpp_cv_func_strtof_use=no
18456 fi
18457 rm -f conftest*
18458       ac_ext=c
18459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18460 ac_cpp='$CPP $CPPFLAGS'
18461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18463 cross_compiling=$ac_cv_prog_cc_cross
18464
18465     
18466 fi
18467
18468   fi
18469   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
18470   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
18471     for ac_func in strtof
18472 do
18473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18474 echo "configure:18475: checking for $ac_func" >&5
18475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18476   echo $ac_n "(cached) $ac_c" 1>&6
18477 else
18478   cat > conftest.$ac_ext <<EOF
18479 #line 18480 "configure"
18480 #include "confdefs.h"
18481 /* System header to define __stub macros and hopefully few prototypes,
18482     which can conflict with char $ac_func(); below.  */
18483 #include <assert.h>
18484 /* Override any gcc2 internal prototype to avoid an error.  */
18485 /* We use char because int might match the return type of a gcc2
18486     builtin and then its argument prototype would still apply.  */
18487 char $ac_func();
18488
18489 int main() {
18490
18491 /* The GNU C library defines this for functions which it implements
18492     to always fail with ENOSYS.  Some functions are actually named
18493     something starting with __ and the normal name is an alias.  */
18494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18495 choke me
18496 #else
18497 $ac_func();
18498 #endif
18499
18500 ; return 0; }
18501 EOF
18502 if { (eval echo configure:18503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18503   rm -rf conftest*
18504   eval "ac_cv_func_$ac_func=yes"
18505 else
18506   echo "configure: failed program was:" >&5
18507   cat conftest.$ac_ext >&5
18508   rm -rf conftest*
18509   eval "ac_cv_func_$ac_func=no"
18510 fi
18511 rm -f conftest*
18512 fi
18513
18514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18515   echo "$ac_t""yes" 1>&6
18516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18517   cat >> confdefs.h <<EOF
18518 #define $ac_tr_func 1
18519 EOF
18520  
18521 else
18522   echo "$ac_t""no" 1>&6
18523 fi
18524 done
18525     
18526   fi
18527
18528   for ac_func in drand48
18529 do
18530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18531 echo "configure:18532: checking for $ac_func" >&5
18532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533   echo $ac_n "(cached) $ac_c" 1>&6
18534 else
18535   cat > conftest.$ac_ext <<EOF
18536 #line 18537 "configure"
18537 #include "confdefs.h"
18538 /* System header to define __stub macros and hopefully few prototypes,
18539     which can conflict with char $ac_func(); below.  */
18540 #include <assert.h>
18541 /* Override any gcc2 internal prototype to avoid an error.  */
18542 /* We use char because int might match the return type of a gcc2
18543     builtin and then its argument prototype would still apply.  */
18544 char $ac_func();
18545
18546 int main() {
18547
18548 /* The GNU C library defines this for functions which it implements
18549     to always fail with ENOSYS.  Some functions are actually named
18550     something starting with __ and the normal name is an alias.  */
18551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552 choke me
18553 #else
18554 $ac_func();
18555 #endif
18556
18557 ; return 0; }
18558 EOF
18559 if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18560   rm -rf conftest*
18561   eval "ac_cv_func_$ac_func=yes"
18562 else
18563   echo "configure: failed program was:" >&5
18564   cat conftest.$ac_ext >&5
18565   rm -rf conftest*
18566   eval "ac_cv_func_$ac_func=no"
18567 fi
18568 rm -f conftest*
18569 fi
18570
18571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572   echo "$ac_t""yes" 1>&6
18573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574   cat >> confdefs.h <<EOF
18575 #define $ac_tr_func 1
18576 EOF
18577  
18578 else
18579   echo "$ac_t""no" 1>&6
18580 fi
18581 done
18582
18583
18584   CXXFLAGS="$ac_save_CXXFLAGS"
18585
18586   
18587   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18588 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18589 echo "configure:18590: checking for locale.h" >&5
18590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18591   echo $ac_n "(cached) $ac_c" 1>&6
18592 else
18593   cat > conftest.$ac_ext <<EOF
18594 #line 18595 "configure"
18595 #include "confdefs.h"
18596 #include <locale.h>
18597 EOF
18598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18599 { (eval echo configure:18600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18601 if test -z "$ac_err"; then
18602   rm -rf conftest*
18603   eval "ac_cv_header_$ac_safe=yes"
18604 else
18605   echo "$ac_err" >&5
18606   echo "configure: failed program was:" >&5
18607   cat conftest.$ac_ext >&5
18608   rm -rf conftest*
18609   eval "ac_cv_header_$ac_safe=no"
18610 fi
18611 rm -f conftest*
18612 fi
18613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18614   echo "$ac_t""yes" 1>&6
18615   
18616     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18617 echo "configure:18618: checking for LC_MESSAGES" >&5
18618 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18619   echo $ac_n "(cached) $ac_c" 1>&6
18620 else
18621   cat > conftest.$ac_ext <<EOF
18622 #line 18623 "configure"
18623 #include "confdefs.h"
18624 #include <locale.h>
18625 int main() {
18626 return LC_MESSAGES
18627 ; return 0; }
18628 EOF
18629 if { (eval echo configure:18630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18630   rm -rf conftest*
18631   ac_cv_val_LC_MESSAGES=yes
18632 else
18633   echo "configure: failed program was:" >&5
18634   cat conftest.$ac_ext >&5
18635   rm -rf conftest*
18636   ac_cv_val_LC_MESSAGES=no
18637 fi
18638 rm -f conftest*
18639 fi
18640
18641 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18642     if test $ac_cv_val_LC_MESSAGES = yes; then
18643       cat >> confdefs.h <<\EOF
18644 #define HAVE_LC_MESSAGES 1
18645 EOF
18646
18647     fi
18648   
18649 else
18650   echo "$ac_t""no" 1>&6
18651 fi
18652
18653
18654
18655   cat > conftest.$ac_ext <<EOF
18656 #line 18657 "configure"
18657 #include "confdefs.h"
18658
18659   #include <setjmp.h>
18660   
18661 int main() {
18662 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18663 ; return 0; }
18664 EOF
18665 if { (eval echo configure:18666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18666   rm -rf conftest*
18667   cat >> confdefs.h <<\EOF
18668 #define HAVE_SIGSETJMP 1
18669 EOF
18670
18671   
18672 else
18673   echo "configure: failed program was:" >&5
18674   cat conftest.$ac_ext >&5
18675 fi
18676 rm -f conftest*
18677
18678   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
18679 do
18680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18682 echo "configure:18683: checking for $ac_hdr" >&5
18683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18684   echo $ac_n "(cached) $ac_c" 1>&6
18685 else
18686   cat > conftest.$ac_ext <<EOF
18687 #line 18688 "configure"
18688 #include "confdefs.h"
18689 #include <$ac_hdr>
18690 EOF
18691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18692 { (eval echo configure:18693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18694 if test -z "$ac_err"; then
18695   rm -rf conftest*
18696   eval "ac_cv_header_$ac_safe=yes"
18697 else
18698   echo "$ac_err" >&5
18699   echo "configure: failed program was:" >&5
18700   cat conftest.$ac_ext >&5
18701   rm -rf conftest*
18702   eval "ac_cv_header_$ac_safe=no"
18703 fi
18704 rm -f conftest*
18705 fi
18706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18707   echo "$ac_t""yes" 1>&6
18708     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18709   cat >> confdefs.h <<EOF
18710 #define $ac_tr_hdr 1
18711 EOF
18712  
18713 else
18714   echo "$ac_t""no" 1>&6
18715 fi
18716 done
18717
18718 for ac_func in getpagesize
18719 do
18720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18721 echo "configure:18722: checking for $ac_func" >&5
18722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18723   echo $ac_n "(cached) $ac_c" 1>&6
18724 else
18725   cat > conftest.$ac_ext <<EOF
18726 #line 18727 "configure"
18727 #include "confdefs.h"
18728 /* System header to define __stub macros and hopefully few prototypes,
18729     which can conflict with char $ac_func(); below.  */
18730 #include <assert.h>
18731 /* Override any gcc2 internal prototype to avoid an error.  */
18732 /* We use char because int might match the return type of a gcc2
18733     builtin and then its argument prototype would still apply.  */
18734 char $ac_func();
18735
18736 int main() {
18737
18738 /* The GNU C library defines this for functions which it implements
18739     to always fail with ENOSYS.  Some functions are actually named
18740     something starting with __ and the normal name is an alias.  */
18741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18742 choke me
18743 #else
18744 $ac_func();
18745 #endif
18746
18747 ; return 0; }
18748 EOF
18749 if { (eval echo configure:18750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18750   rm -rf conftest*
18751   eval "ac_cv_func_$ac_func=yes"
18752 else
18753   echo "configure: failed program was:" >&5
18754   cat conftest.$ac_ext >&5
18755   rm -rf conftest*
18756   eval "ac_cv_func_$ac_func=no"
18757 fi
18758 rm -f conftest*
18759 fi
18760
18761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18762   echo "$ac_t""yes" 1>&6
18763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18764   cat >> confdefs.h <<EOF
18765 #define $ac_tr_func 1
18766 EOF
18767  
18768 else
18769   echo "$ac_t""no" 1>&6
18770 fi
18771 done
18772
18773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18774 echo "configure:18775: checking for working mmap" >&5
18775 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18776   echo $ac_n "(cached) $ac_c" 1>&6
18777 else
18778   if test "$cross_compiling" = yes; then
18779   ac_cv_func_mmap_fixed_mapped=no
18780 else
18781   cat > conftest.$ac_ext <<EOF
18782 #line 18783 "configure"
18783 #include "confdefs.h"
18784
18785 /* Thanks to Mike Haertel and Jim Avera for this test.
18786    Here is a matrix of mmap possibilities:
18787         mmap private not fixed
18788         mmap private fixed at somewhere currently unmapped
18789         mmap private fixed at somewhere already mapped
18790         mmap shared not fixed
18791         mmap shared fixed at somewhere currently unmapped
18792         mmap shared fixed at somewhere already mapped
18793    For private mappings, we should verify that changes cannot be read()
18794    back from the file, nor mmap's back from the file at a different
18795    address.  (There have been systems where private was not correctly
18796    implemented like the infamous i386 svr4.0, and systems where the
18797    VM page cache was not coherent with the filesystem buffer cache
18798    like early versions of FreeBSD and possibly contemporary NetBSD.)
18799    For shared mappings, we should conversely verify that changes get
18800    propogated back to all the places they're supposed to be.
18801
18802    Grep wants private fixed already mapped.
18803    The main things grep needs to know about mmap are:
18804    * does it exist and is it safe to write into the mmap'd area
18805    * how to use it (BSD variants)  */
18806 #include <sys/types.h>
18807 #include <fcntl.h>
18808 #include <sys/mman.h>
18809
18810 #if HAVE_SYS_TYPES_H
18811 # include <sys/types.h>
18812 #endif
18813
18814 #if HAVE_STDLIB_H
18815 # include <stdlib.h>
18816 #endif
18817
18818 #if HAVE_SYS_STAT_H
18819 # include <sys/stat.h>
18820 #endif
18821
18822 #if HAVE_UNISTD_H
18823 # include <unistd.h>
18824 #endif
18825
18826 /* This mess was copied from the GNU getpagesize.h.  */
18827 #ifndef HAVE_GETPAGESIZE
18828
18829 /* Assume that all systems that can run configure have sys/param.h.  */
18830 # ifndef HAVE_SYS_PARAM_H
18831 #  define HAVE_SYS_PARAM_H 1
18832 # endif
18833
18834 # ifdef _SC_PAGESIZE
18835 #  define getpagesize() sysconf(_SC_PAGESIZE)
18836 # else /* no _SC_PAGESIZE */
18837 #  ifdef HAVE_SYS_PARAM_H
18838 #   include <sys/param.h>
18839 #   ifdef EXEC_PAGESIZE
18840 #    define getpagesize() EXEC_PAGESIZE
18841 #   else /* no EXEC_PAGESIZE */
18842 #    ifdef NBPG
18843 #     define getpagesize() NBPG * CLSIZE
18844 #     ifndef CLSIZE
18845 #      define CLSIZE 1
18846 #     endif /* no CLSIZE */
18847 #    else /* no NBPG */
18848 #     ifdef NBPC
18849 #      define getpagesize() NBPC
18850 #     else /* no NBPC */
18851 #      ifdef PAGESIZE
18852 #       define getpagesize() PAGESIZE
18853 #      endif /* PAGESIZE */
18854 #     endif /* no NBPC */
18855 #    endif /* no NBPG */
18856 #   endif /* no EXEC_PAGESIZE */
18857 #  else /* no HAVE_SYS_PARAM_H */
18858 #   define getpagesize() 8192   /* punt totally */
18859 #  endif /* no HAVE_SYS_PARAM_H */
18860 # endif /* no _SC_PAGESIZE */
18861
18862 #endif /* no HAVE_GETPAGESIZE */
18863
18864 #ifdef __cplusplus
18865 extern "C" { void *malloc(unsigned); }
18866 #else
18867 char *malloc();
18868 #endif
18869
18870 int
18871 main()
18872 {
18873         char *data, *data2, *data3;
18874         int i, pagesize;
18875         int fd;
18876
18877         pagesize = getpagesize();
18878
18879         /*
18880          * First, make a file with some known garbage in it.
18881          */
18882         data = malloc(pagesize);
18883         if (!data)
18884                 exit(1);
18885         for (i = 0; i < pagesize; ++i)
18886                 *(data + i) = rand();
18887         umask(0);
18888         fd = creat("conftestmmap", 0600);
18889         if (fd < 0)
18890                 exit(1);
18891         if (write(fd, data, pagesize) != pagesize)
18892                 exit(1);
18893         close(fd);
18894
18895         /*
18896          * Next, try to mmap the file at a fixed address which
18897          * already has something else allocated at it.  If we can,
18898          * also make sure that we see the same garbage.
18899          */
18900         fd = open("conftestmmap", O_RDWR);
18901         if (fd < 0)
18902                 exit(1);
18903         data2 = malloc(2 * pagesize);
18904         if (!data2)
18905                 exit(1);
18906         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18907         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18908             MAP_PRIVATE | MAP_FIXED, fd, 0L))
18909                 exit(1);
18910         for (i = 0; i < pagesize; ++i)
18911                 if (*(data + i) != *(data2 + i))
18912                         exit(1);
18913
18914         /*
18915          * Finally, make sure that changes to the mapped area
18916          * do not percolate back to the file as seen by read().
18917          * (This is a bug on some variants of i386 svr4.0.)
18918          */
18919         for (i = 0; i < pagesize; ++i)
18920                 *(data2 + i) = *(data2 + i) + 1;
18921         data3 = malloc(pagesize);
18922         if (!data3)
18923                 exit(1);
18924         if (read(fd, data3, pagesize) != pagesize)
18925                 exit(1);
18926         for (i = 0; i < pagesize; ++i)
18927                 if (*(data + i) != *(data3 + i))
18928                         exit(1);
18929         close(fd);
18930         unlink("conftestmmap");
18931         exit(0);
18932 }
18933
18934 EOF
18935 if { (eval echo configure:18936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18936 then
18937   ac_cv_func_mmap_fixed_mapped=yes
18938 else
18939   echo "configure: failed program was:" >&5
18940   cat conftest.$ac_ext >&5
18941   rm -fr conftest*
18942   ac_cv_func_mmap_fixed_mapped=no
18943 fi
18944 rm -fr conftest*
18945 fi
18946
18947 fi
18948
18949 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
18950 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18951   cat >> confdefs.h <<\EOF
18952 #define HAVE_MMAP 1
18953 EOF
18954
18955 fi
18956
18957
18958   # Establish limits on memory usage during 'make check'
18959   
18960   
18961   setrlimit_have_headers=yes
18962   for ac_hdr in sys/resource.h unistd.h
18963 do
18964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18966 echo "configure:18967: checking for $ac_hdr" >&5
18967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18968   echo $ac_n "(cached) $ac_c" 1>&6
18969 else
18970   cat > conftest.$ac_ext <<EOF
18971 #line 18972 "configure"
18972 #include "confdefs.h"
18973 #include <$ac_hdr>
18974 EOF
18975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18976 { (eval echo configure:18977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18978 if test -z "$ac_err"; then
18979   rm -rf conftest*
18980   eval "ac_cv_header_$ac_safe=yes"
18981 else
18982   echo "$ac_err" >&5
18983   echo "configure: failed program was:" >&5
18984   cat conftest.$ac_ext >&5
18985   rm -rf conftest*
18986   eval "ac_cv_header_$ac_safe=no"
18987 fi
18988 rm -f conftest*
18989 fi
18990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18991   echo "$ac_t""yes" 1>&6
18992     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18993   cat >> confdefs.h <<EOF
18994 #define $ac_tr_hdr 1
18995 EOF
18996  
18997 else
18998   echo "$ac_t""no" 1>&6
18999 setrlimit_have_headers=no
19000 fi
19001 done
19002
19003   # If don't have the headers, then we can't run the tests now, and we
19004   # won't be seeing any of these during testsuite compilation.
19005   if test $setrlimit_have_headers = yes; then
19006     # Can't do these in a loop, else the resulting syntax is wrong.
19007     
19008   cat > conftest.$ac_ext <<EOF
19009 #line 19010 "configure"
19010 #include "confdefs.h"
19011 #include <sys/resource.h>
19012                   #include <unistd.h>
19013                  
19014 int main() {
19015  int f = RLIMIT_DATA ; 
19016 ; return 0; }
19017 EOF
19018 if { (eval echo configure:19019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19019   rm -rf conftest*
19020   glibcpp_mresult=1
19021 else
19022   echo "configure: failed program was:" >&5
19023   cat conftest.$ac_ext >&5
19024   rm -rf conftest*
19025   glibcpp_mresult=0
19026 fi
19027 rm -f conftest*
19028   cat >> confdefs.h <<EOF
19029 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19030 EOF
19031
19032
19033     
19034   cat > conftest.$ac_ext <<EOF
19035 #line 19036 "configure"
19036 #include "confdefs.h"
19037 #include <sys/resource.h>
19038                   #include <unistd.h>
19039                  
19040 int main() {
19041  int f = RLIMIT_RSS ; 
19042 ; return 0; }
19043 EOF
19044 if { (eval echo configure:19045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19045   rm -rf conftest*
19046   glibcpp_mresult=1
19047 else
19048   echo "configure: failed program was:" >&5
19049   cat conftest.$ac_ext >&5
19050   rm -rf conftest*
19051   glibcpp_mresult=0
19052 fi
19053 rm -f conftest*
19054   cat >> confdefs.h <<EOF
19055 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19056 EOF
19057
19058
19059     
19060   cat > conftest.$ac_ext <<EOF
19061 #line 19062 "configure"
19062 #include "confdefs.h"
19063 #include <sys/resource.h>
19064                   #include <unistd.h>
19065                  
19066 int main() {
19067  int f = RLIMIT_VMEM ; 
19068 ; return 0; }
19069 EOF
19070 if { (eval echo configure:19071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19071   rm -rf conftest*
19072   glibcpp_mresult=1
19073 else
19074   echo "configure: failed program was:" >&5
19075   cat conftest.$ac_ext >&5
19076   rm -rf conftest*
19077   glibcpp_mresult=0
19078 fi
19079 rm -f conftest*
19080   cat >> confdefs.h <<EOF
19081 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19082 EOF
19083
19084
19085     
19086   cat > conftest.$ac_ext <<EOF
19087 #line 19088 "configure"
19088 #include "confdefs.h"
19089 #include <sys/resource.h>
19090                   #include <unistd.h>
19091                  
19092 int main() {
19093  int f = RLIMIT_AS ; 
19094 ; return 0; }
19095 EOF
19096 if { (eval echo configure:19097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19097   rm -rf conftest*
19098   glibcpp_mresult=1
19099 else
19100   echo "configure: failed program was:" >&5
19101   cat conftest.$ac_ext >&5
19102   rm -rf conftest*
19103   glibcpp_mresult=0
19104 fi
19105 rm -f conftest*
19106   cat >> confdefs.h <<EOF
19107 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
19108 EOF
19109
19110
19111
19112     # Check for rlimit, setrlimit.
19113     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
19114   echo $ac_n "(cached) $ac_c" 1>&6
19115 else
19116   
19117       cat > conftest.$ac_ext <<EOF
19118 #line 19119 "configure"
19119 #include "confdefs.h"
19120 #include <sys/resource.h>
19121                       #include <unistd.h>
19122                      
19123 int main() {
19124  struct rlimit r; setrlimit(0, &r);
19125 ; return 0; }
19126 EOF
19127 if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19128   rm -rf conftest*
19129   ac_setrlimit=yes
19130 else
19131   echo "configure: failed program was:" >&5
19132   cat conftest.$ac_ext >&5
19133   rm -rf conftest*
19134   ac_setrlimit=no
19135 fi
19136 rm -f conftest*
19137     
19138 fi
19139
19140   fi
19141
19142   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
19143 echo "configure:19144: checking for testsuite memory limit support" >&5
19144   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
19145     ac_mem_limits=yes
19146     cat >> confdefs.h <<\EOF
19147 #define _GLIBCPP_MEM_LIMITS 1
19148 EOF
19149
19150   else
19151     ac_mem_limits=no
19152   fi
19153   echo "$ac_t""$ac_mem_limits" 1>&6
19154
19155
19156   # Look for setenv, so that extended locale tests can be performed.
19157   for ac_func in setenv
19158 do
19159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19160 echo "configure:19161: checking for $ac_func" >&5
19161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19162   echo $ac_n "(cached) $ac_c" 1>&6
19163 else
19164   cat > conftest.$ac_ext <<EOF
19165 #line 19166 "configure"
19166 #include "confdefs.h"
19167 /* System header to define __stub macros and hopefully few prototypes,
19168     which can conflict with char $ac_func(); below.  */
19169 #include <assert.h>
19170 /* Override any gcc2 internal prototype to avoid an error.  */
19171 /* We use char because int might match the return type of a gcc2
19172     builtin and then its argument prototype would still apply.  */
19173 char $ac_func();
19174
19175 int main() {
19176
19177 /* The GNU C library defines this for functions which it implements
19178     to always fail with ENOSYS.  Some functions are actually named
19179     something starting with __ and the normal name is an alias.  */
19180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19181 choke me
19182 #else
19183 $ac_func();
19184 #endif
19185
19186 ; return 0; }
19187 EOF
19188 if { (eval echo configure:19189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19189   rm -rf conftest*
19190   eval "ac_cv_func_$ac_func=yes"
19191 else
19192   echo "configure: failed program was:" >&5
19193   cat conftest.$ac_ext >&5
19194   rm -rf conftest*
19195   eval "ac_cv_func_$ac_func=no"
19196 fi
19197 rm -f conftest*
19198 fi
19199
19200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19201   echo "$ac_t""yes" 1>&6
19202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19203   cat >> confdefs.h <<EOF
19204 #define $ac_tr_func 1
19205 EOF
19206  
19207 else
19208   echo "$ac_t""no" 1>&6
19209 fi
19210 done
19211
19212
19213 fi
19214
19215
19216 # Propagate the target-specific source directories through the build chain.
19217 OS_INC_SRCDIR=$os_include_dir/bits
19218 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
19219 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
19220
19221
19222
19223
19224 # Set up cross-compile flags
19225
19226
19227
19228 if test "$CANADIAN" = yes; then
19229   CANADIAN_TRUE=
19230   CANADIAN_FALSE='#'
19231 else
19232   CANADIAN_TRUE='#'
19233   CANADIAN_FALSE=
19234 fi
19235  
19236 cat > confcache <<\EOF
19237 # This file is a shell script that caches the results of configure
19238 # tests run on this system so they can be shared between configure
19239 # scripts and configure runs.  It is not useful on other systems.
19240 # If it contains results you don't want to keep, you may remove or edit it.
19241 #
19242 # By default, configure uses ./config.cache as the cache file,
19243 # creating it if it does not exist already.  You can give configure
19244 # the --cache-file=FILE option to use a different cache file; that is
19245 # what configure does when it calls configure scripts in
19246 # subdirectories, so they share the cache.
19247 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19248 # config.status only pays attention to the cache file if you give it the
19249 # --recheck option to rerun configure.
19250 #
19251 EOF
19252 # The following way of writing the cache mishandles newlines in values,
19253 # but we know of no workaround that is simple, portable, and efficient.
19254 # So, don't put newlines in cache variables' values.
19255 # Ultrix sh set writes to stderr and can't be redirected directly,
19256 # and sets the high bit in the cache file unless we assign to the vars.
19257 (set) 2>&1 |
19258   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19259   *ac_space=\ *)
19260     # `set' does not quote correctly, so add quotes (double-quote substitution
19261     # turns \\\\ into \\, and sed turns \\ into \).
19262     sed -n \
19263       -e "s/'/'\\\\''/g" \
19264       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19265     ;;
19266   *)
19267     # `set' quotes correctly as required by POSIX, so do not add quotes.
19268     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19269     ;;
19270   esac >> confcache
19271 if cmp -s $cache_file confcache; then
19272   :
19273 else
19274   if test -w $cache_file; then
19275     echo "updating cache $cache_file"
19276     cat confcache > $cache_file
19277   else
19278     echo "not updating unwritable cache $cache_file"
19279   fi
19280 fi
19281 rm -f confcache
19282
19283
19284 if test "${multilib}" = "yes"; then
19285   multilib_arg="--enable-multilib"
19286 else
19287   multilib_arg=
19288 fi
19289
19290 # Needed so that g++ can find the correct include subdir automatically.
19291 INTERFACE=v3
19292
19293 # Export all the install information
19294
19295 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19296 # exported correctly in GLIBCPP_CONFIGURE.
19297 glibcpp_toolexecdir=no
19298 glibcpp_toolexeclibdir=no
19299 glibcpp_prefixdir=${prefix}
19300
19301 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19302 echo "configure:19303: checking for interface version number" >&5
19303 libstdcxx_interface=$INTERFACE
19304 echo "$ac_t""$libstdcxx_interface" 1>&6
19305
19306 # Process the option --with-gxx-include-dir=<path to include-files directory>
19307 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19308 echo "configure:19309: checking for --with-gxx-include-dir" >&5
19309 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19310 if test "${with_gxx_include_dir+set}" = set; then
19311   withval="$with_gxx_include_dir"
19312   case "${withval}" in
19313   yes)
19314     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19315     gxx_include_dir=no
19316     ;;
19317   no)
19318     gxx_include_dir=no
19319     ;;
19320   *)
19321     gxx_include_dir=${withval}
19322     ;;
19323 esac
19324 else
19325   gxx_include_dir=no
19326 fi
19327
19328 echo "$ac_t""$gxx_include_dir" 1>&6
19329
19330 # Process the option "--enable-version-specific-runtime-libs"
19331 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19332 echo "configure:19333: checking for --enable-version-specific-runtime-libs" >&5
19333 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19334 if test "${enable_version_specific_runtime_libs+set}" = set; then
19335   enableval="$enable_version_specific_runtime_libs"
19336   case "$enableval" in
19337  yes) version_specific_libs=yes ;;
19338  no)  version_specific_libs=no ;;
19339  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19340  esac
19341 else
19342   version_specific_libs=no
19343 fi
19344 # Option set, now we can test it.
19345 echo "$ac_t""$version_specific_libs" 1>&6
19346
19347 if test $version_specific_libs = yes; then
19348   # Need the gcc compiler version to know where to install libraries
19349   # and header files if --enable-version-specific-runtime-libs option
19350   # is selected.
19351     gcc_version_trigger=${srcdir}/../gcc/version.c
19352   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19353   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19354   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19355   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19356   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19357   fi
19358
19359 # Default case for install directory for include files.
19360 if test $version_specific_libs = no &&
19361    test $gxx_include_dir = no; then
19362   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19363 fi
19364
19365 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19366 # Install a library built with a cross compiler in tooldir, not libdir.
19367 if test x"$glibcpp_toolexecdir" = x"no"; then 
19368   if test -n "$with_cross_host" &&
19369      test x"$with_cross_host" != x"no"; then
19370     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19371     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19372   else
19373     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19374     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19375   fi
19376 fi
19377
19378 echo $ac_n "checking for install location""... $ac_c" 1>&6
19379 echo "configure:19380: checking for install location" >&5
19380 echo "$ac_t""$gxx_include_dir" 1>&6
19381
19382
19383
19384
19385
19386
19387
19388 # Export all the include and flag information to makefiles.
19389
19390   # Root level of the build directory include sources.
19391   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19392
19393   # Passed down for canadian crosses.
19394   if test x"$CANADIAN" = xyes; then
19395     TOPLEVEL_INCLUDES='-I$(includedir)'
19396   fi
19397
19398   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19399
19400   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19401
19402   if test x"$need_libio" = xyes; then
19403     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19404     
19405   fi
19406
19407   # Now, export this to all the little Makefiles....
19408   
19409   
19410   
19411   
19412
19413
19414   # Optimization flags that are probably a good idea for thrill-seekers. Just
19415   # uncomment the lines below and make, everything else is ready to go... 
19416   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
19417   OPTIMIZE_CXXFLAGS=
19418   
19419
19420   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19421   
19422
19423
19424 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19425    grep "enable shared" > /dev/null; then
19426   LIBSUPCXX_PICFLAGS=-prefer-pic
19427 else
19428   LIBSUPCXX_PICFLAGS=
19429 fi
19430
19431
19432 # Generate the various Makefiles, include files, and scripts.
19433 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19434 # and libsupc++/Makefile.am so that multilib installs will end up
19435 # installed in the correct place. To work around this not being passed
19436 # down from config-ml.in -> top_srcdir/Makefile.am ->
19437 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19438 trap '' 1 2 15
19439 cat > confcache <<\EOF
19440 # This file is a shell script that caches the results of configure
19441 # tests run on this system so they can be shared between configure
19442 # scripts and configure runs.  It is not useful on other systems.
19443 # If it contains results you don't want to keep, you may remove or edit it.
19444 #
19445 # By default, configure uses ./config.cache as the cache file,
19446 # creating it if it does not exist already.  You can give configure
19447 # the --cache-file=FILE option to use a different cache file; that is
19448 # what configure does when it calls configure scripts in
19449 # subdirectories, so they share the cache.
19450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19451 # config.status only pays attention to the cache file if you give it the
19452 # --recheck option to rerun configure.
19453 #
19454 EOF
19455 # The following way of writing the cache mishandles newlines in values,
19456 # but we know of no workaround that is simple, portable, and efficient.
19457 # So, don't put newlines in cache variables' values.
19458 # Ultrix sh set writes to stderr and can't be redirected directly,
19459 # and sets the high bit in the cache file unless we assign to the vars.
19460 (set) 2>&1 |
19461   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19462   *ac_space=\ *)
19463     # `set' does not quote correctly, so add quotes (double-quote substitution
19464     # turns \\\\ into \\, and sed turns \\ into \).
19465     sed -n \
19466       -e "s/'/'\\\\''/g" \
19467       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19468     ;;
19469   *)
19470     # `set' quotes correctly as required by POSIX, so do not add quotes.
19471     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19472     ;;
19473   esac >> confcache
19474 if cmp -s $cache_file confcache; then
19475   :
19476 else
19477   if test -w $cache_file; then
19478     echo "updating cache $cache_file"
19479     cat confcache > $cache_file
19480   else
19481     echo "not updating unwritable cache $cache_file"
19482   fi
19483 fi
19484 rm -f confcache
19485
19486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19487
19488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19489 # Let make expand exec_prefix.
19490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19491
19492 # Any assignment to VPATH causes Sun make to only execute
19493 # the first set of double-colon rules, so remove it if not needed.
19494 # If there is a colon in the path, we need to keep it.
19495 if test "x$srcdir" = x.; then
19496   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
19497 fi
19498
19499 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19500
19501 DEFS=-DHAVE_CONFIG_H
19502
19503 # Without the "./", some shells look in PATH for config.status.
19504 : ${CONFIG_STATUS=./config.status}
19505
19506 echo creating $CONFIG_STATUS
19507 rm -f $CONFIG_STATUS
19508 cat > $CONFIG_STATUS <<EOF
19509 #! /bin/sh
19510 # Generated automatically by configure.
19511 # Run this file to recreate the current configuration.
19512 # This directory was configured as follows,
19513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19514 #
19515 # $0 $ac_configure_args
19516 #
19517 # Compiler output produced by configure, useful for debugging
19518 # configure, is in ./config.log if it exists.
19519
19520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19521 for ac_option
19522 do
19523   case "\$ac_option" in
19524   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19525     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19526     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19527   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19528     echo "$CONFIG_STATUS generated by autoconf version 2.13"
19529     exit 0 ;;
19530   -help | --help | --hel | --he | --h)
19531     echo "\$ac_cs_usage"; exit 0 ;;
19532   *) echo "\$ac_cs_usage"; exit 1 ;;
19533   esac
19534 done
19535
19536 ac_given_srcdir=$srcdir
19537 ac_given_INSTALL="$INSTALL"
19538
19539 trap 'rm -fr `echo "Makefile \
19540     include/Makefile src/Makefile \
19541     libmath/Makefile libio/Makefile libsupc++/Makefile \
19542     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19543 EOF
19544 cat >> $CONFIG_STATUS <<EOF
19545
19546 # Protect against being on the right side of a sed subst in config.status.
19547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19548  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19549 $ac_vpsub
19550 $extrasub
19551 s%@SHELL@%$SHELL%g
19552 s%@CFLAGS@%$CFLAGS%g
19553 s%@CPPFLAGS@%$CPPFLAGS%g
19554 s%@CXXFLAGS@%$CXXFLAGS%g
19555 s%@FFLAGS@%$FFLAGS%g
19556 s%@DEFS@%$DEFS%g
19557 s%@LDFLAGS@%$LDFLAGS%g
19558 s%@LIBS@%$LIBS%g
19559 s%@exec_prefix@%$exec_prefix%g
19560 s%@prefix@%$prefix%g
19561 s%@program_transform_name@%$program_transform_name%g
19562 s%@bindir@%$bindir%g
19563 s%@sbindir@%$sbindir%g
19564 s%@libexecdir@%$libexecdir%g
19565 s%@datadir@%$datadir%g
19566 s%@sysconfdir@%$sysconfdir%g
19567 s%@sharedstatedir@%$sharedstatedir%g
19568 s%@localstatedir@%$localstatedir%g
19569 s%@libdir@%$libdir%g
19570 s%@includedir@%$includedir%g
19571 s%@oldincludedir@%$oldincludedir%g
19572 s%@infodir@%$infodir%g
19573 s%@mandir@%$mandir%g
19574 s%@PACKAGE@%$PACKAGE%g
19575 s%@release_VERSION@%$release_VERSION%g
19576 s%@libtool_VERSION@%$libtool_VERSION%g
19577 s%@host@%$host%g
19578 s%@host_alias@%$host_alias%g
19579 s%@host_cpu@%$host_cpu%g
19580 s%@host_vendor@%$host_vendor%g
19581 s%@host_os@%$host_os%g
19582 s%@target@%$target%g
19583 s%@target_alias@%$target_alias%g
19584 s%@target_cpu@%$target_cpu%g
19585 s%@target_vendor@%$target_vendor%g
19586 s%@target_os@%$target_os%g
19587 s%@build@%$build%g
19588 s%@build_alias@%$build_alias%g
19589 s%@build_cpu@%$build_cpu%g
19590 s%@build_vendor@%$build_vendor%g
19591 s%@build_os@%$build_os%g
19592 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19593 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19594 s%@INSTALL_DATA@%$INSTALL_DATA%g
19595 s%@VERSION@%$VERSION%g
19596 s%@ACLOCAL@%$ACLOCAL%g
19597 s%@AUTOCONF@%$AUTOCONF%g
19598 s%@AUTOMAKE@%$AUTOMAKE%g
19599 s%@AUTOHEADER@%$AUTOHEADER%g
19600 s%@MAKEINFO@%$MAKEINFO%g
19601 s%@SET_MAKE@%$SET_MAKE%g
19602 s%@toplevel_srcdir@%$toplevel_srcdir%g
19603 s%@glibcpp_builddir@%$glibcpp_builddir%g
19604 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19605 s%@LN_S@%$LN_S%g
19606 s%@glibcpp_basedir@%$glibcpp_basedir%g
19607 s%@CC@%$CC%g
19608 s%@glibcpp_CXX@%$glibcpp_CXX%g
19609 s%@AS@%$AS%g
19610 s%@AR@%$AR%g
19611 s%@RANLIB@%$RANLIB%g
19612 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19613 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19614 s%@MAINT@%$MAINT%g
19615 s%@EXEEXT@%$EXEEXT%g
19616 s%@OBJEXT@%$OBJEXT%g
19617 s%@STRIP@%$STRIP%g
19618 s%@LIBTOOL@%$LIBTOOL%g
19619 s%@CXXCPP@%$CXXCPP%g
19620 s%@enable_shared@%$enable_shared%g
19621 s%@enable_static@%$enable_static%g
19622 s%@ifGNUmake@%$ifGNUmake%g
19623 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19624 s%@CPP@%$CPP%g
19625 s%@CSTDIO_H@%$CSTDIO_H%g
19626 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19627 s%@CCODECVT_C@%$CCODECVT_C%g
19628 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19629 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19630 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19631 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19632 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19633 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19634 s%@libio_la@%$libio_la%g
19635 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19636 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19637 s%@glibcpp_localedir@%$glibcpp_localedir%g
19638 s%@USE_NLS@%$USE_NLS%g
19639 s%@CLOCALE_H@%$CLOCALE_H%g
19640 s%@CCODECVT_H@%$CCODECVT_H%g
19641 s%@CMESSAGES_H@%$CMESSAGES_H%g
19642 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19643 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19644 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19645 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19646 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19647 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19648 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
19649 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
19650 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19651 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19652 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19653 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19654 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19655 s%@WERROR@%$WERROR%g
19656 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19657 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19658 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19659 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19660 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19661 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19662 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19663 s%@gxx_include_dir@%$gxx_include_dir%g
19664 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19665 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19666 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19667 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19668 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19669 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19670 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19671 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19672 s%@WARN_FLAGS@%$WARN_FLAGS%g
19673 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19674
19675 CEOF
19676 EOF
19677
19678 cat >> $CONFIG_STATUS <<\EOF
19679
19680 # Split the substitutions into bite-sized pieces for seds with
19681 # small command number limits, like on Digital OSF/1 and HP-UX.
19682 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19683 ac_file=1 # Number of current file.
19684 ac_beg=1 # First line for current file.
19685 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19686 ac_more_lines=:
19687 ac_sed_cmds=""
19688 while $ac_more_lines; do
19689   if test $ac_beg -gt 1; then
19690     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19691   else
19692     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19693   fi
19694   if test ! -s conftest.s$ac_file; then
19695     ac_more_lines=false
19696     rm -f conftest.s$ac_file
19697   else
19698     if test -z "$ac_sed_cmds"; then
19699       ac_sed_cmds="sed -f conftest.s$ac_file"
19700     else
19701       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19702     fi
19703     ac_file=`expr $ac_file + 1`
19704     ac_beg=$ac_end
19705     ac_end=`expr $ac_end + $ac_max_sed_cmds`
19706   fi
19707 done
19708 if test -z "$ac_sed_cmds"; then
19709   ac_sed_cmds=cat
19710 fi
19711 EOF
19712
19713 cat >> $CONFIG_STATUS <<EOF
19714
19715 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19716     include/Makefile src/Makefile \
19717     libmath/Makefile libio/Makefile libsupc++/Makefile \
19718     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19719 EOF
19720 cat >> $CONFIG_STATUS <<\EOF
19721 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19722   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19723   case "$ac_file" in
19724   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19725        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19726   *) ac_file_in="${ac_file}.in" ;;
19727   esac
19728
19729   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19730
19731   # Remove last slash and all that follows it.  Not all systems have dirname.
19732   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19733   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19734     # The file is in a subdirectory.
19735     test ! -d "$ac_dir" && mkdir "$ac_dir"
19736     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19737     # A "../" for each directory in $ac_dir_suffix.
19738     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19739   else
19740     ac_dir_suffix= ac_dots=
19741   fi
19742
19743   case "$ac_given_srcdir" in
19744   .)  srcdir=.
19745       if test -z "$ac_dots"; then top_srcdir=.
19746       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19747   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19748   *) # Relative path.
19749     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19750     top_srcdir="$ac_dots$ac_given_srcdir" ;;
19751   esac
19752
19753   case "$ac_given_INSTALL" in
19754   [/$]*) INSTALL="$ac_given_INSTALL" ;;
19755   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19756   esac
19757
19758   echo creating "$ac_file"
19759   rm -f "$ac_file"
19760   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19761   case "$ac_file" in
19762   *Makefile*) ac_comsub="1i\\
19763 # $configure_input" ;;
19764   *) ac_comsub= ;;
19765   esac
19766
19767   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19768   sed -e "$ac_comsub
19769 s%@configure_input@%$configure_input%g
19770 s%@srcdir@%$srcdir%g
19771 s%@top_srcdir@%$top_srcdir%g
19772 s%@INSTALL@%$INSTALL%g
19773 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19774 fi; done
19775 rm -f conftest.s*
19776
19777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19779 #
19780 # ac_d sets the value in "#define NAME VALUE" lines.
19781 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19782 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
19783 ac_dC='\3'
19784 ac_dD='%g'
19785 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19786 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19787 ac_uB='\([      ]\)%\1#\2define\3'
19788 ac_uC=' '
19789 ac_uD='\4%g'
19790 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19791 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19792 ac_eB='$%\1#\2define\3'
19793 ac_eC=' '
19794 ac_eD='%g'
19795
19796 if test "${CONFIG_HEADERS+set}" != set; then
19797 EOF
19798 cat >> $CONFIG_STATUS <<EOF
19799   CONFIG_HEADERS="config.h"
19800 EOF
19801 cat >> $CONFIG_STATUS <<\EOF
19802 fi
19803 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19804   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19805   case "$ac_file" in
19806   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19807        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19808   *) ac_file_in="${ac_file}.in" ;;
19809   esac
19810
19811   echo creating $ac_file
19812
19813   rm -f conftest.frag conftest.in conftest.out
19814   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19815   cat $ac_file_inputs > conftest.in
19816
19817 EOF
19818
19819 # Transform confdefs.h into a sed script conftest.vals that substitutes
19820 # the proper values into config.h.in to produce config.h.  And first:
19821 # Protect against being on the right side of a sed subst in config.status.
19822 # Protect against being in an unquoted here document in config.status.
19823 rm -f conftest.vals
19824 cat > conftest.hdr <<\EOF
19825 s/[\\&%]/\\&/g
19826 s%[\\$`]%\\&%g
19827 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19828 s%ac_d%ac_u%gp
19829 s%ac_u%ac_e%gp
19830 EOF
19831 sed -n -f conftest.hdr confdefs.h > conftest.vals
19832 rm -f conftest.hdr
19833
19834 # This sed command replaces #undef with comments.  This is necessary, for
19835 # example, in the case of _POSIX_SOURCE, which is predefined and required
19836 # on some systems where configure will not decide to define it.
19837 cat >> conftest.vals <<\EOF
19838 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19839 EOF
19840
19841 # Break up conftest.vals because some shells have a limit on
19842 # the size of here documents, and old seds have small limits too.
19843
19844 rm -f conftest.tail
19845 while :
19846 do
19847   ac_lines=`grep -c . conftest.vals`
19848   # grep -c gives empty output for an empty file on some AIX systems.
19849   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19850   # Write a limited-size here document to conftest.frag.
19851   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19852   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19853   echo 'CEOF
19854   sed -f conftest.frag conftest.in > conftest.out
19855   rm -f conftest.in
19856   mv conftest.out conftest.in
19857 ' >> $CONFIG_STATUS
19858   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19859   rm -f conftest.vals
19860   mv conftest.tail conftest.vals
19861 done
19862 rm -f conftest.vals
19863
19864 cat >> $CONFIG_STATUS <<\EOF
19865   rm -f conftest.frag conftest.h
19866   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
19867   cat conftest.in >> conftest.h
19868   rm -f conftest.in
19869   if cmp -s $ac_file conftest.h 2>/dev/null; then
19870     echo "$ac_file is unchanged"
19871     rm -f conftest.h
19872   else
19873     # Remove last slash and all that follows it.  Not all systems have dirname.
19874       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19875       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19876       # The file is in a subdirectory.
19877       test ! -d "$ac_dir" && mkdir "$ac_dir"
19878     fi
19879     rm -f $ac_file
19880     mv conftest.h $ac_file
19881   fi
19882 fi; done
19883
19884 EOF
19885
19886 cat >> $CONFIG_STATUS <<EOF
19887 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
19888 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc src/linker.map"
19889 EOF
19890
19891 cat >> $CONFIG_STATUS <<\EOF
19892 srcdir=$ac_given_srcdir
19893 while test -n "$ac_sources"; do
19894   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
19895   set $ac_sources; ac_source=$1; shift; ac_sources=$*
19896
19897   echo "linking $srcdir/$ac_source to $ac_dest"
19898
19899   if test ! -r $srcdir/$ac_source; then
19900     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
19901   fi
19902   rm -f $ac_dest
19903
19904   # Make relative symlinks.
19905   # Remove last slash and all that follows it.  Not all systems have dirname.
19906   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
19907   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
19908     # The dest file is in a subdirectory.
19909     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
19910     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
19911     # A "../" for each directory in $ac_dest_dir_suffix.
19912     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
19913   else
19914     ac_dest_dir_suffix= ac_dots=
19915   fi
19916
19917   case "$srcdir" in
19918   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
19919   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
19920   esac
19921
19922   # Make a symlink if possible; otherwise try a hard link.
19923   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19924     ln $srcdir/$ac_source $ac_dest; then :
19925   else
19926     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
19927   fi
19928 done
19929 EOF
19930 cat >> $CONFIG_STATUS <<EOF
19931
19932 srcdir=${srcdir}
19933 host=${host}
19934 target=${target}
19935 with_multisubdir=${with_multisubdir}
19936 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19937 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19938 glibcpp_basedir=${glibcpp_basedir}
19939 CC="${CC}"
19940 CXX="${CXX}"
19941
19942 EOF
19943 cat >> $CONFIG_STATUS <<\EOF
19944 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
19945 if test -n "$CONFIG_FILES"; then
19946   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
19947   grep '^MULTISUBDIR =' Makefile >> src/Makefile
19948   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
19949 fi
19950 chmod +x mkcheck
19951 chmod +x testsuite_flags
19952
19953 exit 0
19954 EOF
19955 chmod +x $CONFIG_STATUS
19956 rm -fr confdefs* $ac_clean_files
19957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19958
19959
19960
19961 # Sanity checking & User-visible messages.
19962 # Checks down here, otherwise they get scrolled off before
19963 # the user will notice.
19964
19965 # Trying to get more people to read documentation.  Possibly remove
19966 # check and warn all the time. There is no "informational" AC_MSG_
19967 # macro, so these are going to be printed even when --quiet/--silent
19968 # is given.
19969 if test ! -f stamp-sanity-warned; then
19970   touch stamp-sanity-warned
19971   echo ""
19972   echo "Please make certain that you read the installation information here:"
19973   echo "  faster => ${srcdir}/docs/install.html"
19974   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
19975   echo ""
19976   echo "and the configuration information here:"
19977   echo "  faster => ${srcdir}/docs/configopts.html"
19978   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
19979   echo ""
19980   echo "before proceeding with ${_cv_gnu_make_command}."
19981   echo ""
19982 fi