re PR libstdc++/4143 (--disable == --enable for version-specific-runtime-libs)
[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   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --site-file=FILE        use FILE as the site file
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -site-file | --site-file | --site-fil | --site-fi | --site-f)
367     ac_prev=sitefile ;;
368   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369     sitefile="$ac_optarg" ;;
370
371   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372     ac_prev=srcdir ;;
373   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374     srcdir="$ac_optarg" ;;
375
376   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377   | --syscon | --sysco | --sysc | --sys | --sy)
378     ac_prev=sysconfdir ;;
379   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381     sysconfdir="$ac_optarg" ;;
382
383   -target | --target | --targe | --targ | --tar | --ta | --t)
384     ac_prev=target ;;
385   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386     target="$ac_optarg" ;;
387
388   -v | -verbose | --verbose | --verbos | --verbo | --verb)
389     verbose=yes ;;
390
391   -version | --version | --versio | --versi | --vers)
392     echo "configure generated by autoconf version 2.13"
393     exit 0 ;;
394
395   -with-* | --with-*)
396     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397     # Reject names that are not valid shell variable names.
398     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400     fi
401     ac_package=`echo $ac_package| sed 's/-/_/g'`
402     case "$ac_option" in
403       *=*) ;;
404       *) ac_optarg=yes ;;
405     esac
406     eval "with_${ac_package}='$ac_optarg'" ;;
407
408   -without-* | --without-*)
409     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410     # Reject names that are not valid shell variable names.
411     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413     fi
414     ac_package=`echo $ac_package| sed 's/-/_/g'`
415     eval "with_${ac_package}=no" ;;
416
417   --x)
418     # Obsolete; use --with-x.
419     with_x=yes ;;
420
421   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422   | --x-incl | --x-inc | --x-in | --x-i)
423     ac_prev=x_includes ;;
424   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426     x_includes="$ac_optarg" ;;
427
428   -x-libraries | --x-libraries | --x-librarie | --x-librari \
429   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430     ac_prev=x_libraries ;;
431   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433     x_libraries="$ac_optarg" ;;
434
435   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436     ;;
437
438   *)
439     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440       echo "configure: warning: $ac_option: invalid host type" 1>&2
441     fi
442     if test "x$nonopt" != xNONE; then
443       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444     fi
445     nonopt="$ac_option"
446     ;;
447
448   esac
449 done
450
451 if test -n "$ac_prev"; then
452   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 fi
454
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466   exec 6>/dev/null
467 else
468   exec 6>&1
469 fi
470 exec 5>./config.log
471
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
476
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
481 do
482   case "$ac_arg" in
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c) ;;
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490   esac
491 done
492
493 # NLS nuisances.
494 # Only set these to C if already set.  These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
502
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
507
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
511
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514   ac_srcdir_defaulted=yes
515   # Try the directory containing this script, then its parent.
516   ac_prog=$0
517   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519   srcdir=$ac_confdir
520   if test ! -r $srcdir/$ac_unique_file; then
521     srcdir=..
522   fi
523 else
524   ac_srcdir_defaulted=no
525 fi
526 if test ! -r $srcdir/$ac_unique_file; then
527   if test "$ac_srcdir_defaulted" = yes; then
528     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529   else
530     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531   fi
532 fi
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537   if test -z "$CONFIG_SITE"; then
538     if test "x$prefix" != xNONE; then
539       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540     else
541       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542     fi
543   fi
544 else
545   CONFIG_SITE="$sitefile"
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 PACKAGE=libstdc++
586
587 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
588 release_VERSION=3.1.0
589
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=4:0:0
592
593
594 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
595 # AC 2.50 sets target_alias iff the user specified --target, but we use it
596 # everywhere, so we set it here just to be sure.
597 ac_aux_dir=
598 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
599   if test -f $ac_dir/install-sh; then
600     ac_aux_dir=$ac_dir
601     ac_install_sh="$ac_aux_dir/install-sh -c"
602     break
603   elif test -f $ac_dir/install.sh; then
604     ac_aux_dir=$ac_dir
605     ac_install_sh="$ac_aux_dir/install.sh -c"
606     break
607   fi
608 done
609 if test -z "$ac_aux_dir"; then
610   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
611 fi
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
615
616
617 # Do some error checking and defaulting for the host and target type.
618 # The inputs are:
619 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
620 #
621 # The rules are:
622 # 1. You are not allowed to specify --host, --target, and nonopt at the
623 #    same time.
624 # 2. Host defaults to nonopt.
625 # 3. If nonopt is not specified, then host defaults to the current host,
626 #    as determined by config.guess.
627 # 4. Target and build default to nonopt.
628 # 5. If nonopt is not specified, then target and build default to host.
629
630 # The aliases save the names the user supplied, while $host etc.
631 # will get canonicalized.
632 case $host---$target---$nonopt in
633 NONE---*---* | *---NONE---* | *---*---NONE) ;;
634 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
635 esac
636
637
638 # Make sure we can run config.sub.
639 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
640 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
641 fi
642
643 echo $ac_n "checking host system type""... $ac_c" 1>&6
644 echo "configure:645: checking host system type" >&5
645
646 host_alias=$host
647 case "$host_alias" in
648 NONE)
649   case $nonopt in
650   NONE)
651     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
652     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
653     fi ;;
654   *) host_alias=$nonopt ;;
655   esac ;;
656 esac
657
658 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
659 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
660 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
661 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
662 echo "$ac_t""$host" 1>&6
663
664 echo $ac_n "checking target system type""... $ac_c" 1>&6
665 echo "configure:666: checking target system type" >&5
666
667 target_alias=$target
668 case "$target_alias" in
669 NONE)
670   case $nonopt in
671   NONE) target_alias=$host_alias ;;
672   *) target_alias=$nonopt ;;
673   esac ;;
674 esac
675
676 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
677 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
678 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
679 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
680 echo "$ac_t""$target" 1>&6
681
682 echo $ac_n "checking build system type""... $ac_c" 1>&6
683 echo "configure:684: checking build system type" >&5
684
685 build_alias=$build
686 case "$build_alias" in
687 NONE)
688   case $nonopt in
689   NONE) build_alias=$host_alias ;;
690   *) build_alias=$nonopt ;;
691   esac ;;
692 esac
693
694 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
695 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
696 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
697 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
698 echo "$ac_t""$build" 1>&6
699
700 test "$host_alias" != "$target_alias" &&
701   test "$program_prefix$program_suffix$program_transform_name" = \
702     NONENONEs,x,x, &&
703   program_prefix=${target_alias}-
704
705 target_alias=${target_alias-$target}
706
707
708 # Find a good install program.  We prefer a C program (faster),
709 # so one script is as good as another.  But avoid the broken or
710 # incompatible versions:
711 # SysV /etc/install, /usr/sbin/install
712 # SunOS /usr/etc/install
713 # IRIX /sbin/install
714 # AIX /bin/install
715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
718 # ./install, which can be erroneously created by make from ./install.sh.
719 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
720 echo "configure:721: checking for a BSD compatible install" >&5
721 if test -z "$INSTALL"; then
722 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
723   echo $ac_n "(cached) $ac_c" 1>&6
724 else
725     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
726   for ac_dir in $PATH; do
727     # Account for people who put trailing slashes in PATH elements.
728     case "$ac_dir/" in
729     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
730     *)
731       # OSF1 and SCO ODT 3.0 have their own names for install.
732       # Don't use installbsd from OSF since it installs stuff as root
733       # by default.
734       for ac_prog in ginstall scoinst install; do
735         if test -f $ac_dir/$ac_prog; then
736           if test $ac_prog = install &&
737             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
738             # AIX install.  It has an incompatible calling convention.
739             :
740           else
741             ac_cv_path_install="$ac_dir/$ac_prog -c"
742             break 2
743           fi
744         fi
745       done
746       ;;
747     esac
748   done
749   IFS="$ac_save_IFS"
750
751 fi
752   if test "${ac_cv_path_install+set}" = set; then
753     INSTALL="$ac_cv_path_install"
754   else
755     # As a last resort, use the slow shell script.  We don't cache a
756     # path for INSTALL within a source directory, because that will
757     # break other packages using the cache if that directory is
758     # removed, or if the path is relative.
759     INSTALL="$ac_install_sh"
760   fi
761 fi
762 echo "$ac_t""$INSTALL" 1>&6
763
764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
765 # It thinks the first close brace ends the variable substitution.
766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
767
768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
769
770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
771
772 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
773 echo "configure:774: checking whether build environment is sane" >&5
774 # Just in case
775 sleep 1
776 echo timestamp > conftestfile
777 # Do `set' in a subshell so we don't clobber the current shell's
778 # arguments.  Must try -L first in case configure is actually a
779 # symlink; some systems play weird games with the mod time of symlinks
780 # (eg FreeBSD returns the mod time of the symlink's containing
781 # directory).
782 if (
783    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
784    if test "$*" = "X"; then
785       # -L didn't work.
786       set X `ls -t $srcdir/configure conftestfile`
787    fi
788    if test "$*" != "X $srcdir/configure conftestfile" \
789       && test "$*" != "X conftestfile $srcdir/configure"; then
790
791       # If neither matched, then we have a broken ls.  This can happen
792       # if, for instance, CONFIG_SHELL is bash and it inherits a
793       # broken ls alias from the environment.  This has actually
794       # happened.  Such a system could not be considered "sane".
795       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
796 alias in your environment" 1>&2; exit 1; }
797    fi
798
799    test "$2" = conftestfile
800    )
801 then
802    # Ok.
803    :
804 else
805    { echo "configure: error: newly created file is older than distributed files!
806 Check your system clock" 1>&2; exit 1; }
807 fi
808 rm -f conftest*
809 echo "$ac_t""yes" 1>&6
810 if test "$program_transform_name" = s,x,x,; then
811   program_transform_name=
812 else
813   # Double any \ or $.  echo might interpret backslashes.
814   cat <<\EOF_SED > conftestsed
815 s,\\,\\\\,g; s,\$,$$,g
816 EOF_SED
817   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
818   rm -f conftestsed
819 fi
820 test "$program_prefix" != NONE &&
821   program_transform_name="s,^,${program_prefix},; $program_transform_name"
822 # Use a double $ so make ignores it.
823 test "$program_suffix" != NONE &&
824   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
825
826 # sed with no file args requires a program.
827 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
828
829 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
830 echo "configure:831: checking whether ${MAKE-make} sets \${MAKE}" >&5
831 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
832 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
833   echo $ac_n "(cached) $ac_c" 1>&6
834 else
835   cat > conftestmake <<\EOF
836 all:
837         @echo 'ac_maketemp="${MAKE}"'
838 EOF
839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
840 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
841 if test -n "$ac_maketemp"; then
842   eval ac_cv_prog_make_${ac_make}_set=yes
843 else
844   eval ac_cv_prog_make_${ac_make}_set=no
845 fi
846 rm -f conftestmake
847 fi
848 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
849   echo "$ac_t""yes" 1>&6
850   SET_MAKE=
851 else
852   echo "$ac_t""no" 1>&6
853   SET_MAKE="MAKE=${MAKE-make}"
854 fi
855
856
857 PACKAGE=$PACKAGE
858
859 VERSION=$release_VERSION
860
861 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
862   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
863 fi
864 cat >> confdefs.h <<EOF
865 #define PACKAGE "$PACKAGE"
866 EOF
867
868 cat >> confdefs.h <<EOF
869 #define VERSION "$VERSION"
870 EOF
871
872
873
874 missing_dir=`cd $ac_aux_dir && pwd`
875 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
876 echo "configure:877: checking for working aclocal" >&5
877 # Run test in a subshell; some versions of sh will print an error if
878 # an executable is not found, even if stderr is redirected.
879 # Redirect stdin to placate older versions of autoconf.  Sigh.
880 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
881    ACLOCAL=aclocal
882    echo "$ac_t""found" 1>&6
883 else
884    ACLOCAL="$missing_dir/missing aclocal"
885    echo "$ac_t""missing" 1>&6
886 fi
887
888 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
889 echo "configure:890: checking for working autoconf" >&5
890 # Run test in a subshell; some versions of sh will print an error if
891 # an executable is not found, even if stderr is redirected.
892 # Redirect stdin to placate older versions of autoconf.  Sigh.
893 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
894    AUTOCONF=autoconf
895    echo "$ac_t""found" 1>&6
896 else
897    AUTOCONF="$missing_dir/missing autoconf"
898    echo "$ac_t""missing" 1>&6
899 fi
900
901 echo $ac_n "checking for working automake""... $ac_c" 1>&6
902 echo "configure:903: checking for working automake" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf.  Sigh.
906 if (automake --version) < /dev/null > /dev/null 2>&1; then
907    AUTOMAKE=automake
908    echo "$ac_t""found" 1>&6
909 else
910    AUTOMAKE="$missing_dir/missing automake"
911    echo "$ac_t""missing" 1>&6
912 fi
913
914 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
915 echo "configure:916: checking for working autoheader" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf.  Sigh.
919 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
920    AUTOHEADER=autoheader
921    echo "$ac_t""found" 1>&6
922 else
923    AUTOHEADER="$missing_dir/missing autoheader"
924    echo "$ac_t""missing" 1>&6
925 fi
926
927 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
928 echo "configure:929: checking for working makeinfo" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf.  Sigh.
932 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
933    MAKEINFO=makeinfo
934    echo "$ac_t""found" 1>&6
935 else
936    MAKEINFO="$missing_dir/missing makeinfo"
937    echo "$ac_t""missing" 1>&6
938 fi
939
940
941
942
943
944
945 # Runs configure.host and configure.target, as well as finds CC, CXX
946 # and assorted other critical bits. Have to run this before the
947 # GLIBCPP_ENABLE_* macros below.
948 if test $host != $build; then
949   ac_tool_prefix=${host_alias}-
950 else
951   ac_tool_prefix=
952 fi
953
954 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
955 echo "configure:956: checking for Cygwin environment" >&5
956 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
957   echo $ac_n "(cached) $ac_c" 1>&6
958 else
959   cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
962
963 int main() {
964
965 #ifndef __CYGWIN__
966 #define __CYGWIN__ __CYGWIN32__
967 #endif
968 return __CYGWIN__;
969 ; return 0; }
970 EOF
971 if { (eval echo configure:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
972   rm -rf conftest*
973   ac_cv_cygwin=yes
974 else
975   echo "configure: failed program was:" >&5
976   cat conftest.$ac_ext >&5
977   rm -rf conftest*
978   ac_cv_cygwin=no
979 fi
980 rm -f conftest*
981 rm -f conftest*
982 fi
983
984 echo "$ac_t""$ac_cv_cygwin" 1>&6
985 CYGWIN=
986 test "$ac_cv_cygwin" = yes && CYGWIN=yes
987 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
988 echo "configure:989: checking for mingw32 environment" >&5
989 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
990   echo $ac_n "(cached) $ac_c" 1>&6
991 else
992   cat > conftest.$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
995
996 int main() {
997 return __MINGW32__;
998 ; return 0; }
999 EOF
1000 if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001   rm -rf conftest*
1002   ac_cv_mingw32=yes
1003 else
1004   echo "configure: failed program was:" >&5
1005   cat conftest.$ac_ext >&5
1006   rm -rf conftest*
1007   ac_cv_mingw32=no
1008 fi
1009 rm -f conftest*
1010 rm -f conftest*
1011 fi
1012
1013 echo "$ac_t""$ac_cv_mingw32" 1>&6
1014 MINGW32=
1015 test "$ac_cv_mingw32" = yes && MINGW32=yes
1016
1017     # Check whether --enable-multilib or --disable-multilib was given.
1018 if test "${enable_multilib+set}" = set; then
1019   enableval="$enable_multilib"
1020   case "${enableval}" in
1021     yes) multilib=yes ;;
1022     no)  multilib=no ;;
1023     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1024    esac
1025 else
1026   multilib=yes
1027 fi
1028
1029 # When building with srcdir == objdir, links to the source files will
1030 # be created in directories within the target_subdir.  We have to
1031 # adjust toplevel_srcdir accordingly, so that configure finds
1032 # install-sh and other auxiliary files that live in the top-level
1033 # source directory.
1034 if test "${srcdir}" = "."; then
1035   if test -z "${with_target_subdir}"; then
1036     toprel=".."
1037   else
1038     if test "${with_target_subdir}" != "."; then
1039       toprel="${with_multisrctop}../.."
1040     else
1041       toprel="${with_multisrctop}.."
1042     fi
1043   fi
1044 else
1045   toprel=".."
1046 fi
1047 ac_aux_dir=
1048 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1049   if test -f $ac_dir/install-sh; then
1050     ac_aux_dir=$ac_dir
1051     ac_install_sh="$ac_aux_dir/install-sh -c"
1052     break
1053   elif test -f $ac_dir/install.sh; then
1054     ac_aux_dir=$ac_dir
1055     ac_install_sh="$ac_aux_dir/install.sh -c"
1056     break
1057   fi
1058 done
1059 if test -z "$ac_aux_dir"; then
1060   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1061 fi
1062 ac_config_guess=$ac_aux_dir/config.guess
1063 ac_config_sub=$ac_aux_dir/config.sub
1064 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1065
1066 toplevel_srcdir=\${top_srcdir}/$toprel
1067
1068
1069 # Export build and source directories.
1070 # These need to be absolute paths, yet at the same time need to
1071 # canonicalize only relative paths, because then amd will not unmount
1072 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1073 glibcpp_builddir=`pwd`
1074 case $srcdir in
1075 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1076 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1077 esac
1078
1079
1080
1081
1082
1083 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1084 # be 'cp -p' if linking isn't available.
1085 #ac_cv_prog_LN_S='cp -p'
1086 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether ln -s works" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1089   echo $ac_n "(cached) $ac_c" 1>&6
1090 else
1091   rm -f conftestdata
1092 if ln -s X conftestdata 2>/dev/null
1093 then
1094   rm -f conftestdata
1095   ac_cv_prog_LN_S="ln -s"
1096 else
1097   ac_cv_prog_LN_S=ln
1098 fi
1099 fi
1100 LN_S="$ac_cv_prog_LN_S"
1101 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1102   echo "$ac_t""yes" 1>&6
1103 else
1104   echo "$ac_t""no" 1>&6
1105 fi
1106
1107
1108 # We use these options to decide which functions to include.
1109 # Check whether --with-target-subdir or --without-target-subdir was given.
1110 if test "${with_target_subdir+set}" = set; then
1111   withval="$with_target_subdir"
1112   :
1113 fi
1114
1115 # Check whether --with-cross-host or --without-cross-host was given.
1116 if test "${with_cross_host+set}" = set; then
1117   withval="$with_cross_host"
1118   :
1119 fi
1120
1121
1122   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1123   
1124
1125   # Never versions of autoconf add an underscore to these functions.
1126   # Prevent future problems ...
1127   
1128   
1129   
1130   
1131
1132 #  AC_PROG_CC
1133
1134 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1135 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1136 # are probably using a cross compiler, which will not be able to fully
1137 # link an executable.  This should really be fixed in autoconf
1138 # itself.
1139
1140
1141
1142
1143 # Extract the first word of "gcc", so it can be a program name with args.
1144 set dummy gcc; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1148   echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150   if test -n "$CC"; then
1151   ac_cv_prog_CC="$CC" # Let the user override the test.
1152 else
1153   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1154   ac_dummy="$PATH"
1155   for ac_dir in $ac_dummy; do
1156     test -z "$ac_dir" && ac_dir=.
1157     if test -f $ac_dir/$ac_word; then
1158       ac_cv_prog_CC="gcc"
1159       break
1160     fi
1161   done
1162   IFS="$ac_save_ifs"
1163 fi
1164 fi
1165 CC="$ac_cv_prog_CC"
1166 if test -n "$CC"; then
1167   echo "$ac_t""$CC" 1>&6
1168 else
1169   echo "$ac_t""no" 1>&6
1170 fi
1171
1172 if test -z "$CC"; then
1173   # Extract the first word of "cc", so it can be a program name with args.
1174 set dummy cc; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1178   echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180   if test -n "$CC"; then
1181   ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1184   ac_prog_rejected=no
1185   ac_dummy="$PATH"
1186   for ac_dir in $ac_dummy; do
1187     test -z "$ac_dir" && ac_dir=.
1188     if test -f $ac_dir/$ac_word; then
1189       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1190         ac_prog_rejected=yes
1191         continue
1192       fi
1193       ac_cv_prog_CC="cc"
1194       break
1195     fi
1196   done
1197   IFS="$ac_save_ifs"
1198 if test $ac_prog_rejected = yes; then
1199   # We found a bogon in the path, so make sure we never use it.
1200   set dummy $ac_cv_prog_CC
1201   shift
1202   if test $# -gt 0; then
1203     # We chose a different compiler from the bogus one.
1204     # However, it has the same basename, so the bogon will be chosen
1205     # first if we set CC to just the basename; use the full file name.
1206     shift
1207     set dummy "$ac_dir/$ac_word" "$@"
1208     shift
1209     ac_cv_prog_CC="$@"
1210   fi
1211 fi
1212 fi
1213 fi
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216   echo "$ac_t""$CC" 1>&6
1217 else
1218   echo "$ac_t""no" 1>&6
1219 fi
1220
1221   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1222 fi
1223
1224 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether we are using GNU C" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   cat > conftest.c <<EOF
1230 #ifdef __GNUC__
1231   yes;
1232 #endif
1233 EOF
1234 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1235   ac_cv_prog_gcc=yes
1236 else
1237   ac_cv_prog_gcc=no
1238 fi
1239 fi
1240
1241 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1242
1243 if test $ac_cv_prog_gcc = yes; then
1244   GCC=yes
1245   ac_test_CFLAGS="${CFLAGS+set}"
1246   ac_save_CFLAGS="$CFLAGS"
1247   CFLAGS=
1248   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1255   ac_cv_prog_cc_g=yes
1256 else
1257   ac_cv_prog_cc_g=no
1258 fi
1259 rm -f conftest*
1260
1261 fi
1262
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264   if test "$ac_test_CFLAGS" = set; then
1265     CFLAGS="$ac_save_CFLAGS"
1266   elif test $ac_cv_prog_cc_g = yes; then
1267     CFLAGS="-g -O2"
1268   else
1269     CFLAGS="-O2"
1270   fi
1271 else
1272   GCC=
1273   test "${CFLAGS+set}" = set || CFLAGS="-g"
1274 fi
1275
1276
1277 # Can't just call these here as g++ requires libstc++ to be built....
1278 #  AC_PROG_CXX
1279
1280 # Likewise for AC_PROG_CXX.
1281
1282
1283
1284 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1285 # flags that come in CXX while configuring libstdc++.  They're different
1286 # from those used for all other target libraries.  If CXX is set in
1287 # the environment, respect that here.
1288 glibcpp_CXX=$CXX
1289 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1290 do
1291 # Extract the first word of "$ac_prog", so it can be a program name with args.
1292 set dummy $ac_prog; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1296   echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298   if test -n "$glibcpp_CXX"; then
1299   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1300 else
1301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1302   ac_dummy="$PATH"
1303   for ac_dir in $ac_dummy; do
1304     test -z "$ac_dir" && ac_dir=.
1305     if test -f $ac_dir/$ac_word; then
1306       ac_cv_prog_glibcpp_CXX="$ac_prog"
1307       break
1308     fi
1309   done
1310   IFS="$ac_save_ifs"
1311 fi
1312 fi
1313 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1314 if test -n "$glibcpp_CXX"; then
1315   echo "$ac_t""$glibcpp_CXX" 1>&6
1316 else
1317   echo "$ac_t""no" 1>&6
1318 fi
1319
1320 test -n "$glibcpp_CXX" && break
1321 done
1322 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1323
1324
1325 CXX=$glibcpp_CXX
1326 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1327
1328 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether we are using GNU C++" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1331   echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333   cat > conftest.C <<EOF
1334 #ifdef __GNUC__
1335   yes;
1336 #endif
1337 EOF
1338 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1339   ac_cv_prog_gxx=yes
1340 else
1341   ac_cv_prog_gxx=no
1342 fi
1343 fi
1344
1345 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1346
1347 if test $ac_cv_prog_gxx = yes; then
1348   GXX=yes
1349   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1350   ac_save_CXXFLAGS="$CXXFLAGS"
1351   CXXFLAGS=
1352   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1353 echo "configure:1354: checking whether ${CXX-g++} accepts -g" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1355   echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357   echo 'void f(){}' > conftest.cc
1358 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1359   ac_cv_prog_cxx_g=yes
1360 else
1361   ac_cv_prog_cxx_g=no
1362 fi
1363 rm -f conftest*
1364
1365 fi
1366
1367 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1368   if test "$ac_test_CXXFLAGS" = set; then
1369     CXXFLAGS="$ac_save_CXXFLAGS"
1370   elif test $ac_cv_prog_cxx_g = yes; then
1371     CXXFLAGS="-g -O2"
1372   else
1373     CXXFLAGS="-O2"
1374   fi
1375 else
1376   GXX=
1377   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1378 fi
1379
1380
1381    # For some reason, gettext needs this.
1382    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1383 echo "configure:1384: checking for POSIXized ISC" >&5
1384 if test -d /etc/conf/kconfig.d &&
1385   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1386 then
1387   echo "$ac_t""yes" 1>&6
1388   ISC=yes # If later tests want to check for ISC.
1389   cat >> confdefs.h <<\EOF
1390 #define _POSIX_SOURCE 1
1391 EOF
1392
1393   if test "$GCC" = yes; then
1394     CC="$CC -posix"
1395   else
1396     CC="$CC -Xp"
1397   fi
1398 else
1399   echo "$ac_t""no" 1>&6
1400   ISC=
1401 fi
1402
1403
1404   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}as; ac_word=$2
1406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1407 echo "configure:1408: checking for $ac_word" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1409   echo $ac_n "(cached) $ac_c" 1>&6
1410 else
1411   if test -n "$AS"; then
1412   ac_cv_prog_AS="$AS" # Let the user override the test.
1413 else
1414   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1415   ac_dummy="$PATH"
1416   for ac_dir in $ac_dummy; do
1417     test -z "$ac_dir" && ac_dir=.
1418     if test -f $ac_dir/$ac_word; then
1419       ac_cv_prog_AS="${ac_tool_prefix}as"
1420       break
1421     fi
1422   done
1423   IFS="$ac_save_ifs"
1424   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1425 fi
1426 fi
1427 AS="$ac_cv_prog_AS"
1428 if test -n "$AS"; then
1429   echo "$ac_t""$AS" 1>&6
1430 else
1431   echo "$ac_t""no" 1>&6
1432 fi
1433
1434
1435
1436   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}ar; ac_word=$2
1438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_word" >&5
1440 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1441   echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443   if test -n "$AR"; then
1444   ac_cv_prog_AR="$AR" # Let the user override the test.
1445 else
1446   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1447   ac_dummy="$PATH"
1448   for ac_dir in $ac_dummy; do
1449     test -z "$ac_dir" && ac_dir=.
1450     if test -f $ac_dir/$ac_word; then
1451       ac_cv_prog_AR="${ac_tool_prefix}ar"
1452       break
1453     fi
1454   done
1455   IFS="$ac_save_ifs"
1456   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1457 fi
1458 fi
1459 AR="$ac_cv_prog_AR"
1460 if test -n "$AR"; then
1461   echo "$ac_t""$AR" 1>&6
1462 else
1463   echo "$ac_t""no" 1>&6
1464 fi
1465
1466
1467
1468   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1471 echo "configure:1472: checking for $ac_word" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1473   echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475   if test -n "$RANLIB"; then
1476   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1477 else
1478   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1479   ac_dummy="$PATH"
1480   for ac_dir in $ac_dummy; do
1481     test -z "$ac_dir" && ac_dir=.
1482     if test -f $ac_dir/$ac_word; then
1483       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1484       break
1485     fi
1486   done
1487   IFS="$ac_save_ifs"
1488 fi
1489 fi
1490 RANLIB="$ac_cv_prog_RANLIB"
1491 if test -n "$RANLIB"; then
1492   echo "$ac_t""$RANLIB" 1>&6
1493 else
1494   echo "$ac_t""no" 1>&6
1495 fi
1496
1497
1498 if test -z "$ac_cv_prog_RANLIB"; then
1499 if test -n "$ac_tool_prefix"; then
1500   # Extract the first word of "ranlib", so it can be a program name with args.
1501 set dummy ranlib; ac_word=$2
1502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1503 echo "configure:1504: checking for $ac_word" >&5
1504 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1505   echo $ac_n "(cached) $ac_c" 1>&6
1506 else
1507   if test -n "$RANLIB"; then
1508   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1509 else
1510   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1511   ac_dummy="$PATH"
1512   for ac_dir in $ac_dummy; do
1513     test -z "$ac_dir" && ac_dir=.
1514     if test -f $ac_dir/$ac_word; then
1515       ac_cv_prog_RANLIB="ranlib"
1516       break
1517     fi
1518   done
1519   IFS="$ac_save_ifs"
1520   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1521 fi
1522 fi
1523 RANLIB="$ac_cv_prog_RANLIB"
1524 if test -n "$RANLIB"; then
1525   echo "$ac_t""$RANLIB" 1>&6
1526 else
1527   echo "$ac_t""no" 1>&6
1528 fi
1529
1530 else
1531   RANLIB="ranlib-not-found-in-path-error"
1532 fi
1533 fi
1534
1535   # Find a good install program.  We prefer a C program (faster),
1536 # so one script is as good as another.  But avoid the broken or
1537 # incompatible versions:
1538 # SysV /etc/install, /usr/sbin/install
1539 # SunOS /usr/etc/install
1540 # IRIX /sbin/install
1541 # AIX /bin/install
1542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545 # ./install, which can be erroneously created by make from ./install.sh.
1546 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1547 echo "configure:1548: checking for a BSD compatible install" >&5
1548 if test -z "$INSTALL"; then
1549 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1550   echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1553   for ac_dir in $PATH; do
1554     # Account for people who put trailing slashes in PATH elements.
1555     case "$ac_dir/" in
1556     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1557     *)
1558       # OSF1 and SCO ODT 3.0 have their own names for install.
1559       # Don't use installbsd from OSF since it installs stuff as root
1560       # by default.
1561       for ac_prog in ginstall scoinst install; do
1562         if test -f $ac_dir/$ac_prog; then
1563           if test $ac_prog = install &&
1564             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1565             # AIX install.  It has an incompatible calling convention.
1566             :
1567           else
1568             ac_cv_path_install="$ac_dir/$ac_prog -c"
1569             break 2
1570           fi
1571         fi
1572       done
1573       ;;
1574     esac
1575   done
1576   IFS="$ac_save_IFS"
1577
1578 fi
1579   if test "${ac_cv_path_install+set}" = set; then
1580     INSTALL="$ac_cv_path_install"
1581   else
1582     # As a last resort, use the slow shell script.  We don't cache a
1583     # path for INSTALL within a source directory, because that will
1584     # break other packages using the cache if that directory is
1585     # removed, or if the path is relative.
1586     INSTALL="$ac_install_sh"
1587   fi
1588 fi
1589 echo "$ac_t""$INSTALL" 1>&6
1590
1591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1592 # It thinks the first close brace ends the variable substitution.
1593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1594
1595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1596
1597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598
1599
1600   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether to enable maintainer-specific portions of Makefiles" >&5
1602     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1603 if test "${enable_maintainer_mode+set}" = set; then
1604   enableval="$enable_maintainer_mode"
1605   USE_MAINTAINER_MODE=$enableval
1606 else
1607   USE_MAINTAINER_MODE=no
1608 fi
1609
1610   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611   
1612
1613 if test $USE_MAINTAINER_MODE = yes; then
1614   MAINTAINER_MODE_TRUE=
1615   MAINTAINER_MODE_FALSE='#'
1616 else
1617   MAINTAINER_MODE_TRUE='#'
1618   MAINTAINER_MODE_FALSE=
1619 fi
1620   MAINT=$MAINTAINER_MODE_TRUE
1621   
1622
1623
1624   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1625   # at least currently, we never actually build a program, so we never
1626   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1627   # fails, because we are probably configuring with a cross compiler
1628   # which cant create executables.  So we include AC_EXEEXT to keep
1629   # automake happy, but we dont execute it, since we dont care about
1630   # the result.
1631   if false; then
1632     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1633     # to nothing, so nothing would remain between `then' and `fi' if it
1634     # were not for the `:' below.
1635     :
1636     
1637
1638 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1639 echo "configure:1640: checking for executable suffix" >&5
1640 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1641   echo $ac_n "(cached) $ac_c" 1>&6
1642 else
1643   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1644   ac_cv_exeext=.exe
1645 else
1646   rm -f conftest*
1647   echo 'int main () { return 0; }' > conftest.$ac_ext
1648   ac_cv_exeext=
1649   if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1650     for file in conftest.*; do
1651       case $file in
1652       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1653       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1654       esac
1655     done
1656   else
1657     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1658   fi
1659   rm -f conftest*
1660   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1661 fi
1662 fi
1663
1664 EXEEXT=""
1665 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1666 echo "$ac_t""${ac_cv_exeext}" 1>&6
1667 ac_exeext=$EXEEXT
1668
1669   fi
1670
1671   . ${glibcpp_basedir}/configure.host
1672
1673   case ${glibcpp_basedir} in
1674     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1675     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1676   esac
1677
1678   # This does for the target what configure.host does for the host.  In
1679   # addition to possibly modifying the same flags, it also sets up symlinks.
1680   
1681     . ${glibcpp_basedir}/configure.target
1682     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1683     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1684
1685
1686   # 
1687
1688
1689
1690 # Check whether --enable-shared or --disable-shared was given.
1691 if test "${enable_shared+set}" = set; then
1692   enableval="$enable_shared"
1693   p=${PACKAGE-default}
1694 case $enableval in
1695 yes) enable_shared=yes ;;
1696 no) enable_shared=no ;;
1697 *)
1698   enable_shared=no
1699   # Look at the argument we got.  We use all the common list separators.
1700   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1701   for pkg in $enableval; do
1702     if test "X$pkg" = "X$p"; then
1703       enable_shared=yes
1704     fi
1705   done
1706   IFS="$ac_save_ifs"
1707   ;;
1708 esac
1709 else
1710   enable_shared=yes
1711 fi
1712
1713 # Check whether --enable-static or --disable-static was given.
1714 if test "${enable_static+set}" = set; then
1715   enableval="$enable_static"
1716   p=${PACKAGE-default}
1717 case $enableval in
1718 yes) enable_static=yes ;;
1719 no) enable_static=no ;;
1720 *)
1721   enable_static=no
1722   # Look at the argument we got.  We use all the common list separators.
1723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1724   for pkg in $enableval; do
1725     if test "X$pkg" = "X$p"; then
1726       enable_static=yes
1727     fi
1728   done
1729   IFS="$ac_save_ifs"
1730   ;;
1731 esac
1732 else
1733   enable_static=yes
1734 fi
1735
1736 # Check whether --enable-fast-install or --disable-fast-install was given.
1737 if test "${enable_fast_install+set}" = set; then
1738   enableval="$enable_fast_install"
1739   p=${PACKAGE-default}
1740 case $enableval in
1741 yes) enable_fast_install=yes ;;
1742 no) enable_fast_install=no ;;
1743 *)
1744   enable_fast_install=no
1745   # Look at the argument we got.  We use all the common list separators.
1746   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1747   for pkg in $enableval; do
1748     if test "X$pkg" = "X$p"; then
1749       enable_fast_install=yes
1750     fi
1751   done
1752   IFS="$ac_save_ifs"
1753   ;;
1754 esac
1755 else
1756   enable_fast_install=yes
1757 fi
1758
1759 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1760 if test "${with_gnu_ld+set}" = set; then
1761   withval="$with_gnu_ld"
1762   test "$withval" = no || with_gnu_ld=yes
1763 else
1764   with_gnu_ld=no
1765 fi
1766
1767 ac_prog=ld
1768 if test "$GCC" = yes; then
1769   # Check if gcc -print-prog-name=ld gives a path.
1770   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1771 echo "configure:1772: checking for ld used by GCC" >&5
1772   case $host in
1773   *-*-mingw*)
1774     # gcc leaves a trailing carriage return which upsets mingw
1775     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1776   *)
1777     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1778   esac
1779   case $ac_prog in
1780     # Accept absolute paths.
1781     [\\/]* | [A-Za-z]:[\\/]*)
1782       re_direlt='/[^/][^/]*/\.\./'
1783       # Canonicalize the path of ld
1784       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1785       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1786         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1787       done
1788       test -z "$LD" && LD="$ac_prog"
1789       ;;
1790   "")
1791     # If it fails, then pretend we aren't using GCC.
1792     ac_prog=ld
1793     ;;
1794   *)
1795     # If it is relative, then search for the first ld in PATH.
1796     with_gnu_ld=unknown
1797     ;;
1798   esac
1799 elif test "$with_gnu_ld" = yes; then
1800   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1801 echo "configure:1802: checking for GNU ld" >&5
1802 else
1803   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1804 echo "configure:1805: checking for non-GNU ld" >&5
1805 fi
1806 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1807   echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809   if test -z "$LD"; then
1810   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1811   for ac_dir in $PATH; do
1812     test -z "$ac_dir" && ac_dir=.
1813     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1814       lt_cv_path_LD="$ac_dir/$ac_prog"
1815       # Check to see if the program is GNU ld.  I'd rather use --version,
1816       # but apparently some GNU ld's only accept -v.
1817       # Break only if it was the GNU/non-GNU ld that we prefer.
1818       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1819         test "$with_gnu_ld" != no && break
1820       else
1821         test "$with_gnu_ld" != yes && break
1822       fi
1823     fi
1824   done
1825   IFS="$ac_save_ifs"
1826 else
1827   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1828 fi
1829 fi
1830
1831 LD="$lt_cv_path_LD"
1832 if test -n "$LD"; then
1833   echo "$ac_t""$LD" 1>&6
1834 else
1835   echo "$ac_t""no" 1>&6
1836 fi
1837 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1838 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1839 echo "configure:1840: checking if the linker ($LD) is GNU ld" >&5
1840 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1841   echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1844 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1845   lt_cv_prog_gnu_ld=yes
1846 else
1847   lt_cv_prog_gnu_ld=no
1848 fi
1849 fi
1850
1851 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1852 with_gnu_ld=$lt_cv_prog_gnu_ld
1853
1854
1855 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $LD option to reload object files" >&5
1857 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1858   echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860   lt_cv_ld_reload_flag='-r'
1861 fi
1862
1863 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1864 reload_flag=$lt_cv_ld_reload_flag
1865 test -n "$reload_flag" && reload_flag=" $reload_flag"
1866
1867 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1868 echo "configure:1869: checking for BSD-compatible nm" >&5
1869 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1870   echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872   if test -n "$NM"; then
1873   # Let the user override the test.
1874   lt_cv_path_NM="$NM"
1875 else
1876   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1877   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1878     test -z "$ac_dir" && ac_dir=.
1879     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1880     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1881       # Check to see if the nm accepts a BSD-compat flag.
1882       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1883       #   nm: unknown option "B" ignored
1884       # Tru64's nm complains that /dev/null is an invalid object file
1885       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1886         lt_cv_path_NM="$tmp_nm -B"
1887         break
1888       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1889         lt_cv_path_NM="$tmp_nm -p"
1890         break
1891       else
1892         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1893         continue # so that we can try to find one that supports BSD flags
1894       fi
1895     fi
1896   done
1897   IFS="$ac_save_ifs"
1898   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1899 fi
1900 fi
1901
1902 NM="$lt_cv_path_NM"
1903 echo "$ac_t""$NM" 1>&6
1904
1905 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1906 echo "configure:1907: checking how to recognise dependant libraries" >&5
1907 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1908   echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910   lt_cv_file_magic_cmd='$MAGIC_CMD'
1911 lt_cv_file_magic_test_file=
1912 lt_cv_deplibs_check_method='unknown'
1913 # Need to set the preceding variable on all platforms that support
1914 # interlibrary dependencies.
1915 # 'none' -- dependencies not supported.
1916 # `unknown' -- same as none, but documents that we really don't know.
1917 # 'pass_all' -- all dependencies passed with no checks.
1918 # 'test_compile' -- check by making test program.
1919 # 'file_magic [regex]' -- check by looking for files in library path
1920 # which responds to the $file_magic_cmd with a given egrep regex.
1921 # If you have `file' or equivalent on your system and you're not sure
1922 # whether `pass_all' will *always* work, you probably want this one.
1923
1924 case $host_os in
1925 aix*)
1926   lt_cv_deplibs_check_method=pass_all
1927   ;;
1928
1929 beos*)
1930   lt_cv_deplibs_check_method=pass_all
1931   ;;
1932
1933 bsdi4*)
1934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1935   lt_cv_file_magic_cmd='/usr/bin/file -L'
1936   lt_cv_file_magic_test_file=/shlib/libc.so
1937   ;;
1938
1939 cygwin* | mingw* |pw32*)
1940   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1941   lt_cv_file_magic_cmd='$OBJDUMP -f'
1942   ;;
1943
1944 darwin* | rhapsody*)
1945   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1946   lt_cv_file_magic_cmd='/usr/bin/file -L'
1947   case "$host_os" in
1948   rhapsody* | darwin1.012)
1949     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1950     ;;
1951   *) # Darwin 1.3 on
1952     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1953     ;;
1954   esac
1955   ;;
1956
1957 freebsd* )
1958   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1959     case $host_cpu in
1960     i*86 )
1961       # Not sure whether the presence of OpenBSD here was a mistake.
1962       # Let's accept both of them until this is cleared up.
1963       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1964       lt_cv_file_magic_cmd=/usr/bin/file
1965       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1966       ;;
1967     esac
1968   else
1969     lt_cv_deplibs_check_method=pass_all
1970   fi
1971   ;;
1972
1973 gnu*)
1974   lt_cv_deplibs_check_method=pass_all
1975   ;;
1976
1977 hpux10.20*|hpux11*)
1978   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1979   lt_cv_file_magic_cmd=/usr/bin/file
1980   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1981   ;;
1982
1983 irix5* | irix6*)
1984   case $host_os in
1985   irix5*)
1986     # this will be overridden with pass_all, but let us keep it just in case
1987     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1988     ;;
1989   *)
1990     case $LD in
1991     *-32|*"-32 ") libmagic=32-bit;;
1992     *-n32|*"-n32 ") libmagic=N32;;
1993     *-64|*"-64 ") libmagic=64-bit;;
1994     *) libmagic=never-match;;
1995     esac
1996     # this will be overridden with pass_all, but let us keep it just in case
1997     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1998     ;;
1999   esac
2000   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2001   lt_cv_deplibs_check_method=pass_all
2002   ;;
2003
2004 # This must be Linux ELF.
2005 linux-gnu*)
2006   case $host_cpu in
2007   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2008     lt_cv_deplibs_check_method=pass_all ;;
2009   *)
2010     # glibc up to 2.1.1 does not perform some relocations on ARM
2011     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2012   esac
2013   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2014   ;;
2015
2016 netbsd*)
2017   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2018     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2019   else
2020     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2021   fi
2022   ;;
2023
2024 newsos6)
2025   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2026   lt_cv_file_magic_cmd=/usr/bin/file
2027   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2028   ;;
2029
2030 osf3* | osf4* | osf5*)
2031   # this will be overridden with pass_all, but let us keep it just in case
2032   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2033   lt_cv_file_magic_test_file=/shlib/libc.so
2034   lt_cv_deplibs_check_method=pass_all
2035   ;;
2036
2037 sco3.2v5*)
2038   lt_cv_deplibs_check_method=pass_all
2039   ;;
2040
2041 solaris*)
2042   lt_cv_deplibs_check_method=pass_all
2043   lt_cv_file_magic_test_file=/lib/libc.so
2044   ;;
2045
2046 sysv5uw[78]* | sysv4*uw2*)
2047   lt_cv_deplibs_check_method=pass_all
2048   ;;
2049
2050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2051   case $host_vendor in
2052   ncr)
2053     lt_cv_deplibs_check_method=pass_all
2054     ;;
2055   motorola)
2056     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]'
2057     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2058     ;;
2059   esac
2060   ;;
2061 esac
2062
2063 fi
2064
2065 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2066 file_magic_cmd=$lt_cv_file_magic_cmd
2067 deplibs_check_method=$lt_cv_deplibs_check_method
2068
2069 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2070 echo "configure:2071: checking for object suffix" >&5
2071 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2072   echo $ac_n "(cached) $ac_c" 1>&6
2073 else
2074   rm -f conftest*
2075 echo 'int i = 1;' > conftest.$ac_ext
2076 if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2077   for ac_file in conftest.*; do
2078     case $ac_file in
2079     *.c) ;;
2080     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2081     esac
2082   done
2083 else
2084   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2085 fi
2086 rm -f conftest*
2087 fi
2088
2089 echo "$ac_t""$ac_cv_objext" 1>&6
2090 OBJEXT=$ac_cv_objext
2091 ac_objext=$ac_cv_objext
2092
2093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2094
2095 # Only perform the check for file, if the check method requires it
2096 case $deplibs_check_method in
2097 file_magic*)
2098   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2099     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2100 echo "configure:2101: checking for ${ac_tool_prefix}file" >&5
2101 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2102   echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104   case $MAGIC_CMD in
2105   /*)
2106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2107   ;;
2108   ?:/*)
2109   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2110   ;;
2111   *)
2112   ac_save_MAGIC_CMD="$MAGIC_CMD"
2113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2114   ac_dummy="/usr/bin:$PATH"
2115   for ac_dir in $ac_dummy; do
2116     test -z "$ac_dir" && ac_dir=.
2117     if test -f $ac_dir/${ac_tool_prefix}file; then
2118       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2119       if test -n "$file_magic_test_file"; then
2120         case $deplibs_check_method in
2121         "file_magic "*)
2122           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2125             egrep "$file_magic_regex" > /dev/null; then
2126             :
2127           else
2128             cat <<EOF 1>&2
2129
2130 *** Warning: the command libtool uses to detect shared libraries,
2131 *** $file_magic_cmd, produces output that libtool cannot recognize.
2132 *** The result is that libtool may fail to recognize shared libraries
2133 *** as such.  This will affect the creation of libtool libraries that
2134 *** depend on shared libraries, but programs linked with such libtool
2135 *** libraries will work regardless of this problem.  Nevertheless, you
2136 *** may want to report the problem to your system manager and/or to
2137 *** bug-libtool@gnu.org
2138
2139 EOF
2140           fi ;;
2141         esac
2142       fi
2143       break
2144     fi
2145   done
2146   IFS="$ac_save_ifs"
2147   MAGIC_CMD="$ac_save_MAGIC_CMD"
2148   ;;
2149 esac
2150 fi
2151
2152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2153 if test -n "$MAGIC_CMD"; then
2154   echo "$ac_t""$MAGIC_CMD" 1>&6
2155 else
2156   echo "$ac_t""no" 1>&6
2157 fi
2158
2159 if test -z "$lt_cv_path_MAGIC_CMD"; then
2160   if test -n "$ac_tool_prefix"; then
2161     echo $ac_n "checking for file""... $ac_c" 1>&6
2162 echo "configure:2163: checking for file" >&5
2163 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2164   echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166   case $MAGIC_CMD in
2167   /*)
2168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2169   ;;
2170   ?:/*)
2171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2172   ;;
2173   *)
2174   ac_save_MAGIC_CMD="$MAGIC_CMD"
2175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2176   ac_dummy="/usr/bin:$PATH"
2177   for ac_dir in $ac_dummy; do
2178     test -z "$ac_dir" && ac_dir=.
2179     if test -f $ac_dir/file; then
2180       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2181       if test -n "$file_magic_test_file"; then
2182         case $deplibs_check_method in
2183         "file_magic "*)
2184           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2185           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2186           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2187             egrep "$file_magic_regex" > /dev/null; then
2188             :
2189           else
2190             cat <<EOF 1>&2
2191
2192 *** Warning: the command libtool uses to detect shared libraries,
2193 *** $file_magic_cmd, produces output that libtool cannot recognize.
2194 *** The result is that libtool may fail to recognize shared libraries
2195 *** as such.  This will affect the creation of libtool libraries that
2196 *** depend on shared libraries, but programs linked with such libtool
2197 *** libraries will work regardless of this problem.  Nevertheless, you
2198 *** may want to report the problem to your system manager and/or to
2199 *** bug-libtool@gnu.org
2200
2201 EOF
2202           fi ;;
2203         esac
2204       fi
2205       break
2206     fi
2207   done
2208   IFS="$ac_save_ifs"
2209   MAGIC_CMD="$ac_save_MAGIC_CMD"
2210   ;;
2211 esac
2212 fi
2213
2214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2215 if test -n "$MAGIC_CMD"; then
2216   echo "$ac_t""$MAGIC_CMD" 1>&6
2217 else
2218   echo "$ac_t""no" 1>&6
2219 fi
2220
2221   else
2222     MAGIC_CMD=:
2223   fi
2224 fi
2225
2226   fi
2227   ;;
2228 esac
2229
2230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2235   echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237   if test -n "$RANLIB"; then
2238   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2239 else
2240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2241   ac_dummy="$PATH"
2242   for ac_dir in $ac_dummy; do
2243     test -z "$ac_dir" && ac_dir=.
2244     if test -f $ac_dir/$ac_word; then
2245       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2246       break
2247     fi
2248   done
2249   IFS="$ac_save_ifs"
2250 fi
2251 fi
2252 RANLIB="$ac_cv_prog_RANLIB"
2253 if test -n "$RANLIB"; then
2254   echo "$ac_t""$RANLIB" 1>&6
2255 else
2256   echo "$ac_t""no" 1>&6
2257 fi
2258
2259
2260 if test -z "$ac_cv_prog_RANLIB"; then
2261 if test -n "$ac_tool_prefix"; then
2262   # Extract the first word of "ranlib", so it can be a program name with args.
2263 set dummy ranlib; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2267   echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269   if test -n "$RANLIB"; then
2270   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2271 else
2272   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2273   ac_dummy="$PATH"
2274   for ac_dir in $ac_dummy; do
2275     test -z "$ac_dir" && ac_dir=.
2276     if test -f $ac_dir/$ac_word; then
2277       ac_cv_prog_RANLIB="ranlib"
2278       break
2279     fi
2280   done
2281   IFS="$ac_save_ifs"
2282   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2283 fi
2284 fi
2285 RANLIB="$ac_cv_prog_RANLIB"
2286 if test -n "$RANLIB"; then
2287   echo "$ac_t""$RANLIB" 1>&6
2288 else
2289   echo "$ac_t""no" 1>&6
2290 fi
2291
2292 else
2293   RANLIB=":"
2294 fi
2295 fi
2296
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2302   echo $ac_n "(cached) $ac_c" 1>&6
2303 else
2304   if test -n "$STRIP"; then
2305   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 else
2307   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2308   ac_dummy="$PATH"
2309   for ac_dir in $ac_dummy; do
2310     test -z "$ac_dir" && ac_dir=.
2311     if test -f $ac_dir/$ac_word; then
2312       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2313       break
2314     fi
2315   done
2316   IFS="$ac_save_ifs"
2317 fi
2318 fi
2319 STRIP="$ac_cv_prog_STRIP"
2320 if test -n "$STRIP"; then
2321   echo "$ac_t""$STRIP" 1>&6
2322 else
2323   echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 if test -z "$ac_cv_prog_STRIP"; then
2328 if test -n "$ac_tool_prefix"; then
2329   # Extract the first word of "strip", so it can be a program name with args.
2330 set dummy strip; ac_word=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2334   echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336   if test -n "$STRIP"; then
2337   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338 else
2339   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2340   ac_dummy="$PATH"
2341   for ac_dir in $ac_dummy; do
2342     test -z "$ac_dir" && ac_dir=.
2343     if test -f $ac_dir/$ac_word; then
2344       ac_cv_prog_STRIP="strip"
2345       break
2346     fi
2347   done
2348   IFS="$ac_save_ifs"
2349   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2350 fi
2351 fi
2352 STRIP="$ac_cv_prog_STRIP"
2353 if test -n "$STRIP"; then
2354   echo "$ac_t""$STRIP" 1>&6
2355 else
2356   echo "$ac_t""no" 1>&6
2357 fi
2358
2359 else
2360   STRIP=":"
2361 fi
2362 fi
2363
2364
2365 # Check for any special flags to pass to ltconfig.
2366 libtool_flags="--cache-file=$cache_file"
2367 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2368 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2369 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2370 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2371 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2372 libtool_flags="$libtool_flags --enable-dlopen"
2373
2374 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2375 if test "${enable_libtool_lock+set}" = set; then
2376   enableval="$enable_libtool_lock"
2377   :
2378 fi
2379
2380 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2381 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2382
2383 # Check whether --with-pic or --without-pic was given.
2384 if test "${with_pic+set}" = set; then
2385   withval="$with_pic"
2386   pic_mode="$withval"
2387 else
2388   pic_mode=default
2389 fi
2390
2391 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2392 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2393
2394 # Some flags need to be propagated to the compiler or linker for good
2395 # libtool support.
2396 case $host in
2397 *-*-irix6*)
2398   # Find out which ABI we are using.
2399   echo '#line 2400 "configure"' > conftest.$ac_ext
2400   if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2401     case `/usr/bin/file conftest.$ac_objext` in
2402     *32-bit*)
2403       LD="${LD-ld} -32"
2404       ;;
2405     *N32*)
2406       LD="${LD-ld} -n32"
2407       ;;
2408     *64-bit*)
2409       LD="${LD-ld} -64"
2410       ;;
2411     esac
2412   fi
2413   rm -rf conftest*
2414   ;;
2415
2416 *-*-sco3.2v5*)
2417   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2418   SAVE_CFLAGS="$CFLAGS"
2419   CFLAGS="$CFLAGS -belf"
2420   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2421 echo "configure:2422: checking whether the C compiler needs -belf" >&5
2422 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2423   echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425   
2426      ac_ext=c
2427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2431 cross_compiling=$ac_cv_prog_cc_cross
2432
2433      cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436
2437 int main() {
2438
2439 ; return 0; }
2440 EOF
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442   rm -rf conftest*
2443   lt_cv_cc_needs_belf=yes
2444 else
2445   echo "configure: failed program was:" >&5
2446   cat conftest.$ac_ext >&5
2447   rm -rf conftest*
2448   lt_cv_cc_needs_belf=no
2449 fi
2450 rm -f conftest*
2451      ac_ext=c
2452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2456 cross_compiling=$ac_cv_prog_cc_cross
2457
2458 fi
2459
2460 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2461   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2462     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2463     CFLAGS="$SAVE_CFLAGS"
2464   fi
2465   ;;
2466
2467
2468 esac
2469
2470 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2471 echo "configure:2472: checking how to run the C++ preprocessor" >&5
2472 if test -z "$CXXCPP"; then
2473 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2474   echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476   ac_ext=C
2477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2478 ac_cpp='$CXXCPP $CPPFLAGS'
2479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2481 cross_compiling=$ac_cv_prog_cxx_cross
2482   CXXCPP="${CXX-g++} -E"
2483   cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <stdlib.h>
2487 EOF
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2492   :
2493 else
2494   echo "$ac_err" >&5
2495   echo "configure: failed program was:" >&5
2496   cat conftest.$ac_ext >&5
2497   rm -rf conftest*
2498   CXXCPP=/lib/cpp
2499 fi
2500 rm -f conftest*
2501   ac_cv_prog_CXXCPP="$CXXCPP"
2502 ac_ext=c
2503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2507 cross_compiling=$ac_cv_prog_cc_cross
2508 fi
2509 fi
2510 CXXCPP="$ac_cv_prog_CXXCPP"
2511 echo "$ac_t""$CXXCPP" 1>&6
2512
2513
2514 # Save cache, so that ltconfig can load it
2515 cat > confcache <<\EOF
2516 # This file is a shell script that caches the results of configure
2517 # tests run on this system so they can be shared between configure
2518 # scripts and configure runs.  It is not useful on other systems.
2519 # If it contains results you don't want to keep, you may remove or edit it.
2520 #
2521 # By default, configure uses ./config.cache as the cache file,
2522 # creating it if it does not exist already.  You can give configure
2523 # the --cache-file=FILE option to use a different cache file; that is
2524 # what configure does when it calls configure scripts in
2525 # subdirectories, so they share the cache.
2526 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2527 # config.status only pays attention to the cache file if you give it the
2528 # --recheck option to rerun configure.
2529 #
2530 EOF
2531 # The following way of writing the cache mishandles newlines in values,
2532 # but we know of no workaround that is simple, portable, and efficient.
2533 # So, don't put newlines in cache variables' values.
2534 # Ultrix sh set writes to stderr and can't be redirected directly,
2535 # and sets the high bit in the cache file unless we assign to the vars.
2536 (set) 2>&1 |
2537   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2538   *ac_space=\ *)
2539     # `set' does not quote correctly, so add quotes (double-quote substitution
2540     # turns \\\\ into \\, and sed turns \\ into \).
2541     sed -n \
2542       -e "s/'/'\\\\''/g" \
2543       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2544     ;;
2545   *)
2546     # `set' quotes correctly as required by POSIX, so do not add quotes.
2547     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2548     ;;
2549   esac >> confcache
2550 if cmp -s $cache_file confcache; then
2551   :
2552 else
2553   if test -w $cache_file; then
2554     echo "updating cache $cache_file"
2555     cat confcache > $cache_file
2556   else
2557     echo "not updating unwritable cache $cache_file"
2558   fi
2559 fi
2560 rm -f confcache
2561
2562
2563 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2564 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2565 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2566 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2567 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2568 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2569 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2570 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2571 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2572 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2573
2574 # Reload cache, that may have been modified by ltconfig
2575 if test -r "$cache_file"; then
2576   echo "loading cache $cache_file"
2577   . $cache_file
2578 else
2579   echo "creating cache $cache_file"
2580   > $cache_file
2581 fi
2582
2583
2584 # This can be used to rebuild libtool when needed
2585 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2586
2587 # Always use our own libtool.
2588 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2589
2590 # Redirect the config.log output again, so that the ltconfig log is not
2591 # clobbered by the next message.
2592 exec 5>>./config.log
2593
2594
2595
2596 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2597 lt_save_CC="$CC"
2598 lt_save_CFLAGS="$CFLAGS"
2599 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2600 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2601 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2602 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2603 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2604 deplibs_check_method="$deplibs_check_method" \
2605 file_magic_cmd="$file_magic_cmd" \
2606 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2607 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2608 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2609 CC="$lt_save_CC"
2610 CFLAGS="$lt_save_CFLAGS"
2611
2612 # Redirect the config.log output again, so that the ltconfig log is not
2613 # clobbered by the next message.
2614 exec 5>>./config.log
2615
2616   
2617
2618   
2619          
2620          
2621
2622
2623
2624 # Check for c++ or library specific bits that don't require linking.
2625 #GLIBCPP_CHECK_COMPILER_VERSION
2626 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2627 echo "configure:2628: checking for GNU make" >&5
2628 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2629   echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631   _cv_gnu_make_command='' ;
2632           for a in "${MAKE-make}" make gmake gnumake ; do
2633                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2634                   then
2635                           _cv_gnu_make_command=$a ;
2636                           break;
2637                   fi
2638           done ;
2639   
2640 fi
2641
2642 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2643   if test  "x$_cv_gnu_make_command" != "x"  ; then
2644           ifGNUmake='' ;
2645   else
2646           ifGNUmake='#' ;
2647   fi
2648   
2649
2650
2651 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2652 # Check whether --enable-debug or --disable-debug was given.
2653 if test "${enable_debug+set}" = set; then
2654   enableval="$enable_debug"
2655   case "${enableval}" in
2656  yes) enable_debug=yes ;;
2657  no)  enable_debug=no ;;
2658  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2659  esac
2660 else
2661   enable_debug=no
2662 fi
2663
2664 case "${enable_debug}" in
2665     yes) 
2666         DEBUG_FLAGS='-O0 -ggdb3'                        
2667         ;; 
2668     no)   
2669         DEBUG_FLAGS='-g'
2670         ;;
2671 esac
2672
2673
2674 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2675 echo "configure:2676: checking how to run the C preprocessor" >&5
2676 # On Suns, sometimes $CPP names a directory.
2677 if test -n "$CPP" && test -d "$CPP"; then
2678   CPP=
2679 fi
2680 if test -z "$CPP"; then
2681 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2682   echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684     # This must be in double quotes, not single quotes, because CPP may get
2685   # substituted into the Makefile and "${CC-cc}" will confuse make.
2686   CPP="${CC-cc} -E"
2687   # On the NeXT, cc -E runs the code through the compiler's parser,
2688   # not just through cpp.
2689   cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2692 #include <assert.h>
2693 Syntax Error
2694 EOF
2695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2696 { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2698 if test -z "$ac_err"; then
2699   :
2700 else
2701   echo "$ac_err" >&5
2702   echo "configure: failed program was:" >&5
2703   cat conftest.$ac_ext >&5
2704   rm -rf conftest*
2705   CPP="${CC-cc} -E -traditional-cpp"
2706   cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 #include <assert.h>
2710 Syntax Error
2711 EOF
2712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2716   :
2717 else
2718   echo "$ac_err" >&5
2719   echo "configure: failed program was:" >&5
2720   cat conftest.$ac_ext >&5
2721   rm -rf conftest*
2722   CPP="${CC-cc} -nologo -E"
2723   cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <assert.h>
2727 Syntax Error
2728 EOF
2729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2733   :
2734 else
2735   echo "$ac_err" >&5
2736   echo "configure: failed program was:" >&5
2737   cat conftest.$ac_ext >&5
2738   rm -rf conftest*
2739   CPP=/lib/cpp
2740 fi
2741 rm -f conftest*
2742 fi
2743 rm -f conftest*
2744 fi
2745 rm -f conftest*
2746   ac_cv_prog_CPP="$CPP"
2747 fi
2748   CPP="$ac_cv_prog_CPP"
2749 else
2750   ac_cv_prog_CPP="$CPP"
2751 fi
2752 echo "$ac_t""$CPP" 1>&6
2753
2754
2755   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2756 echo "configure:2757: checking for cstdio to use" >&5
2757   # Check whether --enable-cstdio or --disable-cstdio was given.
2758 if test "${enable_cstdio+set}" = set; then
2759   enableval="$enable_cstdio"
2760   if test x$enable_cstdio = xno; then
2761      enable_cstdio=stdio
2762   fi
2763 else
2764   enable_cstdio=stdio
2765 fi
2766
2767
2768   enable_cstdio_flag=$enable_cstdio
2769
2770     case x${enable_cstdio_flag} in
2771     xlibio)
2772       CSTDIO_H=config/io/c_io_libio.h
2773       BASIC_FILE_H=config/io/basic_file_libio.h
2774       BASIC_FILE_CC=config/io/basic_file_libio.cc
2775       echo "$ac_t""libio" 1>&6
2776
2777       # see if we are on a system with libio native (ie, linux)
2778       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2780 echo "configure:2781: checking for libio.h" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782   echo $ac_n "(cached) $ac_c" 1>&6
2783 else
2784   cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <libio.h>
2788 EOF
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2793   rm -rf conftest*
2794   eval "ac_cv_header_$ac_safe=yes"
2795 else
2796   echo "$ac_err" >&5
2797   echo "configure: failed program was:" >&5
2798   cat conftest.$ac_ext >&5
2799   rm -rf conftest*
2800   eval "ac_cv_header_$ac_safe=no"
2801 fi
2802 rm -f conftest*
2803 fi
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805   echo "$ac_t""yes" 1>&6
2806   has_libio=yes
2807 else
2808   echo "$ac_t""no" 1>&6
2809 has_libio=no
2810 fi
2811
2812
2813       # Need to check and see what version of glibc is being used. If
2814       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2815       # compile most of libio for linux systems.
2816       if test x$has_libio = x"yes"; then
2817         case "$target" in
2818           *-*-linux*)
2819               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2820 echo "configure:2821: checking for glibc version >= 2.2" >&5
2821               cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824
2825             #include <features.h>
2826               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2827                     ok
2828               #endif
2829               
2830 EOF
2831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2832   egrep "ok" >/dev/null 2>&1; then
2833   rm -rf conftest*
2834   glibc_satisfactory=yes
2835 else
2836   rm -rf conftest*
2837   glibc_satisfactory=no
2838 fi
2839 rm -f conftest*
2840
2841               echo "$ac_t""$glibc_satisfactory" 1>&6
2842             ;;
2843         esac
2844
2845         # XXX at the moment, admit defeat and force the recompilation
2846         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2847         glibc_satisfactory=no        
2848
2849         if test x$glibc_satisfactory = x"yes"; then
2850            need_libio=no
2851            need_wlibio=no        
2852         else
2853            need_libio=yes
2854            # bkoz XXX need to add checks to enable this
2855            # pme XXX here's a first pass at such a check
2856            if test x$enable_c_mbchar != xno; then
2857               need_wlibio=yes
2858            else
2859               need_wlibio=no
2860            fi
2861         fi
2862
2863       else
2864          # Using libio, but <libio.h> doesn't exist on the target system. . .
2865          need_libio=yes
2866          # bkoz XXX need to add checks to enable this
2867          # pme XXX here's a first pass at such a check
2868          if test x$enable_c_mbchar != xno; then
2869              need_wlibio=yes
2870          else
2871              need_wlibio=no
2872          fi
2873       fi
2874       ;;
2875     xstdio | x | xno | xnone | xyes)
2876       # default
2877       CSTDIO_H=config/io/c_io_stdio.h
2878       BASIC_FILE_H=config/io/basic_file_stdio.h
2879       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2880       echo "$ac_t""stdio" 1>&6
2881
2882       # We're not using stdio.
2883       need_libio=no
2884       need_wlibio=no
2885       ;;
2886     *)
2887       echo "$enable_cstdio is an unknown io package" 1>&2
2888       exit 1
2889       ;;
2890   esac
2891   
2892   
2893   
2894
2895   # 2000-08-04 bkoz hack
2896   CCODECVT_C=config/io/c_io_libio_codecvt.c
2897   
2898   # 2000-08-04 bkoz hack
2899
2900   
2901
2902 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2903   GLIBCPP_BUILD_LIBIO_TRUE=
2904   GLIBCPP_BUILD_LIBIO_FALSE='#'
2905 else
2906   GLIBCPP_BUILD_LIBIO_TRUE='#'
2907   GLIBCPP_BUILD_LIBIO_FALSE=
2908 fi
2909   
2910
2911 if test "$need_libio" = yes; then
2912   GLIBCPP_NEED_LIBIO_TRUE=
2913   GLIBCPP_NEED_LIBIO_FALSE='#'
2914 else
2915   GLIBCPP_NEED_LIBIO_TRUE='#'
2916   GLIBCPP_NEED_LIBIO_FALSE=
2917 fi
2918   
2919
2920 if test "$need_wlibio" = yes; then
2921   GLIBCPP_NEED_WLIBIO_TRUE=
2922   GLIBCPP_NEED_WLIBIO_FALSE='#'
2923 else
2924   GLIBCPP_NEED_WLIBIO_TRUE='#'
2925   GLIBCPP_NEED_WLIBIO_FALSE=
2926 fi
2927   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2928     libio_la=../libio/libio.la
2929   else
2930     libio_la=
2931   fi
2932   
2933
2934
2935   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2936 echo "configure:2937: checking for clocale to use" >&5
2937   # Check whether --enable-clocale or --disable-clocale was given.
2938 if test "${enable_clocale+set}" = set; then
2939   enableval="$enable_clocale"
2940   if test x$enable_clocale = xno; then
2941      enable_clocale=generic
2942   fi
2943 else
2944   enable_clocale=generic
2945 fi
2946
2947
2948   enable_clocale_flag=$enable_clocale
2949
2950     case x${enable_clocale_flag} in
2951     xgeneric)
2952       echo "$ac_t""generic" 1>&6
2953
2954       # Don't use gettext.
2955       USE_NLS=no
2956
2957       CLOCALE_H=config/locale/c_locale_generic.h
2958       CLOCALE_CC=config/locale/c_locale_generic.cc
2959       CCODECVT_H=config/locale/codecvt_specializations_generic.h
2960       CMESSAGES_H=config/locale/messages_members_generic.h
2961       CMESSAGES_CC=config/locale/messages_members_generic.cc
2962       CCOLLATE_CC=config/locale/collate_specializations_generic.cc
2963       ;;
2964     xgnu)
2965       echo "$ac_t""gnu" 1>&6
2966
2967       # Declare intention to use gettext, and add support for specific
2968       # languages.
2969       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2970       ALL_LINGUAS="de fr"
2971       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2972       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2973       USE_NLS=yes
2974
2975       # Export the build objects.
2976       for ling in $ALL_LINGUAS; do \
2977         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2978         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2979       done
2980       
2981       
2982
2983       CLOCALE_H=config/locale/c_locale_gnu.h
2984       CLOCALE_CC=config/locale/c_locale_gnu.cc
2985       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2986       CMESSAGES_H=config/locale/messages_members_gnu.h
2987       CMESSAGES_CC=config/locale/messages_members_gnu.cc
2988       CCOLLATE_CC=config/locale/collate_specializations_gnu.cc
2989       ;;
2990     xieee_1003.1)
2991       echo "$ac_t""generic" 1>&6
2992
2993       # Don't use gettext.
2994       USE_NLS=no
2995
2996       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
2997       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
2998       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2999       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3000       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3001       CCOLLATE_CC=config/locale/collate_specializations_generic.cc
3002       ;;
3003     *)
3004       echo "$enable_clocale is an unknown locale package" 1>&2
3005       exit 1
3006       ;;
3007   esac
3008
3009   # This is where the testsuite looks for locale catalogs, using the
3010   # -DLOCALEDIR define during testsuite compilation.
3011   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3012   
3013
3014   
3015   
3016   
3017   
3018   
3019   
3020   
3021
3022 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3023 if test "${enable_c_mbchar+set}" = set; then
3024   enableval="$enable_c_mbchar"
3025   case "$enableval" in
3026  yes) enable_c_mbchar=yes ;;
3027  no)  enable_c_mbchar=no ;;
3028  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3029  esac
3030 else
3031   enable_c_mbchar=yes
3032 fi
3033
3034   
3035   # Check whether --enable-c99 or --disable-c99 was given.
3036 if test "${enable_c99+set}" = set; then
3037   enableval="$enable_c99"
3038     case "$enableval" in
3039    yes) enable_c99=yes ;;
3040    no)  enable_c99=no ;;
3041    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3042    esac
3043 else
3044   enable_c99=yes
3045 fi
3046  
3047   
3048   ac_ext=C
3049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3050 ac_cpp='$CXXCPP $CPPFLAGS'
3051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3053 cross_compiling=$ac_cv_prog_cxx_cross
3054
3055
3056   # Check for the existence of <math.h> functions used if C99 is enabled.
3057   ac_c99_math=yes;
3058   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3059 echo "configure:3060: checking for ISO C99 support in <math.h>" >&5
3060   cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <math.h>
3064 int main() {
3065 fpclassify(0.0);
3066 ; return 0; }
3067 EOF
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3069   :
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -rf conftest*
3074   ac_c99_math=no
3075 fi
3076 rm -f conftest*
3077   cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <math.h>
3081 int main() {
3082 isfinite(0.0);
3083 ; return 0; }
3084 EOF
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086   :
3087 else
3088   echo "configure: failed program was:" >&5
3089   cat conftest.$ac_ext >&5
3090   rm -rf conftest*
3091   ac_c99_math=no
3092 fi
3093 rm -f conftest*
3094   cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <math.h>
3098 int main() {
3099 isinf(0.0);
3100 ; return 0; }
3101 EOF
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103   :
3104 else
3105   echo "configure: failed program was:" >&5
3106   cat conftest.$ac_ext >&5
3107   rm -rf conftest*
3108   ac_c99_math=no
3109 fi
3110 rm -f conftest*
3111   cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <math.h>
3115 int main() {
3116 isnan(0.0);
3117 ; return 0; }
3118 EOF
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120   :
3121 else
3122   echo "configure: failed program was:" >&5
3123   cat conftest.$ac_ext >&5
3124   rm -rf conftest*
3125   ac_c99_math=no
3126 fi
3127 rm -f conftest*
3128   cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <math.h>
3132 int main() {
3133 isnormal(0.0);
3134 ; return 0; }
3135 EOF
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3137   :
3138 else
3139   echo "configure: failed program was:" >&5
3140   cat conftest.$ac_ext >&5
3141   rm -rf conftest*
3142   ac_c99_math=no
3143 fi
3144 rm -f conftest*
3145   cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <math.h>
3149 int main() {
3150 signbit(0.0);
3151 ; return 0; }
3152 EOF
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154   :
3155 else
3156   echo "configure: failed program was:" >&5
3157   cat conftest.$ac_ext >&5
3158   rm -rf conftest*
3159   ac_c99_math=no
3160 fi
3161 rm -f conftest*
3162   cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 isgreater(0.0,0.0);
3168 ; return 0; }
3169 EOF
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171   :
3172 else
3173   echo "configure: failed program was:" >&5
3174   cat conftest.$ac_ext >&5
3175   rm -rf conftest*
3176   ac_c99_math=no
3177 fi
3178 rm -f conftest*
3179   cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <math.h>
3183 int main() {
3184 isgreaterequal(0.0,0.0);
3185 ; return 0; }
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188   :
3189 else
3190   echo "configure: failed program was:" >&5
3191   cat conftest.$ac_ext >&5
3192   rm -rf conftest*
3193   ac_c99_math=no
3194 fi
3195 rm -f conftest*
3196   cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <math.h>
3200 int main() {
3201 isless(0.0,0.0);
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   :
3206 else
3207   echo "configure: failed program was:" >&5
3208   cat conftest.$ac_ext >&5
3209   rm -rf conftest*
3210   ac_c99_math=no
3211 fi
3212 rm -f conftest*
3213   cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 islessequal(0.0,0.0);
3219 ; return 0; }
3220 EOF
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222   :
3223 else
3224   echo "configure: failed program was:" >&5
3225   cat conftest.$ac_ext >&5
3226   rm -rf conftest*
3227   ac_c99_math=no
3228 fi
3229 rm -f conftest*
3230   cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 islessgreater(0.0,0.0);
3236 ; return 0; }
3237 EOF
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239   :
3240 else
3241   echo "configure: failed program was:" >&5
3242   cat conftest.$ac_ext >&5
3243   rm -rf conftest*
3244   ac_c99_math=no
3245 fi
3246 rm -f conftest*
3247   cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 isunordered(0.0,0.0);
3253 ; return 0; }
3254 EOF
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256   :
3257 else
3258   echo "configure: failed program was:" >&5
3259   cat conftest.$ac_ext >&5
3260   rm -rf conftest*
3261   ac_c99_math=no
3262 fi
3263 rm -f conftest*
3264   echo "$ac_t""$ac_c99_math" 1>&6
3265
3266   # Check for the existence in <stdio.h> of vscanf, et. al.
3267   ac_c99_stdio=yes;
3268   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3269 echo "configure:3270: checking for ISO C99 support in <stdio.h>" >&5
3270   cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <stdio.h>
3274 int main() {
3275 snprintf("12", 0, "%i");
3276 ; return 0; }
3277 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279   :
3280 else
3281   echo "configure: failed program was:" >&5
3282   cat conftest.$ac_ext >&5
3283   rm -rf conftest*
3284   ac_c99_stdio=no
3285 fi
3286 rm -f conftest*
3287   cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <stdio.h>
3291                   #include <stdarg.h>
3292                   void foo(char* fmt, ...)
3293                   {va_list args; va_start(args, fmt);
3294                   vfscanf(stderr, "%i", args);}
3295 int main() {
3296
3297 ; return 0; }
3298 EOF
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300   :
3301 else
3302   echo "configure: failed program was:" >&5
3303   cat conftest.$ac_ext >&5
3304   rm -rf conftest*
3305   ac_c99_stdio=no
3306 fi
3307 rm -f conftest*
3308   cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <stdio.h>
3312                   #include <stdarg.h>
3313                   void foo(char* fmt, ...)
3314                   {va_list args; va_start(args, fmt);
3315                   vscanf("%i", args);}
3316 int main() {
3317
3318 ; return 0; }
3319 EOF
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321   :
3322 else
3323   echo "configure: failed program was:" >&5
3324   cat conftest.$ac_ext >&5
3325   rm -rf conftest*
3326   ac_c99_stdio=no
3327 fi
3328 rm -f conftest*
3329   cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <stdio.h>
3333                   #include <stdarg.h>
3334                   void foo(char* fmt, ...)
3335                   {va_list args; va_start(args, fmt);
3336                   vsnprintf(fmt, 0, "%i", args);}
3337 int main() {
3338
3339 ; return 0; }
3340 EOF
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342   :
3343 else
3344   echo "configure: failed program was:" >&5
3345   cat conftest.$ac_ext >&5
3346   rm -rf conftest*
3347   ac_c99_stdio=no
3348 fi
3349 rm -f conftest*
3350   cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <stdio.h>
3354                   #include <stdarg.h>
3355                   void foo(char* fmt, ...)
3356                   {va_list args; va_start(args, fmt);
3357                   vsscanf(fmt, "%i", args);}
3358 int main() {
3359
3360 ; return 0; }
3361 EOF
3362 if { (eval echo configure:3363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363   :
3364 else
3365   echo "configure: failed program was:" >&5
3366   cat conftest.$ac_ext >&5
3367   rm -rf conftest*
3368   ac_c99_stdio=no
3369 fi
3370 rm -f conftest*
3371   echo "$ac_t""$ac_c99_stdio" 1>&6
3372
3373   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3374   ac_c99_stdlib=yes;
3375   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3376 echo "configure:3377: checking for lldiv_t declaration" >&5
3377   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3378   echo $ac_n "(cached) $ac_c" 1>&6
3379 else
3380   
3381   cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 #include <stdlib.h>
3385 int main() {
3386  lldiv_t mydivt;
3387 ; return 0; }
3388 EOF
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3390   rm -rf conftest*
3391   ac_c99_lldiv_t=yes
3392 else
3393   echo "configure: failed program was:" >&5
3394   cat conftest.$ac_ext >&5
3395   rm -rf conftest*
3396   ac_c99_lldiv_t=no
3397 fi
3398 rm -f conftest*
3399   
3400 fi
3401
3402   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3403
3404   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3405 echo "configure:3406: checking for ISO C99 support in <stdlib.h>" >&5
3406   cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 int main() {
3411 char* tmp; strtof("gnu", &tmp);
3412 ; return 0; }
3413 EOF
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415   :
3416 else
3417   echo "configure: failed program was:" >&5
3418   cat conftest.$ac_ext >&5
3419   rm -rf conftest*
3420   ac_c99_stdlib=no
3421 fi
3422 rm -f conftest*
3423   cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdlib.h>
3427 int main() {
3428 char* tmp; strtold("gnu", &tmp);
3429 ; return 0; }
3430 EOF
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3432   :
3433 else
3434   echo "configure: failed program was:" >&5
3435   cat conftest.$ac_ext >&5
3436   rm -rf conftest*
3437   ac_c99_stdlib=no
3438 fi
3439 rm -f conftest*
3440   cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdlib.h>
3444 int main() {
3445 char* tmp; strtoll("gnu", &tmp, 10);
3446 ; return 0; }
3447 EOF
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449   :
3450 else
3451   echo "configure: failed program was:" >&5
3452   cat conftest.$ac_ext >&5
3453   rm -rf conftest*
3454   ac_c99_stdlib=no
3455 fi
3456 rm -f conftest*
3457   cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 #include <stdlib.h>
3461 int main() {
3462 char* tmp; strtoull("gnu", &tmp, 10);
3463 ; return 0; }
3464 EOF
3465 if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466   :
3467 else
3468   echo "configure: failed program was:" >&5
3469   cat conftest.$ac_ext >&5
3470   rm -rf conftest*
3471   ac_c99_stdlib=no
3472 fi
3473 rm -f conftest*
3474   cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <stdlib.h>
3478 int main() {
3479 llabs(10);
3480 ; return 0; }
3481 EOF
3482 if { (eval echo configure:3483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483   :
3484 else
3485   echo "configure: failed program was:" >&5
3486   cat conftest.$ac_ext >&5
3487   rm -rf conftest*
3488   ac_c99_stdlib=no
3489 fi
3490 rm -f conftest*
3491   cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <stdlib.h>
3495 int main() {
3496 lldiv(10,1);
3497 ; return 0; }
3498 EOF
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500   :
3501 else
3502   echo "configure: failed program was:" >&5
3503   cat conftest.$ac_ext >&5
3504   rm -rf conftest*
3505   ac_c99_stdlib=no
3506 fi
3507 rm -f conftest*
3508   cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdlib.h>
3512 int main() {
3513 atoll("10");
3514 ; return 0; }
3515 EOF
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517   :
3518 else
3519   echo "configure: failed program was:" >&5
3520   cat conftest.$ac_ext >&5
3521   rm -rf conftest*
3522   ac_c99_stdlib=no
3523 fi
3524 rm -f conftest*
3525   cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529 int main() {
3530 _Exit(0);
3531 ; return 0; }
3532 EOF
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534   :
3535 else
3536   echo "configure: failed program was:" >&5
3537   cat conftest.$ac_ext >&5
3538   rm -rf conftest*
3539   ac_c99_stdlib=no
3540 fi
3541 rm -f conftest*
3542   if test x"$ac_c99_lldiv_t" = x"no"; then
3543     ac_c99_stdlib=no; 
3544   fi; 
3545   echo "$ac_t""$ac_c99_stdlib" 1>&6
3546
3547   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3548   # XXX the wchar.h checks should be rolled into the general C99 bits.
3549   ac_c99_wchar=yes;
3550   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3551 echo "configure:3552: checking for additional ISO C99 support in <wchar.h>" >&5
3552   cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <wchar.h>
3556 int main() {
3557 wcstold(L"10.0", NULL);
3558 ; return 0; }
3559 EOF
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561   :
3562 else
3563   echo "configure: failed program was:" >&5
3564   cat conftest.$ac_ext >&5
3565   rm -rf conftest*
3566   ac_c99_wchar=no
3567 fi
3568 rm -f conftest*
3569   cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <wchar.h>
3573 int main() {
3574 wcstoll(L"10", NULL, 10);
3575 ; return 0; }
3576 EOF
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578   :
3579 else
3580   echo "configure: failed program was:" >&5
3581   cat conftest.$ac_ext >&5
3582   rm -rf conftest*
3583   ac_c99_wchar=no
3584 fi
3585 rm -f conftest*
3586   cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <wchar.h>
3590 int main() {
3591 wcstoull(L"10", NULL, 10);
3592 ; return 0; }
3593 EOF
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595   :
3596 else
3597   echo "configure: failed program was:" >&5
3598   cat conftest.$ac_ext >&5
3599   rm -rf conftest*
3600   ac_c99_wchar=no
3601 fi
3602 rm -f conftest*
3603   echo "$ac_t""$ac_c99_wchar" 1>&6
3604
3605   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3606 echo "configure:3607: checking for enabled ISO C99 support" >&5
3607   if test x"$ac_c99_math" = x"no" ||
3608      test x"$ac_c99_stdio" = x"no" ||
3609      test x"$ac_c99_stdlib" = x"no" ||
3610      test x"$ac_c99_wchar" = x"no"; then
3611     enable_c99=no; 
3612   fi; 
3613   echo "$ac_t""$enable_c99" 1>&6
3614
3615   # Option parsed, now set things appropriately
3616   if test x"$enable_c99" = x"yes"; then
3617     cat >> confdefs.h <<\EOF
3618 #define _GLIBCPP_USE_C99 1
3619 EOF
3620
3621   fi
3622
3623   ac_ext=c
3624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3628 cross_compiling=$ac_cv_prog_cc_cross
3629
3630
3631   
3632   # Check whether --enable-long-long or --disable-long-long was given.
3633 if test "${enable_long_long+set}" = set; then
3634   enableval="$enable_long_long"
3635     case "$enableval" in
3636    yes) enable_long_long=yes ;;
3637    no)  enable_long_long=no ;;
3638    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3639    esac
3640 else
3641   enable_long_long=yes
3642 fi
3643
3644   # iostreams require strtoll, strtoull to compile. If the
3645   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3646   # go ahead and allow long long to be used.
3647   if test x"$enable_c99" = x"no"; then
3648     enable_long_long=no; 
3649   fi
3650
3651   # Option parsed, now set things appropriately
3652   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3653 echo "configure:3654: checking for enabled long long support" >&5
3654   if test x"$enable_long_long" = xyes; then
3655     cat >> confdefs.h <<\EOF
3656 #define _GLIBCPP_USE_LONG_LONG 1
3657 EOF
3658
3659   fi
3660   echo "$ac_t""$enable_long_long" 1>&6
3661
3662 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3663 echo "configure:3664: checking for c header strategy to use" >&5
3664 # Check whether --enable-cheaders or --disable-cheaders was given.
3665 if test "${enable_cheaders+set}" = set; then
3666   enableval="$enable_cheaders"
3667   
3668   case "$enableval" in
3669    c) 
3670         enable_cheaders=c 
3671         ;;
3672    c_std)  
3673         enable_cheaders=c_std 
3674         ;;
3675    c_shadow)  
3676         enable_cheaders=c_shadow 
3677         ;;
3678    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3679         ;;
3680   esac
3681 else
3682   enable_cheaders=c_std
3683 fi
3684
3685   echo "$ac_t""$enable_cheaders" 1>&6
3686
3687     case "$enable_cheaders" in
3688     c_shadow) 
3689         CSHADOW_FLAGS="-fno-builtin"
3690         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3691         cat >> confdefs.h <<\EOF
3692 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3693 EOF
3694
3695         ;;
3696     c_std)   
3697         CSHADOW_FLAGS=""
3698         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3699         ;;
3700     c)   
3701         CSHADOW_FLAGS=""
3702         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3703         ;;
3704   esac
3705
3706   
3707   
3708   
3709
3710 if test "$enable_cheaders" = c_shadow; then
3711   GLIBCPP_USE_CSHADOW_TRUE=
3712   GLIBCPP_USE_CSHADOW_FALSE='#'
3713 else
3714   GLIBCPP_USE_CSHADOW_TRUE='#'
3715   GLIBCPP_USE_CSHADOW_FALSE=
3716 fi
3717
3718
3719   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3720 echo "configure:3721: checking for thread model used by GCC" >&5
3721   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3722   echo "$ac_t""$target_thread_file" 1>&6
3723
3724   if test $target_thread_file != single; then
3725     cat >> confdefs.h <<\EOF
3726 #define HAVE_GTHR_DEFAULT 1
3727 EOF
3728
3729     cat >> confdefs.h <<\EOF
3730 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3731 EOF
3732
3733   fi
3734
3735   glibcpp_thread_h=gthr-$target_thread_file.h
3736   
3737
3738 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3739 if test "${enable_cxx_flags+set}" = set; then
3740   enableval="$enable_cxx_flags"
3741   case "x$enableval" in
3742  xyes)   
3743         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3744  xno|x)  
3745         enable_cxx_flags='' ;;
3746  *)      
3747         enable_cxx_flags="$enableval" ;;
3748  esac
3749 else
3750   enable_cxx_flags='none'
3751 fi
3752
3753
3754 if test "$enable_cxx_flags" = "none"; then 
3755   enable_cxx_flags=''; 
3756 fi
3757
3758 if test -n "$enable_cxx_flags"; then
3759     for f in $enable_cxx_flags; do
3760         case "$f" in
3761             -fhonor-std)  ;;
3762             -*)  ;;
3763             *)   # and we're trying to pass /what/ exactly?
3764                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3765         esac
3766     done
3767 fi
3768 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3769
3770
3771
3772   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3773 echo "configure:3774: checking for exception model to use" >&5
3774   
3775   ac_ext=C
3776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3777 ac_cpp='$CXXCPP $CPPFLAGS'
3778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3780 cross_compiling=$ac_cv_prog_cxx_cross
3781
3782   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3783 if test "${enable_sjlj_exceptions+set}" = set; then
3784   enableval="$enable_sjlj_exceptions"
3785   :
3786 else
3787                        cat > conftest.$ac_ext << EOF
3788 #line 3789 "configure"
3789 struct S { ~S(); };
3790 void bar();
3791 void foo()
3792 {
3793   S s;
3794   bar();
3795 }
3796 EOF
3797    old_CXXFLAGS="$CXXFLAGS"  
3798    CXXFLAGS=-S
3799    if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3801        enable_sjlj_exceptions=yes
3802      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3803        enable_sjlj_exceptions=no
3804      fi
3805    fi
3806    CXXFLAGS="$old_CXXFLAGS"
3807    rm -f conftest*
3808 fi
3809
3810    if test x$enable_sjlj_exceptions = xyes; then
3811      cat >> confdefs.h <<\EOF
3812 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3813 EOF
3814
3815      ac_exception_model_name=sjlj
3816    elif test x$enable_sjlj_exceptions = xno; then
3817      ac_exception_model_name="call frame"
3818    else
3819      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3820    fi
3821    ac_ext=c
3822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3826 cross_compiling=$ac_cv_prog_cc_cross
3827
3828    echo "$ac_t""$ac_exception_model_name" 1>&6
3829
3830
3831
3832 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3833
3834   # We are being configured with some form of cross compiler.
3835   # mknumeric_limits may not work correctly, either because the
3836   # compiler may not run on this machine, may not be able to link
3837   # executables, or may produce executables we can't run on this
3838   # machine. Thus, just use the pre-generated include/bits/limits_generic.h
3839   GLIBCPP_IS_CROSS_COMPILING=1
3840
3841   # If Canadian cross, then don't pick up tools from the build
3842   # directory.
3843   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3844     CANADIAN=yes
3845   else
3846     CANADIAN=no
3847   fi
3848
3849   case "$target_alias" in
3850     *-linux*)
3851         # Construct linux crosses by hand, eliminating bits that need ld...
3852         # Check for available headers.
3853         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3854         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3855         fp.h locale.h float.h inttypes.h
3856 do
3857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_hdr" >&5
3860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3861   echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863   cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 #include <$ac_hdr>
3867 EOF
3868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3869 { (eval echo configure:3870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3871 if test -z "$ac_err"; then
3872   rm -rf conftest*
3873   eval "ac_cv_header_$ac_safe=yes"
3874 else
3875   echo "$ac_err" >&5
3876   echo "configure: failed program was:" >&5
3877   cat conftest.$ac_ext >&5
3878   rm -rf conftest*
3879   eval "ac_cv_header_$ac_safe=no"
3880 fi
3881 rm -f conftest*
3882 fi
3883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3884   echo "$ac_t""yes" 1>&6
3885     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3886   cat >> confdefs.h <<EOF
3887 #define $ac_tr_hdr 1
3888 EOF
3889  
3890 else
3891   echo "$ac_t""no" 1>&6
3892 fi
3893 done
3894
3895
3896         # GLIBCPP_CHECK_COMPILER_FEATURES
3897         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3898         
3899         
3900   # If we're not using GNU ld, then there's no point in even trying these
3901   # tests.  Check for that first.  We should have already tested for gld
3902   # by now (in libtool), but require it now just to be safe...
3903   SECTION_LDFLAGS=''
3904   OPT_LDFLAGS=''
3905   
3906
3907   # Set --gc-sections.
3908   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3909     # GNU ld it is!  Joy and bunny rabbits!
3910
3911     # All these tests are for C++; save the language and the compiler flags.
3912     # Need to do this so that g++ won't try to link in libstdc++
3913     ac_test_CFLAGS="${CFLAGS+set}"
3914     ac_save_CFLAGS="$CFLAGS"
3915     CFLAGS='-x c++  -Wl,--gc-sections'
3916
3917     # Check for -Wl,--gc-sections
3918     # XXX This test is broken at the moment, as symbols required for
3919     # linking are now in libsupc++ (not built yet.....). In addition, 
3920     # this test has cored on solaris in the past. In addition,
3921     # --gc-sections doesn't really work at the moment (keeps on discarding
3922     # used sections, first .eh_frame and now some of the glibc sections for
3923     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3924     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3925 echo "configure:3926: checking for ld that supports -Wl,--gc-sections" >&5
3926     if test "$cross_compiling" = yes; then
3927   ac_sectionLDflags=yes
3928 else
3929   cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932
3933      int main(void) 
3934      {
3935        try { throw 1; }
3936        catch (...) { };
3937        return 0;
3938      }
3939     
3940 EOF
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3942 then
3943   ac_sectionLDflags=yes
3944 else
3945   echo "configure: failed program was:" >&5
3946   cat conftest.$ac_ext >&5
3947   rm -fr conftest*
3948   ac_sectionLFflags=no
3949 fi
3950 rm -fr conftest*
3951 fi
3952
3953     if test "$ac_test_CFLAGS" = set; then
3954       CFLAGS="$ac_save_CFLAGS"
3955     else
3956       # this is the suspicious part
3957       CFLAGS=''
3958     fi
3959     if test "$ac_sectionLDflags" = "yes"; then
3960       SECTION_LDFLAGS='-Wl,--gc-sections'
3961     fi
3962     echo "$ac_t""$ac_sectionLDflags" 1>&6
3963   fi
3964
3965   # Set linker optimization flags.
3966   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3967      test x"$enable_debug" = x"no"; then
3968     OPT_LDFLAGS='-Wl,-O1'
3969   fi
3970
3971   
3972   
3973
3974         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3975         # GLIBCPP_CHECK_MATH_SUPPORT
3976         cat >> confdefs.h <<\EOF
3977 #define HAVE_ACOSF 1
3978 EOF
3979
3980         cat >> confdefs.h <<\EOF
3981 #define HAVE_ASINF 1
3982 EOF
3983
3984         cat >> confdefs.h <<\EOF
3985 #define HAVE_ATAN2F 1
3986 EOF
3987
3988         cat >> confdefs.h <<\EOF
3989 #define HAVE_ATANF 1
3990 EOF
3991
3992         cat >> confdefs.h <<\EOF
3993 #define HAVE_CEILF 1
3994 EOF
3995
3996         cat >> confdefs.h <<\EOF
3997 #define HAVE_COPYSIGN 1
3998 EOF
3999
4000         cat >> confdefs.h <<\EOF
4001 #define HAVE_COPYSIGNF 1
4002 EOF
4003
4004         cat >> confdefs.h <<\EOF
4005 #define HAVE_COSF 1
4006 EOF
4007
4008         cat >> confdefs.h <<\EOF
4009 #define HAVE_COSHF 1
4010 EOF
4011
4012         cat >> confdefs.h <<\EOF
4013 #define HAVE_EXPF 1
4014 EOF
4015
4016         cat >> confdefs.h <<\EOF
4017 #define HAVE_FABSF 1
4018 EOF
4019
4020         cat >> confdefs.h <<\EOF
4021 #define HAVE_FINITE 1
4022 EOF
4023
4024         cat >> confdefs.h <<\EOF
4025 #define HAVE_FINITEF 1
4026 EOF
4027
4028         cat >> confdefs.h <<\EOF
4029 #define HAVE_FLOORF 1
4030 EOF
4031
4032         cat >> confdefs.h <<\EOF
4033 #define HAVE_FMODF 1
4034 EOF
4035
4036         cat >> confdefs.h <<\EOF
4037 #define HAVE_FREXPF 1
4038 EOF
4039
4040         cat >> confdefs.h <<\EOF
4041 #define HAVE_ISINF 1
4042 EOF
4043
4044         cat >> confdefs.h <<\EOF
4045 #define HAVE_ISINFF 1
4046 EOF
4047
4048         cat >> confdefs.h <<\EOF
4049 #define HAVE_ISNAN 1
4050 EOF
4051
4052         cat >> confdefs.h <<\EOF
4053 #define HAVE_ISNANF 1
4054 EOF
4055
4056         cat >> confdefs.h <<\EOF
4057 #define HAVE_LDEXPF 1
4058 EOF
4059
4060         cat >> confdefs.h <<\EOF
4061 #define HAVE_LOG10F 1
4062 EOF
4063
4064         cat >> confdefs.h <<\EOF
4065 #define HAVE_LOGF 1
4066 EOF
4067
4068         cat >> confdefs.h <<\EOF
4069 #define HAVE_MODFF 1
4070 EOF
4071
4072         cat >> confdefs.h <<\EOF
4073 #define HAVE_POWF 1
4074 EOF
4075
4076         cat >> confdefs.h <<\EOF
4077 #define HAVE_SINCOS 1
4078 EOF
4079
4080         cat >> confdefs.h <<\EOF
4081 #define HAVE_SINCOSF 1
4082 EOF
4083
4084         cat >> confdefs.h <<\EOF
4085 #define HAVE_SINF 1
4086 EOF
4087
4088         cat >> confdefs.h <<\EOF
4089 #define HAVE_SINHF 1
4090 EOF
4091
4092         cat >> confdefs.h <<\EOF
4093 #define HAVE_SQRTF 1
4094 EOF
4095
4096         cat >> confdefs.h <<\EOF
4097 #define HAVE_TANF 1
4098 EOF
4099
4100         cat >> confdefs.h <<\EOF
4101 #define HAVE_TANHF 1
4102 EOF
4103
4104
4105         # At some point, we should differentiate between architectures
4106         # like x86, which have long double versions, and alpha/powerpc/etc.,
4107         # which don't. For the time being, punt.
4108         if test x"long_double_math_on_this_cpu" = x"yes"; then
4109           cat >> confdefs.h <<\EOF
4110 #define HAVE_ACOSL 1
4111 EOF
4112
4113           cat >> confdefs.h <<\EOF
4114 #define HAVE_ASINL 1
4115 EOF
4116
4117           cat >> confdefs.h <<\EOF
4118 #define HAVE_ATAN2L 1
4119 EOF
4120
4121           cat >> confdefs.h <<\EOF
4122 #define HAVE_ATANL 1
4123 EOF
4124
4125           cat >> confdefs.h <<\EOF
4126 #define HAVE_CEILL 1
4127 EOF
4128
4129           cat >> confdefs.h <<\EOF
4130 #define HAVE_COPYSIGNL 1
4131 EOF
4132
4133           cat >> confdefs.h <<\EOF
4134 #define HAVE_COSL 1
4135 EOF
4136
4137           cat >> confdefs.h <<\EOF
4138 #define HAVE_COSHL 1
4139 EOF
4140
4141           cat >> confdefs.h <<\EOF
4142 #define HAVE_EXPL 1
4143 EOF
4144
4145           cat >> confdefs.h <<\EOF
4146 #define HAVE_FABSL 1
4147 EOF
4148
4149           cat >> confdefs.h <<\EOF
4150 #define HAVE_FINITEL 1
4151 EOF
4152
4153           cat >> confdefs.h <<\EOF
4154 #define HAVE_FLOORL 1
4155 EOF
4156
4157           cat >> confdefs.h <<\EOF
4158 #define HAVE_FMODL 1
4159 EOF
4160
4161           cat >> confdefs.h <<\EOF
4162 #define HAVE_FREXPL 1
4163 EOF
4164
4165           cat >> confdefs.h <<\EOF
4166 #define HAVE_ISINFL 1
4167 EOF
4168
4169           cat >> confdefs.h <<\EOF
4170 #define HAVE_ISNANL 1
4171 EOF
4172
4173           cat >> confdefs.h <<\EOF
4174 #define HAVE_LDEXPL 1
4175 EOF
4176
4177           cat >> confdefs.h <<\EOF
4178 #define HAVE_LOG10L 1
4179 EOF
4180
4181           cat >> confdefs.h <<\EOF
4182 #define HAVE_LOGL 1
4183 EOF
4184
4185           cat >> confdefs.h <<\EOF
4186 #define HAVE_MODFL 1
4187 EOF
4188
4189           cat >> confdefs.h <<\EOF
4190 #define HAVE_POWL 1
4191 EOF
4192
4193           cat >> confdefs.h <<\EOF
4194 #define HAVE_SINCOSL 1
4195 EOF
4196
4197           cat >> confdefs.h <<\EOF
4198 #define HAVE_SINL 1
4199 EOF
4200
4201           cat >> confdefs.h <<\EOF
4202 #define HAVE_SINHL 1
4203 EOF
4204
4205           cat >> confdefs.h <<\EOF
4206 #define HAVE_SQRTL 1
4207 EOF
4208
4209           cat >> confdefs.h <<\EOF
4210 #define HAVE_TANL 1
4211 EOF
4212
4213           cat >> confdefs.h <<\EOF
4214 #define HAVE_TANHL 1
4215 EOF
4216
4217         fi
4218         
4219     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4220 echo "configure:4221: checking for main in -lm" >&5
4221 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4223   echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225   ac_save_LIBS="$LIBS"
4226 LIBS="-lm  $LIBS"
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230
4231 int main() {
4232 main()
4233 ; return 0; }
4234 EOF
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236   rm -rf conftest*
4237   eval "ac_cv_lib_$ac_lib_var=yes"
4238 else
4239   echo "configure: failed program was:" >&5
4240   cat conftest.$ac_ext >&5
4241   rm -rf conftest*
4242   eval "ac_cv_lib_$ac_lib_var=no"
4243 fi
4244 rm -f conftest*
4245 LIBS="$ac_save_LIBS"
4246
4247 fi
4248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4249   echo "$ac_t""yes" 1>&6
4250     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4251     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4252   cat >> confdefs.h <<EOF
4253 #define $ac_tr_lib 1
4254 EOF
4255
4256   LIBS="-lm $LIBS"
4257
4258 else
4259   echo "$ac_t""no" 1>&6
4260 fi
4261
4262   for ac_func in nan copysignf
4263 do
4264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4265 echo "configure:4266: checking for $ac_func" >&5
4266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4267   echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269   cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4272 /* System header to define __stub macros and hopefully few prototypes,
4273     which can conflict with char $ac_func(); below.  */
4274 #include <assert.h>
4275 /* Override any gcc2 internal prototype to avoid an error.  */
4276 /* We use char because int might match the return type of a gcc2
4277     builtin and then its argument prototype would still apply.  */
4278 char $ac_func();
4279
4280 int main() {
4281
4282 /* The GNU C library defines this for functions which it implements
4283     to always fail with ENOSYS.  Some functions are actually named
4284     something starting with __ and the normal name is an alias.  */
4285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4286 choke me
4287 #else
4288 $ac_func();
4289 #endif
4290
4291 ; return 0; }
4292 EOF
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4294   rm -rf conftest*
4295   eval "ac_cv_func_$ac_func=yes"
4296 else
4297   echo "configure: failed program was:" >&5
4298   cat conftest.$ac_ext >&5
4299   rm -rf conftest*
4300   eval "ac_cv_func_$ac_func=no"
4301 fi
4302 rm -f conftest*
4303 fi
4304
4305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4306   echo "$ac_t""yes" 1>&6
4307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4308   cat >> confdefs.h <<EOF
4309 #define $ac_tr_func 1
4310 EOF
4311  
4312 else
4313   echo "$ac_t""no" 1>&6
4314 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4315 fi
4316 done
4317
4318
4319
4320           USE_COMPLEX_LONG_DOUBLE=no
4321   if test x$ac_cv_func_copysignl = x"yes"; then
4322     USE_COMPLEX_LONG_DOUBLE=yes
4323     for ac_func in signbitl
4324 do
4325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4326 echo "configure:4327: checking for $ac_func" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4328   echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4330   cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* System header to define __stub macros and hopefully few prototypes,
4334     which can conflict with char $ac_func(); below.  */
4335 #include <assert.h>
4336 /* Override any gcc2 internal prototype to avoid an error.  */
4337 /* We use char because int might match the return type of a gcc2
4338     builtin and then its argument prototype would still apply.  */
4339 char $ac_func();
4340
4341 int main() {
4342
4343 /* The GNU C library defines this for functions which it implements
4344     to always fail with ENOSYS.  Some functions are actually named
4345     something starting with __ and the normal name is an alias.  */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4347 choke me
4348 #else
4349 $ac_func();
4350 #endif
4351
4352 ; return 0; }
4353 EOF
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355   rm -rf conftest*
4356   eval "ac_cv_func_$ac_func=yes"
4357 else
4358   echo "configure: failed program was:" >&5
4359   cat conftest.$ac_ext >&5
4360   rm -rf conftest*
4361   eval "ac_cv_func_$ac_func=no"
4362 fi
4363 rm -f conftest*
4364 fi
4365
4366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4367   echo "$ac_t""yes" 1>&6
4368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4369   cat >> confdefs.h <<EOF
4370 #define $ac_tr_func 1
4371 EOF
4372  
4373 else
4374   echo "$ac_t""no" 1>&6
4375 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4376 fi
4377 done
4378
4379
4380   fi
4381
4382   
4383
4384         
4385
4386       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4387 echo "configure:4388: checking for mbstate_t" >&5
4388   cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 #include <wchar.h>
4392 int main() {
4393 mbstate_t teststate;
4394 ; return 0; }
4395 EOF
4396 if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4397   rm -rf conftest*
4398   have_mbstate_t=yes
4399 else
4400   echo "configure: failed program was:" >&5
4401   cat conftest.$ac_ext >&5
4402   rm -rf conftest*
4403   have_mbstate_t=no
4404 fi
4405 rm -f conftest*
4406   echo "$ac_t""$have_mbstate_t" 1>&6
4407   if test x"$have_mbstate_t" = xyes; then
4408     cat >> confdefs.h <<\EOF
4409 #define HAVE_MBSTATE_T 1
4410 EOF
4411
4412   fi
4413
4414     for ac_hdr in wchar.h
4415 do
4416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4418 echo "configure:4419: checking for $ac_hdr" >&5
4419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4420   echo $ac_n "(cached) $ac_c" 1>&6
4421 else
4422   cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 #include <$ac_hdr>
4426 EOF
4427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4428 { (eval echo configure:4429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4430 if test -z "$ac_err"; then
4431   rm -rf conftest*
4432   eval "ac_cv_header_$ac_safe=yes"
4433 else
4434   echo "$ac_err" >&5
4435   echo "configure: failed program was:" >&5
4436   cat conftest.$ac_ext >&5
4437   rm -rf conftest*
4438   eval "ac_cv_header_$ac_safe=no"
4439 fi
4440 rm -f conftest*
4441 fi
4442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4443   echo "$ac_t""yes" 1>&6
4444     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4445   cat >> confdefs.h <<EOF
4446 #define $ac_tr_hdr 1
4447 EOF
4448  ac_has_wchar_h=yes
4449 else
4450   echo "$ac_t""no" 1>&6
4451 ac_has_wchar_h=no
4452 fi
4453 done
4454
4455   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4457 echo "configure:4458: checking for wctype.h" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459   echo $ac_n "(cached) $ac_c" 1>&6
4460 else
4461   cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 #include <wctype.h>
4465 EOF
4466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4470   rm -rf conftest*
4471   eval "ac_cv_header_$ac_safe=yes"
4472 else
4473   echo "$ac_err" >&5
4474   echo "configure: failed program was:" >&5
4475   cat conftest.$ac_ext >&5
4476   rm -rf conftest*
4477   eval "ac_cv_header_$ac_safe=no"
4478 fi
4479 rm -f conftest*
4480 fi
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482   echo "$ac_t""yes" 1>&6
4483   ac_has_wctype_h=yes
4484 else
4485   echo "$ac_t""no" 1>&6
4486 ac_has_wctype_h=no
4487 fi
4488
4489   
4490     if test x"$ac_has_wchar_h" = xyes &&
4491      test x"$ac_has_wctype_h" = xyes &&
4492      test x"$enable_c_mbchar" != xno; then
4493       
4494             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4495 echo "configure:4496: checking for WCHAR_MIN and WCHAR_MAX" >&5
4496     cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 #include <wchar.h>
4500 int main() {
4501 int i = WCHAR_MIN; int j = WCHAR_MAX;
4502 ; return 0; }
4503 EOF
4504 if { (eval echo configure:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4505   rm -rf conftest*
4506   has_wchar_minmax=yes
4507 else
4508   echo "configure: failed program was:" >&5
4509   cat conftest.$ac_ext >&5
4510   rm -rf conftest*
4511   has_wchar_minmax=no
4512 fi
4513 rm -f conftest*
4514     echo "$ac_t""$has_wchar_minmax" 1>&6
4515     
4516             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4517 echo "configure:4518: checking for WEOF" >&5
4518     cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521
4522       #include <wchar.h>
4523       #include <stddef.h>
4524 int main() {
4525 wint_t i = WEOF;
4526 ; return 0; }
4527 EOF
4528 if { (eval echo configure:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4529   rm -rf conftest*
4530   has_weof=yes
4531 else
4532   echo "configure: failed program was:" >&5
4533   cat conftest.$ac_ext >&5
4534   rm -rf conftest*
4535   has_weof=no
4536 fi
4537 rm -f conftest*
4538     echo "$ac_t""$has_weof" 1>&6
4539   
4540         ac_wfuncs=yes
4541     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4542 do
4543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4544 echo "configure:4545: checking for $ac_func" >&5
4545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4546   echo $ac_n "(cached) $ac_c" 1>&6
4547 else
4548   cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 /* System header to define __stub macros and hopefully few prototypes,
4552     which can conflict with char $ac_func(); below.  */
4553 #include <assert.h>
4554 /* Override any gcc2 internal prototype to avoid an error.  */
4555 /* We use char because int might match the return type of a gcc2
4556     builtin and then its argument prototype would still apply.  */
4557 char $ac_func();
4558
4559 int main() {
4560
4561 /* The GNU C library defines this for functions which it implements
4562     to always fail with ENOSYS.  Some functions are actually named
4563     something starting with __ and the normal name is an alias.  */
4564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565 choke me
4566 #else
4567 $ac_func();
4568 #endif
4569
4570 ; return 0; }
4571 EOF
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573   rm -rf conftest*
4574   eval "ac_cv_func_$ac_func=yes"
4575 else
4576   echo "configure: failed program was:" >&5
4577   cat conftest.$ac_ext >&5
4578   rm -rf conftest*
4579   eval "ac_cv_func_$ac_func=no"
4580 fi
4581 rm -f conftest*
4582 fi
4583
4584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4585   echo "$ac_t""yes" 1>&6
4586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4587   cat >> confdefs.h <<EOF
4588 #define $ac_tr_func 1
4589 EOF
4590  
4591 else
4592   echo "$ac_t""no" 1>&6
4593 \
4594     ac_wfuncs=no
4595 fi
4596 done
4597
4598   
4599         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4600     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4601     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4602     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4603     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4604     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4605 do
4606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_func" >&5
4608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4609   echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611   cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 /* System header to define __stub macros and hopefully few prototypes,
4615     which can conflict with char $ac_func(); below.  */
4616 #include <assert.h>
4617 /* Override any gcc2 internal prototype to avoid an error.  */
4618 /* We use char because int might match the return type of a gcc2
4619     builtin and then its argument prototype would still apply.  */
4620 char $ac_func();
4621
4622 int main() {
4623
4624 /* The GNU C library defines this for functions which it implements
4625     to always fail with ENOSYS.  Some functions are actually named
4626     something starting with __ and the normal name is an alias.  */
4627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4628 choke me
4629 #else
4630 $ac_func();
4631 #endif
4632
4633 ; return 0; }
4634 EOF
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4636   rm -rf conftest*
4637   eval "ac_cv_func_$ac_func=yes"
4638 else
4639   echo "configure: failed program was:" >&5
4640   cat conftest.$ac_ext >&5
4641   rm -rf conftest*
4642   eval "ac_cv_func_$ac_func=no"
4643 fi
4644 rm -f conftest*
4645 fi
4646
4647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4648   echo "$ac_t""yes" 1>&6
4649     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4650   cat >> confdefs.h <<EOF
4651 #define $ac_tr_func 1
4652 EOF
4653  
4654 else
4655   echo "$ac_t""no" 1>&6
4656 \
4657     ac_wfuncs=no
4658 fi
4659 done
4660
4661
4662     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4663 echo "configure:4664: checking for ISO C99 wchar_t support" >&5
4664     if test x"$has_weof" = xyes &&
4665        test x"$has_wchar_minmax" = xyes &&
4666        test x"$ac_wfuncs" = xyes; then
4667       ac_isoC99_wchar_t=yes
4668     else
4669       ac_isoC99_wchar_t=no
4670     fi
4671     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4672   
4673             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4674 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4675 echo "configure:4676: checking for iconv.h" >&5
4676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4677   echo $ac_n "(cached) $ac_c" 1>&6
4678 else
4679   cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <iconv.h>
4683 EOF
4684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4685 { (eval echo configure:4686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4687 if test -z "$ac_err"; then
4688   rm -rf conftest*
4689   eval "ac_cv_header_$ac_safe=yes"
4690 else
4691   echo "$ac_err" >&5
4692   echo "configure: failed program was:" >&5
4693   cat conftest.$ac_ext >&5
4694   rm -rf conftest*
4695   eval "ac_cv_header_$ac_safe=no"
4696 fi
4697 rm -f conftest*
4698 fi
4699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4700   echo "$ac_t""yes" 1>&6
4701   ac_has_iconv_h=yes
4702 else
4703   echo "$ac_t""no" 1>&6
4704 ac_has_iconv_h=no
4705 fi
4706
4707     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4708 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4709 echo "configure:4710: checking for langinfo.h" >&5
4710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4711   echo $ac_n "(cached) $ac_c" 1>&6
4712 else
4713   cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 #include <langinfo.h>
4717 EOF
4718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4719 { (eval echo configure:4720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4721 if test -z "$ac_err"; then
4722   rm -rf conftest*
4723   eval "ac_cv_header_$ac_safe=yes"
4724 else
4725   echo "$ac_err" >&5
4726   echo "configure: failed program was:" >&5
4727   cat conftest.$ac_ext >&5
4728   rm -rf conftest*
4729   eval "ac_cv_header_$ac_safe=no"
4730 fi
4731 rm -f conftest*
4732 fi
4733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4734   echo "$ac_t""yes" 1>&6
4735   ac_has_langinfo_h=yes
4736 else
4737   echo "$ac_t""no" 1>&6
4738 ac_has_langinfo_h=no
4739 fi
4740
4741
4742         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4743 echo "configure:4744: checking for iconv in -liconv" >&5
4744 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4746   echo $ac_n "(cached) $ac_c" 1>&6
4747 else
4748   ac_save_LIBS="$LIBS"
4749 LIBS="-liconv  $LIBS"
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error.  */
4754 /* We use char because int might match the return type of a gcc2
4755     builtin and then its argument prototype would still apply.  */
4756 char iconv();
4757
4758 int main() {
4759 iconv()
4760 ; return 0; }
4761 EOF
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4763   rm -rf conftest*
4764   eval "ac_cv_lib_$ac_lib_var=yes"
4765 else
4766   echo "configure: failed program was:" >&5
4767   cat conftest.$ac_ext >&5
4768   rm -rf conftest*
4769   eval "ac_cv_lib_$ac_lib_var=no"
4770 fi
4771 rm -f conftest*
4772 LIBS="$ac_save_LIBS"
4773
4774 fi
4775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4776   echo "$ac_t""yes" 1>&6
4777   libiconv="-liconv"
4778 else
4779   echo "$ac_t""no" 1>&6
4780 fi
4781
4782     ac_save_LIBS="$LIBS"
4783     LIBS="$LIBS $libiconv"
4784
4785     for ac_func in iconv_open iconv_close iconv nl_langinfo
4786 do
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796     which can conflict with char $ac_func(); below.  */
4797 #include <assert.h>
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 /* We use char because int might match the return type of a gcc2
4800     builtin and then its argument prototype would still apply.  */
4801 char $ac_func();
4802
4803 int main() {
4804
4805 /* The GNU C library defines this for functions which it implements
4806     to always fail with ENOSYS.  Some functions are actually named
4807     something starting with __ and the normal name is an alias.  */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4809 choke me
4810 #else
4811 $ac_func();
4812 #endif
4813
4814 ; return 0; }
4815 EOF
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817   rm -rf conftest*
4818   eval "ac_cv_func_$ac_func=yes"
4819 else
4820   echo "configure: failed program was:" >&5
4821   cat conftest.$ac_ext >&5
4822   rm -rf conftest*
4823   eval "ac_cv_func_$ac_func=no"
4824 fi
4825 rm -f conftest*
4826 fi
4827
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829   echo "$ac_t""yes" 1>&6
4830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831   cat >> confdefs.h <<EOF
4832 #define $ac_tr_func 1
4833 EOF
4834  \
4835     ac_XPG2funcs=yes
4836 else
4837   echo "$ac_t""no" 1>&6
4838 ac_XPG2funcs=no
4839 fi
4840 done
4841
4842   
4843     LIBS="$ac_save_LIBS"
4844
4845     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4846 echo "configure:4847: checking for XPG2 wchar_t support" >&5
4847     if test x"$ac_has_iconv_h" = xyes &&
4848        test x"$ac_has_langinfo_h" = xyes &&
4849        test x"$ac_XPG2funcs" = xyes; then
4850       ac_XPG2_wchar_t=yes
4851     else
4852       ac_XPG2_wchar_t=no
4853     fi
4854     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4855   
4856             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4857 echo "configure:4858: checking for enabled wchar_t specializations" >&5
4858     if test x"$ac_isoC99_wchar_t" = xyes &&
4859        test x"$ac_XPG2_wchar_t" = xyes; then
4860       cat >> confdefs.h <<\EOF
4861 #define _GLIBCPP_USE_WCHAR_T 1
4862 EOF
4863
4864       echo "$ac_t"""yes"" 1>&6
4865     else
4866       echo "$ac_t"""no"" 1>&6
4867     fi
4868   else
4869         echo "configure: warning: wchar_t support disabled." 1>&2
4870   fi
4871
4872         os_include_dir="config/os/gnu-linux"
4873         # GLIBCPP_CHECK_STDLIB_SUPPORT
4874         cat >> confdefs.h <<\EOF
4875 #define HAVE_STRTOF 1
4876 EOF
4877         
4878         cat >> confdefs.h <<\EOF
4879 #define HAVE_STRTOLD 1
4880 EOF
4881         
4882         # AC_FUNC_MMAP
4883         cat >> confdefs.h <<\EOF
4884 #define HAVE_MMAP 1
4885 EOF
4886
4887         ;;
4888     *)
4889         # We assume newlib.  This lets us hard-code the functions we know
4890         # we'll have.
4891         cat >> confdefs.h <<\EOF
4892 #define HAVE_FINITE 1
4893 EOF
4894
4895         cat >> confdefs.h <<\EOF
4896 #define HAVE_ISNAN 1
4897 EOF
4898
4899         cat >> confdefs.h <<\EOF
4900 #define HAVE_ISNANF 1
4901 EOF
4902
4903         cat >> confdefs.h <<\EOF
4904 #define HAVE_ISINF 1
4905 EOF
4906
4907         cat >> confdefs.h <<\EOF
4908 #define HAVE_ISINFF 1
4909 EOF
4910
4911
4912         os_include_dir="config/os/newlib"
4913
4914         # need to check for faster f versions of math functions, ie sinf?
4915         ;;
4916   esac
4917 else
4918
4919   # We are being configured natively. We can do more elaborate tests
4920   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4921   # working.
4922   GLIBCPP_IS_CROSS_COMPILING=0
4923   CANADIAN=no
4924
4925   # Check for available headers.
4926   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4927   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4928 do
4929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4931 echo "configure:4932: checking for $ac_hdr" >&5
4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4933   echo $ac_n "(cached) $ac_c" 1>&6
4934 else
4935   cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 #include <$ac_hdr>
4939 EOF
4940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4941 { (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4943 if test -z "$ac_err"; then
4944   rm -rf conftest*
4945   eval "ac_cv_header_$ac_safe=yes"
4946 else
4947   echo "$ac_err" >&5
4948   echo "configure: failed program was:" >&5
4949   cat conftest.$ac_ext >&5
4950   rm -rf conftest*
4951   eval "ac_cv_header_$ac_safe=no"
4952 fi
4953 rm -f conftest*
4954 fi
4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4956   echo "$ac_t""yes" 1>&6
4957     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4958   cat >> confdefs.h <<EOF
4959 #define $ac_tr_hdr 1
4960 EOF
4961  
4962 else
4963   echo "$ac_t""no" 1>&6
4964 fi
4965 done
4966
4967
4968   
4969   # All these tests are for C++; save the language and the compiler flags.
4970   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4971   # found in GLIBCPP_CONFIGURE.
4972   
4973   ac_ext=C
4974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4975 ac_cpp='$CXXCPP $CPPFLAGS'
4976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4978 cross_compiling=$ac_cv_prog_cxx_cross
4979
4980   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4981   ac_save_CXXFLAGS="$CXXFLAGS"
4982
4983   # Check for maintainer-mode bits.
4984   if test x"$USE_MAINTAINER_MODE" = xno; then
4985     WERROR=''
4986   else
4987     WERROR='-Werror'
4988   fi
4989
4990   # Check for -ffunction-sections -fdata-sections
4991   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4992 echo "configure:4993: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4993   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4994   cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997
4998 int main() {
4999 int foo;
5000   
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5004   rm -rf conftest*
5005   ac_fdsections=yes
5006 else
5007   echo "configure: failed program was:" >&5
5008   cat conftest.$ac_ext >&5
5009   rm -rf conftest*
5010   ac_fdsections=no
5011 fi
5012 rm -f conftest*
5013   if test "$ac_test_CXXFLAGS" = set; then
5014     CXXFLAGS="$ac_save_CXXFLAGS"
5015   else
5016     # this is the suspicious part
5017     CXXFLAGS=''
5018   fi
5019   if test x"$ac_fdsections" = x"yes" &&
5020      test x"$enable_debug" = x"no"; then
5021     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5022   fi
5023   echo "$ac_t""$ac_fdsections" 1>&6
5024
5025   ac_ext=c
5026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5030 cross_compiling=$ac_cv_prog_cc_cross
5031
5032   
5033   
5034
5035   
5036   # If we're not using GNU ld, then there's no point in even trying these
5037   # tests.  Check for that first.  We should have already tested for gld
5038   # by now (in libtool), but require it now just to be safe...
5039   SECTION_LDFLAGS=''
5040   OPT_LDFLAGS=''
5041   
5042
5043   # Set --gc-sections.
5044   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5045     # GNU ld it is!  Joy and bunny rabbits!
5046
5047     # All these tests are for C++; save the language and the compiler flags.
5048     # Need to do this so that g++ won't try to link in libstdc++
5049     ac_test_CFLAGS="${CFLAGS+set}"
5050     ac_save_CFLAGS="$CFLAGS"
5051     CFLAGS='-x c++  -Wl,--gc-sections'
5052
5053     # Check for -Wl,--gc-sections
5054     # XXX This test is broken at the moment, as symbols required for
5055     # linking are now in libsupc++ (not built yet.....). In addition, 
5056     # this test has cored on solaris in the past. In addition,
5057     # --gc-sections doesn't really work at the moment (keeps on discarding
5058     # used sections, first .eh_frame and now some of the glibc sections for
5059     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5060     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5061 echo "configure:5062: checking for ld that supports -Wl,--gc-sections" >&5
5062     if test "$cross_compiling" = yes; then
5063   ac_sectionLDflags=yes
5064 else
5065   cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5068
5069      int main(void) 
5070      {
5071        try { throw 1; }
5072        catch (...) { };
5073        return 0;
5074      }
5075     
5076 EOF
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5078 then
5079   ac_sectionLDflags=yes
5080 else
5081   echo "configure: failed program was:" >&5
5082   cat conftest.$ac_ext >&5
5083   rm -fr conftest*
5084   ac_sectionLFflags=no
5085 fi
5086 rm -fr conftest*
5087 fi
5088
5089     if test "$ac_test_CFLAGS" = set; then
5090       CFLAGS="$ac_save_CFLAGS"
5091     else
5092       # this is the suspicious part
5093       CFLAGS=''
5094     fi
5095     if test "$ac_sectionLDflags" = "yes"; then
5096       SECTION_LDFLAGS='-Wl,--gc-sections'
5097     fi
5098     echo "$ac_t""$ac_sectionLDflags" 1>&6
5099   fi
5100
5101   # Set linker optimization flags.
5102   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5103      test x"$enable_debug" = x"no"; then
5104     OPT_LDFLAGS='-Wl,-O1'
5105   fi
5106
5107   
5108   
5109
5110   
5111       
5112   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5113 echo "configure:5114: checking for __builtin_abs declaration" >&5
5114   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5115     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5116   echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118   
5119       
5120       ac_ext=C
5121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5122 ac_cpp='$CXXCPP $CPPFLAGS'
5123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5125 cross_compiling=$ac_cv_prog_cxx_cross
5126
5127       cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 #include <math.h>
5131 int main() {
5132  __builtin_abs(0);
5133 ; return 0; }
5134 EOF
5135 if { (eval echo configure:5136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5136   rm -rf conftest*
5137   glibcpp_cv_func___builtin_abs_use=yes
5138 else
5139   echo "configure: failed program was:" >&5
5140   cat conftest.$ac_ext >&5
5141   rm -rf conftest*
5142   glibcpp_cv_func___builtin_abs_use=no
5143 fi
5144 rm -f conftest*
5145       ac_ext=c
5146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5150 cross_compiling=$ac_cv_prog_cc_cross
5151
5152     
5153 fi
5154
5155   fi
5156   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5157   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5158     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5159 echo "configure:5160: checking for __builtin_abs linkage" >&5
5160     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5161       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5162   echo $ac_n "(cached) $ac_c" 1>&6
5163 else
5164   
5165         cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 #include <math.h>
5169 int main() {
5170  __builtin_abs(0);
5171 ; return 0; }
5172 EOF
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5174   rm -rf conftest*
5175   glibcpp_cv_func___builtin_abs_link=yes
5176 else
5177   echo "configure: failed program was:" >&5
5178   cat conftest.$ac_ext >&5
5179   rm -rf conftest*
5180   glibcpp_cv_func___builtin_abs_link=no
5181 fi
5182 rm -f conftest*
5183       
5184 fi
5185
5186     fi
5187     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5188     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5189       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190       cat >> confdefs.h <<EOF
5191 #define ${ac_tr_func} 1
5192 EOF
5193
5194     fi
5195   fi
5196
5197   
5198   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5199 echo "configure:5200: checking for __builtin_fabsf declaration" >&5
5200   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5201     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5202   echo $ac_n "(cached) $ac_c" 1>&6
5203 else
5204   
5205       
5206       ac_ext=C
5207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5211 cross_compiling=$ac_cv_prog_cxx_cross
5212
5213       cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 #include <math.h>
5217 int main() {
5218  __builtin_fabsf(0);
5219 ; return 0; }
5220 EOF
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222   rm -rf conftest*
5223   glibcpp_cv_func___builtin_fabsf_use=yes
5224 else
5225   echo "configure: failed program was:" >&5
5226   cat conftest.$ac_ext >&5
5227   rm -rf conftest*
5228   glibcpp_cv_func___builtin_fabsf_use=no
5229 fi
5230 rm -f conftest*
5231       ac_ext=c
5232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5236 cross_compiling=$ac_cv_prog_cc_cross
5237
5238     
5239 fi
5240
5241   fi
5242   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5243   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5244     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5245 echo "configure:5246: checking for __builtin_fabsf linkage" >&5
5246     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5247       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5248   echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250   
5251         cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 #include <math.h>
5255 int main() {
5256  __builtin_fabsf(0);
5257 ; return 0; }
5258 EOF
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260   rm -rf conftest*
5261   glibcpp_cv_func___builtin_fabsf_link=yes
5262 else
5263   echo "configure: failed program was:" >&5
5264   cat conftest.$ac_ext >&5
5265   rm -rf conftest*
5266   glibcpp_cv_func___builtin_fabsf_link=no
5267 fi
5268 rm -f conftest*
5269       
5270 fi
5271
5272     fi
5273     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5274     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5275       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5276       cat >> confdefs.h <<EOF
5277 #define ${ac_tr_func} 1
5278 EOF
5279
5280     fi
5281   fi
5282
5283   
5284   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5285 echo "configure:5286: checking for __builtin_fabs declaration" >&5
5286   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5287     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5288   echo $ac_n "(cached) $ac_c" 1>&6
5289 else
5290   
5291       
5292       ac_ext=C
5293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5294 ac_cpp='$CXXCPP $CPPFLAGS'
5295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5297 cross_compiling=$ac_cv_prog_cxx_cross
5298
5299       cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 #include <math.h>
5303 int main() {
5304  __builtin_fabs(0);
5305 ; return 0; }
5306 EOF
5307 if { (eval echo configure:5308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308   rm -rf conftest*
5309   glibcpp_cv_func___builtin_fabs_use=yes
5310 else
5311   echo "configure: failed program was:" >&5
5312   cat conftest.$ac_ext >&5
5313   rm -rf conftest*
5314   glibcpp_cv_func___builtin_fabs_use=no
5315 fi
5316 rm -f conftest*
5317       ac_ext=c
5318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5322 cross_compiling=$ac_cv_prog_cc_cross
5323
5324     
5325 fi
5326
5327   fi
5328   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5329   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5330     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5331 echo "configure:5332: checking for __builtin_fabs linkage" >&5
5332     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5333       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5334   echo $ac_n "(cached) $ac_c" 1>&6
5335 else
5336   
5337         cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 #include <math.h>
5341 int main() {
5342  __builtin_fabs(0);
5343 ; return 0; }
5344 EOF
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346   rm -rf conftest*
5347   glibcpp_cv_func___builtin_fabs_link=yes
5348 else
5349   echo "configure: failed program was:" >&5
5350   cat conftest.$ac_ext >&5
5351   rm -rf conftest*
5352   glibcpp_cv_func___builtin_fabs_link=no
5353 fi
5354 rm -f conftest*
5355       
5356 fi
5357
5358     fi
5359     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5360     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5361       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5362       cat >> confdefs.h <<EOF
5363 #define ${ac_tr_func} 1
5364 EOF
5365
5366     fi
5367   fi
5368
5369   
5370   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5371 echo "configure:5372: checking for __builtin_fabsl declaration" >&5
5372   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5373     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5374   echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376   
5377       
5378       ac_ext=C
5379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5383 cross_compiling=$ac_cv_prog_cxx_cross
5384
5385       cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 #include <math.h>
5389 int main() {
5390  __builtin_fabsl(0);
5391 ; return 0; }
5392 EOF
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394   rm -rf conftest*
5395   glibcpp_cv_func___builtin_fabsl_use=yes
5396 else
5397   echo "configure: failed program was:" >&5
5398   cat conftest.$ac_ext >&5
5399   rm -rf conftest*
5400   glibcpp_cv_func___builtin_fabsl_use=no
5401 fi
5402 rm -f conftest*
5403       ac_ext=c
5404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5405 ac_cpp='$CPP $CPPFLAGS'
5406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5408 cross_compiling=$ac_cv_prog_cc_cross
5409
5410     
5411 fi
5412
5413   fi
5414   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5415   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5416     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5417 echo "configure:5418: checking for __builtin_fabsl linkage" >&5
5418     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5419       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5420   echo $ac_n "(cached) $ac_c" 1>&6
5421 else
5422   
5423         cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <math.h>
5427 int main() {
5428  __builtin_fabsl(0);
5429 ; return 0; }
5430 EOF
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432   rm -rf conftest*
5433   glibcpp_cv_func___builtin_fabsl_link=yes
5434 else
5435   echo "configure: failed program was:" >&5
5436   cat conftest.$ac_ext >&5
5437   rm -rf conftest*
5438   glibcpp_cv_func___builtin_fabsl_link=no
5439 fi
5440 rm -f conftest*
5441       
5442 fi
5443
5444     fi
5445     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5446     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5447       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5448       cat >> confdefs.h <<EOF
5449 #define ${ac_tr_func} 1
5450 EOF
5451
5452     fi
5453   fi
5454
5455   
5456   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5457 echo "configure:5458: checking for __builtin_labs declaration" >&5
5458   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5459     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5460   echo $ac_n "(cached) $ac_c" 1>&6
5461 else
5462   
5463       
5464       ac_ext=C
5465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5466 ac_cpp='$CXXCPP $CPPFLAGS'
5467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5469 cross_compiling=$ac_cv_prog_cxx_cross
5470
5471       cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 #include <math.h>
5475 int main() {
5476  __builtin_labs(0);
5477 ; return 0; }
5478 EOF
5479 if { (eval echo configure:5480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5480   rm -rf conftest*
5481   glibcpp_cv_func___builtin_labs_use=yes
5482 else
5483   echo "configure: failed program was:" >&5
5484   cat conftest.$ac_ext >&5
5485   rm -rf conftest*
5486   glibcpp_cv_func___builtin_labs_use=no
5487 fi
5488 rm -f conftest*
5489       ac_ext=c
5490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5491 ac_cpp='$CPP $CPPFLAGS'
5492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5494 cross_compiling=$ac_cv_prog_cc_cross
5495
5496     
5497 fi
5498
5499   fi
5500   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5501   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5502     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5503 echo "configure:5504: checking for __builtin_labs linkage" >&5
5504     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5505       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5506   echo $ac_n "(cached) $ac_c" 1>&6
5507 else
5508   
5509         cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <math.h>
5513 int main() {
5514  __builtin_labs(0);
5515 ; return 0; }
5516 EOF
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518   rm -rf conftest*
5519   glibcpp_cv_func___builtin_labs_link=yes
5520 else
5521   echo "configure: failed program was:" >&5
5522   cat conftest.$ac_ext >&5
5523   rm -rf conftest*
5524   glibcpp_cv_func___builtin_labs_link=no
5525 fi
5526 rm -f conftest*
5527       
5528 fi
5529
5530     fi
5531     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5532     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5533       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5534       cat >> confdefs.h <<EOF
5535 #define ${ac_tr_func} 1
5536 EOF
5537
5538     fi
5539   fi
5540
5541
5542   
5543   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5544 echo "configure:5545: checking for __builtin_sqrtf declaration" >&5
5545   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5546     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5547   echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549   
5550       
5551       ac_ext=C
5552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5553 ac_cpp='$CXXCPP $CPPFLAGS'
5554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5556 cross_compiling=$ac_cv_prog_cxx_cross
5557
5558       cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 #include <math.h>
5562 int main() {
5563  __builtin_sqrtf(0);
5564 ; return 0; }
5565 EOF
5566 if { (eval echo configure:5567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567   rm -rf conftest*
5568   glibcpp_cv_func___builtin_sqrtf_use=yes
5569 else
5570   echo "configure: failed program was:" >&5
5571   cat conftest.$ac_ext >&5
5572   rm -rf conftest*
5573   glibcpp_cv_func___builtin_sqrtf_use=no
5574 fi
5575 rm -f conftest*
5576       ac_ext=c
5577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5578 ac_cpp='$CPP $CPPFLAGS'
5579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5581 cross_compiling=$ac_cv_prog_cc_cross
5582
5583     
5584 fi
5585
5586   fi
5587   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5588   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5589     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5590 echo "configure:5591: checking for __builtin_sqrtf linkage" >&5
5591     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5592       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5593   echo $ac_n "(cached) $ac_c" 1>&6
5594 else
5595   
5596         cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 #include <math.h>
5600 int main() {
5601  __builtin_sqrtf(0);
5602 ; return 0; }
5603 EOF
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605   rm -rf conftest*
5606   glibcpp_cv_func___builtin_sqrtf_link=yes
5607 else
5608   echo "configure: failed program was:" >&5
5609   cat conftest.$ac_ext >&5
5610   rm -rf conftest*
5611   glibcpp_cv_func___builtin_sqrtf_link=no
5612 fi
5613 rm -f conftest*
5614       
5615 fi
5616
5617     fi
5618     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5619     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5620       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5621       cat >> confdefs.h <<EOF
5622 #define ${ac_tr_func} 1
5623 EOF
5624
5625     fi
5626   fi
5627
5628   
5629   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5630 echo "configure:5631: checking for __builtin_fsqrt declaration" >&5
5631   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5632     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5633   echo $ac_n "(cached) $ac_c" 1>&6
5634 else
5635   
5636       
5637       ac_ext=C
5638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5639 ac_cpp='$CXXCPP $CPPFLAGS'
5640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5642 cross_compiling=$ac_cv_prog_cxx_cross
5643
5644       cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 #include <math.h>
5648 int main() {
5649  __builtin_fsqrt(0);
5650 ; return 0; }
5651 EOF
5652 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653   rm -rf conftest*
5654   glibcpp_cv_func___builtin_fsqrt_use=yes
5655 else
5656   echo "configure: failed program was:" >&5
5657   cat conftest.$ac_ext >&5
5658   rm -rf conftest*
5659   glibcpp_cv_func___builtin_fsqrt_use=no
5660 fi
5661 rm -f conftest*
5662       ac_ext=c
5663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5667 cross_compiling=$ac_cv_prog_cc_cross
5668
5669     
5670 fi
5671
5672   fi
5673   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5674   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5675     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5676 echo "configure:5677: checking for __builtin_fsqrt linkage" >&5
5677     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5678       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5679   echo $ac_n "(cached) $ac_c" 1>&6
5680 else
5681   
5682         cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 #include <math.h>
5686 int main() {
5687  __builtin_fsqrt(0);
5688 ; return 0; }
5689 EOF
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691   rm -rf conftest*
5692   glibcpp_cv_func___builtin_fsqrt_link=yes
5693 else
5694   echo "configure: failed program was:" >&5
5695   cat conftest.$ac_ext >&5
5696   rm -rf conftest*
5697   glibcpp_cv_func___builtin_fsqrt_link=no
5698 fi
5699 rm -f conftest*
5700       
5701 fi
5702
5703     fi
5704     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5705     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5706       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5707       cat >> confdefs.h <<EOF
5708 #define ${ac_tr_func} 1
5709 EOF
5710
5711     fi
5712   fi
5713
5714   
5715   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5716 echo "configure:5717: checking for __builtin_sqrtl declaration" >&5
5717   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5718     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5719   echo $ac_n "(cached) $ac_c" 1>&6
5720 else
5721   
5722       
5723       ac_ext=C
5724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5725 ac_cpp='$CXXCPP $CPPFLAGS'
5726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5728 cross_compiling=$ac_cv_prog_cxx_cross
5729
5730       cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5733 #include <math.h>
5734 int main() {
5735  __builtin_sqrtl(0);
5736 ; return 0; }
5737 EOF
5738 if { (eval echo configure:5739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5739   rm -rf conftest*
5740   glibcpp_cv_func___builtin_sqrtl_use=yes
5741 else
5742   echo "configure: failed program was:" >&5
5743   cat conftest.$ac_ext >&5
5744   rm -rf conftest*
5745   glibcpp_cv_func___builtin_sqrtl_use=no
5746 fi
5747 rm -f conftest*
5748       ac_ext=c
5749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5753 cross_compiling=$ac_cv_prog_cc_cross
5754
5755     
5756 fi
5757
5758   fi
5759   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5760   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5761     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5762 echo "configure:5763: checking for __builtin_sqrtl linkage" >&5
5763     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5764       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5765   echo $ac_n "(cached) $ac_c" 1>&6
5766 else
5767   
5768         cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 #include <math.h>
5772 int main() {
5773  __builtin_sqrtl(0);
5774 ; return 0; }
5775 EOF
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777   rm -rf conftest*
5778   glibcpp_cv_func___builtin_sqrtl_link=yes
5779 else
5780   echo "configure: failed program was:" >&5
5781   cat conftest.$ac_ext >&5
5782   rm -rf conftest*
5783   glibcpp_cv_func___builtin_sqrtl_link=no
5784 fi
5785 rm -f conftest*
5786       
5787 fi
5788
5789     fi
5790     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5791     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5792       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5793       cat >> confdefs.h <<EOF
5794 #define ${ac_tr_func} 1
5795 EOF
5796
5797     fi
5798   fi
5799
5800
5801   
5802   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5803 echo "configure:5804: checking for __builtin_sinf declaration" >&5
5804   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5805     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5806   echo $ac_n "(cached) $ac_c" 1>&6
5807 else
5808   
5809       
5810       ac_ext=C
5811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5812 ac_cpp='$CXXCPP $CPPFLAGS'
5813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5815 cross_compiling=$ac_cv_prog_cxx_cross
5816
5817       cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <math.h>
5821 int main() {
5822  __builtin_sinf(0);
5823 ; return 0; }
5824 EOF
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826   rm -rf conftest*
5827   glibcpp_cv_func___builtin_sinf_use=yes
5828 else
5829   echo "configure: failed program was:" >&5
5830   cat conftest.$ac_ext >&5
5831   rm -rf conftest*
5832   glibcpp_cv_func___builtin_sinf_use=no
5833 fi
5834 rm -f conftest*
5835       ac_ext=c
5836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5840 cross_compiling=$ac_cv_prog_cc_cross
5841
5842     
5843 fi
5844
5845   fi
5846   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5847   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5848     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5849 echo "configure:5850: checking for __builtin_sinf linkage" >&5
5850     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5851       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5852   echo $ac_n "(cached) $ac_c" 1>&6
5853 else
5854   
5855         cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 #include <math.h>
5859 int main() {
5860  __builtin_sinf(0);
5861 ; return 0; }
5862 EOF
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864   rm -rf conftest*
5865   glibcpp_cv_func___builtin_sinf_link=yes
5866 else
5867   echo "configure: failed program was:" >&5
5868   cat conftest.$ac_ext >&5
5869   rm -rf conftest*
5870   glibcpp_cv_func___builtin_sinf_link=no
5871 fi
5872 rm -f conftest*
5873       
5874 fi
5875
5876     fi
5877     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5878     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5879       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5880       cat >> confdefs.h <<EOF
5881 #define ${ac_tr_func} 1
5882 EOF
5883
5884     fi
5885   fi
5886
5887   
5888   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5889 echo "configure:5890: checking for __builtin_sin declaration" >&5
5890   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5891     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5892   echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894   
5895       
5896       ac_ext=C
5897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5898 ac_cpp='$CXXCPP $CPPFLAGS'
5899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5901 cross_compiling=$ac_cv_prog_cxx_cross
5902
5903       cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 #include <math.h>
5907 int main() {
5908  __builtin_sin(0);
5909 ; return 0; }
5910 EOF
5911 if { (eval echo configure:5912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5912   rm -rf conftest*
5913   glibcpp_cv_func___builtin_sin_use=yes
5914 else
5915   echo "configure: failed program was:" >&5
5916   cat conftest.$ac_ext >&5
5917   rm -rf conftest*
5918   glibcpp_cv_func___builtin_sin_use=no
5919 fi
5920 rm -f conftest*
5921       ac_ext=c
5922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5926 cross_compiling=$ac_cv_prog_cc_cross
5927
5928     
5929 fi
5930
5931   fi
5932   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5933   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5934     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5935 echo "configure:5936: checking for __builtin_sin linkage" >&5
5936     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5937       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5938   echo $ac_n "(cached) $ac_c" 1>&6
5939 else
5940   
5941         cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 #include <math.h>
5945 int main() {
5946  __builtin_sin(0);
5947 ; return 0; }
5948 EOF
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950   rm -rf conftest*
5951   glibcpp_cv_func___builtin_sin_link=yes
5952 else
5953   echo "configure: failed program was:" >&5
5954   cat conftest.$ac_ext >&5
5955   rm -rf conftest*
5956   glibcpp_cv_func___builtin_sin_link=no
5957 fi
5958 rm -f conftest*
5959       
5960 fi
5961
5962     fi
5963     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5964     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5965       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5966       cat >> confdefs.h <<EOF
5967 #define ${ac_tr_func} 1
5968 EOF
5969
5970     fi
5971   fi
5972
5973   
5974   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5975 echo "configure:5976: checking for __builtin_sinl declaration" >&5
5976   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5977     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5978   echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980   
5981       
5982       ac_ext=C
5983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5984 ac_cpp='$CXXCPP $CPPFLAGS'
5985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5987 cross_compiling=$ac_cv_prog_cxx_cross
5988
5989       cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <math.h>
5993 int main() {
5994  __builtin_sinl(0);
5995 ; return 0; }
5996 EOF
5997 if { (eval echo configure:5998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5998   rm -rf conftest*
5999   glibcpp_cv_func___builtin_sinl_use=yes
6000 else
6001   echo "configure: failed program was:" >&5
6002   cat conftest.$ac_ext >&5
6003   rm -rf conftest*
6004   glibcpp_cv_func___builtin_sinl_use=no
6005 fi
6006 rm -f conftest*
6007       ac_ext=c
6008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6009 ac_cpp='$CPP $CPPFLAGS'
6010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6012 cross_compiling=$ac_cv_prog_cc_cross
6013
6014     
6015 fi
6016
6017   fi
6018   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6019   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6020     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6021 echo "configure:6022: checking for __builtin_sinl linkage" >&5
6022     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6023       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6024   echo $ac_n "(cached) $ac_c" 1>&6
6025 else
6026   
6027         cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #include <math.h>
6031 int main() {
6032  __builtin_sinl(0);
6033 ; return 0; }
6034 EOF
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036   rm -rf conftest*
6037   glibcpp_cv_func___builtin_sinl_link=yes
6038 else
6039   echo "configure: failed program was:" >&5
6040   cat conftest.$ac_ext >&5
6041   rm -rf conftest*
6042   glibcpp_cv_func___builtin_sinl_link=no
6043 fi
6044 rm -f conftest*
6045       
6046 fi
6047
6048     fi
6049     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6050     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6051       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6052       cat >> confdefs.h <<EOF
6053 #define ${ac_tr_func} 1
6054 EOF
6055
6056     fi
6057   fi
6058
6059
6060   
6061   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6062 echo "configure:6063: checking for __builtin_cosf declaration" >&5
6063   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6064     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6065   echo $ac_n "(cached) $ac_c" 1>&6
6066 else
6067   
6068       
6069       ac_ext=C
6070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6071 ac_cpp='$CXXCPP $CPPFLAGS'
6072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6074 cross_compiling=$ac_cv_prog_cxx_cross
6075
6076       cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 #include <math.h>
6080 int main() {
6081  __builtin_cosf(0);
6082 ; return 0; }
6083 EOF
6084 if { (eval echo configure:6085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6085   rm -rf conftest*
6086   glibcpp_cv_func___builtin_cosf_use=yes
6087 else
6088   echo "configure: failed program was:" >&5
6089   cat conftest.$ac_ext >&5
6090   rm -rf conftest*
6091   glibcpp_cv_func___builtin_cosf_use=no
6092 fi
6093 rm -f conftest*
6094       ac_ext=c
6095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6099 cross_compiling=$ac_cv_prog_cc_cross
6100
6101     
6102 fi
6103
6104   fi
6105   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6106   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6107     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6108 echo "configure:6109: checking for __builtin_cosf linkage" >&5
6109     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6110       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6111   echo $ac_n "(cached) $ac_c" 1>&6
6112 else
6113   
6114         cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 #include <math.h>
6118 int main() {
6119  __builtin_cosf(0);
6120 ; return 0; }
6121 EOF
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123   rm -rf conftest*
6124   glibcpp_cv_func___builtin_cosf_link=yes
6125 else
6126   echo "configure: failed program was:" >&5
6127   cat conftest.$ac_ext >&5
6128   rm -rf conftest*
6129   glibcpp_cv_func___builtin_cosf_link=no
6130 fi
6131 rm -f conftest*
6132       
6133 fi
6134
6135     fi
6136     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6137     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6138       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6139       cat >> confdefs.h <<EOF
6140 #define ${ac_tr_func} 1
6141 EOF
6142
6143     fi
6144   fi
6145
6146   
6147   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6148 echo "configure:6149: checking for __builtin_cos declaration" >&5
6149   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6150     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6151   echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153   
6154       
6155       ac_ext=C
6156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6157 ac_cpp='$CXXCPP $CPPFLAGS'
6158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6160 cross_compiling=$ac_cv_prog_cxx_cross
6161
6162       cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 #include <math.h>
6166 int main() {
6167  __builtin_cos(0);
6168 ; return 0; }
6169 EOF
6170 if { (eval echo configure:6171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6171   rm -rf conftest*
6172   glibcpp_cv_func___builtin_cos_use=yes
6173 else
6174   echo "configure: failed program was:" >&5
6175   cat conftest.$ac_ext >&5
6176   rm -rf conftest*
6177   glibcpp_cv_func___builtin_cos_use=no
6178 fi
6179 rm -f conftest*
6180       ac_ext=c
6181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6185 cross_compiling=$ac_cv_prog_cc_cross
6186
6187     
6188 fi
6189
6190   fi
6191   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6192   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6193     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6194 echo "configure:6195: checking for __builtin_cos linkage" >&5
6195     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6196       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6197   echo $ac_n "(cached) $ac_c" 1>&6
6198 else
6199   
6200         cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 #include <math.h>
6204 int main() {
6205  __builtin_cos(0);
6206 ; return 0; }
6207 EOF
6208 if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209   rm -rf conftest*
6210   glibcpp_cv_func___builtin_cos_link=yes
6211 else
6212   echo "configure: failed program was:" >&5
6213   cat conftest.$ac_ext >&5
6214   rm -rf conftest*
6215   glibcpp_cv_func___builtin_cos_link=no
6216 fi
6217 rm -f conftest*
6218       
6219 fi
6220
6221     fi
6222     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6223     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6224       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6225       cat >> confdefs.h <<EOF
6226 #define ${ac_tr_func} 1
6227 EOF
6228
6229     fi
6230   fi
6231
6232   
6233   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6234 echo "configure:6235: checking for __builtin_cosl declaration" >&5
6235   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6236     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6237   echo $ac_n "(cached) $ac_c" 1>&6
6238 else
6239   
6240       
6241       ac_ext=C
6242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6243 ac_cpp='$CXXCPP $CPPFLAGS'
6244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6246 cross_compiling=$ac_cv_prog_cxx_cross
6247
6248       cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 #include <math.h>
6252 int main() {
6253  __builtin_cosl(0);
6254 ; return 0; }
6255 EOF
6256 if { (eval echo configure:6257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6257   rm -rf conftest*
6258   glibcpp_cv_func___builtin_cosl_use=yes
6259 else
6260   echo "configure: failed program was:" >&5
6261   cat conftest.$ac_ext >&5
6262   rm -rf conftest*
6263   glibcpp_cv_func___builtin_cosl_use=no
6264 fi
6265 rm -f conftest*
6266       ac_ext=c
6267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6271 cross_compiling=$ac_cv_prog_cc_cross
6272
6273     
6274 fi
6275
6276   fi
6277   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6278   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6279     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6280 echo "configure:6281: checking for __builtin_cosl linkage" >&5
6281     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6282       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6283   echo $ac_n "(cached) $ac_c" 1>&6
6284 else
6285   
6286         cat > conftest.$ac_ext <<EOF
6287 #line 6288 "configure"
6288 #include "confdefs.h"
6289 #include <math.h>
6290 int main() {
6291  __builtin_cosl(0);
6292 ; return 0; }
6293 EOF
6294 if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6295   rm -rf conftest*
6296   glibcpp_cv_func___builtin_cosl_link=yes
6297 else
6298   echo "configure: failed program was:" >&5
6299   cat conftest.$ac_ext >&5
6300   rm -rf conftest*
6301   glibcpp_cv_func___builtin_cosl_link=no
6302 fi
6303 rm -f conftest*
6304       
6305 fi
6306
6307     fi
6308     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6309     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6310       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6311       cat >> confdefs.h <<EOF
6312 #define ${ac_tr_func} 1
6313 EOF
6314
6315     fi
6316   fi
6317
6318
6319               dummyvar=no
6320   if test x$dummyvar = x"yes"; then
6321     cat >> confdefs.h <<\EOF
6322 #define HAVE___BUILTIN_ABS 1
6323 EOF
6324
6325     cat >> confdefs.h <<\EOF
6326 #define HAVE___BUILTIN_LABS 1
6327 EOF
6328
6329     cat >> confdefs.h <<\EOF
6330 #define HAVE___BUILTIN_COS 1
6331 EOF
6332
6333     cat >> confdefs.h <<\EOF
6334 #define HAVE___BUILTIN_COSF 1
6335 EOF
6336
6337     cat >> confdefs.h <<\EOF
6338 #define HAVE___BUILTIN_COSL 1
6339 EOF
6340
6341     cat >> confdefs.h <<\EOF
6342 #define HAVE___BUILTIN_FABS 1
6343 EOF
6344
6345     cat >> confdefs.h <<\EOF
6346 #define HAVE___BUILTIN_FABSF 1
6347 EOF
6348
6349     cat >> confdefs.h <<\EOF
6350 #define HAVE___BUILTIN_FABSL 1
6351 EOF
6352
6353     cat >> confdefs.h <<\EOF
6354 #define HAVE___BUILTIN_SIN 1
6355 EOF
6356
6357     cat >> confdefs.h <<\EOF
6358 #define HAVE___BUILTIN_SINF 1
6359 EOF
6360
6361     cat >> confdefs.h <<\EOF
6362 #define HAVE___BUILTIN_SINL 1
6363 EOF
6364
6365     cat >> confdefs.h <<\EOF
6366 #define HAVE___BUILTIN_FSQRT 1
6367 EOF
6368
6369     cat >> confdefs.h <<\EOF
6370 #define HAVE___BUILTIN_SQRTF 1
6371 EOF
6372
6373     cat >> confdefs.h <<\EOF
6374 #define HAVE___BUILTIN_SQRTL 1
6375 EOF
6376
6377   fi
6378
6379   
6380   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6381   ac_save_CXXFLAGS="$CXXFLAGS"
6382   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6383
6384     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6385 echo "configure:6386: checking for sin in -lm" >&5
6386 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6388   echo $ac_n "(cached) $ac_c" 1>&6
6389 else
6390   ac_save_LIBS="$LIBS"
6391 LIBS="-lm  $LIBS"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 /* We use char because int might match the return type of a gcc2
6397     builtin and then its argument prototype would still apply.  */
6398 char sin();
6399
6400 int main() {
6401 sin()
6402 ; return 0; }
6403 EOF
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6405   rm -rf conftest*
6406   eval "ac_cv_lib_$ac_lib_var=yes"
6407 else
6408   echo "configure: failed program was:" >&5
6409   cat conftest.$ac_ext >&5
6410   rm -rf conftest*
6411   eval "ac_cv_lib_$ac_lib_var=no"
6412 fi
6413 rm -f conftest*
6414 LIBS="$ac_save_LIBS"
6415
6416 fi
6417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6418   echo "$ac_t""yes" 1>&6
6419   libm="-lm"
6420 else
6421   echo "$ac_t""no" 1>&6
6422 fi
6423
6424   ac_save_LIBS="$LIBS"
6425   LIBS="$LIBS $libm"
6426
6427     
6428   
6429   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6430 echo "configure:6431: checking for isinf declaration" >&5
6431   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6432     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6433   echo $ac_n "(cached) $ac_c" 1>&6
6434 else
6435   
6436       
6437       ac_ext=C
6438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6439 ac_cpp='$CXXCPP $CPPFLAGS'
6440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6442 cross_compiling=$ac_cv_prog_cxx_cross
6443
6444       cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 #include <math.h>
6448                       #ifdef HAVE_IEEEFP_H
6449                       #include <ieeefp.h>
6450                       #endif
6451                      
6452 int main() {
6453  isinf(0);
6454 ; return 0; }
6455 EOF
6456 if { (eval echo configure:6457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6457   rm -rf conftest*
6458   glibcpp_cv_func_isinf_use=yes
6459 else
6460   echo "configure: failed program was:" >&5
6461   cat conftest.$ac_ext >&5
6462   rm -rf conftest*
6463   glibcpp_cv_func_isinf_use=no
6464 fi
6465 rm -f conftest*
6466       ac_ext=c
6467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6471 cross_compiling=$ac_cv_prog_cc_cross
6472
6473     
6474 fi
6475
6476   fi
6477   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6478
6479   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6480     for ac_func in isinf
6481 do
6482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_func" >&5
6484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6485   echo $ac_n "(cached) $ac_c" 1>&6
6486 else
6487   cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* System header to define __stub macros and hopefully few prototypes,
6491     which can conflict with char $ac_func(); below.  */
6492 #include <assert.h>
6493 /* Override any gcc2 internal prototype to avoid an error.  */
6494 /* We use char because int might match the return type of a gcc2
6495     builtin and then its argument prototype would still apply.  */
6496 char $ac_func();
6497
6498 int main() {
6499
6500 /* The GNU C library defines this for functions which it implements
6501     to always fail with ENOSYS.  Some functions are actually named
6502     something starting with __ and the normal name is an alias.  */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 choke me
6505 #else
6506 $ac_func();
6507 #endif
6508
6509 ; return 0; }
6510 EOF
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512   rm -rf conftest*
6513   eval "ac_cv_func_$ac_func=yes"
6514 else
6515   echo "configure: failed program was:" >&5
6516   cat conftest.$ac_ext >&5
6517   rm -rf conftest*
6518   eval "ac_cv_func_$ac_func=no"
6519 fi
6520 rm -f conftest*
6521 fi
6522
6523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6524   echo "$ac_t""yes" 1>&6
6525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6526   cat >> confdefs.h <<EOF
6527 #define $ac_tr_func 1
6528 EOF
6529  
6530 else
6531   echo "$ac_t""no" 1>&6
6532 fi
6533 done
6534     
6535   else
6536     
6537   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6538 echo "configure:6539: checking for _isinf declaration" >&5
6539   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6540     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6541   echo $ac_n "(cached) $ac_c" 1>&6
6542 else
6543   
6544       
6545       ac_ext=C
6546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6547 ac_cpp='$CXXCPP $CPPFLAGS'
6548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6550 cross_compiling=$ac_cv_prog_cxx_cross
6551
6552       cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 #include <math.h>
6556                       #ifdef HAVE_IEEEFP_H
6557                       #include <ieeefp.h>
6558                       #endif
6559                      
6560 int main() {
6561  _isinf(0);
6562 ; return 0; }
6563 EOF
6564 if { (eval echo configure:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6565   rm -rf conftest*
6566   glibcpp_cv_func__isinf_use=yes
6567 else
6568   echo "configure: failed program was:" >&5
6569   cat conftest.$ac_ext >&5
6570   rm -rf conftest*
6571   glibcpp_cv_func__isinf_use=no
6572 fi
6573 rm -f conftest*
6574       ac_ext=c
6575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6576 ac_cpp='$CPP $CPPFLAGS'
6577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6579 cross_compiling=$ac_cv_prog_cc_cross
6580
6581     
6582 fi
6583
6584   fi
6585   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6586
6587     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6588       for ac_func in _isinf
6589 do
6590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_func" >&5
6592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6593   echo $ac_n "(cached) $ac_c" 1>&6
6594 else
6595   cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* System header to define __stub macros and hopefully few prototypes,
6599     which can conflict with char $ac_func(); below.  */
6600 #include <assert.h>
6601 /* Override any gcc2 internal prototype to avoid an error.  */
6602 /* We use char because int might match the return type of a gcc2
6603     builtin and then its argument prototype would still apply.  */
6604 char $ac_func();
6605
6606 int main() {
6607
6608 /* The GNU C library defines this for functions which it implements
6609     to always fail with ENOSYS.  Some functions are actually named
6610     something starting with __ and the normal name is an alias.  */
6611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6612 choke me
6613 #else
6614 $ac_func();
6615 #endif
6616
6617 ; return 0; }
6618 EOF
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6620   rm -rf conftest*
6621   eval "ac_cv_func_$ac_func=yes"
6622 else
6623   echo "configure: failed program was:" >&5
6624   cat conftest.$ac_ext >&5
6625   rm -rf conftest*
6626   eval "ac_cv_func_$ac_func=no"
6627 fi
6628 rm -f conftest*
6629 fi
6630
6631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6632   echo "$ac_t""yes" 1>&6
6633     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6634   cat >> confdefs.h <<EOF
6635 #define $ac_tr_func 1
6636 EOF
6637  
6638 else
6639   echo "$ac_t""no" 1>&6
6640 fi
6641 done
6642     
6643     fi
6644   fi
6645
6646   
6647   
6648   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6649 echo "configure:6650: checking for isnan declaration" >&5
6650   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6651     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6652   echo $ac_n "(cached) $ac_c" 1>&6
6653 else
6654   
6655       
6656       ac_ext=C
6657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6658 ac_cpp='$CXXCPP $CPPFLAGS'
6659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6661 cross_compiling=$ac_cv_prog_cxx_cross
6662
6663       cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <math.h>
6667                       #ifdef HAVE_IEEEFP_H
6668                       #include <ieeefp.h>
6669                       #endif
6670                      
6671 int main() {
6672  isnan(0);
6673 ; return 0; }
6674 EOF
6675 if { (eval echo configure:6676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6676   rm -rf conftest*
6677   glibcpp_cv_func_isnan_use=yes
6678 else
6679   echo "configure: failed program was:" >&5
6680   cat conftest.$ac_ext >&5
6681   rm -rf conftest*
6682   glibcpp_cv_func_isnan_use=no
6683 fi
6684 rm -f conftest*
6685       ac_ext=c
6686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6690 cross_compiling=$ac_cv_prog_cc_cross
6691
6692     
6693 fi
6694
6695   fi
6696   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6697
6698   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6699     for ac_func in isnan
6700 do
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704   echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706   cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710     which can conflict with char $ac_func(); below.  */
6711 #include <assert.h>
6712 /* Override any gcc2 internal prototype to avoid an error.  */
6713 /* We use char because int might match the return type of a gcc2
6714     builtin and then its argument prototype would still apply.  */
6715 char $ac_func();
6716
6717 int main() {
6718
6719 /* The GNU C library defines this for functions which it implements
6720     to always fail with ENOSYS.  Some functions are actually named
6721     something starting with __ and the normal name is an alias.  */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 choke me
6724 #else
6725 $ac_func();
6726 #endif
6727
6728 ; return 0; }
6729 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731   rm -rf conftest*
6732   eval "ac_cv_func_$ac_func=yes"
6733 else
6734   echo "configure: failed program was:" >&5
6735   cat conftest.$ac_ext >&5
6736   rm -rf conftest*
6737   eval "ac_cv_func_$ac_func=no"
6738 fi
6739 rm -f conftest*
6740 fi
6741
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743   echo "$ac_t""yes" 1>&6
6744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745   cat >> confdefs.h <<EOF
6746 #define $ac_tr_func 1
6747 EOF
6748  
6749 else
6750   echo "$ac_t""no" 1>&6
6751 fi
6752 done
6753     
6754   else
6755     
6756   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6757 echo "configure:6758: checking for _isnan declaration" >&5
6758   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6759     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6760   echo $ac_n "(cached) $ac_c" 1>&6
6761 else
6762   
6763       
6764       ac_ext=C
6765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6766 ac_cpp='$CXXCPP $CPPFLAGS'
6767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6769 cross_compiling=$ac_cv_prog_cxx_cross
6770
6771       cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 #include <math.h>
6775                       #ifdef HAVE_IEEEFP_H
6776                       #include <ieeefp.h>
6777                       #endif
6778                      
6779 int main() {
6780  _isnan(0);
6781 ; return 0; }
6782 EOF
6783 if { (eval echo configure:6784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6784   rm -rf conftest*
6785   glibcpp_cv_func__isnan_use=yes
6786 else
6787   echo "configure: failed program was:" >&5
6788   cat conftest.$ac_ext >&5
6789   rm -rf conftest*
6790   glibcpp_cv_func__isnan_use=no
6791 fi
6792 rm -f conftest*
6793       ac_ext=c
6794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6795 ac_cpp='$CPP $CPPFLAGS'
6796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6798 cross_compiling=$ac_cv_prog_cc_cross
6799
6800     
6801 fi
6802
6803   fi
6804   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6805
6806     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6807       for ac_func in _isnan
6808 do
6809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6810 echo "configure:6811: checking for $ac_func" >&5
6811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6812   echo $ac_n "(cached) $ac_c" 1>&6
6813 else
6814   cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 /* System header to define __stub macros and hopefully few prototypes,
6818     which can conflict with char $ac_func(); below.  */
6819 #include <assert.h>
6820 /* Override any gcc2 internal prototype to avoid an error.  */
6821 /* We use char because int might match the return type of a gcc2
6822     builtin and then its argument prototype would still apply.  */
6823 char $ac_func();
6824
6825 int main() {
6826
6827 /* The GNU C library defines this for functions which it implements
6828     to always fail with ENOSYS.  Some functions are actually named
6829     something starting with __ and the normal name is an alias.  */
6830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6831 choke me
6832 #else
6833 $ac_func();
6834 #endif
6835
6836 ; return 0; }
6837 EOF
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6839   rm -rf conftest*
6840   eval "ac_cv_func_$ac_func=yes"
6841 else
6842   echo "configure: failed program was:" >&5
6843   cat conftest.$ac_ext >&5
6844   rm -rf conftest*
6845   eval "ac_cv_func_$ac_func=no"
6846 fi
6847 rm -f conftest*
6848 fi
6849
6850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6851   echo "$ac_t""yes" 1>&6
6852     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6853   cat >> confdefs.h <<EOF
6854 #define $ac_tr_func 1
6855 EOF
6856  
6857 else
6858   echo "$ac_t""no" 1>&6
6859 fi
6860 done
6861     
6862     fi
6863   fi
6864
6865   
6866   
6867   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6868 echo "configure:6869: checking for finite declaration" >&5
6869   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6870     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6871   echo $ac_n "(cached) $ac_c" 1>&6
6872 else
6873   
6874       
6875       ac_ext=C
6876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6877 ac_cpp='$CXXCPP $CPPFLAGS'
6878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6880 cross_compiling=$ac_cv_prog_cxx_cross
6881
6882       cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 #include <math.h>
6886                       #ifdef HAVE_IEEEFP_H
6887                       #include <ieeefp.h>
6888                       #endif
6889                      
6890 int main() {
6891  finite(0);
6892 ; return 0; }
6893 EOF
6894 if { (eval echo configure:6895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6895   rm -rf conftest*
6896   glibcpp_cv_func_finite_use=yes
6897 else
6898   echo "configure: failed program was:" >&5
6899   cat conftest.$ac_ext >&5
6900   rm -rf conftest*
6901   glibcpp_cv_func_finite_use=no
6902 fi
6903 rm -f conftest*
6904       ac_ext=c
6905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6909 cross_compiling=$ac_cv_prog_cc_cross
6910
6911     
6912 fi
6913
6914   fi
6915   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6916
6917   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6918     for ac_func in finite
6919 do
6920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6921 echo "configure:6922: checking for $ac_func" >&5
6922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6923   echo $ac_n "(cached) $ac_c" 1>&6
6924 else
6925   cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* System header to define __stub macros and hopefully few prototypes,
6929     which can conflict with char $ac_func(); below.  */
6930 #include <assert.h>
6931 /* Override any gcc2 internal prototype to avoid an error.  */
6932 /* We use char because int might match the return type of a gcc2
6933     builtin and then its argument prototype would still apply.  */
6934 char $ac_func();
6935
6936 int main() {
6937
6938 /* The GNU C library defines this for functions which it implements
6939     to always fail with ENOSYS.  Some functions are actually named
6940     something starting with __ and the normal name is an alias.  */
6941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6942 choke me
6943 #else
6944 $ac_func();
6945 #endif
6946
6947 ; return 0; }
6948 EOF
6949 if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6950   rm -rf conftest*
6951   eval "ac_cv_func_$ac_func=yes"
6952 else
6953   echo "configure: failed program was:" >&5
6954   cat conftest.$ac_ext >&5
6955   rm -rf conftest*
6956   eval "ac_cv_func_$ac_func=no"
6957 fi
6958 rm -f conftest*
6959 fi
6960
6961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6962   echo "$ac_t""yes" 1>&6
6963     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6964   cat >> confdefs.h <<EOF
6965 #define $ac_tr_func 1
6966 EOF
6967  
6968 else
6969   echo "$ac_t""no" 1>&6
6970 fi
6971 done
6972     
6973   else
6974     
6975   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6976 echo "configure:6977: checking for _finite declaration" >&5
6977   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6978     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6979   echo $ac_n "(cached) $ac_c" 1>&6
6980 else
6981   
6982       
6983       ac_ext=C
6984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6985 ac_cpp='$CXXCPP $CPPFLAGS'
6986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6988 cross_compiling=$ac_cv_prog_cxx_cross
6989
6990       cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6993 #include <math.h>
6994                       #ifdef HAVE_IEEEFP_H
6995                       #include <ieeefp.h>
6996                       #endif
6997                      
6998 int main() {
6999  _finite(0);
7000 ; return 0; }
7001 EOF
7002 if { (eval echo configure:7003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7003   rm -rf conftest*
7004   glibcpp_cv_func__finite_use=yes
7005 else
7006   echo "configure: failed program was:" >&5
7007   cat conftest.$ac_ext >&5
7008   rm -rf conftest*
7009   glibcpp_cv_func__finite_use=no
7010 fi
7011 rm -f conftest*
7012       ac_ext=c
7013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7017 cross_compiling=$ac_cv_prog_cc_cross
7018
7019     
7020 fi
7021
7022   fi
7023   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7024
7025     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7026       for ac_func in _finite
7027 do
7028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_func" >&5
7030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7031   echo $ac_n "(cached) $ac_c" 1>&6
7032 else
7033   cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 /* System header to define __stub macros and hopefully few prototypes,
7037     which can conflict with char $ac_func(); below.  */
7038 #include <assert.h>
7039 /* Override any gcc2 internal prototype to avoid an error.  */
7040 /* We use char because int might match the return type of a gcc2
7041     builtin and then its argument prototype would still apply.  */
7042 char $ac_func();
7043
7044 int main() {
7045
7046 /* The GNU C library defines this for functions which it implements
7047     to always fail with ENOSYS.  Some functions are actually named
7048     something starting with __ and the normal name is an alias.  */
7049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7050 choke me
7051 #else
7052 $ac_func();
7053 #endif
7054
7055 ; return 0; }
7056 EOF
7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7058   rm -rf conftest*
7059   eval "ac_cv_func_$ac_func=yes"
7060 else
7061   echo "configure: failed program was:" >&5
7062   cat conftest.$ac_ext >&5
7063   rm -rf conftest*
7064   eval "ac_cv_func_$ac_func=no"
7065 fi
7066 rm -f conftest*
7067 fi
7068
7069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7070   echo "$ac_t""yes" 1>&6
7071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7072   cat >> confdefs.h <<EOF
7073 #define $ac_tr_func 1
7074 EOF
7075  
7076 else
7077   echo "$ac_t""no" 1>&6
7078 fi
7079 done
7080     
7081     fi
7082   fi
7083
7084   
7085   
7086   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7087 echo "configure:7088: checking for copysign declaration" >&5
7088   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7089     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7090   echo $ac_n "(cached) $ac_c" 1>&6
7091 else
7092   
7093       
7094       ac_ext=C
7095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7096 ac_cpp='$CXXCPP $CPPFLAGS'
7097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7099 cross_compiling=$ac_cv_prog_cxx_cross
7100
7101       cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 #include <math.h>
7105 int main() {
7106  copysign(0, 0);
7107 ; return 0; }
7108 EOF
7109 if { (eval echo configure:7110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7110   rm -rf conftest*
7111   glibcpp_cv_func_copysign_use=yes
7112 else
7113   echo "configure: failed program was:" >&5
7114   cat conftest.$ac_ext >&5
7115   rm -rf conftest*
7116   glibcpp_cv_func_copysign_use=no
7117 fi
7118 rm -f conftest*
7119       ac_ext=c
7120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7124 cross_compiling=$ac_cv_prog_cc_cross
7125
7126     
7127 fi
7128
7129   fi
7130   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7131
7132   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7133     for ac_func in copysign
7134 do
7135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7136 echo "configure:7137: checking for $ac_func" >&5
7137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7138   echo $ac_n "(cached) $ac_c" 1>&6
7139 else
7140   cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* System header to define __stub macros and hopefully few prototypes,
7144     which can conflict with char $ac_func(); below.  */
7145 #include <assert.h>
7146 /* Override any gcc2 internal prototype to avoid an error.  */
7147 /* We use char because int might match the return type of a gcc2
7148     builtin and then its argument prototype would still apply.  */
7149 char $ac_func();
7150
7151 int main() {
7152
7153 /* The GNU C library defines this for functions which it implements
7154     to always fail with ENOSYS.  Some functions are actually named
7155     something starting with __ and the normal name is an alias.  */
7156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7157 choke me
7158 #else
7159 $ac_func();
7160 #endif
7161
7162 ; return 0; }
7163 EOF
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165   rm -rf conftest*
7166   eval "ac_cv_func_$ac_func=yes"
7167 else
7168   echo "configure: failed program was:" >&5
7169   cat conftest.$ac_ext >&5
7170   rm -rf conftest*
7171   eval "ac_cv_func_$ac_func=no"
7172 fi
7173 rm -f conftest*
7174 fi
7175
7176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7177   echo "$ac_t""yes" 1>&6
7178     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7179   cat >> confdefs.h <<EOF
7180 #define $ac_tr_func 1
7181 EOF
7182  
7183 else
7184   echo "$ac_t""no" 1>&6
7185 fi
7186 done
7187     
7188   else
7189     
7190   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7191 echo "configure:7192: checking for _copysign declaration" >&5
7192   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7193     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7194   echo $ac_n "(cached) $ac_c" 1>&6
7195 else
7196   
7197       
7198       ac_ext=C
7199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7200 ac_cpp='$CXXCPP $CPPFLAGS'
7201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7203 cross_compiling=$ac_cv_prog_cxx_cross
7204
7205       cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 #include <math.h>
7209 int main() {
7210  _copysign(0, 0);
7211 ; return 0; }
7212 EOF
7213 if { (eval echo configure:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7214   rm -rf conftest*
7215   glibcpp_cv_func__copysign_use=yes
7216 else
7217   echo "configure: failed program was:" >&5
7218   cat conftest.$ac_ext >&5
7219   rm -rf conftest*
7220   glibcpp_cv_func__copysign_use=no
7221 fi
7222 rm -f conftest*
7223       ac_ext=c
7224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7228 cross_compiling=$ac_cv_prog_cc_cross
7229
7230     
7231 fi
7232
7233   fi
7234   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7235
7236     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7237       for ac_func in _copysign
7238 do
7239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7240 echo "configure:7241: checking for $ac_func" >&5
7241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7242   echo $ac_n "(cached) $ac_c" 1>&6
7243 else
7244   cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 /* System header to define __stub macros and hopefully few prototypes,
7248     which can conflict with char $ac_func(); below.  */
7249 #include <assert.h>
7250 /* Override any gcc2 internal prototype to avoid an error.  */
7251 /* We use char because int might match the return type of a gcc2
7252     builtin and then its argument prototype would still apply.  */
7253 char $ac_func();
7254
7255 int main() {
7256
7257 /* The GNU C library defines this for functions which it implements
7258     to always fail with ENOSYS.  Some functions are actually named
7259     something starting with __ and the normal name is an alias.  */
7260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7261 choke me
7262 #else
7263 $ac_func();
7264 #endif
7265
7266 ; return 0; }
7267 EOF
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7269   rm -rf conftest*
7270   eval "ac_cv_func_$ac_func=yes"
7271 else
7272   echo "configure: failed program was:" >&5
7273   cat conftest.$ac_ext >&5
7274   rm -rf conftest*
7275   eval "ac_cv_func_$ac_func=no"
7276 fi
7277 rm -f conftest*
7278 fi
7279
7280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7281   echo "$ac_t""yes" 1>&6
7282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7283   cat >> confdefs.h <<EOF
7284 #define $ac_tr_func 1
7285 EOF
7286  
7287 else
7288   echo "$ac_t""no" 1>&6
7289 fi
7290 done
7291     
7292     fi
7293   fi
7294
7295   
7296   
7297   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7298 echo "configure:7299: checking for sincos declaration" >&5
7299   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7300     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7301   echo $ac_n "(cached) $ac_c" 1>&6
7302 else
7303   
7304       
7305       ac_ext=C
7306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7307 ac_cpp='$CXXCPP $CPPFLAGS'
7308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7310 cross_compiling=$ac_cv_prog_cxx_cross
7311
7312       cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <math.h>
7316 int main() {
7317  sincos(0, 0, 0);
7318 ; return 0; }
7319 EOF
7320 if { (eval echo configure:7321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7321   rm -rf conftest*
7322   glibcpp_cv_func_sincos_use=yes
7323 else
7324   echo "configure: failed program was:" >&5
7325   cat conftest.$ac_ext >&5
7326   rm -rf conftest*
7327   glibcpp_cv_func_sincos_use=no
7328 fi
7329 rm -f conftest*
7330       ac_ext=c
7331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7332 ac_cpp='$CPP $CPPFLAGS'
7333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7335 cross_compiling=$ac_cv_prog_cc_cross
7336
7337     
7338 fi
7339
7340   fi
7341   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7342
7343   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7344     for ac_func in sincos
7345 do
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349   echo $ac_n "(cached) $ac_c" 1>&6
7350 else
7351   cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355     which can conflict with char $ac_func(); below.  */
7356 #include <assert.h>
7357 /* Override any gcc2 internal prototype to avoid an error.  */
7358 /* We use char because int might match the return type of a gcc2
7359     builtin and then its argument prototype would still apply.  */
7360 char $ac_func();
7361
7362 int main() {
7363
7364 /* The GNU C library defines this for functions which it implements
7365     to always fail with ENOSYS.  Some functions are actually named
7366     something starting with __ and the normal name is an alias.  */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 choke me
7369 #else
7370 $ac_func();
7371 #endif
7372
7373 ; return 0; }
7374 EOF
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7376   rm -rf conftest*
7377   eval "ac_cv_func_$ac_func=yes"
7378 else
7379   echo "configure: failed program was:" >&5
7380   cat conftest.$ac_ext >&5
7381   rm -rf conftest*
7382   eval "ac_cv_func_$ac_func=no"
7383 fi
7384 rm -f conftest*
7385 fi
7386
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388   echo "$ac_t""yes" 1>&6
7389     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390   cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7392 EOF
7393  
7394 else
7395   echo "$ac_t""no" 1>&6
7396 fi
7397 done
7398     
7399   else
7400     
7401   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7402 echo "configure:7403: checking for _sincos declaration" >&5
7403   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7404     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7405   echo $ac_n "(cached) $ac_c" 1>&6
7406 else
7407   
7408       
7409       ac_ext=C
7410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7411 ac_cpp='$CXXCPP $CPPFLAGS'
7412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7414 cross_compiling=$ac_cv_prog_cxx_cross
7415
7416       cat > conftest.$ac_ext <<EOF
7417 #line 7418 "configure"
7418 #include "confdefs.h"
7419 #include <math.h>
7420 int main() {
7421  _sincos(0, 0, 0);
7422 ; return 0; }
7423 EOF
7424 if { (eval echo configure:7425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7425   rm -rf conftest*
7426   glibcpp_cv_func__sincos_use=yes
7427 else
7428   echo "configure: failed program was:" >&5
7429   cat conftest.$ac_ext >&5
7430   rm -rf conftest*
7431   glibcpp_cv_func__sincos_use=no
7432 fi
7433 rm -f conftest*
7434       ac_ext=c
7435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7436 ac_cpp='$CPP $CPPFLAGS'
7437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7439 cross_compiling=$ac_cv_prog_cc_cross
7440
7441     
7442 fi
7443
7444   fi
7445   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7446
7447     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7448       for ac_func in _sincos
7449 do
7450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_func" >&5
7452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7453   echo $ac_n "(cached) $ac_c" 1>&6
7454 else
7455   cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* System header to define __stub macros and hopefully few prototypes,
7459     which can conflict with char $ac_func(); below.  */
7460 #include <assert.h>
7461 /* Override any gcc2 internal prototype to avoid an error.  */
7462 /* We use char because int might match the return type of a gcc2
7463     builtin and then its argument prototype would still apply.  */
7464 char $ac_func();
7465
7466 int main() {
7467
7468 /* The GNU C library defines this for functions which it implements
7469     to always fail with ENOSYS.  Some functions are actually named
7470     something starting with __ and the normal name is an alias.  */
7471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7472 choke me
7473 #else
7474 $ac_func();
7475 #endif
7476
7477 ; return 0; }
7478 EOF
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480   rm -rf conftest*
7481   eval "ac_cv_func_$ac_func=yes"
7482 else
7483   echo "configure: failed program was:" >&5
7484   cat conftest.$ac_ext >&5
7485   rm -rf conftest*
7486   eval "ac_cv_func_$ac_func=no"
7487 fi
7488 rm -f conftest*
7489 fi
7490
7491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7492   echo "$ac_t""yes" 1>&6
7493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7494   cat >> confdefs.h <<EOF
7495 #define $ac_tr_func 1
7496 EOF
7497  
7498 else
7499   echo "$ac_t""no" 1>&6
7500 fi
7501 done
7502     
7503     fi
7504   fi
7505
7506   
7507   
7508   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7509 echo "configure:7510: checking for fpclass declaration" >&5
7510   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7511     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7512   echo $ac_n "(cached) $ac_c" 1>&6
7513 else
7514   
7515       
7516       ac_ext=C
7517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7518 ac_cpp='$CXXCPP $CPPFLAGS'
7519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7521 cross_compiling=$ac_cv_prog_cxx_cross
7522
7523       cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526 #include <math.h>
7527                       #ifdef HAVE_IEEEFP_H
7528                       #include <ieeefp.h>
7529                       #endif
7530                      
7531 int main() {
7532  fpclass(0);
7533 ; return 0; }
7534 EOF
7535 if { (eval echo configure:7536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7536   rm -rf conftest*
7537   glibcpp_cv_func_fpclass_use=yes
7538 else
7539   echo "configure: failed program was:" >&5
7540   cat conftest.$ac_ext >&5
7541   rm -rf conftest*
7542   glibcpp_cv_func_fpclass_use=no
7543 fi
7544 rm -f conftest*
7545       ac_ext=c
7546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7547 ac_cpp='$CPP $CPPFLAGS'
7548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7550 cross_compiling=$ac_cv_prog_cc_cross
7551
7552     
7553 fi
7554
7555   fi
7556   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7557
7558   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7559     for ac_func in fpclass
7560 do
7561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_func" >&5
7563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7564   echo $ac_n "(cached) $ac_c" 1>&6
7565 else
7566   cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570     which can conflict with char $ac_func(); below.  */
7571 #include <assert.h>
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 /* We use char because int might match the return type of a gcc2
7574     builtin and then its argument prototype would still apply.  */
7575 char $ac_func();
7576
7577 int main() {
7578
7579 /* The GNU C library defines this for functions which it implements
7580     to always fail with ENOSYS.  Some functions are actually named
7581     something starting with __ and the normal name is an alias.  */
7582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7583 choke me
7584 #else
7585 $ac_func();
7586 #endif
7587
7588 ; return 0; }
7589 EOF
7590 if { (eval echo configure:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591   rm -rf conftest*
7592   eval "ac_cv_func_$ac_func=yes"
7593 else
7594   echo "configure: failed program was:" >&5
7595   cat conftest.$ac_ext >&5
7596   rm -rf conftest*
7597   eval "ac_cv_func_$ac_func=no"
7598 fi
7599 rm -f conftest*
7600 fi
7601
7602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7603   echo "$ac_t""yes" 1>&6
7604     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7605   cat >> confdefs.h <<EOF
7606 #define $ac_tr_func 1
7607 EOF
7608  
7609 else
7610   echo "$ac_t""no" 1>&6
7611 fi
7612 done
7613     
7614   else
7615     
7616   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7617 echo "configure:7618: checking for _fpclass declaration" >&5
7618   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7619     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7620   echo $ac_n "(cached) $ac_c" 1>&6
7621 else
7622   
7623       
7624       ac_ext=C
7625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7626 ac_cpp='$CXXCPP $CPPFLAGS'
7627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7629 cross_compiling=$ac_cv_prog_cxx_cross
7630
7631       cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 #include <math.h>
7635                       #ifdef HAVE_IEEEFP_H
7636                       #include <ieeefp.h>
7637                       #endif
7638                      
7639 int main() {
7640  _fpclass(0);
7641 ; return 0; }
7642 EOF
7643 if { (eval echo configure:7644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7644   rm -rf conftest*
7645   glibcpp_cv_func__fpclass_use=yes
7646 else
7647   echo "configure: failed program was:" >&5
7648   cat conftest.$ac_ext >&5
7649   rm -rf conftest*
7650   glibcpp_cv_func__fpclass_use=no
7651 fi
7652 rm -f conftest*
7653       ac_ext=c
7654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7658 cross_compiling=$ac_cv_prog_cc_cross
7659
7660     
7661 fi
7662
7663   fi
7664   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7665
7666     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7667       for ac_func in _fpclass
7668 do
7669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7670 echo "configure:7671: checking for $ac_func" >&5
7671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7672   echo $ac_n "(cached) $ac_c" 1>&6
7673 else
7674   cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* System header to define __stub macros and hopefully few prototypes,
7678     which can conflict with char $ac_func(); below.  */
7679 #include <assert.h>
7680 /* Override any gcc2 internal prototype to avoid an error.  */
7681 /* We use char because int might match the return type of a gcc2
7682     builtin and then its argument prototype would still apply.  */
7683 char $ac_func();
7684
7685 int main() {
7686
7687 /* The GNU C library defines this for functions which it implements
7688     to always fail with ENOSYS.  Some functions are actually named
7689     something starting with __ and the normal name is an alias.  */
7690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 choke me
7692 #else
7693 $ac_func();
7694 #endif
7695
7696 ; return 0; }
7697 EOF
7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7699   rm -rf conftest*
7700   eval "ac_cv_func_$ac_func=yes"
7701 else
7702   echo "configure: failed program was:" >&5
7703   cat conftest.$ac_ext >&5
7704   rm -rf conftest*
7705   eval "ac_cv_func_$ac_func=no"
7706 fi
7707 rm -f conftest*
7708 fi
7709
7710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7711   echo "$ac_t""yes" 1>&6
7712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7713   cat >> confdefs.h <<EOF
7714 #define $ac_tr_func 1
7715 EOF
7716  
7717 else
7718   echo "$ac_t""no" 1>&6
7719 fi
7720 done
7721     
7722     fi
7723   fi
7724
7725   
7726   
7727   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7728 echo "configure:7729: checking for qfpclass declaration" >&5
7729   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7730     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7731   echo $ac_n "(cached) $ac_c" 1>&6
7732 else
7733   
7734       
7735       ac_ext=C
7736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7737 ac_cpp='$CXXCPP $CPPFLAGS'
7738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7740 cross_compiling=$ac_cv_prog_cxx_cross
7741
7742       cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 #include <math.h>
7746                       #ifdef HAVE_IEEEFP_H
7747                       #include <ieeefp.h>
7748                       #endif
7749                      
7750 int main() {
7751  qfpclass(0);
7752 ; return 0; }
7753 EOF
7754 if { (eval echo configure:7755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7755   rm -rf conftest*
7756   glibcpp_cv_func_qfpclass_use=yes
7757 else
7758   echo "configure: failed program was:" >&5
7759   cat conftest.$ac_ext >&5
7760   rm -rf conftest*
7761   glibcpp_cv_func_qfpclass_use=no
7762 fi
7763 rm -f conftest*
7764       ac_ext=c
7765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7769 cross_compiling=$ac_cv_prog_cc_cross
7770
7771     
7772 fi
7773
7774   fi
7775   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7776
7777   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7778     for ac_func in qfpclass
7779 do
7780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7781 echo "configure:7782: checking for $ac_func" >&5
7782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7783   echo $ac_n "(cached) $ac_c" 1>&6
7784 else
7785   cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7788 /* System header to define __stub macros and hopefully few prototypes,
7789     which can conflict with char $ac_func(); below.  */
7790 #include <assert.h>
7791 /* Override any gcc2 internal prototype to avoid an error.  */
7792 /* We use char because int might match the return type of a gcc2
7793     builtin and then its argument prototype would still apply.  */
7794 char $ac_func();
7795
7796 int main() {
7797
7798 /* The GNU C library defines this for functions which it implements
7799     to always fail with ENOSYS.  Some functions are actually named
7800     something starting with __ and the normal name is an alias.  */
7801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7802 choke me
7803 #else
7804 $ac_func();
7805 #endif
7806
7807 ; return 0; }
7808 EOF
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810   rm -rf conftest*
7811   eval "ac_cv_func_$ac_func=yes"
7812 else
7813   echo "configure: failed program was:" >&5
7814   cat conftest.$ac_ext >&5
7815   rm -rf conftest*
7816   eval "ac_cv_func_$ac_func=no"
7817 fi
7818 rm -f conftest*
7819 fi
7820
7821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7822   echo "$ac_t""yes" 1>&6
7823     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7824   cat >> confdefs.h <<EOF
7825 #define $ac_tr_func 1
7826 EOF
7827  
7828 else
7829   echo "$ac_t""no" 1>&6
7830 fi
7831 done
7832     
7833   else
7834     
7835   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7836 echo "configure:7837: checking for _qfpclass declaration" >&5
7837   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7838     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7839   echo $ac_n "(cached) $ac_c" 1>&6
7840 else
7841   
7842       
7843       ac_ext=C
7844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7845 ac_cpp='$CXXCPP $CPPFLAGS'
7846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7848 cross_compiling=$ac_cv_prog_cxx_cross
7849
7850       cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 #include <math.h>
7854                       #ifdef HAVE_IEEEFP_H
7855                       #include <ieeefp.h>
7856                       #endif
7857                      
7858 int main() {
7859  _qfpclass(0);
7860 ; return 0; }
7861 EOF
7862 if { (eval echo configure:7863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7863   rm -rf conftest*
7864   glibcpp_cv_func__qfpclass_use=yes
7865 else
7866   echo "configure: failed program was:" >&5
7867   cat conftest.$ac_ext >&5
7868   rm -rf conftest*
7869   glibcpp_cv_func__qfpclass_use=no
7870 fi
7871 rm -f conftest*
7872       ac_ext=c
7873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7877 cross_compiling=$ac_cv_prog_cc_cross
7878
7879     
7880 fi
7881
7882   fi
7883   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7884
7885     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7886       for ac_func in _qfpclass
7887 do
7888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7889 echo "configure:7890: checking for $ac_func" >&5
7890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7891   echo $ac_n "(cached) $ac_c" 1>&6
7892 else
7893   cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* System header to define __stub macros and hopefully few prototypes,
7897     which can conflict with char $ac_func(); below.  */
7898 #include <assert.h>
7899 /* Override any gcc2 internal prototype to avoid an error.  */
7900 /* We use char because int might match the return type of a gcc2
7901     builtin and then its argument prototype would still apply.  */
7902 char $ac_func();
7903
7904 int main() {
7905
7906 /* The GNU C library defines this for functions which it implements
7907     to always fail with ENOSYS.  Some functions are actually named
7908     something starting with __ and the normal name is an alias.  */
7909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7910 choke me
7911 #else
7912 $ac_func();
7913 #endif
7914
7915 ; return 0; }
7916 EOF
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7918   rm -rf conftest*
7919   eval "ac_cv_func_$ac_func=yes"
7920 else
7921   echo "configure: failed program was:" >&5
7922   cat conftest.$ac_ext >&5
7923   rm -rf conftest*
7924   eval "ac_cv_func_$ac_func=no"
7925 fi
7926 rm -f conftest*
7927 fi
7928
7929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7930   echo "$ac_t""yes" 1>&6
7931     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7932   cat >> confdefs.h <<EOF
7933 #define $ac_tr_func 1
7934 EOF
7935  
7936 else
7937   echo "$ac_t""no" 1>&6
7938 fi
7939 done
7940     
7941     fi
7942   fi
7943
7944   
7945   
7946   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
7947 echo "configure:7948: checking for hypot declaration" >&5
7948   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
7949     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
7950   echo $ac_n "(cached) $ac_c" 1>&6
7951 else
7952   
7953       
7954       ac_ext=C
7955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7956 ac_cpp='$CXXCPP $CPPFLAGS'
7957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7959 cross_compiling=$ac_cv_prog_cxx_cross
7960
7961       cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 #include <math.h>
7965 int main() {
7966  hypot(0, 0);
7967 ; return 0; }
7968 EOF
7969 if { (eval echo configure:7970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7970   rm -rf conftest*
7971   glibcpp_cv_func_hypot_use=yes
7972 else
7973   echo "configure: failed program was:" >&5
7974   cat conftest.$ac_ext >&5
7975   rm -rf conftest*
7976   glibcpp_cv_func_hypot_use=no
7977 fi
7978 rm -f conftest*
7979       ac_ext=c
7980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7984 cross_compiling=$ac_cv_prog_cc_cross
7985
7986     
7987 fi
7988
7989   fi
7990   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
7991
7992   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
7993     for ac_func in hypot
7994 do
7995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7996 echo "configure:7997: checking for $ac_func" >&5
7997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7998   echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000   cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 /* System header to define __stub macros and hopefully few prototypes,
8004     which can conflict with char $ac_func(); below.  */
8005 #include <assert.h>
8006 /* Override any gcc2 internal prototype to avoid an error.  */
8007 /* We use char because int might match the return type of a gcc2
8008     builtin and then its argument prototype would still apply.  */
8009 char $ac_func();
8010
8011 int main() {
8012
8013 /* The GNU C library defines this for functions which it implements
8014     to always fail with ENOSYS.  Some functions are actually named
8015     something starting with __ and the normal name is an alias.  */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8017 choke me
8018 #else
8019 $ac_func();
8020 #endif
8021
8022 ; return 0; }
8023 EOF
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8025   rm -rf conftest*
8026   eval "ac_cv_func_$ac_func=yes"
8027 else
8028   echo "configure: failed program was:" >&5
8029   cat conftest.$ac_ext >&5
8030   rm -rf conftest*
8031   eval "ac_cv_func_$ac_func=no"
8032 fi
8033 rm -f conftest*
8034 fi
8035
8036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8037   echo "$ac_t""yes" 1>&6
8038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8039   cat >> confdefs.h <<EOF
8040 #define $ac_tr_func 1
8041 EOF
8042  
8043 else
8044   echo "$ac_t""no" 1>&6
8045 fi
8046 done
8047     
8048   else
8049     
8050   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8051 echo "configure:8052: checking for _hypot declaration" >&5
8052   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8053     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8054   echo $ac_n "(cached) $ac_c" 1>&6
8055 else
8056   
8057       
8058       ac_ext=C
8059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8060 ac_cpp='$CXXCPP $CPPFLAGS'
8061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8063 cross_compiling=$ac_cv_prog_cxx_cross
8064
8065       cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 #include <math.h>
8069 int main() {
8070  _hypot(0, 0);
8071 ; return 0; }
8072 EOF
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8074   rm -rf conftest*
8075   glibcpp_cv_func__hypot_use=yes
8076 else
8077   echo "configure: failed program was:" >&5
8078   cat conftest.$ac_ext >&5
8079   rm -rf conftest*
8080   glibcpp_cv_func__hypot_use=no
8081 fi
8082 rm -f conftest*
8083       ac_ext=c
8084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8085 ac_cpp='$CPP $CPPFLAGS'
8086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8088 cross_compiling=$ac_cv_prog_cc_cross
8089
8090     
8091 fi
8092
8093   fi
8094   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8095
8096     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8097       for ac_func in _hypot
8098 do
8099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $ac_func" >&5
8101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8102   echo $ac_n "(cached) $ac_c" 1>&6
8103 else
8104   cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8107 /* System header to define __stub macros and hopefully few prototypes,
8108     which can conflict with char $ac_func(); below.  */
8109 #include <assert.h>
8110 /* Override any gcc2 internal prototype to avoid an error.  */
8111 /* We use char because int might match the return type of a gcc2
8112     builtin and then its argument prototype would still apply.  */
8113 char $ac_func();
8114
8115 int main() {
8116
8117 /* The GNU C library defines this for functions which it implements
8118     to always fail with ENOSYS.  Some functions are actually named
8119     something starting with __ and the normal name is an alias.  */
8120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8121 choke me
8122 #else
8123 $ac_func();
8124 #endif
8125
8126 ; return 0; }
8127 EOF
8128 if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8129   rm -rf conftest*
8130   eval "ac_cv_func_$ac_func=yes"
8131 else
8132   echo "configure: failed program was:" >&5
8133   cat conftest.$ac_ext >&5
8134   rm -rf conftest*
8135   eval "ac_cv_func_$ac_func=no"
8136 fi
8137 rm -f conftest*
8138 fi
8139
8140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8141   echo "$ac_t""yes" 1>&6
8142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8143   cat >> confdefs.h <<EOF
8144 #define $ac_tr_func 1
8145 EOF
8146  
8147 else
8148   echo "$ac_t""no" 1>&6
8149 fi
8150 done
8151     
8152     fi
8153   fi
8154
8155
8156     
8157   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8158 echo "configure:8159: checking for float trig functions" >&5
8159   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8160   echo $ac_n "(cached) $ac_c" 1>&6
8161 else
8162   
8163     
8164     ac_ext=C
8165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8166 ac_cpp='$CXXCPP $CPPFLAGS'
8167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8169 cross_compiling=$ac_cv_prog_cxx_cross
8170
8171     cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 #include <math.h>
8175 int main() {
8176  `for x in acosf asinf atanf \
8177                                           cosf sinf tanf \
8178                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8179 ; return 0; }
8180 EOF
8181 if { (eval echo configure:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8182   rm -rf conftest*
8183   glibcpp_cv_func_float_trig_use=yes
8184 else
8185   echo "configure: failed program was:" >&5
8186   cat conftest.$ac_ext >&5
8187   rm -rf conftest*
8188   glibcpp_cv_func_float_trig_use=no
8189 fi
8190 rm -f conftest*
8191     ac_ext=c
8192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8196 cross_compiling=$ac_cv_prog_cc_cross
8197
8198 fi
8199
8200   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8201   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8202     for ac_func in acosf asinf atanf \
8203                                           cosf sinf tanf \
8204                                           coshf sinhf tanhf
8205 do
8206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_func" >&5
8208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8209   echo $ac_n "(cached) $ac_c" 1>&6
8210 else
8211   cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214 /* System header to define __stub macros and hopefully few prototypes,
8215     which can conflict with char $ac_func(); below.  */
8216 #include <assert.h>
8217 /* Override any gcc2 internal prototype to avoid an error.  */
8218 /* We use char because int might match the return type of a gcc2
8219     builtin and then its argument prototype would still apply.  */
8220 char $ac_func();
8221
8222 int main() {
8223
8224 /* The GNU C library defines this for functions which it implements
8225     to always fail with ENOSYS.  Some functions are actually named
8226     something starting with __ and the normal name is an alias.  */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 choke me
8229 #else
8230 $ac_func();
8231 #endif
8232
8233 ; return 0; }
8234 EOF
8235 if { (eval echo configure:8236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8236   rm -rf conftest*
8237   eval "ac_cv_func_$ac_func=yes"
8238 else
8239   echo "configure: failed program was:" >&5
8240   cat conftest.$ac_ext >&5
8241   rm -rf conftest*
8242   eval "ac_cv_func_$ac_func=no"
8243 fi
8244 rm -f conftest*
8245 fi
8246
8247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8248   echo "$ac_t""yes" 1>&6
8249     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8250   cat >> confdefs.h <<EOF
8251 #define $ac_tr_func 1
8252 EOF
8253  
8254 else
8255   echo "$ac_t""no" 1>&6
8256 fi
8257 done
8258
8259   fi
8260
8261   
8262   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8263 echo "configure:8264: checking for float round functions" >&5
8264   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8265   echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8267   
8268     
8269     ac_ext=C
8270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8271 ac_cpp='$CXXCPP $CPPFLAGS'
8272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8274 cross_compiling=$ac_cv_prog_cxx_cross
8275
8276     cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 #include <math.h>
8280 int main() {
8281  `for x in ceilf floorf; do echo "$x (0);"; done` 
8282 ; return 0; }
8283 EOF
8284 if { (eval echo configure:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8285   rm -rf conftest*
8286   glibcpp_cv_func_float_round_use=yes
8287 else
8288   echo "configure: failed program was:" >&5
8289   cat conftest.$ac_ext >&5
8290   rm -rf conftest*
8291   glibcpp_cv_func_float_round_use=no
8292 fi
8293 rm -f conftest*
8294     ac_ext=c
8295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8296 ac_cpp='$CPP $CPPFLAGS'
8297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8299 cross_compiling=$ac_cv_prog_cc_cross
8300
8301 fi
8302
8303   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8304   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8305     for ac_func in ceilf floorf
8306 do
8307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8308 echo "configure:8309: checking for $ac_func" >&5
8309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8310   echo $ac_n "(cached) $ac_c" 1>&6
8311 else
8312   cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* System header to define __stub macros and hopefully few prototypes,
8316     which can conflict with char $ac_func(); below.  */
8317 #include <assert.h>
8318 /* Override any gcc2 internal prototype to avoid an error.  */
8319 /* We use char because int might match the return type of a gcc2
8320     builtin and then its argument prototype would still apply.  */
8321 char $ac_func();
8322
8323 int main() {
8324
8325 /* The GNU C library defines this for functions which it implements
8326     to always fail with ENOSYS.  Some functions are actually named
8327     something starting with __ and the normal name is an alias.  */
8328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8329 choke me
8330 #else
8331 $ac_func();
8332 #endif
8333
8334 ; return 0; }
8335 EOF
8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337   rm -rf conftest*
8338   eval "ac_cv_func_$ac_func=yes"
8339 else
8340   echo "configure: failed program was:" >&5
8341   cat conftest.$ac_ext >&5
8342   rm -rf conftest*
8343   eval "ac_cv_func_$ac_func=no"
8344 fi
8345 rm -f conftest*
8346 fi
8347
8348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8349   echo "$ac_t""yes" 1>&6
8350     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8351   cat >> confdefs.h <<EOF
8352 #define $ac_tr_func 1
8353 EOF
8354  
8355 else
8356   echo "$ac_t""no" 1>&6
8357 fi
8358 done
8359
8360   fi
8361
8362   
8363   
8364   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8365 echo "configure:8366: checking for isnanf declaration" >&5
8366   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8367     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8368   echo $ac_n "(cached) $ac_c" 1>&6
8369 else
8370   
8371       
8372       ac_ext=C
8373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8374 ac_cpp='$CXXCPP $CPPFLAGS'
8375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8377 cross_compiling=$ac_cv_prog_cxx_cross
8378
8379       cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 #include <math.h>
8383                       #ifdef HAVE_IEEEFP_H
8384                       #include <ieeefp.h>
8385                       #endif
8386                      
8387 int main() {
8388  isnanf(0);
8389 ; return 0; }
8390 EOF
8391 if { (eval echo configure:8392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8392   rm -rf conftest*
8393   glibcpp_cv_func_isnanf_use=yes
8394 else
8395   echo "configure: failed program was:" >&5
8396   cat conftest.$ac_ext >&5
8397   rm -rf conftest*
8398   glibcpp_cv_func_isnanf_use=no
8399 fi
8400 rm -f conftest*
8401       ac_ext=c
8402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8406 cross_compiling=$ac_cv_prog_cc_cross
8407
8408     
8409 fi
8410
8411   fi
8412   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8413
8414   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8415     for ac_func in isnanf
8416 do
8417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8418 echo "configure:8419: checking for $ac_func" >&5
8419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8420   echo $ac_n "(cached) $ac_c" 1>&6
8421 else
8422   cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 /* System header to define __stub macros and hopefully few prototypes,
8426     which can conflict with char $ac_func(); below.  */
8427 #include <assert.h>
8428 /* Override any gcc2 internal prototype to avoid an error.  */
8429 /* We use char because int might match the return type of a gcc2
8430     builtin and then its argument prototype would still apply.  */
8431 char $ac_func();
8432
8433 int main() {
8434
8435 /* The GNU C library defines this for functions which it implements
8436     to always fail with ENOSYS.  Some functions are actually named
8437     something starting with __ and the normal name is an alias.  */
8438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 choke me
8440 #else
8441 $ac_func();
8442 #endif
8443
8444 ; return 0; }
8445 EOF
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8447   rm -rf conftest*
8448   eval "ac_cv_func_$ac_func=yes"
8449 else
8450   echo "configure: failed program was:" >&5
8451   cat conftest.$ac_ext >&5
8452   rm -rf conftest*
8453   eval "ac_cv_func_$ac_func=no"
8454 fi
8455 rm -f conftest*
8456 fi
8457
8458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8459   echo "$ac_t""yes" 1>&6
8460     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8461   cat >> confdefs.h <<EOF
8462 #define $ac_tr_func 1
8463 EOF
8464  
8465 else
8466   echo "$ac_t""no" 1>&6
8467 fi
8468 done
8469     
8470   else
8471     
8472   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8473 echo "configure:8474: checking for _isnanf declaration" >&5
8474   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8475     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8476   echo $ac_n "(cached) $ac_c" 1>&6
8477 else
8478   
8479       
8480       ac_ext=C
8481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8482 ac_cpp='$CXXCPP $CPPFLAGS'
8483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8485 cross_compiling=$ac_cv_prog_cxx_cross
8486
8487       cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 #include <math.h>
8491                       #ifdef HAVE_IEEEFP_H
8492                       #include <ieeefp.h>
8493                       #endif
8494                      
8495 int main() {
8496  _isnanf(0);
8497 ; return 0; }
8498 EOF
8499 if { (eval echo configure:8500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8500   rm -rf conftest*
8501   glibcpp_cv_func__isnanf_use=yes
8502 else
8503   echo "configure: failed program was:" >&5
8504   cat conftest.$ac_ext >&5
8505   rm -rf conftest*
8506   glibcpp_cv_func__isnanf_use=no
8507 fi
8508 rm -f conftest*
8509       ac_ext=c
8510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8511 ac_cpp='$CPP $CPPFLAGS'
8512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8514 cross_compiling=$ac_cv_prog_cc_cross
8515
8516     
8517 fi
8518
8519   fi
8520   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8521
8522     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8523       for ac_func in _isnanf
8524 do
8525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_func" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8528   echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530   cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534     which can conflict with char $ac_func(); below.  */
8535 #include <assert.h>
8536 /* Override any gcc2 internal prototype to avoid an error.  */
8537 /* We use char because int might match the return type of a gcc2
8538     builtin and then its argument prototype would still apply.  */
8539 char $ac_func();
8540
8541 int main() {
8542
8543 /* The GNU C library defines this for functions which it implements
8544     to always fail with ENOSYS.  Some functions are actually named
8545     something starting with __ and the normal name is an alias.  */
8546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8547 choke me
8548 #else
8549 $ac_func();
8550 #endif
8551
8552 ; return 0; }
8553 EOF
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555   rm -rf conftest*
8556   eval "ac_cv_func_$ac_func=yes"
8557 else
8558   echo "configure: failed program was:" >&5
8559   cat conftest.$ac_ext >&5
8560   rm -rf conftest*
8561   eval "ac_cv_func_$ac_func=no"
8562 fi
8563 rm -f conftest*
8564 fi
8565
8566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8567   echo "$ac_t""yes" 1>&6
8568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8569   cat >> confdefs.h <<EOF
8570 #define $ac_tr_func 1
8571 EOF
8572  
8573 else
8574   echo "$ac_t""no" 1>&6
8575 fi
8576 done
8577     
8578     fi
8579   fi
8580
8581   
8582   
8583   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8584 echo "configure:8585: checking for isinff declaration" >&5
8585   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8586     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8587   echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8589   
8590       
8591       ac_ext=C
8592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8593 ac_cpp='$CXXCPP $CPPFLAGS'
8594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8596 cross_compiling=$ac_cv_prog_cxx_cross
8597
8598       cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 #include <math.h>
8602                       #ifdef HAVE_IEEEFP_H
8603                       #include <ieeefp.h>
8604                       #endif
8605                      
8606 int main() {
8607  isinff(0);
8608 ; return 0; }
8609 EOF
8610 if { (eval echo configure:8611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8611   rm -rf conftest*
8612   glibcpp_cv_func_isinff_use=yes
8613 else
8614   echo "configure: failed program was:" >&5
8615   cat conftest.$ac_ext >&5
8616   rm -rf conftest*
8617   glibcpp_cv_func_isinff_use=no
8618 fi
8619 rm -f conftest*
8620       ac_ext=c
8621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8625 cross_compiling=$ac_cv_prog_cc_cross
8626
8627     
8628 fi
8629
8630   fi
8631   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8632
8633   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8634     for ac_func in isinff
8635 do
8636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8637 echo "configure:8638: checking for $ac_func" >&5
8638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8639   echo $ac_n "(cached) $ac_c" 1>&6
8640 else
8641   cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 /* System header to define __stub macros and hopefully few prototypes,
8645     which can conflict with char $ac_func(); below.  */
8646 #include <assert.h>
8647 /* Override any gcc2 internal prototype to avoid an error.  */
8648 /* We use char because int might match the return type of a gcc2
8649     builtin and then its argument prototype would still apply.  */
8650 char $ac_func();
8651
8652 int main() {
8653
8654 /* The GNU C library defines this for functions which it implements
8655     to always fail with ENOSYS.  Some functions are actually named
8656     something starting with __ and the normal name is an alias.  */
8657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8658 choke me
8659 #else
8660 $ac_func();
8661 #endif
8662
8663 ; return 0; }
8664 EOF
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666   rm -rf conftest*
8667   eval "ac_cv_func_$ac_func=yes"
8668 else
8669   echo "configure: failed program was:" >&5
8670   cat conftest.$ac_ext >&5
8671   rm -rf conftest*
8672   eval "ac_cv_func_$ac_func=no"
8673 fi
8674 rm -f conftest*
8675 fi
8676
8677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8678   echo "$ac_t""yes" 1>&6
8679     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8680   cat >> confdefs.h <<EOF
8681 #define $ac_tr_func 1
8682 EOF
8683  
8684 else
8685   echo "$ac_t""no" 1>&6
8686 fi
8687 done
8688     
8689   else
8690     
8691   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8692 echo "configure:8693: checking for _isinff declaration" >&5
8693   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8694     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8695   echo $ac_n "(cached) $ac_c" 1>&6
8696 else
8697   
8698       
8699       ac_ext=C
8700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8701 ac_cpp='$CXXCPP $CPPFLAGS'
8702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8704 cross_compiling=$ac_cv_prog_cxx_cross
8705
8706       cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8709 #include <math.h>
8710                       #ifdef HAVE_IEEEFP_H
8711                       #include <ieeefp.h>
8712                       #endif
8713                      
8714 int main() {
8715  _isinff(0);
8716 ; return 0; }
8717 EOF
8718 if { (eval echo configure:8719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8719   rm -rf conftest*
8720   glibcpp_cv_func__isinff_use=yes
8721 else
8722   echo "configure: failed program was:" >&5
8723   cat conftest.$ac_ext >&5
8724   rm -rf conftest*
8725   glibcpp_cv_func__isinff_use=no
8726 fi
8727 rm -f conftest*
8728       ac_ext=c
8729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8730 ac_cpp='$CPP $CPPFLAGS'
8731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8733 cross_compiling=$ac_cv_prog_cc_cross
8734
8735     
8736 fi
8737
8738   fi
8739   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8740
8741     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8742       for ac_func in _isinff
8743 do
8744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8745 echo "configure:8746: checking for $ac_func" >&5
8746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8747   echo $ac_n "(cached) $ac_c" 1>&6
8748 else
8749   cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 /* System header to define __stub macros and hopefully few prototypes,
8753     which can conflict with char $ac_func(); below.  */
8754 #include <assert.h>
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 /* We use char because int might match the return type of a gcc2
8757     builtin and then its argument prototype would still apply.  */
8758 char $ac_func();
8759
8760 int main() {
8761
8762 /* The GNU C library defines this for functions which it implements
8763     to always fail with ENOSYS.  Some functions are actually named
8764     something starting with __ and the normal name is an alias.  */
8765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8766 choke me
8767 #else
8768 $ac_func();
8769 #endif
8770
8771 ; return 0; }
8772 EOF
8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8774   rm -rf conftest*
8775   eval "ac_cv_func_$ac_func=yes"
8776 else
8777   echo "configure: failed program was:" >&5
8778   cat conftest.$ac_ext >&5
8779   rm -rf conftest*
8780   eval "ac_cv_func_$ac_func=no"
8781 fi
8782 rm -f conftest*
8783 fi
8784
8785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8786   echo "$ac_t""yes" 1>&6
8787     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8788   cat >> confdefs.h <<EOF
8789 #define $ac_tr_func 1
8790 EOF
8791  
8792 else
8793   echo "$ac_t""no" 1>&6
8794 fi
8795 done
8796     
8797     fi
8798   fi
8799
8800   
8801   
8802   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8803 echo "configure:8804: checking for atan2f declaration" >&5
8804   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8805     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8806   echo $ac_n "(cached) $ac_c" 1>&6
8807 else
8808   
8809       
8810       ac_ext=C
8811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8812 ac_cpp='$CXXCPP $CPPFLAGS'
8813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8815 cross_compiling=$ac_cv_prog_cxx_cross
8816
8817       cat > conftest.$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8820 #include <math.h>
8821 int main() {
8822  atan2f(0, 0);
8823 ; return 0; }
8824 EOF
8825 if { (eval echo configure:8826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8826   rm -rf conftest*
8827   glibcpp_cv_func_atan2f_use=yes
8828 else
8829   echo "configure: failed program was:" >&5
8830   cat conftest.$ac_ext >&5
8831   rm -rf conftest*
8832   glibcpp_cv_func_atan2f_use=no
8833 fi
8834 rm -f conftest*
8835       ac_ext=c
8836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8837 ac_cpp='$CPP $CPPFLAGS'
8838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8840 cross_compiling=$ac_cv_prog_cc_cross
8841
8842     
8843 fi
8844
8845   fi
8846   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8847
8848   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8849     for ac_func in atan2f
8850 do
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854   echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856   cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860     which can conflict with char $ac_func(); below.  */
8861 #include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error.  */
8863 /* We use char because int might match the return type of a gcc2
8864     builtin and then its argument prototype would still apply.  */
8865 char $ac_func();
8866
8867 int main() {
8868
8869 /* The GNU C library defines this for functions which it implements
8870     to always fail with ENOSYS.  Some functions are actually named
8871     something starting with __ and the normal name is an alias.  */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 choke me
8874 #else
8875 $ac_func();
8876 #endif
8877
8878 ; return 0; }
8879 EOF
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881   rm -rf conftest*
8882   eval "ac_cv_func_$ac_func=yes"
8883 else
8884   echo "configure: failed program was:" >&5
8885   cat conftest.$ac_ext >&5
8886   rm -rf conftest*
8887   eval "ac_cv_func_$ac_func=no"
8888 fi
8889 rm -f conftest*
8890 fi
8891
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893   echo "$ac_t""yes" 1>&6
8894     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895   cat >> confdefs.h <<EOF
8896 #define $ac_tr_func 1
8897 EOF
8898  
8899 else
8900   echo "$ac_t""no" 1>&6
8901 fi
8902 done
8903     
8904   else
8905     
8906   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
8907 echo "configure:8908: checking for _atan2f declaration" >&5
8908   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
8909     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
8910   echo $ac_n "(cached) $ac_c" 1>&6
8911 else
8912   
8913       
8914       ac_ext=C
8915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8916 ac_cpp='$CXXCPP $CPPFLAGS'
8917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8919 cross_compiling=$ac_cv_prog_cxx_cross
8920
8921       cat > conftest.$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8924 #include <math.h>
8925 int main() {
8926  _atan2f(0, 0);
8927 ; return 0; }
8928 EOF
8929 if { (eval echo configure:8930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8930   rm -rf conftest*
8931   glibcpp_cv_func__atan2f_use=yes
8932 else
8933   echo "configure: failed program was:" >&5
8934   cat conftest.$ac_ext >&5
8935   rm -rf conftest*
8936   glibcpp_cv_func__atan2f_use=no
8937 fi
8938 rm -f conftest*
8939       ac_ext=c
8940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8941 ac_cpp='$CPP $CPPFLAGS'
8942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8944 cross_compiling=$ac_cv_prog_cc_cross
8945
8946     
8947 fi
8948
8949   fi
8950   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
8951
8952     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
8953       for ac_func in _atan2f
8954 do
8955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8956 echo "configure:8957: checking for $ac_func" >&5
8957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8958   echo $ac_n "(cached) $ac_c" 1>&6
8959 else
8960   cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964     which can conflict with char $ac_func(); below.  */
8965 #include <assert.h>
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 /* We use char because int might match the return type of a gcc2
8968     builtin and then its argument prototype would still apply.  */
8969 char $ac_func();
8970
8971 int main() {
8972
8973 /* The GNU C library defines this for functions which it implements
8974     to always fail with ENOSYS.  Some functions are actually named
8975     something starting with __ and the normal name is an alias.  */
8976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8977 choke me
8978 #else
8979 $ac_func();
8980 #endif
8981
8982 ; return 0; }
8983 EOF
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8985   rm -rf conftest*
8986   eval "ac_cv_func_$ac_func=yes"
8987 else
8988   echo "configure: failed program was:" >&5
8989   cat conftest.$ac_ext >&5
8990   rm -rf conftest*
8991   eval "ac_cv_func_$ac_func=no"
8992 fi
8993 rm -f conftest*
8994 fi
8995
8996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8997   echo "$ac_t""yes" 1>&6
8998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8999   cat >> confdefs.h <<EOF
9000 #define $ac_tr_func 1
9001 EOF
9002  
9003 else
9004   echo "$ac_t""no" 1>&6
9005 fi
9006 done
9007     
9008     fi
9009   fi
9010
9011   
9012   
9013   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9014 echo "configure:9015: checking for fabsf declaration" >&5
9015   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9016     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9017   echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019   
9020       
9021       ac_ext=C
9022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9023 ac_cpp='$CXXCPP $CPPFLAGS'
9024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9026 cross_compiling=$ac_cv_prog_cxx_cross
9027
9028       cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 #include <math.h>
9032                       #ifdef HAVE_IEEEFP_H
9033                       #include <ieeefp.h>
9034                       #endif
9035                      
9036 int main() {
9037  fabsf(0);
9038 ; return 0; }
9039 EOF
9040 if { (eval echo configure:9041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9041   rm -rf conftest*
9042   glibcpp_cv_func_fabsf_use=yes
9043 else
9044   echo "configure: failed program was:" >&5
9045   cat conftest.$ac_ext >&5
9046   rm -rf conftest*
9047   glibcpp_cv_func_fabsf_use=no
9048 fi
9049 rm -f conftest*
9050       ac_ext=c
9051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9052 ac_cpp='$CPP $CPPFLAGS'
9053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9055 cross_compiling=$ac_cv_prog_cc_cross
9056
9057     
9058 fi
9059
9060   fi
9061   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9062
9063   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9064     for ac_func in fabsf
9065 do
9066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9067 echo "configure:9068: checking for $ac_func" >&5
9068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9069   echo $ac_n "(cached) $ac_c" 1>&6
9070 else
9071   cat > conftest.$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 /* System header to define __stub macros and hopefully few prototypes,
9075     which can conflict with char $ac_func(); below.  */
9076 #include <assert.h>
9077 /* Override any gcc2 internal prototype to avoid an error.  */
9078 /* We use char because int might match the return type of a gcc2
9079     builtin and then its argument prototype would still apply.  */
9080 char $ac_func();
9081
9082 int main() {
9083
9084 /* The GNU C library defines this for functions which it implements
9085     to always fail with ENOSYS.  Some functions are actually named
9086     something starting with __ and the normal name is an alias.  */
9087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 choke me
9089 #else
9090 $ac_func();
9091 #endif
9092
9093 ; return 0; }
9094 EOF
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9096   rm -rf conftest*
9097   eval "ac_cv_func_$ac_func=yes"
9098 else
9099   echo "configure: failed program was:" >&5
9100   cat conftest.$ac_ext >&5
9101   rm -rf conftest*
9102   eval "ac_cv_func_$ac_func=no"
9103 fi
9104 rm -f conftest*
9105 fi
9106
9107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9108   echo "$ac_t""yes" 1>&6
9109     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9110   cat >> confdefs.h <<EOF
9111 #define $ac_tr_func 1
9112 EOF
9113  
9114 else
9115   echo "$ac_t""no" 1>&6
9116 fi
9117 done
9118     
9119   else
9120     
9121   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9122 echo "configure:9123: checking for _fabsf declaration" >&5
9123   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9124     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9125   echo $ac_n "(cached) $ac_c" 1>&6
9126 else
9127   
9128       
9129       ac_ext=C
9130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9131 ac_cpp='$CXXCPP $CPPFLAGS'
9132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9134 cross_compiling=$ac_cv_prog_cxx_cross
9135
9136       cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 #include <math.h>
9140                       #ifdef HAVE_IEEEFP_H
9141                       #include <ieeefp.h>
9142                       #endif
9143                      
9144 int main() {
9145  _fabsf(0);
9146 ; return 0; }
9147 EOF
9148 if { (eval echo configure:9149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9149   rm -rf conftest*
9150   glibcpp_cv_func__fabsf_use=yes
9151 else
9152   echo "configure: failed program was:" >&5
9153   cat conftest.$ac_ext >&5
9154   rm -rf conftest*
9155   glibcpp_cv_func__fabsf_use=no
9156 fi
9157 rm -f conftest*
9158       ac_ext=c
9159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9160 ac_cpp='$CPP $CPPFLAGS'
9161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9163 cross_compiling=$ac_cv_prog_cc_cross
9164
9165     
9166 fi
9167
9168   fi
9169   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9170
9171     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9172       for ac_func in _fabsf
9173 do
9174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9175 echo "configure:9176: checking for $ac_func" >&5
9176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9177   echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9179   cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 /* System header to define __stub macros and hopefully few prototypes,
9183     which can conflict with char $ac_func(); below.  */
9184 #include <assert.h>
9185 /* Override any gcc2 internal prototype to avoid an error.  */
9186 /* We use char because int might match the return type of a gcc2
9187     builtin and then its argument prototype would still apply.  */
9188 char $ac_func();
9189
9190 int main() {
9191
9192 /* The GNU C library defines this for functions which it implements
9193     to always fail with ENOSYS.  Some functions are actually named
9194     something starting with __ and the normal name is an alias.  */
9195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9196 choke me
9197 #else
9198 $ac_func();
9199 #endif
9200
9201 ; return 0; }
9202 EOF
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204   rm -rf conftest*
9205   eval "ac_cv_func_$ac_func=yes"
9206 else
9207   echo "configure: failed program was:" >&5
9208   cat conftest.$ac_ext >&5
9209   rm -rf conftest*
9210   eval "ac_cv_func_$ac_func=no"
9211 fi
9212 rm -f conftest*
9213 fi
9214
9215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9216   echo "$ac_t""yes" 1>&6
9217     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9218   cat >> confdefs.h <<EOF
9219 #define $ac_tr_func 1
9220 EOF
9221  
9222 else
9223   echo "$ac_t""no" 1>&6
9224 fi
9225 done
9226     
9227     fi
9228   fi
9229
9230   
9231   
9232   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9233 echo "configure:9234: checking for fmodf declaration" >&5
9234   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9235     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9236   echo $ac_n "(cached) $ac_c" 1>&6
9237 else
9238   
9239       
9240       ac_ext=C
9241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9242 ac_cpp='$CXXCPP $CPPFLAGS'
9243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9245 cross_compiling=$ac_cv_prog_cxx_cross
9246
9247       cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 #include <math.h>
9251 int main() {
9252  fmodf(0, 0);
9253 ; return 0; }
9254 EOF
9255 if { (eval echo configure:9256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9256   rm -rf conftest*
9257   glibcpp_cv_func_fmodf_use=yes
9258 else
9259   echo "configure: failed program was:" >&5
9260   cat conftest.$ac_ext >&5
9261   rm -rf conftest*
9262   glibcpp_cv_func_fmodf_use=no
9263 fi
9264 rm -f conftest*
9265       ac_ext=c
9266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9267 ac_cpp='$CPP $CPPFLAGS'
9268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9270 cross_compiling=$ac_cv_prog_cc_cross
9271
9272     
9273 fi
9274
9275   fi
9276   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9277
9278   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9279     for ac_func in fmodf
9280 do
9281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9282 echo "configure:9283: checking for $ac_func" >&5
9283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9284   echo $ac_n "(cached) $ac_c" 1>&6
9285 else
9286   cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure"
9288 #include "confdefs.h"
9289 /* System header to define __stub macros and hopefully few prototypes,
9290     which can conflict with char $ac_func(); below.  */
9291 #include <assert.h>
9292 /* Override any gcc2 internal prototype to avoid an error.  */
9293 /* We use char because int might match the return type of a gcc2
9294     builtin and then its argument prototype would still apply.  */
9295 char $ac_func();
9296
9297 int main() {
9298
9299 /* The GNU C library defines this for functions which it implements
9300     to always fail with ENOSYS.  Some functions are actually named
9301     something starting with __ and the normal name is an alias.  */
9302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9303 choke me
9304 #else
9305 $ac_func();
9306 #endif
9307
9308 ; return 0; }
9309 EOF
9310 if { (eval echo configure:9311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9311   rm -rf conftest*
9312   eval "ac_cv_func_$ac_func=yes"
9313 else
9314   echo "configure: failed program was:" >&5
9315   cat conftest.$ac_ext >&5
9316   rm -rf conftest*
9317   eval "ac_cv_func_$ac_func=no"
9318 fi
9319 rm -f conftest*
9320 fi
9321
9322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9323   echo "$ac_t""yes" 1>&6
9324     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9325   cat >> confdefs.h <<EOF
9326 #define $ac_tr_func 1
9327 EOF
9328  
9329 else
9330   echo "$ac_t""no" 1>&6
9331 fi
9332 done
9333     
9334   else
9335     
9336   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9337 echo "configure:9338: checking for _fmodf declaration" >&5
9338   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9339     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9340   echo $ac_n "(cached) $ac_c" 1>&6
9341 else
9342   
9343       
9344       ac_ext=C
9345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9346 ac_cpp='$CXXCPP $CPPFLAGS'
9347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9349 cross_compiling=$ac_cv_prog_cxx_cross
9350
9351       cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9354 #include <math.h>
9355 int main() {
9356  _fmodf(0, 0);
9357 ; return 0; }
9358 EOF
9359 if { (eval echo configure:9360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9360   rm -rf conftest*
9361   glibcpp_cv_func__fmodf_use=yes
9362 else
9363   echo "configure: failed program was:" >&5
9364   cat conftest.$ac_ext >&5
9365   rm -rf conftest*
9366   glibcpp_cv_func__fmodf_use=no
9367 fi
9368 rm -f conftest*
9369       ac_ext=c
9370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9371 ac_cpp='$CPP $CPPFLAGS'
9372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9374 cross_compiling=$ac_cv_prog_cc_cross
9375
9376     
9377 fi
9378
9379   fi
9380   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9381
9382     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9383       for ac_func in _fmodf
9384 do
9385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9386 echo "configure:9387: checking for $ac_func" >&5
9387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9388   echo $ac_n "(cached) $ac_c" 1>&6
9389 else
9390   cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 /* System header to define __stub macros and hopefully few prototypes,
9394     which can conflict with char $ac_func(); below.  */
9395 #include <assert.h>
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 /* We use char because int might match the return type of a gcc2
9398     builtin and then its argument prototype would still apply.  */
9399 char $ac_func();
9400
9401 int main() {
9402
9403 /* The GNU C library defines this for functions which it implements
9404     to always fail with ENOSYS.  Some functions are actually named
9405     something starting with __ and the normal name is an alias.  */
9406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9407 choke me
9408 #else
9409 $ac_func();
9410 #endif
9411
9412 ; return 0; }
9413 EOF
9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9415   rm -rf conftest*
9416   eval "ac_cv_func_$ac_func=yes"
9417 else
9418   echo "configure: failed program was:" >&5
9419   cat conftest.$ac_ext >&5
9420   rm -rf conftest*
9421   eval "ac_cv_func_$ac_func=no"
9422 fi
9423 rm -f conftest*
9424 fi
9425
9426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9427   echo "$ac_t""yes" 1>&6
9428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9429   cat >> confdefs.h <<EOF
9430 #define $ac_tr_func 1
9431 EOF
9432  
9433 else
9434   echo "$ac_t""no" 1>&6
9435 fi
9436 done
9437     
9438     fi
9439   fi
9440
9441   
9442   
9443   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9444 echo "configure:9445: checking for frexpf declaration" >&5
9445   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9446     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9447   echo $ac_n "(cached) $ac_c" 1>&6
9448 else
9449   
9450       
9451       ac_ext=C
9452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9453 ac_cpp='$CXXCPP $CPPFLAGS'
9454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9456 cross_compiling=$ac_cv_prog_cxx_cross
9457
9458       cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <math.h>
9462 int main() {
9463  frexpf(0, 0);
9464 ; return 0; }
9465 EOF
9466 if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9467   rm -rf conftest*
9468   glibcpp_cv_func_frexpf_use=yes
9469 else
9470   echo "configure: failed program was:" >&5
9471   cat conftest.$ac_ext >&5
9472   rm -rf conftest*
9473   glibcpp_cv_func_frexpf_use=no
9474 fi
9475 rm -f conftest*
9476       ac_ext=c
9477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9481 cross_compiling=$ac_cv_prog_cc_cross
9482
9483     
9484 fi
9485
9486   fi
9487   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9488
9489   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9490     for ac_func in frexpf
9491 do
9492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9493 echo "configure:9494: checking for $ac_func" >&5
9494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9495   echo $ac_n "(cached) $ac_c" 1>&6
9496 else
9497   cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 /* System header to define __stub macros and hopefully few prototypes,
9501     which can conflict with char $ac_func(); below.  */
9502 #include <assert.h>
9503 /* Override any gcc2 internal prototype to avoid an error.  */
9504 /* We use char because int might match the return type of a gcc2
9505     builtin and then its argument prototype would still apply.  */
9506 char $ac_func();
9507
9508 int main() {
9509
9510 /* The GNU C library defines this for functions which it implements
9511     to always fail with ENOSYS.  Some functions are actually named
9512     something starting with __ and the normal name is an alias.  */
9513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9514 choke me
9515 #else
9516 $ac_func();
9517 #endif
9518
9519 ; return 0; }
9520 EOF
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9522   rm -rf conftest*
9523   eval "ac_cv_func_$ac_func=yes"
9524 else
9525   echo "configure: failed program was:" >&5
9526   cat conftest.$ac_ext >&5
9527   rm -rf conftest*
9528   eval "ac_cv_func_$ac_func=no"
9529 fi
9530 rm -f conftest*
9531 fi
9532
9533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9534   echo "$ac_t""yes" 1>&6
9535     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9536   cat >> confdefs.h <<EOF
9537 #define $ac_tr_func 1
9538 EOF
9539  
9540 else
9541   echo "$ac_t""no" 1>&6
9542 fi
9543 done
9544     
9545   else
9546     
9547   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9548 echo "configure:9549: checking for _frexpf declaration" >&5
9549   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9550     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9551   echo $ac_n "(cached) $ac_c" 1>&6
9552 else
9553   
9554       
9555       ac_ext=C
9556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9557 ac_cpp='$CXXCPP $CPPFLAGS'
9558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9560 cross_compiling=$ac_cv_prog_cxx_cross
9561
9562       cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9565 #include <math.h>
9566 int main() {
9567  _frexpf(0, 0);
9568 ; return 0; }
9569 EOF
9570 if { (eval echo configure:9571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9571   rm -rf conftest*
9572   glibcpp_cv_func__frexpf_use=yes
9573 else
9574   echo "configure: failed program was:" >&5
9575   cat conftest.$ac_ext >&5
9576   rm -rf conftest*
9577   glibcpp_cv_func__frexpf_use=no
9578 fi
9579 rm -f conftest*
9580       ac_ext=c
9581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9582 ac_cpp='$CPP $CPPFLAGS'
9583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9585 cross_compiling=$ac_cv_prog_cc_cross
9586
9587     
9588 fi
9589
9590   fi
9591   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9592
9593     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9594       for ac_func in _frexpf
9595 do
9596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9597 echo "configure:9598: checking for $ac_func" >&5
9598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9599   echo $ac_n "(cached) $ac_c" 1>&6
9600 else
9601   cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 /* System header to define __stub macros and hopefully few prototypes,
9605     which can conflict with char $ac_func(); below.  */
9606 #include <assert.h>
9607 /* Override any gcc2 internal prototype to avoid an error.  */
9608 /* We use char because int might match the return type of a gcc2
9609     builtin and then its argument prototype would still apply.  */
9610 char $ac_func();
9611
9612 int main() {
9613
9614 /* The GNU C library defines this for functions which it implements
9615     to always fail with ENOSYS.  Some functions are actually named
9616     something starting with __ and the normal name is an alias.  */
9617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9618 choke me
9619 #else
9620 $ac_func();
9621 #endif
9622
9623 ; return 0; }
9624 EOF
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9626   rm -rf conftest*
9627   eval "ac_cv_func_$ac_func=yes"
9628 else
9629   echo "configure: failed program was:" >&5
9630   cat conftest.$ac_ext >&5
9631   rm -rf conftest*
9632   eval "ac_cv_func_$ac_func=no"
9633 fi
9634 rm -f conftest*
9635 fi
9636
9637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9638   echo "$ac_t""yes" 1>&6
9639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9640   cat >> confdefs.h <<EOF
9641 #define $ac_tr_func 1
9642 EOF
9643  
9644 else
9645   echo "$ac_t""no" 1>&6
9646 fi
9647 done
9648     
9649     fi
9650   fi
9651
9652   
9653   
9654   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9655 echo "configure:9656: checking for hypotf declaration" >&5
9656   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9657     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9658   echo $ac_n "(cached) $ac_c" 1>&6
9659 else
9660   
9661       
9662       ac_ext=C
9663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9664 ac_cpp='$CXXCPP $CPPFLAGS'
9665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9667 cross_compiling=$ac_cv_prog_cxx_cross
9668
9669       cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <math.h>
9673 int main() {
9674  hypotf(0, 0);
9675 ; return 0; }
9676 EOF
9677 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9678   rm -rf conftest*
9679   glibcpp_cv_func_hypotf_use=yes
9680 else
9681   echo "configure: failed program was:" >&5
9682   cat conftest.$ac_ext >&5
9683   rm -rf conftest*
9684   glibcpp_cv_func_hypotf_use=no
9685 fi
9686 rm -f conftest*
9687       ac_ext=c
9688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9689 ac_cpp='$CPP $CPPFLAGS'
9690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9692 cross_compiling=$ac_cv_prog_cc_cross
9693
9694     
9695 fi
9696
9697   fi
9698   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9699
9700   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9701     for ac_func in hypotf
9702 do
9703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9704 echo "configure:9705: checking for $ac_func" >&5
9705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9706   echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708   cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* System header to define __stub macros and hopefully few prototypes,
9712     which can conflict with char $ac_func(); below.  */
9713 #include <assert.h>
9714 /* Override any gcc2 internal prototype to avoid an error.  */
9715 /* We use char because int might match the return type of a gcc2
9716     builtin and then its argument prototype would still apply.  */
9717 char $ac_func();
9718
9719 int main() {
9720
9721 /* The GNU C library defines this for functions which it implements
9722     to always fail with ENOSYS.  Some functions are actually named
9723     something starting with __ and the normal name is an alias.  */
9724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9725 choke me
9726 #else
9727 $ac_func();
9728 #endif
9729
9730 ; return 0; }
9731 EOF
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733   rm -rf conftest*
9734   eval "ac_cv_func_$ac_func=yes"
9735 else
9736   echo "configure: failed program was:" >&5
9737   cat conftest.$ac_ext >&5
9738   rm -rf conftest*
9739   eval "ac_cv_func_$ac_func=no"
9740 fi
9741 rm -f conftest*
9742 fi
9743
9744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9745   echo "$ac_t""yes" 1>&6
9746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9747   cat >> confdefs.h <<EOF
9748 #define $ac_tr_func 1
9749 EOF
9750  
9751 else
9752   echo "$ac_t""no" 1>&6
9753 fi
9754 done
9755     
9756   else
9757     
9758   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9759 echo "configure:9760: checking for _hypotf declaration" >&5
9760   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9761     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9762   echo $ac_n "(cached) $ac_c" 1>&6
9763 else
9764   
9765       
9766       ac_ext=C
9767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9768 ac_cpp='$CXXCPP $CPPFLAGS'
9769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9771 cross_compiling=$ac_cv_prog_cxx_cross
9772
9773       cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <math.h>
9777 int main() {
9778  _hypotf(0, 0);
9779 ; return 0; }
9780 EOF
9781 if { (eval echo configure:9782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9782   rm -rf conftest*
9783   glibcpp_cv_func__hypotf_use=yes
9784 else
9785   echo "configure: failed program was:" >&5
9786   cat conftest.$ac_ext >&5
9787   rm -rf conftest*
9788   glibcpp_cv_func__hypotf_use=no
9789 fi
9790 rm -f conftest*
9791       ac_ext=c
9792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9793 ac_cpp='$CPP $CPPFLAGS'
9794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9796 cross_compiling=$ac_cv_prog_cc_cross
9797
9798     
9799 fi
9800
9801   fi
9802   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9803
9804     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9805       for ac_func in _hypotf
9806 do
9807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9808 echo "configure:9809: checking for $ac_func" >&5
9809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9810   echo $ac_n "(cached) $ac_c" 1>&6
9811 else
9812   cat > conftest.$ac_ext <<EOF
9813 #line 9814 "configure"
9814 #include "confdefs.h"
9815 /* System header to define __stub macros and hopefully few prototypes,
9816     which can conflict with char $ac_func(); below.  */
9817 #include <assert.h>
9818 /* Override any gcc2 internal prototype to avoid an error.  */
9819 /* We use char because int might match the return type of a gcc2
9820     builtin and then its argument prototype would still apply.  */
9821 char $ac_func();
9822
9823 int main() {
9824
9825 /* The GNU C library defines this for functions which it implements
9826     to always fail with ENOSYS.  Some functions are actually named
9827     something starting with __ and the normal name is an alias.  */
9828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9829 choke me
9830 #else
9831 $ac_func();
9832 #endif
9833
9834 ; return 0; }
9835 EOF
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9837   rm -rf conftest*
9838   eval "ac_cv_func_$ac_func=yes"
9839 else
9840   echo "configure: failed program was:" >&5
9841   cat conftest.$ac_ext >&5
9842   rm -rf conftest*
9843   eval "ac_cv_func_$ac_func=no"
9844 fi
9845 rm -f conftest*
9846 fi
9847
9848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9849   echo "$ac_t""yes" 1>&6
9850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9851   cat >> confdefs.h <<EOF
9852 #define $ac_tr_func 1
9853 EOF
9854  
9855 else
9856   echo "$ac_t""no" 1>&6
9857 fi
9858 done
9859     
9860     fi
9861   fi
9862
9863   
9864   
9865   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9866 echo "configure:9867: checking for ldexpf declaration" >&5
9867   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9868     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9869   echo $ac_n "(cached) $ac_c" 1>&6
9870 else
9871   
9872       
9873       ac_ext=C
9874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9875 ac_cpp='$CXXCPP $CPPFLAGS'
9876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9878 cross_compiling=$ac_cv_prog_cxx_cross
9879
9880       cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9883 #include <math.h>
9884 int main() {
9885  ldexpf(0, 0);
9886 ; return 0; }
9887 EOF
9888 if { (eval echo configure:9889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9889   rm -rf conftest*
9890   glibcpp_cv_func_ldexpf_use=yes
9891 else
9892   echo "configure: failed program was:" >&5
9893   cat conftest.$ac_ext >&5
9894   rm -rf conftest*
9895   glibcpp_cv_func_ldexpf_use=no
9896 fi
9897 rm -f conftest*
9898       ac_ext=c
9899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9900 ac_cpp='$CPP $CPPFLAGS'
9901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9903 cross_compiling=$ac_cv_prog_cc_cross
9904
9905     
9906 fi
9907
9908   fi
9909   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9910
9911   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9912     for ac_func in ldexpf
9913 do
9914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9915 echo "configure:9916: checking for $ac_func" >&5
9916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9917   echo $ac_n "(cached) $ac_c" 1>&6
9918 else
9919   cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9922 /* System header to define __stub macros and hopefully few prototypes,
9923     which can conflict with char $ac_func(); below.  */
9924 #include <assert.h>
9925 /* Override any gcc2 internal prototype to avoid an error.  */
9926 /* We use char because int might match the return type of a gcc2
9927     builtin and then its argument prototype would still apply.  */
9928 char $ac_func();
9929
9930 int main() {
9931
9932 /* The GNU C library defines this for functions which it implements
9933     to always fail with ENOSYS.  Some functions are actually named
9934     something starting with __ and the normal name is an alias.  */
9935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 choke me
9937 #else
9938 $ac_func();
9939 #endif
9940
9941 ; return 0; }
9942 EOF
9943 if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944   rm -rf conftest*
9945   eval "ac_cv_func_$ac_func=yes"
9946 else
9947   echo "configure: failed program was:" >&5
9948   cat conftest.$ac_ext >&5
9949   rm -rf conftest*
9950   eval "ac_cv_func_$ac_func=no"
9951 fi
9952 rm -f conftest*
9953 fi
9954
9955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9956   echo "$ac_t""yes" 1>&6
9957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9958   cat >> confdefs.h <<EOF
9959 #define $ac_tr_func 1
9960 EOF
9961  
9962 else
9963   echo "$ac_t""no" 1>&6
9964 fi
9965 done
9966     
9967   else
9968     
9969   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9970 echo "configure:9971: checking for _ldexpf declaration" >&5
9971   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9972     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9973   echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9975   
9976       
9977       ac_ext=C
9978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9979 ac_cpp='$CXXCPP $CPPFLAGS'
9980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9982 cross_compiling=$ac_cv_prog_cxx_cross
9983
9984       cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 #include <math.h>
9988 int main() {
9989  _ldexpf(0, 0);
9990 ; return 0; }
9991 EOF
9992 if { (eval echo configure:9993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9993   rm -rf conftest*
9994   glibcpp_cv_func__ldexpf_use=yes
9995 else
9996   echo "configure: failed program was:" >&5
9997   cat conftest.$ac_ext >&5
9998   rm -rf conftest*
9999   glibcpp_cv_func__ldexpf_use=no
10000 fi
10001 rm -f conftest*
10002       ac_ext=c
10003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10004 ac_cpp='$CPP $CPPFLAGS'
10005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10007 cross_compiling=$ac_cv_prog_cc_cross
10008
10009     
10010 fi
10011
10012   fi
10013   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10014
10015     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10016       for ac_func in _ldexpf
10017 do
10018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10019 echo "configure:10020: checking for $ac_func" >&5
10020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10021   echo $ac_n "(cached) $ac_c" 1>&6
10022 else
10023   cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 /* System header to define __stub macros and hopefully few prototypes,
10027     which can conflict with char $ac_func(); below.  */
10028 #include <assert.h>
10029 /* Override any gcc2 internal prototype to avoid an error.  */
10030 /* We use char because int might match the return type of a gcc2
10031     builtin and then its argument prototype would still apply.  */
10032 char $ac_func();
10033
10034 int main() {
10035
10036 /* The GNU C library defines this for functions which it implements
10037     to always fail with ENOSYS.  Some functions are actually named
10038     something starting with __ and the normal name is an alias.  */
10039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10040 choke me
10041 #else
10042 $ac_func();
10043 #endif
10044
10045 ; return 0; }
10046 EOF
10047 if { (eval echo configure:10048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048   rm -rf conftest*
10049   eval "ac_cv_func_$ac_func=yes"
10050 else
10051   echo "configure: failed program was:" >&5
10052   cat conftest.$ac_ext >&5
10053   rm -rf conftest*
10054   eval "ac_cv_func_$ac_func=no"
10055 fi
10056 rm -f conftest*
10057 fi
10058
10059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10060   echo "$ac_t""yes" 1>&6
10061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10062   cat >> confdefs.h <<EOF
10063 #define $ac_tr_func 1
10064 EOF
10065  
10066 else
10067   echo "$ac_t""no" 1>&6
10068 fi
10069 done
10070     
10071     fi
10072   fi
10073
10074   
10075   
10076   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10077 echo "configure:10078: checking for logf declaration" >&5
10078   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10079     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10080   echo $ac_n "(cached) $ac_c" 1>&6
10081 else
10082   
10083       
10084       ac_ext=C
10085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10086 ac_cpp='$CXXCPP $CPPFLAGS'
10087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10089 cross_compiling=$ac_cv_prog_cxx_cross
10090
10091       cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 #include <math.h>
10095                       #ifdef HAVE_IEEEFP_H
10096                       #include <ieeefp.h>
10097                       #endif
10098                      
10099 int main() {
10100  logf(0);
10101 ; return 0; }
10102 EOF
10103 if { (eval echo configure:10104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10104   rm -rf conftest*
10105   glibcpp_cv_func_logf_use=yes
10106 else
10107   echo "configure: failed program was:" >&5
10108   cat conftest.$ac_ext >&5
10109   rm -rf conftest*
10110   glibcpp_cv_func_logf_use=no
10111 fi
10112 rm -f conftest*
10113       ac_ext=c
10114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10115 ac_cpp='$CPP $CPPFLAGS'
10116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10118 cross_compiling=$ac_cv_prog_cc_cross
10119
10120     
10121 fi
10122
10123   fi
10124   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10125
10126   if test x$glibcpp_cv_func_logf_use = x"yes"; then
10127     for ac_func in logf
10128 do
10129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10130 echo "configure:10131: checking for $ac_func" >&5
10131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10132   echo $ac_n "(cached) $ac_c" 1>&6
10133 else
10134   cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 /* System header to define __stub macros and hopefully few prototypes,
10138     which can conflict with char $ac_func(); below.  */
10139 #include <assert.h>
10140 /* Override any gcc2 internal prototype to avoid an error.  */
10141 /* We use char because int might match the return type of a gcc2
10142     builtin and then its argument prototype would still apply.  */
10143 char $ac_func();
10144
10145 int main() {
10146
10147 /* The GNU C library defines this for functions which it implements
10148     to always fail with ENOSYS.  Some functions are actually named
10149     something starting with __ and the normal name is an alias.  */
10150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10151 choke me
10152 #else
10153 $ac_func();
10154 #endif
10155
10156 ; return 0; }
10157 EOF
10158 if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10159   rm -rf conftest*
10160   eval "ac_cv_func_$ac_func=yes"
10161 else
10162   echo "configure: failed program was:" >&5
10163   cat conftest.$ac_ext >&5
10164   rm -rf conftest*
10165   eval "ac_cv_func_$ac_func=no"
10166 fi
10167 rm -f conftest*
10168 fi
10169
10170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10171   echo "$ac_t""yes" 1>&6
10172     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10173   cat >> confdefs.h <<EOF
10174 #define $ac_tr_func 1
10175 EOF
10176  
10177 else
10178   echo "$ac_t""no" 1>&6
10179 fi
10180 done
10181     
10182   else
10183     
10184   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10185 echo "configure:10186: checking for _logf declaration" >&5
10186   if test x${glibcpp_cv_func__logf_use+set} != xset; then
10187     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10188   echo $ac_n "(cached) $ac_c" 1>&6
10189 else
10190   
10191       
10192       ac_ext=C
10193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10194 ac_cpp='$CXXCPP $CPPFLAGS'
10195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10197 cross_compiling=$ac_cv_prog_cxx_cross
10198
10199       cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 #include <math.h>
10203                       #ifdef HAVE_IEEEFP_H
10204                       #include <ieeefp.h>
10205                       #endif
10206                      
10207 int main() {
10208  _logf(0);
10209 ; return 0; }
10210 EOF
10211 if { (eval echo configure:10212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10212   rm -rf conftest*
10213   glibcpp_cv_func__logf_use=yes
10214 else
10215   echo "configure: failed program was:" >&5
10216   cat conftest.$ac_ext >&5
10217   rm -rf conftest*
10218   glibcpp_cv_func__logf_use=no
10219 fi
10220 rm -f conftest*
10221       ac_ext=c
10222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10226 cross_compiling=$ac_cv_prog_cc_cross
10227
10228     
10229 fi
10230
10231   fi
10232   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10233
10234     if test x$glibcpp_cv_func__logf_use = x"yes"; then
10235       for ac_func in _logf
10236 do
10237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10238 echo "configure:10239: checking for $ac_func" >&5
10239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10240   echo $ac_n "(cached) $ac_c" 1>&6
10241 else
10242   cat > conftest.$ac_ext <<EOF
10243 #line 10244 "configure"
10244 #include "confdefs.h"
10245 /* System header to define __stub macros and hopefully few prototypes,
10246     which can conflict with char $ac_func(); below.  */
10247 #include <assert.h>
10248 /* Override any gcc2 internal prototype to avoid an error.  */
10249 /* We use char because int might match the return type of a gcc2
10250     builtin and then its argument prototype would still apply.  */
10251 char $ac_func();
10252
10253 int main() {
10254
10255 /* The GNU C library defines this for functions which it implements
10256     to always fail with ENOSYS.  Some functions are actually named
10257     something starting with __ and the normal name is an alias.  */
10258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10259 choke me
10260 #else
10261 $ac_func();
10262 #endif
10263
10264 ; return 0; }
10265 EOF
10266 if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267   rm -rf conftest*
10268   eval "ac_cv_func_$ac_func=yes"
10269 else
10270   echo "configure: failed program was:" >&5
10271   cat conftest.$ac_ext >&5
10272   rm -rf conftest*
10273   eval "ac_cv_func_$ac_func=no"
10274 fi
10275 rm -f conftest*
10276 fi
10277
10278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10279   echo "$ac_t""yes" 1>&6
10280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10281   cat >> confdefs.h <<EOF
10282 #define $ac_tr_func 1
10283 EOF
10284  
10285 else
10286   echo "$ac_t""no" 1>&6
10287 fi
10288 done
10289     
10290     fi
10291   fi
10292
10293   
10294   
10295   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10296 echo "configure:10297: checking for log10f declaration" >&5
10297   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10298     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10299   echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10301   
10302       
10303       ac_ext=C
10304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10305 ac_cpp='$CXXCPP $CPPFLAGS'
10306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10308 cross_compiling=$ac_cv_prog_cxx_cross
10309
10310       cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 #include <math.h>
10314                       #ifdef HAVE_IEEEFP_H
10315                       #include <ieeefp.h>
10316                       #endif
10317                      
10318 int main() {
10319  log10f(0);
10320 ; return 0; }
10321 EOF
10322 if { (eval echo configure:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10323   rm -rf conftest*
10324   glibcpp_cv_func_log10f_use=yes
10325 else
10326   echo "configure: failed program was:" >&5
10327   cat conftest.$ac_ext >&5
10328   rm -rf conftest*
10329   glibcpp_cv_func_log10f_use=no
10330 fi
10331 rm -f conftest*
10332       ac_ext=c
10333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10334 ac_cpp='$CPP $CPPFLAGS'
10335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10337 cross_compiling=$ac_cv_prog_cc_cross
10338
10339     
10340 fi
10341
10342   fi
10343   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10344
10345   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10346     for ac_func in log10f
10347 do
10348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10349 echo "configure:10350: checking for $ac_func" >&5
10350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10351   echo $ac_n "(cached) $ac_c" 1>&6
10352 else
10353   cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 /* System header to define __stub macros and hopefully few prototypes,
10357     which can conflict with char $ac_func(); below.  */
10358 #include <assert.h>
10359 /* Override any gcc2 internal prototype to avoid an error.  */
10360 /* We use char because int might match the return type of a gcc2
10361     builtin and then its argument prototype would still apply.  */
10362 char $ac_func();
10363
10364 int main() {
10365
10366 /* The GNU C library defines this for functions which it implements
10367     to always fail with ENOSYS.  Some functions are actually named
10368     something starting with __ and the normal name is an alias.  */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10370 choke me
10371 #else
10372 $ac_func();
10373 #endif
10374
10375 ; return 0; }
10376 EOF
10377 if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10378   rm -rf conftest*
10379   eval "ac_cv_func_$ac_func=yes"
10380 else
10381   echo "configure: failed program was:" >&5
10382   cat conftest.$ac_ext >&5
10383   rm -rf conftest*
10384   eval "ac_cv_func_$ac_func=no"
10385 fi
10386 rm -f conftest*
10387 fi
10388
10389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10390   echo "$ac_t""yes" 1>&6
10391     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10392   cat >> confdefs.h <<EOF
10393 #define $ac_tr_func 1
10394 EOF
10395  
10396 else
10397   echo "$ac_t""no" 1>&6
10398 fi
10399 done
10400     
10401   else
10402     
10403   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10404 echo "configure:10405: checking for _log10f declaration" >&5
10405   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10406     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10407   echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10409   
10410       
10411       ac_ext=C
10412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10413 ac_cpp='$CXXCPP $CPPFLAGS'
10414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10416 cross_compiling=$ac_cv_prog_cxx_cross
10417
10418       cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 #include <math.h>
10422                       #ifdef HAVE_IEEEFP_H
10423                       #include <ieeefp.h>
10424                       #endif
10425                      
10426 int main() {
10427  _log10f(0);
10428 ; return 0; }
10429 EOF
10430 if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10431   rm -rf conftest*
10432   glibcpp_cv_func__log10f_use=yes
10433 else
10434   echo "configure: failed program was:" >&5
10435   cat conftest.$ac_ext >&5
10436   rm -rf conftest*
10437   glibcpp_cv_func__log10f_use=no
10438 fi
10439 rm -f conftest*
10440       ac_ext=c
10441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10442 ac_cpp='$CPP $CPPFLAGS'
10443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10445 cross_compiling=$ac_cv_prog_cc_cross
10446
10447     
10448 fi
10449
10450   fi
10451   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10452
10453     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10454       for ac_func in _log10f
10455 do
10456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10457 echo "configure:10458: checking for $ac_func" >&5
10458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10459   echo $ac_n "(cached) $ac_c" 1>&6
10460 else
10461   cat > conftest.$ac_ext <<EOF
10462 #line 10463 "configure"
10463 #include "confdefs.h"
10464 /* System header to define __stub macros and hopefully few prototypes,
10465     which can conflict with char $ac_func(); below.  */
10466 #include <assert.h>
10467 /* Override any gcc2 internal prototype to avoid an error.  */
10468 /* We use char because int might match the return type of a gcc2
10469     builtin and then its argument prototype would still apply.  */
10470 char $ac_func();
10471
10472 int main() {
10473
10474 /* The GNU C library defines this for functions which it implements
10475     to always fail with ENOSYS.  Some functions are actually named
10476     something starting with __ and the normal name is an alias.  */
10477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10478 choke me
10479 #else
10480 $ac_func();
10481 #endif
10482
10483 ; return 0; }
10484 EOF
10485 if { (eval echo configure:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10486   rm -rf conftest*
10487   eval "ac_cv_func_$ac_func=yes"
10488 else
10489   echo "configure: failed program was:" >&5
10490   cat conftest.$ac_ext >&5
10491   rm -rf conftest*
10492   eval "ac_cv_func_$ac_func=no"
10493 fi
10494 rm -f conftest*
10495 fi
10496
10497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10498   echo "$ac_t""yes" 1>&6
10499     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10500   cat >> confdefs.h <<EOF
10501 #define $ac_tr_func 1
10502 EOF
10503  
10504 else
10505   echo "$ac_t""no" 1>&6
10506 fi
10507 done
10508     
10509     fi
10510   fi
10511
10512   
10513   
10514   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10515 echo "configure:10516: checking for modff declaration" >&5
10516   if test x${glibcpp_cv_func_modff_use+set} != xset; then
10517     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10518   echo $ac_n "(cached) $ac_c" 1>&6
10519 else
10520   
10521       
10522       ac_ext=C
10523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10524 ac_cpp='$CXXCPP $CPPFLAGS'
10525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10527 cross_compiling=$ac_cv_prog_cxx_cross
10528
10529       cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #include <math.h>
10533 int main() {
10534  modff(0, 0);
10535 ; return 0; }
10536 EOF
10537 if { (eval echo configure:10538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10538   rm -rf conftest*
10539   glibcpp_cv_func_modff_use=yes
10540 else
10541   echo "configure: failed program was:" >&5
10542   cat conftest.$ac_ext >&5
10543   rm -rf conftest*
10544   glibcpp_cv_func_modff_use=no
10545 fi
10546 rm -f conftest*
10547       ac_ext=c
10548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10549 ac_cpp='$CPP $CPPFLAGS'
10550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10552 cross_compiling=$ac_cv_prog_cc_cross
10553
10554     
10555 fi
10556
10557   fi
10558   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10559
10560   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10561     for ac_func in modff
10562 do
10563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10564 echo "configure:10565: checking for $ac_func" >&5
10565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10566   echo $ac_n "(cached) $ac_c" 1>&6
10567 else
10568   cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 /* System header to define __stub macros and hopefully few prototypes,
10572     which can conflict with char $ac_func(); below.  */
10573 #include <assert.h>
10574 /* Override any gcc2 internal prototype to avoid an error.  */
10575 /* We use char because int might match the return type of a gcc2
10576     builtin and then its argument prototype would still apply.  */
10577 char $ac_func();
10578
10579 int main() {
10580
10581 /* The GNU C library defines this for functions which it implements
10582     to always fail with ENOSYS.  Some functions are actually named
10583     something starting with __ and the normal name is an alias.  */
10584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10585 choke me
10586 #else
10587 $ac_func();
10588 #endif
10589
10590 ; return 0; }
10591 EOF
10592 if { (eval echo configure:10593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10593   rm -rf conftest*
10594   eval "ac_cv_func_$ac_func=yes"
10595 else
10596   echo "configure: failed program was:" >&5
10597   cat conftest.$ac_ext >&5
10598   rm -rf conftest*
10599   eval "ac_cv_func_$ac_func=no"
10600 fi
10601 rm -f conftest*
10602 fi
10603
10604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10605   echo "$ac_t""yes" 1>&6
10606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10607   cat >> confdefs.h <<EOF
10608 #define $ac_tr_func 1
10609 EOF
10610  
10611 else
10612   echo "$ac_t""no" 1>&6
10613 fi
10614 done
10615     
10616   else
10617     
10618   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10619 echo "configure:10620: checking for _modff declaration" >&5
10620   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10621     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10622   echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10624   
10625       
10626       ac_ext=C
10627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10628 ac_cpp='$CXXCPP $CPPFLAGS'
10629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10631 cross_compiling=$ac_cv_prog_cxx_cross
10632
10633       cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10636 #include <math.h>
10637 int main() {
10638  _modff(0, 0);
10639 ; return 0; }
10640 EOF
10641 if { (eval echo configure:10642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10642   rm -rf conftest*
10643   glibcpp_cv_func__modff_use=yes
10644 else
10645   echo "configure: failed program was:" >&5
10646   cat conftest.$ac_ext >&5
10647   rm -rf conftest*
10648   glibcpp_cv_func__modff_use=no
10649 fi
10650 rm -f conftest*
10651       ac_ext=c
10652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10653 ac_cpp='$CPP $CPPFLAGS'
10654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10656 cross_compiling=$ac_cv_prog_cc_cross
10657
10658     
10659 fi
10660
10661   fi
10662   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10663
10664     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10665       for ac_func in _modff
10666 do
10667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10668 echo "configure:10669: checking for $ac_func" >&5
10669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10670   echo $ac_n "(cached) $ac_c" 1>&6
10671 else
10672   cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 /* System header to define __stub macros and hopefully few prototypes,
10676     which can conflict with char $ac_func(); below.  */
10677 #include <assert.h>
10678 /* Override any gcc2 internal prototype to avoid an error.  */
10679 /* We use char because int might match the return type of a gcc2
10680     builtin and then its argument prototype would still apply.  */
10681 char $ac_func();
10682
10683 int main() {
10684
10685 /* The GNU C library defines this for functions which it implements
10686     to always fail with ENOSYS.  Some functions are actually named
10687     something starting with __ and the normal name is an alias.  */
10688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689 choke me
10690 #else
10691 $ac_func();
10692 #endif
10693
10694 ; return 0; }
10695 EOF
10696 if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10697   rm -rf conftest*
10698   eval "ac_cv_func_$ac_func=yes"
10699 else
10700   echo "configure: failed program was:" >&5
10701   cat conftest.$ac_ext >&5
10702   rm -rf conftest*
10703   eval "ac_cv_func_$ac_func=no"
10704 fi
10705 rm -f conftest*
10706 fi
10707
10708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10709   echo "$ac_t""yes" 1>&6
10710     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10711   cat >> confdefs.h <<EOF
10712 #define $ac_tr_func 1
10713 EOF
10714  
10715 else
10716   echo "$ac_t""no" 1>&6
10717 fi
10718 done
10719     
10720     fi
10721   fi
10722
10723   
10724   
10725   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10726 echo "configure:10727: checking for powf declaration" >&5
10727   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10728     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10729   echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731   
10732       
10733       ac_ext=C
10734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10735 ac_cpp='$CXXCPP $CPPFLAGS'
10736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10738 cross_compiling=$ac_cv_prog_cxx_cross
10739
10740       cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 #include <math.h>
10744 int main() {
10745  powf(0, 0);
10746 ; return 0; }
10747 EOF
10748 if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10749   rm -rf conftest*
10750   glibcpp_cv_func_powf_use=yes
10751 else
10752   echo "configure: failed program was:" >&5
10753   cat conftest.$ac_ext >&5
10754   rm -rf conftest*
10755   glibcpp_cv_func_powf_use=no
10756 fi
10757 rm -f conftest*
10758       ac_ext=c
10759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10763 cross_compiling=$ac_cv_prog_cc_cross
10764
10765     
10766 fi
10767
10768   fi
10769   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10770
10771   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10772     for ac_func in powf
10773 do
10774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10775 echo "configure:10776: checking for $ac_func" >&5
10776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10777   echo $ac_n "(cached) $ac_c" 1>&6
10778 else
10779   cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10782 /* System header to define __stub macros and hopefully few prototypes,
10783     which can conflict with char $ac_func(); below.  */
10784 #include <assert.h>
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 /* We use char because int might match the return type of a gcc2
10787     builtin and then its argument prototype would still apply.  */
10788 char $ac_func();
10789
10790 int main() {
10791
10792 /* The GNU C library defines this for functions which it implements
10793     to always fail with ENOSYS.  Some functions are actually named
10794     something starting with __ and the normal name is an alias.  */
10795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10796 choke me
10797 #else
10798 $ac_func();
10799 #endif
10800
10801 ; return 0; }
10802 EOF
10803 if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804   rm -rf conftest*
10805   eval "ac_cv_func_$ac_func=yes"
10806 else
10807   echo "configure: failed program was:" >&5
10808   cat conftest.$ac_ext >&5
10809   rm -rf conftest*
10810   eval "ac_cv_func_$ac_func=no"
10811 fi
10812 rm -f conftest*
10813 fi
10814
10815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10816   echo "$ac_t""yes" 1>&6
10817     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10818   cat >> confdefs.h <<EOF
10819 #define $ac_tr_func 1
10820 EOF
10821  
10822 else
10823   echo "$ac_t""no" 1>&6
10824 fi
10825 done
10826     
10827   else
10828     
10829   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10830 echo "configure:10831: checking for _powf declaration" >&5
10831   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10832     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10833   echo $ac_n "(cached) $ac_c" 1>&6
10834 else
10835   
10836       
10837       ac_ext=C
10838 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10839 ac_cpp='$CXXCPP $CPPFLAGS'
10840 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10841 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10842 cross_compiling=$ac_cv_prog_cxx_cross
10843
10844       cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10847 #include <math.h>
10848 int main() {
10849  _powf(0, 0);
10850 ; return 0; }
10851 EOF
10852 if { (eval echo configure:10853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10853   rm -rf conftest*
10854   glibcpp_cv_func__powf_use=yes
10855 else
10856   echo "configure: failed program was:" >&5
10857   cat conftest.$ac_ext >&5
10858   rm -rf conftest*
10859   glibcpp_cv_func__powf_use=no
10860 fi
10861 rm -f conftest*
10862       ac_ext=c
10863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10864 ac_cpp='$CPP $CPPFLAGS'
10865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10867 cross_compiling=$ac_cv_prog_cc_cross
10868
10869     
10870 fi
10871
10872   fi
10873   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10874
10875     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10876       for ac_func in _powf
10877 do
10878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10879 echo "configure:10880: checking for $ac_func" >&5
10880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10881   echo $ac_n "(cached) $ac_c" 1>&6
10882 else
10883   cat > conftest.$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10886 /* System header to define __stub macros and hopefully few prototypes,
10887     which can conflict with char $ac_func(); below.  */
10888 #include <assert.h>
10889 /* Override any gcc2 internal prototype to avoid an error.  */
10890 /* We use char because int might match the return type of a gcc2
10891     builtin and then its argument prototype would still apply.  */
10892 char $ac_func();
10893
10894 int main() {
10895
10896 /* The GNU C library defines this for functions which it implements
10897     to always fail with ENOSYS.  Some functions are actually named
10898     something starting with __ and the normal name is an alias.  */
10899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10900 choke me
10901 #else
10902 $ac_func();
10903 #endif
10904
10905 ; return 0; }
10906 EOF
10907 if { (eval echo configure:10908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10908   rm -rf conftest*
10909   eval "ac_cv_func_$ac_func=yes"
10910 else
10911   echo "configure: failed program was:" >&5
10912   cat conftest.$ac_ext >&5
10913   rm -rf conftest*
10914   eval "ac_cv_func_$ac_func=no"
10915 fi
10916 rm -f conftest*
10917 fi
10918
10919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10920   echo "$ac_t""yes" 1>&6
10921     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10922   cat >> confdefs.h <<EOF
10923 #define $ac_tr_func 1
10924 EOF
10925  
10926 else
10927   echo "$ac_t""no" 1>&6
10928 fi
10929 done
10930     
10931     fi
10932   fi
10933
10934   
10935   
10936   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10937 echo "configure:10938: checking for sqrtf declaration" >&5
10938   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10939     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10940   echo $ac_n "(cached) $ac_c" 1>&6
10941 else
10942   
10943       
10944       ac_ext=C
10945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10946 ac_cpp='$CXXCPP $CPPFLAGS'
10947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10949 cross_compiling=$ac_cv_prog_cxx_cross
10950
10951       cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 #include <math.h>
10955                       #ifdef HAVE_IEEEFP_H
10956                       #include <ieeefp.h>
10957                       #endif
10958                      
10959 int main() {
10960  sqrtf(0);
10961 ; return 0; }
10962 EOF
10963 if { (eval echo configure:10964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10964   rm -rf conftest*
10965   glibcpp_cv_func_sqrtf_use=yes
10966 else
10967   echo "configure: failed program was:" >&5
10968   cat conftest.$ac_ext >&5
10969   rm -rf conftest*
10970   glibcpp_cv_func_sqrtf_use=no
10971 fi
10972 rm -f conftest*
10973       ac_ext=c
10974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10978 cross_compiling=$ac_cv_prog_cc_cross
10979
10980     
10981 fi
10982
10983   fi
10984   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10985
10986   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10987     for ac_func in sqrtf
10988 do
10989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10990 echo "configure:10991: checking for $ac_func" >&5
10991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10992   echo $ac_n "(cached) $ac_c" 1>&6
10993 else
10994   cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10997 /* System header to define __stub macros and hopefully few prototypes,
10998     which can conflict with char $ac_func(); below.  */
10999 #include <assert.h>
11000 /* Override any gcc2 internal prototype to avoid an error.  */
11001 /* We use char because int might match the return type of a gcc2
11002     builtin and then its argument prototype would still apply.  */
11003 char $ac_func();
11004
11005 int main() {
11006
11007 /* The GNU C library defines this for functions which it implements
11008     to always fail with ENOSYS.  Some functions are actually named
11009     something starting with __ and the normal name is an alias.  */
11010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11011 choke me
11012 #else
11013 $ac_func();
11014 #endif
11015
11016 ; return 0; }
11017 EOF
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11019   rm -rf conftest*
11020   eval "ac_cv_func_$ac_func=yes"
11021 else
11022   echo "configure: failed program was:" >&5
11023   cat conftest.$ac_ext >&5
11024   rm -rf conftest*
11025   eval "ac_cv_func_$ac_func=no"
11026 fi
11027 rm -f conftest*
11028 fi
11029
11030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11031   echo "$ac_t""yes" 1>&6
11032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11033   cat >> confdefs.h <<EOF
11034 #define $ac_tr_func 1
11035 EOF
11036  
11037 else
11038   echo "$ac_t""no" 1>&6
11039 fi
11040 done
11041     
11042   else
11043     
11044   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11045 echo "configure:11046: checking for _sqrtf declaration" >&5
11046   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11047     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11048   echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050   
11051       
11052       ac_ext=C
11053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11054 ac_cpp='$CXXCPP $CPPFLAGS'
11055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11057 cross_compiling=$ac_cv_prog_cxx_cross
11058
11059       cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11062 #include <math.h>
11063                       #ifdef HAVE_IEEEFP_H
11064                       #include <ieeefp.h>
11065                       #endif
11066                      
11067 int main() {
11068  _sqrtf(0);
11069 ; return 0; }
11070 EOF
11071 if { (eval echo configure:11072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11072   rm -rf conftest*
11073   glibcpp_cv_func__sqrtf_use=yes
11074 else
11075   echo "configure: failed program was:" >&5
11076   cat conftest.$ac_ext >&5
11077   rm -rf conftest*
11078   glibcpp_cv_func__sqrtf_use=no
11079 fi
11080 rm -f conftest*
11081       ac_ext=c
11082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11083 ac_cpp='$CPP $CPPFLAGS'
11084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11086 cross_compiling=$ac_cv_prog_cc_cross
11087
11088     
11089 fi
11090
11091   fi
11092   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11093
11094     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11095       for ac_func in _sqrtf
11096 do
11097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11098 echo "configure:11099: checking for $ac_func" >&5
11099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11100   echo $ac_n "(cached) $ac_c" 1>&6
11101 else
11102   cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11105 /* System header to define __stub macros and hopefully few prototypes,
11106     which can conflict with char $ac_func(); below.  */
11107 #include <assert.h>
11108 /* Override any gcc2 internal prototype to avoid an error.  */
11109 /* We use char because int might match the return type of a gcc2
11110     builtin and then its argument prototype would still apply.  */
11111 char $ac_func();
11112
11113 int main() {
11114
11115 /* The GNU C library defines this for functions which it implements
11116     to always fail with ENOSYS.  Some functions are actually named
11117     something starting with __ and the normal name is an alias.  */
11118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11119 choke me
11120 #else
11121 $ac_func();
11122 #endif
11123
11124 ; return 0; }
11125 EOF
11126 if { (eval echo configure:11127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11127   rm -rf conftest*
11128   eval "ac_cv_func_$ac_func=yes"
11129 else
11130   echo "configure: failed program was:" >&5
11131   cat conftest.$ac_ext >&5
11132   rm -rf conftest*
11133   eval "ac_cv_func_$ac_func=no"
11134 fi
11135 rm -f conftest*
11136 fi
11137
11138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11139   echo "$ac_t""yes" 1>&6
11140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11141   cat >> confdefs.h <<EOF
11142 #define $ac_tr_func 1
11143 EOF
11144  
11145 else
11146   echo "$ac_t""no" 1>&6
11147 fi
11148 done
11149     
11150     fi
11151   fi
11152
11153   
11154   
11155   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11156 echo "configure:11157: checking for sincosf declaration" >&5
11157   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11158     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11159   echo $ac_n "(cached) $ac_c" 1>&6
11160 else
11161   
11162       
11163       ac_ext=C
11164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11168 cross_compiling=$ac_cv_prog_cxx_cross
11169
11170       cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <math.h>
11174 int main() {
11175  sincosf(0, 0, 0);
11176 ; return 0; }
11177 EOF
11178 if { (eval echo configure:11179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11179   rm -rf conftest*
11180   glibcpp_cv_func_sincosf_use=yes
11181 else
11182   echo "configure: failed program was:" >&5
11183   cat conftest.$ac_ext >&5
11184   rm -rf conftest*
11185   glibcpp_cv_func_sincosf_use=no
11186 fi
11187 rm -f conftest*
11188       ac_ext=c
11189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cc_cross
11194
11195     
11196 fi
11197
11198   fi
11199   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11200
11201   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11202     for ac_func in sincosf
11203 do
11204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11205 echo "configure:11206: checking for $ac_func" >&5
11206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11207   echo $ac_n "(cached) $ac_c" 1>&6
11208 else
11209   cat > conftest.$ac_ext <<EOF
11210 #line 11211 "configure"
11211 #include "confdefs.h"
11212 /* System header to define __stub macros and hopefully few prototypes,
11213     which can conflict with char $ac_func(); below.  */
11214 #include <assert.h>
11215 /* Override any gcc2 internal prototype to avoid an error.  */
11216 /* We use char because int might match the return type of a gcc2
11217     builtin and then its argument prototype would still apply.  */
11218 char $ac_func();
11219
11220 int main() {
11221
11222 /* The GNU C library defines this for functions which it implements
11223     to always fail with ENOSYS.  Some functions are actually named
11224     something starting with __ and the normal name is an alias.  */
11225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11226 choke me
11227 #else
11228 $ac_func();
11229 #endif
11230
11231 ; return 0; }
11232 EOF
11233 if { (eval echo configure:11234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11234   rm -rf conftest*
11235   eval "ac_cv_func_$ac_func=yes"
11236 else
11237   echo "configure: failed program was:" >&5
11238   cat conftest.$ac_ext >&5
11239   rm -rf conftest*
11240   eval "ac_cv_func_$ac_func=no"
11241 fi
11242 rm -f conftest*
11243 fi
11244
11245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11246   echo "$ac_t""yes" 1>&6
11247     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11248   cat >> confdefs.h <<EOF
11249 #define $ac_tr_func 1
11250 EOF
11251  
11252 else
11253   echo "$ac_t""no" 1>&6
11254 fi
11255 done
11256     
11257   else
11258     
11259   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11260 echo "configure:11261: checking for _sincosf declaration" >&5
11261   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11262     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11263   echo $ac_n "(cached) $ac_c" 1>&6
11264 else
11265   
11266       
11267       ac_ext=C
11268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11269 ac_cpp='$CXXCPP $CPPFLAGS'
11270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11272 cross_compiling=$ac_cv_prog_cxx_cross
11273
11274       cat > conftest.$ac_ext <<EOF
11275 #line 11276 "configure"
11276 #include "confdefs.h"
11277 #include <math.h>
11278 int main() {
11279  _sincosf(0, 0, 0);
11280 ; return 0; }
11281 EOF
11282 if { (eval echo configure:11283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11283   rm -rf conftest*
11284   glibcpp_cv_func__sincosf_use=yes
11285 else
11286   echo "configure: failed program was:" >&5
11287   cat conftest.$ac_ext >&5
11288   rm -rf conftest*
11289   glibcpp_cv_func__sincosf_use=no
11290 fi
11291 rm -f conftest*
11292       ac_ext=c
11293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11294 ac_cpp='$CPP $CPPFLAGS'
11295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11297 cross_compiling=$ac_cv_prog_cc_cross
11298
11299     
11300 fi
11301
11302   fi
11303   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11304
11305     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11306       for ac_func in _sincosf
11307 do
11308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11309 echo "configure:11310: checking for $ac_func" >&5
11310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11311   echo $ac_n "(cached) $ac_c" 1>&6
11312 else
11313   cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316 /* System header to define __stub macros and hopefully few prototypes,
11317     which can conflict with char $ac_func(); below.  */
11318 #include <assert.h>
11319 /* Override any gcc2 internal prototype to avoid an error.  */
11320 /* We use char because int might match the return type of a gcc2
11321     builtin and then its argument prototype would still apply.  */
11322 char $ac_func();
11323
11324 int main() {
11325
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 choke me
11331 #else
11332 $ac_func();
11333 #endif
11334
11335 ; return 0; }
11336 EOF
11337 if { (eval echo configure:11338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11338   rm -rf conftest*
11339   eval "ac_cv_func_$ac_func=yes"
11340 else
11341   echo "configure: failed program was:" >&5
11342   cat conftest.$ac_ext >&5
11343   rm -rf conftest*
11344   eval "ac_cv_func_$ac_func=no"
11345 fi
11346 rm -f conftest*
11347 fi
11348
11349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11350   echo "$ac_t""yes" 1>&6
11351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11352   cat >> confdefs.h <<EOF
11353 #define $ac_tr_func 1
11354 EOF
11355  
11356 else
11357   echo "$ac_t""no" 1>&6
11358 fi
11359 done
11360     
11361     fi
11362   fi
11363
11364   
11365   
11366   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11367 echo "configure:11368: checking for finitef declaration" >&5
11368   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11369     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11370   echo $ac_n "(cached) $ac_c" 1>&6
11371 else
11372   
11373       
11374       ac_ext=C
11375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11376 ac_cpp='$CXXCPP $CPPFLAGS'
11377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11379 cross_compiling=$ac_cv_prog_cxx_cross
11380
11381       cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <math.h>
11385                       #ifdef HAVE_IEEEFP_H
11386                       #include <ieeefp.h>
11387                       #endif
11388                      
11389 int main() {
11390  finitef(0);
11391 ; return 0; }
11392 EOF
11393 if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11394   rm -rf conftest*
11395   glibcpp_cv_func_finitef_use=yes
11396 else
11397   echo "configure: failed program was:" >&5
11398   cat conftest.$ac_ext >&5
11399   rm -rf conftest*
11400   glibcpp_cv_func_finitef_use=no
11401 fi
11402 rm -f conftest*
11403       ac_ext=c
11404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CPP $CPPFLAGS'
11406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cc_cross
11409
11410     
11411 fi
11412
11413   fi
11414   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11415
11416   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11417     for ac_func in finitef
11418 do
11419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_func" >&5
11421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11422   echo $ac_n "(cached) $ac_c" 1>&6
11423 else
11424   cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11427 /* System header to define __stub macros and hopefully few prototypes,
11428     which can conflict with char $ac_func(); below.  */
11429 #include <assert.h>
11430 /* Override any gcc2 internal prototype to avoid an error.  */
11431 /* We use char because int might match the return type of a gcc2
11432     builtin and then its argument prototype would still apply.  */
11433 char $ac_func();
11434
11435 int main() {
11436
11437 /* The GNU C library defines this for functions which it implements
11438     to always fail with ENOSYS.  Some functions are actually named
11439     something starting with __ and the normal name is an alias.  */
11440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11441 choke me
11442 #else
11443 $ac_func();
11444 #endif
11445
11446 ; return 0; }
11447 EOF
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11449   rm -rf conftest*
11450   eval "ac_cv_func_$ac_func=yes"
11451 else
11452   echo "configure: failed program was:" >&5
11453   cat conftest.$ac_ext >&5
11454   rm -rf conftest*
11455   eval "ac_cv_func_$ac_func=no"
11456 fi
11457 rm -f conftest*
11458 fi
11459
11460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11461   echo "$ac_t""yes" 1>&6
11462     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11463   cat >> confdefs.h <<EOF
11464 #define $ac_tr_func 1
11465 EOF
11466  
11467 else
11468   echo "$ac_t""no" 1>&6
11469 fi
11470 done
11471     
11472   else
11473     
11474   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11475 echo "configure:11476: checking for _finitef declaration" >&5
11476   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11477     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11478   echo $ac_n "(cached) $ac_c" 1>&6
11479 else
11480   
11481       
11482       ac_ext=C
11483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11484 ac_cpp='$CXXCPP $CPPFLAGS'
11485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11487 cross_compiling=$ac_cv_prog_cxx_cross
11488
11489       cat > conftest.$ac_ext <<EOF
11490 #line 11491 "configure"
11491 #include "confdefs.h"
11492 #include <math.h>
11493                       #ifdef HAVE_IEEEFP_H
11494                       #include <ieeefp.h>
11495                       #endif
11496                      
11497 int main() {
11498  _finitef(0);
11499 ; return 0; }
11500 EOF
11501 if { (eval echo configure:11502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11502   rm -rf conftest*
11503   glibcpp_cv_func__finitef_use=yes
11504 else
11505   echo "configure: failed program was:" >&5
11506   cat conftest.$ac_ext >&5
11507   rm -rf conftest*
11508   glibcpp_cv_func__finitef_use=no
11509 fi
11510 rm -f conftest*
11511       ac_ext=c
11512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11513 ac_cpp='$CPP $CPPFLAGS'
11514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11516 cross_compiling=$ac_cv_prog_cc_cross
11517
11518     
11519 fi
11520
11521   fi
11522   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11523
11524     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11525       for ac_func in _finitef
11526 do
11527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11528 echo "configure:11529: checking for $ac_func" >&5
11529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11530   echo $ac_n "(cached) $ac_c" 1>&6
11531 else
11532   cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 /* System header to define __stub macros and hopefully few prototypes,
11536     which can conflict with char $ac_func(); below.  */
11537 #include <assert.h>
11538 /* Override any gcc2 internal prototype to avoid an error.  */
11539 /* We use char because int might match the return type of a gcc2
11540     builtin and then its argument prototype would still apply.  */
11541 char $ac_func();
11542
11543 int main() {
11544
11545 /* The GNU C library defines this for functions which it implements
11546     to always fail with ENOSYS.  Some functions are actually named
11547     something starting with __ and the normal name is an alias.  */
11548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11549 choke me
11550 #else
11551 $ac_func();
11552 #endif
11553
11554 ; return 0; }
11555 EOF
11556 if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11557   rm -rf conftest*
11558   eval "ac_cv_func_$ac_func=yes"
11559 else
11560   echo "configure: failed program was:" >&5
11561   cat conftest.$ac_ext >&5
11562   rm -rf conftest*
11563   eval "ac_cv_func_$ac_func=no"
11564 fi
11565 rm -f conftest*
11566 fi
11567
11568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11569   echo "$ac_t""yes" 1>&6
11570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11571   cat >> confdefs.h <<EOF
11572 #define $ac_tr_func 1
11573 EOF
11574  
11575 else
11576   echo "$ac_t""no" 1>&6
11577 fi
11578 done
11579     
11580     fi
11581   fi
11582
11583
11584     
11585   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11586 echo "configure:11587: checking for long double trig functions" >&5
11587   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11588   echo $ac_n "(cached) $ac_c" 1>&6
11589 else
11590   
11591     
11592     ac_ext=C
11593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11594 ac_cpp='$CXXCPP $CPPFLAGS'
11595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11597 cross_compiling=$ac_cv_prog_cxx_cross
11598
11599     cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11602 #include <math.h>
11603 int main() {
11604  `for x in acosl asinl atanl \
11605                                           cosl sinl tanl \
11606                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11610   rm -rf conftest*
11611   glibcpp_cv_func_long_double_trig_use=yes
11612 else
11613   echo "configure: failed program was:" >&5
11614   cat conftest.$ac_ext >&5
11615   rm -rf conftest*
11616   glibcpp_cv_func_long_double_trig_use=no
11617 fi
11618 rm -f conftest*
11619     ac_ext=c
11620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11624 cross_compiling=$ac_cv_prog_cc_cross
11625
11626 fi
11627
11628   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11629   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11630     for ac_func in acosl asinl atanl \
11631                                           cosl sinl tanl \
11632                                           coshl sinhl tanhl
11633 do
11634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11635 echo "configure:11636: checking for $ac_func" >&5
11636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11637   echo $ac_n "(cached) $ac_c" 1>&6
11638 else
11639   cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func(); below.  */
11644 #include <assert.h>
11645 /* Override any gcc2 internal prototype to avoid an error.  */
11646 /* We use char because int might match the return type of a gcc2
11647     builtin and then its argument prototype would still apply.  */
11648 char $ac_func();
11649
11650 int main() {
11651
11652 /* The GNU C library defines this for functions which it implements
11653     to always fail with ENOSYS.  Some functions are actually named
11654     something starting with __ and the normal name is an alias.  */
11655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11656 choke me
11657 #else
11658 $ac_func();
11659 #endif
11660
11661 ; return 0; }
11662 EOF
11663 if { (eval echo configure:11664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11664   rm -rf conftest*
11665   eval "ac_cv_func_$ac_func=yes"
11666 else
11667   echo "configure: failed program was:" >&5
11668   cat conftest.$ac_ext >&5
11669   rm -rf conftest*
11670   eval "ac_cv_func_$ac_func=no"
11671 fi
11672 rm -f conftest*
11673 fi
11674
11675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11676   echo "$ac_t""yes" 1>&6
11677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11678   cat >> confdefs.h <<EOF
11679 #define $ac_tr_func 1
11680 EOF
11681  
11682 else
11683   echo "$ac_t""no" 1>&6
11684 fi
11685 done
11686
11687   fi
11688
11689   
11690   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11691 echo "configure:11692: checking for long double round functions" >&5
11692   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11693   echo $ac_n "(cached) $ac_c" 1>&6
11694 else
11695   
11696     
11697     ac_ext=C
11698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11699 ac_cpp='$CXXCPP $CPPFLAGS'
11700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11702 cross_compiling=$ac_cv_prog_cxx_cross
11703
11704     cat > conftest.$ac_ext <<EOF
11705 #line 11706 "configure"
11706 #include "confdefs.h"
11707 #include <math.h>
11708 int main() {
11709  `for x in ceill floorl; do echo "$x (0);"; done` 
11710 ; return 0; }
11711 EOF
11712 if { (eval echo configure:11713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11713   rm -rf conftest*
11714   glibcpp_cv_func_long_double_round_use=yes
11715 else
11716   echo "configure: failed program was:" >&5
11717   cat conftest.$ac_ext >&5
11718   rm -rf conftest*
11719   glibcpp_cv_func_long_double_round_use=no
11720 fi
11721 rm -f conftest*
11722     ac_ext=c
11723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11724 ac_cpp='$CPP $CPPFLAGS'
11725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11727 cross_compiling=$ac_cv_prog_cc_cross
11728
11729 fi
11730
11731   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11732   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11733     for ac_func in ceill floorl
11734 do
11735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11736 echo "configure:11737: checking for $ac_func" >&5
11737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11738   echo $ac_n "(cached) $ac_c" 1>&6
11739 else
11740   cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11743 /* System header to define __stub macros and hopefully few prototypes,
11744     which can conflict with char $ac_func(); below.  */
11745 #include <assert.h>
11746 /* Override any gcc2 internal prototype to avoid an error.  */
11747 /* We use char because int might match the return type of a gcc2
11748     builtin and then its argument prototype would still apply.  */
11749 char $ac_func();
11750
11751 int main() {
11752
11753 /* The GNU C library defines this for functions which it implements
11754     to always fail with ENOSYS.  Some functions are actually named
11755     something starting with __ and the normal name is an alias.  */
11756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 choke me
11758 #else
11759 $ac_func();
11760 #endif
11761
11762 ; return 0; }
11763 EOF
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11765   rm -rf conftest*
11766   eval "ac_cv_func_$ac_func=yes"
11767 else
11768   echo "configure: failed program was:" >&5
11769   cat conftest.$ac_ext >&5
11770   rm -rf conftest*
11771   eval "ac_cv_func_$ac_func=no"
11772 fi
11773 rm -f conftest*
11774 fi
11775
11776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11777   echo "$ac_t""yes" 1>&6
11778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11779   cat >> confdefs.h <<EOF
11780 #define $ac_tr_func 1
11781 EOF
11782  
11783 else
11784   echo "$ac_t""no" 1>&6
11785 fi
11786 done
11787
11788   fi
11789
11790   
11791   
11792   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11793 echo "configure:11794: checking for isnanl declaration" >&5
11794   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11795     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11796   echo $ac_n "(cached) $ac_c" 1>&6
11797 else
11798   
11799       
11800       ac_ext=C
11801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11802 ac_cpp='$CXXCPP $CPPFLAGS'
11803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11805 cross_compiling=$ac_cv_prog_cxx_cross
11806
11807       cat > conftest.$ac_ext <<EOF
11808 #line 11809 "configure"
11809 #include "confdefs.h"
11810 #include <math.h>
11811                       #ifdef HAVE_IEEEFP_H
11812                       #include <ieeefp.h>
11813                       #endif
11814                      
11815 int main() {
11816  isnanl(0);
11817 ; return 0; }
11818 EOF
11819 if { (eval echo configure:11820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11820   rm -rf conftest*
11821   glibcpp_cv_func_isnanl_use=yes
11822 else
11823   echo "configure: failed program was:" >&5
11824   cat conftest.$ac_ext >&5
11825   rm -rf conftest*
11826   glibcpp_cv_func_isnanl_use=no
11827 fi
11828 rm -f conftest*
11829       ac_ext=c
11830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11831 ac_cpp='$CPP $CPPFLAGS'
11832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11834 cross_compiling=$ac_cv_prog_cc_cross
11835
11836     
11837 fi
11838
11839   fi
11840   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11841
11842   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11843     for ac_func in isnanl
11844 do
11845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11846 echo "configure:11847: checking for $ac_func" >&5
11847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11848   echo $ac_n "(cached) $ac_c" 1>&6
11849 else
11850   cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 /* System header to define __stub macros and hopefully few prototypes,
11854     which can conflict with char $ac_func(); below.  */
11855 #include <assert.h>
11856 /* Override any gcc2 internal prototype to avoid an error.  */
11857 /* We use char because int might match the return type of a gcc2
11858     builtin and then its argument prototype would still apply.  */
11859 char $ac_func();
11860
11861 int main() {
11862
11863 /* The GNU C library defines this for functions which it implements
11864     to always fail with ENOSYS.  Some functions are actually named
11865     something starting with __ and the normal name is an alias.  */
11866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11867 choke me
11868 #else
11869 $ac_func();
11870 #endif
11871
11872 ; return 0; }
11873 EOF
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11875   rm -rf conftest*
11876   eval "ac_cv_func_$ac_func=yes"
11877 else
11878   echo "configure: failed program was:" >&5
11879   cat conftest.$ac_ext >&5
11880   rm -rf conftest*
11881   eval "ac_cv_func_$ac_func=no"
11882 fi
11883 rm -f conftest*
11884 fi
11885
11886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11887   echo "$ac_t""yes" 1>&6
11888     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11889   cat >> confdefs.h <<EOF
11890 #define $ac_tr_func 1
11891 EOF
11892  
11893 else
11894   echo "$ac_t""no" 1>&6
11895 fi
11896 done
11897     
11898   else
11899     
11900   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11901 echo "configure:11902: checking for _isnanl declaration" >&5
11902   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11903     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11904   echo $ac_n "(cached) $ac_c" 1>&6
11905 else
11906   
11907       
11908       ac_ext=C
11909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11910 ac_cpp='$CXXCPP $CPPFLAGS'
11911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11913 cross_compiling=$ac_cv_prog_cxx_cross
11914
11915       cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 #include <math.h>
11919                       #ifdef HAVE_IEEEFP_H
11920                       #include <ieeefp.h>
11921                       #endif
11922                      
11923 int main() {
11924  _isnanl(0);
11925 ; return 0; }
11926 EOF
11927 if { (eval echo configure:11928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11928   rm -rf conftest*
11929   glibcpp_cv_func__isnanl_use=yes
11930 else
11931   echo "configure: failed program was:" >&5
11932   cat conftest.$ac_ext >&5
11933   rm -rf conftest*
11934   glibcpp_cv_func__isnanl_use=no
11935 fi
11936 rm -f conftest*
11937       ac_ext=c
11938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11939 ac_cpp='$CPP $CPPFLAGS'
11940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11942 cross_compiling=$ac_cv_prog_cc_cross
11943
11944     
11945 fi
11946
11947   fi
11948   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11949
11950     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11951       for ac_func in _isnanl
11952 do
11953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11954 echo "configure:11955: checking for $ac_func" >&5
11955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11956   echo $ac_n "(cached) $ac_c" 1>&6
11957 else
11958   cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* System header to define __stub macros and hopefully few prototypes,
11962     which can conflict with char $ac_func(); below.  */
11963 #include <assert.h>
11964 /* Override any gcc2 internal prototype to avoid an error.  */
11965 /* We use char because int might match the return type of a gcc2
11966     builtin and then its argument prototype would still apply.  */
11967 char $ac_func();
11968
11969 int main() {
11970
11971 /* The GNU C library defines this for functions which it implements
11972     to always fail with ENOSYS.  Some functions are actually named
11973     something starting with __ and the normal name is an alias.  */
11974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11975 choke me
11976 #else
11977 $ac_func();
11978 #endif
11979
11980 ; return 0; }
11981 EOF
11982 if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11983   rm -rf conftest*
11984   eval "ac_cv_func_$ac_func=yes"
11985 else
11986   echo "configure: failed program was:" >&5
11987   cat conftest.$ac_ext >&5
11988   rm -rf conftest*
11989   eval "ac_cv_func_$ac_func=no"
11990 fi
11991 rm -f conftest*
11992 fi
11993
11994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11995   echo "$ac_t""yes" 1>&6
11996     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11997   cat >> confdefs.h <<EOF
11998 #define $ac_tr_func 1
11999 EOF
12000  
12001 else
12002   echo "$ac_t""no" 1>&6
12003 fi
12004 done
12005     
12006     fi
12007   fi
12008
12009   
12010   
12011   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12012 echo "configure:12013: checking for isinfl declaration" >&5
12013   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12014     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12015   echo $ac_n "(cached) $ac_c" 1>&6
12016 else
12017   
12018       
12019       ac_ext=C
12020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12021 ac_cpp='$CXXCPP $CPPFLAGS'
12022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12024 cross_compiling=$ac_cv_prog_cxx_cross
12025
12026       cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 #include <math.h>
12030                       #ifdef HAVE_IEEEFP_H
12031                       #include <ieeefp.h>
12032                       #endif
12033                      
12034 int main() {
12035  isinfl(0);
12036 ; return 0; }
12037 EOF
12038 if { (eval echo configure:12039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12039   rm -rf conftest*
12040   glibcpp_cv_func_isinfl_use=yes
12041 else
12042   echo "configure: failed program was:" >&5
12043   cat conftest.$ac_ext >&5
12044   rm -rf conftest*
12045   glibcpp_cv_func_isinfl_use=no
12046 fi
12047 rm -f conftest*
12048       ac_ext=c
12049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12053 cross_compiling=$ac_cv_prog_cc_cross
12054
12055     
12056 fi
12057
12058   fi
12059   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12060
12061   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12062     for ac_func in isinfl
12063 do
12064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12065 echo "configure:12066: checking for $ac_func" >&5
12066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12067   echo $ac_n "(cached) $ac_c" 1>&6
12068 else
12069   cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* System header to define __stub macros and hopefully few prototypes,
12073     which can conflict with char $ac_func(); below.  */
12074 #include <assert.h>
12075 /* Override any gcc2 internal prototype to avoid an error.  */
12076 /* We use char because int might match the return type of a gcc2
12077     builtin and then its argument prototype would still apply.  */
12078 char $ac_func();
12079
12080 int main() {
12081
12082 /* The GNU C library defines this for functions which it implements
12083     to always fail with ENOSYS.  Some functions are actually named
12084     something starting with __ and the normal name is an alias.  */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 $ac_func();
12089 #endif
12090
12091 ; return 0; }
12092 EOF
12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12094   rm -rf conftest*
12095   eval "ac_cv_func_$ac_func=yes"
12096 else
12097   echo "configure: failed program was:" >&5
12098   cat conftest.$ac_ext >&5
12099   rm -rf conftest*
12100   eval "ac_cv_func_$ac_func=no"
12101 fi
12102 rm -f conftest*
12103 fi
12104
12105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12106   echo "$ac_t""yes" 1>&6
12107     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12108   cat >> confdefs.h <<EOF
12109 #define $ac_tr_func 1
12110 EOF
12111  
12112 else
12113   echo "$ac_t""no" 1>&6
12114 fi
12115 done
12116     
12117   else
12118     
12119   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12120 echo "configure:12121: checking for _isinfl declaration" >&5
12121   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12122     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12123   echo $ac_n "(cached) $ac_c" 1>&6
12124 else
12125   
12126       
12127       ac_ext=C
12128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12129 ac_cpp='$CXXCPP $CPPFLAGS'
12130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12132 cross_compiling=$ac_cv_prog_cxx_cross
12133
12134       cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12137 #include <math.h>
12138                       #ifdef HAVE_IEEEFP_H
12139                       #include <ieeefp.h>
12140                       #endif
12141                      
12142 int main() {
12143  _isinfl(0);
12144 ; return 0; }
12145 EOF
12146 if { (eval echo configure:12147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12147   rm -rf conftest*
12148   glibcpp_cv_func__isinfl_use=yes
12149 else
12150   echo "configure: failed program was:" >&5
12151   cat conftest.$ac_ext >&5
12152   rm -rf conftest*
12153   glibcpp_cv_func__isinfl_use=no
12154 fi
12155 rm -f conftest*
12156       ac_ext=c
12157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12158 ac_cpp='$CPP $CPPFLAGS'
12159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12161 cross_compiling=$ac_cv_prog_cc_cross
12162
12163     
12164 fi
12165
12166   fi
12167   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12168
12169     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12170       for ac_func in _isinfl
12171 do
12172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12173 echo "configure:12174: checking for $ac_func" >&5
12174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12175   echo $ac_n "(cached) $ac_c" 1>&6
12176 else
12177   cat > conftest.$ac_ext <<EOF
12178 #line 12179 "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181     which can conflict with char $ac_func(); below.  */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error.  */
12184 /* We use char because int might match the return type of a gcc2
12185     builtin and then its argument prototype would still apply.  */
12186 char $ac_func();
12187
12188 int main() {
12189
12190 /* The GNU C library defines this for functions which it implements
12191     to always fail with ENOSYS.  Some functions are actually named
12192     something starting with __ and the normal name is an alias.  */
12193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12194 choke me
12195 #else
12196 $ac_func();
12197 #endif
12198
12199 ; return 0; }
12200 EOF
12201 if { (eval echo configure:12202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12202   rm -rf conftest*
12203   eval "ac_cv_func_$ac_func=yes"
12204 else
12205   echo "configure: failed program was:" >&5
12206   cat conftest.$ac_ext >&5
12207   rm -rf conftest*
12208   eval "ac_cv_func_$ac_func=no"
12209 fi
12210 rm -f conftest*
12211 fi
12212
12213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12214   echo "$ac_t""yes" 1>&6
12215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12216   cat >> confdefs.h <<EOF
12217 #define $ac_tr_func 1
12218 EOF
12219  
12220 else
12221   echo "$ac_t""no" 1>&6
12222 fi
12223 done
12224     
12225     fi
12226   fi
12227
12228   
12229   
12230   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12231 echo "configure:12232: checking for copysignl declaration" >&5
12232   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12233     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12234   echo $ac_n "(cached) $ac_c" 1>&6
12235 else
12236   
12237       
12238       ac_ext=C
12239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12240 ac_cpp='$CXXCPP $CPPFLAGS'
12241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12243 cross_compiling=$ac_cv_prog_cxx_cross
12244
12245       cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 #include <math.h>
12249 int main() {
12250  copysignl(0, 0);
12251 ; return 0; }
12252 EOF
12253 if { (eval echo configure:12254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12254   rm -rf conftest*
12255   glibcpp_cv_func_copysignl_use=yes
12256 else
12257   echo "configure: failed program was:" >&5
12258   cat conftest.$ac_ext >&5
12259   rm -rf conftest*
12260   glibcpp_cv_func_copysignl_use=no
12261 fi
12262 rm -f conftest*
12263       ac_ext=c
12264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12265 ac_cpp='$CPP $CPPFLAGS'
12266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12268 cross_compiling=$ac_cv_prog_cc_cross
12269
12270     
12271 fi
12272
12273   fi
12274   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12275
12276   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12277     for ac_func in copysignl
12278 do
12279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12280 echo "configure:12281: checking for $ac_func" >&5
12281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12282   echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12284   cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 /* System header to define __stub macros and hopefully few prototypes,
12288     which can conflict with char $ac_func(); below.  */
12289 #include <assert.h>
12290 /* Override any gcc2 internal prototype to avoid an error.  */
12291 /* We use char because int might match the return type of a gcc2
12292     builtin and then its argument prototype would still apply.  */
12293 char $ac_func();
12294
12295 int main() {
12296
12297 /* The GNU C library defines this for functions which it implements
12298     to always fail with ENOSYS.  Some functions are actually named
12299     something starting with __ and the normal name is an alias.  */
12300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12301 choke me
12302 #else
12303 $ac_func();
12304 #endif
12305
12306 ; return 0; }
12307 EOF
12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12309   rm -rf conftest*
12310   eval "ac_cv_func_$ac_func=yes"
12311 else
12312   echo "configure: failed program was:" >&5
12313   cat conftest.$ac_ext >&5
12314   rm -rf conftest*
12315   eval "ac_cv_func_$ac_func=no"
12316 fi
12317 rm -f conftest*
12318 fi
12319
12320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12321   echo "$ac_t""yes" 1>&6
12322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12323   cat >> confdefs.h <<EOF
12324 #define $ac_tr_func 1
12325 EOF
12326  
12327 else
12328   echo "$ac_t""no" 1>&6
12329 fi
12330 done
12331     
12332   else
12333     
12334   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12335 echo "configure:12336: checking for _copysignl declaration" >&5
12336   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12337     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12338   echo $ac_n "(cached) $ac_c" 1>&6
12339 else
12340   
12341       
12342       ac_ext=C
12343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12344 ac_cpp='$CXXCPP $CPPFLAGS'
12345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12347 cross_compiling=$ac_cv_prog_cxx_cross
12348
12349       cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure"
12351 #include "confdefs.h"
12352 #include <math.h>
12353 int main() {
12354  _copysignl(0, 0);
12355 ; return 0; }
12356 EOF
12357 if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12358   rm -rf conftest*
12359   glibcpp_cv_func__copysignl_use=yes
12360 else
12361   echo "configure: failed program was:" >&5
12362   cat conftest.$ac_ext >&5
12363   rm -rf conftest*
12364   glibcpp_cv_func__copysignl_use=no
12365 fi
12366 rm -f conftest*
12367       ac_ext=c
12368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12369 ac_cpp='$CPP $CPPFLAGS'
12370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12372 cross_compiling=$ac_cv_prog_cc_cross
12373
12374     
12375 fi
12376
12377   fi
12378   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12379
12380     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12381       for ac_func in _copysignl
12382 do
12383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12384 echo "configure:12385: checking for $ac_func" >&5
12385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12386   echo $ac_n "(cached) $ac_c" 1>&6
12387 else
12388   cat > conftest.$ac_ext <<EOF
12389 #line 12390 "configure"
12390 #include "confdefs.h"
12391 /* System header to define __stub macros and hopefully few prototypes,
12392     which can conflict with char $ac_func(); below.  */
12393 #include <assert.h>
12394 /* Override any gcc2 internal prototype to avoid an error.  */
12395 /* We use char because int might match the return type of a gcc2
12396     builtin and then its argument prototype would still apply.  */
12397 char $ac_func();
12398
12399 int main() {
12400
12401 /* The GNU C library defines this for functions which it implements
12402     to always fail with ENOSYS.  Some functions are actually named
12403     something starting with __ and the normal name is an alias.  */
12404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405 choke me
12406 #else
12407 $ac_func();
12408 #endif
12409
12410 ; return 0; }
12411 EOF
12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12413   rm -rf conftest*
12414   eval "ac_cv_func_$ac_func=yes"
12415 else
12416   echo "configure: failed program was:" >&5
12417   cat conftest.$ac_ext >&5
12418   rm -rf conftest*
12419   eval "ac_cv_func_$ac_func=no"
12420 fi
12421 rm -f conftest*
12422 fi
12423
12424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12425   echo "$ac_t""yes" 1>&6
12426     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12427   cat >> confdefs.h <<EOF
12428 #define $ac_tr_func 1
12429 EOF
12430  
12431 else
12432   echo "$ac_t""no" 1>&6
12433 fi
12434 done
12435     
12436     fi
12437   fi
12438
12439   
12440   
12441   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12442 echo "configure:12443: checking for atan2l declaration" >&5
12443   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12444     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12445   echo $ac_n "(cached) $ac_c" 1>&6
12446 else
12447   
12448       
12449       ac_ext=C
12450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12451 ac_cpp='$CXXCPP $CPPFLAGS'
12452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12454 cross_compiling=$ac_cv_prog_cxx_cross
12455
12456       cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 #include <math.h>
12460 int main() {
12461  atan2l(0, 0);
12462 ; return 0; }
12463 EOF
12464 if { (eval echo configure:12465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12465   rm -rf conftest*
12466   glibcpp_cv_func_atan2l_use=yes
12467 else
12468   echo "configure: failed program was:" >&5
12469   cat conftest.$ac_ext >&5
12470   rm -rf conftest*
12471   glibcpp_cv_func_atan2l_use=no
12472 fi
12473 rm -f conftest*
12474       ac_ext=c
12475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12476 ac_cpp='$CPP $CPPFLAGS'
12477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12479 cross_compiling=$ac_cv_prog_cc_cross
12480
12481     
12482 fi
12483
12484   fi
12485   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12486
12487   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12488     for ac_func in atan2l
12489 do
12490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12491 echo "configure:12492: checking for $ac_func" >&5
12492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12493   echo $ac_n "(cached) $ac_c" 1>&6
12494 else
12495   cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 /* System header to define __stub macros and hopefully few prototypes,
12499     which can conflict with char $ac_func(); below.  */
12500 #include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error.  */
12502 /* We use char because int might match the return type of a gcc2
12503     builtin and then its argument prototype would still apply.  */
12504 char $ac_func();
12505
12506 int main() {
12507
12508 /* The GNU C library defines this for functions which it implements
12509     to always fail with ENOSYS.  Some functions are actually named
12510     something starting with __ and the normal name is an alias.  */
12511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12512 choke me
12513 #else
12514 $ac_func();
12515 #endif
12516
12517 ; return 0; }
12518 EOF
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12520   rm -rf conftest*
12521   eval "ac_cv_func_$ac_func=yes"
12522 else
12523   echo "configure: failed program was:" >&5
12524   cat conftest.$ac_ext >&5
12525   rm -rf conftest*
12526   eval "ac_cv_func_$ac_func=no"
12527 fi
12528 rm -f conftest*
12529 fi
12530
12531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12532   echo "$ac_t""yes" 1>&6
12533     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12534   cat >> confdefs.h <<EOF
12535 #define $ac_tr_func 1
12536 EOF
12537  
12538 else
12539   echo "$ac_t""no" 1>&6
12540 fi
12541 done
12542     
12543   else
12544     
12545   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12546 echo "configure:12547: checking for _atan2l declaration" >&5
12547   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12548     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12549   echo $ac_n "(cached) $ac_c" 1>&6
12550 else
12551   
12552       
12553       ac_ext=C
12554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12555 ac_cpp='$CXXCPP $CPPFLAGS'
12556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12558 cross_compiling=$ac_cv_prog_cxx_cross
12559
12560       cat > conftest.$ac_ext <<EOF
12561 #line 12562 "configure"
12562 #include "confdefs.h"
12563 #include <math.h>
12564 int main() {
12565  _atan2l(0, 0);
12566 ; return 0; }
12567 EOF
12568 if { (eval echo configure:12569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12569   rm -rf conftest*
12570   glibcpp_cv_func__atan2l_use=yes
12571 else
12572   echo "configure: failed program was:" >&5
12573   cat conftest.$ac_ext >&5
12574   rm -rf conftest*
12575   glibcpp_cv_func__atan2l_use=no
12576 fi
12577 rm -f conftest*
12578       ac_ext=c
12579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12580 ac_cpp='$CPP $CPPFLAGS'
12581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12583 cross_compiling=$ac_cv_prog_cc_cross
12584
12585     
12586 fi
12587
12588   fi
12589   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12590
12591     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12592       for ac_func in _atan2l
12593 do
12594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12595 echo "configure:12596: checking for $ac_func" >&5
12596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12597   echo $ac_n "(cached) $ac_c" 1>&6
12598 else
12599   cat > conftest.$ac_ext <<EOF
12600 #line 12601 "configure"
12601 #include "confdefs.h"
12602 /* System header to define __stub macros and hopefully few prototypes,
12603     which can conflict with char $ac_func(); below.  */
12604 #include <assert.h>
12605 /* Override any gcc2 internal prototype to avoid an error.  */
12606 /* We use char because int might match the return type of a gcc2
12607     builtin and then its argument prototype would still apply.  */
12608 char $ac_func();
12609
12610 int main() {
12611
12612 /* The GNU C library defines this for functions which it implements
12613     to always fail with ENOSYS.  Some functions are actually named
12614     something starting with __ and the normal name is an alias.  */
12615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12616 choke me
12617 #else
12618 $ac_func();
12619 #endif
12620
12621 ; return 0; }
12622 EOF
12623 if { (eval echo configure:12624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12624   rm -rf conftest*
12625   eval "ac_cv_func_$ac_func=yes"
12626 else
12627   echo "configure: failed program was:" >&5
12628   cat conftest.$ac_ext >&5
12629   rm -rf conftest*
12630   eval "ac_cv_func_$ac_func=no"
12631 fi
12632 rm -f conftest*
12633 fi
12634
12635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12636   echo "$ac_t""yes" 1>&6
12637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12638   cat >> confdefs.h <<EOF
12639 #define $ac_tr_func 1
12640 EOF
12641  
12642 else
12643   echo "$ac_t""no" 1>&6
12644 fi
12645 done
12646     
12647     fi
12648   fi
12649
12650   
12651   
12652   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12653 echo "configure:12654: checking for expl declaration" >&5
12654   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12655     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12656   echo $ac_n "(cached) $ac_c" 1>&6
12657 else
12658   
12659       
12660       ac_ext=C
12661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12662 ac_cpp='$CXXCPP $CPPFLAGS'
12663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12665 cross_compiling=$ac_cv_prog_cxx_cross
12666
12667       cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 #include <math.h>
12671                       #ifdef HAVE_IEEEFP_H
12672                       #include <ieeefp.h>
12673                       #endif
12674                      
12675 int main() {
12676  expl(0);
12677 ; return 0; }
12678 EOF
12679 if { (eval echo configure:12680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12680   rm -rf conftest*
12681   glibcpp_cv_func_expl_use=yes
12682 else
12683   echo "configure: failed program was:" >&5
12684   cat conftest.$ac_ext >&5
12685   rm -rf conftest*
12686   glibcpp_cv_func_expl_use=no
12687 fi
12688 rm -f conftest*
12689       ac_ext=c
12690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12691 ac_cpp='$CPP $CPPFLAGS'
12692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12694 cross_compiling=$ac_cv_prog_cc_cross
12695
12696     
12697 fi
12698
12699   fi
12700   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12701
12702   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12703     for ac_func in expl
12704 do
12705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12706 echo "configure:12707: checking for $ac_func" >&5
12707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12708   echo $ac_n "(cached) $ac_c" 1>&6
12709 else
12710   cat > conftest.$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12713 /* System header to define __stub macros and hopefully few prototypes,
12714     which can conflict with char $ac_func(); below.  */
12715 #include <assert.h>
12716 /* Override any gcc2 internal prototype to avoid an error.  */
12717 /* We use char because int might match the return type of a gcc2
12718     builtin and then its argument prototype would still apply.  */
12719 char $ac_func();
12720
12721 int main() {
12722
12723 /* The GNU C library defines this for functions which it implements
12724     to always fail with ENOSYS.  Some functions are actually named
12725     something starting with __ and the normal name is an alias.  */
12726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12727 choke me
12728 #else
12729 $ac_func();
12730 #endif
12731
12732 ; return 0; }
12733 EOF
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12735   rm -rf conftest*
12736   eval "ac_cv_func_$ac_func=yes"
12737 else
12738   echo "configure: failed program was:" >&5
12739   cat conftest.$ac_ext >&5
12740   rm -rf conftest*
12741   eval "ac_cv_func_$ac_func=no"
12742 fi
12743 rm -f conftest*
12744 fi
12745
12746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12747   echo "$ac_t""yes" 1>&6
12748     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12749   cat >> confdefs.h <<EOF
12750 #define $ac_tr_func 1
12751 EOF
12752  
12753 else
12754   echo "$ac_t""no" 1>&6
12755 fi
12756 done
12757     
12758   else
12759     
12760   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12761 echo "configure:12762: checking for _expl declaration" >&5
12762   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12763     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12764   echo $ac_n "(cached) $ac_c" 1>&6
12765 else
12766   
12767       
12768       ac_ext=C
12769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12770 ac_cpp='$CXXCPP $CPPFLAGS'
12771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12773 cross_compiling=$ac_cv_prog_cxx_cross
12774
12775       cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 #include <math.h>
12779                       #ifdef HAVE_IEEEFP_H
12780                       #include <ieeefp.h>
12781                       #endif
12782                      
12783 int main() {
12784  _expl(0);
12785 ; return 0; }
12786 EOF
12787 if { (eval echo configure:12788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12788   rm -rf conftest*
12789   glibcpp_cv_func__expl_use=yes
12790 else
12791   echo "configure: failed program was:" >&5
12792   cat conftest.$ac_ext >&5
12793   rm -rf conftest*
12794   glibcpp_cv_func__expl_use=no
12795 fi
12796 rm -f conftest*
12797       ac_ext=c
12798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12799 ac_cpp='$CPP $CPPFLAGS'
12800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12802 cross_compiling=$ac_cv_prog_cc_cross
12803
12804     
12805 fi
12806
12807   fi
12808   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12809
12810     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12811       for ac_func in _expl
12812 do
12813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12814 echo "configure:12815: checking for $ac_func" >&5
12815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12816   echo $ac_n "(cached) $ac_c" 1>&6
12817 else
12818   cat > conftest.$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12821 /* System header to define __stub macros and hopefully few prototypes,
12822     which can conflict with char $ac_func(); below.  */
12823 #include <assert.h>
12824 /* Override any gcc2 internal prototype to avoid an error.  */
12825 /* We use char because int might match the return type of a gcc2
12826     builtin and then its argument prototype would still apply.  */
12827 char $ac_func();
12828
12829 int main() {
12830
12831 /* The GNU C library defines this for functions which it implements
12832     to always fail with ENOSYS.  Some functions are actually named
12833     something starting with __ and the normal name is an alias.  */
12834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12835 choke me
12836 #else
12837 $ac_func();
12838 #endif
12839
12840 ; return 0; }
12841 EOF
12842 if { (eval echo configure:12843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12843   rm -rf conftest*
12844   eval "ac_cv_func_$ac_func=yes"
12845 else
12846   echo "configure: failed program was:" >&5
12847   cat conftest.$ac_ext >&5
12848   rm -rf conftest*
12849   eval "ac_cv_func_$ac_func=no"
12850 fi
12851 rm -f conftest*
12852 fi
12853
12854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12855   echo "$ac_t""yes" 1>&6
12856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12857   cat >> confdefs.h <<EOF
12858 #define $ac_tr_func 1
12859 EOF
12860  
12861 else
12862   echo "$ac_t""no" 1>&6
12863 fi
12864 done
12865     
12866     fi
12867   fi
12868
12869   
12870   
12871   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12872 echo "configure:12873: checking for fabsl declaration" >&5
12873   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12874     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12875   echo $ac_n "(cached) $ac_c" 1>&6
12876 else
12877   
12878       
12879       ac_ext=C
12880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12881 ac_cpp='$CXXCPP $CPPFLAGS'
12882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12884 cross_compiling=$ac_cv_prog_cxx_cross
12885
12886       cat > conftest.$ac_ext <<EOF
12887 #line 12888 "configure"
12888 #include "confdefs.h"
12889 #include <math.h>
12890                       #ifdef HAVE_IEEEFP_H
12891                       #include <ieeefp.h>
12892                       #endif
12893                      
12894 int main() {
12895  fabsl(0);
12896 ; return 0; }
12897 EOF
12898 if { (eval echo configure:12899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12899   rm -rf conftest*
12900   glibcpp_cv_func_fabsl_use=yes
12901 else
12902   echo "configure: failed program was:" >&5
12903   cat conftest.$ac_ext >&5
12904   rm -rf conftest*
12905   glibcpp_cv_func_fabsl_use=no
12906 fi
12907 rm -f conftest*
12908       ac_ext=c
12909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12913 cross_compiling=$ac_cv_prog_cc_cross
12914
12915     
12916 fi
12917
12918   fi
12919   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12920
12921   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12922     for ac_func in fabsl
12923 do
12924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12925 echo "configure:12926: checking for $ac_func" >&5
12926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12927   echo $ac_n "(cached) $ac_c" 1>&6
12928 else
12929   cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure"
12931 #include "confdefs.h"
12932 /* System header to define __stub macros and hopefully few prototypes,
12933     which can conflict with char $ac_func(); below.  */
12934 #include <assert.h>
12935 /* Override any gcc2 internal prototype to avoid an error.  */
12936 /* We use char because int might match the return type of a gcc2
12937     builtin and then its argument prototype would still apply.  */
12938 char $ac_func();
12939
12940 int main() {
12941
12942 /* The GNU C library defines this for functions which it implements
12943     to always fail with ENOSYS.  Some functions are actually named
12944     something starting with __ and the normal name is an alias.  */
12945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12946 choke me
12947 #else
12948 $ac_func();
12949 #endif
12950
12951 ; return 0; }
12952 EOF
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954   rm -rf conftest*
12955   eval "ac_cv_func_$ac_func=yes"
12956 else
12957   echo "configure: failed program was:" >&5
12958   cat conftest.$ac_ext >&5
12959   rm -rf conftest*
12960   eval "ac_cv_func_$ac_func=no"
12961 fi
12962 rm -f conftest*
12963 fi
12964
12965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12966   echo "$ac_t""yes" 1>&6
12967     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12968   cat >> confdefs.h <<EOF
12969 #define $ac_tr_func 1
12970 EOF
12971  
12972 else
12973   echo "$ac_t""no" 1>&6
12974 fi
12975 done
12976     
12977   else
12978     
12979   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12980 echo "configure:12981: checking for _fabsl declaration" >&5
12981   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12982     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12983   echo $ac_n "(cached) $ac_c" 1>&6
12984 else
12985   
12986       
12987       ac_ext=C
12988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12989 ac_cpp='$CXXCPP $CPPFLAGS'
12990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12992 cross_compiling=$ac_cv_prog_cxx_cross
12993
12994       cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12997 #include <math.h>
12998                       #ifdef HAVE_IEEEFP_H
12999                       #include <ieeefp.h>
13000                       #endif
13001                      
13002 int main() {
13003  _fabsl(0);
13004 ; return 0; }
13005 EOF
13006 if { (eval echo configure:13007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13007   rm -rf conftest*
13008   glibcpp_cv_func__fabsl_use=yes
13009 else
13010   echo "configure: failed program was:" >&5
13011   cat conftest.$ac_ext >&5
13012   rm -rf conftest*
13013   glibcpp_cv_func__fabsl_use=no
13014 fi
13015 rm -f conftest*
13016       ac_ext=c
13017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13018 ac_cpp='$CPP $CPPFLAGS'
13019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13021 cross_compiling=$ac_cv_prog_cc_cross
13022
13023     
13024 fi
13025
13026   fi
13027   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13028
13029     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13030       for ac_func in _fabsl
13031 do
13032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13033 echo "configure:13034: checking for $ac_func" >&5
13034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13035   echo $ac_n "(cached) $ac_c" 1>&6
13036 else
13037   cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040 /* System header to define __stub macros and hopefully few prototypes,
13041     which can conflict with char $ac_func(); below.  */
13042 #include <assert.h>
13043 /* Override any gcc2 internal prototype to avoid an error.  */
13044 /* We use char because int might match the return type of a gcc2
13045     builtin and then its argument prototype would still apply.  */
13046 char $ac_func();
13047
13048 int main() {
13049
13050 /* The GNU C library defines this for functions which it implements
13051     to always fail with ENOSYS.  Some functions are actually named
13052     something starting with __ and the normal name is an alias.  */
13053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13054 choke me
13055 #else
13056 $ac_func();
13057 #endif
13058
13059 ; return 0; }
13060 EOF
13061 if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13062   rm -rf conftest*
13063   eval "ac_cv_func_$ac_func=yes"
13064 else
13065   echo "configure: failed program was:" >&5
13066   cat conftest.$ac_ext >&5
13067   rm -rf conftest*
13068   eval "ac_cv_func_$ac_func=no"
13069 fi
13070 rm -f conftest*
13071 fi
13072
13073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13074   echo "$ac_t""yes" 1>&6
13075     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13076   cat >> confdefs.h <<EOF
13077 #define $ac_tr_func 1
13078 EOF
13079  
13080 else
13081   echo "$ac_t""no" 1>&6
13082 fi
13083 done
13084     
13085     fi
13086   fi
13087
13088   
13089   
13090   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13091 echo "configure:13092: checking for fmodl declaration" >&5
13092   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13093     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13094   echo $ac_n "(cached) $ac_c" 1>&6
13095 else
13096   
13097       
13098       ac_ext=C
13099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13100 ac_cpp='$CXXCPP $CPPFLAGS'
13101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13103 cross_compiling=$ac_cv_prog_cxx_cross
13104
13105       cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 #include <math.h>
13109 int main() {
13110  fmodl(0, 0);
13111 ; return 0; }
13112 EOF
13113 if { (eval echo configure:13114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13114   rm -rf conftest*
13115   glibcpp_cv_func_fmodl_use=yes
13116 else
13117   echo "configure: failed program was:" >&5
13118   cat conftest.$ac_ext >&5
13119   rm -rf conftest*
13120   glibcpp_cv_func_fmodl_use=no
13121 fi
13122 rm -f conftest*
13123       ac_ext=c
13124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13125 ac_cpp='$CPP $CPPFLAGS'
13126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13128 cross_compiling=$ac_cv_prog_cc_cross
13129
13130     
13131 fi
13132
13133   fi
13134   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13135
13136   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13137     for ac_func in fmodl
13138 do
13139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13140 echo "configure:13141: checking for $ac_func" >&5
13141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13142   echo $ac_n "(cached) $ac_c" 1>&6
13143 else
13144   cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure"
13146 #include "confdefs.h"
13147 /* System header to define __stub macros and hopefully few prototypes,
13148     which can conflict with char $ac_func(); below.  */
13149 #include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error.  */
13151 /* We use char because int might match the return type of a gcc2
13152     builtin and then its argument prototype would still apply.  */
13153 char $ac_func();
13154
13155 int main() {
13156
13157 /* The GNU C library defines this for functions which it implements
13158     to always fail with ENOSYS.  Some functions are actually named
13159     something starting with __ and the normal name is an alias.  */
13160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13161 choke me
13162 #else
13163 $ac_func();
13164 #endif
13165
13166 ; return 0; }
13167 EOF
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13169   rm -rf conftest*
13170   eval "ac_cv_func_$ac_func=yes"
13171 else
13172   echo "configure: failed program was:" >&5
13173   cat conftest.$ac_ext >&5
13174   rm -rf conftest*
13175   eval "ac_cv_func_$ac_func=no"
13176 fi
13177 rm -f conftest*
13178 fi
13179
13180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13181   echo "$ac_t""yes" 1>&6
13182     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13183   cat >> confdefs.h <<EOF
13184 #define $ac_tr_func 1
13185 EOF
13186  
13187 else
13188   echo "$ac_t""no" 1>&6
13189 fi
13190 done
13191     
13192   else
13193     
13194   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13195 echo "configure:13196: checking for _fmodl declaration" >&5
13196   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13197     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13198   echo $ac_n "(cached) $ac_c" 1>&6
13199 else
13200   
13201       
13202       ac_ext=C
13203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13204 ac_cpp='$CXXCPP $CPPFLAGS'
13205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13207 cross_compiling=$ac_cv_prog_cxx_cross
13208
13209       cat > conftest.$ac_ext <<EOF
13210 #line 13211 "configure"
13211 #include "confdefs.h"
13212 #include <math.h>
13213 int main() {
13214  _fmodl(0, 0);
13215 ; return 0; }
13216 EOF
13217 if { (eval echo configure:13218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13218   rm -rf conftest*
13219   glibcpp_cv_func__fmodl_use=yes
13220 else
13221   echo "configure: failed program was:" >&5
13222   cat conftest.$ac_ext >&5
13223   rm -rf conftest*
13224   glibcpp_cv_func__fmodl_use=no
13225 fi
13226 rm -f conftest*
13227       ac_ext=c
13228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13229 ac_cpp='$CPP $CPPFLAGS'
13230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13232 cross_compiling=$ac_cv_prog_cc_cross
13233
13234     
13235 fi
13236
13237   fi
13238   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13239
13240     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13241       for ac_func in _fmodl
13242 do
13243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13244 echo "configure:13245: checking for $ac_func" >&5
13245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13246   echo $ac_n "(cached) $ac_c" 1>&6
13247 else
13248   cat > conftest.$ac_ext <<EOF
13249 #line 13250 "configure"
13250 #include "confdefs.h"
13251 /* System header to define __stub macros and hopefully few prototypes,
13252     which can conflict with char $ac_func(); below.  */
13253 #include <assert.h>
13254 /* Override any gcc2 internal prototype to avoid an error.  */
13255 /* We use char because int might match the return type of a gcc2
13256     builtin and then its argument prototype would still apply.  */
13257 char $ac_func();
13258
13259 int main() {
13260
13261 /* The GNU C library defines this for functions which it implements
13262     to always fail with ENOSYS.  Some functions are actually named
13263     something starting with __ and the normal name is an alias.  */
13264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13265 choke me
13266 #else
13267 $ac_func();
13268 #endif
13269
13270 ; return 0; }
13271 EOF
13272 if { (eval echo configure:13273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13273   rm -rf conftest*
13274   eval "ac_cv_func_$ac_func=yes"
13275 else
13276   echo "configure: failed program was:" >&5
13277   cat conftest.$ac_ext >&5
13278   rm -rf conftest*
13279   eval "ac_cv_func_$ac_func=no"
13280 fi
13281 rm -f conftest*
13282 fi
13283
13284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13285   echo "$ac_t""yes" 1>&6
13286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13287   cat >> confdefs.h <<EOF
13288 #define $ac_tr_func 1
13289 EOF
13290  
13291 else
13292   echo "$ac_t""no" 1>&6
13293 fi
13294 done
13295     
13296     fi
13297   fi
13298
13299   
13300   
13301   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13302 echo "configure:13303: checking for frexpl declaration" >&5
13303   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13304     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13305   echo $ac_n "(cached) $ac_c" 1>&6
13306 else
13307   
13308       
13309       ac_ext=C
13310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13311 ac_cpp='$CXXCPP $CPPFLAGS'
13312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13314 cross_compiling=$ac_cv_prog_cxx_cross
13315
13316       cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 #include <math.h>
13320 int main() {
13321  frexpl(0, 0);
13322 ; return 0; }
13323 EOF
13324 if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13325   rm -rf conftest*
13326   glibcpp_cv_func_frexpl_use=yes
13327 else
13328   echo "configure: failed program was:" >&5
13329   cat conftest.$ac_ext >&5
13330   rm -rf conftest*
13331   glibcpp_cv_func_frexpl_use=no
13332 fi
13333 rm -f conftest*
13334       ac_ext=c
13335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13339 cross_compiling=$ac_cv_prog_cc_cross
13340
13341     
13342 fi
13343
13344   fi
13345   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13346
13347   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13348     for ac_func in frexpl
13349 do
13350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13351 echo "configure:13352: checking for $ac_func" >&5
13352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13353   echo $ac_n "(cached) $ac_c" 1>&6
13354 else
13355   cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 /* System header to define __stub macros and hopefully few prototypes,
13359     which can conflict with char $ac_func(); below.  */
13360 #include <assert.h>
13361 /* Override any gcc2 internal prototype to avoid an error.  */
13362 /* We use char because int might match the return type of a gcc2
13363     builtin and then its argument prototype would still apply.  */
13364 char $ac_func();
13365
13366 int main() {
13367
13368 /* The GNU C library defines this for functions which it implements
13369     to always fail with ENOSYS.  Some functions are actually named
13370     something starting with __ and the normal name is an alias.  */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 $ac_func();
13375 #endif
13376
13377 ; return 0; }
13378 EOF
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380   rm -rf conftest*
13381   eval "ac_cv_func_$ac_func=yes"
13382 else
13383   echo "configure: failed program was:" >&5
13384   cat conftest.$ac_ext >&5
13385   rm -rf conftest*
13386   eval "ac_cv_func_$ac_func=no"
13387 fi
13388 rm -f conftest*
13389 fi
13390
13391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13392   echo "$ac_t""yes" 1>&6
13393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13394   cat >> confdefs.h <<EOF
13395 #define $ac_tr_func 1
13396 EOF
13397  
13398 else
13399   echo "$ac_t""no" 1>&6
13400 fi
13401 done
13402     
13403   else
13404     
13405   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13406 echo "configure:13407: checking for _frexpl declaration" >&5
13407   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13408     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13409   echo $ac_n "(cached) $ac_c" 1>&6
13410 else
13411   
13412       
13413       ac_ext=C
13414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13415 ac_cpp='$CXXCPP $CPPFLAGS'
13416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13418 cross_compiling=$ac_cv_prog_cxx_cross
13419
13420       cat > conftest.$ac_ext <<EOF
13421 #line 13422 "configure"
13422 #include "confdefs.h"
13423 #include <math.h>
13424 int main() {
13425  _frexpl(0, 0);
13426 ; return 0; }
13427 EOF
13428 if { (eval echo configure:13429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13429   rm -rf conftest*
13430   glibcpp_cv_func__frexpl_use=yes
13431 else
13432   echo "configure: failed program was:" >&5
13433   cat conftest.$ac_ext >&5
13434   rm -rf conftest*
13435   glibcpp_cv_func__frexpl_use=no
13436 fi
13437 rm -f conftest*
13438       ac_ext=c
13439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13440 ac_cpp='$CPP $CPPFLAGS'
13441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13443 cross_compiling=$ac_cv_prog_cc_cross
13444
13445     
13446 fi
13447
13448   fi
13449   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13450
13451     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13452       for ac_func in _frexpl
13453 do
13454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13455 echo "configure:13456: checking for $ac_func" >&5
13456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13457   echo $ac_n "(cached) $ac_c" 1>&6
13458 else
13459   cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 /* System header to define __stub macros and hopefully few prototypes,
13463     which can conflict with char $ac_func(); below.  */
13464 #include <assert.h>
13465 /* Override any gcc2 internal prototype to avoid an error.  */
13466 /* We use char because int might match the return type of a gcc2
13467     builtin and then its argument prototype would still apply.  */
13468 char $ac_func();
13469
13470 int main() {
13471
13472 /* The GNU C library defines this for functions which it implements
13473     to always fail with ENOSYS.  Some functions are actually named
13474     something starting with __ and the normal name is an alias.  */
13475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13476 choke me
13477 #else
13478 $ac_func();
13479 #endif
13480
13481 ; return 0; }
13482 EOF
13483 if { (eval echo configure:13484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13484   rm -rf conftest*
13485   eval "ac_cv_func_$ac_func=yes"
13486 else
13487   echo "configure: failed program was:" >&5
13488   cat conftest.$ac_ext >&5
13489   rm -rf conftest*
13490   eval "ac_cv_func_$ac_func=no"
13491 fi
13492 rm -f conftest*
13493 fi
13494
13495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13496   echo "$ac_t""yes" 1>&6
13497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13498   cat >> confdefs.h <<EOF
13499 #define $ac_tr_func 1
13500 EOF
13501  
13502 else
13503   echo "$ac_t""no" 1>&6
13504 fi
13505 done
13506     
13507     fi
13508   fi
13509
13510   
13511   
13512   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13513 echo "configure:13514: checking for hypotl declaration" >&5
13514   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13515     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13516   echo $ac_n "(cached) $ac_c" 1>&6
13517 else
13518   
13519       
13520       ac_ext=C
13521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13522 ac_cpp='$CXXCPP $CPPFLAGS'
13523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13525 cross_compiling=$ac_cv_prog_cxx_cross
13526
13527       cat > conftest.$ac_ext <<EOF
13528 #line 13529 "configure"
13529 #include "confdefs.h"
13530 #include <math.h>
13531 int main() {
13532  hypotl(0, 0);
13533 ; return 0; }
13534 EOF
13535 if { (eval echo configure:13536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13536   rm -rf conftest*
13537   glibcpp_cv_func_hypotl_use=yes
13538 else
13539   echo "configure: failed program was:" >&5
13540   cat conftest.$ac_ext >&5
13541   rm -rf conftest*
13542   glibcpp_cv_func_hypotl_use=no
13543 fi
13544 rm -f conftest*
13545       ac_ext=c
13546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13547 ac_cpp='$CPP $CPPFLAGS'
13548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13550 cross_compiling=$ac_cv_prog_cc_cross
13551
13552     
13553 fi
13554
13555   fi
13556   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13557
13558   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13559     for ac_func in hypotl
13560 do
13561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13562 echo "configure:13563: checking for $ac_func" >&5
13563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13564   echo $ac_n "(cached) $ac_c" 1>&6
13565 else
13566   cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 /* System header to define __stub macros and hopefully few prototypes,
13570     which can conflict with char $ac_func(); below.  */
13571 #include <assert.h>
13572 /* Override any gcc2 internal prototype to avoid an error.  */
13573 /* We use char because int might match the return type of a gcc2
13574     builtin and then its argument prototype would still apply.  */
13575 char $ac_func();
13576
13577 int main() {
13578
13579 /* The GNU C library defines this for functions which it implements
13580     to always fail with ENOSYS.  Some functions are actually named
13581     something starting with __ and the normal name is an alias.  */
13582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13583 choke me
13584 #else
13585 $ac_func();
13586 #endif
13587
13588 ; return 0; }
13589 EOF
13590 if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13591   rm -rf conftest*
13592   eval "ac_cv_func_$ac_func=yes"
13593 else
13594   echo "configure: failed program was:" >&5
13595   cat conftest.$ac_ext >&5
13596   rm -rf conftest*
13597   eval "ac_cv_func_$ac_func=no"
13598 fi
13599 rm -f conftest*
13600 fi
13601
13602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13603   echo "$ac_t""yes" 1>&6
13604     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13605   cat >> confdefs.h <<EOF
13606 #define $ac_tr_func 1
13607 EOF
13608  
13609 else
13610   echo "$ac_t""no" 1>&6
13611 fi
13612 done
13613     
13614   else
13615     
13616   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13617 echo "configure:13618: checking for _hypotl declaration" >&5
13618   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13619     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13620   echo $ac_n "(cached) $ac_c" 1>&6
13621 else
13622   
13623       
13624       ac_ext=C
13625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13626 ac_cpp='$CXXCPP $CPPFLAGS'
13627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13629 cross_compiling=$ac_cv_prog_cxx_cross
13630
13631       cat > conftest.$ac_ext <<EOF
13632 #line 13633 "configure"
13633 #include "confdefs.h"
13634 #include <math.h>
13635 int main() {
13636  _hypotl(0, 0);
13637 ; return 0; }
13638 EOF
13639 if { (eval echo configure:13640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13640   rm -rf conftest*
13641   glibcpp_cv_func__hypotl_use=yes
13642 else
13643   echo "configure: failed program was:" >&5
13644   cat conftest.$ac_ext >&5
13645   rm -rf conftest*
13646   glibcpp_cv_func__hypotl_use=no
13647 fi
13648 rm -f conftest*
13649       ac_ext=c
13650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13654 cross_compiling=$ac_cv_prog_cc_cross
13655
13656     
13657 fi
13658
13659   fi
13660   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13661
13662     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13663       for ac_func in _hypotl
13664 do
13665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13666 echo "configure:13667: checking for $ac_func" >&5
13667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13668   echo $ac_n "(cached) $ac_c" 1>&6
13669 else
13670   cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13673 /* System header to define __stub macros and hopefully few prototypes,
13674     which can conflict with char $ac_func(); below.  */
13675 #include <assert.h>
13676 /* Override any gcc2 internal prototype to avoid an error.  */
13677 /* We use char because int might match the return type of a gcc2
13678     builtin and then its argument prototype would still apply.  */
13679 char $ac_func();
13680
13681 int main() {
13682
13683 /* The GNU C library defines this for functions which it implements
13684     to always fail with ENOSYS.  Some functions are actually named
13685     something starting with __ and the normal name is an alias.  */
13686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13687 choke me
13688 #else
13689 $ac_func();
13690 #endif
13691
13692 ; return 0; }
13693 EOF
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695   rm -rf conftest*
13696   eval "ac_cv_func_$ac_func=yes"
13697 else
13698   echo "configure: failed program was:" >&5
13699   cat conftest.$ac_ext >&5
13700   rm -rf conftest*
13701   eval "ac_cv_func_$ac_func=no"
13702 fi
13703 rm -f conftest*
13704 fi
13705
13706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13707   echo "$ac_t""yes" 1>&6
13708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13709   cat >> confdefs.h <<EOF
13710 #define $ac_tr_func 1
13711 EOF
13712  
13713 else
13714   echo "$ac_t""no" 1>&6
13715 fi
13716 done
13717     
13718     fi
13719   fi
13720
13721   
13722   
13723   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13724 echo "configure:13725: checking for ldexpl declaration" >&5
13725   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13726     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13727   echo $ac_n "(cached) $ac_c" 1>&6
13728 else
13729   
13730       
13731       ac_ext=C
13732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13733 ac_cpp='$CXXCPP $CPPFLAGS'
13734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13736 cross_compiling=$ac_cv_prog_cxx_cross
13737
13738       cat > conftest.$ac_ext <<EOF
13739 #line 13740 "configure"
13740 #include "confdefs.h"
13741 #include <math.h>
13742 int main() {
13743  ldexpl(0, 0);
13744 ; return 0; }
13745 EOF
13746 if { (eval echo configure:13747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13747   rm -rf conftest*
13748   glibcpp_cv_func_ldexpl_use=yes
13749 else
13750   echo "configure: failed program was:" >&5
13751   cat conftest.$ac_ext >&5
13752   rm -rf conftest*
13753   glibcpp_cv_func_ldexpl_use=no
13754 fi
13755 rm -f conftest*
13756       ac_ext=c
13757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13761 cross_compiling=$ac_cv_prog_cc_cross
13762
13763     
13764 fi
13765
13766   fi
13767   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13768
13769   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13770     for ac_func in ldexpl
13771 do
13772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13773 echo "configure:13774: checking for $ac_func" >&5
13774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13775   echo $ac_n "(cached) $ac_c" 1>&6
13776 else
13777   cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 /* System header to define __stub macros and hopefully few prototypes,
13781     which can conflict with char $ac_func(); below.  */
13782 #include <assert.h>
13783 /* Override any gcc2 internal prototype to avoid an error.  */
13784 /* We use char because int might match the return type of a gcc2
13785     builtin and then its argument prototype would still apply.  */
13786 char $ac_func();
13787
13788 int main() {
13789
13790 /* The GNU C library defines this for functions which it implements
13791     to always fail with ENOSYS.  Some functions are actually named
13792     something starting with __ and the normal name is an alias.  */
13793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13794 choke me
13795 #else
13796 $ac_func();
13797 #endif
13798
13799 ; return 0; }
13800 EOF
13801 if { (eval echo configure:13802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13802   rm -rf conftest*
13803   eval "ac_cv_func_$ac_func=yes"
13804 else
13805   echo "configure: failed program was:" >&5
13806   cat conftest.$ac_ext >&5
13807   rm -rf conftest*
13808   eval "ac_cv_func_$ac_func=no"
13809 fi
13810 rm -f conftest*
13811 fi
13812
13813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13814   echo "$ac_t""yes" 1>&6
13815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13816   cat >> confdefs.h <<EOF
13817 #define $ac_tr_func 1
13818 EOF
13819  
13820 else
13821   echo "$ac_t""no" 1>&6
13822 fi
13823 done
13824     
13825   else
13826     
13827   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13828 echo "configure:13829: checking for _ldexpl declaration" >&5
13829   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13830     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13831   echo $ac_n "(cached) $ac_c" 1>&6
13832 else
13833   
13834       
13835       ac_ext=C
13836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13837 ac_cpp='$CXXCPP $CPPFLAGS'
13838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13840 cross_compiling=$ac_cv_prog_cxx_cross
13841
13842       cat > conftest.$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13845 #include <math.h>
13846 int main() {
13847  _ldexpl(0, 0);
13848 ; return 0; }
13849 EOF
13850 if { (eval echo configure:13851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13851   rm -rf conftest*
13852   glibcpp_cv_func__ldexpl_use=yes
13853 else
13854   echo "configure: failed program was:" >&5
13855   cat conftest.$ac_ext >&5
13856   rm -rf conftest*
13857   glibcpp_cv_func__ldexpl_use=no
13858 fi
13859 rm -f conftest*
13860       ac_ext=c
13861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13862 ac_cpp='$CPP $CPPFLAGS'
13863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13865 cross_compiling=$ac_cv_prog_cc_cross
13866
13867     
13868 fi
13869
13870   fi
13871   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13872
13873     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13874       for ac_func in _ldexpl
13875 do
13876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13877 echo "configure:13878: checking for $ac_func" >&5
13878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13879   echo $ac_n "(cached) $ac_c" 1>&6
13880 else
13881   cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 /* System header to define __stub macros and hopefully few prototypes,
13885     which can conflict with char $ac_func(); below.  */
13886 #include <assert.h>
13887 /* Override any gcc2 internal prototype to avoid an error.  */
13888 /* We use char because int might match the return type of a gcc2
13889     builtin and then its argument prototype would still apply.  */
13890 char $ac_func();
13891
13892 int main() {
13893
13894 /* The GNU C library defines this for functions which it implements
13895     to always fail with ENOSYS.  Some functions are actually named
13896     something starting with __ and the normal name is an alias.  */
13897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13898 choke me
13899 #else
13900 $ac_func();
13901 #endif
13902
13903 ; return 0; }
13904 EOF
13905 if { (eval echo configure:13906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13906   rm -rf conftest*
13907   eval "ac_cv_func_$ac_func=yes"
13908 else
13909   echo "configure: failed program was:" >&5
13910   cat conftest.$ac_ext >&5
13911   rm -rf conftest*
13912   eval "ac_cv_func_$ac_func=no"
13913 fi
13914 rm -f conftest*
13915 fi
13916
13917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13918   echo "$ac_t""yes" 1>&6
13919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13920   cat >> confdefs.h <<EOF
13921 #define $ac_tr_func 1
13922 EOF
13923  
13924 else
13925   echo "$ac_t""no" 1>&6
13926 fi
13927 done
13928     
13929     fi
13930   fi
13931
13932   
13933   
13934   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13935 echo "configure:13936: checking for logl declaration" >&5
13936   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13937     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13938   echo $ac_n "(cached) $ac_c" 1>&6
13939 else
13940   
13941       
13942       ac_ext=C
13943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13944 ac_cpp='$CXXCPP $CPPFLAGS'
13945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13947 cross_compiling=$ac_cv_prog_cxx_cross
13948
13949       cat > conftest.$ac_ext <<EOF
13950 #line 13951 "configure"
13951 #include "confdefs.h"
13952 #include <math.h>
13953                       #ifdef HAVE_IEEEFP_H
13954                       #include <ieeefp.h>
13955                       #endif
13956                      
13957 int main() {
13958  logl(0);
13959 ; return 0; }
13960 EOF
13961 if { (eval echo configure:13962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13962   rm -rf conftest*
13963   glibcpp_cv_func_logl_use=yes
13964 else
13965   echo "configure: failed program was:" >&5
13966   cat conftest.$ac_ext >&5
13967   rm -rf conftest*
13968   glibcpp_cv_func_logl_use=no
13969 fi
13970 rm -f conftest*
13971       ac_ext=c
13972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13973 ac_cpp='$CPP $CPPFLAGS'
13974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13976 cross_compiling=$ac_cv_prog_cc_cross
13977
13978     
13979 fi
13980
13981   fi
13982   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13983
13984   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13985     for ac_func in logl
13986 do
13987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13988 echo "configure:13989: checking for $ac_func" >&5
13989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13990   echo $ac_n "(cached) $ac_c" 1>&6
13991 else
13992   cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 /* System header to define __stub macros and hopefully few prototypes,
13996     which can conflict with char $ac_func(); below.  */
13997 #include <assert.h>
13998 /* Override any gcc2 internal prototype to avoid an error.  */
13999 /* We use char because int might match the return type of a gcc2
14000     builtin and then its argument prototype would still apply.  */
14001 char $ac_func();
14002
14003 int main() {
14004
14005 /* The GNU C library defines this for functions which it implements
14006     to always fail with ENOSYS.  Some functions are actually named
14007     something starting with __ and the normal name is an alias.  */
14008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14009 choke me
14010 #else
14011 $ac_func();
14012 #endif
14013
14014 ; return 0; }
14015 EOF
14016 if { (eval echo configure:14017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14017   rm -rf conftest*
14018   eval "ac_cv_func_$ac_func=yes"
14019 else
14020   echo "configure: failed program was:" >&5
14021   cat conftest.$ac_ext >&5
14022   rm -rf conftest*
14023   eval "ac_cv_func_$ac_func=no"
14024 fi
14025 rm -f conftest*
14026 fi
14027
14028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14029   echo "$ac_t""yes" 1>&6
14030     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14031   cat >> confdefs.h <<EOF
14032 #define $ac_tr_func 1
14033 EOF
14034  
14035 else
14036   echo "$ac_t""no" 1>&6
14037 fi
14038 done
14039     
14040   else
14041     
14042   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14043 echo "configure:14044: checking for _logl declaration" >&5
14044   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14045     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14046   echo $ac_n "(cached) $ac_c" 1>&6
14047 else
14048   
14049       
14050       ac_ext=C
14051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14052 ac_cpp='$CXXCPP $CPPFLAGS'
14053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14055 cross_compiling=$ac_cv_prog_cxx_cross
14056
14057       cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 #include <math.h>
14061                       #ifdef HAVE_IEEEFP_H
14062                       #include <ieeefp.h>
14063                       #endif
14064                      
14065 int main() {
14066  _logl(0);
14067 ; return 0; }
14068 EOF
14069 if { (eval echo configure:14070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14070   rm -rf conftest*
14071   glibcpp_cv_func__logl_use=yes
14072 else
14073   echo "configure: failed program was:" >&5
14074   cat conftest.$ac_ext >&5
14075   rm -rf conftest*
14076   glibcpp_cv_func__logl_use=no
14077 fi
14078 rm -f conftest*
14079       ac_ext=c
14080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14081 ac_cpp='$CPP $CPPFLAGS'
14082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14084 cross_compiling=$ac_cv_prog_cc_cross
14085
14086     
14087 fi
14088
14089   fi
14090   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14091
14092     if test x$glibcpp_cv_func__logl_use = x"yes"; then
14093       for ac_func in _logl
14094 do
14095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14096 echo "configure:14097: checking for $ac_func" >&5
14097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14098   echo $ac_n "(cached) $ac_c" 1>&6
14099 else
14100   cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 /* System header to define __stub macros and hopefully few prototypes,
14104     which can conflict with char $ac_func(); below.  */
14105 #include <assert.h>
14106 /* Override any gcc2 internal prototype to avoid an error.  */
14107 /* We use char because int might match the return type of a gcc2
14108     builtin and then its argument prototype would still apply.  */
14109 char $ac_func();
14110
14111 int main() {
14112
14113 /* The GNU C library defines this for functions which it implements
14114     to always fail with ENOSYS.  Some functions are actually named
14115     something starting with __ and the normal name is an alias.  */
14116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14117 choke me
14118 #else
14119 $ac_func();
14120 #endif
14121
14122 ; return 0; }
14123 EOF
14124 if { (eval echo configure:14125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14125   rm -rf conftest*
14126   eval "ac_cv_func_$ac_func=yes"
14127 else
14128   echo "configure: failed program was:" >&5
14129   cat conftest.$ac_ext >&5
14130   rm -rf conftest*
14131   eval "ac_cv_func_$ac_func=no"
14132 fi
14133 rm -f conftest*
14134 fi
14135
14136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14137   echo "$ac_t""yes" 1>&6
14138     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14139   cat >> confdefs.h <<EOF
14140 #define $ac_tr_func 1
14141 EOF
14142  
14143 else
14144   echo "$ac_t""no" 1>&6
14145 fi
14146 done
14147     
14148     fi
14149   fi
14150
14151   
14152   
14153   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14154 echo "configure:14155: checking for log10l declaration" >&5
14155   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14156     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14157   echo $ac_n "(cached) $ac_c" 1>&6
14158 else
14159   
14160       
14161       ac_ext=C
14162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14163 ac_cpp='$CXXCPP $CPPFLAGS'
14164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14166 cross_compiling=$ac_cv_prog_cxx_cross
14167
14168       cat > conftest.$ac_ext <<EOF
14169 #line 14170 "configure"
14170 #include "confdefs.h"
14171 #include <math.h>
14172                       #ifdef HAVE_IEEEFP_H
14173                       #include <ieeefp.h>
14174                       #endif
14175                      
14176 int main() {
14177  log10l(0);
14178 ; return 0; }
14179 EOF
14180 if { (eval echo configure:14181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14181   rm -rf conftest*
14182   glibcpp_cv_func_log10l_use=yes
14183 else
14184   echo "configure: failed program was:" >&5
14185   cat conftest.$ac_ext >&5
14186   rm -rf conftest*
14187   glibcpp_cv_func_log10l_use=no
14188 fi
14189 rm -f conftest*
14190       ac_ext=c
14191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14195 cross_compiling=$ac_cv_prog_cc_cross
14196
14197     
14198 fi
14199
14200   fi
14201   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14202
14203   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14204     for ac_func in log10l
14205 do
14206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14207 echo "configure:14208: checking for $ac_func" >&5
14208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14209   echo $ac_n "(cached) $ac_c" 1>&6
14210 else
14211   cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 /* System header to define __stub macros and hopefully few prototypes,
14215     which can conflict with char $ac_func(); below.  */
14216 #include <assert.h>
14217 /* Override any gcc2 internal prototype to avoid an error.  */
14218 /* We use char because int might match the return type of a gcc2
14219     builtin and then its argument prototype would still apply.  */
14220 char $ac_func();
14221
14222 int main() {
14223
14224 /* The GNU C library defines this for functions which it implements
14225     to always fail with ENOSYS.  Some functions are actually named
14226     something starting with __ and the normal name is an alias.  */
14227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14228 choke me
14229 #else
14230 $ac_func();
14231 #endif
14232
14233 ; return 0; }
14234 EOF
14235 if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14236   rm -rf conftest*
14237   eval "ac_cv_func_$ac_func=yes"
14238 else
14239   echo "configure: failed program was:" >&5
14240   cat conftest.$ac_ext >&5
14241   rm -rf conftest*
14242   eval "ac_cv_func_$ac_func=no"
14243 fi
14244 rm -f conftest*
14245 fi
14246
14247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14248   echo "$ac_t""yes" 1>&6
14249     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14250   cat >> confdefs.h <<EOF
14251 #define $ac_tr_func 1
14252 EOF
14253  
14254 else
14255   echo "$ac_t""no" 1>&6
14256 fi
14257 done
14258     
14259   else
14260     
14261   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14262 echo "configure:14263: checking for _log10l declaration" >&5
14263   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14264     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14265   echo $ac_n "(cached) $ac_c" 1>&6
14266 else
14267   
14268       
14269       ac_ext=C
14270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14271 ac_cpp='$CXXCPP $CPPFLAGS'
14272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14274 cross_compiling=$ac_cv_prog_cxx_cross
14275
14276       cat > conftest.$ac_ext <<EOF
14277 #line 14278 "configure"
14278 #include "confdefs.h"
14279 #include <math.h>
14280                       #ifdef HAVE_IEEEFP_H
14281                       #include <ieeefp.h>
14282                       #endif
14283                      
14284 int main() {
14285  _log10l(0);
14286 ; return 0; }
14287 EOF
14288 if { (eval echo configure:14289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14289   rm -rf conftest*
14290   glibcpp_cv_func__log10l_use=yes
14291 else
14292   echo "configure: failed program was:" >&5
14293   cat conftest.$ac_ext >&5
14294   rm -rf conftest*
14295   glibcpp_cv_func__log10l_use=no
14296 fi
14297 rm -f conftest*
14298       ac_ext=c
14299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14303 cross_compiling=$ac_cv_prog_cc_cross
14304
14305     
14306 fi
14307
14308   fi
14309   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14310
14311     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14312       for ac_func in _log10l
14313 do
14314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14315 echo "configure:14316: checking for $ac_func" >&5
14316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14317   echo $ac_n "(cached) $ac_c" 1>&6
14318 else
14319   cat > conftest.$ac_ext <<EOF
14320 #line 14321 "configure"
14321 #include "confdefs.h"
14322 /* System header to define __stub macros and hopefully few prototypes,
14323     which can conflict with char $ac_func(); below.  */
14324 #include <assert.h>
14325 /* Override any gcc2 internal prototype to avoid an error.  */
14326 /* We use char because int might match the return type of a gcc2
14327     builtin and then its argument prototype would still apply.  */
14328 char $ac_func();
14329
14330 int main() {
14331
14332 /* The GNU C library defines this for functions which it implements
14333     to always fail with ENOSYS.  Some functions are actually named
14334     something starting with __ and the normal name is an alias.  */
14335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14336 choke me
14337 #else
14338 $ac_func();
14339 #endif
14340
14341 ; return 0; }
14342 EOF
14343 if { (eval echo configure:14344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14344   rm -rf conftest*
14345   eval "ac_cv_func_$ac_func=yes"
14346 else
14347   echo "configure: failed program was:" >&5
14348   cat conftest.$ac_ext >&5
14349   rm -rf conftest*
14350   eval "ac_cv_func_$ac_func=no"
14351 fi
14352 rm -f conftest*
14353 fi
14354
14355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14356   echo "$ac_t""yes" 1>&6
14357     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14358   cat >> confdefs.h <<EOF
14359 #define $ac_tr_func 1
14360 EOF
14361  
14362 else
14363   echo "$ac_t""no" 1>&6
14364 fi
14365 done
14366     
14367     fi
14368   fi
14369
14370   
14371   
14372   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14373 echo "configure:14374: checking for modfl declaration" >&5
14374   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14375     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14376   echo $ac_n "(cached) $ac_c" 1>&6
14377 else
14378   
14379       
14380       ac_ext=C
14381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14382 ac_cpp='$CXXCPP $CPPFLAGS'
14383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14385 cross_compiling=$ac_cv_prog_cxx_cross
14386
14387       cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14390 #include <math.h>
14391 int main() {
14392  modfl(0, 0);
14393 ; return 0; }
14394 EOF
14395 if { (eval echo configure:14396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14396   rm -rf conftest*
14397   glibcpp_cv_func_modfl_use=yes
14398 else
14399   echo "configure: failed program was:" >&5
14400   cat conftest.$ac_ext >&5
14401   rm -rf conftest*
14402   glibcpp_cv_func_modfl_use=no
14403 fi
14404 rm -f conftest*
14405       ac_ext=c
14406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14407 ac_cpp='$CPP $CPPFLAGS'
14408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14410 cross_compiling=$ac_cv_prog_cc_cross
14411
14412     
14413 fi
14414
14415   fi
14416   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14417
14418   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14419     for ac_func in modfl
14420 do
14421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14422 echo "configure:14423: checking for $ac_func" >&5
14423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14424   echo $ac_n "(cached) $ac_c" 1>&6
14425 else
14426   cat > conftest.$ac_ext <<EOF
14427 #line 14428 "configure"
14428 #include "confdefs.h"
14429 /* System header to define __stub macros and hopefully few prototypes,
14430     which can conflict with char $ac_func(); below.  */
14431 #include <assert.h>
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 /* We use char because int might match the return type of a gcc2
14434     builtin and then its argument prototype would still apply.  */
14435 char $ac_func();
14436
14437 int main() {
14438
14439 /* The GNU C library defines this for functions which it implements
14440     to always fail with ENOSYS.  Some functions are actually named
14441     something starting with __ and the normal name is an alias.  */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14443 choke me
14444 #else
14445 $ac_func();
14446 #endif
14447
14448 ; return 0; }
14449 EOF
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14451   rm -rf conftest*
14452   eval "ac_cv_func_$ac_func=yes"
14453 else
14454   echo "configure: failed program was:" >&5
14455   cat conftest.$ac_ext >&5
14456   rm -rf conftest*
14457   eval "ac_cv_func_$ac_func=no"
14458 fi
14459 rm -f conftest*
14460 fi
14461
14462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14463   echo "$ac_t""yes" 1>&6
14464     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14465   cat >> confdefs.h <<EOF
14466 #define $ac_tr_func 1
14467 EOF
14468  
14469 else
14470   echo "$ac_t""no" 1>&6
14471 fi
14472 done
14473     
14474   else
14475     
14476   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14477 echo "configure:14478: checking for _modfl declaration" >&5
14478   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14479     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14480   echo $ac_n "(cached) $ac_c" 1>&6
14481 else
14482   
14483       
14484       ac_ext=C
14485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14486 ac_cpp='$CXXCPP $CPPFLAGS'
14487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14489 cross_compiling=$ac_cv_prog_cxx_cross
14490
14491       cat > conftest.$ac_ext <<EOF
14492 #line 14493 "configure"
14493 #include "confdefs.h"
14494 #include <math.h>
14495 int main() {
14496  _modfl(0, 0);
14497 ; return 0; }
14498 EOF
14499 if { (eval echo configure:14500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14500   rm -rf conftest*
14501   glibcpp_cv_func__modfl_use=yes
14502 else
14503   echo "configure: failed program was:" >&5
14504   cat conftest.$ac_ext >&5
14505   rm -rf conftest*
14506   glibcpp_cv_func__modfl_use=no
14507 fi
14508 rm -f conftest*
14509       ac_ext=c
14510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14514 cross_compiling=$ac_cv_prog_cc_cross
14515
14516     
14517 fi
14518
14519   fi
14520   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14521
14522     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14523       for ac_func in _modfl
14524 do
14525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14526 echo "configure:14527: checking for $ac_func" >&5
14527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14528   echo $ac_n "(cached) $ac_c" 1>&6
14529 else
14530   cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure"
14532 #include "confdefs.h"
14533 /* System header to define __stub macros and hopefully few prototypes,
14534     which can conflict with char $ac_func(); below.  */
14535 #include <assert.h>
14536 /* Override any gcc2 internal prototype to avoid an error.  */
14537 /* We use char because int might match the return type of a gcc2
14538     builtin and then its argument prototype would still apply.  */
14539 char $ac_func();
14540
14541 int main() {
14542
14543 /* The GNU C library defines this for functions which it implements
14544     to always fail with ENOSYS.  Some functions are actually named
14545     something starting with __ and the normal name is an alias.  */
14546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14547 choke me
14548 #else
14549 $ac_func();
14550 #endif
14551
14552 ; return 0; }
14553 EOF
14554 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14555   rm -rf conftest*
14556   eval "ac_cv_func_$ac_func=yes"
14557 else
14558   echo "configure: failed program was:" >&5
14559   cat conftest.$ac_ext >&5
14560   rm -rf conftest*
14561   eval "ac_cv_func_$ac_func=no"
14562 fi
14563 rm -f conftest*
14564 fi
14565
14566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14567   echo "$ac_t""yes" 1>&6
14568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14569   cat >> confdefs.h <<EOF
14570 #define $ac_tr_func 1
14571 EOF
14572  
14573 else
14574   echo "$ac_t""no" 1>&6
14575 fi
14576 done
14577     
14578     fi
14579   fi
14580
14581   
14582   
14583   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14584 echo "configure:14585: checking for powl declaration" >&5
14585   if test x${glibcpp_cv_func_powl_use+set} != xset; then
14586     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14587   echo $ac_n "(cached) $ac_c" 1>&6
14588 else
14589   
14590       
14591       ac_ext=C
14592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14593 ac_cpp='$CXXCPP $CPPFLAGS'
14594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14596 cross_compiling=$ac_cv_prog_cxx_cross
14597
14598       cat > conftest.$ac_ext <<EOF
14599 #line 14600 "configure"
14600 #include "confdefs.h"
14601 #include <math.h>
14602 int main() {
14603  powl(0, 0);
14604 ; return 0; }
14605 EOF
14606 if { (eval echo configure:14607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14607   rm -rf conftest*
14608   glibcpp_cv_func_powl_use=yes
14609 else
14610   echo "configure: failed program was:" >&5
14611   cat conftest.$ac_ext >&5
14612   rm -rf conftest*
14613   glibcpp_cv_func_powl_use=no
14614 fi
14615 rm -f conftest*
14616       ac_ext=c
14617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621 cross_compiling=$ac_cv_prog_cc_cross
14622
14623     
14624 fi
14625
14626   fi
14627   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14628
14629   if test x$glibcpp_cv_func_powl_use = x"yes"; then
14630     for ac_func in powl
14631 do
14632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14633 echo "configure:14634: checking for $ac_func" >&5
14634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14635   echo $ac_n "(cached) $ac_c" 1>&6
14636 else
14637   cat > conftest.$ac_ext <<EOF
14638 #line 14639 "configure"
14639 #include "confdefs.h"
14640 /* System header to define __stub macros and hopefully few prototypes,
14641     which can conflict with char $ac_func(); below.  */
14642 #include <assert.h>
14643 /* Override any gcc2 internal prototype to avoid an error.  */
14644 /* We use char because int might match the return type of a gcc2
14645     builtin and then its argument prototype would still apply.  */
14646 char $ac_func();
14647
14648 int main() {
14649
14650 /* The GNU C library defines this for functions which it implements
14651     to always fail with ENOSYS.  Some functions are actually named
14652     something starting with __ and the normal name is an alias.  */
14653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14654 choke me
14655 #else
14656 $ac_func();
14657 #endif
14658
14659 ; return 0; }
14660 EOF
14661 if { (eval echo configure:14662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14662   rm -rf conftest*
14663   eval "ac_cv_func_$ac_func=yes"
14664 else
14665   echo "configure: failed program was:" >&5
14666   cat conftest.$ac_ext >&5
14667   rm -rf conftest*
14668   eval "ac_cv_func_$ac_func=no"
14669 fi
14670 rm -f conftest*
14671 fi
14672
14673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14674   echo "$ac_t""yes" 1>&6
14675     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14676   cat >> confdefs.h <<EOF
14677 #define $ac_tr_func 1
14678 EOF
14679  
14680 else
14681   echo "$ac_t""no" 1>&6
14682 fi
14683 done
14684     
14685   else
14686     
14687   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14688 echo "configure:14689: checking for _powl declaration" >&5
14689   if test x${glibcpp_cv_func__powl_use+set} != xset; then
14690     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14691   echo $ac_n "(cached) $ac_c" 1>&6
14692 else
14693   
14694       
14695       ac_ext=C
14696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14697 ac_cpp='$CXXCPP $CPPFLAGS'
14698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14700 cross_compiling=$ac_cv_prog_cxx_cross
14701
14702       cat > conftest.$ac_ext <<EOF
14703 #line 14704 "configure"
14704 #include "confdefs.h"
14705 #include <math.h>
14706 int main() {
14707  _powl(0, 0);
14708 ; return 0; }
14709 EOF
14710 if { (eval echo configure:14711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14711   rm -rf conftest*
14712   glibcpp_cv_func__powl_use=yes
14713 else
14714   echo "configure: failed program was:" >&5
14715   cat conftest.$ac_ext >&5
14716   rm -rf conftest*
14717   glibcpp_cv_func__powl_use=no
14718 fi
14719 rm -f conftest*
14720       ac_ext=c
14721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14722 ac_cpp='$CPP $CPPFLAGS'
14723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14725 cross_compiling=$ac_cv_prog_cc_cross
14726
14727     
14728 fi
14729
14730   fi
14731   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14732
14733     if test x$glibcpp_cv_func__powl_use = x"yes"; then
14734       for ac_func in _powl
14735 do
14736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14737 echo "configure:14738: checking for $ac_func" >&5
14738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14739   echo $ac_n "(cached) $ac_c" 1>&6
14740 else
14741   cat > conftest.$ac_ext <<EOF
14742 #line 14743 "configure"
14743 #include "confdefs.h"
14744 /* System header to define __stub macros and hopefully few prototypes,
14745     which can conflict with char $ac_func(); below.  */
14746 #include <assert.h>
14747 /* Override any gcc2 internal prototype to avoid an error.  */
14748 /* We use char because int might match the return type of a gcc2
14749     builtin and then its argument prototype would still apply.  */
14750 char $ac_func();
14751
14752 int main() {
14753
14754 /* The GNU C library defines this for functions which it implements
14755     to always fail with ENOSYS.  Some functions are actually named
14756     something starting with __ and the normal name is an alias.  */
14757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14758 choke me
14759 #else
14760 $ac_func();
14761 #endif
14762
14763 ; return 0; }
14764 EOF
14765 if { (eval echo configure:14766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14766   rm -rf conftest*
14767   eval "ac_cv_func_$ac_func=yes"
14768 else
14769   echo "configure: failed program was:" >&5
14770   cat conftest.$ac_ext >&5
14771   rm -rf conftest*
14772   eval "ac_cv_func_$ac_func=no"
14773 fi
14774 rm -f conftest*
14775 fi
14776
14777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14778   echo "$ac_t""yes" 1>&6
14779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14780   cat >> confdefs.h <<EOF
14781 #define $ac_tr_func 1
14782 EOF
14783  
14784 else
14785   echo "$ac_t""no" 1>&6
14786 fi
14787 done
14788     
14789     fi
14790   fi
14791
14792   
14793   
14794   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14795 echo "configure:14796: checking for sqrtl declaration" >&5
14796   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14797     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14798   echo $ac_n "(cached) $ac_c" 1>&6
14799 else
14800   
14801       
14802       ac_ext=C
14803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14804 ac_cpp='$CXXCPP $CPPFLAGS'
14805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14807 cross_compiling=$ac_cv_prog_cxx_cross
14808
14809       cat > conftest.$ac_ext <<EOF
14810 #line 14811 "configure"
14811 #include "confdefs.h"
14812 #include <math.h>
14813                       #ifdef HAVE_IEEEFP_H
14814                       #include <ieeefp.h>
14815                       #endif
14816                      
14817 int main() {
14818  sqrtl(0);
14819 ; return 0; }
14820 EOF
14821 if { (eval echo configure:14822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14822   rm -rf conftest*
14823   glibcpp_cv_func_sqrtl_use=yes
14824 else
14825   echo "configure: failed program was:" >&5
14826   cat conftest.$ac_ext >&5
14827   rm -rf conftest*
14828   glibcpp_cv_func_sqrtl_use=no
14829 fi
14830 rm -f conftest*
14831       ac_ext=c
14832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14836 cross_compiling=$ac_cv_prog_cc_cross
14837
14838     
14839 fi
14840
14841   fi
14842   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14843
14844   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14845     for ac_func in sqrtl
14846 do
14847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14848 echo "configure:14849: checking for $ac_func" >&5
14849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14850   echo $ac_n "(cached) $ac_c" 1>&6
14851 else
14852   cat > conftest.$ac_ext <<EOF
14853 #line 14854 "configure"
14854 #include "confdefs.h"
14855 /* System header to define __stub macros and hopefully few prototypes,
14856     which can conflict with char $ac_func(); below.  */
14857 #include <assert.h>
14858 /* Override any gcc2 internal prototype to avoid an error.  */
14859 /* We use char because int might match the return type of a gcc2
14860     builtin and then its argument prototype would still apply.  */
14861 char $ac_func();
14862
14863 int main() {
14864
14865 /* The GNU C library defines this for functions which it implements
14866     to always fail with ENOSYS.  Some functions are actually named
14867     something starting with __ and the normal name is an alias.  */
14868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14869 choke me
14870 #else
14871 $ac_func();
14872 #endif
14873
14874 ; return 0; }
14875 EOF
14876 if { (eval echo configure:14877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14877   rm -rf conftest*
14878   eval "ac_cv_func_$ac_func=yes"
14879 else
14880   echo "configure: failed program was:" >&5
14881   cat conftest.$ac_ext >&5
14882   rm -rf conftest*
14883   eval "ac_cv_func_$ac_func=no"
14884 fi
14885 rm -f conftest*
14886 fi
14887
14888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14889   echo "$ac_t""yes" 1>&6
14890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14891   cat >> confdefs.h <<EOF
14892 #define $ac_tr_func 1
14893 EOF
14894  
14895 else
14896   echo "$ac_t""no" 1>&6
14897 fi
14898 done
14899     
14900   else
14901     
14902   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14903 echo "configure:14904: checking for _sqrtl declaration" >&5
14904   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14905     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14906   echo $ac_n "(cached) $ac_c" 1>&6
14907 else
14908   
14909       
14910       ac_ext=C
14911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14912 ac_cpp='$CXXCPP $CPPFLAGS'
14913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14915 cross_compiling=$ac_cv_prog_cxx_cross
14916
14917       cat > conftest.$ac_ext <<EOF
14918 #line 14919 "configure"
14919 #include "confdefs.h"
14920 #include <math.h>
14921                       #ifdef HAVE_IEEEFP_H
14922                       #include <ieeefp.h>
14923                       #endif
14924                      
14925 int main() {
14926  _sqrtl(0);
14927 ; return 0; }
14928 EOF
14929 if { (eval echo configure:14930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14930   rm -rf conftest*
14931   glibcpp_cv_func__sqrtl_use=yes
14932 else
14933   echo "configure: failed program was:" >&5
14934   cat conftest.$ac_ext >&5
14935   rm -rf conftest*
14936   glibcpp_cv_func__sqrtl_use=no
14937 fi
14938 rm -f conftest*
14939       ac_ext=c
14940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14941 ac_cpp='$CPP $CPPFLAGS'
14942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14944 cross_compiling=$ac_cv_prog_cc_cross
14945
14946     
14947 fi
14948
14949   fi
14950   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14951
14952     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14953       for ac_func in _sqrtl
14954 do
14955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14956 echo "configure:14957: checking for $ac_func" >&5
14957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14958   echo $ac_n "(cached) $ac_c" 1>&6
14959 else
14960   cat > conftest.$ac_ext <<EOF
14961 #line 14962 "configure"
14962 #include "confdefs.h"
14963 /* System header to define __stub macros and hopefully few prototypes,
14964     which can conflict with char $ac_func(); below.  */
14965 #include <assert.h>
14966 /* Override any gcc2 internal prototype to avoid an error.  */
14967 /* We use char because int might match the return type of a gcc2
14968     builtin and then its argument prototype would still apply.  */
14969 char $ac_func();
14970
14971 int main() {
14972
14973 /* The GNU C library defines this for functions which it implements
14974     to always fail with ENOSYS.  Some functions are actually named
14975     something starting with __ and the normal name is an alias.  */
14976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14977 choke me
14978 #else
14979 $ac_func();
14980 #endif
14981
14982 ; return 0; }
14983 EOF
14984 if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14985   rm -rf conftest*
14986   eval "ac_cv_func_$ac_func=yes"
14987 else
14988   echo "configure: failed program was:" >&5
14989   cat conftest.$ac_ext >&5
14990   rm -rf conftest*
14991   eval "ac_cv_func_$ac_func=no"
14992 fi
14993 rm -f conftest*
14994 fi
14995
14996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14997   echo "$ac_t""yes" 1>&6
14998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14999   cat >> confdefs.h <<EOF
15000 #define $ac_tr_func 1
15001 EOF
15002  
15003 else
15004   echo "$ac_t""no" 1>&6
15005 fi
15006 done
15007     
15008     fi
15009   fi
15010
15011   
15012   
15013   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15014 echo "configure:15015: checking for sincosl declaration" >&5
15015   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15016     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15017   echo $ac_n "(cached) $ac_c" 1>&6
15018 else
15019   
15020       
15021       ac_ext=C
15022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15023 ac_cpp='$CXXCPP $CPPFLAGS'
15024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15026 cross_compiling=$ac_cv_prog_cxx_cross
15027
15028       cat > conftest.$ac_ext <<EOF
15029 #line 15030 "configure"
15030 #include "confdefs.h"
15031 #include <math.h>
15032 int main() {
15033  sincosl(0, 0, 0);
15034 ; return 0; }
15035 EOF
15036 if { (eval echo configure:15037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15037   rm -rf conftest*
15038   glibcpp_cv_func_sincosl_use=yes
15039 else
15040   echo "configure: failed program was:" >&5
15041   cat conftest.$ac_ext >&5
15042   rm -rf conftest*
15043   glibcpp_cv_func_sincosl_use=no
15044 fi
15045 rm -f conftest*
15046       ac_ext=c
15047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15048 ac_cpp='$CPP $CPPFLAGS'
15049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15051 cross_compiling=$ac_cv_prog_cc_cross
15052
15053     
15054 fi
15055
15056   fi
15057   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15058
15059   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15060     for ac_func in sincosl
15061 do
15062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15063 echo "configure:15064: checking for $ac_func" >&5
15064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15065   echo $ac_n "(cached) $ac_c" 1>&6
15066 else
15067   cat > conftest.$ac_ext <<EOF
15068 #line 15069 "configure"
15069 #include "confdefs.h"
15070 /* System header to define __stub macros and hopefully few prototypes,
15071     which can conflict with char $ac_func(); below.  */
15072 #include <assert.h>
15073 /* Override any gcc2 internal prototype to avoid an error.  */
15074 /* We use char because int might match the return type of a gcc2
15075     builtin and then its argument prototype would still apply.  */
15076 char $ac_func();
15077
15078 int main() {
15079
15080 /* The GNU C library defines this for functions which it implements
15081     to always fail with ENOSYS.  Some functions are actually named
15082     something starting with __ and the normal name is an alias.  */
15083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15084 choke me
15085 #else
15086 $ac_func();
15087 #endif
15088
15089 ; return 0; }
15090 EOF
15091 if { (eval echo configure:15092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15092   rm -rf conftest*
15093   eval "ac_cv_func_$ac_func=yes"
15094 else
15095   echo "configure: failed program was:" >&5
15096   cat conftest.$ac_ext >&5
15097   rm -rf conftest*
15098   eval "ac_cv_func_$ac_func=no"
15099 fi
15100 rm -f conftest*
15101 fi
15102
15103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15104   echo "$ac_t""yes" 1>&6
15105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15106   cat >> confdefs.h <<EOF
15107 #define $ac_tr_func 1
15108 EOF
15109  
15110 else
15111   echo "$ac_t""no" 1>&6
15112 fi
15113 done
15114     
15115   else
15116     
15117   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15118 echo "configure:15119: checking for _sincosl declaration" >&5
15119   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15120     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15121   echo $ac_n "(cached) $ac_c" 1>&6
15122 else
15123   
15124       
15125       ac_ext=C
15126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15127 ac_cpp='$CXXCPP $CPPFLAGS'
15128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15130 cross_compiling=$ac_cv_prog_cxx_cross
15131
15132       cat > conftest.$ac_ext <<EOF
15133 #line 15134 "configure"
15134 #include "confdefs.h"
15135 #include <math.h>
15136 int main() {
15137  _sincosl(0, 0, 0);
15138 ; return 0; }
15139 EOF
15140 if { (eval echo configure:15141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15141   rm -rf conftest*
15142   glibcpp_cv_func__sincosl_use=yes
15143 else
15144   echo "configure: failed program was:" >&5
15145   cat conftest.$ac_ext >&5
15146   rm -rf conftest*
15147   glibcpp_cv_func__sincosl_use=no
15148 fi
15149 rm -f conftest*
15150       ac_ext=c
15151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15155 cross_compiling=$ac_cv_prog_cc_cross
15156
15157     
15158 fi
15159
15160   fi
15161   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15162
15163     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15164       for ac_func in _sincosl
15165 do
15166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15167 echo "configure:15168: checking for $ac_func" >&5
15168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15169   echo $ac_n "(cached) $ac_c" 1>&6
15170 else
15171   cat > conftest.$ac_ext <<EOF
15172 #line 15173 "configure"
15173 #include "confdefs.h"
15174 /* System header to define __stub macros and hopefully few prototypes,
15175     which can conflict with char $ac_func(); below.  */
15176 #include <assert.h>
15177 /* Override any gcc2 internal prototype to avoid an error.  */
15178 /* We use char because int might match the return type of a gcc2
15179     builtin and then its argument prototype would still apply.  */
15180 char $ac_func();
15181
15182 int main() {
15183
15184 /* The GNU C library defines this for functions which it implements
15185     to always fail with ENOSYS.  Some functions are actually named
15186     something starting with __ and the normal name is an alias.  */
15187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15188 choke me
15189 #else
15190 $ac_func();
15191 #endif
15192
15193 ; return 0; }
15194 EOF
15195 if { (eval echo configure:15196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15196   rm -rf conftest*
15197   eval "ac_cv_func_$ac_func=yes"
15198 else
15199   echo "configure: failed program was:" >&5
15200   cat conftest.$ac_ext >&5
15201   rm -rf conftest*
15202   eval "ac_cv_func_$ac_func=no"
15203 fi
15204 rm -f conftest*
15205 fi
15206
15207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15208   echo "$ac_t""yes" 1>&6
15209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15210   cat >> confdefs.h <<EOF
15211 #define $ac_tr_func 1
15212 EOF
15213  
15214 else
15215   echo "$ac_t""no" 1>&6
15216 fi
15217 done
15218     
15219     fi
15220   fi
15221
15222   
15223   
15224   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15225 echo "configure:15226: checking for finitel declaration" >&5
15226   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15227     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15228   echo $ac_n "(cached) $ac_c" 1>&6
15229 else
15230   
15231       
15232       ac_ext=C
15233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15234 ac_cpp='$CXXCPP $CPPFLAGS'
15235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15237 cross_compiling=$ac_cv_prog_cxx_cross
15238
15239       cat > conftest.$ac_ext <<EOF
15240 #line 15241 "configure"
15241 #include "confdefs.h"
15242 #include <math.h>
15243                       #ifdef HAVE_IEEEFP_H
15244                       #include <ieeefp.h>
15245                       #endif
15246                      
15247 int main() {
15248  finitel(0);
15249 ; return 0; }
15250 EOF
15251 if { (eval echo configure:15252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15252   rm -rf conftest*
15253   glibcpp_cv_func_finitel_use=yes
15254 else
15255   echo "configure: failed program was:" >&5
15256   cat conftest.$ac_ext >&5
15257   rm -rf conftest*
15258   glibcpp_cv_func_finitel_use=no
15259 fi
15260 rm -f conftest*
15261       ac_ext=c
15262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15263 ac_cpp='$CPP $CPPFLAGS'
15264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15266 cross_compiling=$ac_cv_prog_cc_cross
15267
15268     
15269 fi
15270
15271   fi
15272   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15273
15274   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15275     for ac_func in finitel
15276 do
15277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15278 echo "configure:15279: checking for $ac_func" >&5
15279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15280   echo $ac_n "(cached) $ac_c" 1>&6
15281 else
15282   cat > conftest.$ac_ext <<EOF
15283 #line 15284 "configure"
15284 #include "confdefs.h"
15285 /* System header to define __stub macros and hopefully few prototypes,
15286     which can conflict with char $ac_func(); below.  */
15287 #include <assert.h>
15288 /* Override any gcc2 internal prototype to avoid an error.  */
15289 /* We use char because int might match the return type of a gcc2
15290     builtin and then its argument prototype would still apply.  */
15291 char $ac_func();
15292
15293 int main() {
15294
15295 /* The GNU C library defines this for functions which it implements
15296     to always fail with ENOSYS.  Some functions are actually named
15297     something starting with __ and the normal name is an alias.  */
15298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15299 choke me
15300 #else
15301 $ac_func();
15302 #endif
15303
15304 ; return 0; }
15305 EOF
15306 if { (eval echo configure:15307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15307   rm -rf conftest*
15308   eval "ac_cv_func_$ac_func=yes"
15309 else
15310   echo "configure: failed program was:" >&5
15311   cat conftest.$ac_ext >&5
15312   rm -rf conftest*
15313   eval "ac_cv_func_$ac_func=no"
15314 fi
15315 rm -f conftest*
15316 fi
15317
15318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15319   echo "$ac_t""yes" 1>&6
15320     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15321   cat >> confdefs.h <<EOF
15322 #define $ac_tr_func 1
15323 EOF
15324  
15325 else
15326   echo "$ac_t""no" 1>&6
15327 fi
15328 done
15329     
15330   else
15331     
15332   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15333 echo "configure:15334: checking for _finitel declaration" >&5
15334   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15335     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15336   echo $ac_n "(cached) $ac_c" 1>&6
15337 else
15338   
15339       
15340       ac_ext=C
15341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15342 ac_cpp='$CXXCPP $CPPFLAGS'
15343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15345 cross_compiling=$ac_cv_prog_cxx_cross
15346
15347       cat > conftest.$ac_ext <<EOF
15348 #line 15349 "configure"
15349 #include "confdefs.h"
15350 #include <math.h>
15351                       #ifdef HAVE_IEEEFP_H
15352                       #include <ieeefp.h>
15353                       #endif
15354                      
15355 int main() {
15356  _finitel(0);
15357 ; return 0; }
15358 EOF
15359 if { (eval echo configure:15360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15360   rm -rf conftest*
15361   glibcpp_cv_func__finitel_use=yes
15362 else
15363   echo "configure: failed program was:" >&5
15364   cat conftest.$ac_ext >&5
15365   rm -rf conftest*
15366   glibcpp_cv_func__finitel_use=no
15367 fi
15368 rm -f conftest*
15369       ac_ext=c
15370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15371 ac_cpp='$CPP $CPPFLAGS'
15372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15374 cross_compiling=$ac_cv_prog_cc_cross
15375
15376     
15377 fi
15378
15379   fi
15380   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15381
15382     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15383       for ac_func in _finitel
15384 do
15385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15386 echo "configure:15387: checking for $ac_func" >&5
15387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15388   echo $ac_n "(cached) $ac_c" 1>&6
15389 else
15390   cat > conftest.$ac_ext <<EOF
15391 #line 15392 "configure"
15392 #include "confdefs.h"
15393 /* System header to define __stub macros and hopefully few prototypes,
15394     which can conflict with char $ac_func(); below.  */
15395 #include <assert.h>
15396 /* Override any gcc2 internal prototype to avoid an error.  */
15397 /* We use char because int might match the return type of a gcc2
15398     builtin and then its argument prototype would still apply.  */
15399 char $ac_func();
15400
15401 int main() {
15402
15403 /* The GNU C library defines this for functions which it implements
15404     to always fail with ENOSYS.  Some functions are actually named
15405     something starting with __ and the normal name is an alias.  */
15406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15407 choke me
15408 #else
15409 $ac_func();
15410 #endif
15411
15412 ; return 0; }
15413 EOF
15414 if { (eval echo configure:15415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15415   rm -rf conftest*
15416   eval "ac_cv_func_$ac_func=yes"
15417 else
15418   echo "configure: failed program was:" >&5
15419   cat conftest.$ac_ext >&5
15420   rm -rf conftest*
15421   eval "ac_cv_func_$ac_func=no"
15422 fi
15423 rm -f conftest*
15424 fi
15425
15426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15427   echo "$ac_t""yes" 1>&6
15428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15429   cat >> confdefs.h <<EOF
15430 #define $ac_tr_func 1
15431 EOF
15432  
15433 else
15434   echo "$ac_t""no" 1>&6
15435 fi
15436 done
15437     
15438     fi
15439   fi
15440
15441
15442         
15443     
15444   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15445 echo "configure:15446: checking for _float trig functions" >&5
15446   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15447   echo $ac_n "(cached) $ac_c" 1>&6
15448 else
15449   
15450     
15451     ac_ext=C
15452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15453 ac_cpp='$CXXCPP $CPPFLAGS'
15454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15456 cross_compiling=$ac_cv_prog_cxx_cross
15457
15458     cat > conftest.$ac_ext <<EOF
15459 #line 15460 "configure"
15460 #include "confdefs.h"
15461 #include <math.h>
15462 int main() {
15463  `for x in _acosf _asinf _atanf \
15464                                           _cosf _sinf _tanf \
15465                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
15466 ; return 0; }
15467 EOF
15468 if { (eval echo configure:15469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15469   rm -rf conftest*
15470   glibcpp_cv_func__float_trig_use=yes
15471 else
15472   echo "configure: failed program was:" >&5
15473   cat conftest.$ac_ext >&5
15474   rm -rf conftest*
15475   glibcpp_cv_func__float_trig_use=no
15476 fi
15477 rm -f conftest*
15478     ac_ext=c
15479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15480 ac_cpp='$CPP $CPPFLAGS'
15481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15483 cross_compiling=$ac_cv_prog_cc_cross
15484
15485 fi
15486
15487   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15488   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15489     for ac_func in _acosf _asinf _atanf \
15490                                           _cosf _sinf _tanf \
15491                                           _coshf _sinhf _tanhf
15492 do
15493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15494 echo "configure:15495: checking for $ac_func" >&5
15495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15496   echo $ac_n "(cached) $ac_c" 1>&6
15497 else
15498   cat > conftest.$ac_ext <<EOF
15499 #line 15500 "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502     which can conflict with char $ac_func(); below.  */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error.  */
15505 /* We use char because int might match the return type of a gcc2
15506     builtin and then its argument prototype would still apply.  */
15507 char $ac_func();
15508
15509 int main() {
15510
15511 /* The GNU C library defines this for functions which it implements
15512     to always fail with ENOSYS.  Some functions are actually named
15513     something starting with __ and the normal name is an alias.  */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15515 choke me
15516 #else
15517 $ac_func();
15518 #endif
15519
15520 ; return 0; }
15521 EOF
15522 if { (eval echo configure:15523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15523   rm -rf conftest*
15524   eval "ac_cv_func_$ac_func=yes"
15525 else
15526   echo "configure: failed program was:" >&5
15527   cat conftest.$ac_ext >&5
15528   rm -rf conftest*
15529   eval "ac_cv_func_$ac_func=no"
15530 fi
15531 rm -f conftest*
15532 fi
15533
15534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15535   echo "$ac_t""yes" 1>&6
15536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15537   cat >> confdefs.h <<EOF
15538 #define $ac_tr_func 1
15539 EOF
15540  
15541 else
15542   echo "$ac_t""no" 1>&6
15543 fi
15544 done
15545
15546   fi
15547
15548   
15549   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15550 echo "configure:15551: checking for _float round functions" >&5
15551   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15552   echo $ac_n "(cached) $ac_c" 1>&6
15553 else
15554   
15555     
15556     ac_ext=C
15557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15558 ac_cpp='$CXXCPP $CPPFLAGS'
15559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15561 cross_compiling=$ac_cv_prog_cxx_cross
15562
15563     cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15566 #include <math.h>
15567 int main() {
15568  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
15569 ; return 0; }
15570 EOF
15571 if { (eval echo configure:15572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15572   rm -rf conftest*
15573   glibcpp_cv_func__float_round_use=yes
15574 else
15575   echo "configure: failed program was:" >&5
15576   cat conftest.$ac_ext >&5
15577   rm -rf conftest*
15578   glibcpp_cv_func__float_round_use=no
15579 fi
15580 rm -f conftest*
15581     ac_ext=c
15582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15583 ac_cpp='$CPP $CPPFLAGS'
15584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15586 cross_compiling=$ac_cv_prog_cc_cross
15587
15588 fi
15589
15590   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15591   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15592     for ac_func in _ceilf _floorf
15593 do
15594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15595 echo "configure:15596: checking for $ac_func" >&5
15596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15597   echo $ac_n "(cached) $ac_c" 1>&6
15598 else
15599   cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602 /* System header to define __stub macros and hopefully few prototypes,
15603     which can conflict with char $ac_func(); below.  */
15604 #include <assert.h>
15605 /* Override any gcc2 internal prototype to avoid an error.  */
15606 /* We use char because int might match the return type of a gcc2
15607     builtin and then its argument prototype would still apply.  */
15608 char $ac_func();
15609
15610 int main() {
15611
15612 /* The GNU C library defines this for functions which it implements
15613     to always fail with ENOSYS.  Some functions are actually named
15614     something starting with __ and the normal name is an alias.  */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 choke me
15617 #else
15618 $ac_func();
15619 #endif
15620
15621 ; return 0; }
15622 EOF
15623 if { (eval echo configure:15624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15624   rm -rf conftest*
15625   eval "ac_cv_func_$ac_func=yes"
15626 else
15627   echo "configure: failed program was:" >&5
15628   cat conftest.$ac_ext >&5
15629   rm -rf conftest*
15630   eval "ac_cv_func_$ac_func=no"
15631 fi
15632 rm -f conftest*
15633 fi
15634
15635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15636   echo "$ac_t""yes" 1>&6
15637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15638   cat >> confdefs.h <<EOF
15639 #define $ac_tr_func 1
15640 EOF
15641  
15642 else
15643   echo "$ac_t""no" 1>&6
15644 fi
15645 done
15646
15647   fi
15648
15649
15650     
15651   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15652 echo "configure:15653: checking for _long double trig functions" >&5
15653   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15654   echo $ac_n "(cached) $ac_c" 1>&6
15655 else
15656   
15657     
15658     ac_ext=C
15659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15660 ac_cpp='$CXXCPP $CPPFLAGS'
15661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15663 cross_compiling=$ac_cv_prog_cxx_cross
15664
15665     cat > conftest.$ac_ext <<EOF
15666 #line 15667 "configure"
15667 #include "confdefs.h"
15668 #include <math.h>
15669 int main() {
15670  `for x in _acosl _asinl _atanl \
15671                                           _cosl _sinl _tanl \
15672                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
15673 ; return 0; }
15674 EOF
15675 if { (eval echo configure:15676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15676   rm -rf conftest*
15677   glibcpp_cv_func__long_double_trig_use=yes
15678 else
15679   echo "configure: failed program was:" >&5
15680   cat conftest.$ac_ext >&5
15681   rm -rf conftest*
15682   glibcpp_cv_func__long_double_trig_use=no
15683 fi
15684 rm -f conftest*
15685     ac_ext=c
15686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15687 ac_cpp='$CPP $CPPFLAGS'
15688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15690 cross_compiling=$ac_cv_prog_cc_cross
15691
15692 fi
15693
15694   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15695   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15696     for ac_func in _acosl _asinl _atanl \
15697                                           _cosl _sinl _tanl \
15698                                           _coshl _sinhl _tanhl
15699 do
15700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15701 echo "configure:15702: checking for $ac_func" >&5
15702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15703   echo $ac_n "(cached) $ac_c" 1>&6
15704 else
15705   cat > conftest.$ac_ext <<EOF
15706 #line 15707 "configure"
15707 #include "confdefs.h"
15708 /* System header to define __stub macros and hopefully few prototypes,
15709     which can conflict with char $ac_func(); below.  */
15710 #include <assert.h>
15711 /* Override any gcc2 internal prototype to avoid an error.  */
15712 /* We use char because int might match the return type of a gcc2
15713     builtin and then its argument prototype would still apply.  */
15714 char $ac_func();
15715
15716 int main() {
15717
15718 /* The GNU C library defines this for functions which it implements
15719     to always fail with ENOSYS.  Some functions are actually named
15720     something starting with __ and the normal name is an alias.  */
15721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15722 choke me
15723 #else
15724 $ac_func();
15725 #endif
15726
15727 ; return 0; }
15728 EOF
15729 if { (eval echo configure:15730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15730   rm -rf conftest*
15731   eval "ac_cv_func_$ac_func=yes"
15732 else
15733   echo "configure: failed program was:" >&5
15734   cat conftest.$ac_ext >&5
15735   rm -rf conftest*
15736   eval "ac_cv_func_$ac_func=no"
15737 fi
15738 rm -f conftest*
15739 fi
15740
15741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15742   echo "$ac_t""yes" 1>&6
15743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15744   cat >> confdefs.h <<EOF
15745 #define $ac_tr_func 1
15746 EOF
15747  
15748 else
15749   echo "$ac_t""no" 1>&6
15750 fi
15751 done
15752
15753   fi
15754
15755   
15756   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15757 echo "configure:15758: checking for _long double round functions" >&5
15758   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15759   echo $ac_n "(cached) $ac_c" 1>&6
15760 else
15761   
15762     
15763     ac_ext=C
15764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15765 ac_cpp='$CXXCPP $CPPFLAGS'
15766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15768 cross_compiling=$ac_cv_prog_cxx_cross
15769
15770     cat > conftest.$ac_ext <<EOF
15771 #line 15772 "configure"
15772 #include "confdefs.h"
15773 #include <math.h>
15774 int main() {
15775  `for x in _ceill _floorl; do echo "$x (0);"; done` 
15776 ; return 0; }
15777 EOF
15778 if { (eval echo configure:15779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15779   rm -rf conftest*
15780   glibcpp_cv_func__long_double_round_use=yes
15781 else
15782   echo "configure: failed program was:" >&5
15783   cat conftest.$ac_ext >&5
15784   rm -rf conftest*
15785   glibcpp_cv_func__long_double_round_use=no
15786 fi
15787 rm -f conftest*
15788     ac_ext=c
15789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15790 ac_cpp='$CPP $CPPFLAGS'
15791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15793 cross_compiling=$ac_cv_prog_cc_cross
15794
15795 fi
15796
15797   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15798   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15799     for ac_func in _ceill _floorl
15800 do
15801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15802 echo "configure:15803: checking for $ac_func" >&5
15803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15804   echo $ac_n "(cached) $ac_c" 1>&6
15805 else
15806   cat > conftest.$ac_ext <<EOF
15807 #line 15808 "configure"
15808 #include "confdefs.h"
15809 /* System header to define __stub macros and hopefully few prototypes,
15810     which can conflict with char $ac_func(); below.  */
15811 #include <assert.h>
15812 /* Override any gcc2 internal prototype to avoid an error.  */
15813 /* We use char because int might match the return type of a gcc2
15814     builtin and then its argument prototype would still apply.  */
15815 char $ac_func();
15816
15817 int main() {
15818
15819 /* The GNU C library defines this for functions which it implements
15820     to always fail with ENOSYS.  Some functions are actually named
15821     something starting with __ and the normal name is an alias.  */
15822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15823 choke me
15824 #else
15825 $ac_func();
15826 #endif
15827
15828 ; return 0; }
15829 EOF
15830 if { (eval echo configure:15831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15831   rm -rf conftest*
15832   eval "ac_cv_func_$ac_func=yes"
15833 else
15834   echo "configure: failed program was:" >&5
15835   cat conftest.$ac_ext >&5
15836   rm -rf conftest*
15837   eval "ac_cv_func_$ac_func=no"
15838 fi
15839 rm -f conftest*
15840 fi
15841
15842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15843   echo "$ac_t""yes" 1>&6
15844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15845   cat >> confdefs.h <<EOF
15846 #define $ac_tr_func 1
15847 EOF
15848  
15849 else
15850   echo "$ac_t""no" 1>&6
15851 fi
15852 done
15853
15854   fi
15855
15856
15857   LIBS="$ac_save_LIBS"
15858   CXXFLAGS="$ac_save_CXXFLAGS"
15859
15860   
15861     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15862 echo "configure:15863: checking for main in -lm" >&5
15863 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15865   echo $ac_n "(cached) $ac_c" 1>&6
15866 else
15867   ac_save_LIBS="$LIBS"
15868 LIBS="-lm  $LIBS"
15869 cat > conftest.$ac_ext <<EOF
15870 #line 15871 "configure"
15871 #include "confdefs.h"
15872
15873 int main() {
15874 main()
15875 ; return 0; }
15876 EOF
15877 if { (eval echo configure:15878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15878   rm -rf conftest*
15879   eval "ac_cv_lib_$ac_lib_var=yes"
15880 else
15881   echo "configure: failed program was:" >&5
15882   cat conftest.$ac_ext >&5
15883   rm -rf conftest*
15884   eval "ac_cv_lib_$ac_lib_var=no"
15885 fi
15886 rm -f conftest*
15887 LIBS="$ac_save_LIBS"
15888
15889 fi
15890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15891   echo "$ac_t""yes" 1>&6
15892     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15893     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15894   cat >> confdefs.h <<EOF
15895 #define $ac_tr_lib 1
15896 EOF
15897
15898   LIBS="-lm $LIBS"
15899
15900 else
15901   echo "$ac_t""no" 1>&6
15902 fi
15903
15904   for ac_func in nan copysignf
15905 do
15906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15907 echo "configure:15908: checking for $ac_func" >&5
15908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15909   echo $ac_n "(cached) $ac_c" 1>&6
15910 else
15911   cat > conftest.$ac_ext <<EOF
15912 #line 15913 "configure"
15913 #include "confdefs.h"
15914 /* System header to define __stub macros and hopefully few prototypes,
15915     which can conflict with char $ac_func(); below.  */
15916 #include <assert.h>
15917 /* Override any gcc2 internal prototype to avoid an error.  */
15918 /* We use char because int might match the return type of a gcc2
15919     builtin and then its argument prototype would still apply.  */
15920 char $ac_func();
15921
15922 int main() {
15923
15924 /* The GNU C library defines this for functions which it implements
15925     to always fail with ENOSYS.  Some functions are actually named
15926     something starting with __ and the normal name is an alias.  */
15927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15928 choke me
15929 #else
15930 $ac_func();
15931 #endif
15932
15933 ; return 0; }
15934 EOF
15935 if { (eval echo configure:15936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15936   rm -rf conftest*
15937   eval "ac_cv_func_$ac_func=yes"
15938 else
15939   echo "configure: failed program was:" >&5
15940   cat conftest.$ac_ext >&5
15941   rm -rf conftest*
15942   eval "ac_cv_func_$ac_func=no"
15943 fi
15944 rm -f conftest*
15945 fi
15946
15947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15948   echo "$ac_t""yes" 1>&6
15949     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15950   cat >> confdefs.h <<EOF
15951 #define $ac_tr_func 1
15952 EOF
15953  
15954 else
15955   echo "$ac_t""no" 1>&6
15956 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15957 fi
15958 done
15959
15960
15961
15962           USE_COMPLEX_LONG_DOUBLE=no
15963   if test x$ac_cv_func_copysignl = x"yes"; then
15964     USE_COMPLEX_LONG_DOUBLE=yes
15965     for ac_func in signbitl
15966 do
15967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15968 echo "configure:15969: checking for $ac_func" >&5
15969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15970   echo $ac_n "(cached) $ac_c" 1>&6
15971 else
15972   cat > conftest.$ac_ext <<EOF
15973 #line 15974 "configure"
15974 #include "confdefs.h"
15975 /* System header to define __stub macros and hopefully few prototypes,
15976     which can conflict with char $ac_func(); below.  */
15977 #include <assert.h>
15978 /* Override any gcc2 internal prototype to avoid an error.  */
15979 /* We use char because int might match the return type of a gcc2
15980     builtin and then its argument prototype would still apply.  */
15981 char $ac_func();
15982
15983 int main() {
15984
15985 /* The GNU C library defines this for functions which it implements
15986     to always fail with ENOSYS.  Some functions are actually named
15987     something starting with __ and the normal name is an alias.  */
15988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15989 choke me
15990 #else
15991 $ac_func();
15992 #endif
15993
15994 ; return 0; }
15995 EOF
15996 if { (eval echo configure:15997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15997   rm -rf conftest*
15998   eval "ac_cv_func_$ac_func=yes"
15999 else
16000   echo "configure: failed program was:" >&5
16001   cat conftest.$ac_ext >&5
16002   rm -rf conftest*
16003   eval "ac_cv_func_$ac_func=no"
16004 fi
16005 rm -f conftest*
16006 fi
16007
16008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16009   echo "$ac_t""yes" 1>&6
16010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16011   cat >> confdefs.h <<EOF
16012 #define $ac_tr_func 1
16013 EOF
16014  
16015 else
16016   echo "$ac_t""no" 1>&6
16017 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16018 fi
16019 done
16020
16021
16022   fi
16023
16024   
16025
16026   
16027
16028       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16029 echo "configure:16030: checking for mbstate_t" >&5
16030   cat > conftest.$ac_ext <<EOF
16031 #line 16032 "configure"
16032 #include "confdefs.h"
16033 #include <wchar.h>
16034 int main() {
16035 mbstate_t teststate;
16036 ; return 0; }
16037 EOF
16038 if { (eval echo configure:16039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16039   rm -rf conftest*
16040   have_mbstate_t=yes
16041 else
16042   echo "configure: failed program was:" >&5
16043   cat conftest.$ac_ext >&5
16044   rm -rf conftest*
16045   have_mbstate_t=no
16046 fi
16047 rm -f conftest*
16048   echo "$ac_t""$have_mbstate_t" 1>&6
16049   if test x"$have_mbstate_t" = xyes; then
16050     cat >> confdefs.h <<\EOF
16051 #define HAVE_MBSTATE_T 1
16052 EOF
16053
16054   fi
16055
16056     for ac_hdr in wchar.h
16057 do
16058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16060 echo "configure:16061: checking for $ac_hdr" >&5
16061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16062   echo $ac_n "(cached) $ac_c" 1>&6
16063 else
16064   cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 #include <$ac_hdr>
16068 EOF
16069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16070 { (eval echo configure:16071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16072 if test -z "$ac_err"; then
16073   rm -rf conftest*
16074   eval "ac_cv_header_$ac_safe=yes"
16075 else
16076   echo "$ac_err" >&5
16077   echo "configure: failed program was:" >&5
16078   cat conftest.$ac_ext >&5
16079   rm -rf conftest*
16080   eval "ac_cv_header_$ac_safe=no"
16081 fi
16082 rm -f conftest*
16083 fi
16084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16085   echo "$ac_t""yes" 1>&6
16086     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16087   cat >> confdefs.h <<EOF
16088 #define $ac_tr_hdr 1
16089 EOF
16090  ac_has_wchar_h=yes
16091 else
16092   echo "$ac_t""no" 1>&6
16093 ac_has_wchar_h=no
16094 fi
16095 done
16096
16097   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16098 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16099 echo "configure:16100: checking for wctype.h" >&5
16100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16101   echo $ac_n "(cached) $ac_c" 1>&6
16102 else
16103   cat > conftest.$ac_ext <<EOF
16104 #line 16105 "configure"
16105 #include "confdefs.h"
16106 #include <wctype.h>
16107 EOF
16108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16109 { (eval echo configure:16110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16111 if test -z "$ac_err"; then
16112   rm -rf conftest*
16113   eval "ac_cv_header_$ac_safe=yes"
16114 else
16115   echo "$ac_err" >&5
16116   echo "configure: failed program was:" >&5
16117   cat conftest.$ac_ext >&5
16118   rm -rf conftest*
16119   eval "ac_cv_header_$ac_safe=no"
16120 fi
16121 rm -f conftest*
16122 fi
16123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16124   echo "$ac_t""yes" 1>&6
16125   ac_has_wctype_h=yes
16126 else
16127   echo "$ac_t""no" 1>&6
16128 ac_has_wctype_h=no
16129 fi
16130
16131   
16132     if test x"$ac_has_wchar_h" = xyes &&
16133      test x"$ac_has_wctype_h" = xyes &&
16134      test x"$enable_c_mbchar" != xno; then
16135       
16136             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16137 echo "configure:16138: checking for WCHAR_MIN and WCHAR_MAX" >&5
16138     cat > conftest.$ac_ext <<EOF
16139 #line 16140 "configure"
16140 #include "confdefs.h"
16141 #include <wchar.h>
16142 int main() {
16143 int i = WCHAR_MIN; int j = WCHAR_MAX;
16144 ; return 0; }
16145 EOF
16146 if { (eval echo configure:16147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16147   rm -rf conftest*
16148   has_wchar_minmax=yes
16149 else
16150   echo "configure: failed program was:" >&5
16151   cat conftest.$ac_ext >&5
16152   rm -rf conftest*
16153   has_wchar_minmax=no
16154 fi
16155 rm -f conftest*
16156     echo "$ac_t""$has_wchar_minmax" 1>&6
16157     
16158             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16159 echo "configure:16160: checking for WEOF" >&5
16160     cat > conftest.$ac_ext <<EOF
16161 #line 16162 "configure"
16162 #include "confdefs.h"
16163
16164       #include <wchar.h>
16165       #include <stddef.h>
16166 int main() {
16167 wint_t i = WEOF;
16168 ; return 0; }
16169 EOF
16170 if { (eval echo configure:16171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16171   rm -rf conftest*
16172   has_weof=yes
16173 else
16174   echo "configure: failed program was:" >&5
16175   cat conftest.$ac_ext >&5
16176   rm -rf conftest*
16177   has_weof=no
16178 fi
16179 rm -f conftest*
16180     echo "$ac_t""$has_weof" 1>&6
16181   
16182         ac_wfuncs=yes
16183     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16184 do
16185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16186 echo "configure:16187: checking for $ac_func" >&5
16187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16188   echo $ac_n "(cached) $ac_c" 1>&6
16189 else
16190   cat > conftest.$ac_ext <<EOF
16191 #line 16192 "configure"
16192 #include "confdefs.h"
16193 /* System header to define __stub macros and hopefully few prototypes,
16194     which can conflict with char $ac_func(); below.  */
16195 #include <assert.h>
16196 /* Override any gcc2 internal prototype to avoid an error.  */
16197 /* We use char because int might match the return type of a gcc2
16198     builtin and then its argument prototype would still apply.  */
16199 char $ac_func();
16200
16201 int main() {
16202
16203 /* The GNU C library defines this for functions which it implements
16204     to always fail with ENOSYS.  Some functions are actually named
16205     something starting with __ and the normal name is an alias.  */
16206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16207 choke me
16208 #else
16209 $ac_func();
16210 #endif
16211
16212 ; return 0; }
16213 EOF
16214 if { (eval echo configure:16215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16215   rm -rf conftest*
16216   eval "ac_cv_func_$ac_func=yes"
16217 else
16218   echo "configure: failed program was:" >&5
16219   cat conftest.$ac_ext >&5
16220   rm -rf conftest*
16221   eval "ac_cv_func_$ac_func=no"
16222 fi
16223 rm -f conftest*
16224 fi
16225
16226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16227   echo "$ac_t""yes" 1>&6
16228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16229   cat >> confdefs.h <<EOF
16230 #define $ac_tr_func 1
16231 EOF
16232  
16233 else
16234   echo "$ac_t""no" 1>&6
16235 \
16236     ac_wfuncs=no
16237 fi
16238 done
16239
16240   
16241         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16242     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16243     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16244     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16245     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16246     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16247 do
16248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16249 echo "configure:16250: checking for $ac_func" >&5
16250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16251   echo $ac_n "(cached) $ac_c" 1>&6
16252 else
16253   cat > conftest.$ac_ext <<EOF
16254 #line 16255 "configure"
16255 #include "confdefs.h"
16256 /* System header to define __stub macros and hopefully few prototypes,
16257     which can conflict with char $ac_func(); below.  */
16258 #include <assert.h>
16259 /* Override any gcc2 internal prototype to avoid an error.  */
16260 /* We use char because int might match the return type of a gcc2
16261     builtin and then its argument prototype would still apply.  */
16262 char $ac_func();
16263
16264 int main() {
16265
16266 /* The GNU C library defines this for functions which it implements
16267     to always fail with ENOSYS.  Some functions are actually named
16268     something starting with __ and the normal name is an alias.  */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 $ac_func();
16273 #endif
16274
16275 ; return 0; }
16276 EOF
16277 if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16278   rm -rf conftest*
16279   eval "ac_cv_func_$ac_func=yes"
16280 else
16281   echo "configure: failed program was:" >&5
16282   cat conftest.$ac_ext >&5
16283   rm -rf conftest*
16284   eval "ac_cv_func_$ac_func=no"
16285 fi
16286 rm -f conftest*
16287 fi
16288
16289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16290   echo "$ac_t""yes" 1>&6
16291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16292   cat >> confdefs.h <<EOF
16293 #define $ac_tr_func 1
16294 EOF
16295  
16296 else
16297   echo "$ac_t""no" 1>&6
16298 \
16299     ac_wfuncs=no
16300 fi
16301 done
16302
16303
16304     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16305 echo "configure:16306: checking for ISO C99 wchar_t support" >&5
16306     if test x"$has_weof" = xyes &&
16307        test x"$has_wchar_minmax" = xyes &&
16308        test x"$ac_wfuncs" = xyes; then
16309       ac_isoC99_wchar_t=yes
16310     else
16311       ac_isoC99_wchar_t=no
16312     fi
16313     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16314   
16315             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16316 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16317 echo "configure:16318: checking for iconv.h" >&5
16318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16319   echo $ac_n "(cached) $ac_c" 1>&6
16320 else
16321   cat > conftest.$ac_ext <<EOF
16322 #line 16323 "configure"
16323 #include "confdefs.h"
16324 #include <iconv.h>
16325 EOF
16326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16327 { (eval echo configure:16328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16329 if test -z "$ac_err"; then
16330   rm -rf conftest*
16331   eval "ac_cv_header_$ac_safe=yes"
16332 else
16333   echo "$ac_err" >&5
16334   echo "configure: failed program was:" >&5
16335   cat conftest.$ac_ext >&5
16336   rm -rf conftest*
16337   eval "ac_cv_header_$ac_safe=no"
16338 fi
16339 rm -f conftest*
16340 fi
16341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16342   echo "$ac_t""yes" 1>&6
16343   ac_has_iconv_h=yes
16344 else
16345   echo "$ac_t""no" 1>&6
16346 ac_has_iconv_h=no
16347 fi
16348
16349     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16350 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16351 echo "configure:16352: checking for langinfo.h" >&5
16352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16353   echo $ac_n "(cached) $ac_c" 1>&6
16354 else
16355   cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16358 #include <langinfo.h>
16359 EOF
16360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16361 { (eval echo configure:16362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16363 if test -z "$ac_err"; then
16364   rm -rf conftest*
16365   eval "ac_cv_header_$ac_safe=yes"
16366 else
16367   echo "$ac_err" >&5
16368   echo "configure: failed program was:" >&5
16369   cat conftest.$ac_ext >&5
16370   rm -rf conftest*
16371   eval "ac_cv_header_$ac_safe=no"
16372 fi
16373 rm -f conftest*
16374 fi
16375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16376   echo "$ac_t""yes" 1>&6
16377   ac_has_langinfo_h=yes
16378 else
16379   echo "$ac_t""no" 1>&6
16380 ac_has_langinfo_h=no
16381 fi
16382
16383
16384         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16385 echo "configure:16386: checking for iconv in -liconv" >&5
16386 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16388   echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16390   ac_save_LIBS="$LIBS"
16391 LIBS="-liconv  $LIBS"
16392 cat > conftest.$ac_ext <<EOF
16393 #line 16394 "configure"
16394 #include "confdefs.h"
16395 /* Override any gcc2 internal prototype to avoid an error.  */
16396 /* We use char because int might match the return type of a gcc2
16397     builtin and then its argument prototype would still apply.  */
16398 char iconv();
16399
16400 int main() {
16401 iconv()
16402 ; return 0; }
16403 EOF
16404 if { (eval echo configure:16405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16405   rm -rf conftest*
16406   eval "ac_cv_lib_$ac_lib_var=yes"
16407 else
16408   echo "configure: failed program was:" >&5
16409   cat conftest.$ac_ext >&5
16410   rm -rf conftest*
16411   eval "ac_cv_lib_$ac_lib_var=no"
16412 fi
16413 rm -f conftest*
16414 LIBS="$ac_save_LIBS"
16415
16416 fi
16417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16418   echo "$ac_t""yes" 1>&6
16419   libiconv="-liconv"
16420 else
16421   echo "$ac_t""no" 1>&6
16422 fi
16423
16424     ac_save_LIBS="$LIBS"
16425     LIBS="$LIBS $libiconv"
16426
16427     for ac_func in iconv_open iconv_close iconv nl_langinfo
16428 do
16429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16430 echo "configure:16431: checking for $ac_func" >&5
16431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16432   echo $ac_n "(cached) $ac_c" 1>&6
16433 else
16434   cat > conftest.$ac_ext <<EOF
16435 #line 16436 "configure"
16436 #include "confdefs.h"
16437 /* System header to define __stub macros and hopefully few prototypes,
16438     which can conflict with char $ac_func(); below.  */
16439 #include <assert.h>
16440 /* Override any gcc2 internal prototype to avoid an error.  */
16441 /* We use char because int might match the return type of a gcc2
16442     builtin and then its argument prototype would still apply.  */
16443 char $ac_func();
16444
16445 int main() {
16446
16447 /* The GNU C library defines this for functions which it implements
16448     to always fail with ENOSYS.  Some functions are actually named
16449     something starting with __ and the normal name is an alias.  */
16450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16451 choke me
16452 #else
16453 $ac_func();
16454 #endif
16455
16456 ; return 0; }
16457 EOF
16458 if { (eval echo configure:16459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16459   rm -rf conftest*
16460   eval "ac_cv_func_$ac_func=yes"
16461 else
16462   echo "configure: failed program was:" >&5
16463   cat conftest.$ac_ext >&5
16464   rm -rf conftest*
16465   eval "ac_cv_func_$ac_func=no"
16466 fi
16467 rm -f conftest*
16468 fi
16469
16470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16471   echo "$ac_t""yes" 1>&6
16472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16473   cat >> confdefs.h <<EOF
16474 #define $ac_tr_func 1
16475 EOF
16476  \
16477     ac_XPG2funcs=yes
16478 else
16479   echo "$ac_t""no" 1>&6
16480 ac_XPG2funcs=no
16481 fi
16482 done
16483
16484   
16485     LIBS="$ac_save_LIBS"
16486
16487     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16488 echo "configure:16489: checking for XPG2 wchar_t support" >&5
16489     if test x"$ac_has_iconv_h" = xyes &&
16490        test x"$ac_has_langinfo_h" = xyes &&
16491        test x"$ac_XPG2funcs" = xyes; then
16492       ac_XPG2_wchar_t=yes
16493     else
16494       ac_XPG2_wchar_t=no
16495     fi
16496     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16497   
16498             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16499 echo "configure:16500: checking for enabled wchar_t specializations" >&5
16500     if test x"$ac_isoC99_wchar_t" = xyes &&
16501        test x"$ac_XPG2_wchar_t" = xyes; then
16502       cat >> confdefs.h <<\EOF
16503 #define _GLIBCPP_USE_WCHAR_T 1
16504 EOF
16505
16506       echo "$ac_t"""yes"" 1>&6
16507     else
16508       echo "$ac_t"""no"" 1>&6
16509     fi
16510   else
16511         echo "configure: warning: wchar_t support disabled." 1>&2
16512   fi
16513
16514   
16515   ac_test_CXXFLAGS="${CXXFLAGS+set}"
16516   ac_save_CXXFLAGS="$CXXFLAGS"
16517   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16518
16519   
16520   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16521 echo "configure:16522: checking for strtold declaration" >&5
16522   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16523     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16524   echo $ac_n "(cached) $ac_c" 1>&6
16525 else
16526   
16527       
16528       ac_ext=C
16529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16530 ac_cpp='$CXXCPP $CPPFLAGS'
16531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16533 cross_compiling=$ac_cv_prog_cxx_cross
16534
16535       cat > conftest.$ac_ext <<EOF
16536 #line 16537 "configure"
16537 #include "confdefs.h"
16538 #include <stdlib.h>
16539 int main() {
16540  strtold(0, 0);
16541 ; return 0; }
16542 EOF
16543 if { (eval echo configure:16544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16544   rm -rf conftest*
16545   glibcpp_cv_func_strtold_use=yes
16546 else
16547   echo "configure: failed program was:" >&5
16548   cat conftest.$ac_ext >&5
16549   rm -rf conftest*
16550   glibcpp_cv_func_strtold_use=no
16551 fi
16552 rm -f conftest*
16553       ac_ext=c
16554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16555 ac_cpp='$CPP $CPPFLAGS'
16556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16558 cross_compiling=$ac_cv_prog_cc_cross
16559
16560     
16561 fi
16562
16563   fi
16564   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16565   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16566     for ac_func in strtold
16567 do
16568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16569 echo "configure:16570: checking for $ac_func" >&5
16570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16571   echo $ac_n "(cached) $ac_c" 1>&6
16572 else
16573   cat > conftest.$ac_ext <<EOF
16574 #line 16575 "configure"
16575 #include "confdefs.h"
16576 /* System header to define __stub macros and hopefully few prototypes,
16577     which can conflict with char $ac_func(); below.  */
16578 #include <assert.h>
16579 /* Override any gcc2 internal prototype to avoid an error.  */
16580 /* We use char because int might match the return type of a gcc2
16581     builtin and then its argument prototype would still apply.  */
16582 char $ac_func();
16583
16584 int main() {
16585
16586 /* The GNU C library defines this for functions which it implements
16587     to always fail with ENOSYS.  Some functions are actually named
16588     something starting with __ and the normal name is an alias.  */
16589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16590 choke me
16591 #else
16592 $ac_func();
16593 #endif
16594
16595 ; return 0; }
16596 EOF
16597 if { (eval echo configure:16598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16598   rm -rf conftest*
16599   eval "ac_cv_func_$ac_func=yes"
16600 else
16601   echo "configure: failed program was:" >&5
16602   cat conftest.$ac_ext >&5
16603   rm -rf conftest*
16604   eval "ac_cv_func_$ac_func=no"
16605 fi
16606 rm -f conftest*
16607 fi
16608
16609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16610   echo "$ac_t""yes" 1>&6
16611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16612   cat >> confdefs.h <<EOF
16613 #define $ac_tr_func 1
16614 EOF
16615  
16616 else
16617   echo "$ac_t""no" 1>&6
16618 fi
16619 done
16620     
16621   fi
16622
16623   for ac_func in drand48
16624 do
16625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16626 echo "configure:16627: checking for $ac_func" >&5
16627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16628   echo $ac_n "(cached) $ac_c" 1>&6
16629 else
16630   cat > conftest.$ac_ext <<EOF
16631 #line 16632 "configure"
16632 #include "confdefs.h"
16633 /* System header to define __stub macros and hopefully few prototypes,
16634     which can conflict with char $ac_func(); below.  */
16635 #include <assert.h>
16636 /* Override any gcc2 internal prototype to avoid an error.  */
16637 /* We use char because int might match the return type of a gcc2
16638     builtin and then its argument prototype would still apply.  */
16639 char $ac_func();
16640
16641 int main() {
16642
16643 /* The GNU C library defines this for functions which it implements
16644     to always fail with ENOSYS.  Some functions are actually named
16645     something starting with __ and the normal name is an alias.  */
16646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16647 choke me
16648 #else
16649 $ac_func();
16650 #endif
16651
16652 ; return 0; }
16653 EOF
16654 if { (eval echo configure:16655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16655   rm -rf conftest*
16656   eval "ac_cv_func_$ac_func=yes"
16657 else
16658   echo "configure: failed program was:" >&5
16659   cat conftest.$ac_ext >&5
16660   rm -rf conftest*
16661   eval "ac_cv_func_$ac_func=no"
16662 fi
16663 rm -f conftest*
16664 fi
16665
16666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16667   echo "$ac_t""yes" 1>&6
16668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16669   cat >> confdefs.h <<EOF
16670 #define $ac_tr_func 1
16671 EOF
16672  
16673 else
16674   echo "$ac_t""no" 1>&6
16675 fi
16676 done
16677
16678
16679   CXXFLAGS="$ac_save_CXXFLAGS"
16680
16681   
16682   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16683 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16684 echo "configure:16685: checking for locale.h" >&5
16685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16686   echo $ac_n "(cached) $ac_c" 1>&6
16687 else
16688   cat > conftest.$ac_ext <<EOF
16689 #line 16690 "configure"
16690 #include "confdefs.h"
16691 #include <locale.h>
16692 EOF
16693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16694 { (eval echo configure:16695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16696 if test -z "$ac_err"; then
16697   rm -rf conftest*
16698   eval "ac_cv_header_$ac_safe=yes"
16699 else
16700   echo "$ac_err" >&5
16701   echo "configure: failed program was:" >&5
16702   cat conftest.$ac_ext >&5
16703   rm -rf conftest*
16704   eval "ac_cv_header_$ac_safe=no"
16705 fi
16706 rm -f conftest*
16707 fi
16708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16709   echo "$ac_t""yes" 1>&6
16710   
16711     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16712 echo "configure:16713: checking for LC_MESSAGES" >&5
16713 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16714   echo $ac_n "(cached) $ac_c" 1>&6
16715 else
16716   cat > conftest.$ac_ext <<EOF
16717 #line 16718 "configure"
16718 #include "confdefs.h"
16719 #include <locale.h>
16720 int main() {
16721 return LC_MESSAGES
16722 ; return 0; }
16723 EOF
16724 if { (eval echo configure:16725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16725   rm -rf conftest*
16726   ac_cv_val_LC_MESSAGES=yes
16727 else
16728   echo "configure: failed program was:" >&5
16729   cat conftest.$ac_ext >&5
16730   rm -rf conftest*
16731   ac_cv_val_LC_MESSAGES=no
16732 fi
16733 rm -f conftest*
16734 fi
16735
16736 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16737     if test $ac_cv_val_LC_MESSAGES = yes; then
16738       cat >> confdefs.h <<\EOF
16739 #define HAVE_LC_MESSAGES 1
16740 EOF
16741
16742     fi
16743   
16744 else
16745   echo "$ac_t""no" 1>&6
16746 fi
16747
16748
16749
16750   cat > conftest.$ac_ext <<EOF
16751 #line 16752 "configure"
16752 #include "confdefs.h"
16753
16754 #include <setjmp.h>
16755
16756 int main() {
16757 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16758 ; return 0; }
16759 EOF
16760 if { (eval echo configure:16761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16761   rm -rf conftest*
16762   cat >> confdefs.h <<\EOF
16763 #define HAVE_SIGSETJMP 1
16764 EOF
16765
16766 else
16767   echo "configure: failed program was:" >&5
16768   cat conftest.$ac_ext >&5
16769 fi
16770 rm -f conftest*
16771
16772   for ac_hdr in unistd.h
16773 do
16774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16776 echo "configure:16777: checking for $ac_hdr" >&5
16777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16778   echo $ac_n "(cached) $ac_c" 1>&6
16779 else
16780   cat > conftest.$ac_ext <<EOF
16781 #line 16782 "configure"
16782 #include "confdefs.h"
16783 #include <$ac_hdr>
16784 EOF
16785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16786 { (eval echo configure:16787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16788 if test -z "$ac_err"; then
16789   rm -rf conftest*
16790   eval "ac_cv_header_$ac_safe=yes"
16791 else
16792   echo "$ac_err" >&5
16793   echo "configure: failed program was:" >&5
16794   cat conftest.$ac_ext >&5
16795   rm -rf conftest*
16796   eval "ac_cv_header_$ac_safe=no"
16797 fi
16798 rm -f conftest*
16799 fi
16800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16801   echo "$ac_t""yes" 1>&6
16802     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16803   cat >> confdefs.h <<EOF
16804 #define $ac_tr_hdr 1
16805 EOF
16806  
16807 else
16808   echo "$ac_t""no" 1>&6
16809 fi
16810 done
16811
16812 for ac_func in getpagesize
16813 do
16814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16815 echo "configure:16816: checking for $ac_func" >&5
16816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16817   echo $ac_n "(cached) $ac_c" 1>&6
16818 else
16819   cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16822 /* System header to define __stub macros and hopefully few prototypes,
16823     which can conflict with char $ac_func(); below.  */
16824 #include <assert.h>
16825 /* Override any gcc2 internal prototype to avoid an error.  */
16826 /* We use char because int might match the return type of a gcc2
16827     builtin and then its argument prototype would still apply.  */
16828 char $ac_func();
16829
16830 int main() {
16831
16832 /* The GNU C library defines this for functions which it implements
16833     to always fail with ENOSYS.  Some functions are actually named
16834     something starting with __ and the normal name is an alias.  */
16835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16836 choke me
16837 #else
16838 $ac_func();
16839 #endif
16840
16841 ; return 0; }
16842 EOF
16843 if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16844   rm -rf conftest*
16845   eval "ac_cv_func_$ac_func=yes"
16846 else
16847   echo "configure: failed program was:" >&5
16848   cat conftest.$ac_ext >&5
16849   rm -rf conftest*
16850   eval "ac_cv_func_$ac_func=no"
16851 fi
16852 rm -f conftest*
16853 fi
16854
16855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16856   echo "$ac_t""yes" 1>&6
16857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16858   cat >> confdefs.h <<EOF
16859 #define $ac_tr_func 1
16860 EOF
16861  
16862 else
16863   echo "$ac_t""no" 1>&6
16864 fi
16865 done
16866
16867 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16868 echo "configure:16869: checking for working mmap" >&5
16869 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16870   echo $ac_n "(cached) $ac_c" 1>&6
16871 else
16872   if test "$cross_compiling" = yes; then
16873   ac_cv_func_mmap_fixed_mapped=no
16874 else
16875   cat > conftest.$ac_ext <<EOF
16876 #line 16877 "configure"
16877 #include "confdefs.h"
16878
16879 /* Thanks to Mike Haertel and Jim Avera for this test.
16880    Here is a matrix of mmap possibilities:
16881         mmap private not fixed
16882         mmap private fixed at somewhere currently unmapped
16883         mmap private fixed at somewhere already mapped
16884         mmap shared not fixed
16885         mmap shared fixed at somewhere currently unmapped
16886         mmap shared fixed at somewhere already mapped
16887    For private mappings, we should verify that changes cannot be read()
16888    back from the file, nor mmap's back from the file at a different
16889    address.  (There have been systems where private was not correctly
16890    implemented like the infamous i386 svr4.0, and systems where the
16891    VM page cache was not coherent with the filesystem buffer cache
16892    like early versions of FreeBSD and possibly contemporary NetBSD.)
16893    For shared mappings, we should conversely verify that changes get
16894    propogated back to all the places they're supposed to be.
16895
16896    Grep wants private fixed already mapped.
16897    The main things grep needs to know about mmap are:
16898    * does it exist and is it safe to write into the mmap'd area
16899    * how to use it (BSD variants)  */
16900 #include <sys/types.h>
16901 #include <fcntl.h>
16902 #include <sys/mman.h>
16903
16904 /* This mess was copied from the GNU getpagesize.h.  */
16905 #ifndef HAVE_GETPAGESIZE
16906 # ifdef HAVE_UNISTD_H
16907 #  include <unistd.h>
16908 # endif
16909
16910 /* Assume that all systems that can run configure have sys/param.h.  */
16911 # ifndef HAVE_SYS_PARAM_H
16912 #  define HAVE_SYS_PARAM_H 1
16913 # endif
16914
16915 # ifdef _SC_PAGESIZE
16916 #  define getpagesize() sysconf(_SC_PAGESIZE)
16917 # else /* no _SC_PAGESIZE */
16918 #  ifdef HAVE_SYS_PARAM_H
16919 #   include <sys/param.h>
16920 #   ifdef EXEC_PAGESIZE
16921 #    define getpagesize() EXEC_PAGESIZE
16922 #   else /* no EXEC_PAGESIZE */
16923 #    ifdef NBPG
16924 #     define getpagesize() NBPG * CLSIZE
16925 #     ifndef CLSIZE
16926 #      define CLSIZE 1
16927 #     endif /* no CLSIZE */
16928 #    else /* no NBPG */
16929 #     ifdef NBPC
16930 #      define getpagesize() NBPC
16931 #     else /* no NBPC */
16932 #      ifdef PAGESIZE
16933 #       define getpagesize() PAGESIZE
16934 #      endif /* PAGESIZE */
16935 #     endif /* no NBPC */
16936 #    endif /* no NBPG */
16937 #   endif /* no EXEC_PAGESIZE */
16938 #  else /* no HAVE_SYS_PARAM_H */
16939 #   define getpagesize() 8192   /* punt totally */
16940 #  endif /* no HAVE_SYS_PARAM_H */
16941 # endif /* no _SC_PAGESIZE */
16942
16943 #endif /* no HAVE_GETPAGESIZE */
16944
16945 #ifdef __cplusplus
16946 extern "C" { void *malloc(unsigned); }
16947 #else
16948 char *malloc();
16949 #endif
16950
16951 int
16952 main()
16953 {
16954         char *data, *data2, *data3;
16955         int i, pagesize;
16956         int fd;
16957
16958         pagesize = getpagesize();
16959
16960         /*
16961          * First, make a file with some known garbage in it.
16962          */
16963         data = malloc(pagesize);
16964         if (!data)
16965                 exit(1);
16966         for (i = 0; i < pagesize; ++i)
16967                 *(data + i) = rand();
16968         umask(0);
16969         fd = creat("conftestmmap", 0600);
16970         if (fd < 0)
16971                 exit(1);
16972         if (write(fd, data, pagesize) != pagesize)
16973                 exit(1);
16974         close(fd);
16975
16976         /*
16977          * Next, try to mmap the file at a fixed address which
16978          * already has something else allocated at it.  If we can,
16979          * also make sure that we see the same garbage.
16980          */
16981         fd = open("conftestmmap", O_RDWR);
16982         if (fd < 0)
16983                 exit(1);
16984         data2 = malloc(2 * pagesize);
16985         if (!data2)
16986                 exit(1);
16987         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16988         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16989             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16990                 exit(1);
16991         for (i = 0; i < pagesize; ++i)
16992                 if (*(data + i) != *(data2 + i))
16993                         exit(1);
16994
16995         /*
16996          * Finally, make sure that changes to the mapped area
16997          * do not percolate back to the file as seen by read().
16998          * (This is a bug on some variants of i386 svr4.0.)
16999          */
17000         for (i = 0; i < pagesize; ++i)
17001                 *(data2 + i) = *(data2 + i) + 1;
17002         data3 = malloc(pagesize);
17003         if (!data3)
17004                 exit(1);
17005         if (read(fd, data3, pagesize) != pagesize)
17006                 exit(1);
17007         for (i = 0; i < pagesize; ++i)
17008                 if (*(data + i) != *(data3 + i))
17009                         exit(1);
17010         close(fd);
17011         unlink("conftestmmap");
17012         exit(0);
17013 }
17014
17015 EOF
17016 if { (eval echo configure:17017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17017 then
17018   ac_cv_func_mmap_fixed_mapped=yes
17019 else
17020   echo "configure: failed program was:" >&5
17021   cat conftest.$ac_ext >&5
17022   rm -fr conftest*
17023   ac_cv_func_mmap_fixed_mapped=no
17024 fi
17025 rm -fr conftest*
17026 fi
17027
17028 fi
17029
17030 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17032   cat >> confdefs.h <<\EOF
17033 #define HAVE_MMAP 1
17034 EOF
17035
17036 fi
17037
17038
17039   # Establish limits on memory usage during 'make check'
17040   
17041   
17042   setrlimit_have_headers=yes
17043   for ac_hdr in sys/resource.h unistd.h
17044 do
17045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17047 echo "configure:17048: checking for $ac_hdr" >&5
17048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17049   echo $ac_n "(cached) $ac_c" 1>&6
17050 else
17051   cat > conftest.$ac_ext <<EOF
17052 #line 17053 "configure"
17053 #include "confdefs.h"
17054 #include <$ac_hdr>
17055 EOF
17056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17057 { (eval echo configure:17058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17059 if test -z "$ac_err"; then
17060   rm -rf conftest*
17061   eval "ac_cv_header_$ac_safe=yes"
17062 else
17063   echo "$ac_err" >&5
17064   echo "configure: failed program was:" >&5
17065   cat conftest.$ac_ext >&5
17066   rm -rf conftest*
17067   eval "ac_cv_header_$ac_safe=no"
17068 fi
17069 rm -f conftest*
17070 fi
17071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17072   echo "$ac_t""yes" 1>&6
17073     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17074   cat >> confdefs.h <<EOF
17075 #define $ac_tr_hdr 1
17076 EOF
17077  
17078 else
17079   echo "$ac_t""no" 1>&6
17080 setrlimit_have_headers=no
17081 fi
17082 done
17083
17084   # If don't have the headers, then we can't run the tests now, and we
17085   # won't be seeing any of these during testsuite compilation.
17086   if test $setrlimit_have_headers = yes; then
17087     # Can't do these in a loop, else the resulting syntax is wrong.
17088     
17089   cat > conftest.$ac_ext <<EOF
17090 #line 17091 "configure"
17091 #include "confdefs.h"
17092 #include <sys/resource.h>
17093                   #include <unistd.h>
17094                  
17095 int main() {
17096  int f = RLIMIT_DATA ; 
17097 ; return 0; }
17098 EOF
17099 if { (eval echo configure:17100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17100   rm -rf conftest*
17101   glibcpp_mresult=1
17102 else
17103   echo "configure: failed program was:" >&5
17104   cat conftest.$ac_ext >&5
17105   rm -rf conftest*
17106   glibcpp_mresult=0
17107 fi
17108 rm -f conftest*
17109   cat >> confdefs.h <<EOF
17110 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17111 EOF
17112
17113
17114     
17115   cat > conftest.$ac_ext <<EOF
17116 #line 17117 "configure"
17117 #include "confdefs.h"
17118 #include <sys/resource.h>
17119                   #include <unistd.h>
17120                  
17121 int main() {
17122  int f = RLIMIT_RSS ; 
17123 ; return 0; }
17124 EOF
17125 if { (eval echo configure:17126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17126   rm -rf conftest*
17127   glibcpp_mresult=1
17128 else
17129   echo "configure: failed program was:" >&5
17130   cat conftest.$ac_ext >&5
17131   rm -rf conftest*
17132   glibcpp_mresult=0
17133 fi
17134 rm -f conftest*
17135   cat >> confdefs.h <<EOF
17136 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17137 EOF
17138
17139
17140     
17141   cat > conftest.$ac_ext <<EOF
17142 #line 17143 "configure"
17143 #include "confdefs.h"
17144 #include <sys/resource.h>
17145                   #include <unistd.h>
17146                  
17147 int main() {
17148  int f = RLIMIT_VMEM ; 
17149 ; return 0; }
17150 EOF
17151 if { (eval echo configure:17152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17152   rm -rf conftest*
17153   glibcpp_mresult=1
17154 else
17155   echo "configure: failed program was:" >&5
17156   cat conftest.$ac_ext >&5
17157   rm -rf conftest*
17158   glibcpp_mresult=0
17159 fi
17160 rm -f conftest*
17161   cat >> confdefs.h <<EOF
17162 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17163 EOF
17164
17165
17166     
17167   cat > conftest.$ac_ext <<EOF
17168 #line 17169 "configure"
17169 #include "confdefs.h"
17170 #include <sys/resource.h>
17171                   #include <unistd.h>
17172                  
17173 int main() {
17174  int f = RLIMIT_AS ; 
17175 ; return 0; }
17176 EOF
17177 if { (eval echo configure:17178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17178   rm -rf conftest*
17179   glibcpp_mresult=1
17180 else
17181   echo "configure: failed program was:" >&5
17182   cat conftest.$ac_ext >&5
17183   rm -rf conftest*
17184   glibcpp_mresult=0
17185 fi
17186 rm -f conftest*
17187   cat >> confdefs.h <<EOF
17188 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17189 EOF
17190
17191
17192
17193     # Check for rlimit, setrlimit.
17194     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17195   echo $ac_n "(cached) $ac_c" 1>&6
17196 else
17197   
17198       cat > conftest.$ac_ext <<EOF
17199 #line 17200 "configure"
17200 #include "confdefs.h"
17201 #include <sys/resource.h>
17202                       #include <unistd.h>
17203                      
17204 int main() {
17205  struct rlimit r; setrlimit(0, &r);
17206 ; return 0; }
17207 EOF
17208 if { (eval echo configure:17209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17209   rm -rf conftest*
17210   ac_setrlimit=yes
17211 else
17212   echo "configure: failed program was:" >&5
17213   cat conftest.$ac_ext >&5
17214   rm -rf conftest*
17215   ac_setrlimit=no
17216 fi
17217 rm -f conftest*
17218     
17219 fi
17220
17221   fi
17222
17223   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17224 echo "configure:17225: checking for testsuite memory limit support" >&5
17225   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17226     ac_mem_limits=yes
17227     cat >> confdefs.h <<\EOF
17228 #define _GLIBCPP_MEM_LIMITS 1
17229 EOF
17230
17231   else
17232     ac_mem_limits=no
17233   fi
17234   echo "$ac_t""$ac_mem_limits" 1>&6
17235
17236
17237 fi
17238
17239
17240 # Propagate the target-specific source directories through the build chain.
17241 OS_INC_SRCDIR=$os_include_dir/bits
17242 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17243 LIMITS_INC_SRCDIR=$LIMITSH/bits
17244
17245
17246
17247
17248 # Set up cross-compile flags
17249
17250
17251
17252 if test "$CANADIAN" = yes; then
17253   CANADIAN_TRUE=
17254   CANADIAN_FALSE='#'
17255 else
17256   CANADIAN_TRUE='#'
17257   CANADIAN_FALSE=
17258 fi
17259  
17260 cat > confcache <<\EOF
17261 # This file is a shell script that caches the results of configure
17262 # tests run on this system so they can be shared between configure
17263 # scripts and configure runs.  It is not useful on other systems.
17264 # If it contains results you don't want to keep, you may remove or edit it.
17265 #
17266 # By default, configure uses ./config.cache as the cache file,
17267 # creating it if it does not exist already.  You can give configure
17268 # the --cache-file=FILE option to use a different cache file; that is
17269 # what configure does when it calls configure scripts in
17270 # subdirectories, so they share the cache.
17271 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17272 # config.status only pays attention to the cache file if you give it the
17273 # --recheck option to rerun configure.
17274 #
17275 EOF
17276 # The following way of writing the cache mishandles newlines in values,
17277 # but we know of no workaround that is simple, portable, and efficient.
17278 # So, don't put newlines in cache variables' values.
17279 # Ultrix sh set writes to stderr and can't be redirected directly,
17280 # and sets the high bit in the cache file unless we assign to the vars.
17281 (set) 2>&1 |
17282   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17283   *ac_space=\ *)
17284     # `set' does not quote correctly, so add quotes (double-quote substitution
17285     # turns \\\\ into \\, and sed turns \\ into \).
17286     sed -n \
17287       -e "s/'/'\\\\''/g" \
17288       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17289     ;;
17290   *)
17291     # `set' quotes correctly as required by POSIX, so do not add quotes.
17292     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17293     ;;
17294   esac >> confcache
17295 if cmp -s $cache_file confcache; then
17296   :
17297 else
17298   if test -w $cache_file; then
17299     echo "updating cache $cache_file"
17300     cat confcache > $cache_file
17301   else
17302     echo "not updating unwritable cache $cache_file"
17303   fi
17304 fi
17305 rm -f confcache
17306
17307
17308 if test "${multilib}" = "yes"; then
17309   multilib_arg="--enable-multilib"
17310 else
17311   multilib_arg=
17312 fi
17313
17314 # Needed so that g++ can find the correct include subdir automatically.
17315 INTERFACE=v3
17316
17317 # Export all the install information
17318
17319 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17320 # exported correctly in GLIBCPP_CONFIGURE.
17321 glibcpp_toolexecdir=no
17322 glibcpp_toolexeclibdir=no
17323 glibcpp_prefixdir=${prefix}
17324
17325 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17326 echo "configure:17327: checking for interface version number" >&5
17327 libstdcxx_interface=$INTERFACE
17328 echo "$ac_t""$libstdcxx_interface" 1>&6
17329
17330 # Process the option --with-gxx-include-dir=<path to include-files directory>
17331 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17332 echo "configure:17333: checking for --with-gxx-include-dir" >&5
17333 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17334 if test "${with_gxx_include_dir+set}" = set; then
17335   withval="$with_gxx_include_dir"
17336   case "${withval}" in
17337   yes)
17338     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17339     gxx_include_dir=no
17340     ;;
17341   no)
17342     gxx_include_dir=no
17343     ;;
17344   *)
17345     gxx_include_dir=${withval}
17346     ;;
17347 esac
17348 else
17349   gxx_include_dir=no
17350 fi
17351
17352 echo "$ac_t""$gxx_include_dir" 1>&6
17353
17354 # Process the option "--enable-version-specific-runtime-libs"
17355 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17356 echo "configure:17357: checking for --enable-version-specific-runtime-libs" >&5
17357 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17358 if test "${enable_version_specific_runtime_libs+set}" = set; then
17359   enableval="$enable_version_specific_runtime_libs"
17360   case "$enableval" in
17361  yes) version_specific_libs=yes ;;
17362  no)  version_specific_libs=no ;;
17363  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17364  esac
17365 else
17366   version_specific_libs=no
17367 fi
17368 # Option set, now we can test it.
17369 echo "$ac_t""$version_specific_libs" 1>&6
17370
17371 if test $version_specific_libs = yes; then
17372   # Need the gcc compiler version to know where to install libraries
17373   # and header files if --enable-version-specific-runtime-libs option
17374   # is selected.
17375     gcc_version_trigger=${srcdir}/../gcc/version.c
17376   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17377   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17378   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17379   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17380   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17381   fi
17382
17383 # Default case for install directory for include files.
17384 if test $version_specific_libs = no &&
17385    test $gxx_include_dir = no; then
17386   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17387 fi
17388
17389 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17390 # Install a library built with a cross compiler in tooldir, not libdir.
17391 if test x"$glibcpp_toolexecdir" = x"no"; then 
17392   if test -n "$with_cross_host" &&
17393      test x"$with_cross_host" != x"no"; then
17394     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17395     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17396   else
17397     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17398     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17399   fi
17400 fi
17401
17402 echo $ac_n "checking for install location""... $ac_c" 1>&6
17403 echo "configure:17404: checking for install location" >&5
17404 echo "$ac_t""$gxx_include_dir" 1>&6
17405
17406
17407
17408
17409
17410
17411
17412 # Export all the include and flag information to makefiles.
17413
17414   # Root level of the build directory include sources.
17415   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17416
17417   # Passed down for canadian crosses.
17418   if test x"$CANADIAN" = xyes; then
17419     TOPLEVEL_INCLUDES='-I$(includedir)'
17420   fi
17421
17422   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17423
17424   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17425
17426   if test x"$need_libio" = xyes; then
17427     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17428     
17429   fi
17430
17431   # Now, export this to all the little Makefiles....
17432   
17433   
17434   
17435   
17436
17437
17438   # Optimization flags that are probably a good idea for thrill-seekers. Just
17439   # uncomment the lines below and make, everything else is ready to go... 
17440   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
17441   OPTIMIZE_CXXFLAGS=
17442   
17443
17444   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17445   
17446
17447
17448 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17449    grep "enable shared" > /dev/null; then
17450   LIBSUPCXX_PICFLAGS=-prefer-pic
17451 else
17452   LIBSUPCXX_PICFLAGS=
17453 fi
17454
17455
17456 # Generate the various Makefiles, include files, and scripts.
17457 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17458 # and libsupc++/Makefile.am so that multilib installs will end up
17459 # installed in the correct place. To work around this not being passed
17460 # down from config-ml.in -> top_srcdir/Makefile.am ->
17461 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17462 trap '' 1 2 15
17463 cat > confcache <<\EOF
17464 # This file is a shell script that caches the results of configure
17465 # tests run on this system so they can be shared between configure
17466 # scripts and configure runs.  It is not useful on other systems.
17467 # If it contains results you don't want to keep, you may remove or edit it.
17468 #
17469 # By default, configure uses ./config.cache as the cache file,
17470 # creating it if it does not exist already.  You can give configure
17471 # the --cache-file=FILE option to use a different cache file; that is
17472 # what configure does when it calls configure scripts in
17473 # subdirectories, so they share the cache.
17474 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17475 # config.status only pays attention to the cache file if you give it the
17476 # --recheck option to rerun configure.
17477 #
17478 EOF
17479 # The following way of writing the cache mishandles newlines in values,
17480 # but we know of no workaround that is simple, portable, and efficient.
17481 # So, don't put newlines in cache variables' values.
17482 # Ultrix sh set writes to stderr and can't be redirected directly,
17483 # and sets the high bit in the cache file unless we assign to the vars.
17484 (set) 2>&1 |
17485   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17486   *ac_space=\ *)
17487     # `set' does not quote correctly, so add quotes (double-quote substitution
17488     # turns \\\\ into \\, and sed turns \\ into \).
17489     sed -n \
17490       -e "s/'/'\\\\''/g" \
17491       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17492     ;;
17493   *)
17494     # `set' quotes correctly as required by POSIX, so do not add quotes.
17495     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17496     ;;
17497   esac >> confcache
17498 if cmp -s $cache_file confcache; then
17499   :
17500 else
17501   if test -w $cache_file; then
17502     echo "updating cache $cache_file"
17503     cat confcache > $cache_file
17504   else
17505     echo "not updating unwritable cache $cache_file"
17506   fi
17507 fi
17508 rm -f confcache
17509
17510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17511
17512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17513 # Let make expand exec_prefix.
17514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17515
17516 # Any assignment to VPATH causes Sun make to only execute
17517 # the first set of double-colon rules, so remove it if not needed.
17518 # If there is a colon in the path, we need to keep it.
17519 if test "x$srcdir" = x.; then
17520   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
17521 fi
17522
17523 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17524
17525 DEFS=-DHAVE_CONFIG_H
17526
17527 # Without the "./", some shells look in PATH for config.status.
17528 : ${CONFIG_STATUS=./config.status}
17529
17530 echo creating $CONFIG_STATUS
17531 rm -f $CONFIG_STATUS
17532 cat > $CONFIG_STATUS <<EOF
17533 #! /bin/sh
17534 # Generated automatically by configure.
17535 # Run this file to recreate the current configuration.
17536 # This directory was configured as follows,
17537 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17538 #
17539 # $0 $ac_configure_args
17540 #
17541 # Compiler output produced by configure, useful for debugging
17542 # configure, is in ./config.log if it exists.
17543
17544 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17545 for ac_option
17546 do
17547   case "\$ac_option" in
17548   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17549     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17550     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17551   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17552     echo "$CONFIG_STATUS generated by autoconf version 2.13"
17553     exit 0 ;;
17554   -help | --help | --hel | --he | --h)
17555     echo "\$ac_cs_usage"; exit 0 ;;
17556   *) echo "\$ac_cs_usage"; exit 1 ;;
17557   esac
17558 done
17559
17560 ac_given_srcdir=$srcdir
17561 ac_given_INSTALL="$INSTALL"
17562
17563 trap 'rm -fr `echo "Makefile \
17564     include/Makefile src/Makefile \
17565     libmath/Makefile libio/Makefile libsupc++/Makefile \
17566     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17567 EOF
17568 cat >> $CONFIG_STATUS <<EOF
17569
17570 # Protect against being on the right side of a sed subst in config.status.
17571 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17572  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17573 $ac_vpsub
17574 $extrasub
17575 s%@SHELL@%$SHELL%g
17576 s%@CFLAGS@%$CFLAGS%g
17577 s%@CPPFLAGS@%$CPPFLAGS%g
17578 s%@CXXFLAGS@%$CXXFLAGS%g
17579 s%@FFLAGS@%$FFLAGS%g
17580 s%@DEFS@%$DEFS%g
17581 s%@LDFLAGS@%$LDFLAGS%g
17582 s%@LIBS@%$LIBS%g
17583 s%@exec_prefix@%$exec_prefix%g
17584 s%@prefix@%$prefix%g
17585 s%@program_transform_name@%$program_transform_name%g
17586 s%@bindir@%$bindir%g
17587 s%@sbindir@%$sbindir%g
17588 s%@libexecdir@%$libexecdir%g
17589 s%@datadir@%$datadir%g
17590 s%@sysconfdir@%$sysconfdir%g
17591 s%@sharedstatedir@%$sharedstatedir%g
17592 s%@localstatedir@%$localstatedir%g
17593 s%@libdir@%$libdir%g
17594 s%@includedir@%$includedir%g
17595 s%@oldincludedir@%$oldincludedir%g
17596 s%@infodir@%$infodir%g
17597 s%@mandir@%$mandir%g
17598 s%@PACKAGE@%$PACKAGE%g
17599 s%@release_VERSION@%$release_VERSION%g
17600 s%@libtool_VERSION@%$libtool_VERSION%g
17601 s%@host@%$host%g
17602 s%@host_alias@%$host_alias%g
17603 s%@host_cpu@%$host_cpu%g
17604 s%@host_vendor@%$host_vendor%g
17605 s%@host_os@%$host_os%g
17606 s%@target@%$target%g
17607 s%@target_alias@%$target_alias%g
17608 s%@target_cpu@%$target_cpu%g
17609 s%@target_vendor@%$target_vendor%g
17610 s%@target_os@%$target_os%g
17611 s%@build@%$build%g
17612 s%@build_alias@%$build_alias%g
17613 s%@build_cpu@%$build_cpu%g
17614 s%@build_vendor@%$build_vendor%g
17615 s%@build_os@%$build_os%g
17616 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17617 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17618 s%@INSTALL_DATA@%$INSTALL_DATA%g
17619 s%@VERSION@%$VERSION%g
17620 s%@ACLOCAL@%$ACLOCAL%g
17621 s%@AUTOCONF@%$AUTOCONF%g
17622 s%@AUTOMAKE@%$AUTOMAKE%g
17623 s%@AUTOHEADER@%$AUTOHEADER%g
17624 s%@MAKEINFO@%$MAKEINFO%g
17625 s%@SET_MAKE@%$SET_MAKE%g
17626 s%@toplevel_srcdir@%$toplevel_srcdir%g
17627 s%@glibcpp_builddir@%$glibcpp_builddir%g
17628 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17629 s%@LN_S@%$LN_S%g
17630 s%@glibcpp_basedir@%$glibcpp_basedir%g
17631 s%@CC@%$CC%g
17632 s%@glibcpp_CXX@%$glibcpp_CXX%g
17633 s%@AS@%$AS%g
17634 s%@AR@%$AR%g
17635 s%@RANLIB@%$RANLIB%g
17636 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17637 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17638 s%@MAINT@%$MAINT%g
17639 s%@EXEEXT@%$EXEEXT%g
17640 s%@OBJEXT@%$OBJEXT%g
17641 s%@STRIP@%$STRIP%g
17642 s%@LIBTOOL@%$LIBTOOL%g
17643 s%@CXXCPP@%$CXXCPP%g
17644 s%@enable_shared@%$enable_shared%g
17645 s%@enable_static@%$enable_static%g
17646 s%@ifGNUmake@%$ifGNUmake%g
17647 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17648 s%@CPP@%$CPP%g
17649 s%@CSTDIO_H@%$CSTDIO_H%g
17650 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17651 s%@CCODECVT_C@%$CCODECVT_C%g
17652 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17653 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17654 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17655 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17656 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17657 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17658 s%@libio_la@%$libio_la%g
17659 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17660 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17661 s%@glibcpp_localedir@%$glibcpp_localedir%g
17662 s%@USE_NLS@%$USE_NLS%g
17663 s%@CLOCALE_H@%$CLOCALE_H%g
17664 s%@CCODECVT_H@%$CCODECVT_H%g
17665 s%@CMESSAGES_H@%$CMESSAGES_H%g
17666 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17667 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17668 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17669 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17670 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17671 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17672 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17673 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17674 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17675 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17676 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17677 s%@WERROR@%$WERROR%g
17678 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17679 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17680 s%@LIMITS_INC_SRCDIR@%$LIMITS_INC_SRCDIR%g
17681 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17682 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17683 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17684 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17685 s%@gxx_include_dir@%$gxx_include_dir%g
17686 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17687 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17688 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17689 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17690 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17691 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17692 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17693 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17694 s%@WARN_FLAGS@%$WARN_FLAGS%g
17695 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17696
17697 CEOF
17698 EOF
17699
17700 cat >> $CONFIG_STATUS <<\EOF
17701
17702 # Split the substitutions into bite-sized pieces for seds with
17703 # small command number limits, like on Digital OSF/1 and HP-UX.
17704 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17705 ac_file=1 # Number of current file.
17706 ac_beg=1 # First line for current file.
17707 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17708 ac_more_lines=:
17709 ac_sed_cmds=""
17710 while $ac_more_lines; do
17711   if test $ac_beg -gt 1; then
17712     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17713   else
17714     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17715   fi
17716   if test ! -s conftest.s$ac_file; then
17717     ac_more_lines=false
17718     rm -f conftest.s$ac_file
17719   else
17720     if test -z "$ac_sed_cmds"; then
17721       ac_sed_cmds="sed -f conftest.s$ac_file"
17722     else
17723       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17724     fi
17725     ac_file=`expr $ac_file + 1`
17726     ac_beg=$ac_end
17727     ac_end=`expr $ac_end + $ac_max_sed_cmds`
17728   fi
17729 done
17730 if test -z "$ac_sed_cmds"; then
17731   ac_sed_cmds=cat
17732 fi
17733 EOF
17734
17735 cat >> $CONFIG_STATUS <<EOF
17736
17737 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17738     include/Makefile src/Makefile \
17739     libmath/Makefile libio/Makefile libsupc++/Makefile \
17740     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17741 EOF
17742 cat >> $CONFIG_STATUS <<\EOF
17743 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17744   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17745   case "$ac_file" in
17746   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17747        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17748   *) ac_file_in="${ac_file}.in" ;;
17749   esac
17750
17751   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17752
17753   # Remove last slash and all that follows it.  Not all systems have dirname.
17754   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17755   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17756     # The file is in a subdirectory.
17757     test ! -d "$ac_dir" && mkdir "$ac_dir"
17758     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17759     # A "../" for each directory in $ac_dir_suffix.
17760     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17761   else
17762     ac_dir_suffix= ac_dots=
17763   fi
17764
17765   case "$ac_given_srcdir" in
17766   .)  srcdir=.
17767       if test -z "$ac_dots"; then top_srcdir=.
17768       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17769   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17770   *) # Relative path.
17771     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17772     top_srcdir="$ac_dots$ac_given_srcdir" ;;
17773   esac
17774
17775   case "$ac_given_INSTALL" in
17776   [/$]*) INSTALL="$ac_given_INSTALL" ;;
17777   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17778   esac
17779
17780   echo creating "$ac_file"
17781   rm -f "$ac_file"
17782   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17783   case "$ac_file" in
17784   *Makefile*) ac_comsub="1i\\
17785 # $configure_input" ;;
17786   *) ac_comsub= ;;
17787   esac
17788
17789   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17790   sed -e "$ac_comsub
17791 s%@configure_input@%$configure_input%g
17792 s%@srcdir@%$srcdir%g
17793 s%@top_srcdir@%$top_srcdir%g
17794 s%@INSTALL@%$INSTALL%g
17795 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17796 fi; done
17797 rm -f conftest.s*
17798
17799 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17800 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17801 #
17802 # ac_d sets the value in "#define NAME VALUE" lines.
17803 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17804 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
17805 ac_dC='\3'
17806 ac_dD='%g'
17807 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17808 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17809 ac_uB='\([      ]\)%\1#\2define\3'
17810 ac_uC=' '
17811 ac_uD='\4%g'
17812 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17813 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17814 ac_eB='$%\1#\2define\3'
17815 ac_eC=' '
17816 ac_eD='%g'
17817
17818 if test "${CONFIG_HEADERS+set}" != set; then
17819 EOF
17820 cat >> $CONFIG_STATUS <<EOF
17821   CONFIG_HEADERS="config.h"
17822 EOF
17823 cat >> $CONFIG_STATUS <<\EOF
17824 fi
17825 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17826   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17827   case "$ac_file" in
17828   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17829        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17830   *) ac_file_in="${ac_file}.in" ;;
17831   esac
17832
17833   echo creating $ac_file
17834
17835   rm -f conftest.frag conftest.in conftest.out
17836   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17837   cat $ac_file_inputs > conftest.in
17838
17839 EOF
17840
17841 # Transform confdefs.h into a sed script conftest.vals that substitutes
17842 # the proper values into config.h.in to produce config.h.  And first:
17843 # Protect against being on the right side of a sed subst in config.status.
17844 # Protect against being in an unquoted here document in config.status.
17845 rm -f conftest.vals
17846 cat > conftest.hdr <<\EOF
17847 s/[\\&%]/\\&/g
17848 s%[\\$`]%\\&%g
17849 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17850 s%ac_d%ac_u%gp
17851 s%ac_u%ac_e%gp
17852 EOF
17853 sed -n -f conftest.hdr confdefs.h > conftest.vals
17854 rm -f conftest.hdr
17855
17856 # This sed command replaces #undef with comments.  This is necessary, for
17857 # example, in the case of _POSIX_SOURCE, which is predefined and required
17858 # on some systems where configure will not decide to define it.
17859 cat >> conftest.vals <<\EOF
17860 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17861 EOF
17862
17863 # Break up conftest.vals because some shells have a limit on
17864 # the size of here documents, and old seds have small limits too.
17865
17866 rm -f conftest.tail
17867 while :
17868 do
17869   ac_lines=`grep -c . conftest.vals`
17870   # grep -c gives empty output for an empty file on some AIX systems.
17871   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17872   # Write a limited-size here document to conftest.frag.
17873   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17874   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17875   echo 'CEOF
17876   sed -f conftest.frag conftest.in > conftest.out
17877   rm -f conftest.in
17878   mv conftest.out conftest.in
17879 ' >> $CONFIG_STATUS
17880   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17881   rm -f conftest.vals
17882   mv conftest.tail conftest.vals
17883 done
17884 rm -f conftest.vals
17885
17886 cat >> $CONFIG_STATUS <<\EOF
17887   rm -f conftest.frag conftest.h
17888   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
17889   cat conftest.in >> conftest.h
17890   rm -f conftest.in
17891   if cmp -s $ac_file conftest.h 2>/dev/null; then
17892     echo "$ac_file is unchanged"
17893     rm -f conftest.h
17894   else
17895     # Remove last slash and all that follows it.  Not all systems have dirname.
17896       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17897       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17898       # The file is in a subdirectory.
17899       test ! -d "$ac_dir" && mkdir "$ac_dir"
17900     fi
17901     rm -f $ac_file
17902     mv conftest.h $ac_file
17903   fi
17904 fi; done
17905
17906 EOF
17907
17908 cat >> $CONFIG_STATUS <<EOF
17909 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CMESSAGES_CC $CCOLLATE_CC"
17910 ac_dests="src/basic_file.cc src/c++locale.cc src/messages.cc src/collate.cc"
17911 EOF
17912
17913 cat >> $CONFIG_STATUS <<\EOF
17914 srcdir=$ac_given_srcdir
17915 while test -n "$ac_sources"; do
17916   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17917   set $ac_sources; ac_source=$1; shift; ac_sources=$*
17918
17919   echo "linking $srcdir/$ac_source to $ac_dest"
17920
17921   if test ! -r $srcdir/$ac_source; then
17922     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17923   fi
17924   rm -f $ac_dest
17925
17926   # Make relative symlinks.
17927   # Remove last slash and all that follows it.  Not all systems have dirname.
17928   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17929   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17930     # The dest file is in a subdirectory.
17931     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17932     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17933     # A "../" for each directory in $ac_dest_dir_suffix.
17934     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17935   else
17936     ac_dest_dir_suffix= ac_dots=
17937   fi
17938
17939   case "$srcdir" in
17940   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17941   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17942   esac
17943
17944   # Make a symlink if possible; otherwise try a hard link.
17945   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17946     ln $srcdir/$ac_source $ac_dest; then :
17947   else
17948     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17949   fi
17950 done
17951 EOF
17952 cat >> $CONFIG_STATUS <<EOF
17953
17954 srcdir=${srcdir}
17955 host=${host}
17956 target=${target}
17957 with_multisubdir=${with_multisubdir}
17958 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17959 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17960 glibcpp_basedir=${glibcpp_basedir}
17961 CC="${CC}"
17962 CXX="${CXX}"
17963
17964 EOF
17965 cat >> $CONFIG_STATUS <<\EOF
17966 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17967 if test -n "$CONFIG_FILES"; then
17968   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17969   grep '^MULTISUBDIR =' Makefile >> src/Makefile
17970   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17971 fi
17972 chmod +x mkcheck
17973 chmod +x testsuite_flags
17974
17975 exit 0
17976 EOF
17977 chmod +x $CONFIG_STATUS
17978 rm -fr confdefs* $ac_clean_files
17979 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17980
17981
17982
17983 # Sanity checking & User-visible messages.
17984 # Checks down here, otherwise they get scrolled off before
17985 # the user will notice.
17986
17987 # Trying to get more people to read documentation.  Possibly remove
17988 # check and warn all the time. There is no "informational" AC_MSG_
17989 # macro, so these are going to be printed even when --quiet/--silent
17990 # is given.
17991 if test ! -f stamp-sanity-warned; then
17992   touch stamp-sanity-warned
17993   echo ""
17994   echo "Please make certain that you read the installation information here:"
17995   echo "  faster => ${srcdir}/docs/install.html"
17996   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17997   echo ""
17998   echo "and the configuration information here:"
17999   echo "  faster => ${srcdir}/docs/configopts.html"
18000   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18001   echo ""
18002   echo "before proceeding with ${_cv_gnu_make_command}."
18003   echo ""
18004 fi