]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3
BK
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32ac_help="$ac_help
3840fa2a 33 --disable-libtool-lock avoid locking (might break parallel builds)"
b2dad0e3
BK
34ac_help="$ac_help
35 --enable-debug extra debugging, turn off optimization [default=no]"
36ac_help="$ac_help
37 --enable-cstdio enable GNU libio for target io package. (default)
38 --enable-cstdio=LIB use LIB target-speific io package."
39ac_help="$ac_help
5b80666b 40 --enable-long-long turns on 'long long' [default=yes]"
99246c90 41ac_help="$ac_help
d0d88ce3
BK
42 --enable-cshadow-headers construct "shadowed" C header files for
43 g++ [default=no]"
b2dad0e3
BK
44ac_help="$ac_help
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
dcfa0bc8
PE
47ac_help="$ac_help
48 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
32a4595e 49 [default=none]"
b2dad0e3
BK
50
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
60df8b81 67sitefile=
b2dad0e3
BK
68srcdir=
69target=NONE
70verbose=
71x_includes=NONE
72x_libraries=NONE
73bindir='${exec_prefix}/bin'
74sbindir='${exec_prefix}/sbin'
75libexecdir='${exec_prefix}/libexec'
76datadir='${prefix}/share'
77sysconfdir='${prefix}/etc'
78sharedstatedir='${prefix}/com'
79localstatedir='${prefix}/var'
80libdir='${exec_prefix}/lib'
81includedir='${prefix}/include'
82oldincludedir='/usr/include'
83infodir='${prefix}/info'
84mandir='${prefix}/man'
85
86# Initialize some other variables.
87subdirs=
88MFLAGS= MAKEFLAGS=
89SHELL=${CONFIG_SHELL-/bin/sh}
90# Maximum number of lines to put in a shell here document.
91ac_max_here_lines=12
92
93ac_prev=
94for ac_option
95do
96
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
100 ac_prev=
101 continue
102 fi
103
104 case "$ac_option" in
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 *) ac_optarg= ;;
107 esac
108
109 # Accept the important Cygnus configure options, so we can diagnose typos.
110
111 case "$ac_option" in
112
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 ac_prev=bindir ;;
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
117
118 -build | --build | --buil | --bui | --bu)
119 ac_prev=build ;;
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
122
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
129
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 ac_prev=datadir ;;
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 | --da=*)
134 datadir="$ac_optarg" ;;
135
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
144
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 fi
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 case "$ac_option" in
153 *=*) ;;
154 *) ac_optarg=yes ;;
155 esac
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
157
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
166
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
169 with_gas=yes ;;
170
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
174 cat << EOF
175Usage: configure [options] [host]
176Options: [defaults in brackets after descriptions]
177Configuration:
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
60df8b81 182 --site-file=FILE use FILE as the site file
b2dad0e3
BK
183 --version print the version of autoconf that created configure
184Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 [same as prefix]
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208EOF
209 cat << EOF
210Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
221EOF
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
60df8b81
BK
353 -site-file | --site-file | --site-fil | --site-fi | --site-f)
354 ac_prev=sitefile ;;
355 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
356 sitefile="$ac_optarg" ;;
357
b2dad0e3
BK
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359 ac_prev=srcdir ;;
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
362
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
369
370 -target | --target | --targe | --targ | --tar | --ta | --t)
371 ac_prev=target ;;
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
374
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 verbose=yes ;;
377
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.13"
380 exit 0 ;;
381
382 -with-* | --with-*)
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 fi
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 case "$ac_option" in
390 *=*) ;;
391 *) ac_optarg=yes ;;
392 esac
393 eval "with_${ac_package}='$ac_optarg'" ;;
394
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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 eval "with_${ac_package}=no" ;;
403
404 --x)
405 # Obsolete; use --with-x.
406 with_x=yes ;;
407
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
414
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
421
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 ;;
424
425 *)
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 fi
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 fi
432 nonopt="$ac_option"
433 ;;
434
435 esac
436done
437
438if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440fi
441
442trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443
444# File descriptor usage:
445# 0 standard input
446# 1 file creation
447# 2 errors and warnings
448# 3 some systems may open it to /dev/tty
449# 4 used on the Kubota Titan
450# 6 checking for... messages and results
451# 5 compiler messages saved in config.log
452if test "$silent" = yes; then
453 exec 6>/dev/null
454else
455 exec 6>&1
456fi
457exec 5>./config.log
458
459echo "\
460This file contains any messages produced by compilers while
461running configure, to aid debugging if configure makes a mistake.
462" 1>&5
463
464# Strip out --no-create and --no-recursion so they do not pile up.
465# Also quote any args containing shell metacharacters.
466ac_configure_args=
467for ac_arg
468do
469 case "$ac_arg" in
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477 esac
478done
479
480# NLS nuisances.
481# Only set these to C if already set. These must not be set unconditionally
482# because not all systems understand e.g. LANG=C (notably SCO).
483# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484# Non-C LC_CTYPE values break the ctype check.
485if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489
490# confdefs.h avoids OS command line length limits that DEFS can exceed.
491rm -rf conftest* confdefs.h
492# AIX cpp loses on an empty file, so make sure it contains at least a newline.
493echo > confdefs.h
494
495# A filename unique to this package, relative to the directory that
496# configure is in, which we can look for to find out if srcdir is correct.
497ac_unique_file=src/complex.cc
498
499# Find the source files, if location was not specified.
500if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
503 ac_prog=$0
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506 srcdir=$ac_confdir
507 if test ! -r $srcdir/$ac_unique_file; then
508 srcdir=..
509 fi
510else
511 ac_srcdir_defaulted=no
512fi
513if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 else
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 fi
519fi
520srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521
522# Prefer explicitly selected file to automatically selected ones.
60df8b81
BK
523if test -z "$sitefile"; then
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 fi
b2dad0e3 530 fi
60df8b81
BK
531else
532 CONFIG_SITE="$sitefile"
b2dad0e3
BK
533fi
534for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
537 . "$ac_site_file"
538 fi
539done
540
541if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
543 . $cache_file
544else
545 echo "creating cache $cache_file"
546 > $cache_file
547fi
548
549ac_ext=c
550# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551ac_cpp='$CPP $CPPFLAGS'
552ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554cross_compiling=$ac_cv_prog_cc_cross
555
556ac_exeext=
557ac_objext=o
558if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='
562' ac_t=' '
563 else
564 ac_n=-n ac_c= ac_t=
565 fi
566else
567 ac_n= ac_c='\c' ac_t=
568fi
569
570
571ac_aux_dir=
572for ac_dir in .. $srcdir/..; do
573 if test -f $ac_dir/install-sh; then
574 ac_aux_dir=$ac_dir
575 ac_install_sh="$ac_aux_dir/install-sh -c"
576 break
577 elif test -f $ac_dir/install.sh; then
578 ac_aux_dir=$ac_dir
579 ac_install_sh="$ac_aux_dir/install.sh -c"
580 break
581 fi
582done
583if test -z "$ac_aux_dir"; then
584 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
585fi
586ac_config_guess=$ac_aux_dir/config.guess
587ac_config_sub=$ac_aux_dir/config.sub
588ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589
590
591# Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
592
593# Do some error checking and defaulting for the host and target type.
594# The inputs are:
595# configure --host=HOST --target=TARGET --build=BUILD NONOPT
596#
597# The rules are:
598# 1. You are not allowed to specify --host, --target, and nonopt at the
599# same time.
600# 2. Host defaults to nonopt.
601# 3. If nonopt is not specified, then host defaults to the current host,
602# as determined by config.guess.
603# 4. Target and build default to nonopt.
604# 5. If nonopt is not specified, then target and build default to host.
605
606# The aliases save the names the user supplied, while $host etc.
607# will get canonicalized.
608case $host---$target---$nonopt in
609NONE---*---* | *---NONE---* | *---*---NONE) ;;
610*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
611esac
612
613
614# Make sure we can run config.sub.
615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
616else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617fi
618
619echo $ac_n "checking host system type""... $ac_c" 1>&6
60df8b81 620echo "configure:621: checking host system type" >&5
b2dad0e3
BK
621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 fi ;;
630 *) host_alias=$nonopt ;;
631 esac ;;
632esac
633
634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638echo "$ac_t""$host" 1>&6
639
640echo $ac_n "checking target system type""... $ac_c" 1>&6
60df8b81 641echo "configure:642: checking target system type" >&5
b2dad0e3
BK
642
643target_alias=$target
644case "$target_alias" in
645NONE)
646 case $nonopt in
647 NONE) target_alias=$host_alias ;;
648 *) target_alias=$nonopt ;;
649 esac ;;
650esac
651
652target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
653target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656echo "$ac_t""$target" 1>&6
657
658echo $ac_n "checking build system type""... $ac_c" 1>&6
60df8b81 659echo "configure:660: checking build system type" >&5
b2dad0e3
BK
660
661build_alias=$build
662case "$build_alias" in
663NONE)
664 case $nonopt in
665 NONE) build_alias=$host_alias ;;
666 *) build_alias=$nonopt ;;
667 esac ;;
668esac
669
670build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
671build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674echo "$ac_t""$build" 1>&6
675
676test "$host_alias" != "$target_alias" &&
677 test "$program_prefix$program_suffix$program_transform_name" = \
678 NONENONEs,x,x, &&
679 program_prefix=${target_alias}-
680
681
682# We use these options to decide which functions to include.
683# Check whether --with-target-subdir or --without-target-subdir was given.
684if test "${with_target_subdir+set}" = set; then
685 withval="$with_target_subdir"
686 :
687fi
688
689# Check whether --with-cross-host or --without-cross-host was given.
690if test "${with_cross_host+set}" = set; then
691 withval="$with_cross_host"
692 :
693fi
694
695
696# Find a good install program. We prefer a C program (faster),
697# so one script is as good as another. But avoid the broken or
698# incompatible versions:
699# SysV /etc/install, /usr/sbin/install
700# SunOS /usr/etc/install
701# IRIX /sbin/install
702# AIX /bin/install
703# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
704# AFS /usr/afsws/bin/install, which mishandles nonexistent args
705# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
706# ./install, which can be erroneously created by make from ./install.sh.
707echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
60df8b81 708echo "configure:709: checking for a BSD compatible install" >&5
b2dad0e3
BK
709if test -z "$INSTALL"; then
710if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712else
713 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
714 for ac_dir in $PATH; do
715 # Account for people who put trailing slashes in PATH elements.
716 case "$ac_dir/" in
717 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
718 *)
719 # OSF1 and SCO ODT 3.0 have their own names for install.
720 # Don't use installbsd from OSF since it installs stuff as root
721 # by default.
722 for ac_prog in ginstall scoinst install; do
723 if test -f $ac_dir/$ac_prog; then
724 if test $ac_prog = install &&
725 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
726 # AIX install. It has an incompatible calling convention.
727 :
728 else
729 ac_cv_path_install="$ac_dir/$ac_prog -c"
730 break 2
731 fi
732 fi
733 done
734 ;;
735 esac
736 done
737 IFS="$ac_save_IFS"
738
739fi
740 if test "${ac_cv_path_install+set}" = set; then
741 INSTALL="$ac_cv_path_install"
742 else
743 # As a last resort, use the slow shell script. We don't cache a
744 # path for INSTALL within a source directory, because that will
745 # break other packages using the cache if that directory is
746 # removed, or if the path is relative.
747 INSTALL="$ac_install_sh"
748 fi
749fi
750echo "$ac_t""$INSTALL" 1>&6
751
752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
753# It thinks the first close brace ends the variable substitution.
754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
755
756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757
758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
759
760echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
60df8b81 761echo "configure:762: checking whether build environment is sane" >&5
b2dad0e3
BK
762# Just in case
763sleep 1
764echo timestamp > conftestfile
765# Do `set' in a subshell so we don't clobber the current shell's
766# arguments. Must try -L first in case configure is actually a
767# symlink; some systems play weird games with the mod time of symlinks
768# (eg FreeBSD returns the mod time of the symlink's containing
769# directory).
770if (
771 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
772 if test "$*" = "X"; then
773 # -L didn't work.
774 set X `ls -t $srcdir/configure conftestfile`
775 fi
776 if test "$*" != "X $srcdir/configure conftestfile" \
777 && test "$*" != "X conftestfile $srcdir/configure"; then
778
779 # If neither matched, then we have a broken ls. This can happen
780 # if, for instance, CONFIG_SHELL is bash and it inherits a
781 # broken ls alias from the environment. This has actually
782 # happened. Such a system could not be considered "sane".
783 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
784alias in your environment" 1>&2; exit 1; }
785 fi
786
787 test "$2" = conftestfile
788 )
789then
790 # Ok.
791 :
792else
793 { echo "configure: error: newly created file is older than distributed files!
794Check your system clock" 1>&2; exit 1; }
795fi
796rm -f conftest*
797echo "$ac_t""yes" 1>&6
798if test "$program_transform_name" = s,x,x,; then
799 program_transform_name=
800else
801 # Double any \ or $. echo might interpret backslashes.
802 cat <<\EOF_SED > conftestsed
803s,\\,\\\\,g; s,\$,$$,g
804EOF_SED
805 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
806 rm -f conftestsed
807fi
808test "$program_prefix" != NONE &&
809 program_transform_name="s,^,${program_prefix},; $program_transform_name"
810# Use a double $ so make ignores it.
811test "$program_suffix" != NONE &&
812 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
813
814# sed with no file args requires a program.
815test "$program_transform_name" = "" && program_transform_name="s,x,x,"
816
817echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
60df8b81 818echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5
b2dad0e3
BK
819set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
820if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
822else
823 cat > conftestmake <<\EOF
824all:
825 @echo 'ac_maketemp="${MAKE}"'
826EOF
827# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
828eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
829if test -n "$ac_maketemp"; then
830 eval ac_cv_prog_make_${ac_make}_set=yes
831else
832 eval ac_cv_prog_make_${ac_make}_set=no
833fi
834rm -f conftestmake
835fi
836if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
837 echo "$ac_t""yes" 1>&6
838 SET_MAKE=
839else
840 echo "$ac_t""no" 1>&6
841 SET_MAKE="MAKE=${MAKE-make}"
842fi
843
844if test $host != $build; then
845 ac_tool_prefix=${host_alias}-
846else
847 ac_tool_prefix=
848fi
849
850echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
60df8b81 851echo "configure:852: checking for Cygwin environment" >&5
b2dad0e3
BK
852if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
854else
855 cat > conftest.$ac_ext <<EOF
60df8b81 856#line 857 "configure"
b2dad0e3
BK
857#include "confdefs.h"
858
859int main() {
860
861#ifndef __CYGWIN__
862#define __CYGWIN__ __CYGWIN32__
863#endif
864return __CYGWIN__;
865; return 0; }
866EOF
60df8b81 867if { (eval echo configure:868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
868 rm -rf conftest*
869 ac_cv_cygwin=yes
870else
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
873 rm -rf conftest*
874 ac_cv_cygwin=no
875fi
876rm -f conftest*
877rm -f conftest*
878fi
879
880echo "$ac_t""$ac_cv_cygwin" 1>&6
881CYGWIN=
882test "$ac_cv_cygwin" = yes && CYGWIN=yes
883echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
60df8b81 884echo "configure:885: checking for mingw32 environment" >&5
b2dad0e3
BK
885if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
887else
888 cat > conftest.$ac_ext <<EOF
60df8b81 889#line 890 "configure"
b2dad0e3
BK
890#include "confdefs.h"
891
892int main() {
893return __MINGW32__;
894; return 0; }
895EOF
60df8b81 896if { (eval echo configure:897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
897 rm -rf conftest*
898 ac_cv_mingw32=yes
899else
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
902 rm -rf conftest*
903 ac_cv_mingw32=no
904fi
905rm -f conftest*
906rm -f conftest*
907fi
908
909echo "$ac_t""$ac_cv_mingw32" 1>&6
910MINGW32=
911test "$ac_cv_mingw32" = yes && MINGW32=yes
912
913 # Check whether --enable-multilib or --disable-multilib was given.
914if test "${enable_multilib+set}" = set; then
915 enableval="$enable_multilib"
916 case "${enableval}" in
917 yes) multilib=yes ;;
918 no) multilib=no ;;
919 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
920 esac
921else
922 multilib=yes
923fi
924
925 if test "${srcdir}" = "."; then
926 if test "${with_target_subdir}" != "."; then
927 glibcpp_basedir="${srcdir}/${with_multisrctop}../."
928 else
929 glibcpp_basedir="${srcdir}/${with_multisrctop}."
930 fi
931 else
932 glibcpp_basedir="${srcdir}/."
933 fi
934
935
936
b2dad0e3
BK
937PACKAGE=libstdc++
938
939VERSION=2.90.8
940
941if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
942 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
943fi
944cat >> confdefs.h <<EOF
945#define PACKAGE "$PACKAGE"
946EOF
947
948cat >> confdefs.h <<EOF
949#define VERSION "$VERSION"
950EOF
951
952
953
954missing_dir=`cd $ac_aux_dir && pwd`
955echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
5780a46b 956echo "configure:957: checking for working aclocal" >&5
b2dad0e3
BK
957# Run test in a subshell; some versions of sh will print an error if
958# an executable is not found, even if stderr is redirected.
959# Redirect stdin to placate older versions of autoconf. Sigh.
960if (aclocal --version) < /dev/null > /dev/null 2>&1; then
961 ACLOCAL=aclocal
962 echo "$ac_t""found" 1>&6
963else
964 ACLOCAL="$missing_dir/missing aclocal"
965 echo "$ac_t""missing" 1>&6
966fi
967
968echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
5780a46b 969echo "configure:970: checking for working autoconf" >&5
b2dad0e3
BK
970# Run test in a subshell; some versions of sh will print an error if
971# an executable is not found, even if stderr is redirected.
972# Redirect stdin to placate older versions of autoconf. Sigh.
973if (autoconf --version) < /dev/null > /dev/null 2>&1; then
974 AUTOCONF=autoconf
975 echo "$ac_t""found" 1>&6
976else
977 AUTOCONF="$missing_dir/missing autoconf"
978 echo "$ac_t""missing" 1>&6
979fi
980
981echo $ac_n "checking for working automake""... $ac_c" 1>&6
5780a46b 982echo "configure:983: checking for working automake" >&5
b2dad0e3
BK
983# Run test in a subshell; some versions of sh will print an error if
984# an executable is not found, even if stderr is redirected.
985# Redirect stdin to placate older versions of autoconf. Sigh.
986if (automake --version) < /dev/null > /dev/null 2>&1; then
987 AUTOMAKE=automake
988 echo "$ac_t""found" 1>&6
989else
990 AUTOMAKE="$missing_dir/missing automake"
991 echo "$ac_t""missing" 1>&6
992fi
993
994echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
5780a46b 995echo "configure:996: checking for working autoheader" >&5
b2dad0e3
BK
996# Run test in a subshell; some versions of sh will print an error if
997# an executable is not found, even if stderr is redirected.
998# Redirect stdin to placate older versions of autoconf. Sigh.
999if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1000 AUTOHEADER=autoheader
1001 echo "$ac_t""found" 1>&6
1002else
1003 AUTOHEADER="$missing_dir/missing autoheader"
1004 echo "$ac_t""missing" 1>&6
1005fi
1006
1007echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
5780a46b 1008echo "configure:1009: checking for working makeinfo" >&5
b2dad0e3
BK
1009# Run test in a subshell; some versions of sh will print an error if
1010# an executable is not found, even if stderr is redirected.
1011# Redirect stdin to placate older versions of autoconf. Sigh.
1012if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1013 MAKEINFO=makeinfo
1014 echo "$ac_t""found" 1>&6
1015else
1016 MAKEINFO="$missing_dir/missing makeinfo"
1017 echo "$ac_t""missing" 1>&6
1018fi
1019
1020
1021
28861379
BK
1022 # Never versions of autoconf add an underscore to these functions.
1023 # Prevent future problems ...
1024
1025
1026
1027
5780a46b
BK
1028
1029# AC_PROG_CC
1030
b2dad0e3
BK
1031# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1032# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1033# are probably using a cross compiler, which will not be able to fully
1034# link an executable. This should really be fixed in autoconf
1035# itself.
1036
1037
1038
1039
1040# Extract the first word of "gcc", so it can be a program name with args.
1041set dummy gcc; ac_word=$2
1042echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1043echo "configure:1044: checking for $ac_word" >&5
b2dad0e3
BK
1044if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046else
1047 if test -n "$CC"; then
1048 ac_cv_prog_CC="$CC" # Let the user override the test.
1049else
1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1051 ac_dummy="$PATH"
1052 for ac_dir in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_CC="gcc"
1056 break
1057 fi
1058 done
1059 IFS="$ac_save_ifs"
1060fi
1061fi
1062CC="$ac_cv_prog_CC"
1063if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1065else
1066 echo "$ac_t""no" 1>&6
1067fi
1068
1069if test -z "$CC"; then
1070 # Extract the first word of "cc", so it can be a program name with args.
1071set dummy cc; ac_word=$2
1072echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1073echo "configure:1074: checking for $ac_word" >&5
b2dad0e3
BK
1074if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1076else
1077 if test -n "$CC"; then
1078 ac_cv_prog_CC="$CC" # Let the user override the test.
1079else
1080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 ac_prog_rejected=no
1082 ac_dummy="$PATH"
1083 for ac_dir in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1086 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1087 ac_prog_rejected=yes
1088 continue
1089 fi
1090 ac_cv_prog_CC="cc"
1091 break
1092 fi
1093 done
1094 IFS="$ac_save_ifs"
1095if test $ac_prog_rejected = yes; then
1096 # We found a bogon in the path, so make sure we never use it.
1097 set dummy $ac_cv_prog_CC
1098 shift
1099 if test $# -gt 0; then
1100 # We chose a different compiler from the bogus one.
1101 # However, it has the same basename, so the bogon will be chosen
1102 # first if we set CC to just the basename; use the full file name.
1103 shift
1104 set dummy "$ac_dir/$ac_word" "$@"
1105 shift
1106 ac_cv_prog_CC="$@"
1107 fi
1108fi
1109fi
1110fi
1111CC="$ac_cv_prog_CC"
1112if test -n "$CC"; then
1113 echo "$ac_t""$CC" 1>&6
1114else
1115 echo "$ac_t""no" 1>&6
1116fi
1117
1118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1119fi
1120
1121echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
28861379 1122echo "configure:1123: checking whether we are using GNU C" >&5
b2dad0e3
BK
1123if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125else
1126 cat > conftest.c <<EOF
1127#ifdef __GNUC__
1128 yes;
1129#endif
1130EOF
28861379 1131if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1132 ac_cv_prog_gcc=yes
1133else
1134 ac_cv_prog_gcc=no
1135fi
1136fi
1137
1138echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1139
1140if test $ac_cv_prog_gcc = yes; then
1141 GCC=yes
1142 ac_test_CFLAGS="${CFLAGS+set}"
1143 ac_save_CFLAGS="$CFLAGS"
1144 CFLAGS=
1145 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
28861379 1146echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5
b2dad0e3
BK
1147if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149else
1150 echo 'void f(){}' > conftest.c
1151if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1152 ac_cv_prog_cc_g=yes
1153else
1154 ac_cv_prog_cc_g=no
1155fi
1156rm -f conftest*
1157
1158fi
1159
1160echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1161 if test "$ac_test_CFLAGS" = set; then
1162 CFLAGS="$ac_save_CFLAGS"
1163 elif test $ac_cv_prog_cc_g = yes; then
1164 CFLAGS="-g -O2"
1165 else
1166 CFLAGS="-O2"
1167 fi
1168else
1169 GCC=
1170 test "${CFLAGS+set}" = set || CFLAGS="-g"
1171fi
1172
1173
5780a46b
BK
1174# Can't just call these here as g++ requires libstc++ to be built....
1175# AC_PROG_CXX
1176
b2dad0e3
BK
1177# Likewise for AC_PROG_CXX.
1178
1179
1180
1181for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1182do
1183# Extract the first word of "$ac_prog", so it can be a program name with args.
1184set dummy $ac_prog; ac_word=$2
1185echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1186echo "configure:1187: checking for $ac_word" >&5
b2dad0e3
BK
1187if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189else
1190 if test -n "$CXX"; then
1191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1192else
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_CXX="$ac_prog"
1199 break
1200 fi
1201 done
1202 IFS="$ac_save_ifs"
1203fi
1204fi
1205CXX="$ac_cv_prog_CXX"
1206if test -n "$CXX"; then
1207 echo "$ac_t""$CXX" 1>&6
1208else
1209 echo "$ac_t""no" 1>&6
1210fi
1211
1212test -n "$CXX" && break
1213done
1214test -n "$CXX" || CXX="gcc"
1215
1216test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1217
1218echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
28861379 1219echo "configure:1220: checking whether we are using GNU C++" >&5
b2dad0e3
BK
1220if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222else
1223 cat > conftest.C <<EOF
1224#ifdef __GNUC__
1225 yes;
1226#endif
1227EOF
28861379 1228if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1229 ac_cv_prog_gxx=yes
1230else
1231 ac_cv_prog_gxx=no
1232fi
1233fi
1234
1235echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1236
1237if test $ac_cv_prog_gxx = yes; then
1238 GXX=yes
1239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS="$CXXFLAGS"
1241 CXXFLAGS=
1242 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
28861379 1243echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5
b2dad0e3
BK
1244if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247 echo 'void f(){}' > conftest.cc
1248if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g=yes
1250else
1251 ac_cv_prog_cxx_g=no
1252fi
1253rm -f conftest*
1254
1255fi
1256
1257echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1261 CXXFLAGS="-g -O2"
1262 else
1263 CXXFLAGS="-O2"
1264 fi
1265else
1266 GXX=
1267 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1268fi
1269
1270
5780a46b 1271 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
b2dad0e3
BK
1272set dummy ${ac_tool_prefix}as; ac_word=$2
1273echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1274echo "configure:1275: checking for $ac_word" >&5
b2dad0e3
BK
1275if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277else
1278 if test -n "$AS"; then
1279 ac_cv_prog_AS="$AS" # Let the user override the test.
1280else
1281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1282 ac_dummy="$PATH"
1283 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f $ac_dir/$ac_word; then
1286 ac_cv_prog_AS="${ac_tool_prefix}as"
1287 break
1288 fi
1289 done
1290 IFS="$ac_save_ifs"
1291 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1292fi
1293fi
1294AS="$ac_cv_prog_AS"
1295if test -n "$AS"; then
1296 echo "$ac_t""$AS" 1>&6
1297else
1298 echo "$ac_t""no" 1>&6
1299fi
1300
1301
1302
5780a46b 1303 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
b2dad0e3
BK
1304set dummy ${ac_tool_prefix}ar; ac_word=$2
1305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1306echo "configure:1307: checking for $ac_word" >&5
b2dad0e3
BK
1307if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309else
1310 if test -n "$AR"; then
1311 ac_cv_prog_AR="$AR" # Let the user override the test.
1312else
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_AR="${ac_tool_prefix}ar"
1319 break
1320 fi
1321 done
1322 IFS="$ac_save_ifs"
1323 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1324fi
1325fi
1326AR="$ac_cv_prog_AR"
1327if test -n "$AR"; then
1328 echo "$ac_t""$AR" 1>&6
1329else
1330 echo "$ac_t""no" 1>&6
1331fi
1332
1333
1334
5780a46b 1335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b2dad0e3
BK
1336set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1338echo "configure:1339: checking for $ac_word" >&5
b2dad0e3
BK
1339if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1341else
1342 if test -n "$RANLIB"; then
1343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1344else
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1346 ac_dummy="$PATH"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1351 break
1352 fi
1353 done
1354 IFS="$ac_save_ifs"
1355fi
1356fi
1357RANLIB="$ac_cv_prog_RANLIB"
1358if test -n "$RANLIB"; then
1359 echo "$ac_t""$RANLIB" 1>&6
1360else
1361 echo "$ac_t""no" 1>&6
1362fi
1363
1364
1365if test -z "$ac_cv_prog_RANLIB"; then
1366if test -n "$ac_tool_prefix"; then
1367 # Extract the first word of "ranlib", so it can be a program name with args.
1368set dummy ranlib; ac_word=$2
1369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1370echo "configure:1371: checking for $ac_word" >&5
b2dad0e3
BK
1371if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373else
1374 if test -n "$RANLIB"; then
1375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1376else
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_RANLIB="ranlib"
1383 break
1384 fi
1385 done
1386 IFS="$ac_save_ifs"
1387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1388fi
1389fi
1390RANLIB="$ac_cv_prog_RANLIB"
1391if test -n "$RANLIB"; then
1392 echo "$ac_t""$RANLIB" 1>&6
1393else
1394 echo "$ac_t""no" 1>&6
1395fi
1396
1397else
1398 RANLIB=":"
1399fi
1400fi
1401
1402
5780a46b 1403 # Find a good install program. We prefer a C program (faster),
b2dad0e3
BK
1404# so one script is as good as another. But avoid the broken or
1405# incompatible versions:
1406# SysV /etc/install, /usr/sbin/install
1407# SunOS /usr/etc/install
1408# IRIX /sbin/install
1409# AIX /bin/install
1410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1413# ./install, which can be erroneously created by make from ./install.sh.
1414echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
28861379 1415echo "configure:1416: checking for a BSD compatible install" >&5
b2dad0e3
BK
1416if test -z "$INSTALL"; then
1417if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419else
1420 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1421 for ac_dir in $PATH; do
1422 # Account for people who put trailing slashes in PATH elements.
1423 case "$ac_dir/" in
1424 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1425 *)
1426 # OSF1 and SCO ODT 3.0 have their own names for install.
1427 # Don't use installbsd from OSF since it installs stuff as root
1428 # by default.
1429 for ac_prog in ginstall scoinst install; do
1430 if test -f $ac_dir/$ac_prog; then
1431 if test $ac_prog = install &&
1432 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1433 # AIX install. It has an incompatible calling convention.
1434 :
1435 else
1436 ac_cv_path_install="$ac_dir/$ac_prog -c"
1437 break 2
1438 fi
1439 fi
1440 done
1441 ;;
1442 esac
1443 done
1444 IFS="$ac_save_IFS"
1445
1446fi
1447 if test "${ac_cv_path_install+set}" = set; then
1448 INSTALL="$ac_cv_path_install"
1449 else
1450 # As a last resort, use the slow shell script. We don't cache a
1451 # path for INSTALL within a source directory, because that will
1452 # break other packages using the cache if that directory is
1453 # removed, or if the path is relative.
1454 INSTALL="$ac_install_sh"
1455 fi
1456fi
1457echo "$ac_t""$INSTALL" 1>&6
1458
1459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1460# It thinks the first close brace ends the variable substitution.
1461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1462
1463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1464
1465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1466
1467
5780a46b 1468 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
28861379 1469echo "configure:1470: checking whether to enable maintainer-specific portions of Makefiles" >&5
b2dad0e3
BK
1470 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1471if test "${enable_maintainer_mode+set}" = set; then
1472 enableval="$enable_maintainer_mode"
1473 USE_MAINTAINER_MODE=$enableval
1474else
1475 USE_MAINTAINER_MODE=no
1476fi
1477
1478 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1479
1480
1481if test $USE_MAINTAINER_MODE = yes; then
1482 MAINTAINER_MODE_TRUE=
1483 MAINTAINER_MODE_FALSE='#'
1484else
1485 MAINTAINER_MODE_TRUE='#'
1486 MAINTAINER_MODE_FALSE=
1487fi
1488 MAINT=$MAINTAINER_MODE_TRUE
1489
1490
1491
5780a46b
BK
1492 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1493 # at least currently, we never actually build a program, so we never
1494 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1495 # fails, because we are probably configuring with a cross compiler
1496 # which cant create executables. So we include AC_EXEEXT to keep
1497 # automake happy, but we dont execute it, since we dont care about
1498 # the result.
1499 if false; then
1500
b2dad0e3
BK
1501
1502echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
28861379 1503echo "configure:1504: checking for executable suffix" >&5
b2dad0e3
BK
1504if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1506else
1507 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1508 ac_cv_exeext=.exe
1509else
1510 rm -f conftest*
1511 echo 'int main () { return 0; }' > conftest.$ac_ext
1512 ac_cv_exeext=
28861379 1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
b2dad0e3
BK
1514 for file in conftest.*; do
1515 case $file in
60df8b81 1516 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
b2dad0e3
BK
1517 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1518 esac
1519 done
1520 else
1521 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1522 fi
1523 rm -f conftest*
1524 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1525fi
1526fi
1527
1528EXEEXT=""
1529test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1530echo "$ac_t""${ac_cv_exeext}" 1>&6
1531ac_exeext=$EXEEXT
1532
5780a46b 1533 fi
b2dad0e3 1534
5780a46b
BK
1535 # configure.host sets the following important variables
1536 # glibcpp_cflags - host specific C compiler flags
1537 # glibcpp_cxxflags - host specific C++ compiler flags
1538 glibcpp_cflags=
1539 glibcpp_cxxflags=
b2dad0e3 1540
5780a46b 1541 . ${glibcpp_basedir}/configure.host
b2dad0e3 1542
5780a46b
BK
1543 case ${glibcpp_basedir} in
1544 /* | A-Za-z:/\\*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1545 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1546 esac
3840fa2a 1547
5780a46b
BK
1548 GLIBCPP_CFLAGS="${glibcpp_cflags}"
1549 GLIBCPP_CXXFLAGS="${glibcpp_cxxflags}"
29bd52c8 1550
29bd52c8
PE
1551
1552
5780a46b 1553
b2dad0e3
BK
1554# Check whether --enable-shared or --disable-shared was given.
1555if test "${enable_shared+set}" = set; then
1556 enableval="$enable_shared"
1557 p=${PACKAGE-default}
1558case "$enableval" in
1559yes) enable_shared=yes ;;
1560no) enable_shared=no ;;
1561*)
1562 enable_shared=no
1563 # Look at the argument we got. We use all the common list separators.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1565 for pkg in $enableval; do
1566 if test "X$pkg" = "X$p"; then
1567 enable_shared=yes
1568 fi
1569 done
1570 IFS="$ac_save_ifs"
1571 ;;
1572esac
1573else
1574 enable_shared=yes
1575fi
1576
1577# Check whether --enable-static or --disable-static was given.
1578if test "${enable_static+set}" = set; then
1579 enableval="$enable_static"
1580 p=${PACKAGE-default}
1581case "$enableval" in
1582yes) enable_static=yes ;;
1583no) enable_static=no ;;
1584*)
1585 enable_static=no
1586 # Look at the argument we got. We use all the common list separators.
1587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1588 for pkg in $enableval; do
1589 if test "X$pkg" = "X$p"; then
1590 enable_static=yes
1591 fi
1592 done
1593 IFS="$ac_save_ifs"
1594 ;;
1595esac
1596else
1597 enable_static=yes
1598fi
1599
1600# Check whether --enable-fast-install or --disable-fast-install was given.
1601if test "${enable_fast_install+set}" = set; then
1602 enableval="$enable_fast_install"
1603 p=${PACKAGE-default}
1604case "$enableval" in
1605yes) enable_fast_install=yes ;;
1606no) enable_fast_install=no ;;
1607*)
1608 enable_fast_install=no
1609 # Look at the argument we got. We use all the common list separators.
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1611 for pkg in $enableval; do
1612 if test "X$pkg" = "X$p"; then
1613 enable_fast_install=yes
1614 fi
1615 done
1616 IFS="$ac_save_ifs"
1617 ;;
1618esac
1619else
1620 enable_fast_install=yes
1621fi
1622
1623# Extract the first word of "ranlib", so it can be a program name with args.
1624set dummy ranlib; ac_word=$2
1625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28861379 1626echo "configure:1627: checking for $ac_word" >&5
b2dad0e3
BK
1627if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1629else
1630 if test -n "$RANLIB"; then
1631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1632else
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 ac_dummy="$PATH"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1638 ac_cv_prog_RANLIB="ranlib"
1639 break
1640 fi
1641 done
1642 IFS="$ac_save_ifs"
1643 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1644fi
1645fi
1646RANLIB="$ac_cv_prog_RANLIB"
1647if test -n "$RANLIB"; then
1648 echo "$ac_t""$RANLIB" 1>&6
1649else
1650 echo "$ac_t""no" 1>&6
1651fi
1652
1653# Check whether --with-gnu-ld or --without-gnu-ld was given.
1654if test "${with_gnu_ld+set}" = set; then
1655 withval="$with_gnu_ld"
1656 test "$withval" = no || with_gnu_ld=yes
1657else
1658 with_gnu_ld=no
1659fi
1660
1661ac_prog=ld
1662if test "$ac_cv_prog_gcc" = yes; then
1663 # Check if gcc -print-prog-name=ld gives a path.
1664 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
28861379 1665echo "configure:1666: checking for ld used by GCC" >&5
b2dad0e3
BK
1666 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1667 case "$ac_prog" in
1668 # Accept absolute paths.
3840fa2a 1669 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
1670 re_direlt='/[^/][^/]*/\.\./'
1671 # Canonicalize the path of ld
1672 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1673 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1674 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1675 done
1676 test -z "$LD" && LD="$ac_prog"
1677 ;;
1678 "")
1679 # If it fails, then pretend we aren't using GCC.
1680 ac_prog=ld
1681 ;;
1682 *)
1683 # If it is relative, then search for the first ld in PATH.
1684 with_gnu_ld=unknown
1685 ;;
1686 esac
1687elif test "$with_gnu_ld" = yes; then
1688 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
28861379 1689echo "configure:1690: checking for GNU ld" >&5
b2dad0e3
BK
1690else
1691 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
28861379 1692echo "configure:1693: checking for non-GNU ld" >&5
b2dad0e3
BK
1693fi
1694if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696else
1697 if test -z "$LD"; then
3840fa2a 1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1699 for ac_dir in $PATH; do
1700 test -z "$ac_dir" && ac_dir=.
3840fa2a 1701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
b2dad0e3
BK
1702 ac_cv_path_LD="$ac_dir/$ac_prog"
1703 # Check to see if the program is GNU ld. I'd rather use --version,
1704 # but apparently some GNU ld's only accept -v.
1705 # Break only if it was the GNU/non-GNU ld that we prefer.
1706 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1707 test "$with_gnu_ld" != no && break
1708 else
1709 test "$with_gnu_ld" != yes && break
1710 fi
1711 fi
1712 done
1713 IFS="$ac_save_ifs"
1714else
1715 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1716fi
1717fi
1718
1719LD="$ac_cv_path_LD"
1720if test -n "$LD"; then
1721 echo "$ac_t""$LD" 1>&6
1722else
1723 echo "$ac_t""no" 1>&6
1724fi
1725test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1726echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
28861379 1727echo "configure:1728: checking if the linker ($LD) is GNU ld" >&5
b2dad0e3
BK
1728if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1730else
1731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1732if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1733 ac_cv_prog_gnu_ld=yes
1734else
1735 ac_cv_prog_gnu_ld=no
1736fi
1737fi
1738
1739echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1740
1741
1742echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
28861379 1743echo "configure:1744: checking for BSD-compatible nm" >&5
b2dad0e3
BK
1744if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747 if test -n "$NM"; then
1748 # Let the user override the test.
1749 ac_cv_path_NM="$NM"
1750else
3840fa2a 1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1753 test -z "$ac_dir" && ac_dir=.
3840fa2a 1754 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
b2dad0e3
BK
1755 # Check to see if the nm accepts a BSD-compat flag.
1756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1757 # nm: unknown option "B" ignored
1758 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1759 ac_cv_path_NM="$ac_dir/nm -B"
1760 break
1761 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1762 ac_cv_path_NM="$ac_dir/nm -p"
1763 break
1764 else
1765 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1766 continue # so that we can try to find one that supports BSD flags
1767 fi
1768 fi
1769 done
1770 IFS="$ac_save_ifs"
1771 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1772fi
1773fi
1774
1775NM="$ac_cv_path_NM"
1776echo "$ac_t""$NM" 1>&6
1777
1778echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
28861379 1779echo "configure:1780: checking whether ln -s works" >&5
b2dad0e3
BK
1780if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1782else
1783 rm -f conftestdata
1784if ln -s X conftestdata 2>/dev/null
1785then
1786 rm -f conftestdata
1787 ac_cv_prog_LN_S="ln -s"
1788else
1789 ac_cv_prog_LN_S=ln
1790fi
1791fi
1792LN_S="$ac_cv_prog_LN_S"
1793if test "$ac_cv_prog_LN_S" = "ln -s"; then
1794 echo "$ac_t""yes" 1>&6
1795else
1796 echo "$ac_t""no" 1>&6
1797fi
1798
1799
b2dad0e3
BK
1800# Check for any special flags to pass to ltconfig.
1801libtool_flags="--cache-file=$cache_file"
1802test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1803test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1804test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1805test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1806test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3840fa2a
BK
1807libtool_flags="$libtool_flags --enable-dlopen"
1808
1809# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1810if test "${enable_libtool_lock+set}" = set; then
1811 enableval="$enable_libtool_lock"
1812 :
1813fi
1814
1815test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1816test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3
BK
1817
1818# Some flags need to be propagated to the compiler or linker for good
1819# libtool support.
93c63813 1820case "$host" in
b2dad0e3
BK
1821*-*-irix6*)
1822 # Find out which ABI we are using.
28861379
BK
1823 echo '#line 1824 "configure"' > conftest.$ac_ext
1824 if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
1825 case "`/usr/bin/file conftest.o`" in
1826 *32-bit*)
1827 LD="${LD-ld} -32"
1828 ;;
1829 *N32*)
1830 LD="${LD-ld} -n32"
1831 ;;
1832 *64-bit*)
1833 LD="${LD-ld} -64"
1834 ;;
1835 esac
1836 fi
1837 rm -rf conftest*
1838 ;;
1839
1840*-*-sco3.2v5*)
1841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1842 SAVE_CFLAGS="$CFLAGS"
1843 CFLAGS="$CFLAGS -belf"
1844 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
28861379 1845echo "configure:1846: checking whether the C compiler needs -belf" >&5
b2dad0e3
BK
1846if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848else
1849 cat > conftest.$ac_ext <<EOF
28861379 1850#line 1851 "configure"
b2dad0e3
BK
1851#include "confdefs.h"
1852
1853int main() {
1854
1855; return 0; }
1856EOF
28861379 1857if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
1858 rm -rf conftest*
1859 lt_cv_cc_needs_belf=yes
1860else
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 lt_cv_cc_needs_belf=no
1865fi
1866rm -f conftest*
1867fi
1868
1869echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1872 CFLAGS="$SAVE_CFLAGS"
1873 fi
1874 ;;
1875
1876
1877esac
1878
1879
1880# Save cache, so that ltconfig can load it
1881cat > confcache <<\EOF
1882# This file is a shell script that caches the results of configure
1883# tests run on this system so they can be shared between configure
1884# scripts and configure runs. It is not useful on other systems.
1885# If it contains results you don't want to keep, you may remove or edit it.
1886#
1887# By default, configure uses ./config.cache as the cache file,
1888# creating it if it does not exist already. You can give configure
1889# the --cache-file=FILE option to use a different cache file; that is
1890# what configure does when it calls configure scripts in
1891# subdirectories, so they share the cache.
1892# Giving --cache-file=/dev/null disables caching, for debugging configure.
1893# config.status only pays attention to the cache file if you give it the
1894# --recheck option to rerun configure.
1895#
1896EOF
1897# The following way of writing the cache mishandles newlines in values,
1898# but we know of no workaround that is simple, portable, and efficient.
1899# So, don't put newlines in cache variables' values.
1900# Ultrix sh set writes to stderr and can't be redirected directly,
1901# and sets the high bit in the cache file unless we assign to the vars.
1902(set) 2>&1 |
1903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1904 *ac_space=\ *)
1905 # `set' does not quote correctly, so add quotes (double-quote substitution
1906 # turns \\\\ into \\, and sed turns \\ into \).
1907 sed -n \
1908 -e "s/'/'\\\\''/g" \
1909 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1910 ;;
1911 *)
1912 # `set' quotes correctly as required by POSIX, so do not add quotes.
1913 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1914 ;;
1915 esac >> confcache
1916if cmp -s $cache_file confcache; then
1917 :
1918else
1919 if test -w $cache_file; then
1920 echo "updating cache $cache_file"
1921 cat confcache > $cache_file
1922 else
1923 echo "not updating unwritable cache $cache_file"
1924 fi
1925fi
1926rm -f confcache
1927
1928
1929# Actually configure libtool. ac_aux_dir is where install-sh is found.
1930CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3840fa2a
BK
1931LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1932LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1933DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
b2dad0e3 1934${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
93c63813 1935$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
b2dad0e3
BK
1936|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1937
1938# Reload cache, that may have been modified by ltconfig
1939if test -r "$cache_file"; then
1940 echo "loading cache $cache_file"
1941 . $cache_file
1942else
1943 echo "creating cache $cache_file"
1944 > $cache_file
1945fi
1946
1947
1948# This can be used to rebuild libtool when needed
1949LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1950
1951# Always use our own libtool.
1952LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1953
1954# Redirect the config.log output again, so that the ltconfig log is not
1955# clobbered by the next message.
1956exec 5>>./config.log
1957
5780a46b 1958echo $ac_n "checking for GNU make""... $ac_c" 1>&6
28861379 1959echo "configure:1960: checking for GNU make" >&5
5780a46b
BK
1960if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962else
1963 _cv_gnu_make_command='' ;
1964 for a in "${MAKE:-make}" make gmake gnumake ; do
1965 if ( $a --version 2> /dev/null | grep -q GNU ) ; then
1966 _cv_gnu_make_command=$a ;
1967 break;
1968 fi
1969 done ;
1970
1971fi
1972
1973echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
1974 if test "x$_cv_gnu_make_command" != "x" ; then
1975 ifGNUmake='' ;
1976 else
1977 ifGNUmake='#' ;
1978 fi
1979
1980
1981 if test "x$_cv_gnu_make_command" = "x"; then
1982 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
1983 fi
b2dad0e3
BK
1984
1985
1986
1987
1988# Check for c++ or library specific bits that don't require linking.
c470c17d 1989echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
28861379 1990echo "configure:1991: checking how to run the C preprocessor" >&5
c470c17d
BK
1991# On Suns, sometimes $CPP names a directory.
1992if test -n "$CPP" && test -d "$CPP"; then
1993 CPP=
1994fi
1995if test -z "$CPP"; then
1996if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
b2dad0e3
BK
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998else
c470c17d
BK
1999 # This must be in double quotes, not single quotes, because CPP may get
2000 # substituted into the Makefile and "${CC-cc}" will confuse make.
2001 CPP="${CC-cc} -E"
2002 # On the NeXT, cc -E runs the code through the compiler's parser,
2003 # not just through cpp.
b2dad0e3 2004 cat > conftest.$ac_ext <<EOF
28861379 2005#line 2006 "configure"
b2dad0e3 2006#include "confdefs.h"
c470c17d
BK
2007#include <assert.h>
2008Syntax Error
b2dad0e3
BK
2009EOF
2010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2011{ (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013if test -z "$ac_err"; then
2014 :
2015else
2016 echo "$ac_err" >&5
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
c470c17d
BK
2020 CPP="${CC-cc} -E -traditional-cpp"
2021 cat > conftest.$ac_ext <<EOF
28861379 2022#line 2023 "configure"
c470c17d
BK
2023#include "confdefs.h"
2024#include <assert.h>
2025Syntax Error
2026EOF
2027ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2028{ (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2029ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2030if test -z "$ac_err"; then
2031 :
2032else
2033 echo "$ac_err" >&5
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 rm -rf conftest*
2037 CPP="${CC-cc} -nologo -E"
2038 cat > conftest.$ac_ext <<EOF
28861379 2039#line 2040 "configure"
c470c17d
BK
2040#include "confdefs.h"
2041#include <assert.h>
2042Syntax Error
2043EOF
2044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2045{ (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2047if test -z "$ac_err"; then
2048 :
2049else
2050 echo "$ac_err" >&5
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2053 rm -rf conftest*
2054 CPP=/lib/cpp
b2dad0e3
BK
2055fi
2056rm -f conftest*
2057fi
c470c17d 2058rm -f conftest*
b2dad0e3 2059fi
c470c17d
BK
2060rm -f conftest*
2061 ac_cv_prog_CPP="$CPP"
2062fi
2063 CPP="$ac_cv_prog_CPP"
2064else
2065 ac_cv_prog_CPP="$CPP"
2066fi
2067echo "$ac_t""$CPP" 1>&6
b2dad0e3 2068
a4e99046 2069
d3a12960 2070 # Sanity check that g++ is capable of dealing with v-3.
5b80666b 2071 echo $ac_n "checking for g++ that will successfully compile this code""... $ac_c" 1>&6
28861379 2072echo "configure:2073: checking for g++ that will successfully compile this code" >&5
b2dad0e3 2073 cat > conftest.$ac_ext <<EOF
28861379 2074#line 2075 "configure"
b2dad0e3
BK
2075#include "confdefs.h"
2076
2077 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2078 ok
2079 #endif
2080
2081EOF
2082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2083 egrep "ok" >/dev/null 2>&1; then
2084 rm -rf conftest*
2085 gpp_satisfactory=yes
2086else
2087 rm -rf conftest*
2088 { echo "configure: error: "please upgrade to gcc-2.95 or above"" 1>&2; exit 1; }
2089fi
2090rm -f conftest*
2091
2092 echo "$ac_t""$gpp_satisfactory" 1>&6
2093
b2dad0e3
BK
2094
2095 echo $ac_n "checking for cpu primitives directory""... $ac_c" 1>&6
28861379 2096echo "configure:2097: checking for cpu primitives directory" >&5
c470c17d 2097 CPU_FLAGS=
5780a46b 2098 case "${target_cpu}" in
b2dad0e3
BK
2099 alpha*)
2100 cpu_include_dir="config/cpu/alpha"
2101 ;;
2102 arm*)
2103 cpu_include_dir="config/cpu/arm"
2104 ;;
bf93f43b 2105 i386)
b2dad0e3 2106 cpu_include_dir="config/cpu/i386"
bf93f43b
BK
2107 ;;
2108 i486 | i586 | i686 | i786)
2109 cpu_include_dir="config/cpu/i486"
b2dad0e3
BK
2110 ;;
2111 powerpc | rs6000)
2112 cpu_include_dir="config/cpu/powerpc"
c470c17d 2113 CPU_FLAGS='-mcpu=powerpc'
b2dad0e3
BK
2114 ;;
2115 sparc64 | ultrasparc)
2116 cpu_include_dir="config/cpu/sparc/sparc64"
2117 ;;
2118 sparc*)
2119 cpu_include_dir="config/cpu/sparc/sparc32"
2120 ;;
2121 *)
2122 cpu_include_dir="config/cpu/generic"
2123 ;;
2124 esac
2125 echo "$ac_t""$cpu_include_dir" 1>&6
2126
cde28f0d 2127
b2dad0e3
BK
2128
2129
2130# Enable all the crazy c++ stuff.
2131# Check whether --enable-debug or --disable-debug was given.
2132if test "${enable_debug+set}" = set; then
2133 enableval="$enable_debug"
5780a46b 2134 case "${enableval}" in
b2dad0e3
BK
2135 yes) enable_debug=yes ;;
2136 no) enable_debug=no ;;
2137 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2138 esac
2139else
2140 enable_debug=no
2141fi
5780a46b
BK
2142
2143case "${enable_debug}" in
cde28f0d 2144 yes)
c470c17d 2145 DEBUG_FLAGS='-O0 -ggdb'
cde28f0d 2146 ;;
f3b004d8 2147 no)
c470c17d 2148 DEBUG_FLAGS='-g'
f3b004d8 2149 ;;
b2dad0e3
BK
2150esac
2151
2152
2153
2154 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
28861379 2155echo "configure:2156: checking for cstdio to use" >&5
b2dad0e3
BK
2156 # Check whether --enable-cstdio or --disable-cstdio was given.
2157if test "${enable_cstdio+set}" = set; then
2158 enableval="$enable_cstdio"
2159 if test x$enable_cstdio = xno; then
2160 enable_cstdio=libio
2161 fi
2162else
2163 enable_cstdio=libio
2164fi
2165
2166
2167 enable_cstdio_flag=$enable_cstdio
2168
2169 case x${enable_cstdio_flag} in
dd75251f
BK
2170 xlibio | x | xno | xnone | xyes)
2171 # default
2172 CSTDIO_H=config/c_io_libio.h
2173 CSTDIO_CC=config/c_io_libio.cc
2174 echo "$ac_t""libio" 1>&6
2175
2176 # see if we are on a system with libio native (ie, linux)
2177 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
b2dad0e3 2178echo $ac_n "checking for libio.h""... $ac_c" 1>&6
28861379 2179echo "configure:2180: checking for libio.h" >&5
b2dad0e3
BK
2180if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182else
2183 cat > conftest.$ac_ext <<EOF
28861379 2184#line 2185 "configure"
b2dad0e3
BK
2185#include "confdefs.h"
2186#include <libio.h>
2187EOF
2188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2189{ (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191if test -z "$ac_err"; then
2192 rm -rf conftest*
2193 eval "ac_cv_header_$ac_safe=yes"
2194else
2195 echo "$ac_err" >&5
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_header_$ac_safe=no"
2200fi
2201rm -f conftest*
2202fi
2203if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 has_libio=yes
2206else
2207 echo "$ac_t""no" 1>&6
2208has_libio=no
2209fi
2210
20427c6b 2211
dd75251f
BK
2212 # Need to check and see what version of glibc is being used. If
2213 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2214 # compile most of libio for linux systems.
2215 if test x$has_libio = x"yes"; then
2216 case "$target" in
2217 *-*-linux*)
2218 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
28861379 2219echo "configure:2220: checking for glibc version >= 2.2" >&5
dd75251f 2220 cat > conftest.$ac_ext <<EOF
28861379 2221#line 2222 "configure"
f3b004d8 2222#include "confdefs.h"
dd75251f 2223
99b51359 2224 #include <features.h>
dd75251f
BK
2225 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2226 ok
2227 #endif
2228
f3b004d8 2229EOF
dd75251f
BK
2230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2231 egrep "ok" >/dev/null 2>&1; then
f3b004d8 2232 rm -rf conftest*
dd75251f 2233 glibc_satisfactory=yes
f3b004d8 2234else
f3b004d8 2235 rm -rf conftest*
dd75251f 2236 glibc_satisfactory=no
f3b004d8
BK
2237fi
2238rm -f conftest*
f3b004d8 2239
dd75251f
BK
2240 echo "$ac_t""$glibc_satisfactory" 1>&6
2241 ;;
2242 esac
f3b004d8 2243
dd75251f 2244 if test x$glibc_satisfactory = x"yes"; then
dd75251f
BK
2245 need_libio=no
2246 need_xtra_libio=no
2247 need_wlibio=no
2248 else
dd75251f
BK
2249 need_libio=yes
2250 need_xtra_libio=yes
2251 # bkoz XXX need to add checks to enable this
2252 need_wlibio=yes
2253 fi
20427c6b 2254
dd75251f
BK
2255 # Using libio, but <libio.h> doesn't exist on the target system. . .
2256 else
dd75251f
BK
2257 need_libio=yes
2258 need_xtra_libio=no
2259 # bkoz XXX need to add checks to enable this
2260 need_wlibio=no
2261 fi
2262 ;;
c4561450 2263
dd75251f
BK
2264 xwince)
2265 CSTDIO_H=config/c_io_wince.h
2266 CSTDIO_CC=config/c_io_wince.cc
2267 echo "$ac_t""wince" 1>&6
2268
2269 need_libio=no
dd75251f
BK
2270 ;;
2271 *)
2272 echo "$enable_cstdio is an unknown io package" 1>&2
2273 exit 1
2274 ;;
b2dad0e3
BK
2275 esac
2276
2277
2278
2279
2280if test "$need_libio" = yes; then
2281 GLIBCPP_NEED_LIBIO_TRUE=
2282 GLIBCPP_NEED_LIBIO_FALSE='#'
2283else
2284 GLIBCPP_NEED_LIBIO_TRUE='#'
2285 GLIBCPP_NEED_LIBIO_FALSE=
2286fi
20427c6b
BK
2287
2288
dd75251f
BK
2289if test "$need_xtra_libio" = yes; then
2290 GLIBCPP_NEED_XTRA_LIBIO_TRUE=
2291 GLIBCPP_NEED_XTRA_LIBIO_FALSE='#'
2292else
2293 GLIBCPP_NEED_XTRA_LIBIO_TRUE='#'
2294 GLIBCPP_NEED_XTRA_LIBIO_FALSE=
2295fi
2296
2297
20427c6b
BK
2298if test "$need_wlibio" = yes; then
2299 GLIBCPP_NEED_WLIBIO_TRUE=
2300 GLIBCPP_NEED_WLIBIO_FALSE='#'
2301else
2302 GLIBCPP_NEED_WLIBIO_TRUE='#'
2303 GLIBCPP_NEED_WLIBIO_FALSE=
2304fi
b2dad0e3 2305
209fe19b 2306
209fe19b
BK
2307 # Check whether --enable-long-long or --disable-long-long was given.
2308if test "${enable_long_long+set}" = set; then
2309 enableval="$enable_long_long"
2310 case "$enableval" in
2311 yes) enable_long_long=yes ;;
2312 no) enable_long_long=no ;;
2313 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
2314 esac
2315else
2316 enable_long_long=yes
2317fi
2318
2319 # Check for the existance of functions used if long long is enabled.
0137be2d 2320 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
28861379 2321echo "configure:2322: checking for strtoll" >&5
0137be2d
PE
2322if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324else
2325 cat > conftest.$ac_ext <<EOF
28861379 2326#line 2327 "configure"
0137be2d
PE
2327#include "confdefs.h"
2328/* System header to define __stub macros and hopefully few prototypes,
2329 which can conflict with char strtoll(); below. */
2330#include <assert.h>
2331/* Override any gcc2 internal prototype to avoid an error. */
2332/* We use char because int might match the return type of a gcc2
2333 builtin and then its argument prototype would still apply. */
2334char strtoll();
2335
2336int main() {
2337
2338/* The GNU C library defines this for functions which it implements
2339 to always fail with ENOSYS. Some functions are actually named
2340 something starting with __ and the normal name is an alias. */
2341#if defined (__stub_strtoll) || defined (__stub___strtoll)
2342choke me
2343#else
2344strtoll();
2345#endif
2346
2347; return 0; }
2348EOF
28861379 2349if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0137be2d
PE
2350 rm -rf conftest*
2351 eval "ac_cv_func_strtoll=yes"
2352else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 eval "ac_cv_func_strtoll=no"
2357fi
2358rm -f conftest*
2359fi
2360
2361if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2363 :
2364else
2365 echo "$ac_t""no" 1>&6
209fe19b 2366ac_strtoll=no
0137be2d
PE
2367fi
2368
209fe19b 2369 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
28861379 2370echo "configure:2371: checking for strtoull" >&5
209fe19b
BK
2371if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
b2dad0e3 2373else
209fe19b 2374 cat > conftest.$ac_ext <<EOF
28861379 2375#line 2376 "configure"
209fe19b
BK
2376#include "confdefs.h"
2377/* System header to define __stub macros and hopefully few prototypes,
2378 which can conflict with char strtoull(); below. */
2379#include <assert.h>
2380/* Override any gcc2 internal prototype to avoid an error. */
2381/* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383char strtoull();
2384
2385int main() {
2386
2387/* The GNU C library defines this for functions which it implements
2388 to always fail with ENOSYS. Some functions are actually named
2389 something starting with __ and the normal name is an alias. */
2390#if defined (__stub_strtoull) || defined (__stub___strtoull)
2391choke me
2392#else
2393strtoull();
2394#endif
2395
2396; return 0; }
2397EOF
28861379 2398if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
209fe19b
BK
2399 rm -rf conftest*
2400 eval "ac_cv_func_strtoull=yes"
2401else
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 rm -rf conftest*
2405 eval "ac_cv_func_strtoull=no"
b2dad0e3 2406fi
209fe19b
BK
2407rm -f conftest*
2408fi
2409
2410if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 :
2413else
2414 echo "$ac_t""no" 1>&6
2415ac_strtoull=no
2416fi
2417
2418
3840fa2a 2419 echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
28861379 2420echo "configure:2421: checking for enabled long long" >&5
209fe19b 2421 if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
3840fa2a
BK
2422 enable_long_long=no;
2423 fi;
d0d88ce3 2424 echo "$ac_t""$enable_long_long" 1>&6
3840fa2a 2425
b2dad0e3
BK
2426 case "$enable_long_long" in
2427 yes) cat >> confdefs.h <<\EOF
2428#define _GLIBCPP_USE_LONG_LONG 1
2429EOF
2430
2431 ;;
2432 esac
2433
d0d88ce3 2434echo $ac_n "checking for enabled cshadow headers""... $ac_c" 1>&6
28861379 2435echo "configure:2436: checking for enabled cshadow headers" >&5
d0d88ce3
BK
2436# Check whether --enable-cshadow-headers or --disable-cshadow-headers was given.
2437if test "${enable_cshadow_headers+set}" = set; then
2438 enableval="$enable_cshadow_headers"
5780a46b 2439
99246c90 2440 case "$enableval" in
5780a46b 2441 yes) enable_cshadow_headers=yes
d0d88ce3 2442 ;;
5780a46b 2443 no) enable_cshadow_headers=no
d0d88ce3 2444 ;;
5780a46b 2445 *) { echo "configure: error: Unknown argument to enable/disable shadowed C headers" 1>&2; exit 1; }
d0d88ce3 2446 ;;
5780a46b 2447 esac
99246c90 2448else
d0d88ce3 2449 enable_cshadow_headers=no
99246c90 2450fi
5780a46b
BK
2451
2452 echo "$ac_t""$enable_cshadow_headers" 1>&6
2453
2454 case "$enable_cshadow_headers" in
99246c90 2455 yes)
99b51359 2456 CSHADOWFLAGS=""
99246c90
PE
2457 ;;
2458 no)
5b80666b 2459 CSHADOWFLAGS=""
99246c90 2460 ;;
5780a46b 2461 esac
b2dad0e3 2462
5780a46b
BK
2463
2464
5b80666b 2465
5b80666b
BK
2466if test "$enable_cshadow_headers" = yes; then
2467 GLIBCPP_USE_CSHADOW_TRUE=
2468 GLIBCPP_USE_CSHADOW_FALSE='#'
2469else
2470 GLIBCPP_USE_CSHADOW_TRUE='#'
2471 GLIBCPP_USE_CSHADOW_FALSE=
2472fi
2473
2474
b2dad0e3 2475 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
28861379 2476echo "configure:2477: checking for threads package to use" >&5
b2dad0e3
BK
2477 # Check whether --enable-threads or --disable-threads was given.
2478if test "${enable_threads+set}" = set; then
2479 enableval="$enable_threads"
2480 if test x$enable_threads = xno; then
2481 enable_threads=''
2482 fi
2483else
2484 enable_threads=''
2485fi
2486
2487
2488 enable_threads_flag=$enable_threads
2489
2490 case x${enable_threads_flag} in
2491 x | xno | xnone)
2492 # No threads
2493 target_thread_file='single'
2494 ;;
2495 xyes)
2496 # default
2497 target_thread_file=''
2498 ;;
2499 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
2500 xsolaris | xwin32 | xdce | xvxworks)
2501 target_thread_file=$enable_threads_flag
2502 ;;
2503 *)
2504 echo "$enable_threads is an unknown thread package" 1>&2
2505 exit 1
2506 ;;
2507 esac
2508
2509 case "$target_thread_file" in
2510 no | none | single)
2511 THREADS=none
2512 ;;
2513 posix | pthreads)
2514 THREADS=posix
0828a0bd 2515 case "$target" in
b2dad0e3
BK
2516 *-*-linux*)
2517 ;;
2518 esac
2519 ;;
2520 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2521 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2522 ;;
2523 *)
2524 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2525 ;;
2526 esac
2527 echo "$ac_t""$THREADS" 1>&6
2528
2529 THREADLIBS=
2530 THREADINCS=
2531 THREADDEPS=
2532 THREADOBJS=
2533 THREADH=
2534 THREADSPEC=
2535 case "$THREADS" in
2536 posix)
2537 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2538echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
28861379 2539echo "configure:2540: checking for pthread.h" >&5
b2dad0e3
BK
2540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542else
2543 cat > conftest.$ac_ext <<EOF
28861379 2544#line 2545 "configure"
b2dad0e3
BK
2545#include "confdefs.h"
2546#include <pthread.h>
2547EOF
2548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2549{ (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551if test -z "$ac_err"; then
2552 rm -rf conftest*
2553 eval "ac_cv_header_$ac_safe=yes"
2554else
2555 echo "$ac_err" >&5
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 rm -rf conftest*
2559 eval "ac_cv_header_$ac_safe=no"
2560fi
2561rm -f conftest*
2562fi
2563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 have_pthread_h=yes
2566else
2567 echo "$ac_t""no" 1>&6
2568have_pthread_h=
2569fi
2570
2571 THREADLIBS=-lpthread
2572 THREADSPEC=-lpthread
2573 THREADH=threads-posix.h
2574 ;;
2575 none)
2576 THREADH=threads-no.h
2577 ;;
2578 esac
2579
2580
2581
2582
2583
c4561450 2584
b2dad0e3 2585
b2dad0e3 2586#GLIBCPP_ENABLE_RELIBGCC([../..])
dcfa0bc8
PE
2587# Check whether --enable-cxx-flags or --disable-cxx-flags was given.
2588if test "${enable_cxx_flags+set}" = set; then
2589 enableval="$enable_cxx_flags"
2590 case "x$enableval" in
5780a46b
BK
2591 xyes)
2592 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
2593 xno|x)
2594 enable_cxx_flags='' ;;
2595 *)
2596 enable_cxx_flags="$enableval" ;;
dcfa0bc8
PE
2597 esac
2598else
32a4595e 2599 enable_cxx_flags='none'
dcfa0bc8 2600fi
5780a46b
BK
2601
2602
2603if test "$enable_cxx_flags" = "none"; then
2604 enable_cxx_flags='';
2605fi
2606
dcfa0bc8
PE
2607if test -n "$enable_cxx_flags"; then
2608 for f in $enable_cxx_flags; do
2609 case "$f" in
991a40fc 2610 -fhonor-std) ;;
dcfa0bc8
PE
2611 -*) ;;
2612 *) # and we're trying to pass /what/ exactly?
2613 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
2614 esac
2615 done
2616fi
2617EXTRA_CXX_FLAGS="$enable_cxx_flags"
2618
2619
b2dad0e3 2620
cde28f0d 2621
b2dad0e3
BK
2622if test -n "$with_cross_host"; then
2623
2624 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2625 # may not work correctly, because the compiler may not be able to
2626 # link executables.
2627
2628 xcompiling=1
2629 NATIVE=no
2630 # If Canadian cross, then don't pick up tools from the build
2631 # directory.
2632 if test "$build" != "$with_cross_host"; then
2633 CANADIAN=yes
2634 NULL_TARGET=yes
2635 else
2636 CANADIAN=no
2637 NULL_TARGET=no
2638 fi
2639
2640 case "$target_alias" in
2641 *-wince-*)
2642 # Configure for Microsoft Windows CE, or whatever they are
2643 # currently calling it.
2644 cat >> confdefs.h <<\EOF
2645#define HAVE_FLOAT_H 1
2646EOF
2647
2648
2649 cat >> confdefs.h <<\EOF
2650#define HAVE__FINITE 1
2651EOF
2652
2653 cat >> confdefs.h <<\EOF
2654#define HAVE__ISNAN 1
2655EOF
2656
2657 cat >> confdefs.h <<\EOF
2658#define HAVE__COPYSIGN 1
2659EOF
2660
2661 cat >> confdefs.h <<\EOF
2662#define HAVE__FPCLASS 1
2663EOF
2664
2665 cat >> confdefs.h <<\EOF
2666#define HAVE_MODF 1
2667EOF
2668
2669
2670 ctype_include_dir="config/wince"
2671
2672
2673 cat >> confdefs.h <<\EOF
2674#define _GLIBCPP_NEED_MBSTATE_T 1
2675EOF
2676
2677
2678 cat >> confdefs.h <<\EOF
2679#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
2680EOF
2681
2682 cat >> confdefs.h <<\EOF
2683#define _GLIBCPP_BUGGY_COMPLEX 1
2684EOF
2685
2686 ;;
2687 *)
2688 # We assume newlib. This lets us hard-code the functions we know
2689 # we'll have.
2690 cat >> confdefs.h <<\EOF
2691#define HAVE_FINITE 1
2692EOF
2693
2694 cat >> confdefs.h <<\EOF
2695#define HAVE_ISNAN 1
2696EOF
2697
2698 cat >> confdefs.h <<\EOF
2699#define HAVE_ISNANF 1
2700EOF
2701
2702 cat >> confdefs.h <<\EOF
2703#define HAVE_ISINF 1
2704EOF
2705
2706 cat >> confdefs.h <<\EOF
2707#define HAVE_ISINFF 1
2708EOF
2709
2710
2711 ctype_include_dir="config/newlib"
2712
2713
2714 cat >> confdefs.h <<\EOF
2715#define _GLIBCPP_NEED_MBSTATE_T 1
2716EOF
2717
2718
2719 cat >> confdefs.h <<\EOF
2720#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
2721EOF
2722
2723 cat >> confdefs.h <<\EOF
2724#define _GLIBCPP_BUGGY_COMPLEX 1
2725EOF
2726
2727 # need to ceck for faster f versions of math functions, ie sinf?
2728 ;;
2729 esac
2730else
2731
2732 # We are being configured natively. We can do more elaborate tests
2733 # that include AC_TRY_COMPILE now, as the linker is assumed to be
2734 # working.
2735
2736 xcompiling=0
2737 NATIVE=yes
2738 CANADIAN=no
2739 NULL_TARGET=no
2740
2741 # Check for available headers.
2742 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
2743 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h
2744do
2745ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2746echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
28861379 2747echo "configure:2748: checking for $ac_hdr" >&5
b2dad0e3
BK
2748if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750else
2751 cat > conftest.$ac_ext <<EOF
28861379 2752#line 2753 "configure"
b2dad0e3
BK
2753#include "confdefs.h"
2754#include <$ac_hdr>
2755EOF
2756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
28861379 2757{ (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762else
2763 echo "$ac_err" >&5
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=no"
2768fi
2769rm -f conftest*
2770fi
2771if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2774 cat >> confdefs.h <<EOF
2775#define $ac_tr_hdr 1
2776EOF
2777
2778else
2779 echo "$ac_t""no" 1>&6
2780fi
2781done
2782
2783
2784
c470c17d
BK
2785 # All these tests are for C++; save the language and the compiler flags.
2786 # The CXXFLAGS thing is suspicious, but based on similar bits
2787 # found in GLIBCPP_CONFIGURE.
2788
2789 ac_ext=C
2790# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2791ac_cpp='$CXXCPP $CPPFLAGS'
2792ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2793ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2794cross_compiling=$ac_cv_prog_cxx_cross
2795
2796 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2797 ac_save_CXXFLAGS="$CXXFLAGS"
2798 WERROR='-Werror'
2799
2800 # Check for pragma system_header.
2801 echo $ac_n "checking for g++ that supports pragma system_header""... $ac_c" 1>&6
28861379 2802echo "configure:2803: checking for g++ that supports pragma system_header" >&5
c470c17d
BK
2803 CXXFLAGS='-Wunknown-pragmas -Werror'
2804 cat > conftest.$ac_ext <<EOF
28861379 2805#line 2806 "configure"
c470c17d 2806#include "confdefs.h"
6c329b93 2807#pragma GCC system_header
c470c17d
BK
2808int main() {
2809int foo;
2810
2811; return 0; }
2812EOF
28861379 2813if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2814 rm -rf conftest*
2815 ac_newpragma=yes
2816else
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 rm -rf conftest*
2820 ac_newpragma=no
2821fi
2822rm -f conftest*
2823 if test "$ac_test_CXXFLAGS" = set; then
2824 CXXFLAGS="$ac_save_CXXFLAGS"
2825 else
2826 # this is the suspicious part
2827 CXXFLAGS=''
2828 fi
2829 if test "$ac_newpragma" = "no"; then
2830 WERROR="$WERROR -Wno-unknown-pragmas"
2831 fi
2832 echo "$ac_t""$ac_newpragma" 1>&6
2833
2834 # Check for more sophisticated diagnostic control.
2835 echo $ac_n "checking for g++ that supports -fdiagnostics-show-location=once""... $ac_c" 1>&6
28861379 2836echo "configure:2837: checking for g++ that supports -fdiagnostics-show-location=once" >&5
c470c17d
BK
2837 CXXFLAGS='-fdiagnostics-show-location=once'
2838 cat > conftest.$ac_ext <<EOF
28861379 2839#line 2840 "configure"
c470c17d
BK
2840#include "confdefs.h"
2841
2842int main() {
2843int foo;
2844
2845; return 0; }
2846EOF
28861379 2847if { (eval echo configure:2848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2848 rm -rf conftest*
2849 ac_gabydiags=yes
2850else
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 rm -rf conftest*
2854 ac_gabydiags=no
2855fi
2856rm -f conftest*
2857 if test "$ac_test_CXXFLAGS" = set; then
2858 CXXFLAGS="$ac_save_CXXFLAGS"
2859 else
2860 # this is the suspicious part
2861 CXXFLAGS=''
2862 fi
2863 if test "$ac_gabydiags" = "yes"; then
2864 WFMT_FLAGS='-fdiagnostics-show-location=once'
2865 fi
2866 echo "$ac_t""$ac_gabydiags" 1>&6
2867
2868 # Check for -ffunction-sections -fdata-sections
2869 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
28861379 2870echo "configure:2871: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
c470c17d
BK
2871 CXXFLAGS='-ffunction-sections -fdata-sections'
2872 cat > conftest.$ac_ext <<EOF
28861379 2873#line 2874 "configure"
c470c17d
BK
2874#include "confdefs.h"
2875
2876int main() {
2877int foo;
2878
2879; return 0; }
2880EOF
28861379 2881if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c470c17d
BK
2882 rm -rf conftest*
2883 ac_fdsections=yes
2884else
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 rm -rf conftest*
2888 ac_fdsections=no
2889fi
2890rm -f conftest*
2891 if test "$ac_test_CXXFLAGS" = set; then
2892 CXXFLAGS="$ac_save_CXXFLAGS"
2893 else
2894 # this is the suspicious part
2895 CXXFLAGS=''
2896 fi
2897 if test "$ac_fdsections" = "yes"; then
2898 SECTION_FLAGS='-ffunction-sections -fdata-sections'
2899 fi
2900 echo "$ac_t""$ac_fdsections" 1>&6
2901
2902 ac_ext=c
2903# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2904ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2906ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2907cross_compiling=$ac_cv_prog_cc_cross
2908
2909
2910
2911
2912
2913
421173e6
PE
2914 # If we're not using GNU ld, then there's no point in even trying these
2915 # tests. Check for that first. We should have already tested for gld
2916 # by now (in libtool), but require it now just to be safe...
2917
2918 if test "$ac_cv_prog_gnu_ld" = "no"; then
2919 SECTION_LDFLAGS=''
2920 OPT_LDFLAGS=''
2921
2922 else # GNU ld it is! Joy and bunny rabbits!
2923
2924 # All these tests are for C++; save the language and the compiler flags.
2925 # Need to do this so that g++ won't try to link in libstdc++
2926 ac_test_CFLAGS="${CFLAGS+set}"
2927 ac_save_CFLAGS="$CFLAGS"
2928 CFLAGS='-x c++ -Wl,--gc-sections'
2929
2930 # Check for -Wl,--gc-sections
2931 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
2932echo "configure:2933: checking for ld that supports -Wl,--gc-sections" >&5
2933 if test "$cross_compiling" = yes; then
38bd7296
BK
2934 ac_sectionLDflags=yes
2935else
c470c17d 2936 cat > conftest.$ac_ext <<EOF
421173e6 2937#line 2938 "configure"
c470c17d
BK
2938#include "confdefs.h"
2939
421173e6
PE
2940 int main(void)
2941 {
2942 try { throw 1; }
2943 catch (...) { };
2944 return 0;
2945 }
2946
c470c17d 2947EOF
421173e6 2948if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
38bd7296 2949then
c470c17d
BK
2950 ac_sectionLDflags=yes
2951else
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
38bd7296 2954 rm -fr conftest*
c470c17d
BK
2955 ac_sectionLFflags=no
2956fi
38bd7296
BK
2957rm -fr conftest*
2958fi
2959
421173e6
PE
2960 if test "$ac_test_CFLAGS" = set; then
2961 CFLAGS="$ac_save_CFLAGS"
2962 else
2963 # this is the suspicious part
2964 CFLAGS=''
2965 fi
2966 if test "$ac_sectionLDflags" = "yes"; then
2967 SECTION_LDFLAGS='-Wl,--gc-sections'
2968 fi
2969 echo "$ac_t""$ac_sectionLDflags" 1>&6
2970 OPT_LDFLAGS='-Wl,-O1'
c470c17d 2971
421173e6
PE
2972 fi
2973
c470c17d
BK
2974
2975
2976
11fc1858 2977
421173e6
PE
2978 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
2979echo "configure:2980: checking for __builtin_abs declaration" >&5
2980 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982else
11fc1858 2983
421173e6
PE
2984
2985 ac_ext=C
54fa7415
SK
2986# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2987ac_cpp='$CXXCPP $CPPFLAGS'
2988ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2989ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2990cross_compiling=$ac_cv_prog_cxx_cross
2991
421173e6
PE
2992 cat > conftest.$ac_ext <<EOF
2993#line 2994 "configure"
b2dad0e3
BK
2994#include "confdefs.h"
2995#include <math.h>
2996int main() {
11fc1858 2997 __builtin_abs(0);
b2dad0e3
BK
2998; return 0; }
2999EOF
421173e6 3000if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3001 rm -rf conftest*
421173e6 3002 glibcpp_cv_func___builtin_abs_use=yes
b2dad0e3
BK
3003else
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
421173e6 3007 glibcpp_cv_func___builtin_abs_use=no
b2dad0e3
BK
3008fi
3009rm -f conftest*
421173e6 3010 ac_ext=c
11fc1858
BK
3011# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3012ac_cpp='$CPP $CPPFLAGS'
3013ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3014ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3015cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3016
421173e6
PE
3017
3018fi
3019
3020 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
3021 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
11fc1858 3022 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
421173e6
PE
3023echo "configure:3024: checking for __builtin_abs linkage" >&5
3024 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026else
3027
11fc1858 3028 cat > conftest.$ac_ext <<EOF
421173e6 3029#line 3030 "configure"
b2dad0e3
BK
3030#include "confdefs.h"
3031#include <math.h>
3032int main() {
11fc1858 3033 __builtin_abs(0);
b2dad0e3
BK
3034; return 0; }
3035EOF
421173e6 3036if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3037 rm -rf conftest*
421173e6 3038 glibcpp_cv_func___builtin_abs_link=yes
b2dad0e3
BK
3039else
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 rm -rf conftest*
421173e6 3043 glibcpp_cv_func___builtin_abs_link=no
b2dad0e3
BK
3044fi
3045rm -f conftest*
421173e6
PE
3046
3047fi
3048
3049 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
3050 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
11fc1858
BK
3051 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3052 cat >> confdefs.h <<EOF
3053#define ${ac_tr_func} 1
b2dad0e3
BK
3054EOF
3055
11fc1858 3056 fi
b2dad0e3 3057 fi
b2dad0e3 3058
11fc1858 3059
421173e6
PE
3060 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
3061echo "configure:3062: checking for __builtin_fabsf declaration" >&5
3062 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064else
11fc1858 3065
421173e6
PE
3066
3067 ac_ext=C
11fc1858
BK
3068# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3069ac_cpp='$CXXCPP $CPPFLAGS'
3070ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3071ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3072cross_compiling=$ac_cv_prog_cxx_cross
b2dad0e3 3073
421173e6
PE
3074 cat > conftest.$ac_ext <<EOF
3075#line 3076 "configure"
b2dad0e3 3076#include "confdefs.h"
54fa7415 3077#include <math.h>
b2dad0e3 3078int main() {
11fc1858 3079 __builtin_fabsf(0);
b2dad0e3
BK
3080; return 0; }
3081EOF
421173e6 3082if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3083 rm -rf conftest*
421173e6 3084 glibcpp_cv_func___builtin_fabsf_use=yes
b2dad0e3
BK
3085else
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088 rm -rf conftest*
421173e6 3089 glibcpp_cv_func___builtin_fabsf_use=no
b2dad0e3
BK
3090fi
3091rm -f conftest*
421173e6 3092 ac_ext=c
11fc1858
BK
3093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3096ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3097cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3098
421173e6
PE
3099
3100fi
3101
3102 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
3103 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
11fc1858 3104 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
421173e6
PE
3105echo "configure:3106: checking for __builtin_fabsf linkage" >&5
3106 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108else
3109
11fc1858 3110 cat > conftest.$ac_ext <<EOF
421173e6 3111#line 3112 "configure"
b2dad0e3 3112#include "confdefs.h"
54fa7415
SK
3113#include <math.h>
3114int main() {
11fc1858 3115 __builtin_fabsf(0);
54fa7415 3116; return 0; }
b2dad0e3 3117EOF
421173e6 3118if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3119 rm -rf conftest*
421173e6 3120 glibcpp_cv_func___builtin_fabsf_link=yes
b2dad0e3 3121else
b2dad0e3
BK
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -rf conftest*
421173e6 3125 glibcpp_cv_func___builtin_fabsf_link=no
b2dad0e3
BK
3126fi
3127rm -f conftest*
421173e6
PE
3128
3129fi
3130
3131 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
3132 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
11fc1858
BK
3133 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3134 cat >> confdefs.h <<EOF
3135#define ${ac_tr_func} 1
b2dad0e3 3136EOF
b2dad0e3 3137
11fc1858 3138 fi
54fa7415 3139 fi
b2dad0e3 3140
11fc1858 3141
421173e6
PE
3142 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
3143echo "configure:3144: checking for __builtin_fabs declaration" >&5
3144 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146else
11fc1858 3147
421173e6
PE
3148
3149 ac_ext=C
11fc1858
BK
3150# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3151ac_cpp='$CXXCPP $CPPFLAGS'
3152ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3153ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3154cross_compiling=$ac_cv_prog_cxx_cross
b2dad0e3 3155
421173e6
PE
3156 cat > conftest.$ac_ext <<EOF
3157#line 3158 "configure"
b2dad0e3 3158#include "confdefs.h"
54fa7415 3159#include <math.h>
b2dad0e3 3160int main() {
11fc1858 3161 __builtin_fabs(0);
b2dad0e3
BK
3162; return 0; }
3163EOF
421173e6 3164if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3 3165 rm -rf conftest*
421173e6 3166 glibcpp_cv_func___builtin_fabs_use=yes
b2dad0e3
BK
3167else
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170 rm -rf conftest*
421173e6 3171 glibcpp_cv_func___builtin_fabs_use=no
b2dad0e3
BK
3172fi
3173rm -f conftest*
421173e6 3174 ac_ext=c
11fc1858
BK
3175# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3178ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3179cross_compiling=$ac_cv_prog_cc_cross
b2dad0e3 3180
421173e6
PE
3181
3182fi
3183
3184 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
3185 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
11fc1858 3186 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
421173e6
PE
3187echo "configure:3188: checking for __builtin_fabs linkage" >&5
3188 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190else
3191
11fc1858 3192 cat > conftest.$ac_ext <<EOF
421173e6 3193#line 3194 "configure"
b2dad0e3 3194#include "confdefs.h"
54fa7415 3195#include <math.h>
b2dad0e3 3196int main() {
11fc1858 3197 __builtin_fabs(0);
b2dad0e3
BK
3198; return 0; }
3199EOF
421173e6 3200if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3 3201 rm -rf conftest*
421173e6 3202 glibcpp_cv_func___builtin_fabs_link=yes
b2dad0e3
BK
3203else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
421173e6 3207 glibcpp_cv_func___builtin_fabs_link=no
54fa7415
SK
3208fi
3209rm -f conftest*
421173e6
PE
3210
3211fi
3212
3213 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
3214 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
11fc1858
BK
3215 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3216 cat >> confdefs.h <<EOF
3217#define ${ac_tr_func} 1
54fa7415
SK
3218EOF
3219
11fc1858 3220 fi
54fa7415 3221 fi
54fa7415 3222
11fc1858 3223
421173e6
PE
3224 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
3225echo "configure:3226: checking for __builtin_fabsl declaration" >&5
3226 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228else
11fc1858 3229
421173e6
PE
3230
3231 ac_ext=C
11fc1858
BK
3232# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3233ac_cpp='$CXXCPP $CPPFLAGS'
3234ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3235ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3236cross_compiling=$ac_cv_prog_cxx_cross
54fa7415 3237
421173e6
PE
3238 cat > conftest.$ac_ext <<EOF
3239#line 3240 "configure"
54fa7415
SK
3240#include "confdefs.h"
3241#include <math.h>
3242int main() {
11fc1858 3243 __builtin_fabsl(0);
54fa7415
SK
3244; return 0; }
3245EOF
421173e6 3246if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3247 rm -rf conftest*
421173e6 3248 glibcpp_cv_func___builtin_fabsl_use=yes
54fa7415
SK
3249else
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -rf conftest*
421173e6 3253 glibcpp_cv_func___builtin_fabsl_use=no
54fa7415
SK
3254fi
3255rm -f conftest*
421173e6 3256 ac_ext=c
11fc1858
BK
3257# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3260ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3261cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3262
421173e6
PE
3263
3264fi
3265
3266 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
3267 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11fc1858 3268 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
421173e6
PE
3269echo "configure:3270: checking for __builtin_fabsl linkage" >&5
3270 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272else
3273
11fc1858 3274 cat > conftest.$ac_ext <<EOF
421173e6 3275#line 3276 "configure"
54fa7415
SK
3276#include "confdefs.h"
3277#include <math.h>
3278int main() {
11fc1858 3279 __builtin_fabsl(0);
54fa7415
SK
3280; return 0; }
3281EOF
421173e6 3282if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3283 rm -rf conftest*
421173e6 3284 glibcpp_cv_func___builtin_fabsl_link=yes
54fa7415
SK
3285else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 rm -rf conftest*
421173e6 3289 glibcpp_cv_func___builtin_fabsl_link=no
54fa7415
SK
3290fi
3291rm -f conftest*
421173e6
PE
3292
3293fi
3294
3295 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
3296 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11fc1858
BK
3297 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3298 cat >> confdefs.h <<EOF
3299#define ${ac_tr_func} 1
54fa7415
SK
3300EOF
3301
11fc1858 3302 fi
54fa7415 3303 fi
54fa7415 3304
11fc1858 3305
421173e6
PE
3306 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
3307echo "configure:3308: checking for __builtin_labs declaration" >&5
3308 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310else
11fc1858 3311
421173e6
PE
3312
3313 ac_ext=C
11fc1858
BK
3314# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3315ac_cpp='$CXXCPP $CPPFLAGS'
3316ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3317ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3318cross_compiling=$ac_cv_prog_cxx_cross
3319
421173e6
PE
3320 cat > conftest.$ac_ext <<EOF
3321#line 3322 "configure"
54fa7415
SK
3322#include "confdefs.h"
3323#include <math.h>
3324int main() {
11fc1858 3325 __builtin_labs(0);
54fa7415
SK
3326; return 0; }
3327EOF
421173e6 3328if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3329 rm -rf conftest*
421173e6 3330 glibcpp_cv_func___builtin_labs_use=yes
54fa7415
SK
3331else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
421173e6 3335 glibcpp_cv_func___builtin_labs_use=no
54fa7415
SK
3336fi
3337rm -f conftest*
421173e6 3338 ac_ext=c
11fc1858
BK
3339# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3340ac_cpp='$CPP $CPPFLAGS'
3341ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3342ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3343cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3344
421173e6
PE
3345
3346fi
3347
3348 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
3349 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11fc1858 3350 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
421173e6
PE
3351echo "configure:3352: checking for __builtin_labs linkage" >&5
3352 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3354else
3355
11fc1858 3356 cat > conftest.$ac_ext <<EOF
421173e6 3357#line 3358 "configure"
54fa7415
SK
3358#include "confdefs.h"
3359#include <math.h>
3360int main() {
11fc1858 3361 __builtin_labs(0);
54fa7415
SK
3362; return 0; }
3363EOF
421173e6 3364if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3365 rm -rf conftest*
421173e6 3366 glibcpp_cv_func___builtin_labs_link=yes
54fa7415
SK
3367else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -rf conftest*
421173e6 3371 glibcpp_cv_func___builtin_labs_link=no
54fa7415
SK
3372fi
3373rm -f conftest*
421173e6
PE
3374
3375fi
3376
3377 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
3378 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11fc1858
BK
3379 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3380 cat >> confdefs.h <<EOF
3381#define ${ac_tr_func} 1
54fa7415
SK
3382EOF
3383
11fc1858 3384 fi
54fa7415 3385 fi
11fc1858
BK
3386
3387
3388
421173e6
PE
3389 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
3390echo "configure:3391: checking for __builtin_sqrtf declaration" >&5
3391 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393else
11fc1858 3394
421173e6
PE
3395
3396 ac_ext=C
11fc1858
BK
3397# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3398ac_cpp='$CXXCPP $CPPFLAGS'
3399ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3400ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3401cross_compiling=$ac_cv_prog_cxx_cross
3402
421173e6
PE
3403 cat > conftest.$ac_ext <<EOF
3404#line 3405 "configure"
54fa7415
SK
3405#include "confdefs.h"
3406#include <math.h>
3407int main() {
11fc1858 3408 __builtin_sqrtf(0);
54fa7415
SK
3409; return 0; }
3410EOF
421173e6 3411if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3412 rm -rf conftest*
421173e6 3413 glibcpp_cv_func___builtin_sqrtf_use=yes
54fa7415
SK
3414else
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 rm -rf conftest*
421173e6 3418 glibcpp_cv_func___builtin_sqrtf_use=no
54fa7415
SK
3419fi
3420rm -f conftest*
421173e6 3421 ac_ext=c
11fc1858
BK
3422# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3425ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3426cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3427
421173e6
PE
3428
3429fi
3430
3431 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
3432 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11fc1858 3433 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
421173e6
PE
3434echo "configure:3435: checking for __builtin_sqrtf linkage" >&5
3435 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3437else
3438
11fc1858 3439 cat > conftest.$ac_ext <<EOF
421173e6 3440#line 3441 "configure"
54fa7415
SK
3441#include "confdefs.h"
3442#include <math.h>
3443int main() {
11fc1858 3444 __builtin_sqrtf(0);
54fa7415
SK
3445; return 0; }
3446EOF
421173e6 3447if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3448 rm -rf conftest*
421173e6 3449 glibcpp_cv_func___builtin_sqrtf_link=yes
54fa7415
SK
3450else
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 rm -rf conftest*
421173e6 3454 glibcpp_cv_func___builtin_sqrtf_link=no
54fa7415
SK
3455fi
3456rm -f conftest*
421173e6
PE
3457
3458fi
3459
3460 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
3461 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11fc1858
BK
3462 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3463 cat >> confdefs.h <<EOF
3464#define ${ac_tr_func} 1
54fa7415
SK
3465EOF
3466
11fc1858 3467 fi
54fa7415 3468 fi
11fc1858
BK
3469
3470
421173e6
PE
3471 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
3472echo "configure:3473: checking for __builtin_fsqrt declaration" >&5
3473 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475else
11fc1858 3476
421173e6
PE
3477
3478 ac_ext=C
11fc1858
BK
3479# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3480ac_cpp='$CXXCPP $CPPFLAGS'
3481ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3482ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3483cross_compiling=$ac_cv_prog_cxx_cross
3484
421173e6
PE
3485 cat > conftest.$ac_ext <<EOF
3486#line 3487 "configure"
54fa7415
SK
3487#include "confdefs.h"
3488#include <math.h>
3489int main() {
11fc1858 3490 __builtin_fsqrt(0);
54fa7415
SK
3491; return 0; }
3492EOF
421173e6 3493if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3494 rm -rf conftest*
421173e6 3495 glibcpp_cv_func___builtin_fsqrt_use=yes
54fa7415
SK
3496else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
421173e6 3500 glibcpp_cv_func___builtin_fsqrt_use=no
54fa7415
SK
3501fi
3502rm -f conftest*
421173e6 3503 ac_ext=c
11fc1858
BK
3504# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3507ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3508cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3509
421173e6
PE
3510
3511fi
3512
3513 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
3514 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
11fc1858 3515 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
421173e6
PE
3516echo "configure:3517: checking for __builtin_fsqrt linkage" >&5
3517 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3519else
3520
11fc1858 3521 cat > conftest.$ac_ext <<EOF
421173e6 3522#line 3523 "configure"
54fa7415
SK
3523#include "confdefs.h"
3524#include <math.h>
3525int main() {
11fc1858 3526 __builtin_fsqrt(0);
54fa7415
SK
3527; return 0; }
3528EOF
421173e6 3529if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3530 rm -rf conftest*
421173e6 3531 glibcpp_cv_func___builtin_fsqrt_link=yes
54fa7415
SK
3532else
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 rm -rf conftest*
421173e6 3536 glibcpp_cv_func___builtin_fsqrt_link=no
54fa7415
SK
3537fi
3538rm -f conftest*
421173e6
PE
3539
3540fi
3541
3542 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
3543 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
11fc1858
BK
3544 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3545 cat >> confdefs.h <<EOF
3546#define ${ac_tr_func} 1
54fa7415
SK
3547EOF
3548
11fc1858 3549 fi
54fa7415 3550 fi
11fc1858
BK
3551
3552
421173e6
PE
3553 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
3554echo "configure:3555: checking for __builtin_sqrtl declaration" >&5
3555 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557else
11fc1858 3558
421173e6
PE
3559
3560 ac_ext=C
11fc1858
BK
3561# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3562ac_cpp='$CXXCPP $CPPFLAGS'
3563ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3564ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3565cross_compiling=$ac_cv_prog_cxx_cross
3566
421173e6
PE
3567 cat > conftest.$ac_ext <<EOF
3568#line 3569 "configure"
54fa7415
SK
3569#include "confdefs.h"
3570#include <math.h>
3571int main() {
11fc1858 3572 __builtin_sqrtl(0);
54fa7415
SK
3573; return 0; }
3574EOF
421173e6 3575if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3576 rm -rf conftest*
421173e6 3577 glibcpp_cv_func___builtin_sqrtl_use=yes
54fa7415
SK
3578else
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 rm -rf conftest*
421173e6 3582 glibcpp_cv_func___builtin_sqrtl_use=no
54fa7415
SK
3583fi
3584rm -f conftest*
421173e6 3585 ac_ext=c
11fc1858
BK
3586# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3589ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3590cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3591
421173e6
PE
3592
3593fi
3594
3595 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
3596 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11fc1858 3597 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
421173e6
PE
3598echo "configure:3599: checking for __builtin_sqrtl linkage" >&5
3599 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601else
3602
11fc1858 3603 cat > conftest.$ac_ext <<EOF
421173e6 3604#line 3605 "configure"
54fa7415
SK
3605#include "confdefs.h"
3606#include <math.h>
3607int main() {
11fc1858 3608 __builtin_sqrtl(0);
54fa7415
SK
3609; return 0; }
3610EOF
421173e6 3611if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3612 rm -rf conftest*
421173e6 3613 glibcpp_cv_func___builtin_sqrtl_link=yes
54fa7415
SK
3614else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
421173e6 3618 glibcpp_cv_func___builtin_sqrtl_link=no
54fa7415
SK
3619fi
3620rm -f conftest*
421173e6
PE
3621
3622fi
3623
3624 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
3625 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11fc1858
BK
3626 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3627 cat >> confdefs.h <<EOF
3628#define ${ac_tr_func} 1
54fa7415
SK
3629EOF
3630
11fc1858 3631 fi
54fa7415 3632 fi
11fc1858
BK
3633
3634
3635
421173e6
PE
3636 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
3637echo "configure:3638: checking for __builtin_sinf declaration" >&5
3638 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640else
11fc1858 3641
421173e6
PE
3642
3643 ac_ext=C
11fc1858
BK
3644# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3645ac_cpp='$CXXCPP $CPPFLAGS'
3646ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3647ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3648cross_compiling=$ac_cv_prog_cxx_cross
3649
421173e6
PE
3650 cat > conftest.$ac_ext <<EOF
3651#line 3652 "configure"
54fa7415
SK
3652#include "confdefs.h"
3653#include <math.h>
3654int main() {
11fc1858 3655 __builtin_sinf(0);
54fa7415
SK
3656; return 0; }
3657EOF
421173e6 3658if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3659 rm -rf conftest*
421173e6 3660 glibcpp_cv_func___builtin_sinf_use=yes
54fa7415
SK
3661else
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 rm -rf conftest*
421173e6 3665 glibcpp_cv_func___builtin_sinf_use=no
54fa7415
SK
3666fi
3667rm -f conftest*
421173e6 3668 ac_ext=c
11fc1858
BK
3669# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3672ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3673cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3674
421173e6
PE
3675
3676fi
3677
3678 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
3679 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11fc1858 3680 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
421173e6
PE
3681echo "configure:3682: checking for __builtin_sinf linkage" >&5
3682 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684else
3685
11fc1858 3686 cat > conftest.$ac_ext <<EOF
421173e6 3687#line 3688 "configure"
54fa7415
SK
3688#include "confdefs.h"
3689#include <math.h>
3690int main() {
11fc1858 3691 __builtin_sinf(0);
54fa7415
SK
3692; return 0; }
3693EOF
421173e6 3694if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3695 rm -rf conftest*
421173e6 3696 glibcpp_cv_func___builtin_sinf_link=yes
54fa7415
SK
3697else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
421173e6 3701 glibcpp_cv_func___builtin_sinf_link=no
54fa7415
SK
3702fi
3703rm -f conftest*
421173e6
PE
3704
3705fi
3706
3707 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
3708 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11fc1858
BK
3709 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3710 cat >> confdefs.h <<EOF
3711#define ${ac_tr_func} 1
54fa7415
SK
3712EOF
3713
11fc1858 3714 fi
54fa7415 3715 fi
11fc1858
BK
3716
3717
421173e6
PE
3718 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
3719echo "configure:3720: checking for __builtin_sin declaration" >&5
3720 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3722else
11fc1858 3723
421173e6
PE
3724
3725 ac_ext=C
11fc1858
BK
3726# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3727ac_cpp='$CXXCPP $CPPFLAGS'
3728ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3729ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3730cross_compiling=$ac_cv_prog_cxx_cross
3731
421173e6
PE
3732 cat > conftest.$ac_ext <<EOF
3733#line 3734 "configure"
54fa7415
SK
3734#include "confdefs.h"
3735#include <math.h>
3736int main() {
11fc1858 3737 __builtin_sin(0);
54fa7415
SK
3738; return 0; }
3739EOF
421173e6 3740if { (eval echo configure:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3741 rm -rf conftest*
421173e6 3742 glibcpp_cv_func___builtin_sin_use=yes
54fa7415
SK
3743else
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 rm -rf conftest*
421173e6 3747 glibcpp_cv_func___builtin_sin_use=no
54fa7415
SK
3748fi
3749rm -f conftest*
421173e6 3750 ac_ext=c
11fc1858
BK
3751# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3754ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3755cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3756
421173e6
PE
3757
3758fi
3759
3760 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
3761 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11fc1858 3762 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
421173e6
PE
3763echo "configure:3764: checking for __builtin_sin linkage" >&5
3764 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3766else
3767
11fc1858 3768 cat > conftest.$ac_ext <<EOF
421173e6 3769#line 3770 "configure"
54fa7415
SK
3770#include "confdefs.h"
3771#include <math.h>
3772int main() {
11fc1858 3773 __builtin_sin(0);
54fa7415
SK
3774; return 0; }
3775EOF
421173e6 3776if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3777 rm -rf conftest*
421173e6 3778 glibcpp_cv_func___builtin_sin_link=yes
54fa7415
SK
3779else
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 rm -rf conftest*
421173e6 3783 glibcpp_cv_func___builtin_sin_link=no
54fa7415
SK
3784fi
3785rm -f conftest*
421173e6
PE
3786
3787fi
3788
3789 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
3790 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11fc1858
BK
3791 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3792 cat >> confdefs.h <<EOF
3793#define ${ac_tr_func} 1
54fa7415
SK
3794EOF
3795
11fc1858 3796 fi
54fa7415 3797 fi
11fc1858
BK
3798
3799
421173e6
PE
3800 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
3801echo "configure:3802: checking for __builtin_sinl declaration" >&5
3802 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804else
11fc1858 3805
421173e6
PE
3806
3807 ac_ext=C
11fc1858
BK
3808# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3809ac_cpp='$CXXCPP $CPPFLAGS'
3810ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3811ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3812cross_compiling=$ac_cv_prog_cxx_cross
3813
421173e6
PE
3814 cat > conftest.$ac_ext <<EOF
3815#line 3816 "configure"
54fa7415
SK
3816#include "confdefs.h"
3817#include <math.h>
3818int main() {
11fc1858 3819 __builtin_sinl(0);
54fa7415
SK
3820; return 0; }
3821EOF
421173e6 3822if { (eval echo configure:3823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3823 rm -rf conftest*
421173e6 3824 glibcpp_cv_func___builtin_sinl_use=yes
54fa7415
SK
3825else
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 rm -rf conftest*
421173e6 3829 glibcpp_cv_func___builtin_sinl_use=no
54fa7415
SK
3830fi
3831rm -f conftest*
421173e6 3832 ac_ext=c
11fc1858
BK
3833# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3836ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3837cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3838
421173e6
PE
3839
3840fi
3841
3842 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
3843 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11fc1858 3844 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
421173e6
PE
3845echo "configure:3846: checking for __builtin_sinl linkage" >&5
3846 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3848else
3849
11fc1858 3850 cat > conftest.$ac_ext <<EOF
421173e6 3851#line 3852 "configure"
54fa7415
SK
3852#include "confdefs.h"
3853#include <math.h>
3854int main() {
11fc1858 3855 __builtin_sinl(0);
54fa7415
SK
3856; return 0; }
3857EOF
421173e6 3858if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3859 rm -rf conftest*
421173e6 3860 glibcpp_cv_func___builtin_sinl_link=yes
54fa7415
SK
3861else
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3864 rm -rf conftest*
421173e6 3865 glibcpp_cv_func___builtin_sinl_link=no
54fa7415
SK
3866fi
3867rm -f conftest*
421173e6
PE
3868
3869fi
3870
3871 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
3872 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11fc1858
BK
3873 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3874 cat >> confdefs.h <<EOF
3875#define ${ac_tr_func} 1
54fa7415
SK
3876EOF
3877
11fc1858 3878 fi
54fa7415 3879 fi
11fc1858
BK
3880
3881
3882
421173e6
PE
3883 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
3884echo "configure:3885: checking for __builtin_cosf declaration" >&5
3885 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887else
11fc1858 3888
421173e6
PE
3889
3890 ac_ext=C
11fc1858
BK
3891# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3892ac_cpp='$CXXCPP $CPPFLAGS'
3893ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3894ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3895cross_compiling=$ac_cv_prog_cxx_cross
3896
421173e6
PE
3897 cat > conftest.$ac_ext <<EOF
3898#line 3899 "configure"
54fa7415
SK
3899#include "confdefs.h"
3900#include <math.h>
3901int main() {
11fc1858 3902 __builtin_cosf(0);
54fa7415
SK
3903; return 0; }
3904EOF
421173e6 3905if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3906 rm -rf conftest*
421173e6 3907 glibcpp_cv_func___builtin_cosf_use=yes
54fa7415
SK
3908else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
421173e6 3912 glibcpp_cv_func___builtin_cosf_use=no
54fa7415
SK
3913fi
3914rm -f conftest*
421173e6 3915 ac_ext=c
11fc1858
BK
3916# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3919ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3920cross_compiling=$ac_cv_prog_cc_cross
54fa7415 3921
421173e6
PE
3922
3923fi
3924
3925 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
3926 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11fc1858 3927 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
421173e6
PE
3928echo "configure:3929: checking for __builtin_cosf linkage" >&5
3929 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931else
3932
11fc1858 3933 cat > conftest.$ac_ext <<EOF
421173e6 3934#line 3935 "configure"
54fa7415
SK
3935#include "confdefs.h"
3936#include <math.h>
3937int main() {
11fc1858 3938 __builtin_cosf(0);
54fa7415
SK
3939; return 0; }
3940EOF
421173e6 3941if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 3942 rm -rf conftest*
421173e6 3943 glibcpp_cv_func___builtin_cosf_link=yes
54fa7415
SK
3944else
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 rm -rf conftest*
421173e6 3948 glibcpp_cv_func___builtin_cosf_link=no
54fa7415
SK
3949fi
3950rm -f conftest*
421173e6
PE
3951
3952fi
3953
3954 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
3955 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11fc1858
BK
3956 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3957 cat >> confdefs.h <<EOF
3958#define ${ac_tr_func} 1
54fa7415
SK
3959EOF
3960
11fc1858 3961 fi
54fa7415 3962 fi
11fc1858
BK
3963
3964
421173e6
PE
3965 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
3966echo "configure:3967: checking for __builtin_cos declaration" >&5
3967 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969else
11fc1858 3970
421173e6
PE
3971
3972 ac_ext=C
11fc1858
BK
3973# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3974ac_cpp='$CXXCPP $CPPFLAGS'
3975ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3976ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3977cross_compiling=$ac_cv_prog_cxx_cross
3978
421173e6
PE
3979 cat > conftest.$ac_ext <<EOF
3980#line 3981 "configure"
54fa7415
SK
3981#include "confdefs.h"
3982#include <math.h>
3983int main() {
11fc1858 3984 __builtin_cos(0);
54fa7415
SK
3985; return 0; }
3986EOF
421173e6 3987if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 3988 rm -rf conftest*
421173e6 3989 glibcpp_cv_func___builtin_cos_use=yes
54fa7415
SK
3990else
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3993 rm -rf conftest*
421173e6 3994 glibcpp_cv_func___builtin_cos_use=no
54fa7415
SK
3995fi
3996rm -f conftest*
421173e6 3997 ac_ext=c
11fc1858
BK
3998# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3999ac_cpp='$CPP $CPPFLAGS'
4000ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4001ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4002cross_compiling=$ac_cv_prog_cc_cross
54fa7415 4003
421173e6
PE
4004
4005fi
4006
4007 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
4008 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11fc1858 4009 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
421173e6
PE
4010echo "configure:4011: checking for __builtin_cos linkage" >&5
4011 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4013else
4014
11fc1858 4015 cat > conftest.$ac_ext <<EOF
421173e6 4016#line 4017 "configure"
54fa7415
SK
4017#include "confdefs.h"
4018#include <math.h>
4019int main() {
11fc1858 4020 __builtin_cos(0);
54fa7415
SK
4021; return 0; }
4022EOF
421173e6 4023if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4024 rm -rf conftest*
421173e6 4025 glibcpp_cv_func___builtin_cos_link=yes
54fa7415
SK
4026else
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4029 rm -rf conftest*
421173e6 4030 glibcpp_cv_func___builtin_cos_link=no
54fa7415
SK
4031fi
4032rm -f conftest*
421173e6
PE
4033
4034fi
4035
4036 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
4037 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11fc1858
BK
4038 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4039 cat >> confdefs.h <<EOF
4040#define ${ac_tr_func} 1
54fa7415
SK
4041EOF
4042
11fc1858 4043 fi
54fa7415 4044 fi
11fc1858
BK
4045
4046
421173e6
PE
4047 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
4048echo "configure:4049: checking for __builtin_cosl declaration" >&5
4049 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051else
11fc1858 4052
421173e6
PE
4053
4054 ac_ext=C
11fc1858
BK
4055# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4056ac_cpp='$CXXCPP $CPPFLAGS'
4057ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4058ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4059cross_compiling=$ac_cv_prog_cxx_cross
4060
421173e6
PE
4061 cat > conftest.$ac_ext <<EOF
4062#line 4063 "configure"
54fa7415
SK
4063#include "confdefs.h"
4064#include <math.h>
4065int main() {
11fc1858 4066 __builtin_cosl(0);
54fa7415
SK
4067; return 0; }
4068EOF
421173e6 4069if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54fa7415 4070 rm -rf conftest*
421173e6 4071 glibcpp_cv_func___builtin_cosl_use=yes
54fa7415
SK
4072else
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 rm -rf conftest*
421173e6 4076 glibcpp_cv_func___builtin_cosl_use=no
54fa7415
SK
4077fi
4078rm -f conftest*
421173e6 4079 ac_ext=c
11fc1858
BK
4080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4084cross_compiling=$ac_cv_prog_cc_cross
54fa7415 4085
421173e6
PE
4086
4087fi
4088
4089 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
4090 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11fc1858 4091 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
421173e6
PE
4092echo "configure:4093: checking for __builtin_cosl linkage" >&5
4093 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4095else
4096
11fc1858 4097 cat > conftest.$ac_ext <<EOF
421173e6 4098#line 4099 "configure"
54fa7415
SK
4099#include "confdefs.h"
4100#include <math.h>
4101int main() {
11fc1858 4102 __builtin_cosl(0);
54fa7415
SK
4103; return 0; }
4104EOF
421173e6 4105if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4106 rm -rf conftest*
421173e6 4107 glibcpp_cv_func___builtin_cosl_link=yes
54fa7415
SK
4108else
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -rf conftest*
421173e6 4112 glibcpp_cv_func___builtin_cosl_link=no
54fa7415
SK
4113fi
4114rm -f conftest*
421173e6
PE
4115
4116fi
4117
4118 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
4119 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11fc1858
BK
4120 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4121 cat >> confdefs.h <<EOF
4122#define ${ac_tr_func} 1
54fa7415
SK
4123EOF
4124
11fc1858 4125 fi
54fa7415 4126 fi
54fa7415
SK
4127
4128
11fc1858
BK
4129 dummyvar=no
4130 if test x$dummyvar = x"yes"; then
4131 cat >> confdefs.h <<\EOF
4132#define HAVE___BUILTIN_ABS 1
4133EOF
4134
4135 cat >> confdefs.h <<\EOF
4136#define HAVE___BUILTIN_LABS 1
4137EOF
4138
4139 cat >> confdefs.h <<\EOF
4140#define HAVE___BUILTIN_COS 1
4141EOF
4142
4143 cat >> confdefs.h <<\EOF
4144#define HAVE___BUILTIN_COSF 1
4145EOF
4146
4147 cat >> confdefs.h <<\EOF
4148#define HAVE___BUILTIN_COSL 1
4149EOF
4150
4151 cat >> confdefs.h <<\EOF
4152#define HAVE___BUILTIN_FABS 1
4153EOF
4154
4155 cat >> confdefs.h <<\EOF
4156#define HAVE___BUILTIN_FABSF 1
4157EOF
4158
4159 cat >> confdefs.h <<\EOF
4160#define HAVE___BUILTIN_FABSL 1
4161EOF
4162
4163 cat >> confdefs.h <<\EOF
4164#define HAVE___BUILTIN_SIN 1
4165EOF
4166
4167 cat >> confdefs.h <<\EOF
4168#define HAVE___BUILTIN_SINF 1
4169EOF
4170
4171 cat >> confdefs.h <<\EOF
4172#define HAVE___BUILTIN_SINL 1
4173EOF
4174
4175 cat >> confdefs.h <<\EOF
4176#define HAVE___BUILTIN_FSQRT 1
4177EOF
4178
4179 cat >> confdefs.h <<\EOF
4180#define HAVE___BUILTIN_SQRTF 1
4181EOF
4182
4183 cat >> confdefs.h <<\EOF
4184#define HAVE___BUILTIN_SQRTL 1
4185EOF
4186
4187 fi
4188
54fa7415 4189
38bd7296
BK
4190 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4191 ac_save_CXXFLAGS="$CXXFLAGS"
4f76382d 4192 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
2f103494 4193
aac350aa 4194 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
421173e6 4195echo "configure:4196: checking for sin in -lm" >&5
54fa7415
SK
4196ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199else
4200 ac_save_LIBS="$LIBS"
4201LIBS="-lm $LIBS"
4202cat > conftest.$ac_ext <<EOF
421173e6 4203#line 4204 "configure"
54fa7415
SK
4204#include "confdefs.h"
4205/* Override any gcc2 internal prototype to avoid an error. */
4206/* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4208char sin();
4209
4210int main() {
4211sin()
4212; return 0; }
4213EOF
421173e6 4214if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4215 rm -rf conftest*
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4217else
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 rm -rf conftest*
4221 eval "ac_cv_lib_$ac_lib_var=no"
4222fi
4223rm -f conftest*
4224LIBS="$ac_save_LIBS"
4225
4226fi
4227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4229 libm="-lm"
4230else
4231 echo "$ac_t""no" 1>&6
4232fi
4233
38bd7296 4234 ac_save_LIBS="$LIBS"
54fa7415
SK
4235 LIBS="$LIBS $libm"
4236
38bd7296 4237 for ac_func in strtof strtold
54fa7415
SK
4238do
4239echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4240echo "configure:4241: checking for $ac_func" >&5
54fa7415
SK
4241if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4243else
4244 cat > conftest.$ac_ext <<EOF
421173e6 4245#line 4246 "configure"
54fa7415
SK
4246#include "confdefs.h"
4247/* System header to define __stub macros and hopefully few prototypes,
4248 which can conflict with char $ac_func(); below. */
4249#include <assert.h>
4250/* Override any gcc2 internal prototype to avoid an error. */
4251/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4253char $ac_func();
4254
4255int main() {
4256
4257/* The GNU C library defines this for functions which it implements
4258 to always fail with ENOSYS. Some functions are actually named
4259 something starting with __ and the normal name is an alias. */
4260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261choke me
4262#else
4263$ac_func();
4264#endif
4265
4266; return 0; }
4267EOF
421173e6 4268if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4269 rm -rf conftest*
4270 eval "ac_cv_func_$ac_func=yes"
4271else
4272 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5
4274 rm -rf conftest*
4275 eval "ac_cv_func_$ac_func=no"
4276fi
4277rm -f conftest*
4278fi
4279
4280if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4283 cat >> confdefs.h <<EOF
4284#define $ac_tr_func 1
4285EOF
4286
4287else
4288 echo "$ac_t""no" 1>&6
54fa7415
SK
4289fi
4290done
4291
4292
38bd7296 4293
421173e6
PE
4294 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
4295echo "configure:4296: checking for isinf declaration" >&5
4296 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4298else
38bd7296 4299
421173e6
PE
4300
4301 ac_ext=C
38bd7296
BK
4302# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4303ac_cpp='$CXXCPP $CPPFLAGS'
4304ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4305ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4306cross_compiling=$ac_cv_prog_cxx_cross
4307
421173e6
PE
4308 cat > conftest.$ac_ext <<EOF
4309#line 4310 "configure"
38bd7296
BK
4310#include "confdefs.h"
4311#include <math.h>
4312int main() {
4313 isinf(0);
4314; return 0; }
4315EOF
421173e6 4316if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 4317 rm -rf conftest*
421173e6 4318 glibcpp_cv_func_isinf_use=yes
38bd7296
BK
4319else
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 rm -rf conftest*
421173e6 4323 glibcpp_cv_func_isinf_use=no
38bd7296
BK
4324fi
4325rm -f conftest*
421173e6 4326 ac_ext=c
38bd7296
BK
4327# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4330ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4331cross_compiling=$ac_cv_prog_cc_cross
4332
421173e6
PE
4333
4334fi
4335
4336 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
4337 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
38bd7296 4338 for ac_func in isinf
2f103494
BK
4339do
4340echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4341echo "configure:4342: checking for $ac_func" >&5
2f103494 4342if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
54fa7415
SK
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344else
4345 cat > conftest.$ac_ext <<EOF
421173e6 4346#line 4347 "configure"
54fa7415
SK
4347#include "confdefs.h"
4348/* System header to define __stub macros and hopefully few prototypes,
2f103494 4349 which can conflict with char $ac_func(); below. */
54fa7415
SK
4350#include <assert.h>
4351/* Override any gcc2 internal prototype to avoid an error. */
4352/* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
2f103494 4354char $ac_func();
54fa7415
SK
4355
4356int main() {
4357
4358/* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
2f103494 4361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54fa7415
SK
4362choke me
4363#else
2f103494 4364$ac_func();
54fa7415
SK
4365#endif
4366
4367; return 0; }
4368EOF
421173e6 4369if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4370 rm -rf conftest*
2f103494 4371 eval "ac_cv_func_$ac_func=yes"
54fa7415
SK
4372else
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
2f103494 4376 eval "ac_cv_func_$ac_func=no"
54fa7415
SK
4377fi
4378rm -f conftest*
4379fi
4380
2f103494 4381if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
54fa7415 4382 echo "$ac_t""yes" 1>&6
2f103494
BK
4383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384 cat >> confdefs.h <<EOF
4385#define $ac_tr_func 1
4386EOF
4387
4388else
4389 echo "$ac_t""no" 1>&6
4390fi
4391done
38bd7296
BK
4392
4393 fi
2f103494 4394
38bd7296 4395
421173e6
PE
4396 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
4397echo "configure:4398: checking for isnan declaration" >&5
4398 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4400else
38bd7296 4401
421173e6
PE
4402
4403 ac_ext=C
38bd7296
BK
4404# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4405ac_cpp='$CXXCPP $CPPFLAGS'
4406ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4407ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4408cross_compiling=$ac_cv_prog_cxx_cross
2f103494 4409
421173e6
PE
4410 cat > conftest.$ac_ext <<EOF
4411#line 4412 "configure"
38bd7296
BK
4412#include "confdefs.h"
4413#include <math.h>
4414int main() {
4415 isnan(0);
4416; return 0; }
4417EOF
421173e6 4418if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 4419 rm -rf conftest*
421173e6 4420 glibcpp_cv_func_isnan_use=yes
38bd7296
BK
4421else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
421173e6 4425 glibcpp_cv_func_isnan_use=no
38bd7296
BK
4426fi
4427rm -f conftest*
421173e6 4428 ac_ext=c
38bd7296
BK
4429# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4432ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4433cross_compiling=$ac_cv_prog_cc_cross
2f103494 4434
421173e6
PE
4435
4436fi
4437
4438 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
4439 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
38bd7296 4440 for ac_func in isnan
54fa7415
SK
4441do
4442echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4443echo "configure:4444: checking for $ac_func" >&5
54fa7415
SK
4444if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446else
4447 cat > conftest.$ac_ext <<EOF
421173e6 4448#line 4449 "configure"
54fa7415
SK
4449#include "confdefs.h"
4450/* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4452#include <assert.h>
4453/* Override any gcc2 internal prototype to avoid an error. */
4454/* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456char $ac_func();
4457
4458int main() {
4459
4460/* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464choke me
4465#else
4466$ac_func();
4467#endif
4468
4469; return 0; }
4470EOF
421173e6 4471if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415
SK
4472 rm -rf conftest*
4473 eval "ac_cv_func_$ac_func=yes"
4474else
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 rm -rf conftest*
4478 eval "ac_cv_func_$ac_func=no"
4479fi
4480rm -f conftest*
4481fi
4482
4483if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487#define $ac_tr_func 1
4488EOF
4489
4490else
4491 echo "$ac_t""no" 1>&6
54fa7415
SK
4492fi
4493done
38bd7296
BK
4494
4495 fi
2f103494
BK
4496
4497
421173e6
PE
4498 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
4499echo "configure:4500: checking for finite declaration" >&5
4500 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4502else
38bd7296 4503
421173e6
PE
4504
4505 ac_ext=C
38bd7296
BK
4506# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4507ac_cpp='$CXXCPP $CPPFLAGS'
4508ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4509ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4510cross_compiling=$ac_cv_prog_cxx_cross
4511
421173e6
PE
4512 cat > conftest.$ac_ext <<EOF
4513#line 4514 "configure"
2f103494 4514#include "confdefs.h"
38bd7296
BK
4515#include <math.h>
4516int main() {
4517 finite(0);
4518; return 0; }
2f103494 4519EOF
421173e6 4520if { (eval echo configure:4521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494 4521 rm -rf conftest*
421173e6 4522 glibcpp_cv_func_finite_use=yes
2f103494 4523else
2f103494
BK
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 rm -rf conftest*
421173e6 4527 glibcpp_cv_func_finite_use=no
2f103494
BK
4528fi
4529rm -f conftest*
421173e6 4530 ac_ext=c
38bd7296
BK
4531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4535cross_compiling=$ac_cv_prog_cc_cross
54fa7415 4536
421173e6
PE
4537
4538fi
4539
4540 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
4541 if test x$glibcpp_cv_func_finite_use = x"yes"; then
38bd7296 4542 for ac_func in finite
6c820cf2
BC
4543do
4544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4545echo "configure:4546: checking for $ac_func" >&5
6c820cf2
BC
4546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548else
4549 cat > conftest.$ac_ext <<EOF
421173e6 4550#line 4551 "configure"
6c820cf2
BC
4551#include "confdefs.h"
4552/* System header to define __stub macros and hopefully few prototypes,
4553 which can conflict with char $ac_func(); below. */
4554#include <assert.h>
4555/* Override any gcc2 internal prototype to avoid an error. */
4556/* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4558char $ac_func();
4559
4560int main() {
4561
4562/* The GNU C library defines this for functions which it implements
4563 to always fail with ENOSYS. Some functions are actually named
4564 something starting with __ and the normal name is an alias. */
4565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4566choke me
4567#else
4568$ac_func();
4569#endif
4570
4571; return 0; }
4572EOF
421173e6 4573if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6c820cf2
BC
4574 rm -rf conftest*
4575 eval "ac_cv_func_$ac_func=yes"
4576else
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 rm -rf conftest*
4580 eval "ac_cv_func_$ac_func=no"
4581fi
4582rm -f conftest*
4583fi
4584
4585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4588 cat >> confdefs.h <<EOF
4589#define $ac_tr_func 1
4590EOF
4591
4592else
4593 echo "$ac_t""no" 1>&6
6c820cf2
BC
4594fi
4595done
38bd7296
BK
4596
4597 fi
6c820cf2 4598
38bd7296 4599
421173e6
PE
4600 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
4601echo "configure:4602: checking for copysign declaration" >&5
4602 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4604else
38bd7296 4605
421173e6
PE
4606
4607 ac_ext=C
38bd7296
BK
4608# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4609ac_cpp='$CXXCPP $CPPFLAGS'
4610ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4611ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4612cross_compiling=$ac_cv_prog_cxx_cross
6c820cf2 4613
421173e6
PE
4614 cat > conftest.$ac_ext <<EOF
4615#line 4616 "configure"
38bd7296
BK
4616#include "confdefs.h"
4617#include <math.h>
4618int main() {
4619 copysign(0, 0);
4620; return 0; }
4621EOF
421173e6 4622if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 4623 rm -rf conftest*
421173e6 4624 glibcpp_cv_func_copysign_use=yes
38bd7296
BK
4625else
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 rm -rf conftest*
421173e6 4629 glibcpp_cv_func_copysign_use=no
38bd7296
BK
4630fi
4631rm -f conftest*
421173e6 4632 ac_ext=c
38bd7296
BK
4633# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4636ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4637cross_compiling=$ac_cv_prog_cc_cross
2f103494 4638
421173e6
PE
4639
4640fi
4641
4642 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
4643 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
38bd7296
BK
4644 for ac_func in copysign
4645do
4646echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4647echo "configure:4648: checking for $ac_func" >&5
38bd7296 4648if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
54fa7415
SK
4649 echo $ac_n "(cached) $ac_c" 1>&6
4650else
4651 cat > conftest.$ac_ext <<EOF
421173e6 4652#line 4653 "configure"
54fa7415
SK
4653#include "confdefs.h"
4654/* System header to define __stub macros and hopefully few prototypes,
38bd7296 4655 which can conflict with char $ac_func(); below. */
54fa7415
SK
4656#include <assert.h>
4657/* Override any gcc2 internal prototype to avoid an error. */
4658/* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
38bd7296 4660char $ac_func();
54fa7415
SK
4661
4662int main() {
4663
4664/* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
38bd7296 4667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54fa7415
SK
4668choke me
4669#else
38bd7296 4670$ac_func();
54fa7415
SK
4671#endif
4672
4673; return 0; }
4674EOF
421173e6 4675if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
54fa7415 4676 rm -rf conftest*
38bd7296 4677 eval "ac_cv_func_$ac_func=yes"
54fa7415
SK
4678else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -rf conftest*
38bd7296 4682 eval "ac_cv_func_$ac_func=no"
b2dad0e3
BK
4683fi
4684rm -f conftest*
4685fi
4686
38bd7296 4687if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
b2dad0e3 4688 echo "$ac_t""yes" 1>&6
38bd7296
BK
4689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4690 cat >> confdefs.h <<EOF
4691#define $ac_tr_func 1
4692EOF
4693
4694else
4695 echo "$ac_t""no" 1>&6
4696fi
4697done
4698
4699 fi
4700
4701
421173e6
PE
4702 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
4703echo "configure:4704: checking for sincos declaration" >&5
4704 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706else
38bd7296 4707
421173e6
PE
4708
4709 ac_ext=C
38bd7296
BK
4710# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4711ac_cpp='$CXXCPP $CPPFLAGS'
4712ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4713ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4714cross_compiling=$ac_cv_prog_cxx_cross
4715
421173e6
PE
4716 cat > conftest.$ac_ext <<EOF
4717#line 4718 "configure"
38bd7296
BK
4718#include "confdefs.h"
4719#include <math.h>
4720int main() {
4721 sincos(0, 0, 0);
4722; return 0; }
4723EOF
421173e6 4724if { (eval echo configure:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 4725 rm -rf conftest*
421173e6 4726 glibcpp_cv_func_sincos_use=yes
38bd7296
BK
4727else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
421173e6 4731 glibcpp_cv_func_sincos_use=no
38bd7296
BK
4732fi
4733rm -f conftest*
421173e6 4734 ac_ext=c
38bd7296
BK
4735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4736ac_cpp='$CPP $CPPFLAGS'
4737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4738ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4739cross_compiling=$ac_cv_prog_cc_cross
4740
421173e6
PE
4741
4742fi
4743
4744 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
4745 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
38bd7296 4746 for ac_func in sincos
b2dad0e3
BK
4747do
4748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4749echo "configure:4750: checking for $ac_func" >&5
b2dad0e3
BK
4750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752else
4753 cat > conftest.$ac_ext <<EOF
421173e6 4754#line 4755 "configure"
b2dad0e3
BK
4755#include "confdefs.h"
4756/* System header to define __stub macros and hopefully few prototypes,
4757 which can conflict with char $ac_func(); below. */
4758#include <assert.h>
4759/* Override any gcc2 internal prototype to avoid an error. */
4760/* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */
4762char $ac_func();
4763
4764int main() {
4765
4766/* The GNU C library defines this for functions which it implements
4767 to always fail with ENOSYS. Some functions are actually named
4768 something starting with __ and the normal name is an alias. */
4769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4770choke me
4771#else
4772$ac_func();
4773#endif
4774
4775; return 0; }
4776EOF
421173e6 4777if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
4778 rm -rf conftest*
4779 eval "ac_cv_func_$ac_func=yes"
4780else
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 rm -rf conftest*
4784 eval "ac_cv_func_$ac_func=no"
4785fi
4786rm -f conftest*
4787fi
4788
4789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4792 cat >> confdefs.h <<EOF
4793#define $ac_tr_func 1
4794EOF
4795
4796else
4797 echo "$ac_t""no" 1>&6
4798fi
4799done
38bd7296
BK
4800
4801 fi
b2dad0e3 4802
2f103494 4803
421173e6
PE
4804 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
4805echo "configure:4806: checking for fpclass declaration" >&5
4806 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4808else
2f103494 4809
421173e6
PE
4810
4811 ac_ext=C
2f103494
BK
4812# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4813ac_cpp='$CXXCPP $CPPFLAGS'
4814ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4815ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4816cross_compiling=$ac_cv_prog_cxx_cross
4817
421173e6
PE
4818 cat > conftest.$ac_ext <<EOF
4819#line 4820 "configure"
2f103494 4820#include "confdefs.h"
38bd7296 4821#include <math.h>
2f103494 4822int main() {
38bd7296 4823 fpclass(0);
2f103494
BK
4824; return 0; }
4825EOF
421173e6 4826if { (eval echo configure:4827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494 4827 rm -rf conftest*
421173e6 4828 glibcpp_cv_func_fpclass_use=yes
38bd7296
BK
4829else
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 rm -rf conftest*
421173e6 4833 glibcpp_cv_func_fpclass_use=no
38bd7296
BK
4834fi
4835rm -f conftest*
421173e6 4836 ac_ext=c
38bd7296
BK
4837# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4838ac_cpp='$CPP $CPPFLAGS'
4839ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4840ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4841cross_compiling=$ac_cv_prog_cc_cross
4842
421173e6
PE
4843
4844fi
4845
4846 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
4847 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
38bd7296
BK
4848 for ac_func in fpclass
4849do
4850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4851echo "configure:4852: checking for $ac_func" >&5
38bd7296
BK
4852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4854else
4855 cat > conftest.$ac_ext <<EOF
421173e6 4856#line 4857 "configure"
38bd7296
BK
4857#include "confdefs.h"
4858/* System header to define __stub macros and hopefully few prototypes,
4859 which can conflict with char $ac_func(); below. */
4860#include <assert.h>
4861/* Override any gcc2 internal prototype to avoid an error. */
4862/* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4864char $ac_func();
4865
4866int main() {
4867
4868/* The GNU C library defines this for functions which it implements
4869 to always fail with ENOSYS. Some functions are actually named
4870 something starting with __ and the normal name is an alias. */
4871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4872choke me
4873#else
4874$ac_func();
4875#endif
4876
4877; return 0; }
4878EOF
421173e6 4879if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4880 rm -rf conftest*
4881 eval "ac_cv_func_$ac_func=yes"
4882else
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 rm -rf conftest*
4886 eval "ac_cv_func_$ac_func=no"
4887fi
4888rm -f conftest*
4889fi
4890
4891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4894 cat >> confdefs.h <<EOF
4895#define $ac_tr_func 1
4896EOF
4897
4898else
4899 echo "$ac_t""no" 1>&6
4900fi
4901done
4902
4903 fi
4904
4905
421173e6
PE
4906 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
4907echo "configure:4908: checking for qfpclass declaration" >&5
4908 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910else
38bd7296 4911
421173e6
PE
4912
4913 ac_ext=C
38bd7296
BK
4914# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4915ac_cpp='$CXXCPP $CPPFLAGS'
4916ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4917ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4918cross_compiling=$ac_cv_prog_cxx_cross
4919
421173e6
PE
4920 cat > conftest.$ac_ext <<EOF
4921#line 4922 "configure"
38bd7296
BK
4922#include "confdefs.h"
4923#include <math.h>
4924int main() {
4925 qfpclass(0);
4926; return 0; }
4927EOF
421173e6 4928if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 4929 rm -rf conftest*
421173e6 4930 glibcpp_cv_func_qfpclass_use=yes
38bd7296
BK
4931else
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 rm -rf conftest*
421173e6 4935 glibcpp_cv_func_qfpclass_use=no
38bd7296
BK
4936fi
4937rm -f conftest*
421173e6 4938 ac_ext=c
38bd7296
BK
4939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4940ac_cpp='$CPP $CPPFLAGS'
4941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943cross_compiling=$ac_cv_prog_cc_cross
4944
421173e6
PE
4945
4946fi
4947
4948 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
4949 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
38bd7296
BK
4950 for ac_func in qfpclass
4951do
4952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 4953echo "configure:4954: checking for $ac_func" >&5
38bd7296
BK
4954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957 cat > conftest.$ac_ext <<EOF
421173e6 4958#line 4959 "configure"
38bd7296
BK
4959#include "confdefs.h"
4960/* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func(); below. */
4962#include <assert.h>
4963/* Override any gcc2 internal prototype to avoid an error. */
4964/* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4966char $ac_func();
4967
4968int main() {
4969
4970/* The GNU C library defines this for functions which it implements
4971 to always fail with ENOSYS. Some functions are actually named
4972 something starting with __ and the normal name is an alias. */
4973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4974choke me
4975#else
4976$ac_func();
4977#endif
4978
4979; return 0; }
4980EOF
421173e6 4981if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
4982 rm -rf conftest*
4983 eval "ac_cv_func_$ac_func=yes"
4984else
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 rm -rf conftest*
4988 eval "ac_cv_func_$ac_func=no"
4989fi
4990rm -f conftest*
4991fi
4992
4993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4996 cat >> confdefs.h <<EOF
4997#define $ac_tr_func 1
4998EOF
4999
5000else
5001 echo "$ac_t""no" 1>&6
5002fi
5003done
5004
5005 fi
5006
5007
5008
421173e6
PE
5009 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
5010echo "configure:5011: checking for isnanf declaration" >&5
5011 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5013else
38bd7296 5014
421173e6
PE
5015
5016 ac_ext=C
38bd7296
BK
5017# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5018ac_cpp='$CXXCPP $CPPFLAGS'
5019ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5020ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5021cross_compiling=$ac_cv_prog_cxx_cross
5022
421173e6
PE
5023 cat > conftest.$ac_ext <<EOF
5024#line 5025 "configure"
38bd7296
BK
5025#include "confdefs.h"
5026#include <math.h>
5027int main() {
5028 isnanf(0);
5029; return 0; }
5030EOF
421173e6 5031if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5032 rm -rf conftest*
421173e6 5033 glibcpp_cv_func_isnanf_use=yes
38bd7296
BK
5034else
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 rm -rf conftest*
421173e6 5038 glibcpp_cv_func_isnanf_use=no
38bd7296
BK
5039fi
5040rm -f conftest*
421173e6 5041 ac_ext=c
38bd7296
BK
5042# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5045ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5046cross_compiling=$ac_cv_prog_cc_cross
5047
421173e6
PE
5048
5049fi
5050
5051 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
5052 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
38bd7296
BK
5053 for ac_func in isnanf
5054do
5055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5056echo "configure:5057: checking for $ac_func" >&5
38bd7296
BK
5057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5059else
5060 cat > conftest.$ac_ext <<EOF
421173e6 5061#line 5062 "configure"
38bd7296
BK
5062#include "confdefs.h"
5063/* System header to define __stub macros and hopefully few prototypes,
5064 which can conflict with char $ac_func(); below. */
5065#include <assert.h>
5066/* Override any gcc2 internal prototype to avoid an error. */
5067/* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */
5069char $ac_func();
5070
5071int main() {
5072
5073/* The GNU C library defines this for functions which it implements
5074 to always fail with ENOSYS. Some functions are actually named
5075 something starting with __ and the normal name is an alias. */
5076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5077choke me
5078#else
5079$ac_func();
5080#endif
5081
5082; return 0; }
5083EOF
421173e6 5084if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5085 rm -rf conftest*
5086 eval "ac_cv_func_$ac_func=yes"
5087else
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 rm -rf conftest*
5091 eval "ac_cv_func_$ac_func=no"
5092fi
5093rm -f conftest*
5094fi
5095
5096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5099 cat >> confdefs.h <<EOF
5100#define $ac_tr_func 1
5101EOF
5102
5103else
5104 echo "$ac_t""no" 1>&6
5105fi
5106done
5107
5108 fi
5109
5110
421173e6
PE
5111 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
5112echo "configure:5113: checking for isinff declaration" >&5
5113 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115else
38bd7296 5116
421173e6
PE
5117
5118 ac_ext=C
38bd7296
BK
5119# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5122ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5123cross_compiling=$ac_cv_prog_cxx_cross
5124
421173e6
PE
5125 cat > conftest.$ac_ext <<EOF
5126#line 5127 "configure"
38bd7296
BK
5127#include "confdefs.h"
5128#include <math.h>
5129int main() {
5130 isinff(0);
5131; return 0; }
5132EOF
421173e6 5133if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5134 rm -rf conftest*
421173e6 5135 glibcpp_cv_func_isinff_use=yes
38bd7296
BK
5136else
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 rm -rf conftest*
421173e6 5140 glibcpp_cv_func_isinff_use=no
38bd7296
BK
5141fi
5142rm -f conftest*
421173e6 5143 ac_ext=c
38bd7296
BK
5144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5148cross_compiling=$ac_cv_prog_cc_cross
5149
421173e6
PE
5150
5151fi
5152
5153 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
5154 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
38bd7296
BK
5155 for ac_func in isinff
5156do
5157echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5158echo "configure:5159: checking for $ac_func" >&5
38bd7296
BK
5159if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5161else
5162 cat > conftest.$ac_ext <<EOF
421173e6 5163#line 5164 "configure"
38bd7296
BK
5164#include "confdefs.h"
5165/* System header to define __stub macros and hopefully few prototypes,
5166 which can conflict with char $ac_func(); below. */
5167#include <assert.h>
5168/* Override any gcc2 internal prototype to avoid an error. */
5169/* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5171char $ac_func();
5172
5173int main() {
5174
5175/* The GNU C library defines this for functions which it implements
5176 to always fail with ENOSYS. Some functions are actually named
5177 something starting with __ and the normal name is an alias. */
5178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5179choke me
5180#else
5181$ac_func();
5182#endif
5183
5184; return 0; }
5185EOF
421173e6 5186if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5187 rm -rf conftest*
5188 eval "ac_cv_func_$ac_func=yes"
5189else
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 rm -rf conftest*
5193 eval "ac_cv_func_$ac_func=no"
5194fi
5195rm -f conftest*
5196fi
5197
5198if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5199 echo "$ac_t""yes" 1>&6
5200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5201 cat >> confdefs.h <<EOF
5202#define $ac_tr_func 1
5203EOF
5204
5205else
5206 echo "$ac_t""no" 1>&6
5207fi
5208done
5209
5210 fi
5211
5212
421173e6
PE
5213 echo $ac_n "checking for acosf declaration""... $ac_c" 1>&6
5214echo "configure:5215: checking for acosf declaration" >&5
5215 if eval "test \"`echo '$''{'glibcpp_cv_func_acosf_use'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5217else
38bd7296 5218
421173e6
PE
5219
5220 ac_ext=C
38bd7296
BK
5221# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5222ac_cpp='$CXXCPP $CPPFLAGS'
5223ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5224ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5225cross_compiling=$ac_cv_prog_cxx_cross
5226
421173e6
PE
5227 cat > conftest.$ac_ext <<EOF
5228#line 5229 "configure"
38bd7296
BK
5229#include "confdefs.h"
5230#include <math.h>
5231int main() {
5232 acosf(0);
5233; return 0; }
5234EOF
421173e6 5235if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5236 rm -rf conftest*
421173e6 5237 glibcpp_cv_func_acosf_use=yes
38bd7296
BK
5238else
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5241 rm -rf conftest*
421173e6 5242 glibcpp_cv_func_acosf_use=no
38bd7296
BK
5243fi
5244rm -f conftest*
421173e6 5245 ac_ext=c
38bd7296
BK
5246# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5247ac_cpp='$CPP $CPPFLAGS'
5248ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5249ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5250cross_compiling=$ac_cv_prog_cc_cross
5251
421173e6
PE
5252
5253fi
5254
5255 echo "$ac_t""$glibcpp_cv_func_acosf_use" 1>&6
5256 if test x$glibcpp_cv_func_acosf_use = x"yes"; then
38bd7296
BK
5257 for ac_func in acosf
5258do
5259echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5260echo "configure:5261: checking for $ac_func" >&5
38bd7296
BK
5261if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5263else
5264 cat > conftest.$ac_ext <<EOF
421173e6 5265#line 5266 "configure"
38bd7296
BK
5266#include "confdefs.h"
5267/* System header to define __stub macros and hopefully few prototypes,
5268 which can conflict with char $ac_func(); below. */
5269#include <assert.h>
5270/* Override any gcc2 internal prototype to avoid an error. */
5271/* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273char $ac_func();
5274
5275int main() {
5276
5277/* The GNU C library defines this for functions which it implements
5278 to always fail with ENOSYS. Some functions are actually named
5279 something starting with __ and the normal name is an alias. */
5280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5281choke me
5282#else
5283$ac_func();
5284#endif
5285
5286; return 0; }
5287EOF
421173e6 5288if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5289 rm -rf conftest*
5290 eval "ac_cv_func_$ac_func=yes"
5291else
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5294 rm -rf conftest*
5295 eval "ac_cv_func_$ac_func=no"
5296fi
5297rm -f conftest*
5298fi
5299
5300if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5303 cat >> confdefs.h <<EOF
5304#define $ac_tr_func 1
5305EOF
5306
5307else
5308 echo "$ac_t""no" 1>&6
5309fi
5310done
5311
5312 fi
5313
5314
421173e6
PE
5315 echo $ac_n "checking for asinf declaration""... $ac_c" 1>&6
5316echo "configure:5317: checking for asinf declaration" >&5
5317 if eval "test \"`echo '$''{'glibcpp_cv_func_asinf_use'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5319else
38bd7296 5320
421173e6
PE
5321
5322 ac_ext=C
38bd7296
BK
5323# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5324ac_cpp='$CXXCPP $CPPFLAGS'
5325ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5326ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5327cross_compiling=$ac_cv_prog_cxx_cross
5328
421173e6
PE
5329 cat > conftest.$ac_ext <<EOF
5330#line 5331 "configure"
38bd7296
BK
5331#include "confdefs.h"
5332#include <math.h>
5333int main() {
5334 asinf(0);
5335; return 0; }
5336EOF
421173e6 5337if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5338 rm -rf conftest*
421173e6 5339 glibcpp_cv_func_asinf_use=yes
38bd7296
BK
5340else
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 rm -rf conftest*
421173e6 5344 glibcpp_cv_func_asinf_use=no
38bd7296
BK
5345fi
5346rm -f conftest*
421173e6 5347 ac_ext=c
38bd7296
BK
5348# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5351ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5352cross_compiling=$ac_cv_prog_cc_cross
5353
421173e6
PE
5354
5355fi
5356
5357 echo "$ac_t""$glibcpp_cv_func_asinf_use" 1>&6
5358 if test x$glibcpp_cv_func_asinf_use = x"yes"; then
38bd7296
BK
5359 for ac_func in asinf
5360do
5361echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5362echo "configure:5363: checking for $ac_func" >&5
38bd7296
BK
5363if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365else
5366 cat > conftest.$ac_ext <<EOF
421173e6 5367#line 5368 "configure"
38bd7296
BK
5368#include "confdefs.h"
5369/* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func(); below. */
5371#include <assert.h>
5372/* Override any gcc2 internal prototype to avoid an error. */
5373/* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5375char $ac_func();
5376
5377int main() {
5378
5379/* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5383choke me
5384#else
5385$ac_func();
5386#endif
5387
5388; return 0; }
5389EOF
421173e6 5390if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5391 rm -rf conftest*
5392 eval "ac_cv_func_$ac_func=yes"
5393else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=no"
5398fi
5399rm -f conftest*
5400fi
5401
5402if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5405 cat >> confdefs.h <<EOF
5406#define $ac_tr_func 1
5407EOF
5408
5409else
5410 echo "$ac_t""no" 1>&6
5411fi
5412done
5413
5414 fi
5415
5416
421173e6
PE
5417 echo $ac_n "checking for atanf declaration""... $ac_c" 1>&6
5418echo "configure:5419: checking for atanf declaration" >&5
5419 if eval "test \"`echo '$''{'glibcpp_cv_func_atanf_use'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5421else
38bd7296 5422
421173e6
PE
5423
5424 ac_ext=C
38bd7296
BK
5425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5426ac_cpp='$CXXCPP $CPPFLAGS'
5427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5429cross_compiling=$ac_cv_prog_cxx_cross
5430
421173e6
PE
5431 cat > conftest.$ac_ext <<EOF
5432#line 5433 "configure"
38bd7296
BK
5433#include "confdefs.h"
5434#include <math.h>
5435int main() {
5436 atanf(0);
5437; return 0; }
5438EOF
421173e6 5439if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5440 rm -rf conftest*
421173e6 5441 glibcpp_cv_func_atanf_use=yes
38bd7296
BK
5442else
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 rm -rf conftest*
421173e6 5446 glibcpp_cv_func_atanf_use=no
38bd7296
BK
5447fi
5448rm -f conftest*
421173e6 5449 ac_ext=c
38bd7296
BK
5450# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5451ac_cpp='$CPP $CPPFLAGS'
5452ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5453ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5454cross_compiling=$ac_cv_prog_cc_cross
5455
421173e6
PE
5456
5457fi
5458
5459 echo "$ac_t""$glibcpp_cv_func_atanf_use" 1>&6
5460 if test x$glibcpp_cv_func_atanf_use = x"yes"; then
38bd7296
BK
5461 for ac_func in atanf
5462do
5463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5464echo "configure:5465: checking for $ac_func" >&5
38bd7296
BK
5465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5467else
5468 cat > conftest.$ac_ext <<EOF
421173e6 5469#line 5470 "configure"
38bd7296
BK
5470#include "confdefs.h"
5471/* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char $ac_func(); below. */
5473#include <assert.h>
5474/* Override any gcc2 internal prototype to avoid an error. */
5475/* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5477char $ac_func();
5478
5479int main() {
5480
5481/* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485choke me
5486#else
5487$ac_func();
5488#endif
5489
5490; return 0; }
5491EOF
421173e6 5492if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5493 rm -rf conftest*
5494 eval "ac_cv_func_$ac_func=yes"
5495else
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 eval "ac_cv_func_$ac_func=no"
5500fi
5501rm -f conftest*
5502fi
5503
5504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5507 cat >> confdefs.h <<EOF
5508#define $ac_tr_func 1
5509EOF
5510
5511else
5512 echo "$ac_t""no" 1>&6
5513fi
5514done
5515
5516 fi
5517
5518
421173e6
PE
5519 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
5520echo "configure:5521: checking for atan2f declaration" >&5
5521 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5523else
38bd7296 5524
421173e6
PE
5525
5526 ac_ext=C
38bd7296
BK
5527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5528ac_cpp='$CXXCPP $CPPFLAGS'
5529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5531cross_compiling=$ac_cv_prog_cxx_cross
5532
421173e6
PE
5533 cat > conftest.$ac_ext <<EOF
5534#line 5535 "configure"
38bd7296
BK
5535#include "confdefs.h"
5536#include <math.h>
5537int main() {
5538 atan2f(0, 0);
5539; return 0; }
5540EOF
421173e6 5541if { (eval echo configure:5542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5542 rm -rf conftest*
421173e6 5543 glibcpp_cv_func_atan2f_use=yes
38bd7296
BK
5544else
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 rm -rf conftest*
421173e6 5548 glibcpp_cv_func_atan2f_use=no
38bd7296
BK
5549fi
5550rm -f conftest*
421173e6 5551 ac_ext=c
38bd7296
BK
5552# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5553ac_cpp='$CPP $CPPFLAGS'
5554ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5555ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5556cross_compiling=$ac_cv_prog_cc_cross
5557
421173e6
PE
5558
5559fi
5560
5561 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
5562 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
38bd7296
BK
5563 for ac_func in atan2f
5564do
5565echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5566echo "configure:5567: checking for $ac_func" >&5
38bd7296
BK
5567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5569else
5570 cat > conftest.$ac_ext <<EOF
421173e6 5571#line 5572 "configure"
38bd7296
BK
5572#include "confdefs.h"
5573/* System header to define __stub macros and hopefully few prototypes,
5574 which can conflict with char $ac_func(); below. */
5575#include <assert.h>
5576/* Override any gcc2 internal prototype to avoid an error. */
5577/* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5579char $ac_func();
5580
5581int main() {
5582
5583/* The GNU C library defines this for functions which it implements
5584 to always fail with ENOSYS. Some functions are actually named
5585 something starting with __ and the normal name is an alias. */
5586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587choke me
5588#else
5589$ac_func();
5590#endif
5591
5592; return 0; }
5593EOF
421173e6 5594if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5595 rm -rf conftest*
5596 eval "ac_cv_func_$ac_func=yes"
5597else
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 rm -rf conftest*
5601 eval "ac_cv_func_$ac_func=no"
5602fi
5603rm -f conftest*
5604fi
5605
5606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5609 cat >> confdefs.h <<EOF
5610#define $ac_tr_func 1
5611EOF
5612
5613else
5614 echo "$ac_t""no" 1>&6
5615fi
5616done
5617
5618 fi
5619
5620
421173e6
PE
5621 echo $ac_n "checking for ceilf declaration""... $ac_c" 1>&6
5622echo "configure:5623: checking for ceilf declaration" >&5
5623 if eval "test \"`echo '$''{'glibcpp_cv_func_ceilf_use'+set}'`\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5625else
38bd7296 5626
421173e6
PE
5627
5628 ac_ext=C
38bd7296
BK
5629# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5630ac_cpp='$CXXCPP $CPPFLAGS'
5631ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5632ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5633cross_compiling=$ac_cv_prog_cxx_cross
5634
421173e6
PE
5635 cat > conftest.$ac_ext <<EOF
5636#line 5637 "configure"
38bd7296
BK
5637#include "confdefs.h"
5638#include <math.h>
5639int main() {
5640 ceilf(0);
5641; return 0; }
5642EOF
421173e6 5643if { (eval echo configure:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5644 rm -rf conftest*
421173e6 5645 glibcpp_cv_func_ceilf_use=yes
38bd7296
BK
5646else
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 rm -rf conftest*
421173e6 5650 glibcpp_cv_func_ceilf_use=no
38bd7296
BK
5651fi
5652rm -f conftest*
421173e6 5653 ac_ext=c
38bd7296
BK
5654# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5655ac_cpp='$CPP $CPPFLAGS'
5656ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5657ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5658cross_compiling=$ac_cv_prog_cc_cross
5659
421173e6
PE
5660
5661fi
5662
5663 echo "$ac_t""$glibcpp_cv_func_ceilf_use" 1>&6
5664 if test x$glibcpp_cv_func_ceilf_use = x"yes"; then
38bd7296
BK
5665 for ac_func in ceilf
5666do
5667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5668echo "configure:5669: checking for $ac_func" >&5
38bd7296
BK
5669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671else
5672 cat > conftest.$ac_ext <<EOF
421173e6 5673#line 5674 "configure"
38bd7296
BK
5674#include "confdefs.h"
5675/* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char $ac_func(); below. */
5677#include <assert.h>
5678/* Override any gcc2 internal prototype to avoid an error. */
5679/* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5681char $ac_func();
5682
5683int main() {
5684
5685/* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689choke me
5690#else
5691$ac_func();
5692#endif
5693
5694; return 0; }
5695EOF
421173e6 5696if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5697 rm -rf conftest*
5698 eval "ac_cv_func_$ac_func=yes"
5699else
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 rm -rf conftest*
5703 eval "ac_cv_func_$ac_func=no"
5704fi
5705rm -f conftest*
5706fi
5707
5708if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5711 cat >> confdefs.h <<EOF
5712#define $ac_tr_func 1
5713EOF
5714
5715else
5716 echo "$ac_t""no" 1>&6
5717fi
5718done
5719
5720 fi
5721
5722
421173e6
PE
5723 echo $ac_n "checking for cosf declaration""... $ac_c" 1>&6
5724echo "configure:5725: checking for cosf declaration" >&5
5725 if eval "test \"`echo '$''{'glibcpp_cv_func_cosf_use'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727else
38bd7296 5728
421173e6
PE
5729
5730 ac_ext=C
38bd7296
BK
5731# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5734ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5735cross_compiling=$ac_cv_prog_cxx_cross
5736
421173e6
PE
5737 cat > conftest.$ac_ext <<EOF
5738#line 5739 "configure"
38bd7296
BK
5739#include "confdefs.h"
5740#include <math.h>
5741int main() {
5742 cosf(0);
5743; return 0; }
5744EOF
421173e6 5745if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5746 rm -rf conftest*
421173e6 5747 glibcpp_cv_func_cosf_use=yes
38bd7296
BK
5748else
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5751 rm -rf conftest*
421173e6 5752 glibcpp_cv_func_cosf_use=no
38bd7296
BK
5753fi
5754rm -f conftest*
421173e6 5755 ac_ext=c
38bd7296
BK
5756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5757ac_cpp='$CPP $CPPFLAGS'
5758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5760cross_compiling=$ac_cv_prog_cc_cross
5761
421173e6
PE
5762
5763fi
5764
5765 echo "$ac_t""$glibcpp_cv_func_cosf_use" 1>&6
5766 if test x$glibcpp_cv_func_cosf_use = x"yes"; then
38bd7296
BK
5767 for ac_func in cosf
5768do
5769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5770echo "configure:5771: checking for $ac_func" >&5
38bd7296
BK
5771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5773else
5774 cat > conftest.$ac_ext <<EOF
421173e6 5775#line 5776 "configure"
38bd7296
BK
5776#include "confdefs.h"
5777/* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func(); below. */
5779#include <assert.h>
5780/* Override any gcc2 internal prototype to avoid an error. */
5781/* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5783char $ac_func();
5784
5785int main() {
5786
5787/* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791choke me
5792#else
5793$ac_func();
5794#endif
5795
5796; return 0; }
5797EOF
421173e6 5798if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5799 rm -rf conftest*
5800 eval "ac_cv_func_$ac_func=yes"
5801else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 eval "ac_cv_func_$ac_func=no"
5806fi
5807rm -f conftest*
5808fi
5809
5810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814#define $ac_tr_func 1
5815EOF
5816
5817else
5818 echo "$ac_t""no" 1>&6
5819fi
5820done
5821
5822 fi
5823
5824
421173e6
PE
5825 echo $ac_n "checking for coshf declaration""... $ac_c" 1>&6
5826echo "configure:5827: checking for coshf declaration" >&5
5827 if eval "test \"`echo '$''{'glibcpp_cv_func_coshf_use'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5829else
38bd7296 5830
421173e6
PE
5831
5832 ac_ext=C
38bd7296
BK
5833# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5834ac_cpp='$CXXCPP $CPPFLAGS'
5835ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5836ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5837cross_compiling=$ac_cv_prog_cxx_cross
5838
421173e6
PE
5839 cat > conftest.$ac_ext <<EOF
5840#line 5841 "configure"
38bd7296
BK
5841#include "confdefs.h"
5842#include <math.h>
5843int main() {
5844 coshf(0);
5845; return 0; }
5846EOF
421173e6 5847if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5848 rm -rf conftest*
421173e6 5849 glibcpp_cv_func_coshf_use=yes
38bd7296
BK
5850else
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
421173e6 5854 glibcpp_cv_func_coshf_use=no
38bd7296
BK
5855fi
5856rm -f conftest*
421173e6 5857 ac_ext=c
38bd7296
BK
5858# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5859ac_cpp='$CPP $CPPFLAGS'
5860ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5861ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5862cross_compiling=$ac_cv_prog_cc_cross
5863
421173e6
PE
5864
5865fi
5866
5867 echo "$ac_t""$glibcpp_cv_func_coshf_use" 1>&6
5868 if test x$glibcpp_cv_func_coshf_use = x"yes"; then
38bd7296
BK
5869 for ac_func in coshf
5870do
5871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5872echo "configure:5873: checking for $ac_func" >&5
38bd7296
BK
5873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5875else
5876 cat > conftest.$ac_ext <<EOF
421173e6 5877#line 5878 "configure"
38bd7296
BK
5878#include "confdefs.h"
5879/* System header to define __stub macros and hopefully few prototypes,
5880 which can conflict with char $ac_func(); below. */
5881#include <assert.h>
5882/* Override any gcc2 internal prototype to avoid an error. */
5883/* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5885char $ac_func();
5886
5887int main() {
5888
5889/* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5893choke me
5894#else
5895$ac_func();
5896#endif
5897
5898; return 0; }
5899EOF
421173e6 5900if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
5901 rm -rf conftest*
5902 eval "ac_cv_func_$ac_func=yes"
5903else
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 rm -rf conftest*
5907 eval "ac_cv_func_$ac_func=no"
5908fi
5909rm -f conftest*
5910fi
5911
5912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915 cat >> confdefs.h <<EOF
5916#define $ac_tr_func 1
5917EOF
5918
5919else
5920 echo "$ac_t""no" 1>&6
5921fi
5922done
5923
5924 fi
5925
5926
421173e6
PE
5927 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
5928echo "configure:5929: checking for expf declaration" >&5
5929 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5931else
38bd7296 5932
421173e6
PE
5933
5934 ac_ext=C
38bd7296
BK
5935# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5936ac_cpp='$CXXCPP $CPPFLAGS'
5937ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5938ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5939cross_compiling=$ac_cv_prog_cxx_cross
5940
421173e6
PE
5941 cat > conftest.$ac_ext <<EOF
5942#line 5943 "configure"
38bd7296
BK
5943#include "confdefs.h"
5944#include <math.h>
5945int main() {
5946 expf(0);
5947; return 0; }
5948EOF
421173e6 5949if { (eval echo configure:5950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 5950 rm -rf conftest*
421173e6 5951 glibcpp_cv_func_expf_use=yes
38bd7296
BK
5952else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -rf conftest*
421173e6 5956 glibcpp_cv_func_expf_use=no
38bd7296
BK
5957fi
5958rm -f conftest*
421173e6 5959 ac_ext=c
38bd7296
BK
5960# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5961ac_cpp='$CPP $CPPFLAGS'
5962ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5963ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5964cross_compiling=$ac_cv_prog_cc_cross
5965
421173e6
PE
5966
5967fi
5968
5969 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
5970 if test x$glibcpp_cv_func_expf_use = x"yes"; then
38bd7296
BK
5971 for ac_func in expf
5972do
5973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 5974echo "configure:5975: checking for $ac_func" >&5
38bd7296
BK
5975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5977else
5978 cat > conftest.$ac_ext <<EOF
421173e6 5979#line 5980 "configure"
38bd7296
BK
5980#include "confdefs.h"
5981/* System header to define __stub macros and hopefully few prototypes,
5982 which can conflict with char $ac_func(); below. */
5983#include <assert.h>
5984/* Override any gcc2 internal prototype to avoid an error. */
5985/* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5987char $ac_func();
5988
5989int main() {
5990
5991/* The GNU C library defines this for functions which it implements
5992 to always fail with ENOSYS. Some functions are actually named
5993 something starting with __ and the normal name is an alias. */
5994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5995choke me
5996#else
5997$ac_func();
5998#endif
5999
6000; return 0; }
6001EOF
421173e6 6002if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6003 rm -rf conftest*
6004 eval "ac_cv_func_$ac_func=yes"
6005else
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6008 rm -rf conftest*
6009 eval "ac_cv_func_$ac_func=no"
6010fi
6011rm -f conftest*
6012fi
6013
6014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6017 cat >> confdefs.h <<EOF
6018#define $ac_tr_func 1
6019EOF
6020
6021else
6022 echo "$ac_t""no" 1>&6
6023fi
6024done
6025
6026 fi
6027
6028
421173e6
PE
6029 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
6030echo "configure:6031: checking for fabsf declaration" >&5
6031 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6033else
38bd7296 6034
421173e6
PE
6035
6036 ac_ext=C
38bd7296
BK
6037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6038ac_cpp='$CXXCPP $CPPFLAGS'
6039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6041cross_compiling=$ac_cv_prog_cxx_cross
6042
421173e6
PE
6043 cat > conftest.$ac_ext <<EOF
6044#line 6045 "configure"
38bd7296
BK
6045#include "confdefs.h"
6046#include <math.h>
6047int main() {
6048 fabsf(0);
6049; return 0; }
6050EOF
421173e6 6051if { (eval echo configure:6052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6052 rm -rf conftest*
421173e6 6053 glibcpp_cv_func_fabsf_use=yes
38bd7296
BK
6054else
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 rm -rf conftest*
421173e6 6058 glibcpp_cv_func_fabsf_use=no
38bd7296
BK
6059fi
6060rm -f conftest*
421173e6 6061 ac_ext=c
38bd7296
BK
6062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6063ac_cpp='$CPP $CPPFLAGS'
6064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6066cross_compiling=$ac_cv_prog_cc_cross
6067
421173e6
PE
6068
6069fi
6070
6071 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
6072 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
38bd7296
BK
6073 for ac_func in fabsf
6074do
6075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6076echo "configure:6077: checking for $ac_func" >&5
38bd7296
BK
6077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6079else
6080 cat > conftest.$ac_ext <<EOF
421173e6 6081#line 6082 "configure"
38bd7296
BK
6082#include "confdefs.h"
6083/* System header to define __stub macros and hopefully few prototypes,
6084 which can conflict with char $ac_func(); below. */
6085#include <assert.h>
6086/* Override any gcc2 internal prototype to avoid an error. */
6087/* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6089char $ac_func();
6090
6091int main() {
6092
6093/* The GNU C library defines this for functions which it implements
6094 to always fail with ENOSYS. Some functions are actually named
6095 something starting with __ and the normal name is an alias. */
6096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097choke me
6098#else
6099$ac_func();
6100#endif
6101
6102; return 0; }
6103EOF
421173e6 6104if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6105 rm -rf conftest*
6106 eval "ac_cv_func_$ac_func=yes"
6107else
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 rm -rf conftest*
6111 eval "ac_cv_func_$ac_func=no"
6112fi
6113rm -f conftest*
6114fi
6115
6116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6119 cat >> confdefs.h <<EOF
6120#define $ac_tr_func 1
6121EOF
6122
6123else
6124 echo "$ac_t""no" 1>&6
6125fi
6126done
6127
6128 fi
6129
6130
421173e6
PE
6131 echo $ac_n "checking for floorf declaration""... $ac_c" 1>&6
6132echo "configure:6133: checking for floorf declaration" >&5
6133 if eval "test \"`echo '$''{'glibcpp_cv_func_floorf_use'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6135else
38bd7296 6136
421173e6
PE
6137
6138 ac_ext=C
38bd7296
BK
6139# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6140ac_cpp='$CXXCPP $CPPFLAGS'
6141ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6142ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6143cross_compiling=$ac_cv_prog_cxx_cross
6144
421173e6
PE
6145 cat > conftest.$ac_ext <<EOF
6146#line 6147 "configure"
38bd7296
BK
6147#include "confdefs.h"
6148#include <math.h>
6149int main() {
6150 floorf(0);
6151; return 0; }
6152EOF
421173e6 6153if { (eval echo configure:6154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6154 rm -rf conftest*
421173e6 6155 glibcpp_cv_func_floorf_use=yes
38bd7296
BK
6156else
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6159 rm -rf conftest*
421173e6 6160 glibcpp_cv_func_floorf_use=no
38bd7296
BK
6161fi
6162rm -f conftest*
421173e6 6163 ac_ext=c
38bd7296
BK
6164# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6167ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6168cross_compiling=$ac_cv_prog_cc_cross
6169
421173e6
PE
6170
6171fi
6172
6173 echo "$ac_t""$glibcpp_cv_func_floorf_use" 1>&6
6174 if test x$glibcpp_cv_func_floorf_use = x"yes"; then
38bd7296
BK
6175 for ac_func in floorf
6176do
6177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6178echo "configure:6179: checking for $ac_func" >&5
38bd7296
BK
6179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181else
6182 cat > conftest.$ac_ext <<EOF
421173e6 6183#line 6184 "configure"
38bd7296
BK
6184#include "confdefs.h"
6185/* System header to define __stub macros and hopefully few prototypes,
6186 which can conflict with char $ac_func(); below. */
6187#include <assert.h>
6188/* Override any gcc2 internal prototype to avoid an error. */
6189/* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6191char $ac_func();
6192
6193int main() {
6194
6195/* The GNU C library defines this for functions which it implements
6196 to always fail with ENOSYS. Some functions are actually named
6197 something starting with __ and the normal name is an alias. */
6198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6199choke me
6200#else
6201$ac_func();
6202#endif
6203
6204; return 0; }
6205EOF
421173e6 6206if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6207 rm -rf conftest*
6208 eval "ac_cv_func_$ac_func=yes"
6209else
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 eval "ac_cv_func_$ac_func=no"
6214fi
6215rm -f conftest*
6216fi
6217
6218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6221 cat >> confdefs.h <<EOF
6222#define $ac_tr_func 1
6223EOF
6224
6225else
6226 echo "$ac_t""no" 1>&6
6227fi
6228done
6229
6230 fi
6231
6232
421173e6
PE
6233 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
6234echo "configure:6235: checking for fmodf declaration" >&5
6235 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6237else
38bd7296 6238
421173e6
PE
6239
6240 ac_ext=C
38bd7296
BK
6241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6242ac_cpp='$CXXCPP $CPPFLAGS'
6243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245cross_compiling=$ac_cv_prog_cxx_cross
6246
421173e6
PE
6247 cat > conftest.$ac_ext <<EOF
6248#line 6249 "configure"
38bd7296
BK
6249#include "confdefs.h"
6250#include <math.h>
6251int main() {
6252 fmodf(0, 0);
6253; return 0; }
6254EOF
421173e6 6255if { (eval echo configure:6256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6256 rm -rf conftest*
421173e6 6257 glibcpp_cv_func_fmodf_use=yes
38bd7296
BK
6258else
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 rm -rf conftest*
421173e6 6262 glibcpp_cv_func_fmodf_use=no
38bd7296
BK
6263fi
6264rm -f conftest*
421173e6 6265 ac_ext=c
38bd7296
BK
6266# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6267ac_cpp='$CPP $CPPFLAGS'
6268ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6269ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6270cross_compiling=$ac_cv_prog_cc_cross
6271
421173e6
PE
6272
6273fi
6274
6275 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
6276 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
38bd7296
BK
6277 for ac_func in fmodf
6278do
6279echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6280echo "configure:6281: checking for $ac_func" >&5
38bd7296
BK
6281if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283else
6284 cat > conftest.$ac_ext <<EOF
421173e6 6285#line 6286 "configure"
38bd7296
BK
6286#include "confdefs.h"
6287/* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char $ac_func(); below. */
6289#include <assert.h>
6290/* Override any gcc2 internal prototype to avoid an error. */
6291/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6293char $ac_func();
6294
6295int main() {
6296
6297/* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6301choke me
6302#else
6303$ac_func();
6304#endif
6305
6306; return 0; }
6307EOF
421173e6 6308if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6309 rm -rf conftest*
6310 eval "ac_cv_func_$ac_func=yes"
6311else
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -rf conftest*
6315 eval "ac_cv_func_$ac_func=no"
6316fi
6317rm -f conftest*
6318fi
6319
6320if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6323 cat >> confdefs.h <<EOF
6324#define $ac_tr_func 1
6325EOF
6326
6327else
6328 echo "$ac_t""no" 1>&6
6329fi
6330done
6331
6332 fi
6333
6334
421173e6
PE
6335 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
6336echo "configure:6337: checking for frexpf declaration" >&5
6337 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339else
38bd7296 6340
421173e6
PE
6341
6342 ac_ext=C
38bd7296
BK
6343# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6344ac_cpp='$CXXCPP $CPPFLAGS'
6345ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6346ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6347cross_compiling=$ac_cv_prog_cxx_cross
6348
421173e6
PE
6349 cat > conftest.$ac_ext <<EOF
6350#line 6351 "configure"
38bd7296
BK
6351#include "confdefs.h"
6352#include <math.h>
6353int main() {
6354 frexpf(0, 0);
6355; return 0; }
6356EOF
421173e6 6357if { (eval echo configure:6358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6358 rm -rf conftest*
421173e6 6359 glibcpp_cv_func_frexpf_use=yes
38bd7296
BK
6360else
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 rm -rf conftest*
421173e6 6364 glibcpp_cv_func_frexpf_use=no
38bd7296
BK
6365fi
6366rm -f conftest*
421173e6 6367 ac_ext=c
38bd7296
BK
6368# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6369ac_cpp='$CPP $CPPFLAGS'
6370ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6371ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6372cross_compiling=$ac_cv_prog_cc_cross
6373
421173e6
PE
6374
6375fi
6376
6377 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
6378 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
38bd7296
BK
6379 for ac_func in frexpf
6380do
6381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6382echo "configure:6383: checking for $ac_func" >&5
38bd7296
BK
6383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385else
6386 cat > conftest.$ac_ext <<EOF
421173e6 6387#line 6388 "configure"
38bd7296
BK
6388#include "confdefs.h"
6389/* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6391#include <assert.h>
6392/* Override any gcc2 internal prototype to avoid an error. */
6393/* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395char $ac_func();
6396
6397int main() {
6398
6399/* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403choke me
6404#else
6405$ac_func();
6406#endif
6407
6408; return 0; }
6409EOF
421173e6 6410if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6411 rm -rf conftest*
6412 eval "ac_cv_func_$ac_func=yes"
6413else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 eval "ac_cv_func_$ac_func=no"
6418fi
6419rm -f conftest*
6420fi
6421
6422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h <<EOF
6426#define $ac_tr_func 1
6427EOF
6428
6429else
6430 echo "$ac_t""no" 1>&6
6431fi
6432done
6433
6434 fi
6435
6436
421173e6
PE
6437 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
6438echo "configure:6439: checking for ldexpf declaration" >&5
6439 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6441else
38bd7296 6442
421173e6
PE
6443
6444 ac_ext=C
38bd7296
BK
6445# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6446ac_cpp='$CXXCPP $CPPFLAGS'
6447ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6448ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6449cross_compiling=$ac_cv_prog_cxx_cross
6450
421173e6
PE
6451 cat > conftest.$ac_ext <<EOF
6452#line 6453 "configure"
38bd7296
BK
6453#include "confdefs.h"
6454#include <math.h>
6455int main() {
6456 ldexpf(0, 0);
6457; return 0; }
6458EOF
421173e6 6459if { (eval echo configure:6460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6460 rm -rf conftest*
421173e6 6461 glibcpp_cv_func_ldexpf_use=yes
38bd7296
BK
6462else
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6465 rm -rf conftest*
421173e6 6466 glibcpp_cv_func_ldexpf_use=no
38bd7296
BK
6467fi
6468rm -f conftest*
421173e6 6469 ac_ext=c
38bd7296
BK
6470# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6471ac_cpp='$CPP $CPPFLAGS'
6472ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6473ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6474cross_compiling=$ac_cv_prog_cc_cross
6475
421173e6
PE
6476
6477fi
6478
6479 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
6480 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
38bd7296
BK
6481 for ac_func in ldexpf
6482do
6483echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6484echo "configure:6485: checking for $ac_func" >&5
38bd7296
BK
6485if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6487else
6488 cat > conftest.$ac_ext <<EOF
421173e6 6489#line 6490 "configure"
38bd7296
BK
6490#include "confdefs.h"
6491/* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char $ac_func(); below. */
6493#include <assert.h>
6494/* Override any gcc2 internal prototype to avoid an error. */
6495/* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6497char $ac_func();
6498
6499int main() {
6500
6501/* The GNU C library defines this for functions which it implements
6502 to always fail with ENOSYS. Some functions are actually named
6503 something starting with __ and the normal name is an alias. */
6504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6505choke me
6506#else
6507$ac_func();
6508#endif
6509
6510; return 0; }
6511EOF
421173e6 6512if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6513 rm -rf conftest*
6514 eval "ac_cv_func_$ac_func=yes"
6515else
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6518 rm -rf conftest*
6519 eval "ac_cv_func_$ac_func=no"
6520fi
6521rm -f conftest*
6522fi
6523
6524if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6527 cat >> confdefs.h <<EOF
6528#define $ac_tr_func 1
6529EOF
6530
6531else
6532 echo "$ac_t""no" 1>&6
6533fi
6534done
6535
6536 fi
6537
6538
421173e6
PE
6539 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
6540echo "configure:6541: checking for logf declaration" >&5
6541 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6543else
38bd7296 6544
421173e6
PE
6545
6546 ac_ext=C
38bd7296
BK
6547# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6548ac_cpp='$CXXCPP $CPPFLAGS'
6549ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6550ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6551cross_compiling=$ac_cv_prog_cxx_cross
6552
421173e6
PE
6553 cat > conftest.$ac_ext <<EOF
6554#line 6555 "configure"
38bd7296
BK
6555#include "confdefs.h"
6556#include <math.h>
6557int main() {
6558 logf(0);
6559; return 0; }
6560EOF
421173e6 6561if { (eval echo configure:6562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6562 rm -rf conftest*
421173e6 6563 glibcpp_cv_func_logf_use=yes
38bd7296
BK
6564else
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 rm -rf conftest*
421173e6 6568 glibcpp_cv_func_logf_use=no
38bd7296
BK
6569fi
6570rm -f conftest*
421173e6 6571 ac_ext=c
38bd7296
BK
6572# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6573ac_cpp='$CPP $CPPFLAGS'
6574ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6575ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6576cross_compiling=$ac_cv_prog_cc_cross
6577
421173e6
PE
6578
6579fi
6580
6581 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
6582 if test x$glibcpp_cv_func_logf_use = x"yes"; then
38bd7296
BK
6583 for ac_func in logf
6584do
6585echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6586echo "configure:6587: checking for $ac_func" >&5
38bd7296
BK
6587if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6589else
6590 cat > conftest.$ac_ext <<EOF
421173e6 6591#line 6592 "configure"
38bd7296
BK
6592#include "confdefs.h"
6593/* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6595#include <assert.h>
6596/* Override any gcc2 internal prototype to avoid an error. */
6597/* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6599char $ac_func();
6600
6601int main() {
6602
6603/* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607choke me
6608#else
6609$ac_func();
6610#endif
6611
6612; return 0; }
6613EOF
421173e6 6614if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=yes"
6617else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 eval "ac_cv_func_$ac_func=no"
6622fi
6623rm -f conftest*
6624fi
6625
6626if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h <<EOF
6630#define $ac_tr_func 1
6631EOF
6632
6633else
6634 echo "$ac_t""no" 1>&6
6635fi
6636done
6637
6638 fi
6639
6640
421173e6
PE
6641 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
6642echo "configure:6643: checking for log10f declaration" >&5
6643 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6645else
38bd7296 6646
421173e6
PE
6647
6648 ac_ext=C
38bd7296
BK
6649# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6650ac_cpp='$CXXCPP $CPPFLAGS'
6651ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6652ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6653cross_compiling=$ac_cv_prog_cxx_cross
6654
421173e6
PE
6655 cat > conftest.$ac_ext <<EOF
6656#line 6657 "configure"
38bd7296
BK
6657#include "confdefs.h"
6658#include <math.h>
6659int main() {
6660 log10f(0);
6661; return 0; }
6662EOF
421173e6 6663if { (eval echo configure:6664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6664 rm -rf conftest*
421173e6 6665 glibcpp_cv_func_log10f_use=yes
38bd7296
BK
6666else
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 rm -rf conftest*
421173e6 6670 glibcpp_cv_func_log10f_use=no
38bd7296
BK
6671fi
6672rm -f conftest*
421173e6 6673 ac_ext=c
38bd7296
BK
6674# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6675ac_cpp='$CPP $CPPFLAGS'
6676ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6677ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6678cross_compiling=$ac_cv_prog_cc_cross
6679
421173e6
PE
6680
6681fi
6682
6683 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
6684 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
38bd7296
BK
6685 for ac_func in log10f
6686do
6687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6688echo "configure:6689: checking for $ac_func" >&5
38bd7296
BK
6689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691else
6692 cat > conftest.$ac_ext <<EOF
421173e6 6693#line 6694 "configure"
38bd7296
BK
6694#include "confdefs.h"
6695/* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func(); below. */
6697#include <assert.h>
6698/* Override any gcc2 internal prototype to avoid an error. */
6699/* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6701char $ac_func();
6702
6703int main() {
6704
6705/* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709choke me
6710#else
6711$ac_func();
6712#endif
6713
6714; return 0; }
6715EOF
421173e6 6716if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6717 rm -rf conftest*
6718 eval "ac_cv_func_$ac_func=yes"
6719else
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 rm -rf conftest*
6723 eval "ac_cv_func_$ac_func=no"
6724fi
6725rm -f conftest*
6726fi
6727
6728if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6731 cat >> confdefs.h <<EOF
6732#define $ac_tr_func 1
6733EOF
6734
6735else
6736 echo "$ac_t""no" 1>&6
6737fi
6738done
6739
6740 fi
6741
6742
421173e6
PE
6743 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
6744echo "configure:6745: checking for modff declaration" >&5
6745 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6747else
38bd7296 6748
421173e6
PE
6749
6750 ac_ext=C
38bd7296
BK
6751# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6752ac_cpp='$CXXCPP $CPPFLAGS'
6753ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6754ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6755cross_compiling=$ac_cv_prog_cxx_cross
6756
421173e6
PE
6757 cat > conftest.$ac_ext <<EOF
6758#line 6759 "configure"
38bd7296
BK
6759#include "confdefs.h"
6760#include <math.h>
6761int main() {
6762 modff(0, 0);
6763; return 0; }
6764EOF
421173e6 6765if { (eval echo configure:6766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6766 rm -rf conftest*
421173e6 6767 glibcpp_cv_func_modff_use=yes
38bd7296
BK
6768else
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6771 rm -rf conftest*
421173e6 6772 glibcpp_cv_func_modff_use=no
38bd7296
BK
6773fi
6774rm -f conftest*
421173e6 6775 ac_ext=c
38bd7296
BK
6776# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6777ac_cpp='$CPP $CPPFLAGS'
6778ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6779ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6780cross_compiling=$ac_cv_prog_cc_cross
6781
421173e6
PE
6782
6783fi
6784
6785 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
6786 if test x$glibcpp_cv_func_modff_use = x"yes"; then
38bd7296
BK
6787 for ac_func in modff
6788do
6789echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6790echo "configure:6791: checking for $ac_func" >&5
38bd7296
BK
6791if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793else
6794 cat > conftest.$ac_ext <<EOF
421173e6 6795#line 6796 "configure"
38bd7296
BK
6796#include "confdefs.h"
6797/* System header to define __stub macros and hopefully few prototypes,
6798 which can conflict with char $ac_func(); below. */
6799#include <assert.h>
6800/* Override any gcc2 internal prototype to avoid an error. */
6801/* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803char $ac_func();
6804
6805int main() {
6806
6807/* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811choke me
6812#else
6813$ac_func();
6814#endif
6815
6816; return 0; }
6817EOF
421173e6 6818if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6819 rm -rf conftest*
6820 eval "ac_cv_func_$ac_func=yes"
6821else
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6824 rm -rf conftest*
6825 eval "ac_cv_func_$ac_func=no"
6826fi
6827rm -f conftest*
6828fi
6829
6830if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6831 echo "$ac_t""yes" 1>&6
6832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6833 cat >> confdefs.h <<EOF
6834#define $ac_tr_func 1
6835EOF
6836
6837else
6838 echo "$ac_t""no" 1>&6
6839fi
6840done
6841
6842 fi
6843
6844
421173e6
PE
6845 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
6846echo "configure:6847: checking for powf declaration" >&5
6847 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6849else
38bd7296 6850
421173e6
PE
6851
6852 ac_ext=C
38bd7296
BK
6853# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6854ac_cpp='$CXXCPP $CPPFLAGS'
6855ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6856ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6857cross_compiling=$ac_cv_prog_cxx_cross
6858
421173e6
PE
6859 cat > conftest.$ac_ext <<EOF
6860#line 6861 "configure"
38bd7296
BK
6861#include "confdefs.h"
6862#include <math.h>
6863int main() {
6864 powf(0, 0);
6865; return 0; }
6866EOF
421173e6 6867if { (eval echo configure:6868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6868 rm -rf conftest*
421173e6 6869 glibcpp_cv_func_powf_use=yes
38bd7296
BK
6870else
6871 echo "configure: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 rm -rf conftest*
421173e6 6874 glibcpp_cv_func_powf_use=no
38bd7296
BK
6875fi
6876rm -f conftest*
421173e6 6877 ac_ext=c
38bd7296
BK
6878# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6879ac_cpp='$CPP $CPPFLAGS'
6880ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6881ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6882cross_compiling=$ac_cv_prog_cc_cross
6883
421173e6
PE
6884
6885fi
6886
6887 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
6888 if test x$glibcpp_cv_func_powf_use = x"yes"; then
38bd7296
BK
6889 for ac_func in powf
6890do
6891echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6892echo "configure:6893: checking for $ac_func" >&5
38bd7296
BK
6893if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6895else
6896 cat > conftest.$ac_ext <<EOF
421173e6 6897#line 6898 "configure"
38bd7296
BK
6898#include "confdefs.h"
6899/* System header to define __stub macros and hopefully few prototypes,
6900 which can conflict with char $ac_func(); below. */
6901#include <assert.h>
6902/* Override any gcc2 internal prototype to avoid an error. */
6903/* We use char because int might match the return type of a gcc2
6904 builtin and then its argument prototype would still apply. */
6905char $ac_func();
6906
6907int main() {
6908
6909/* The GNU C library defines this for functions which it implements
6910 to always fail with ENOSYS. Some functions are actually named
6911 something starting with __ and the normal name is an alias. */
6912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6913choke me
6914#else
6915$ac_func();
6916#endif
6917
6918; return 0; }
6919EOF
421173e6 6920if { (eval echo configure:6921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
6921 rm -rf conftest*
6922 eval "ac_cv_func_$ac_func=yes"
6923else
6924 echo "configure: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 rm -rf conftest*
6927 eval "ac_cv_func_$ac_func=no"
6928fi
6929rm -f conftest*
6930fi
6931
6932if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6933 echo "$ac_t""yes" 1>&6
6934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6935 cat >> confdefs.h <<EOF
6936#define $ac_tr_func 1
6937EOF
6938
6939else
6940 echo "$ac_t""no" 1>&6
6941fi
6942done
6943
6944 fi
6945
6946
421173e6
PE
6947 echo $ac_n "checking for sinf declaration""... $ac_c" 1>&6
6948echo "configure:6949: checking for sinf declaration" >&5
6949 if eval "test \"`echo '$''{'glibcpp_cv_func_sinf_use'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6951else
38bd7296 6952
421173e6
PE
6953
6954 ac_ext=C
38bd7296
BK
6955# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6956ac_cpp='$CXXCPP $CPPFLAGS'
6957ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6958ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6959cross_compiling=$ac_cv_prog_cxx_cross
6960
421173e6
PE
6961 cat > conftest.$ac_ext <<EOF
6962#line 6963 "configure"
38bd7296
BK
6963#include "confdefs.h"
6964#include <math.h>
6965int main() {
6966 sinf(0);
6967; return 0; }
6968EOF
421173e6 6969if { (eval echo configure:6970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 6970 rm -rf conftest*
421173e6 6971 glibcpp_cv_func_sinf_use=yes
38bd7296
BK
6972else
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6975 rm -rf conftest*
421173e6 6976 glibcpp_cv_func_sinf_use=no
38bd7296
BK
6977fi
6978rm -f conftest*
421173e6 6979 ac_ext=c
38bd7296
BK
6980# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6981ac_cpp='$CPP $CPPFLAGS'
6982ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6983ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6984cross_compiling=$ac_cv_prog_cc_cross
6985
421173e6
PE
6986
6987fi
6988
6989 echo "$ac_t""$glibcpp_cv_func_sinf_use" 1>&6
6990 if test x$glibcpp_cv_func_sinf_use = x"yes"; then
38bd7296
BK
6991 for ac_func in sinf
6992do
6993echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 6994echo "configure:6995: checking for $ac_func" >&5
38bd7296
BK
6995if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6997else
6998 cat > conftest.$ac_ext <<EOF
421173e6 6999#line 7000 "configure"
38bd7296
BK
7000#include "confdefs.h"
7001/* System header to define __stub macros and hopefully few prototypes,
7002 which can conflict with char $ac_func(); below. */
7003#include <assert.h>
7004/* Override any gcc2 internal prototype to avoid an error. */
7005/* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7007char $ac_func();
7008
7009int main() {
7010
7011/* The GNU C library defines this for functions which it implements
7012 to always fail with ENOSYS. Some functions are actually named
7013 something starting with __ and the normal name is an alias. */
7014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015choke me
7016#else
7017$ac_func();
7018#endif
7019
7020; return 0; }
7021EOF
421173e6 7022if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7023 rm -rf conftest*
7024 eval "ac_cv_func_$ac_func=yes"
7025else
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7028 rm -rf conftest*
7029 eval "ac_cv_func_$ac_func=no"
7030fi
7031rm -f conftest*
7032fi
7033
7034if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7035 echo "$ac_t""yes" 1>&6
7036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7037 cat >> confdefs.h <<EOF
7038#define $ac_tr_func 1
7039EOF
7040
7041else
7042 echo "$ac_t""no" 1>&6
7043fi
7044done
7045
7046 fi
7047
7048
421173e6
PE
7049 echo $ac_n "checking for sinhf declaration""... $ac_c" 1>&6
7050echo "configure:7051: checking for sinhf declaration" >&5
7051 if eval "test \"`echo '$''{'glibcpp_cv_func_sinhf_use'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7053else
38bd7296 7054
421173e6
PE
7055
7056 ac_ext=C
38bd7296
BK
7057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7058ac_cpp='$CXXCPP $CPPFLAGS'
7059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7061cross_compiling=$ac_cv_prog_cxx_cross
7062
421173e6
PE
7063 cat > conftest.$ac_ext <<EOF
7064#line 7065 "configure"
38bd7296
BK
7065#include "confdefs.h"
7066#include <math.h>
7067int main() {
7068 sinhf(0);
7069; return 0; }
7070EOF
421173e6 7071if { (eval echo configure:7072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7072 rm -rf conftest*
421173e6 7073 glibcpp_cv_func_sinhf_use=yes
38bd7296
BK
7074else
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
421173e6 7078 glibcpp_cv_func_sinhf_use=no
38bd7296
BK
7079fi
7080rm -f conftest*
421173e6 7081 ac_ext=c
38bd7296
BK
7082# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7083ac_cpp='$CPP $CPPFLAGS'
7084ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7085ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7086cross_compiling=$ac_cv_prog_cc_cross
7087
421173e6
PE
7088
7089fi
7090
7091 echo "$ac_t""$glibcpp_cv_func_sinhf_use" 1>&6
7092 if test x$glibcpp_cv_func_sinhf_use = x"yes"; then
38bd7296
BK
7093 for ac_func in sinhf
7094do
7095echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7096echo "configure:7097: checking for $ac_func" >&5
38bd7296
BK
7097if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7099else
7100 cat > conftest.$ac_ext <<EOF
421173e6 7101#line 7102 "configure"
38bd7296
BK
7102#include "confdefs.h"
7103/* System header to define __stub macros and hopefully few prototypes,
7104 which can conflict with char $ac_func(); below. */
7105#include <assert.h>
7106/* Override any gcc2 internal prototype to avoid an error. */
7107/* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7109char $ac_func();
7110
7111int main() {
7112
7113/* The GNU C library defines this for functions which it implements
7114 to always fail with ENOSYS. Some functions are actually named
7115 something starting with __ and the normal name is an alias. */
7116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117choke me
7118#else
7119$ac_func();
7120#endif
7121
7122; return 0; }
7123EOF
421173e6 7124if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7125 rm -rf conftest*
7126 eval "ac_cv_func_$ac_func=yes"
7127else
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 rm -rf conftest*
7131 eval "ac_cv_func_$ac_func=no"
7132fi
7133rm -f conftest*
7134fi
7135
7136if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7137 echo "$ac_t""yes" 1>&6
7138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7139 cat >> confdefs.h <<EOF
7140#define $ac_tr_func 1
7141EOF
7142
7143else
7144 echo "$ac_t""no" 1>&6
7145fi
7146done
7147
7148 fi
7149
7150
421173e6
PE
7151 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
7152echo "configure:7153: checking for sqrtf declaration" >&5
7153 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7155else
38bd7296 7156
421173e6
PE
7157
7158 ac_ext=C
38bd7296
BK
7159# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7160ac_cpp='$CXXCPP $CPPFLAGS'
7161ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7162ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7163cross_compiling=$ac_cv_prog_cxx_cross
7164
421173e6
PE
7165 cat > conftest.$ac_ext <<EOF
7166#line 7167 "configure"
38bd7296
BK
7167#include "confdefs.h"
7168#include <math.h>
7169int main() {
7170 sqrtf(0);
7171; return 0; }
7172EOF
421173e6 7173if { (eval echo configure:7174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7174 rm -rf conftest*
421173e6 7175 glibcpp_cv_func_sqrtf_use=yes
38bd7296
BK
7176else
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7179 rm -rf conftest*
421173e6 7180 glibcpp_cv_func_sqrtf_use=no
38bd7296
BK
7181fi
7182rm -f conftest*
421173e6 7183 ac_ext=c
38bd7296
BK
7184# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7185ac_cpp='$CPP $CPPFLAGS'
7186ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7187ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7188cross_compiling=$ac_cv_prog_cc_cross
7189
421173e6
PE
7190
7191fi
7192
7193 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
7194 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
38bd7296
BK
7195 for ac_func in sqrtf
7196do
7197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7198echo "configure:7199: checking for $ac_func" >&5
38bd7296
BK
7199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7201else
7202 cat > conftest.$ac_ext <<EOF
421173e6 7203#line 7204 "configure"
38bd7296
BK
7204#include "confdefs.h"
7205/* System header to define __stub macros and hopefully few prototypes,
7206 which can conflict with char $ac_func(); below. */
7207#include <assert.h>
7208/* Override any gcc2 internal prototype to avoid an error. */
7209/* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7211char $ac_func();
7212
7213int main() {
7214
7215/* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7219choke me
7220#else
7221$ac_func();
7222#endif
7223
7224; return 0; }
7225EOF
421173e6 7226if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7227 rm -rf conftest*
7228 eval "ac_cv_func_$ac_func=yes"
7229else
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7232 rm -rf conftest*
7233 eval "ac_cv_func_$ac_func=no"
7234fi
7235rm -f conftest*
7236fi
7237
7238if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7239 echo "$ac_t""yes" 1>&6
7240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7241 cat >> confdefs.h <<EOF
7242#define $ac_tr_func 1
7243EOF
7244
7245else
7246 echo "$ac_t""no" 1>&6
7247fi
7248done
7249
7250 fi
7251
7252
421173e6
PE
7253 echo $ac_n "checking for tanf declaration""... $ac_c" 1>&6
7254echo "configure:7255: checking for tanf declaration" >&5
7255 if eval "test \"`echo '$''{'glibcpp_cv_func_tanf_use'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7257else
38bd7296 7258
421173e6
PE
7259
7260 ac_ext=C
38bd7296
BK
7261# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7262ac_cpp='$CXXCPP $CPPFLAGS'
7263ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7264ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7265cross_compiling=$ac_cv_prog_cxx_cross
7266
421173e6
PE
7267 cat > conftest.$ac_ext <<EOF
7268#line 7269 "configure"
38bd7296
BK
7269#include "confdefs.h"
7270#include <math.h>
7271int main() {
7272 tanf(0);
7273; return 0; }
7274EOF
421173e6 7275if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7276 rm -rf conftest*
421173e6 7277 glibcpp_cv_func_tanf_use=yes
38bd7296
BK
7278else
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 rm -rf conftest*
421173e6 7282 glibcpp_cv_func_tanf_use=no
38bd7296
BK
7283fi
7284rm -f conftest*
421173e6 7285 ac_ext=c
38bd7296
BK
7286# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7287ac_cpp='$CPP $CPPFLAGS'
7288ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7289ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7290cross_compiling=$ac_cv_prog_cc_cross
7291
421173e6
PE
7292
7293fi
7294
7295 echo "$ac_t""$glibcpp_cv_func_tanf_use" 1>&6
7296 if test x$glibcpp_cv_func_tanf_use = x"yes"; then
38bd7296
BK
7297 for ac_func in tanf
7298do
7299echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7300echo "configure:7301: checking for $ac_func" >&5
38bd7296
BK
7301if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7303else
7304 cat > conftest.$ac_ext <<EOF
421173e6 7305#line 7306 "configure"
38bd7296
BK
7306#include "confdefs.h"
7307/* System header to define __stub macros and hopefully few prototypes,
7308 which can conflict with char $ac_func(); below. */
7309#include <assert.h>
7310/* Override any gcc2 internal prototype to avoid an error. */
7311/* We use char because int might match the return type of a gcc2
7312 builtin and then its argument prototype would still apply. */
7313char $ac_func();
7314
7315int main() {
7316
7317/* The GNU C library defines this for functions which it implements
7318 to always fail with ENOSYS. Some functions are actually named
7319 something starting with __ and the normal name is an alias. */
7320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7321choke me
7322#else
7323$ac_func();
7324#endif
7325
7326; return 0; }
7327EOF
421173e6 7328if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7329 rm -rf conftest*
7330 eval "ac_cv_func_$ac_func=yes"
7331else
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 rm -rf conftest*
7335 eval "ac_cv_func_$ac_func=no"
7336fi
7337rm -f conftest*
7338fi
7339
7340if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7341 echo "$ac_t""yes" 1>&6
7342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7343 cat >> confdefs.h <<EOF
7344#define $ac_tr_func 1
7345EOF
7346
7347else
7348 echo "$ac_t""no" 1>&6
7349fi
7350done
7351
7352 fi
7353
7354
421173e6
PE
7355 echo $ac_n "checking for tanhf declaration""... $ac_c" 1>&6
7356echo "configure:7357: checking for tanhf declaration" >&5
7357 if eval "test \"`echo '$''{'glibcpp_cv_func_tanhf_use'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7359else
38bd7296 7360
421173e6
PE
7361
7362 ac_ext=C
38bd7296
BK
7363# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7364ac_cpp='$CXXCPP $CPPFLAGS'
7365ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7366ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7367cross_compiling=$ac_cv_prog_cxx_cross
7368
421173e6
PE
7369 cat > conftest.$ac_ext <<EOF
7370#line 7371 "configure"
38bd7296
BK
7371#include "confdefs.h"
7372#include <math.h>
7373int main() {
7374 tanhf(0);
7375; return 0; }
7376EOF
421173e6 7377if { (eval echo configure:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7378 rm -rf conftest*
421173e6 7379 glibcpp_cv_func_tanhf_use=yes
38bd7296
BK
7380else
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 rm -rf conftest*
421173e6 7384 glibcpp_cv_func_tanhf_use=no
38bd7296
BK
7385fi
7386rm -f conftest*
421173e6 7387 ac_ext=c
38bd7296
BK
7388# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7389ac_cpp='$CPP $CPPFLAGS'
7390ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7391ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7392cross_compiling=$ac_cv_prog_cc_cross
7393
421173e6
PE
7394
7395fi
7396
7397 echo "$ac_t""$glibcpp_cv_func_tanhf_use" 1>&6
7398 if test x$glibcpp_cv_func_tanhf_use = x"yes"; then
38bd7296
BK
7399 for ac_func in tanhf
7400do
7401echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7402echo "configure:7403: checking for $ac_func" >&5
38bd7296
BK
7403if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7405else
7406 cat > conftest.$ac_ext <<EOF
421173e6 7407#line 7408 "configure"
38bd7296
BK
7408#include "confdefs.h"
7409/* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char $ac_func(); below. */
7411#include <assert.h>
7412/* Override any gcc2 internal prototype to avoid an error. */
7413/* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415char $ac_func();
7416
7417int main() {
7418
7419/* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423choke me
7424#else
7425$ac_func();
7426#endif
7427
7428; return 0; }
7429EOF
421173e6 7430if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7431 rm -rf conftest*
7432 eval "ac_cv_func_$ac_func=yes"
7433else
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 rm -rf conftest*
7437 eval "ac_cv_func_$ac_func=no"
7438fi
7439rm -f conftest*
7440fi
7441
7442if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7445 cat >> confdefs.h <<EOF
7446#define $ac_tr_func 1
7447EOF
7448
7449else
7450 echo "$ac_t""no" 1>&6
7451fi
7452done
7453
7454 fi
7455
7456
421173e6
PE
7457 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
7458echo "configure:7459: checking for sincosf declaration" >&5
7459 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7461else
38bd7296 7462
421173e6
PE
7463
7464 ac_ext=C
38bd7296
BK
7465# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7466ac_cpp='$CXXCPP $CPPFLAGS'
7467ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7468ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7469cross_compiling=$ac_cv_prog_cxx_cross
7470
421173e6
PE
7471 cat > conftest.$ac_ext <<EOF
7472#line 7473 "configure"
38bd7296
BK
7473#include "confdefs.h"
7474#include <math.h>
7475int main() {
7476 sincosf(0, 0, 0);
7477; return 0; }
7478EOF
421173e6 7479if { (eval echo configure:7480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7480 rm -rf conftest*
421173e6 7481 glibcpp_cv_func_sincosf_use=yes
38bd7296
BK
7482else
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 rm -rf conftest*
421173e6 7486 glibcpp_cv_func_sincosf_use=no
38bd7296
BK
7487fi
7488rm -f conftest*
421173e6 7489 ac_ext=c
38bd7296
BK
7490# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7491ac_cpp='$CPP $CPPFLAGS'
7492ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7493ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7494cross_compiling=$ac_cv_prog_cc_cross
7495
421173e6
PE
7496
7497fi
7498
7499 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
7500 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
38bd7296
BK
7501 for ac_func in sincosf
7502do
7503echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7504echo "configure:7505: checking for $ac_func" >&5
38bd7296
BK
7505if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7507else
7508 cat > conftest.$ac_ext <<EOF
421173e6 7509#line 7510 "configure"
38bd7296
BK
7510#include "confdefs.h"
7511/* System header to define __stub macros and hopefully few prototypes,
7512 which can conflict with char $ac_func(); below. */
7513#include <assert.h>
7514/* Override any gcc2 internal prototype to avoid an error. */
7515/* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517char $ac_func();
7518
7519int main() {
7520
7521/* The GNU C library defines this for functions which it implements
7522 to always fail with ENOSYS. Some functions are actually named
7523 something starting with __ and the normal name is an alias. */
7524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7525choke me
7526#else
7527$ac_func();
7528#endif
7529
7530; return 0; }
7531EOF
421173e6 7532if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=yes"
7535else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 eval "ac_cv_func_$ac_func=no"
7540fi
7541rm -f conftest*
7542fi
7543
7544if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7547 cat >> confdefs.h <<EOF
7548#define $ac_tr_func 1
7549EOF
7550
7551else
7552 echo "$ac_t""no" 1>&6
7553fi
7554done
7555
7556 fi
7557
7558
421173e6
PE
7559 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
7560echo "configure:7561: checking for finitef declaration" >&5
7561 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7563else
38bd7296 7564
421173e6
PE
7565
7566 ac_ext=C
38bd7296
BK
7567# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7568ac_cpp='$CXXCPP $CPPFLAGS'
7569ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7570ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7571cross_compiling=$ac_cv_prog_cxx_cross
7572
421173e6
PE
7573 cat > conftest.$ac_ext <<EOF
7574#line 7575 "configure"
38bd7296
BK
7575#include "confdefs.h"
7576#include <math.h>
7577int main() {
7578 finitef(0);
7579; return 0; }
7580EOF
421173e6 7581if { (eval echo configure:7582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7582 rm -rf conftest*
421173e6 7583 glibcpp_cv_func_finitef_use=yes
38bd7296
BK
7584else
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 rm -rf conftest*
421173e6 7588 glibcpp_cv_func_finitef_use=no
38bd7296
BK
7589fi
7590rm -f conftest*
421173e6 7591 ac_ext=c
38bd7296
BK
7592# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7593ac_cpp='$CPP $CPPFLAGS'
7594ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7595ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7596cross_compiling=$ac_cv_prog_cc_cross
7597
421173e6
PE
7598
7599fi
7600
7601 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
7602 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
38bd7296
BK
7603 for ac_func in finitef
7604do
7605echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7606echo "configure:7607: checking for $ac_func" >&5
38bd7296
BK
7607if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7609else
7610 cat > conftest.$ac_ext <<EOF
421173e6 7611#line 7612 "configure"
38bd7296
BK
7612#include "confdefs.h"
7613/* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func(); below. */
7615#include <assert.h>
7616/* Override any gcc2 internal prototype to avoid an error. */
7617/* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619char $ac_func();
7620
7621int main() {
7622
7623/* The GNU C library defines this for functions which it implements
7624 to always fail with ENOSYS. Some functions are actually named
7625 something starting with __ and the normal name is an alias. */
7626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7627choke me
7628#else
7629$ac_func();
7630#endif
7631
7632; return 0; }
7633EOF
421173e6 7634if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7635 rm -rf conftest*
7636 eval "ac_cv_func_$ac_func=yes"
7637else
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 rm -rf conftest*
7641 eval "ac_cv_func_$ac_func=no"
7642fi
7643rm -f conftest*
7644fi
7645
7646if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7649 cat >> confdefs.h <<EOF
7650#define $ac_tr_func 1
7651EOF
7652
7653else
7654 echo "$ac_t""no" 1>&6
7655fi
7656done
7657
7658 fi
7659
7660
7661
421173e6
PE
7662 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
7663echo "configure:7664: checking for isnanl declaration" >&5
7664 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666else
38bd7296 7667
421173e6
PE
7668
7669 ac_ext=C
38bd7296
BK
7670# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7671ac_cpp='$CXXCPP $CPPFLAGS'
7672ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7673ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7674cross_compiling=$ac_cv_prog_cxx_cross
7675
421173e6
PE
7676 cat > conftest.$ac_ext <<EOF
7677#line 7678 "configure"
38bd7296
BK
7678#include "confdefs.h"
7679#include <math.h>
7680int main() {
7681 isnanl(0);
7682; return 0; }
7683EOF
421173e6 7684if { (eval echo configure:7685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7685 rm -rf conftest*
421173e6 7686 glibcpp_cv_func_isnanl_use=yes
38bd7296
BK
7687else
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 rm -rf conftest*
421173e6 7691 glibcpp_cv_func_isnanl_use=no
38bd7296
BK
7692fi
7693rm -f conftest*
421173e6 7694 ac_ext=c
38bd7296
BK
7695# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7696ac_cpp='$CPP $CPPFLAGS'
7697ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7698ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7699cross_compiling=$ac_cv_prog_cc_cross
7700
421173e6
PE
7701
7702fi
7703
7704 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
7705 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
38bd7296
BK
7706 for ac_func in isnanl
7707do
7708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7709echo "configure:7710: checking for $ac_func" >&5
38bd7296
BK
7710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7712else
7713 cat > conftest.$ac_ext <<EOF
421173e6 7714#line 7715 "configure"
38bd7296
BK
7715#include "confdefs.h"
7716/* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char $ac_func(); below. */
7718#include <assert.h>
7719/* Override any gcc2 internal prototype to avoid an error. */
7720/* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722char $ac_func();
7723
7724int main() {
7725
7726/* The GNU C library defines this for functions which it implements
7727 to always fail with ENOSYS. Some functions are actually named
7728 something starting with __ and the normal name is an alias. */
7729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730choke me
7731#else
7732$ac_func();
7733#endif
7734
7735; return 0; }
7736EOF
421173e6 7737if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7738 rm -rf conftest*
7739 eval "ac_cv_func_$ac_func=yes"
7740else
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7743 rm -rf conftest*
7744 eval "ac_cv_func_$ac_func=no"
7745fi
7746rm -f conftest*
7747fi
7748
7749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7750 echo "$ac_t""yes" 1>&6
7751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752 cat >> confdefs.h <<EOF
7753#define $ac_tr_func 1
7754EOF
7755
7756else
7757 echo "$ac_t""no" 1>&6
7758fi
7759done
7760
7761 fi
7762
7763
421173e6
PE
7764 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
7765echo "configure:7766: checking for isinfl declaration" >&5
7766 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7768else
38bd7296 7769
421173e6
PE
7770
7771 ac_ext=C
38bd7296
BK
7772# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7773ac_cpp='$CXXCPP $CPPFLAGS'
7774ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7775ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7776cross_compiling=$ac_cv_prog_cxx_cross
7777
421173e6
PE
7778 cat > conftest.$ac_ext <<EOF
7779#line 7780 "configure"
38bd7296
BK
7780#include "confdefs.h"
7781#include <math.h>
7782int main() {
7783 isinfl(0);
7784; return 0; }
7785EOF
421173e6 7786if { (eval echo configure:7787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7787 rm -rf conftest*
421173e6 7788 glibcpp_cv_func_isinfl_use=yes
38bd7296
BK
7789else
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 rm -rf conftest*
421173e6 7793 glibcpp_cv_func_isinfl_use=no
38bd7296
BK
7794fi
7795rm -f conftest*
421173e6 7796 ac_ext=c
38bd7296
BK
7797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7798ac_cpp='$CPP $CPPFLAGS'
7799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7801cross_compiling=$ac_cv_prog_cc_cross
7802
421173e6
PE
7803
7804fi
7805
7806 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
7807 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
38bd7296
BK
7808 for ac_func in isinfl
7809do
7810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7811echo "configure:7812: checking for $ac_func" >&5
38bd7296
BK
7812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7814else
7815 cat > conftest.$ac_ext <<EOF
421173e6 7816#line 7817 "configure"
38bd7296
BK
7817#include "confdefs.h"
7818/* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func(); below. */
7820#include <assert.h>
7821/* Override any gcc2 internal prototype to avoid an error. */
7822/* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824char $ac_func();
7825
7826int main() {
7827
7828/* The GNU C library defines this for functions which it implements
7829 to always fail with ENOSYS. Some functions are actually named
7830 something starting with __ and the normal name is an alias. */
7831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7832choke me
7833#else
7834$ac_func();
7835#endif
7836
7837; return 0; }
7838EOF
421173e6 7839if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7840 rm -rf conftest*
7841 eval "ac_cv_func_$ac_func=yes"
7842else
7843 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7845 rm -rf conftest*
7846 eval "ac_cv_func_$ac_func=no"
7847fi
7848rm -f conftest*
7849fi
7850
7851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854 cat >> confdefs.h <<EOF
7855#define $ac_tr_func 1
7856EOF
7857
7858else
7859 echo "$ac_t""no" 1>&6
7860fi
7861done
7862
7863 fi
7864
7865
421173e6
PE
7866 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
7867echo "configure:7868: checking for copysignl declaration" >&5
7868 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7870else
38bd7296 7871
421173e6
PE
7872
7873 ac_ext=C
38bd7296
BK
7874# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7875ac_cpp='$CXXCPP $CPPFLAGS'
7876ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7877ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7878cross_compiling=$ac_cv_prog_cxx_cross
7879
421173e6
PE
7880 cat > conftest.$ac_ext <<EOF
7881#line 7882 "configure"
38bd7296
BK
7882#include "confdefs.h"
7883#include <math.h>
7884int main() {
11fc1858 7885 copysignl(0, 0);
38bd7296
BK
7886; return 0; }
7887EOF
421173e6 7888if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7889 rm -rf conftest*
421173e6 7890 glibcpp_cv_func_copysignl_use=yes
38bd7296
BK
7891else
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7894 rm -rf conftest*
421173e6 7895 glibcpp_cv_func_copysignl_use=no
38bd7296
BK
7896fi
7897rm -f conftest*
421173e6 7898 ac_ext=c
38bd7296
BK
7899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7900ac_cpp='$CPP $CPPFLAGS'
7901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7903cross_compiling=$ac_cv_prog_cc_cross
7904
421173e6
PE
7905
7906fi
7907
7908 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
7909 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
38bd7296
BK
7910 for ac_func in copysignl
7911do
7912echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 7913echo "configure:7914: checking for $ac_func" >&5
38bd7296
BK
7914if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7916else
7917 cat > conftest.$ac_ext <<EOF
421173e6 7918#line 7919 "configure"
38bd7296
BK
7919#include "confdefs.h"
7920/* System header to define __stub macros and hopefully few prototypes,
7921 which can conflict with char $ac_func(); below. */
7922#include <assert.h>
7923/* Override any gcc2 internal prototype to avoid an error. */
7924/* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7926char $ac_func();
7927
7928int main() {
7929
7930/* The GNU C library defines this for functions which it implements
7931 to always fail with ENOSYS. Some functions are actually named
7932 something starting with __ and the normal name is an alias. */
7933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7934choke me
7935#else
7936$ac_func();
7937#endif
7938
7939; return 0; }
7940EOF
421173e6 7941if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
7942 rm -rf conftest*
7943 eval "ac_cv_func_$ac_func=yes"
7944else
7945 echo "configure: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 rm -rf conftest*
7948 eval "ac_cv_func_$ac_func=no"
7949fi
7950rm -f conftest*
7951fi
7952
7953if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7954 echo "$ac_t""yes" 1>&6
7955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7956 cat >> confdefs.h <<EOF
7957#define $ac_tr_func 1
7958EOF
7959
7960else
7961 echo "$ac_t""no" 1>&6
7962fi
7963done
7964
7965 fi
7966
7967
421173e6
PE
7968 echo $ac_n "checking for acosl declaration""... $ac_c" 1>&6
7969echo "configure:7970: checking for acosl declaration" >&5
7970 if eval "test \"`echo '$''{'glibcpp_cv_func_acosl_use'+set}'`\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7972else
38bd7296 7973
421173e6
PE
7974
7975 ac_ext=C
38bd7296
BK
7976# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7977ac_cpp='$CXXCPP $CPPFLAGS'
7978ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7979ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7980cross_compiling=$ac_cv_prog_cxx_cross
7981
421173e6
PE
7982 cat > conftest.$ac_ext <<EOF
7983#line 7984 "configure"
38bd7296
BK
7984#include "confdefs.h"
7985#include <math.h>
7986int main() {
7987 acosl(0);
7988; return 0; }
7989EOF
421173e6 7990if { (eval echo configure:7991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 7991 rm -rf conftest*
421173e6 7992 glibcpp_cv_func_acosl_use=yes
38bd7296
BK
7993else
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 rm -rf conftest*
421173e6 7997 glibcpp_cv_func_acosl_use=no
38bd7296
BK
7998fi
7999rm -f conftest*
421173e6 8000 ac_ext=c
38bd7296
BK
8001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8005cross_compiling=$ac_cv_prog_cc_cross
8006
421173e6
PE
8007
8008fi
8009
8010 echo "$ac_t""$glibcpp_cv_func_acosl_use" 1>&6
8011 if test x$glibcpp_cv_func_acosl_use = x"yes"; then
38bd7296
BK
8012 for ac_func in acosl
8013do
8014echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8015echo "configure:8016: checking for $ac_func" >&5
38bd7296
BK
8016if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8018else
8019 cat > conftest.$ac_ext <<EOF
421173e6 8020#line 8021 "configure"
38bd7296
BK
8021#include "confdefs.h"
8022/* System header to define __stub macros and hopefully few prototypes,
8023 which can conflict with char $ac_func(); below. */
8024#include <assert.h>
8025/* Override any gcc2 internal prototype to avoid an error. */
8026/* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028char $ac_func();
8029
8030int main() {
8031
8032/* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036choke me
8037#else
8038$ac_func();
8039#endif
8040
8041; return 0; }
8042EOF
421173e6 8043if { (eval echo configure:8044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8044 rm -rf conftest*
8045 eval "ac_cv_func_$ac_func=yes"
8046else
8047 echo "configure: failed program was:" >&5
8048 cat conftest.$ac_ext >&5
8049 rm -rf conftest*
8050 eval "ac_cv_func_$ac_func=no"
8051fi
8052rm -f conftest*
8053fi
8054
8055if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8056 echo "$ac_t""yes" 1>&6
8057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8058 cat >> confdefs.h <<EOF
8059#define $ac_tr_func 1
8060EOF
8061
8062else
8063 echo "$ac_t""no" 1>&6
8064fi
8065done
8066
8067 fi
8068
8069
421173e6
PE
8070 echo $ac_n "checking for asinl declaration""... $ac_c" 1>&6
8071echo "configure:8072: checking for asinl declaration" >&5
8072 if eval "test \"`echo '$''{'glibcpp_cv_func_asinl_use'+set}'`\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8074else
38bd7296 8075
421173e6
PE
8076
8077 ac_ext=C
38bd7296
BK
8078# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8079ac_cpp='$CXXCPP $CPPFLAGS'
8080ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8081ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8082cross_compiling=$ac_cv_prog_cxx_cross
8083
421173e6
PE
8084 cat > conftest.$ac_ext <<EOF
8085#line 8086 "configure"
38bd7296
BK
8086#include "confdefs.h"
8087#include <math.h>
8088int main() {
8089 asinl(0);
8090; return 0; }
8091EOF
421173e6 8092if { (eval echo configure:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8093 rm -rf conftest*
421173e6 8094 glibcpp_cv_func_asinl_use=yes
38bd7296
BK
8095else
8096 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8098 rm -rf conftest*
421173e6 8099 glibcpp_cv_func_asinl_use=no
38bd7296
BK
8100fi
8101rm -f conftest*
421173e6 8102 ac_ext=c
38bd7296
BK
8103# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8104ac_cpp='$CPP $CPPFLAGS'
8105ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8106ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8107cross_compiling=$ac_cv_prog_cc_cross
8108
421173e6
PE
8109
8110fi
8111
8112 echo "$ac_t""$glibcpp_cv_func_asinl_use" 1>&6
8113 if test x$glibcpp_cv_func_asinl_use = x"yes"; then
38bd7296
BK
8114 for ac_func in asinl
8115do
8116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8117echo "configure:8118: checking for $ac_func" >&5
38bd7296
BK
8118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8120else
8121 cat > conftest.$ac_ext <<EOF
421173e6 8122#line 8123 "configure"
38bd7296
BK
8123#include "confdefs.h"
8124/* System header to define __stub macros and hopefully few prototypes,
8125 which can conflict with char $ac_func(); below. */
8126#include <assert.h>
8127/* Override any gcc2 internal prototype to avoid an error. */
8128/* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8130char $ac_func();
8131
8132int main() {
8133
8134/* The GNU C library defines this for functions which it implements
8135 to always fail with ENOSYS. Some functions are actually named
8136 something starting with __ and the normal name is an alias. */
8137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8138choke me
8139#else
8140$ac_func();
8141#endif
8142
8143; return 0; }
8144EOF
421173e6 8145if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8146 rm -rf conftest*
8147 eval "ac_cv_func_$ac_func=yes"
8148else
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152 eval "ac_cv_func_$ac_func=no"
8153fi
8154rm -f conftest*
8155fi
8156
8157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8158 echo "$ac_t""yes" 1>&6
8159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8160 cat >> confdefs.h <<EOF
8161#define $ac_tr_func 1
8162EOF
8163
8164else
8165 echo "$ac_t""no" 1>&6
8166fi
8167done
8168
8169 fi
8170
8171
421173e6
PE
8172 echo $ac_n "checking for atanl declaration""... $ac_c" 1>&6
8173echo "configure:8174: checking for atanl declaration" >&5
8174 if eval "test \"`echo '$''{'glibcpp_cv_func_atanl_use'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8176else
38bd7296 8177
421173e6
PE
8178
8179 ac_ext=C
38bd7296
BK
8180# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8181ac_cpp='$CXXCPP $CPPFLAGS'
8182ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8183ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8184cross_compiling=$ac_cv_prog_cxx_cross
8185
421173e6
PE
8186 cat > conftest.$ac_ext <<EOF
8187#line 8188 "configure"
38bd7296
BK
8188#include "confdefs.h"
8189#include <math.h>
8190int main() {
8191 atanl(0);
8192; return 0; }
8193EOF
421173e6 8194if { (eval echo configure:8195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8195 rm -rf conftest*
421173e6 8196 glibcpp_cv_func_atanl_use=yes
38bd7296
BK
8197else
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 rm -rf conftest*
421173e6 8201 glibcpp_cv_func_atanl_use=no
38bd7296
BK
8202fi
8203rm -f conftest*
421173e6 8204 ac_ext=c
38bd7296
BK
8205# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8206ac_cpp='$CPP $CPPFLAGS'
8207ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8208ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8209cross_compiling=$ac_cv_prog_cc_cross
8210
421173e6
PE
8211
8212fi
8213
8214 echo "$ac_t""$glibcpp_cv_func_atanl_use" 1>&6
8215 if test x$glibcpp_cv_func_atanl_use = x"yes"; then
38bd7296
BK
8216 for ac_func in atanl
8217do
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8219echo "configure:8220: checking for $ac_func" >&5
38bd7296
BK
8220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6
8222else
8223 cat > conftest.$ac_ext <<EOF
421173e6 8224#line 8225 "configure"
38bd7296
BK
8225#include "confdefs.h"
8226/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */
8228#include <assert.h>
8229/* Override any gcc2 internal prototype to avoid an error. */
8230/* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232char $ac_func();
8233
8234int main() {
8235
8236/* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240choke me
8241#else
8242$ac_func();
8243#endif
8244
8245; return 0; }
8246EOF
421173e6 8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8248 rm -rf conftest*
8249 eval "ac_cv_func_$ac_func=yes"
8250else
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8255fi
8256rm -f conftest*
8257fi
8258
8259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8262 cat >> confdefs.h <<EOF
8263#define $ac_tr_func 1
8264EOF
8265
8266else
8267 echo "$ac_t""no" 1>&6
8268fi
8269done
8270
8271 fi
8272
8273
421173e6
PE
8274 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
8275echo "configure:8276: checking for atan2l declaration" >&5
8276 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278else
38bd7296 8279
421173e6
PE
8280
8281 ac_ext=C
38bd7296
BK
8282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8283ac_cpp='$CXXCPP $CPPFLAGS'
8284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8286cross_compiling=$ac_cv_prog_cxx_cross
8287
421173e6
PE
8288 cat > conftest.$ac_ext <<EOF
8289#line 8290 "configure"
38bd7296
BK
8290#include "confdefs.h"
8291#include <math.h>
8292int main() {
8293 atan2l(0, 0);
8294; return 0; }
8295EOF
421173e6 8296if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8297 rm -rf conftest*
421173e6 8298 glibcpp_cv_func_atan2l_use=yes
38bd7296
BK
8299else
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 rm -rf conftest*
421173e6 8303 glibcpp_cv_func_atan2l_use=no
38bd7296
BK
8304fi
8305rm -f conftest*
421173e6 8306 ac_ext=c
38bd7296
BK
8307# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8310ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8311cross_compiling=$ac_cv_prog_cc_cross
8312
421173e6
PE
8313
8314fi
8315
8316 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
8317 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
38bd7296
BK
8318 for ac_func in atan2l
8319do
8320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8321echo "configure:8322: checking for $ac_func" >&5
38bd7296
BK
8322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8324else
8325 cat > conftest.$ac_ext <<EOF
421173e6 8326#line 8327 "configure"
38bd7296
BK
8327#include "confdefs.h"
8328/* System header to define __stub macros and hopefully few prototypes,
8329 which can conflict with char $ac_func(); below. */
8330#include <assert.h>
8331/* Override any gcc2 internal prototype to avoid an error. */
8332/* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334char $ac_func();
8335
8336int main() {
8337
8338/* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8342choke me
8343#else
8344$ac_func();
8345#endif
8346
8347; return 0; }
8348EOF
421173e6 8349if { (eval echo configure:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8350 rm -rf conftest*
8351 eval "ac_cv_func_$ac_func=yes"
8352else
8353 echo "configure: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8355 rm -rf conftest*
8356 eval "ac_cv_func_$ac_func=no"
8357fi
8358rm -f conftest*
8359fi
8360
8361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8362 echo "$ac_t""yes" 1>&6
8363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8364 cat >> confdefs.h <<EOF
8365#define $ac_tr_func 1
8366EOF
8367
8368else
8369 echo "$ac_t""no" 1>&6
8370fi
8371done
8372
8373 fi
8374
8375
421173e6
PE
8376 echo $ac_n "checking for ceill declaration""... $ac_c" 1>&6
8377echo "configure:8378: checking for ceill declaration" >&5
8378 if eval "test \"`echo '$''{'glibcpp_cv_func_ceill_use'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8380else
38bd7296 8381
421173e6
PE
8382
8383 ac_ext=C
38bd7296
BK
8384# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8385ac_cpp='$CXXCPP $CPPFLAGS'
8386ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8387ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8388cross_compiling=$ac_cv_prog_cxx_cross
8389
421173e6
PE
8390 cat > conftest.$ac_ext <<EOF
8391#line 8392 "configure"
38bd7296
BK
8392#include "confdefs.h"
8393#include <math.h>
8394int main() {
8395 ceill(0);
8396; return 0; }
8397EOF
421173e6 8398if { (eval echo configure:8399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8399 rm -rf conftest*
421173e6 8400 glibcpp_cv_func_ceill_use=yes
38bd7296
BK
8401else
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 rm -rf conftest*
421173e6 8405 glibcpp_cv_func_ceill_use=no
38bd7296
BK
8406fi
8407rm -f conftest*
421173e6 8408 ac_ext=c
38bd7296
BK
8409# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8410ac_cpp='$CPP $CPPFLAGS'
8411ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8412ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8413cross_compiling=$ac_cv_prog_cc_cross
8414
421173e6
PE
8415
8416fi
8417
8418 echo "$ac_t""$glibcpp_cv_func_ceill_use" 1>&6
8419 if test x$glibcpp_cv_func_ceill_use = x"yes"; then
38bd7296
BK
8420 for ac_func in ceill
8421do
8422echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8423echo "configure:8424: checking for $ac_func" >&5
38bd7296
BK
8424if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8426else
8427 cat > conftest.$ac_ext <<EOF
421173e6 8428#line 8429 "configure"
38bd7296
BK
8429#include "confdefs.h"
8430/* System header to define __stub macros and hopefully few prototypes,
8431 which can conflict with char $ac_func(); below. */
8432#include <assert.h>
8433/* Override any gcc2 internal prototype to avoid an error. */
8434/* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436char $ac_func();
8437
8438int main() {
8439
8440/* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8444choke me
8445#else
8446$ac_func();
8447#endif
8448
8449; return 0; }
8450EOF
421173e6 8451if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8452 rm -rf conftest*
8453 eval "ac_cv_func_$ac_func=yes"
8454else
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8457 rm -rf conftest*
8458 eval "ac_cv_func_$ac_func=no"
8459fi
8460rm -f conftest*
8461fi
8462
8463if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
8465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8466 cat >> confdefs.h <<EOF
8467#define $ac_tr_func 1
8468EOF
8469
8470else
8471 echo "$ac_t""no" 1>&6
8472fi
8473done
8474
8475 fi
8476
8477
421173e6
PE
8478 echo $ac_n "checking for cosl declaration""... $ac_c" 1>&6
8479echo "configure:8480: checking for cosl declaration" >&5
8480 if eval "test \"`echo '$''{'glibcpp_cv_func_cosl_use'+set}'`\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8482else
38bd7296 8483
421173e6
PE
8484
8485 ac_ext=C
38bd7296
BK
8486# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8487ac_cpp='$CXXCPP $CPPFLAGS'
8488ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8489ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8490cross_compiling=$ac_cv_prog_cxx_cross
8491
421173e6
PE
8492 cat > conftest.$ac_ext <<EOF
8493#line 8494 "configure"
38bd7296
BK
8494#include "confdefs.h"
8495#include <math.h>
8496int main() {
8497 cosl(0);
8498; return 0; }
8499EOF
421173e6 8500if { (eval echo configure:8501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8501 rm -rf conftest*
421173e6 8502 glibcpp_cv_func_cosl_use=yes
38bd7296
BK
8503else
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 rm -rf conftest*
421173e6 8507 glibcpp_cv_func_cosl_use=no
38bd7296
BK
8508fi
8509rm -f conftest*
421173e6 8510 ac_ext=c
38bd7296
BK
8511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8512ac_cpp='$CPP $CPPFLAGS'
8513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8515cross_compiling=$ac_cv_prog_cc_cross
8516
421173e6
PE
8517
8518fi
8519
8520 echo "$ac_t""$glibcpp_cv_func_cosl_use" 1>&6
8521 if test x$glibcpp_cv_func_cosl_use = x"yes"; then
38bd7296
BK
8522 for ac_func in cosl
8523do
8524echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8525echo "configure:8526: checking for $ac_func" >&5
38bd7296
BK
8526if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528else
8529 cat > conftest.$ac_ext <<EOF
421173e6 8530#line 8531 "configure"
38bd7296
BK
8531#include "confdefs.h"
8532/* System header to define __stub macros and hopefully few prototypes,
8533 which can conflict with char $ac_func(); below. */
8534#include <assert.h>
8535/* Override any gcc2 internal prototype to avoid an error. */
8536/* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538char $ac_func();
8539
8540int main() {
8541
8542/* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546choke me
8547#else
8548$ac_func();
8549#endif
8550
8551; return 0; }
8552EOF
421173e6 8553if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8554 rm -rf conftest*
8555 eval "ac_cv_func_$ac_func=yes"
8556else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_func_$ac_func=no"
8561fi
8562rm -f conftest*
8563fi
8564
8565if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8566 echo "$ac_t""yes" 1>&6
8567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8568 cat >> confdefs.h <<EOF
8569#define $ac_tr_func 1
8570EOF
8571
8572else
8573 echo "$ac_t""no" 1>&6
8574fi
8575done
8576
8577 fi
8578
8579
421173e6
PE
8580 echo $ac_n "checking for coshl declaration""... $ac_c" 1>&6
8581echo "configure:8582: checking for coshl declaration" >&5
8582 if eval "test \"`echo '$''{'glibcpp_cv_func_coshl_use'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8584else
38bd7296 8585
421173e6
PE
8586
8587 ac_ext=C
38bd7296
BK
8588# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8589ac_cpp='$CXXCPP $CPPFLAGS'
8590ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8591ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8592cross_compiling=$ac_cv_prog_cxx_cross
8593
421173e6
PE
8594 cat > conftest.$ac_ext <<EOF
8595#line 8596 "configure"
38bd7296
BK
8596#include "confdefs.h"
8597#include <math.h>
8598int main() {
8599 coshl(0);
8600; return 0; }
8601EOF
421173e6 8602if { (eval echo configure:8603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8603 rm -rf conftest*
421173e6 8604 glibcpp_cv_func_coshl_use=yes
38bd7296
BK
8605else
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 rm -rf conftest*
421173e6 8609 glibcpp_cv_func_coshl_use=no
38bd7296
BK
8610fi
8611rm -f conftest*
421173e6 8612 ac_ext=c
38bd7296
BK
8613# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8614ac_cpp='$CPP $CPPFLAGS'
8615ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8616ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8617cross_compiling=$ac_cv_prog_cc_cross
8618
421173e6
PE
8619
8620fi
8621
8622 echo "$ac_t""$glibcpp_cv_func_coshl_use" 1>&6
8623 if test x$glibcpp_cv_func_coshl_use = x"yes"; then
38bd7296
BK
8624 for ac_func in coshl
8625do
8626echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8627echo "configure:8628: checking for $ac_func" >&5
38bd7296
BK
8628if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630else
8631 cat > conftest.$ac_ext <<EOF
421173e6 8632#line 8633 "configure"
38bd7296
BK
8633#include "confdefs.h"
8634/* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func(); below. */
8636#include <assert.h>
8637/* Override any gcc2 internal prototype to avoid an error. */
8638/* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640char $ac_func();
8641
8642int main() {
8643
8644/* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648choke me
8649#else
8650$ac_func();
8651#endif
8652
8653; return 0; }
8654EOF
421173e6 8655if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8656 rm -rf conftest*
8657 eval "ac_cv_func_$ac_func=yes"
8658else
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=no"
8663fi
8664rm -f conftest*
8665fi
8666
8667if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8670 cat >> confdefs.h <<EOF
8671#define $ac_tr_func 1
8672EOF
8673
8674else
8675 echo "$ac_t""no" 1>&6
8676fi
8677done
8678
8679 fi
8680
8681
421173e6
PE
8682 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
8683echo "configure:8684: checking for expl declaration" >&5
8684 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686else
38bd7296 8687
421173e6
PE
8688
8689 ac_ext=C
38bd7296
BK
8690# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8691ac_cpp='$CXXCPP $CPPFLAGS'
8692ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8693ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8694cross_compiling=$ac_cv_prog_cxx_cross
8695
421173e6
PE
8696 cat > conftest.$ac_ext <<EOF
8697#line 8698 "configure"
38bd7296
BK
8698#include "confdefs.h"
8699#include <math.h>
8700int main() {
8701 expl(0);
8702; return 0; }
8703EOF
421173e6 8704if { (eval echo configure:8705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8705 rm -rf conftest*
421173e6 8706 glibcpp_cv_func_expl_use=yes
38bd7296
BK
8707else
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 rm -rf conftest*
421173e6 8711 glibcpp_cv_func_expl_use=no
38bd7296
BK
8712fi
8713rm -f conftest*
421173e6 8714 ac_ext=c
38bd7296
BK
8715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8716ac_cpp='$CPP $CPPFLAGS'
8717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8719cross_compiling=$ac_cv_prog_cc_cross
8720
421173e6
PE
8721
8722fi
8723
8724 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
8725 if test x$glibcpp_cv_func_expl_use = x"yes"; then
38bd7296
BK
8726 for ac_func in expl
8727do
8728echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8729echo "configure:8730: checking for $ac_func" >&5
38bd7296
BK
8730if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732else
8733 cat > conftest.$ac_ext <<EOF
421173e6 8734#line 8735 "configure"
38bd7296
BK
8735#include "confdefs.h"
8736/* System header to define __stub macros and hopefully few prototypes,
8737 which can conflict with char $ac_func(); below. */
8738#include <assert.h>
8739/* Override any gcc2 internal prototype to avoid an error. */
8740/* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742char $ac_func();
8743
8744int main() {
8745
8746/* The GNU C library defines this for functions which it implements
8747 to always fail with ENOSYS. Some functions are actually named
8748 something starting with __ and the normal name is an alias. */
8749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8750choke me
8751#else
8752$ac_func();
8753#endif
8754
8755; return 0; }
8756EOF
421173e6 8757if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8758 rm -rf conftest*
8759 eval "ac_cv_func_$ac_func=yes"
8760else
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 rm -rf conftest*
8764 eval "ac_cv_func_$ac_func=no"
8765fi
8766rm -f conftest*
8767fi
8768
8769if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8770 echo "$ac_t""yes" 1>&6
8771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8772 cat >> confdefs.h <<EOF
8773#define $ac_tr_func 1
8774EOF
8775
8776else
8777 echo "$ac_t""no" 1>&6
8778fi
8779done
8780
8781 fi
8782
8783
421173e6
PE
8784 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
8785echo "configure:8786: checking for fabsl declaration" >&5
8786 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788else
38bd7296 8789
421173e6
PE
8790
8791 ac_ext=C
38bd7296
BK
8792# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8793ac_cpp='$CXXCPP $CPPFLAGS'
8794ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8795ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8796cross_compiling=$ac_cv_prog_cxx_cross
8797
421173e6
PE
8798 cat > conftest.$ac_ext <<EOF
8799#line 8800 "configure"
38bd7296
BK
8800#include "confdefs.h"
8801#include <math.h>
8802int main() {
8803 fabsl(0);
8804; return 0; }
8805EOF
421173e6 8806if { (eval echo configure:8807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8807 rm -rf conftest*
421173e6 8808 glibcpp_cv_func_fabsl_use=yes
38bd7296
BK
8809else
8810 echo "configure: failed program was:" >&5
8811 cat conftest.$ac_ext >&5
8812 rm -rf conftest*
421173e6 8813 glibcpp_cv_func_fabsl_use=no
38bd7296
BK
8814fi
8815rm -f conftest*
421173e6 8816 ac_ext=c
38bd7296
BK
8817# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8818ac_cpp='$CPP $CPPFLAGS'
8819ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8820ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8821cross_compiling=$ac_cv_prog_cc_cross
8822
421173e6
PE
8823
8824fi
8825
8826 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
8827 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
38bd7296
BK
8828 for ac_func in fabsl
8829do
8830echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8831echo "configure:8832: checking for $ac_func" >&5
38bd7296
BK
8832if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8834else
8835 cat > conftest.$ac_ext <<EOF
421173e6 8836#line 8837 "configure"
38bd7296
BK
8837#include "confdefs.h"
8838/* System header to define __stub macros and hopefully few prototypes,
8839 which can conflict with char $ac_func(); below. */
8840#include <assert.h>
8841/* Override any gcc2 internal prototype to avoid an error. */
8842/* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8844char $ac_func();
8845
8846int main() {
8847
8848/* The GNU C library defines this for functions which it implements
8849 to always fail with ENOSYS. Some functions are actually named
8850 something starting with __ and the normal name is an alias. */
8851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8852choke me
8853#else
8854$ac_func();
8855#endif
8856
8857; return 0; }
8858EOF
421173e6 8859if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8860 rm -rf conftest*
8861 eval "ac_cv_func_$ac_func=yes"
8862else
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 eval "ac_cv_func_$ac_func=no"
8867fi
8868rm -f conftest*
8869fi
8870
8871if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8872 echo "$ac_t""yes" 1>&6
8873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8874 cat >> confdefs.h <<EOF
8875#define $ac_tr_func 1
8876EOF
8877
8878else
8879 echo "$ac_t""no" 1>&6
8880fi
8881done
8882
8883 fi
8884
8885
421173e6
PE
8886 echo $ac_n "checking for floorl declaration""... $ac_c" 1>&6
8887echo "configure:8888: checking for floorl declaration" >&5
8888 if eval "test \"`echo '$''{'glibcpp_cv_func_floorl_use'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8890else
38bd7296 8891
421173e6
PE
8892
8893 ac_ext=C
38bd7296
BK
8894# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8895ac_cpp='$CXXCPP $CPPFLAGS'
8896ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8897ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8898cross_compiling=$ac_cv_prog_cxx_cross
8899
421173e6
PE
8900 cat > conftest.$ac_ext <<EOF
8901#line 8902 "configure"
38bd7296
BK
8902#include "confdefs.h"
8903#include <math.h>
8904int main() {
8905 floorl(0);
8906; return 0; }
8907EOF
421173e6 8908if { (eval echo configure:8909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 8909 rm -rf conftest*
421173e6 8910 glibcpp_cv_func_floorl_use=yes
38bd7296
BK
8911else
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 rm -rf conftest*
421173e6 8915 glibcpp_cv_func_floorl_use=no
38bd7296
BK
8916fi
8917rm -f conftest*
421173e6 8918 ac_ext=c
38bd7296
BK
8919# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8920ac_cpp='$CPP $CPPFLAGS'
8921ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8922ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8923cross_compiling=$ac_cv_prog_cc_cross
8924
421173e6
PE
8925
8926fi
8927
8928 echo "$ac_t""$glibcpp_cv_func_floorl_use" 1>&6
8929 if test x$glibcpp_cv_func_floorl_use = x"yes"; then
38bd7296
BK
8930 for ac_func in floorl
8931do
8932echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 8933echo "configure:8934: checking for $ac_func" >&5
38bd7296
BK
8934if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8936else
8937 cat > conftest.$ac_ext <<EOF
421173e6 8938#line 8939 "configure"
38bd7296
BK
8939#include "confdefs.h"
8940/* System header to define __stub macros and hopefully few prototypes,
8941 which can conflict with char $ac_func(); below. */
8942#include <assert.h>
8943/* Override any gcc2 internal prototype to avoid an error. */
8944/* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946char $ac_func();
8947
8948int main() {
8949
8950/* The GNU C library defines this for functions which it implements
8951 to always fail with ENOSYS. Some functions are actually named
8952 something starting with __ and the normal name is an alias. */
8953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8954choke me
8955#else
8956$ac_func();
8957#endif
8958
8959; return 0; }
8960EOF
421173e6 8961if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
8962 rm -rf conftest*
8963 eval "ac_cv_func_$ac_func=yes"
8964else
8965 echo "configure: failed program was:" >&5
8966 cat conftest.$ac_ext >&5
8967 rm -rf conftest*
8968 eval "ac_cv_func_$ac_func=no"
8969fi
8970rm -f conftest*
8971fi
8972
8973if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8974 echo "$ac_t""yes" 1>&6
8975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8976 cat >> confdefs.h <<EOF
8977#define $ac_tr_func 1
8978EOF
8979
8980else
8981 echo "$ac_t""no" 1>&6
8982fi
8983done
8984
8985 fi
8986
8987
421173e6
PE
8988 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
8989echo "configure:8990: checking for fmodl declaration" >&5
8990 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8992else
38bd7296 8993
421173e6
PE
8994
8995 ac_ext=C
38bd7296
BK
8996# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8997ac_cpp='$CXXCPP $CPPFLAGS'
8998ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8999ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9000cross_compiling=$ac_cv_prog_cxx_cross
9001
421173e6
PE
9002 cat > conftest.$ac_ext <<EOF
9003#line 9004 "configure"
38bd7296
BK
9004#include "confdefs.h"
9005#include <math.h>
9006int main() {
9007 fmodl(0, 0);
9008; return 0; }
9009EOF
421173e6 9010if { (eval echo configure:9011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9011 rm -rf conftest*
421173e6 9012 glibcpp_cv_func_fmodl_use=yes
38bd7296
BK
9013else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -rf conftest*
421173e6 9017 glibcpp_cv_func_fmodl_use=no
38bd7296
BK
9018fi
9019rm -f conftest*
421173e6 9020 ac_ext=c
38bd7296
BK
9021# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9022ac_cpp='$CPP $CPPFLAGS'
9023ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9024ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9025cross_compiling=$ac_cv_prog_cc_cross
9026
421173e6
PE
9027
9028fi
9029
9030 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
9031 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
38bd7296
BK
9032 for ac_func in fmodl
9033do
9034echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9035echo "configure:9036: checking for $ac_func" >&5
38bd7296
BK
9036if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9038else
9039 cat > conftest.$ac_ext <<EOF
421173e6 9040#line 9041 "configure"
38bd7296
BK
9041#include "confdefs.h"
9042/* System header to define __stub macros and hopefully few prototypes,
9043 which can conflict with char $ac_func(); below. */
9044#include <assert.h>
9045/* Override any gcc2 internal prototype to avoid an error. */
9046/* We use char because int might match the return type of a gcc2
9047 builtin and then its argument prototype would still apply. */
9048char $ac_func();
9049
9050int main() {
9051
9052/* The GNU C library defines this for functions which it implements
9053 to always fail with ENOSYS. Some functions are actually named
9054 something starting with __ and the normal name is an alias. */
9055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9056choke me
9057#else
9058$ac_func();
9059#endif
9060
9061; return 0; }
9062EOF
421173e6 9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9064 rm -rf conftest*
9065 eval "ac_cv_func_$ac_func=yes"
9066else
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 rm -rf conftest*
9070 eval "ac_cv_func_$ac_func=no"
9071fi
9072rm -f conftest*
9073fi
9074
9075if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9076 echo "$ac_t""yes" 1>&6
9077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9078 cat >> confdefs.h <<EOF
9079#define $ac_tr_func 1
9080EOF
9081
9082else
9083 echo "$ac_t""no" 1>&6
9084fi
9085done
9086
9087 fi
9088
9089
421173e6
PE
9090 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
9091echo "configure:9092: checking for frexpl declaration" >&5
9092 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9094else
38bd7296 9095
421173e6
PE
9096
9097 ac_ext=C
38bd7296
BK
9098# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9099ac_cpp='$CXXCPP $CPPFLAGS'
9100ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9101ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9102cross_compiling=$ac_cv_prog_cxx_cross
9103
421173e6
PE
9104 cat > conftest.$ac_ext <<EOF
9105#line 9106 "configure"
38bd7296
BK
9106#include "confdefs.h"
9107#include <math.h>
9108int main() {
9109 frexpl(0, 0);
9110; return 0; }
9111EOF
421173e6 9112if { (eval echo configure:9113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9113 rm -rf conftest*
421173e6 9114 glibcpp_cv_func_frexpl_use=yes
38bd7296
BK
9115else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
421173e6 9119 glibcpp_cv_func_frexpl_use=no
38bd7296
BK
9120fi
9121rm -f conftest*
421173e6 9122 ac_ext=c
38bd7296
BK
9123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9124ac_cpp='$CPP $CPPFLAGS'
9125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9127cross_compiling=$ac_cv_prog_cc_cross
9128
421173e6
PE
9129
9130fi
9131
9132 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
9133 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
38bd7296
BK
9134 for ac_func in frexpl
9135do
9136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9137echo "configure:9138: checking for $ac_func" >&5
38bd7296
BK
9138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140else
9141 cat > conftest.$ac_ext <<EOF
421173e6 9142#line 9143 "configure"
38bd7296
BK
9143#include "confdefs.h"
9144/* System header to define __stub macros and hopefully few prototypes,
9145 which can conflict with char $ac_func(); below. */
9146#include <assert.h>
9147/* Override any gcc2 internal prototype to avoid an error. */
9148/* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9150char $ac_func();
9151
9152int main() {
9153
9154/* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9158choke me
9159#else
9160$ac_func();
9161#endif
9162
9163; return 0; }
9164EOF
421173e6 9165if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9166 rm -rf conftest*
9167 eval "ac_cv_func_$ac_func=yes"
9168else
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 rm -rf conftest*
9172 eval "ac_cv_func_$ac_func=no"
9173fi
9174rm -f conftest*
9175fi
9176
9177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9180 cat >> confdefs.h <<EOF
9181#define $ac_tr_func 1
9182EOF
9183
9184else
9185 echo "$ac_t""no" 1>&6
9186fi
9187done
9188
9189 fi
9190
9191
421173e6
PE
9192 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
9193echo "configure:9194: checking for ldexpl declaration" >&5
9194 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9196else
38bd7296 9197
421173e6
PE
9198
9199 ac_ext=C
38bd7296
BK
9200# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9201ac_cpp='$CXXCPP $CPPFLAGS'
9202ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9203ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9204cross_compiling=$ac_cv_prog_cxx_cross
9205
421173e6
PE
9206 cat > conftest.$ac_ext <<EOF
9207#line 9208 "configure"
38bd7296
BK
9208#include "confdefs.h"
9209#include <math.h>
9210int main() {
9211 ldexpl(0, 0);
9212; return 0; }
9213EOF
421173e6 9214if { (eval echo configure:9215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9215 rm -rf conftest*
421173e6 9216 glibcpp_cv_func_ldexpl_use=yes
38bd7296
BK
9217else
9218 echo "configure: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9220 rm -rf conftest*
421173e6 9221 glibcpp_cv_func_ldexpl_use=no
38bd7296
BK
9222fi
9223rm -f conftest*
421173e6 9224 ac_ext=c
38bd7296
BK
9225# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9226ac_cpp='$CPP $CPPFLAGS'
9227ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9228ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9229cross_compiling=$ac_cv_prog_cc_cross
9230
421173e6
PE
9231
9232fi
9233
9234 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
9235 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
38bd7296
BK
9236 for ac_func in ldexpl
9237do
9238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9239echo "configure:9240: checking for $ac_func" >&5
38bd7296
BK
9240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
9242else
9243 cat > conftest.$ac_ext <<EOF
421173e6 9244#line 9245 "configure"
38bd7296
BK
9245#include "confdefs.h"
9246/* System header to define __stub macros and hopefully few prototypes,
9247 which can conflict with char $ac_func(); below. */
9248#include <assert.h>
9249/* Override any gcc2 internal prototype to avoid an error. */
9250/* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9252char $ac_func();
9253
9254int main() {
9255
9256/* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9260choke me
9261#else
9262$ac_func();
9263#endif
9264
9265; return 0; }
9266EOF
421173e6 9267if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9268 rm -rf conftest*
9269 eval "ac_cv_func_$ac_func=yes"
9270else
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 rm -rf conftest*
9274 eval "ac_cv_func_$ac_func=no"
9275fi
9276rm -f conftest*
9277fi
9278
9279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9282 cat >> confdefs.h <<EOF
9283#define $ac_tr_func 1
9284EOF
9285
9286else
9287 echo "$ac_t""no" 1>&6
9288fi
9289done
9290
9291 fi
9292
9293
421173e6
PE
9294 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
9295echo "configure:9296: checking for logl declaration" >&5
9296 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9298else
38bd7296 9299
421173e6
PE
9300
9301 ac_ext=C
38bd7296
BK
9302# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9303ac_cpp='$CXXCPP $CPPFLAGS'
9304ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9305ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9306cross_compiling=$ac_cv_prog_cxx_cross
9307
421173e6
PE
9308 cat > conftest.$ac_ext <<EOF
9309#line 9310 "configure"
38bd7296
BK
9310#include "confdefs.h"
9311#include <math.h>
9312int main() {
9313 logl(0);
9314; return 0; }
9315EOF
421173e6 9316if { (eval echo configure:9317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9317 rm -rf conftest*
421173e6 9318 glibcpp_cv_func_logl_use=yes
38bd7296
BK
9319else
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9322 rm -rf conftest*
421173e6 9323 glibcpp_cv_func_logl_use=no
38bd7296
BK
9324fi
9325rm -f conftest*
421173e6 9326 ac_ext=c
38bd7296
BK
9327# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9328ac_cpp='$CPP $CPPFLAGS'
9329ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9330ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9331cross_compiling=$ac_cv_prog_cc_cross
9332
421173e6
PE
9333
9334fi
9335
9336 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
9337 if test x$glibcpp_cv_func_logl_use = x"yes"; then
38bd7296
BK
9338 for ac_func in logl
9339do
9340echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9341echo "configure:9342: checking for $ac_func" >&5
38bd7296
BK
9342if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344else
9345 cat > conftest.$ac_ext <<EOF
421173e6 9346#line 9347 "configure"
38bd7296
BK
9347#include "confdefs.h"
9348/* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char $ac_func(); below. */
9350#include <assert.h>
9351/* Override any gcc2 internal prototype to avoid an error. */
9352/* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9354char $ac_func();
9355
9356int main() {
9357
9358/* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9362choke me
9363#else
9364$ac_func();
9365#endif
9366
9367; return 0; }
9368EOF
421173e6 9369if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9370 rm -rf conftest*
9371 eval "ac_cv_func_$ac_func=yes"
9372else
9373 echo "configure: failed program was:" >&5
9374 cat conftest.$ac_ext >&5
9375 rm -rf conftest*
9376 eval "ac_cv_func_$ac_func=no"
9377fi
9378rm -f conftest*
9379fi
9380
9381if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9382 echo "$ac_t""yes" 1>&6
9383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9384 cat >> confdefs.h <<EOF
9385#define $ac_tr_func 1
9386EOF
9387
9388else
9389 echo "$ac_t""no" 1>&6
9390fi
9391done
9392
9393 fi
9394
9395
421173e6
PE
9396 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
9397echo "configure:9398: checking for log10l declaration" >&5
9398 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400else
38bd7296 9401
421173e6
PE
9402
9403 ac_ext=C
38bd7296
BK
9404# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405ac_cpp='$CXXCPP $CPPFLAGS'
9406ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408cross_compiling=$ac_cv_prog_cxx_cross
9409
421173e6
PE
9410 cat > conftest.$ac_ext <<EOF
9411#line 9412 "configure"
38bd7296
BK
9412#include "confdefs.h"
9413#include <math.h>
9414int main() {
9415 log10l(0);
9416; return 0; }
9417EOF
421173e6 9418if { (eval echo configure:9419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9419 rm -rf conftest*
421173e6 9420 glibcpp_cv_func_log10l_use=yes
38bd7296
BK
9421else
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 rm -rf conftest*
421173e6 9425 glibcpp_cv_func_log10l_use=no
38bd7296
BK
9426fi
9427rm -f conftest*
421173e6 9428 ac_ext=c
38bd7296
BK
9429# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9430ac_cpp='$CPP $CPPFLAGS'
9431ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9432ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9433cross_compiling=$ac_cv_prog_cc_cross
9434
421173e6
PE
9435
9436fi
9437
9438 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
9439 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
38bd7296
BK
9440 for ac_func in log10l
9441do
9442echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9443echo "configure:9444: checking for $ac_func" >&5
38bd7296
BK
9444if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9446else
9447 cat > conftest.$ac_ext <<EOF
421173e6 9448#line 9449 "configure"
38bd7296
BK
9449#include "confdefs.h"
9450/* System header to define __stub macros and hopefully few prototypes,
9451 which can conflict with char $ac_func(); below. */
9452#include <assert.h>
9453/* Override any gcc2 internal prototype to avoid an error. */
9454/* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456char $ac_func();
9457
9458int main() {
9459
9460/* The GNU C library defines this for functions which it implements
9461 to always fail with ENOSYS. Some functions are actually named
9462 something starting with __ and the normal name is an alias. */
9463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9464choke me
9465#else
9466$ac_func();
9467#endif
9468
9469; return 0; }
9470EOF
421173e6 9471if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9472 rm -rf conftest*
9473 eval "ac_cv_func_$ac_func=yes"
9474else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -rf conftest*
9478 eval "ac_cv_func_$ac_func=no"
9479fi
9480rm -f conftest*
9481fi
9482
9483if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9484 echo "$ac_t""yes" 1>&6
9485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9486 cat >> confdefs.h <<EOF
9487#define $ac_tr_func 1
9488EOF
9489
9490else
9491 echo "$ac_t""no" 1>&6
9492fi
9493done
9494
9495 fi
9496
9497
421173e6
PE
9498 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
9499echo "configure:9500: checking for modfl declaration" >&5
9500 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502else
38bd7296 9503
421173e6
PE
9504
9505 ac_ext=C
38bd7296
BK
9506# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9507ac_cpp='$CXXCPP $CPPFLAGS'
9508ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9509ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9510cross_compiling=$ac_cv_prog_cxx_cross
9511
421173e6
PE
9512 cat > conftest.$ac_ext <<EOF
9513#line 9514 "configure"
38bd7296
BK
9514#include "confdefs.h"
9515#include <math.h>
9516int main() {
9517 modfl(0, 0);
9518; return 0; }
9519EOF
421173e6 9520if { (eval echo configure:9521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9521 rm -rf conftest*
421173e6 9522 glibcpp_cv_func_modfl_use=yes
38bd7296
BK
9523else
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 rm -rf conftest*
421173e6 9527 glibcpp_cv_func_modfl_use=no
38bd7296
BK
9528fi
9529rm -f conftest*
421173e6 9530 ac_ext=c
38bd7296
BK
9531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9532ac_cpp='$CPP $CPPFLAGS'
9533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9535cross_compiling=$ac_cv_prog_cc_cross
9536
421173e6
PE
9537
9538fi
9539
9540 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
9541 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
38bd7296
BK
9542 for ac_func in modfl
9543do
9544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9545echo "configure:9546: checking for $ac_func" >&5
38bd7296
BK
9546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548else
9549 cat > conftest.$ac_ext <<EOF
421173e6 9550#line 9551 "configure"
38bd7296
BK
9551#include "confdefs.h"
9552/* System header to define __stub macros and hopefully few prototypes,
9553 which can conflict with char $ac_func(); below. */
9554#include <assert.h>
9555/* Override any gcc2 internal prototype to avoid an error. */
9556/* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9558char $ac_func();
9559
9560int main() {
9561
9562/* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9566choke me
9567#else
9568$ac_func();
9569#endif
9570
9571; return 0; }
9572EOF
421173e6 9573if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9574 rm -rf conftest*
9575 eval "ac_cv_func_$ac_func=yes"
9576else
9577 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 rm -rf conftest*
9580 eval "ac_cv_func_$ac_func=no"
9581fi
9582rm -f conftest*
9583fi
9584
9585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9586 echo "$ac_t""yes" 1>&6
9587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9588 cat >> confdefs.h <<EOF
9589#define $ac_tr_func 1
9590EOF
9591
9592else
9593 echo "$ac_t""no" 1>&6
9594fi
9595done
9596
9597 fi
9598
9599
421173e6
PE
9600 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
9601echo "configure:9602: checking for powl declaration" >&5
9602 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604else
38bd7296 9605
421173e6
PE
9606
9607 ac_ext=C
38bd7296
BK
9608# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9609ac_cpp='$CXXCPP $CPPFLAGS'
9610ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9611ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9612cross_compiling=$ac_cv_prog_cxx_cross
9613
421173e6
PE
9614 cat > conftest.$ac_ext <<EOF
9615#line 9616 "configure"
38bd7296
BK
9616#include "confdefs.h"
9617#include <math.h>
9618int main() {
9619 powl(0, 0);
9620; return 0; }
9621EOF
421173e6 9622if { (eval echo configure:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9623 rm -rf conftest*
421173e6 9624 glibcpp_cv_func_powl_use=yes
38bd7296
BK
9625else
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -rf conftest*
421173e6 9629 glibcpp_cv_func_powl_use=no
38bd7296
BK
9630fi
9631rm -f conftest*
421173e6 9632 ac_ext=c
38bd7296
BK
9633# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9634ac_cpp='$CPP $CPPFLAGS'
9635ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9636ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9637cross_compiling=$ac_cv_prog_cc_cross
9638
421173e6
PE
9639
9640fi
9641
9642 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
9643 if test x$glibcpp_cv_func_powl_use = x"yes"; then
38bd7296
BK
9644 for ac_func in powl
9645do
9646echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9647echo "configure:9648: checking for $ac_func" >&5
38bd7296
BK
9648if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9650else
9651 cat > conftest.$ac_ext <<EOF
421173e6 9652#line 9653 "configure"
38bd7296
BK
9653#include "confdefs.h"
9654/* System header to define __stub macros and hopefully few prototypes,
9655 which can conflict with char $ac_func(); below. */
9656#include <assert.h>
9657/* Override any gcc2 internal prototype to avoid an error. */
9658/* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660char $ac_func();
9661
9662int main() {
9663
9664/* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9668choke me
9669#else
9670$ac_func();
9671#endif
9672
9673; return 0; }
9674EOF
421173e6 9675if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9676 rm -rf conftest*
9677 eval "ac_cv_func_$ac_func=yes"
9678else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 eval "ac_cv_func_$ac_func=no"
9683fi
9684rm -f conftest*
9685fi
9686
9687if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9690 cat >> confdefs.h <<EOF
9691#define $ac_tr_func 1
9692EOF
9693
9694else
9695 echo "$ac_t""no" 1>&6
9696fi
9697done
9698
9699 fi
9700
9701
421173e6
PE
9702 echo $ac_n "checking for sinl declaration""... $ac_c" 1>&6
9703echo "configure:9704: checking for sinl declaration" >&5
9704 if eval "test \"`echo '$''{'glibcpp_cv_func_sinl_use'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706else
38bd7296 9707
421173e6
PE
9708
9709 ac_ext=C
38bd7296
BK
9710# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9711ac_cpp='$CXXCPP $CPPFLAGS'
9712ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9713ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9714cross_compiling=$ac_cv_prog_cxx_cross
9715
421173e6
PE
9716 cat > conftest.$ac_ext <<EOF
9717#line 9718 "configure"
38bd7296
BK
9718#include "confdefs.h"
9719#include <math.h>
9720int main() {
11fc1858 9721 sinl(0);
38bd7296
BK
9722; return 0; }
9723EOF
421173e6 9724if { (eval echo configure:9725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9725 rm -rf conftest*
421173e6 9726 glibcpp_cv_func_sinl_use=yes
38bd7296
BK
9727else
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 rm -rf conftest*
421173e6 9731 glibcpp_cv_func_sinl_use=no
38bd7296
BK
9732fi
9733rm -f conftest*
421173e6 9734 ac_ext=c
38bd7296
BK
9735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9736ac_cpp='$CPP $CPPFLAGS'
9737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9738ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9739cross_compiling=$ac_cv_prog_cc_cross
9740
421173e6
PE
9741
9742fi
9743
9744 echo "$ac_t""$glibcpp_cv_func_sinl_use" 1>&6
9745 if test x$glibcpp_cv_func_sinl_use = x"yes"; then
38bd7296
BK
9746 for ac_func in sinl
9747do
9748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9749echo "configure:9750: checking for $ac_func" >&5
38bd7296
BK
9750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9752else
9753 cat > conftest.$ac_ext <<EOF
421173e6 9754#line 9755 "configure"
38bd7296
BK
9755#include "confdefs.h"
9756/* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func(); below. */
9758#include <assert.h>
9759/* Override any gcc2 internal prototype to avoid an error. */
9760/* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9762char $ac_func();
9763
9764int main() {
9765
9766/* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9770choke me
9771#else
9772$ac_func();
9773#endif
9774
9775; return 0; }
9776EOF
421173e6 9777if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9778 rm -rf conftest*
9779 eval "ac_cv_func_$ac_func=yes"
9780else
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 rm -rf conftest*
9784 eval "ac_cv_func_$ac_func=no"
9785fi
9786rm -f conftest*
9787fi
9788
9789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9790 echo "$ac_t""yes" 1>&6
9791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9792 cat >> confdefs.h <<EOF
9793#define $ac_tr_func 1
9794EOF
9795
9796else
9797 echo "$ac_t""no" 1>&6
9798fi
9799done
9800
9801 fi
9802
9803
421173e6
PE
9804 echo $ac_n "checking for sinhl declaration""... $ac_c" 1>&6
9805echo "configure:9806: checking for sinhl declaration" >&5
9806 if eval "test \"`echo '$''{'glibcpp_cv_func_sinhl_use'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9808else
38bd7296 9809
421173e6
PE
9810
9811 ac_ext=C
38bd7296
BK
9812# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9813ac_cpp='$CXXCPP $CPPFLAGS'
9814ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9815ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9816cross_compiling=$ac_cv_prog_cxx_cross
9817
421173e6
PE
9818 cat > conftest.$ac_ext <<EOF
9819#line 9820 "configure"
38bd7296
BK
9820#include "confdefs.h"
9821#include <math.h>
9822int main() {
9823 sinhl(0);
9824; return 0; }
9825EOF
421173e6 9826if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9827 rm -rf conftest*
421173e6 9828 glibcpp_cv_func_sinhl_use=yes
38bd7296
BK
9829else
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 rm -rf conftest*
421173e6 9833 glibcpp_cv_func_sinhl_use=no
38bd7296
BK
9834fi
9835rm -f conftest*
421173e6 9836 ac_ext=c
38bd7296
BK
9837# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9838ac_cpp='$CPP $CPPFLAGS'
9839ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9840ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9841cross_compiling=$ac_cv_prog_cc_cross
9842
421173e6
PE
9843
9844fi
9845
9846 echo "$ac_t""$glibcpp_cv_func_sinhl_use" 1>&6
9847 if test x$glibcpp_cv_func_sinhl_use = x"yes"; then
38bd7296
BK
9848 for ac_func in sinhl
9849do
9850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9851echo "configure:9852: checking for $ac_func" >&5
38bd7296
BK
9852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9854else
9855 cat > conftest.$ac_ext <<EOF
421173e6 9856#line 9857 "configure"
38bd7296
BK
9857#include "confdefs.h"
9858/* System header to define __stub macros and hopefully few prototypes,
9859 which can conflict with char $ac_func(); below. */
9860#include <assert.h>
9861/* Override any gcc2 internal prototype to avoid an error. */
9862/* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9864char $ac_func();
9865
9866int main() {
9867
9868/* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9872choke me
9873#else
9874$ac_func();
9875#endif
9876
9877; return 0; }
9878EOF
421173e6 9879if { (eval echo configure:9880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9880 rm -rf conftest*
9881 eval "ac_cv_func_$ac_func=yes"
9882else
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 rm -rf conftest*
9886 eval "ac_cv_func_$ac_func=no"
9887fi
9888rm -f conftest*
9889fi
9890
9891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9892 echo "$ac_t""yes" 1>&6
9893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9894 cat >> confdefs.h <<EOF
9895#define $ac_tr_func 1
9896EOF
9897
9898else
9899 echo "$ac_t""no" 1>&6
9900fi
9901done
9902
9903 fi
9904
9905
421173e6
PE
9906 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
9907echo "configure:9908: checking for sqrtl declaration" >&5
9908 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9910else
38bd7296 9911
421173e6
PE
9912
9913 ac_ext=C
38bd7296
BK
9914# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9915ac_cpp='$CXXCPP $CPPFLAGS'
9916ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9917ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9918cross_compiling=$ac_cv_prog_cxx_cross
9919
421173e6
PE
9920 cat > conftest.$ac_ext <<EOF
9921#line 9922 "configure"
38bd7296
BK
9922#include "confdefs.h"
9923#include <math.h>
9924int main() {
9925 sqrtl(0);
9926; return 0; }
9927EOF
421173e6 9928if { (eval echo configure:9929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 9929 rm -rf conftest*
421173e6 9930 glibcpp_cv_func_sqrtl_use=yes
38bd7296
BK
9931else
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9934 rm -rf conftest*
421173e6 9935 glibcpp_cv_func_sqrtl_use=no
38bd7296
BK
9936fi
9937rm -f conftest*
421173e6 9938 ac_ext=c
38bd7296
BK
9939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9940ac_cpp='$CPP $CPPFLAGS'
9941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9943cross_compiling=$ac_cv_prog_cc_cross
9944
421173e6
PE
9945
9946fi
9947
9948 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
9949 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
38bd7296
BK
9950 for ac_func in sqrtl
9951do
9952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 9953echo "configure:9954: checking for $ac_func" >&5
38bd7296
BK
9954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9956else
9957 cat > conftest.$ac_ext <<EOF
421173e6 9958#line 9959 "configure"
38bd7296
BK
9959#include "confdefs.h"
9960/* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func(); below. */
9962#include <assert.h>
9963/* Override any gcc2 internal prototype to avoid an error. */
9964/* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966char $ac_func();
9967
9968int main() {
9969
9970/* The GNU C library defines this for functions which it implements
9971 to always fail with ENOSYS. Some functions are actually named
9972 something starting with __ and the normal name is an alias. */
9973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9974choke me
9975#else
9976$ac_func();
9977#endif
9978
9979; return 0; }
9980EOF
421173e6 9981if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
9982 rm -rf conftest*
9983 eval "ac_cv_func_$ac_func=yes"
9984else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 eval "ac_cv_func_$ac_func=no"
9989fi
9990rm -f conftest*
9991fi
9992
9993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9996 cat >> confdefs.h <<EOF
9997#define $ac_tr_func 1
9998EOF
9999
10000else
10001 echo "$ac_t""no" 1>&6
10002fi
10003done
10004
10005 fi
10006
10007
421173e6
PE
10008 echo $ac_n "checking for tanl declaration""... $ac_c" 1>&6
10009echo "configure:10010: checking for tanl declaration" >&5
10010 if eval "test \"`echo '$''{'glibcpp_cv_func_tanl_use'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012else
38bd7296 10013
421173e6
PE
10014
10015 ac_ext=C
38bd7296
BK
10016# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10017ac_cpp='$CXXCPP $CPPFLAGS'
10018ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10019ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10020cross_compiling=$ac_cv_prog_cxx_cross
10021
421173e6
PE
10022 cat > conftest.$ac_ext <<EOF
10023#line 10024 "configure"
38bd7296
BK
10024#include "confdefs.h"
10025#include <math.h>
10026int main() {
10027 tanl(0);
10028; return 0; }
10029EOF
421173e6 10030if { (eval echo configure:10031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10031 rm -rf conftest*
421173e6 10032 glibcpp_cv_func_tanl_use=yes
38bd7296
BK
10033else
10034 echo "configure: failed program was:" >&5
10035 cat conftest.$ac_ext >&5
10036 rm -rf conftest*
421173e6 10037 glibcpp_cv_func_tanl_use=no
38bd7296
BK
10038fi
10039rm -f conftest*
421173e6 10040 ac_ext=c
38bd7296
BK
10041# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10042ac_cpp='$CPP $CPPFLAGS'
10043ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10044ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10045cross_compiling=$ac_cv_prog_cc_cross
10046
421173e6
PE
10047
10048fi
10049
10050 echo "$ac_t""$glibcpp_cv_func_tanl_use" 1>&6
10051 if test x$glibcpp_cv_func_tanl_use = x"yes"; then
38bd7296
BK
10052 for ac_func in tanl
10053do
10054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10055echo "configure:10056: checking for $ac_func" >&5
38bd7296
BK
10056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058else
10059 cat > conftest.$ac_ext <<EOF
421173e6 10060#line 10061 "configure"
38bd7296
BK
10061#include "confdefs.h"
10062/* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char $ac_func(); below. */
10064#include <assert.h>
10065/* Override any gcc2 internal prototype to avoid an error. */
10066/* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068char $ac_func();
10069
10070int main() {
10071
10072/* The GNU C library defines this for functions which it implements
10073 to always fail with ENOSYS. Some functions are actually named
10074 something starting with __ and the normal name is an alias. */
10075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076choke me
10077#else
10078$ac_func();
10079#endif
10080
10081; return 0; }
10082EOF
421173e6 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10084 rm -rf conftest*
10085 eval "ac_cv_func_$ac_func=yes"
10086else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_func_$ac_func=no"
10091fi
10092rm -f conftest*
10093fi
10094
10095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10098 cat >> confdefs.h <<EOF
10099#define $ac_tr_func 1
10100EOF
10101
10102else
10103 echo "$ac_t""no" 1>&6
10104fi
10105done
10106
10107 fi
10108
10109
421173e6
PE
10110 echo $ac_n "checking for tanhl declaration""... $ac_c" 1>&6
10111echo "configure:10112: checking for tanhl declaration" >&5
10112 if eval "test \"`echo '$''{'glibcpp_cv_func_tanhl_use'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114else
38bd7296 10115
421173e6
PE
10116
10117 ac_ext=C
38bd7296
BK
10118# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10119ac_cpp='$CXXCPP $CPPFLAGS'
10120ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10121ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10122cross_compiling=$ac_cv_prog_cxx_cross
10123
421173e6
PE
10124 cat > conftest.$ac_ext <<EOF
10125#line 10126 "configure"
38bd7296
BK
10126#include "confdefs.h"
10127#include <math.h>
10128int main() {
10129 tanhl(0);
10130; return 0; }
10131EOF
421173e6 10132if { (eval echo configure:10133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10133 rm -rf conftest*
421173e6 10134 glibcpp_cv_func_tanhl_use=yes
38bd7296
BK
10135else
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 rm -rf conftest*
421173e6 10139 glibcpp_cv_func_tanhl_use=no
38bd7296
BK
10140fi
10141rm -f conftest*
421173e6 10142 ac_ext=c
38bd7296
BK
10143# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10144ac_cpp='$CPP $CPPFLAGS'
10145ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10146ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10147cross_compiling=$ac_cv_prog_cc_cross
10148
421173e6
PE
10149
10150fi
10151
10152 echo "$ac_t""$glibcpp_cv_func_tanhl_use" 1>&6
10153 if test x$glibcpp_cv_func_tanhl_use = x"yes"; then
38bd7296
BK
10154 for ac_func in tanhl
10155do
10156echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10157echo "configure:10158: checking for $ac_func" >&5
38bd7296
BK
10158if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10160else
10161 cat > conftest.$ac_ext <<EOF
421173e6 10162#line 10163 "configure"
38bd7296
BK
10163#include "confdefs.h"
10164/* System header to define __stub macros and hopefully few prototypes,
10165 which can conflict with char $ac_func(); below. */
10166#include <assert.h>
10167/* Override any gcc2 internal prototype to avoid an error. */
10168/* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170char $ac_func();
10171
10172int main() {
10173
10174/* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10178choke me
10179#else
10180$ac_func();
10181#endif
10182
10183; return 0; }
10184EOF
421173e6 10185if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10186 rm -rf conftest*
10187 eval "ac_cv_func_$ac_func=yes"
10188else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -rf conftest*
10192 eval "ac_cv_func_$ac_func=no"
10193fi
10194rm -f conftest*
10195fi
10196
10197if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10200 cat >> confdefs.h <<EOF
10201#define $ac_tr_func 1
10202EOF
10203
10204else
10205 echo "$ac_t""no" 1>&6
10206fi
10207done
10208
10209 fi
10210
10211
421173e6
PE
10212 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
10213echo "configure:10214: checking for sincosl declaration" >&5
10214 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10216else
38bd7296 10217
421173e6
PE
10218
10219 ac_ext=C
38bd7296
BK
10220# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10221ac_cpp='$CXXCPP $CPPFLAGS'
10222ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10223ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10224cross_compiling=$ac_cv_prog_cxx_cross
10225
421173e6
PE
10226 cat > conftest.$ac_ext <<EOF
10227#line 10228 "configure"
38bd7296
BK
10228#include "confdefs.h"
10229#include <math.h>
10230int main() {
10231 sincosl(0, 0, 0);
10232; return 0; }
10233EOF
421173e6 10234if { (eval echo configure:10235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10235 rm -rf conftest*
421173e6 10236 glibcpp_cv_func_sincosl_use=yes
38bd7296
BK
10237else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
421173e6 10241 glibcpp_cv_func_sincosl_use=no
38bd7296
BK
10242fi
10243rm -f conftest*
421173e6 10244 ac_ext=c
38bd7296
BK
10245# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10246ac_cpp='$CPP $CPPFLAGS'
10247ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10248ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10249cross_compiling=$ac_cv_prog_cc_cross
10250
421173e6
PE
10251
10252fi
10253
10254 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
10255 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
38bd7296
BK
10256 for ac_func in sincosl
10257do
10258echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10259echo "configure:10260: checking for $ac_func" >&5
38bd7296
BK
10260if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10262else
10263 cat > conftest.$ac_ext <<EOF
421173e6 10264#line 10265 "configure"
38bd7296
BK
10265#include "confdefs.h"
10266/* System header to define __stub macros and hopefully few prototypes,
10267 which can conflict with char $ac_func(); below. */
10268#include <assert.h>
10269/* Override any gcc2 internal prototype to avoid an error. */
10270/* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272char $ac_func();
10273
10274int main() {
10275
10276/* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10280choke me
10281#else
10282$ac_func();
10283#endif
10284
10285; return 0; }
10286EOF
421173e6 10287if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10288 rm -rf conftest*
10289 eval "ac_cv_func_$ac_func=yes"
10290else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -rf conftest*
10294 eval "ac_cv_func_$ac_func=no"
10295fi
10296rm -f conftest*
10297fi
10298
10299if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10300 echo "$ac_t""yes" 1>&6
10301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10302 cat >> confdefs.h <<EOF
10303#define $ac_tr_func 1
10304EOF
10305
10306else
10307 echo "$ac_t""no" 1>&6
10308fi
10309done
10310
10311 fi
10312
10313
421173e6
PE
10314 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
10315echo "configure:10316: checking for finitel declaration" >&5
10316 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10318else
38bd7296 10319
421173e6
PE
10320
10321 ac_ext=C
38bd7296
BK
10322# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10323ac_cpp='$CXXCPP $CPPFLAGS'
10324ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10325ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10326cross_compiling=$ac_cv_prog_cxx_cross
10327
421173e6
PE
10328 cat > conftest.$ac_ext <<EOF
10329#line 10330 "configure"
38bd7296
BK
10330#include "confdefs.h"
10331#include <math.h>
10332int main() {
10333 finitel(0);
10334; return 0; }
10335EOF
421173e6 10336if { (eval echo configure:10337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10337 rm -rf conftest*
421173e6 10338 glibcpp_cv_func_finitel_use=yes
38bd7296
BK
10339else
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 rm -rf conftest*
421173e6 10343 glibcpp_cv_func_finitel_use=no
38bd7296
BK
10344fi
10345rm -f conftest*
421173e6 10346 ac_ext=c
38bd7296
BK
10347# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10348ac_cpp='$CPP $CPPFLAGS'
10349ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10350ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10351cross_compiling=$ac_cv_prog_cc_cross
10352
421173e6
PE
10353
10354fi
10355
10356 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
10357 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
38bd7296
BK
10358 for ac_func in finitel
10359do
10360echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10361echo "configure:10362: checking for $ac_func" >&5
38bd7296
BK
10362if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10364else
10365 cat > conftest.$ac_ext <<EOF
421173e6 10366#line 10367 "configure"
38bd7296
BK
10367#include "confdefs.h"
10368/* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char $ac_func(); below. */
10370#include <assert.h>
10371/* Override any gcc2 internal prototype to avoid an error. */
10372/* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10374char $ac_func();
10375
10376int main() {
10377
10378/* The GNU C library defines this for functions which it implements
10379 to always fail with ENOSYS. Some functions are actually named
10380 something starting with __ and the normal name is an alias. */
10381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10382choke me
10383#else
10384$ac_func();
10385#endif
10386
10387; return 0; }
10388EOF
421173e6 10389if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10390 rm -rf conftest*
10391 eval "ac_cv_func_$ac_func=yes"
10392else
10393 echo "configure: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10395 rm -rf conftest*
10396 eval "ac_cv_func_$ac_func=no"
10397fi
10398rm -f conftest*
10399fi
10400
10401if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10402 echo "$ac_t""yes" 1>&6
10403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10404 cat >> confdefs.h <<EOF
10405#define $ac_tr_func 1
10406EOF
10407
10408else
10409 echo "$ac_t""no" 1>&6
10410fi
10411done
10412
10413 fi
10414
10415
10416
421173e6
PE
10417 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10418echo "configure:10419: checking for _isinf declaration" >&5
10419 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10421else
38bd7296 10422
421173e6
PE
10423
10424 ac_ext=C
38bd7296
BK
10425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10426ac_cpp='$CXXCPP $CPPFLAGS'
10427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10429cross_compiling=$ac_cv_prog_cxx_cross
10430
421173e6
PE
10431 cat > conftest.$ac_ext <<EOF
10432#line 10433 "configure"
38bd7296
BK
10433#include "confdefs.h"
10434#include <math.h>
10435int main() {
10436 _isinf(0);
10437; return 0; }
10438EOF
421173e6 10439if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10440 rm -rf conftest*
421173e6 10441 glibcpp_cv_func__isinf_use=yes
38bd7296
BK
10442else
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 rm -rf conftest*
421173e6 10446 glibcpp_cv_func__isinf_use=no
38bd7296
BK
10447fi
10448rm -f conftest*
421173e6 10449 ac_ext=c
38bd7296
BK
10450# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10451ac_cpp='$CPP $CPPFLAGS'
10452ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10453ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10454cross_compiling=$ac_cv_prog_cc_cross
10455
421173e6
PE
10456
10457fi
10458
10459 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10460 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
38bd7296
BK
10461 for ac_func in _isinf
10462do
10463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10464echo "configure:10465: checking for $ac_func" >&5
38bd7296
BK
10465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10467else
10468 cat > conftest.$ac_ext <<EOF
421173e6 10469#line 10470 "configure"
38bd7296
BK
10470#include "confdefs.h"
10471/* System header to define __stub macros and hopefully few prototypes,
10472 which can conflict with char $ac_func(); below. */
10473#include <assert.h>
10474/* Override any gcc2 internal prototype to avoid an error. */
10475/* We use char because int might match the return type of a gcc2
10476 builtin and then its argument prototype would still apply. */
10477char $ac_func();
10478
10479int main() {
10480
10481/* The GNU C library defines this for functions which it implements
10482 to always fail with ENOSYS. Some functions are actually named
10483 something starting with __ and the normal name is an alias. */
10484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10485choke me
10486#else
10487$ac_func();
10488#endif
10489
10490; return 0; }
10491EOF
421173e6 10492if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10493 rm -rf conftest*
10494 eval "ac_cv_func_$ac_func=yes"
10495else
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 rm -rf conftest*
10499 eval "ac_cv_func_$ac_func=no"
10500fi
10501rm -f conftest*
10502fi
10503
10504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10505 echo "$ac_t""yes" 1>&6
10506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10507 cat >> confdefs.h <<EOF
10508#define $ac_tr_func 1
10509EOF
10510
10511else
10512 echo "$ac_t""no" 1>&6
10513fi
10514done
10515
10516 fi
10517
10518
421173e6
PE
10519 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
10520echo "configure:10521: checking for _isnan declaration" >&5
10521 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10523else
38bd7296 10524
421173e6
PE
10525
10526 ac_ext=C
38bd7296
BK
10527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10528ac_cpp='$CXXCPP $CPPFLAGS'
10529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10531cross_compiling=$ac_cv_prog_cxx_cross
10532
421173e6
PE
10533 cat > conftest.$ac_ext <<EOF
10534#line 10535 "configure"
38bd7296
BK
10535#include "confdefs.h"
10536#include <math.h>
10537int main() {
10538 _isnan(0);
10539; return 0; }
10540EOF
421173e6 10541if { (eval echo configure:10542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10542 rm -rf conftest*
421173e6 10543 glibcpp_cv_func__isnan_use=yes
38bd7296
BK
10544else
10545 echo "configure: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 rm -rf conftest*
421173e6 10548 glibcpp_cv_func__isnan_use=no
38bd7296
BK
10549fi
10550rm -f conftest*
421173e6 10551 ac_ext=c
38bd7296
BK
10552# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10553ac_cpp='$CPP $CPPFLAGS'
10554ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10555ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10556cross_compiling=$ac_cv_prog_cc_cross
10557
421173e6
PE
10558
10559fi
10560
10561 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10562 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
38bd7296
BK
10563 for ac_func in _isnan
10564do
10565echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10566echo "configure:10567: checking for $ac_func" >&5
38bd7296
BK
10567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10569else
10570 cat > conftest.$ac_ext <<EOF
421173e6 10571#line 10572 "configure"
38bd7296
BK
10572#include "confdefs.h"
10573/* System header to define __stub macros and hopefully few prototypes,
10574 which can conflict with char $ac_func(); below. */
10575#include <assert.h>
10576/* Override any gcc2 internal prototype to avoid an error. */
10577/* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10579char $ac_func();
10580
10581int main() {
10582
10583/* The GNU C library defines this for functions which it implements
10584 to always fail with ENOSYS. Some functions are actually named
10585 something starting with __ and the normal name is an alias. */
10586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10587choke me
10588#else
10589$ac_func();
10590#endif
10591
10592; return 0; }
10593EOF
421173e6 10594if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10595 rm -rf conftest*
10596 eval "ac_cv_func_$ac_func=yes"
10597else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 eval "ac_cv_func_$ac_func=no"
10602fi
10603rm -f conftest*
10604fi
10605
10606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10609 cat >> confdefs.h <<EOF
10610#define $ac_tr_func 1
10611EOF
10612
10613else
10614 echo "$ac_t""no" 1>&6
10615fi
10616done
10617
10618 fi
10619
10620
421173e6
PE
10621 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10622echo "configure:10623: checking for _finite declaration" >&5
10623 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625else
38bd7296 10626
421173e6
PE
10627
10628 ac_ext=C
38bd7296
BK
10629# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10630ac_cpp='$CXXCPP $CPPFLAGS'
10631ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10632ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10633cross_compiling=$ac_cv_prog_cxx_cross
10634
421173e6
PE
10635 cat > conftest.$ac_ext <<EOF
10636#line 10637 "configure"
38bd7296
BK
10637#include "confdefs.h"
10638#include <math.h>
10639int main() {
10640 _finite(0);
10641; return 0; }
10642EOF
421173e6 10643if { (eval echo configure:10644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10644 rm -rf conftest*
421173e6 10645 glibcpp_cv_func__finite_use=yes
38bd7296
BK
10646else
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 rm -rf conftest*
421173e6 10650 glibcpp_cv_func__finite_use=no
38bd7296
BK
10651fi
10652rm -f conftest*
421173e6 10653 ac_ext=c
38bd7296
BK
10654# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10655ac_cpp='$CPP $CPPFLAGS'
10656ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10657ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10658cross_compiling=$ac_cv_prog_cc_cross
10659
421173e6
PE
10660
10661fi
10662
10663 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10664 if test x$glibcpp_cv_func__finite_use = x"yes"; then
38bd7296
BK
10665 for ac_func in _finite
10666do
10667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10668echo "configure:10669: checking for $ac_func" >&5
38bd7296
BK
10669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10671else
10672 cat > conftest.$ac_ext <<EOF
421173e6 10673#line 10674 "configure"
38bd7296
BK
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. */
10681char $ac_func();
10682
10683int 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)
10689choke me
10690#else
10691$ac_func();
10692#endif
10693
10694; return 0; }
10695EOF
421173e6 10696if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10697 rm -rf conftest*
10698 eval "ac_cv_func_$ac_func=yes"
10699else
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"
10704fi
10705rm -f conftest*
10706fi
10707
10708if 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
10713EOF
10714
10715else
10716 echo "$ac_t""no" 1>&6
10717fi
10718done
10719
10720 fi
10721
10722
421173e6
PE
10723 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10724echo "configure:10725: checking for _copysign declaration" >&5
10725 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727else
38bd7296 10728
421173e6
PE
10729
10730 ac_ext=C
38bd7296
BK
10731# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732ac_cpp='$CXXCPP $CPPFLAGS'
10733ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735cross_compiling=$ac_cv_prog_cxx_cross
10736
421173e6
PE
10737 cat > conftest.$ac_ext <<EOF
10738#line 10739 "configure"
38bd7296
BK
10739#include "confdefs.h"
10740#include <math.h>
10741int main() {
10742 _copysign(0, 0);
10743; return 0; }
10744EOF
421173e6 10745if { (eval echo configure:10746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10746 rm -rf conftest*
421173e6 10747 glibcpp_cv_func__copysign_use=yes
38bd7296
BK
10748else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
421173e6 10752 glibcpp_cv_func__copysign_use=no
38bd7296
BK
10753fi
10754rm -f conftest*
421173e6 10755 ac_ext=c
38bd7296
BK
10756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10757ac_cpp='$CPP $CPPFLAGS'
10758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10760cross_compiling=$ac_cv_prog_cc_cross
10761
421173e6
PE
10762
10763fi
10764
10765 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10766 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
38bd7296
BK
10767 for ac_func in _copysign
10768do
10769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10770echo "configure:10771: checking for $ac_func" >&5
38bd7296
BK
10771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10772 echo $ac_n "(cached) $ac_c" 1>&6
10773else
10774 cat > conftest.$ac_ext <<EOF
421173e6 10775#line 10776 "configure"
38bd7296
BK
10776#include "confdefs.h"
10777/* System header to define __stub macros and hopefully few prototypes,
10778 which can conflict with char $ac_func(); below. */
10779#include <assert.h>
10780/* Override any gcc2 internal prototype to avoid an error. */
10781/* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783char $ac_func();
10784
10785int main() {
10786
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10791choke me
10792#else
10793$ac_func();
10794#endif
10795
10796; return 0; }
10797EOF
421173e6 10798if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10799 rm -rf conftest*
10800 eval "ac_cv_func_$ac_func=yes"
10801else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -rf conftest*
10805 eval "ac_cv_func_$ac_func=no"
10806fi
10807rm -f conftest*
10808fi
10809
10810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10811 echo "$ac_t""yes" 1>&6
10812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10813 cat >> confdefs.h <<EOF
10814#define $ac_tr_func 1
10815EOF
10816
10817else
10818 echo "$ac_t""no" 1>&6
10819fi
10820done
10821
10822 fi
10823
10824
421173e6
PE
10825 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10826echo "configure:10827: checking for _sincos declaration" >&5
10827 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10829else
38bd7296 10830
421173e6
PE
10831
10832 ac_ext=C
38bd7296
BK
10833# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10834ac_cpp='$CXXCPP $CPPFLAGS'
10835ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10836ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10837cross_compiling=$ac_cv_prog_cxx_cross
10838
421173e6
PE
10839 cat > conftest.$ac_ext <<EOF
10840#line 10841 "configure"
38bd7296
BK
10841#include "confdefs.h"
10842#include <math.h>
10843int main() {
10844 _sincos(0, 0, 0);
10845; return 0; }
10846EOF
421173e6 10847if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10848 rm -rf conftest*
421173e6 10849 glibcpp_cv_func__sincos_use=yes
38bd7296
BK
10850else
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 rm -rf conftest*
421173e6 10854 glibcpp_cv_func__sincos_use=no
38bd7296
BK
10855fi
10856rm -f conftest*
421173e6 10857 ac_ext=c
38bd7296
BK
10858# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10859ac_cpp='$CPP $CPPFLAGS'
10860ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10861ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10862cross_compiling=$ac_cv_prog_cc_cross
10863
421173e6
PE
10864
10865fi
10866
10867 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10868 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
38bd7296
BK
10869 for ac_func in _sincos
10870do
10871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10872echo "configure:10873: checking for $ac_func" >&5
38bd7296
BK
10873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10875else
10876 cat > conftest.$ac_ext <<EOF
421173e6 10877#line 10878 "configure"
38bd7296
BK
10878#include "confdefs.h"
10879/* System header to define __stub macros and hopefully few prototypes,
10880 which can conflict with char $ac_func(); below. */
10881#include <assert.h>
10882/* Override any gcc2 internal prototype to avoid an error. */
10883/* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885char $ac_func();
10886
10887int main() {
10888
10889/* The GNU C library defines this for functions which it implements
10890 to always fail with ENOSYS. Some functions are actually named
10891 something starting with __ and the normal name is an alias. */
10892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10893choke me
10894#else
10895$ac_func();
10896#endif
10897
10898; return 0; }
10899EOF
421173e6 10900if { (eval echo configure:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
10901 rm -rf conftest*
10902 eval "ac_cv_func_$ac_func=yes"
10903else
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 rm -rf conftest*
10907 eval "ac_cv_func_$ac_func=no"
10908fi
10909rm -f conftest*
10910fi
10911
10912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10913 echo "$ac_t""yes" 1>&6
10914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10915 cat >> confdefs.h <<EOF
10916#define $ac_tr_func 1
10917EOF
10918
10919else
10920 echo "$ac_t""no" 1>&6
10921fi
10922done
10923
10924 fi
10925
10926
421173e6
PE
10927 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10928echo "configure:10929: checking for _fpclass declaration" >&5
10929 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10930 echo $ac_n "(cached) $ac_c" 1>&6
10931else
38bd7296 10932
421173e6
PE
10933
10934 ac_ext=C
38bd7296
BK
10935# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10936ac_cpp='$CXXCPP $CPPFLAGS'
10937ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10938ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10939cross_compiling=$ac_cv_prog_cxx_cross
10940
421173e6
PE
10941 cat > conftest.$ac_ext <<EOF
10942#line 10943 "configure"
38bd7296
BK
10943#include "confdefs.h"
10944#include <math.h>
10945int main() {
10946 _fpclass(0);
10947; return 0; }
10948EOF
421173e6 10949if { (eval echo configure:10950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 10950 rm -rf conftest*
421173e6 10951 glibcpp_cv_func__fpclass_use=yes
38bd7296
BK
10952else
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 rm -rf conftest*
421173e6 10956 glibcpp_cv_func__fpclass_use=no
38bd7296
BK
10957fi
10958rm -f conftest*
421173e6 10959 ac_ext=c
38bd7296
BK
10960# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10961ac_cpp='$CPP $CPPFLAGS'
10962ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10963ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10964cross_compiling=$ac_cv_prog_cc_cross
10965
421173e6
PE
10966
10967fi
10968
10969 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10970 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
38bd7296
BK
10971 for ac_func in _fpclass
10972do
10973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 10974echo "configure:10975: checking for $ac_func" >&5
38bd7296
BK
10975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10977else
10978 cat > conftest.$ac_ext <<EOF
421173e6 10979#line 10980 "configure"
38bd7296
BK
10980#include "confdefs.h"
10981/* System header to define __stub macros and hopefully few prototypes,
10982 which can conflict with char $ac_func(); below. */
10983#include <assert.h>
10984/* Override any gcc2 internal prototype to avoid an error. */
10985/* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987char $ac_func();
10988
10989int main() {
10990
10991/* The GNU C library defines this for functions which it implements
10992 to always fail with ENOSYS. Some functions are actually named
10993 something starting with __ and the normal name is an alias. */
10994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10995choke me
10996#else
10997$ac_func();
10998#endif
10999
11000; return 0; }
11001EOF
421173e6 11002if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11003 rm -rf conftest*
11004 eval "ac_cv_func_$ac_func=yes"
11005else
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 rm -rf conftest*
11009 eval "ac_cv_func_$ac_func=no"
11010fi
11011rm -f conftest*
11012fi
11013
11014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11015 echo "$ac_t""yes" 1>&6
11016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11017 cat >> confdefs.h <<EOF
11018#define $ac_tr_func 1
11019EOF
11020
11021else
11022 echo "$ac_t""no" 1>&6
11023fi
11024done
11025
11026 fi
11027
11028
421173e6
PE
11029 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11030echo "configure:11031: checking for _qfpclass declaration" >&5
11031 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11033else
38bd7296 11034
421173e6
PE
11035
11036 ac_ext=C
38bd7296
BK
11037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038ac_cpp='$CXXCPP $CPPFLAGS'
11039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041cross_compiling=$ac_cv_prog_cxx_cross
11042
421173e6
PE
11043 cat > conftest.$ac_ext <<EOF
11044#line 11045 "configure"
38bd7296
BK
11045#include "confdefs.h"
11046#include <math.h>
11047int main() {
11048 _qfpclass(0);
11049; return 0; }
11050EOF
421173e6 11051if { (eval echo configure:11052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11052 rm -rf conftest*
421173e6 11053 glibcpp_cv_func__qfpclass_use=yes
38bd7296
BK
11054else
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 rm -rf conftest*
421173e6 11058 glibcpp_cv_func__qfpclass_use=no
38bd7296
BK
11059fi
11060rm -f conftest*
421173e6 11061 ac_ext=c
38bd7296
BK
11062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11063ac_cpp='$CPP $CPPFLAGS'
11064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066cross_compiling=$ac_cv_prog_cc_cross
11067
421173e6
PE
11068
11069fi
11070
11071 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11072 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
38bd7296
BK
11073 for ac_func in _qfpclass
11074do
11075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11076echo "configure:11077: checking for $ac_func" >&5
38bd7296
BK
11077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079else
11080 cat > conftest.$ac_ext <<EOF
421173e6 11081#line 11082 "configure"
38bd7296
BK
11082#include "confdefs.h"
11083/* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char $ac_func(); below. */
11085#include <assert.h>
11086/* Override any gcc2 internal prototype to avoid an error. */
11087/* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11089char $ac_func();
11090
11091int main() {
11092
11093/* The GNU C library defines this for functions which it implements
11094 to always fail with ENOSYS. Some functions are actually named
11095 something starting with __ and the normal name is an alias. */
11096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11097choke me
11098#else
11099$ac_func();
11100#endif
11101
11102; return 0; }
11103EOF
421173e6 11104if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11105 rm -rf conftest*
11106 eval "ac_cv_func_$ac_func=yes"
11107else
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11110 rm -rf conftest*
11111 eval "ac_cv_func_$ac_func=no"
11112fi
11113rm -f conftest*
11114fi
11115
11116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11117 echo "$ac_t""yes" 1>&6
11118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11119 cat >> confdefs.h <<EOF
11120#define $ac_tr_func 1
11121EOF
11122
11123else
11124 echo "$ac_t""no" 1>&6
11125fi
11126done
11127
11128 fi
11129
11130
11131
421173e6
PE
11132 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11133echo "configure:11134: checking for _isnanf declaration" >&5
11134 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11136else
38bd7296 11137
421173e6
PE
11138
11139 ac_ext=C
38bd7296
BK
11140# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11141ac_cpp='$CXXCPP $CPPFLAGS'
11142ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11143ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11144cross_compiling=$ac_cv_prog_cxx_cross
11145
421173e6
PE
11146 cat > conftest.$ac_ext <<EOF
11147#line 11148 "configure"
38bd7296
BK
11148#include "confdefs.h"
11149#include <math.h>
11150int main() {
11151 _isnanf(0);
11152; return 0; }
11153EOF
421173e6 11154if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11155 rm -rf conftest*
421173e6 11156 glibcpp_cv_func__isnanf_use=yes
38bd7296
BK
11157else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
421173e6 11161 glibcpp_cv_func__isnanf_use=no
38bd7296
BK
11162fi
11163rm -f conftest*
421173e6 11164 ac_ext=c
38bd7296
BK
11165# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11166ac_cpp='$CPP $CPPFLAGS'
11167ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11168ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11169cross_compiling=$ac_cv_prog_cc_cross
11170
421173e6
PE
11171
11172fi
11173
11174 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11175 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
38bd7296
BK
11176 for ac_func in _isnanf
11177do
11178echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11179echo "configure:11180: checking for $ac_func" >&5
38bd7296
BK
11180if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182else
11183 cat > conftest.$ac_ext <<EOF
421173e6 11184#line 11185 "configure"
38bd7296
BK
11185#include "confdefs.h"
11186/* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func(); below. */
11188#include <assert.h>
11189/* Override any gcc2 internal prototype to avoid an error. */
11190/* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192char $ac_func();
11193
11194int main() {
11195
11196/* The GNU C library defines this for functions which it implements
11197 to always fail with ENOSYS. Some functions are actually named
11198 something starting with __ and the normal name is an alias. */
11199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11200choke me
11201#else
11202$ac_func();
11203#endif
11204
11205; return 0; }
11206EOF
421173e6 11207if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11208 rm -rf conftest*
11209 eval "ac_cv_func_$ac_func=yes"
11210else
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 eval "ac_cv_func_$ac_func=no"
11215fi
11216rm -f conftest*
11217fi
11218
11219if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11222 cat >> confdefs.h <<EOF
11223#define $ac_tr_func 1
11224EOF
11225
11226else
11227 echo "$ac_t""no" 1>&6
11228fi
11229done
11230
11231 fi
11232
11233
421173e6
PE
11234 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
11235echo "configure:11236: checking for _isinff declaration" >&5
11236 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
11237 echo $ac_n "(cached) $ac_c" 1>&6
11238else
38bd7296 11239
421173e6
PE
11240
11241 ac_ext=C
38bd7296
BK
11242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243ac_cpp='$CXXCPP $CPPFLAGS'
11244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246cross_compiling=$ac_cv_prog_cxx_cross
11247
421173e6
PE
11248 cat > conftest.$ac_ext <<EOF
11249#line 11250 "configure"
38bd7296
BK
11250#include "confdefs.h"
11251#include <math.h>
11252int main() {
11253 _isinff(0);
11254; return 0; }
11255EOF
421173e6 11256if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11257 rm -rf conftest*
421173e6 11258 glibcpp_cv_func__isinff_use=yes
38bd7296
BK
11259else
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 rm -rf conftest*
421173e6 11263 glibcpp_cv_func__isinff_use=no
38bd7296
BK
11264fi
11265rm -f conftest*
421173e6 11266 ac_ext=c
38bd7296
BK
11267# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11268ac_cpp='$CPP $CPPFLAGS'
11269ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11270ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11271cross_compiling=$ac_cv_prog_cc_cross
11272
421173e6
PE
11273
11274fi
11275
11276 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
11277 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
38bd7296
BK
11278 for ac_func in _isinff
11279do
11280echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11281echo "configure:11282: checking for $ac_func" >&5
38bd7296
BK
11282if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11284else
11285 cat > conftest.$ac_ext <<EOF
421173e6 11286#line 11287 "configure"
38bd7296
BK
11287#include "confdefs.h"
11288/* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func(); below. */
11290#include <assert.h>
11291/* Override any gcc2 internal prototype to avoid an error. */
11292/* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294char $ac_func();
11295
11296int main() {
11297
11298/* The GNU C library defines this for functions which it implements
11299 to always fail with ENOSYS. Some functions are actually named
11300 something starting with __ and the normal name is an alias. */
11301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11302choke me
11303#else
11304$ac_func();
11305#endif
11306
11307; return 0; }
11308EOF
421173e6 11309if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11310 rm -rf conftest*
11311 eval "ac_cv_func_$ac_func=yes"
11312else
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 rm -rf conftest*
11316 eval "ac_cv_func_$ac_func=no"
11317fi
11318rm -f conftest*
11319fi
11320
11321if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11324 cat >> confdefs.h <<EOF
11325#define $ac_tr_func 1
11326EOF
11327
11328else
11329 echo "$ac_t""no" 1>&6
11330fi
11331done
11332
11333 fi
11334
11335
421173e6
PE
11336 echo $ac_n "checking for _acosf declaration""... $ac_c" 1>&6
11337echo "configure:11338: checking for _acosf declaration" >&5
11338 if eval "test \"`echo '$''{'glibcpp_cv_func__acosf_use'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340else
38bd7296 11341
421173e6
PE
11342
11343 ac_ext=C
38bd7296
BK
11344# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11345ac_cpp='$CXXCPP $CPPFLAGS'
11346ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11347ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11348cross_compiling=$ac_cv_prog_cxx_cross
11349
421173e6
PE
11350 cat > conftest.$ac_ext <<EOF
11351#line 11352 "configure"
38bd7296
BK
11352#include "confdefs.h"
11353#include <math.h>
11354int main() {
11355 _acosf(0);
11356; return 0; }
11357EOF
421173e6 11358if { (eval echo configure:11359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11359 rm -rf conftest*
421173e6 11360 glibcpp_cv_func__acosf_use=yes
38bd7296
BK
11361else
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 rm -rf conftest*
421173e6 11365 glibcpp_cv_func__acosf_use=no
38bd7296
BK
11366fi
11367rm -f conftest*
421173e6 11368 ac_ext=c
38bd7296
BK
11369# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11370ac_cpp='$CPP $CPPFLAGS'
11371ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11372ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11373cross_compiling=$ac_cv_prog_cc_cross
11374
421173e6
PE
11375
11376fi
11377
11378 echo "$ac_t""$glibcpp_cv_func__acosf_use" 1>&6
11379 if test x$glibcpp_cv_func__acosf_use = x"yes"; then
38bd7296
BK
11380 for ac_func in _acosf
11381do
11382echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11383echo "configure:11384: checking for $ac_func" >&5
38bd7296
BK
11384if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
11386else
11387 cat > conftest.$ac_ext <<EOF
421173e6 11388#line 11389 "configure"
38bd7296
BK
11389#include "confdefs.h"
11390/* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char $ac_func(); below. */
11392#include <assert.h>
11393/* Override any gcc2 internal prototype to avoid an error. */
11394/* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11396char $ac_func();
11397
11398int main() {
11399
11400/* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11404choke me
11405#else
11406$ac_func();
11407#endif
11408
11409; return 0; }
11410EOF
421173e6 11411if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11412 rm -rf conftest*
11413 eval "ac_cv_func_$ac_func=yes"
11414else
11415 echo "configure: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11417 rm -rf conftest*
11418 eval "ac_cv_func_$ac_func=no"
11419fi
11420rm -f conftest*
11421fi
11422
11423if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11426 cat >> confdefs.h <<EOF
11427#define $ac_tr_func 1
11428EOF
11429
11430else
11431 echo "$ac_t""no" 1>&6
11432fi
11433done
11434
11435 fi
11436
11437
421173e6
PE
11438 echo $ac_n "checking for _asinf declaration""... $ac_c" 1>&6
11439echo "configure:11440: checking for _asinf declaration" >&5
11440 if eval "test \"`echo '$''{'glibcpp_cv_func__asinf_use'+set}'`\" = set"; then
11441 echo $ac_n "(cached) $ac_c" 1>&6
11442else
38bd7296 11443
421173e6
PE
11444
11445 ac_ext=C
38bd7296
BK
11446# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11447ac_cpp='$CXXCPP $CPPFLAGS'
11448ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11449ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11450cross_compiling=$ac_cv_prog_cxx_cross
11451
421173e6
PE
11452 cat > conftest.$ac_ext <<EOF
11453#line 11454 "configure"
38bd7296
BK
11454#include "confdefs.h"
11455#include <math.h>
11456int main() {
11457 _asinf(0);
11458; return 0; }
11459EOF
421173e6 11460if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11461 rm -rf conftest*
421173e6 11462 glibcpp_cv_func__asinf_use=yes
38bd7296
BK
11463else
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 rm -rf conftest*
421173e6 11467 glibcpp_cv_func__asinf_use=no
38bd7296
BK
11468fi
11469rm -f conftest*
421173e6 11470 ac_ext=c
38bd7296
BK
11471# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11472ac_cpp='$CPP $CPPFLAGS'
11473ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11474ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11475cross_compiling=$ac_cv_prog_cc_cross
11476
421173e6
PE
11477
11478fi
11479
11480 echo "$ac_t""$glibcpp_cv_func__asinf_use" 1>&6
11481 if test x$glibcpp_cv_func__asinf_use = x"yes"; then
38bd7296
BK
11482 for ac_func in _asinf
11483do
11484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11485echo "configure:11486: checking for $ac_func" >&5
38bd7296
BK
11486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11488else
11489 cat > conftest.$ac_ext <<EOF
421173e6 11490#line 11491 "configure"
38bd7296
BK
11491#include "confdefs.h"
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
11494#include <assert.h>
11495/* Override any gcc2 internal prototype to avoid an error. */
11496/* We use char because int might match the return type of a gcc2
11497 builtin and then its argument prototype would still apply. */
11498char $ac_func();
11499
11500int main() {
11501
11502/* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506choke me
11507#else
11508$ac_func();
11509#endif
11510
11511; return 0; }
11512EOF
421173e6 11513if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11514 rm -rf conftest*
11515 eval "ac_cv_func_$ac_func=yes"
11516else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 eval "ac_cv_func_$ac_func=no"
11521fi
11522rm -f conftest*
11523fi
11524
11525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11528 cat >> confdefs.h <<EOF
11529#define $ac_tr_func 1
11530EOF
11531
11532else
11533 echo "$ac_t""no" 1>&6
11534fi
11535done
11536
11537 fi
11538
11539
421173e6
PE
11540 echo $ac_n "checking for _atanf declaration""... $ac_c" 1>&6
11541echo "configure:11542: checking for _atanf declaration" >&5
11542 if eval "test \"`echo '$''{'glibcpp_cv_func__atanf_use'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11544else
38bd7296 11545
421173e6
PE
11546
11547 ac_ext=C
38bd7296
BK
11548# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11549ac_cpp='$CXXCPP $CPPFLAGS'
11550ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11551ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11552cross_compiling=$ac_cv_prog_cxx_cross
11553
421173e6
PE
11554 cat > conftest.$ac_ext <<EOF
11555#line 11556 "configure"
38bd7296
BK
11556#include "confdefs.h"
11557#include <math.h>
11558int main() {
11559 _atanf(0);
11560; return 0; }
11561EOF
421173e6 11562if { (eval echo configure:11563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11563 rm -rf conftest*
421173e6 11564 glibcpp_cv_func__atanf_use=yes
38bd7296
BK
11565else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
421173e6 11569 glibcpp_cv_func__atanf_use=no
38bd7296
BK
11570fi
11571rm -f conftest*
421173e6 11572 ac_ext=c
38bd7296
BK
11573# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11574ac_cpp='$CPP $CPPFLAGS'
11575ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11576ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11577cross_compiling=$ac_cv_prog_cc_cross
11578
421173e6
PE
11579
11580fi
11581
11582 echo "$ac_t""$glibcpp_cv_func__atanf_use" 1>&6
11583 if test x$glibcpp_cv_func__atanf_use = x"yes"; then
38bd7296
BK
11584 for ac_func in _atanf
11585do
11586echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11587echo "configure:11588: checking for $ac_func" >&5
38bd7296
BK
11588if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11590else
11591 cat > conftest.$ac_ext <<EOF
421173e6 11592#line 11593 "configure"
38bd7296
BK
11593#include "confdefs.h"
11594/* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func(); below. */
11596#include <assert.h>
11597/* Override any gcc2 internal prototype to avoid an error. */
11598/* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600char $ac_func();
11601
11602int main() {
11603
11604/* The GNU C library defines this for functions which it implements
11605 to always fail with ENOSYS. Some functions are actually named
11606 something starting with __ and the normal name is an alias. */
11607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11608choke me
11609#else
11610$ac_func();
11611#endif
11612
11613; return 0; }
11614EOF
421173e6 11615if { (eval echo configure:11616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11616 rm -rf conftest*
11617 eval "ac_cv_func_$ac_func=yes"
11618else
11619 echo "configure: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 rm -rf conftest*
11622 eval "ac_cv_func_$ac_func=no"
11623fi
11624rm -f conftest*
11625fi
11626
11627if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11628 echo "$ac_t""yes" 1>&6
11629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11630 cat >> confdefs.h <<EOF
11631#define $ac_tr_func 1
11632EOF
11633
11634else
11635 echo "$ac_t""no" 1>&6
11636fi
11637done
11638
11639 fi
11640
11641
421173e6
PE
11642 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
11643echo "configure:11644: checking for _atan2f declaration" >&5
11644 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646else
38bd7296 11647
421173e6
PE
11648
11649 ac_ext=C
38bd7296
BK
11650# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11651ac_cpp='$CXXCPP $CPPFLAGS'
11652ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11653ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11654cross_compiling=$ac_cv_prog_cxx_cross
11655
421173e6
PE
11656 cat > conftest.$ac_ext <<EOF
11657#line 11658 "configure"
38bd7296
BK
11658#include "confdefs.h"
11659#include <math.h>
11660int main() {
11661 _atan2f(0, 0);
11662; return 0; }
11663EOF
421173e6 11664if { (eval echo configure:11665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11665 rm -rf conftest*
421173e6 11666 glibcpp_cv_func__atan2f_use=yes
38bd7296
BK
11667else
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 rm -rf conftest*
421173e6 11671 glibcpp_cv_func__atan2f_use=no
38bd7296
BK
11672fi
11673rm -f conftest*
421173e6 11674 ac_ext=c
38bd7296
BK
11675# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11676ac_cpp='$CPP $CPPFLAGS'
11677ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11678ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11679cross_compiling=$ac_cv_prog_cc_cross
11680
421173e6
PE
11681
11682fi
11683
11684 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
11685 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
38bd7296
BK
11686 for ac_func in _atan2f
11687do
11688echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11689echo "configure:11690: checking for $ac_func" >&5
38bd7296
BK
11690if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11692else
11693 cat > conftest.$ac_ext <<EOF
421173e6 11694#line 11695 "configure"
38bd7296
BK
11695#include "confdefs.h"
11696/* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func(); below. */
11698#include <assert.h>
11699/* Override any gcc2 internal prototype to avoid an error. */
11700/* We use char because int might match the return type of a gcc2
11701 builtin and then its argument prototype would still apply. */
11702char $ac_func();
11703
11704int main() {
11705
11706/* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11710choke me
11711#else
11712$ac_func();
11713#endif
11714
11715; return 0; }
11716EOF
421173e6 11717if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11718 rm -rf conftest*
11719 eval "ac_cv_func_$ac_func=yes"
11720else
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
11724 eval "ac_cv_func_$ac_func=no"
11725fi
11726rm -f conftest*
11727fi
11728
11729if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11732 cat >> confdefs.h <<EOF
11733#define $ac_tr_func 1
11734EOF
11735
11736else
11737 echo "$ac_t""no" 1>&6
11738fi
11739done
11740
11741 fi
11742
11743
421173e6
PE
11744 echo $ac_n "checking for _ceilf declaration""... $ac_c" 1>&6
11745echo "configure:11746: checking for _ceilf declaration" >&5
11746 if eval "test \"`echo '$''{'glibcpp_cv_func__ceilf_use'+set}'`\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11748else
38bd7296 11749
421173e6
PE
11750
11751 ac_ext=C
38bd7296
BK
11752# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11753ac_cpp='$CXXCPP $CPPFLAGS'
11754ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11755ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11756cross_compiling=$ac_cv_prog_cxx_cross
11757
421173e6
PE
11758 cat > conftest.$ac_ext <<EOF
11759#line 11760 "configure"
38bd7296
BK
11760#include "confdefs.h"
11761#include <math.h>
11762int main() {
11763 _ceilf(0);
11764; return 0; }
11765EOF
421173e6 11766if { (eval echo configure:11767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11767 rm -rf conftest*
421173e6 11768 glibcpp_cv_func__ceilf_use=yes
38bd7296
BK
11769else
11770 echo "configure: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 rm -rf conftest*
421173e6 11773 glibcpp_cv_func__ceilf_use=no
38bd7296
BK
11774fi
11775rm -f conftest*
421173e6 11776 ac_ext=c
38bd7296
BK
11777# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11778ac_cpp='$CPP $CPPFLAGS'
11779ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11780ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11781cross_compiling=$ac_cv_prog_cc_cross
11782
421173e6
PE
11783
11784fi
11785
11786 echo "$ac_t""$glibcpp_cv_func__ceilf_use" 1>&6
11787 if test x$glibcpp_cv_func__ceilf_use = x"yes"; then
38bd7296
BK
11788 for ac_func in _ceilf
11789do
11790echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11791echo "configure:11792: checking for $ac_func" >&5
38bd7296
BK
11792if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11794else
11795 cat > conftest.$ac_ext <<EOF
421173e6 11796#line 11797 "configure"
38bd7296
BK
11797#include "confdefs.h"
11798/* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func(); below. */
11800#include <assert.h>
11801/* Override any gcc2 internal prototype to avoid an error. */
11802/* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11804char $ac_func();
11805
11806int main() {
11807
11808/* The GNU C library defines this for functions which it implements
11809 to always fail with ENOSYS. Some functions are actually named
11810 something starting with __ and the normal name is an alias. */
11811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11812choke me
11813#else
11814$ac_func();
11815#endif
11816
11817; return 0; }
11818EOF
421173e6 11819if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11820 rm -rf conftest*
11821 eval "ac_cv_func_$ac_func=yes"
11822else
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 rm -rf conftest*
11826 eval "ac_cv_func_$ac_func=no"
11827fi
11828rm -f conftest*
11829fi
11830
11831if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11832 echo "$ac_t""yes" 1>&6
11833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11834 cat >> confdefs.h <<EOF
11835#define $ac_tr_func 1
11836EOF
11837
11838else
11839 echo "$ac_t""no" 1>&6
11840fi
11841done
11842
11843 fi
11844
11845
421173e6
PE
11846 echo $ac_n "checking for _cosf declaration""... $ac_c" 1>&6
11847echo "configure:11848: checking for _cosf declaration" >&5
11848 if eval "test \"`echo '$''{'glibcpp_cv_func__cosf_use'+set}'`\" = set"; then
11849 echo $ac_n "(cached) $ac_c" 1>&6
11850else
38bd7296 11851
421173e6
PE
11852
11853 ac_ext=C
38bd7296
BK
11854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11855ac_cpp='$CXXCPP $CPPFLAGS'
11856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11858cross_compiling=$ac_cv_prog_cxx_cross
11859
421173e6
PE
11860 cat > conftest.$ac_ext <<EOF
11861#line 11862 "configure"
38bd7296
BK
11862#include "confdefs.h"
11863#include <math.h>
11864int main() {
11865 _cosf(0);
11866; return 0; }
11867EOF
421173e6 11868if { (eval echo configure:11869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11869 rm -rf conftest*
421173e6 11870 glibcpp_cv_func__cosf_use=yes
38bd7296
BK
11871else
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11874 rm -rf conftest*
421173e6 11875 glibcpp_cv_func__cosf_use=no
38bd7296
BK
11876fi
11877rm -f conftest*
421173e6 11878 ac_ext=c
38bd7296
BK
11879# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11880ac_cpp='$CPP $CPPFLAGS'
11881ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11882ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11883cross_compiling=$ac_cv_prog_cc_cross
11884
421173e6
PE
11885
11886fi
11887
11888 echo "$ac_t""$glibcpp_cv_func__cosf_use" 1>&6
11889 if test x$glibcpp_cv_func__cosf_use = x"yes"; then
38bd7296
BK
11890 for ac_func in _cosf
11891do
11892echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11893echo "configure:11894: checking for $ac_func" >&5
38bd7296
BK
11894if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11895 echo $ac_n "(cached) $ac_c" 1>&6
11896else
11897 cat > conftest.$ac_ext <<EOF
421173e6 11898#line 11899 "configure"
38bd7296
BK
11899#include "confdefs.h"
11900/* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char $ac_func(); below. */
11902#include <assert.h>
11903/* Override any gcc2 internal prototype to avoid an error. */
11904/* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11906char $ac_func();
11907
11908int main() {
11909
11910/* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11914choke me
11915#else
11916$ac_func();
11917#endif
11918
11919; return 0; }
11920EOF
421173e6 11921if { (eval echo configure:11922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
11922 rm -rf conftest*
11923 eval "ac_cv_func_$ac_func=yes"
11924else
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11927 rm -rf conftest*
11928 eval "ac_cv_func_$ac_func=no"
11929fi
11930rm -f conftest*
11931fi
11932
11933if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11934 echo "$ac_t""yes" 1>&6
11935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11936 cat >> confdefs.h <<EOF
11937#define $ac_tr_func 1
11938EOF
11939
11940else
11941 echo "$ac_t""no" 1>&6
11942fi
11943done
11944
11945 fi
11946
11947
421173e6
PE
11948 echo $ac_n "checking for _coshf declaration""... $ac_c" 1>&6
11949echo "configure:11950: checking for _coshf declaration" >&5
11950 if eval "test \"`echo '$''{'glibcpp_cv_func__coshf_use'+set}'`\" = set"; then
11951 echo $ac_n "(cached) $ac_c" 1>&6
11952else
38bd7296 11953
421173e6
PE
11954
11955 ac_ext=C
38bd7296
BK
11956# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11957ac_cpp='$CXXCPP $CPPFLAGS'
11958ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11959ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11960cross_compiling=$ac_cv_prog_cxx_cross
11961
421173e6
PE
11962 cat > conftest.$ac_ext <<EOF
11963#line 11964 "configure"
38bd7296
BK
11964#include "confdefs.h"
11965#include <math.h>
11966int main() {
11967 _coshf(0);
11968; return 0; }
11969EOF
421173e6 11970if { (eval echo configure:11971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 11971 rm -rf conftest*
421173e6 11972 glibcpp_cv_func__coshf_use=yes
38bd7296
BK
11973else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
421173e6 11977 glibcpp_cv_func__coshf_use=no
38bd7296
BK
11978fi
11979rm -f conftest*
421173e6 11980 ac_ext=c
38bd7296
BK
11981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11982ac_cpp='$CPP $CPPFLAGS'
11983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985cross_compiling=$ac_cv_prog_cc_cross
11986
421173e6
PE
11987
11988fi
11989
11990 echo "$ac_t""$glibcpp_cv_func__coshf_use" 1>&6
11991 if test x$glibcpp_cv_func__coshf_use = x"yes"; then
38bd7296
BK
11992 for ac_func in _coshf
11993do
11994echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 11995echo "configure:11996: checking for $ac_func" >&5
38bd7296
BK
11996if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11998else
11999 cat > conftest.$ac_ext <<EOF
421173e6 12000#line 12001 "configure"
38bd7296
BK
12001#include "confdefs.h"
12002/* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func(); below. */
12004#include <assert.h>
12005/* Override any gcc2 internal prototype to avoid an error. */
12006/* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12008char $ac_func();
12009
12010int main() {
12011
12012/* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12016choke me
12017#else
12018$ac_func();
12019#endif
12020
12021; return 0; }
12022EOF
421173e6 12023if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12024 rm -rf conftest*
12025 eval "ac_cv_func_$ac_func=yes"
12026else
12027 echo "configure: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12029 rm -rf conftest*
12030 eval "ac_cv_func_$ac_func=no"
12031fi
12032rm -f conftest*
12033fi
12034
12035if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12038 cat >> confdefs.h <<EOF
12039#define $ac_tr_func 1
12040EOF
12041
12042else
12043 echo "$ac_t""no" 1>&6
12044fi
12045done
12046
12047 fi
12048
12049
421173e6
PE
12050 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12051echo "configure:12052: checking for _expf declaration" >&5
12052 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054else
38bd7296 12055
421173e6
PE
12056
12057 ac_ext=C
38bd7296
BK
12058# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059ac_cpp='$CXXCPP $CPPFLAGS'
12060ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062cross_compiling=$ac_cv_prog_cxx_cross
12063
421173e6
PE
12064 cat > conftest.$ac_ext <<EOF
12065#line 12066 "configure"
38bd7296
BK
12066#include "confdefs.h"
12067#include <math.h>
12068int main() {
12069 _expf(0);
12070; return 0; }
12071EOF
421173e6 12072if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12073 rm -rf conftest*
421173e6 12074 glibcpp_cv_func__expf_use=yes
38bd7296
BK
12075else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
421173e6 12079 glibcpp_cv_func__expf_use=no
38bd7296
BK
12080fi
12081rm -f conftest*
421173e6 12082 ac_ext=c
38bd7296
BK
12083# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12084ac_cpp='$CPP $CPPFLAGS'
12085ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12086ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12087cross_compiling=$ac_cv_prog_cc_cross
12088
421173e6
PE
12089
12090fi
12091
12092 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12093 if test x$glibcpp_cv_func__expf_use = x"yes"; then
38bd7296
BK
12094 for ac_func in _expf
12095do
12096echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12097echo "configure:12098: checking for $ac_func" >&5
38bd7296
BK
12098if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12099 echo $ac_n "(cached) $ac_c" 1>&6
12100else
12101 cat > conftest.$ac_ext <<EOF
421173e6 12102#line 12103 "configure"
38bd7296
BK
12103#include "confdefs.h"
12104/* System header to define __stub macros and hopefully few prototypes,
12105 which can conflict with char $ac_func(); below. */
12106#include <assert.h>
12107/* Override any gcc2 internal prototype to avoid an error. */
12108/* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12110char $ac_func();
12111
12112int main() {
12113
12114/* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12118choke me
12119#else
12120$ac_func();
12121#endif
12122
12123; return 0; }
12124EOF
421173e6 12125if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12126 rm -rf conftest*
12127 eval "ac_cv_func_$ac_func=yes"
12128else
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 rm -rf conftest*
12132 eval "ac_cv_func_$ac_func=no"
12133fi
12134rm -f conftest*
12135fi
12136
12137if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12140 cat >> confdefs.h <<EOF
12141#define $ac_tr_func 1
12142EOF
12143
12144else
12145 echo "$ac_t""no" 1>&6
12146fi
12147done
12148
12149 fi
12150
12151
421173e6
PE
12152 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12153echo "configure:12154: checking for _fabsf declaration" >&5
12154 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12155 echo $ac_n "(cached) $ac_c" 1>&6
12156else
38bd7296 12157
421173e6
PE
12158
12159 ac_ext=C
38bd7296
BK
12160# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12161ac_cpp='$CXXCPP $CPPFLAGS'
12162ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12163ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12164cross_compiling=$ac_cv_prog_cxx_cross
12165
421173e6
PE
12166 cat > conftest.$ac_ext <<EOF
12167#line 12168 "configure"
38bd7296
BK
12168#include "confdefs.h"
12169#include <math.h>
12170int main() {
12171 _fabsf(0);
12172; return 0; }
12173EOF
421173e6 12174if { (eval echo configure:12175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12175 rm -rf conftest*
421173e6 12176 glibcpp_cv_func__fabsf_use=yes
38bd7296
BK
12177else
12178 echo "configure: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 rm -rf conftest*
421173e6 12181 glibcpp_cv_func__fabsf_use=no
38bd7296
BK
12182fi
12183rm -f conftest*
421173e6 12184 ac_ext=c
38bd7296
BK
12185# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12186ac_cpp='$CPP $CPPFLAGS'
12187ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12188ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12189cross_compiling=$ac_cv_prog_cc_cross
12190
421173e6
PE
12191
12192fi
12193
12194 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12195 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
38bd7296
BK
12196 for ac_func in _fabsf
12197do
12198echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12199echo "configure:12200: checking for $ac_func" >&5
38bd7296
BK
12200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12201 echo $ac_n "(cached) $ac_c" 1>&6
12202else
12203 cat > conftest.$ac_ext <<EOF
421173e6 12204#line 12205 "configure"
38bd7296
BK
12205#include "confdefs.h"
12206/* System header to define __stub macros and hopefully few prototypes,
12207 which can conflict with char $ac_func(); below. */
12208#include <assert.h>
12209/* Override any gcc2 internal prototype to avoid an error. */
12210/* We use char because int might match the return type of a gcc2
12211 builtin and then its argument prototype would still apply. */
12212char $ac_func();
12213
12214int main() {
12215
12216/* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
12219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12220choke me
12221#else
12222$ac_func();
12223#endif
12224
12225; return 0; }
12226EOF
421173e6 12227if { (eval echo configure:12228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12228 rm -rf conftest*
12229 eval "ac_cv_func_$ac_func=yes"
12230else
12231 echo "configure: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 rm -rf conftest*
12234 eval "ac_cv_func_$ac_func=no"
12235fi
12236rm -f conftest*
12237fi
12238
12239if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12240 echo "$ac_t""yes" 1>&6
12241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12242 cat >> confdefs.h <<EOF
12243#define $ac_tr_func 1
12244EOF
12245
12246else
12247 echo "$ac_t""no" 1>&6
12248fi
12249done
12250
12251 fi
12252
12253
421173e6
PE
12254 echo $ac_n "checking for _floorf declaration""... $ac_c" 1>&6
12255echo "configure:12256: checking for _floorf declaration" >&5
12256 if eval "test \"`echo '$''{'glibcpp_cv_func__floorf_use'+set}'`\" = set"; then
12257 echo $ac_n "(cached) $ac_c" 1>&6
12258else
38bd7296 12259
421173e6
PE
12260
12261 ac_ext=C
38bd7296
BK
12262# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12263ac_cpp='$CXXCPP $CPPFLAGS'
12264ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12265ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12266cross_compiling=$ac_cv_prog_cxx_cross
12267
421173e6
PE
12268 cat > conftest.$ac_ext <<EOF
12269#line 12270 "configure"
38bd7296
BK
12270#include "confdefs.h"
12271#include <math.h>
12272int main() {
12273 _floorf(0);
12274; return 0; }
12275EOF
421173e6 12276if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12277 rm -rf conftest*
421173e6 12278 glibcpp_cv_func__floorf_use=yes
38bd7296
BK
12279else
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12282 rm -rf conftest*
421173e6 12283 glibcpp_cv_func__floorf_use=no
38bd7296
BK
12284fi
12285rm -f conftest*
421173e6 12286 ac_ext=c
38bd7296
BK
12287# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12288ac_cpp='$CPP $CPPFLAGS'
12289ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12290ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12291cross_compiling=$ac_cv_prog_cc_cross
12292
421173e6
PE
12293
12294fi
12295
12296 echo "$ac_t""$glibcpp_cv_func__floorf_use" 1>&6
12297 if test x$glibcpp_cv_func__floorf_use = x"yes"; then
38bd7296
BK
12298 for ac_func in _floorf
12299do
12300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12301echo "configure:12302: checking for $ac_func" >&5
38bd7296
BK
12302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12303 echo $ac_n "(cached) $ac_c" 1>&6
12304else
12305 cat > conftest.$ac_ext <<EOF
421173e6 12306#line 12307 "configure"
38bd7296
BK
12307#include "confdefs.h"
12308/* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char $ac_func(); below. */
12310#include <assert.h>
12311/* Override any gcc2 internal prototype to avoid an error. */
12312/* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314char $ac_func();
12315
12316int main() {
12317
12318/* The GNU C library defines this for functions which it implements
12319 to always fail with ENOSYS. Some functions are actually named
12320 something starting with __ and the normal name is an alias. */
12321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12322choke me
12323#else
12324$ac_func();
12325#endif
12326
12327; return 0; }
12328EOF
421173e6 12329if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12330 rm -rf conftest*
12331 eval "ac_cv_func_$ac_func=yes"
12332else
12333 echo "configure: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 rm -rf conftest*
12336 eval "ac_cv_func_$ac_func=no"
12337fi
12338rm -f conftest*
12339fi
12340
12341if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12342 echo "$ac_t""yes" 1>&6
12343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12344 cat >> confdefs.h <<EOF
12345#define $ac_tr_func 1
12346EOF
12347
12348else
12349 echo "$ac_t""no" 1>&6
12350fi
12351done
12352
12353 fi
12354
12355
421173e6
PE
12356 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12357echo "configure:12358: checking for _fmodf declaration" >&5
12358 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360else
38bd7296 12361
421173e6
PE
12362
12363 ac_ext=C
38bd7296
BK
12364# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12365ac_cpp='$CXXCPP $CPPFLAGS'
12366ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12367ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12368cross_compiling=$ac_cv_prog_cxx_cross
12369
421173e6
PE
12370 cat > conftest.$ac_ext <<EOF
12371#line 12372 "configure"
38bd7296
BK
12372#include "confdefs.h"
12373#include <math.h>
12374int main() {
12375 _fmodf(0, 0);
12376; return 0; }
12377EOF
421173e6 12378if { (eval echo configure:12379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12379 rm -rf conftest*
421173e6 12380 glibcpp_cv_func__fmodf_use=yes
38bd7296
BK
12381else
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 rm -rf conftest*
421173e6 12385 glibcpp_cv_func__fmodf_use=no
38bd7296
BK
12386fi
12387rm -f conftest*
421173e6 12388 ac_ext=c
38bd7296
BK
12389# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12390ac_cpp='$CPP $CPPFLAGS'
12391ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12392ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12393cross_compiling=$ac_cv_prog_cc_cross
12394
421173e6
PE
12395
12396fi
12397
12398 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12399 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
38bd7296
BK
12400 for ac_func in _fmodf
12401do
12402echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12403echo "configure:12404: checking for $ac_func" >&5
38bd7296
BK
12404if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12405 echo $ac_n "(cached) $ac_c" 1>&6
12406else
12407 cat > conftest.$ac_ext <<EOF
421173e6 12408#line 12409 "configure"
38bd7296
BK
12409#include "confdefs.h"
12410/* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func(); below. */
12412#include <assert.h>
12413/* Override any gcc2 internal prototype to avoid an error. */
12414/* We use char because int might match the return type of a gcc2
12415 builtin and then its argument prototype would still apply. */
12416char $ac_func();
12417
12418int main() {
12419
12420/* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12424choke me
12425#else
12426$ac_func();
12427#endif
12428
12429; return 0; }
12430EOF
421173e6 12431if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12432 rm -rf conftest*
12433 eval "ac_cv_func_$ac_func=yes"
12434else
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 rm -rf conftest*
12438 eval "ac_cv_func_$ac_func=no"
12439fi
12440rm -f conftest*
12441fi
12442
12443if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12444 echo "$ac_t""yes" 1>&6
12445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12446 cat >> confdefs.h <<EOF
12447#define $ac_tr_func 1
12448EOF
12449
12450else
12451 echo "$ac_t""no" 1>&6
12452fi
12453done
12454
12455 fi
12456
12457
421173e6
PE
12458 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12459echo "configure:12460: checking for _frexpf declaration" >&5
12460 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12461 echo $ac_n "(cached) $ac_c" 1>&6
12462else
38bd7296 12463
421173e6
PE
12464
12465 ac_ext=C
38bd7296
BK
12466# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12467ac_cpp='$CXXCPP $CPPFLAGS'
12468ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12469ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12470cross_compiling=$ac_cv_prog_cxx_cross
12471
421173e6
PE
12472 cat > conftest.$ac_ext <<EOF
12473#line 12474 "configure"
38bd7296
BK
12474#include "confdefs.h"
12475#include <math.h>
12476int main() {
12477 _frexpf(0, 0);
12478; return 0; }
12479EOF
421173e6 12480if { (eval echo configure:12481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12481 rm -rf conftest*
421173e6 12482 glibcpp_cv_func__frexpf_use=yes
38bd7296
BK
12483else
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12486 rm -rf conftest*
421173e6 12487 glibcpp_cv_func__frexpf_use=no
38bd7296
BK
12488fi
12489rm -f conftest*
421173e6 12490 ac_ext=c
38bd7296
BK
12491# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12492ac_cpp='$CPP $CPPFLAGS'
12493ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12494ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12495cross_compiling=$ac_cv_prog_cc_cross
12496
421173e6
PE
12497
12498fi
12499
12500 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
12501 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
38bd7296
BK
12502 for ac_func in _frexpf
12503do
12504echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12505echo "configure:12506: checking for $ac_func" >&5
38bd7296
BK
12506if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12507 echo $ac_n "(cached) $ac_c" 1>&6
12508else
12509 cat > conftest.$ac_ext <<EOF
421173e6 12510#line 12511 "configure"
38bd7296
BK
12511#include "confdefs.h"
12512/* System header to define __stub macros and hopefully few prototypes,
12513 which can conflict with char $ac_func(); below. */
12514#include <assert.h>
12515/* Override any gcc2 internal prototype to avoid an error. */
12516/* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12518char $ac_func();
12519
12520int main() {
12521
12522/* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12526choke me
12527#else
12528$ac_func();
12529#endif
12530
12531; return 0; }
12532EOF
421173e6 12533if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12534 rm -rf conftest*
12535 eval "ac_cv_func_$ac_func=yes"
12536else
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 rm -rf conftest*
12540 eval "ac_cv_func_$ac_func=no"
12541fi
12542rm -f conftest*
12543fi
12544
12545if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12548 cat >> confdefs.h <<EOF
12549#define $ac_tr_func 1
12550EOF
12551
12552else
12553 echo "$ac_t""no" 1>&6
12554fi
12555done
12556
12557 fi
12558
12559
421173e6
PE
12560 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
12561echo "configure:12562: checking for _ldexpf declaration" >&5
12562 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12564else
38bd7296 12565
421173e6
PE
12566
12567 ac_ext=C
38bd7296
BK
12568# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12569ac_cpp='$CXXCPP $CPPFLAGS'
12570ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12571ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12572cross_compiling=$ac_cv_prog_cxx_cross
12573
421173e6
PE
12574 cat > conftest.$ac_ext <<EOF
12575#line 12576 "configure"
38bd7296
BK
12576#include "confdefs.h"
12577#include <math.h>
12578int main() {
12579 _ldexpf(0, 0);
12580; return 0; }
12581EOF
421173e6 12582if { (eval echo configure:12583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12583 rm -rf conftest*
421173e6 12584 glibcpp_cv_func__ldexpf_use=yes
38bd7296
BK
12585else
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 rm -rf conftest*
421173e6 12589 glibcpp_cv_func__ldexpf_use=no
38bd7296
BK
12590fi
12591rm -f conftest*
421173e6 12592 ac_ext=c
38bd7296
BK
12593# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12594ac_cpp='$CPP $CPPFLAGS'
12595ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12596ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12597cross_compiling=$ac_cv_prog_cc_cross
12598
421173e6
PE
12599
12600fi
12601
12602 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
12603 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
38bd7296
BK
12604 for ac_func in _ldexpf
12605do
12606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12607echo "configure:12608: checking for $ac_func" >&5
38bd7296
BK
12608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12609 echo $ac_n "(cached) $ac_c" 1>&6
12610else
12611 cat > conftest.$ac_ext <<EOF
421173e6 12612#line 12613 "configure"
38bd7296
BK
12613#include "confdefs.h"
12614/* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func(); below. */
12616#include <assert.h>
12617/* Override any gcc2 internal prototype to avoid an error. */
12618/* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12620char $ac_func();
12621
12622int main() {
12623
12624/* The GNU C library defines this for functions which it implements
12625 to always fail with ENOSYS. Some functions are actually named
12626 something starting with __ and the normal name is an alias. */
12627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12628choke me
12629#else
12630$ac_func();
12631#endif
12632
12633; return 0; }
12634EOF
421173e6 12635if { (eval echo configure:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12636 rm -rf conftest*
12637 eval "ac_cv_func_$ac_func=yes"
12638else
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 rm -rf conftest*
12642 eval "ac_cv_func_$ac_func=no"
12643fi
12644rm -f conftest*
12645fi
12646
12647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12648 echo "$ac_t""yes" 1>&6
12649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12650 cat >> confdefs.h <<EOF
12651#define $ac_tr_func 1
12652EOF
12653
12654else
12655 echo "$ac_t""no" 1>&6
12656fi
12657done
12658
12659 fi
12660
12661
421173e6
PE
12662 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12663echo "configure:12664: checking for _logf declaration" >&5
12664 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666else
38bd7296 12667
421173e6
PE
12668
12669 ac_ext=C
38bd7296
BK
12670# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12671ac_cpp='$CXXCPP $CPPFLAGS'
12672ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12673ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12674cross_compiling=$ac_cv_prog_cxx_cross
12675
421173e6
PE
12676 cat > conftest.$ac_ext <<EOF
12677#line 12678 "configure"
38bd7296
BK
12678#include "confdefs.h"
12679#include <math.h>
12680int main() {
12681 _logf(0);
12682; return 0; }
12683EOF
421173e6 12684if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12685 rm -rf conftest*
421173e6 12686 glibcpp_cv_func__logf_use=yes
38bd7296
BK
12687else
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12690 rm -rf conftest*
421173e6 12691 glibcpp_cv_func__logf_use=no
38bd7296
BK
12692fi
12693rm -f conftest*
421173e6 12694 ac_ext=c
38bd7296
BK
12695# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12696ac_cpp='$CPP $CPPFLAGS'
12697ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12698ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12699cross_compiling=$ac_cv_prog_cc_cross
12700
421173e6
PE
12701
12702fi
12703
12704 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12705 if test x$glibcpp_cv_func__logf_use = x"yes"; then
38bd7296
BK
12706 for ac_func in _logf
12707do
12708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12709echo "configure:12710: checking for $ac_func" >&5
38bd7296
BK
12710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12711 echo $ac_n "(cached) $ac_c" 1>&6
12712else
12713 cat > conftest.$ac_ext <<EOF
421173e6 12714#line 12715 "configure"
38bd7296
BK
12715#include "confdefs.h"
12716/* System header to define __stub macros and hopefully few prototypes,
12717 which can conflict with char $ac_func(); below. */
12718#include <assert.h>
12719/* Override any gcc2 internal prototype to avoid an error. */
12720/* We use char because int might match the return type of a gcc2
12721 builtin and then its argument prototype would still apply. */
12722char $ac_func();
12723
12724int main() {
12725
12726/* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730choke me
12731#else
12732$ac_func();
12733#endif
12734
12735; return 0; }
12736EOF
421173e6 12737if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12738 rm -rf conftest*
12739 eval "ac_cv_func_$ac_func=yes"
12740else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 eval "ac_cv_func_$ac_func=no"
12745fi
12746rm -f conftest*
12747fi
12748
12749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12750 echo "$ac_t""yes" 1>&6
12751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12752 cat >> confdefs.h <<EOF
12753#define $ac_tr_func 1
12754EOF
12755
12756else
12757 echo "$ac_t""no" 1>&6
12758fi
12759done
12760
12761 fi
12762
12763
421173e6
PE
12764 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12765echo "configure:12766: checking for _log10f declaration" >&5
12766 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768else
38bd7296 12769
421173e6
PE
12770
12771 ac_ext=C
38bd7296
BK
12772# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12773ac_cpp='$CXXCPP $CPPFLAGS'
12774ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12775ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12776cross_compiling=$ac_cv_prog_cxx_cross
12777
421173e6
PE
12778 cat > conftest.$ac_ext <<EOF
12779#line 12780 "configure"
38bd7296
BK
12780#include "confdefs.h"
12781#include <math.h>
12782int main() {
12783 _log10f(0);
12784; return 0; }
12785EOF
421173e6 12786if { (eval echo configure:12787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12787 rm -rf conftest*
421173e6 12788 glibcpp_cv_func__log10f_use=yes
38bd7296
BK
12789else
12790 echo "configure: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12792 rm -rf conftest*
421173e6 12793 glibcpp_cv_func__log10f_use=no
38bd7296
BK
12794fi
12795rm -f conftest*
421173e6 12796 ac_ext=c
38bd7296
BK
12797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12801cross_compiling=$ac_cv_prog_cc_cross
12802
421173e6
PE
12803
12804fi
12805
12806 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12807 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
38bd7296
BK
12808 for ac_func in _log10f
12809do
12810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12811echo "configure:12812: checking for $ac_func" >&5
38bd7296
BK
12812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814else
12815 cat > conftest.$ac_ext <<EOF
421173e6 12816#line 12817 "configure"
38bd7296
BK
12817#include "confdefs.h"
12818/* System header to define __stub macros and hopefully few prototypes,
12819 which can conflict with char $ac_func(); below. */
12820#include <assert.h>
12821/* Override any gcc2 internal prototype to avoid an error. */
12822/* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12824char $ac_func();
12825
12826int main() {
12827
12828/* The GNU C library defines this for functions which it implements
12829 to always fail with ENOSYS. Some functions are actually named
12830 something starting with __ and the normal name is an alias. */
12831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12832choke me
12833#else
12834$ac_func();
12835#endif
12836
12837; return 0; }
12838EOF
421173e6 12839if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12840 rm -rf conftest*
12841 eval "ac_cv_func_$ac_func=yes"
12842else
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 rm -rf conftest*
12846 eval "ac_cv_func_$ac_func=no"
12847fi
12848rm -f conftest*
12849fi
12850
12851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12852 echo "$ac_t""yes" 1>&6
12853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12854 cat >> confdefs.h <<EOF
12855#define $ac_tr_func 1
12856EOF
12857
12858else
12859 echo "$ac_t""no" 1>&6
12860fi
12861done
12862
12863 fi
12864
12865
421173e6
PE
12866 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12867echo "configure:12868: checking for _modff declaration" >&5
12868 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
12870else
38bd7296 12871
421173e6
PE
12872
12873 ac_ext=C
38bd7296
BK
12874# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12875ac_cpp='$CXXCPP $CPPFLAGS'
12876ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12877ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12878cross_compiling=$ac_cv_prog_cxx_cross
12879
421173e6
PE
12880 cat > conftest.$ac_ext <<EOF
12881#line 12882 "configure"
38bd7296
BK
12882#include "confdefs.h"
12883#include <math.h>
12884int main() {
12885 _modff(0, 0);
12886; return 0; }
12887EOF
421173e6 12888if { (eval echo configure:12889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12889 rm -rf conftest*
421173e6 12890 glibcpp_cv_func__modff_use=yes
38bd7296
BK
12891else
12892 echo "configure: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894 rm -rf conftest*
421173e6 12895 glibcpp_cv_func__modff_use=no
38bd7296
BK
12896fi
12897rm -f conftest*
421173e6 12898 ac_ext=c
38bd7296
BK
12899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12900ac_cpp='$CPP $CPPFLAGS'
12901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12903cross_compiling=$ac_cv_prog_cc_cross
12904
421173e6
PE
12905
12906fi
12907
12908 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12909 if test x$glibcpp_cv_func__modff_use = x"yes"; then
38bd7296
BK
12910 for ac_func in _modff
12911do
12912echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 12913echo "configure:12914: checking for $ac_func" >&5
38bd7296
BK
12914if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12915 echo $ac_n "(cached) $ac_c" 1>&6
12916else
12917 cat > conftest.$ac_ext <<EOF
421173e6 12918#line 12919 "configure"
38bd7296
BK
12919#include "confdefs.h"
12920/* System header to define __stub macros and hopefully few prototypes,
12921 which can conflict with char $ac_func(); below. */
12922#include <assert.h>
12923/* Override any gcc2 internal prototype to avoid an error. */
12924/* We use char because int might match the return type of a gcc2
12925 builtin and then its argument prototype would still apply. */
12926char $ac_func();
12927
12928int main() {
12929
12930/* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934choke me
12935#else
12936$ac_func();
12937#endif
12938
12939; return 0; }
12940EOF
421173e6 12941if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
12942 rm -rf conftest*
12943 eval "ac_cv_func_$ac_func=yes"
12944else
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 rm -rf conftest*
12948 eval "ac_cv_func_$ac_func=no"
12949fi
12950rm -f conftest*
12951fi
12952
12953if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12954 echo "$ac_t""yes" 1>&6
12955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12956 cat >> confdefs.h <<EOF
12957#define $ac_tr_func 1
12958EOF
12959
12960else
12961 echo "$ac_t""no" 1>&6
12962fi
12963done
12964
12965 fi
12966
12967
421173e6
PE
12968 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12969echo "configure:12970: checking for _powf declaration" >&5
12970 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12971 echo $ac_n "(cached) $ac_c" 1>&6
12972else
38bd7296 12973
421173e6
PE
12974
12975 ac_ext=C
38bd7296
BK
12976# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12977ac_cpp='$CXXCPP $CPPFLAGS'
12978ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12979ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12980cross_compiling=$ac_cv_prog_cxx_cross
12981
421173e6
PE
12982 cat > conftest.$ac_ext <<EOF
12983#line 12984 "configure"
38bd7296
BK
12984#include "confdefs.h"
12985#include <math.h>
12986int main() {
12987 _powf(0, 0);
12988; return 0; }
12989EOF
421173e6 12990if { (eval echo configure:12991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 12991 rm -rf conftest*
421173e6 12992 glibcpp_cv_func__powf_use=yes
38bd7296
BK
12993else
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12996 rm -rf conftest*
421173e6 12997 glibcpp_cv_func__powf_use=no
38bd7296
BK
12998fi
12999rm -f conftest*
421173e6 13000 ac_ext=c
38bd7296
BK
13001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13002ac_cpp='$CPP $CPPFLAGS'
13003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13005cross_compiling=$ac_cv_prog_cc_cross
13006
421173e6
PE
13007
13008fi
13009
13010 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
13011 if test x$glibcpp_cv_func__powf_use = x"yes"; then
38bd7296
BK
13012 for ac_func in _powf
13013do
13014echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13015echo "configure:13016: checking for $ac_func" >&5
38bd7296
BK
13016if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13017 echo $ac_n "(cached) $ac_c" 1>&6
13018else
13019 cat > conftest.$ac_ext <<EOF
421173e6 13020#line 13021 "configure"
38bd7296
BK
13021#include "confdefs.h"
13022/* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char $ac_func(); below. */
13024#include <assert.h>
13025/* Override any gcc2 internal prototype to avoid an error. */
13026/* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13028char $ac_func();
13029
13030int main() {
13031
13032/* The GNU C library defines this for functions which it implements
13033 to always fail with ENOSYS. Some functions are actually named
13034 something starting with __ and the normal name is an alias. */
13035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13036choke me
13037#else
13038$ac_func();
13039#endif
13040
13041; return 0; }
13042EOF
421173e6 13043if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13044 rm -rf conftest*
13045 eval "ac_cv_func_$ac_func=yes"
13046else
13047 echo "configure: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13049 rm -rf conftest*
13050 eval "ac_cv_func_$ac_func=no"
13051fi
13052rm -f conftest*
13053fi
13054
13055if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13056 echo "$ac_t""yes" 1>&6
13057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13058 cat >> confdefs.h <<EOF
13059#define $ac_tr_func 1
13060EOF
13061
13062else
13063 echo "$ac_t""no" 1>&6
13064fi
13065done
13066
13067 fi
13068
13069
421173e6
PE
13070 echo $ac_n "checking for _sinf declaration""... $ac_c" 1>&6
13071echo "configure:13072: checking for _sinf declaration" >&5
13072 if eval "test \"`echo '$''{'glibcpp_cv_func__sinf_use'+set}'`\" = set"; then
13073 echo $ac_n "(cached) $ac_c" 1>&6
13074else
38bd7296 13075
421173e6
PE
13076
13077 ac_ext=C
38bd7296
BK
13078# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13079ac_cpp='$CXXCPP $CPPFLAGS'
13080ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13081ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13082cross_compiling=$ac_cv_prog_cxx_cross
13083
421173e6
PE
13084 cat > conftest.$ac_ext <<EOF
13085#line 13086 "configure"
38bd7296
BK
13086#include "confdefs.h"
13087#include <math.h>
13088int main() {
13089 _sinf(0);
13090; return 0; }
13091EOF
421173e6 13092if { (eval echo configure:13093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13093 rm -rf conftest*
421173e6 13094 glibcpp_cv_func__sinf_use=yes
38bd7296
BK
13095else
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13098 rm -rf conftest*
421173e6 13099 glibcpp_cv_func__sinf_use=no
38bd7296
BK
13100fi
13101rm -f conftest*
421173e6 13102 ac_ext=c
38bd7296
BK
13103# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13104ac_cpp='$CPP $CPPFLAGS'
13105ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13106ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13107cross_compiling=$ac_cv_prog_cc_cross
13108
421173e6
PE
13109
13110fi
13111
13112 echo "$ac_t""$glibcpp_cv_func__sinf_use" 1>&6
13113 if test x$glibcpp_cv_func__sinf_use = x"yes"; then
38bd7296
BK
13114 for ac_func in _sinf
13115do
13116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13117echo "configure:13118: checking for $ac_func" >&5
38bd7296
BK
13118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13119 echo $ac_n "(cached) $ac_c" 1>&6
13120else
13121 cat > conftest.$ac_ext <<EOF
421173e6 13122#line 13123 "configure"
38bd7296
BK
13123#include "confdefs.h"
13124/* System header to define __stub macros and hopefully few prototypes,
13125 which can conflict with char $ac_func(); below. */
13126#include <assert.h>
13127/* Override any gcc2 internal prototype to avoid an error. */
13128/* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13130char $ac_func();
13131
13132int main() {
13133
13134/* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13138choke me
13139#else
13140$ac_func();
13141#endif
13142
13143; return 0; }
13144EOF
421173e6 13145if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13146 rm -rf conftest*
13147 eval "ac_cv_func_$ac_func=yes"
13148else
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 eval "ac_cv_func_$ac_func=no"
13153fi
13154rm -f conftest*
13155fi
13156
13157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13158 echo "$ac_t""yes" 1>&6
13159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13160 cat >> confdefs.h <<EOF
13161#define $ac_tr_func 1
13162EOF
13163
13164else
13165 echo "$ac_t""no" 1>&6
13166fi
13167done
13168
13169 fi
13170
13171
421173e6
PE
13172 echo $ac_n "checking for _sinhf declaration""... $ac_c" 1>&6
13173echo "configure:13174: checking for _sinhf declaration" >&5
13174 if eval "test \"`echo '$''{'glibcpp_cv_func__sinhf_use'+set}'`\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13176else
38bd7296 13177
421173e6
PE
13178
13179 ac_ext=C
38bd7296
BK
13180# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13181ac_cpp='$CXXCPP $CPPFLAGS'
13182ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13183ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13184cross_compiling=$ac_cv_prog_cxx_cross
13185
421173e6
PE
13186 cat > conftest.$ac_ext <<EOF
13187#line 13188 "configure"
38bd7296
BK
13188#include "confdefs.h"
13189#include <math.h>
13190int main() {
13191 _sinhf(0);
13192; return 0; }
13193EOF
421173e6 13194if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13195 rm -rf conftest*
421173e6 13196 glibcpp_cv_func__sinhf_use=yes
38bd7296
BK
13197else
13198 echo "configure: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13200 rm -rf conftest*
421173e6 13201 glibcpp_cv_func__sinhf_use=no
38bd7296
BK
13202fi
13203rm -f conftest*
421173e6 13204 ac_ext=c
38bd7296
BK
13205# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13206ac_cpp='$CPP $CPPFLAGS'
13207ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13208ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13209cross_compiling=$ac_cv_prog_cc_cross
13210
421173e6
PE
13211
13212fi
13213
13214 echo "$ac_t""$glibcpp_cv_func__sinhf_use" 1>&6
13215 if test x$glibcpp_cv_func__sinhf_use = x"yes"; then
38bd7296
BK
13216 for ac_func in _sinhf
13217do
13218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13219echo "configure:13220: checking for $ac_func" >&5
38bd7296
BK
13220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13221 echo $ac_n "(cached) $ac_c" 1>&6
13222else
13223 cat > conftest.$ac_ext <<EOF
421173e6 13224#line 13225 "configure"
38bd7296
BK
13225#include "confdefs.h"
13226/* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char $ac_func(); below. */
13228#include <assert.h>
13229/* Override any gcc2 internal prototype to avoid an error. */
13230/* We use char because int might match the return type of a gcc2
13231 builtin and then its argument prototype would still apply. */
13232char $ac_func();
13233
13234int main() {
13235
13236/* The GNU C library defines this for functions which it implements
13237 to always fail with ENOSYS. Some functions are actually named
13238 something starting with __ and the normal name is an alias. */
13239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13240choke me
13241#else
13242$ac_func();
13243#endif
13244
13245; return 0; }
13246EOF
421173e6 13247if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13248 rm -rf conftest*
13249 eval "ac_cv_func_$ac_func=yes"
13250else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -rf conftest*
13254 eval "ac_cv_func_$ac_func=no"
13255fi
13256rm -f conftest*
13257fi
13258
13259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13262 cat >> confdefs.h <<EOF
13263#define $ac_tr_func 1
13264EOF
13265
13266else
13267 echo "$ac_t""no" 1>&6
13268fi
13269done
13270
13271 fi
13272
13273
421173e6
PE
13274 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
13275echo "configure:13276: checking for _sqrtf declaration" >&5
13276 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13278else
38bd7296 13279
421173e6
PE
13280
13281 ac_ext=C
38bd7296
BK
13282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13283ac_cpp='$CXXCPP $CPPFLAGS'
13284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13286cross_compiling=$ac_cv_prog_cxx_cross
13287
421173e6
PE
13288 cat > conftest.$ac_ext <<EOF
13289#line 13290 "configure"
38bd7296
BK
13290#include "confdefs.h"
13291#include <math.h>
13292int main() {
13293 _sqrtf(0);
13294; return 0; }
13295EOF
421173e6 13296if { (eval echo configure:13297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13297 rm -rf conftest*
421173e6 13298 glibcpp_cv_func__sqrtf_use=yes
38bd7296
BK
13299else
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 rm -rf conftest*
421173e6 13303 glibcpp_cv_func__sqrtf_use=no
38bd7296
BK
13304fi
13305rm -f conftest*
421173e6 13306 ac_ext=c
38bd7296
BK
13307# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13308ac_cpp='$CPP $CPPFLAGS'
13309ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13310ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13311cross_compiling=$ac_cv_prog_cc_cross
13312
421173e6
PE
13313
13314fi
13315
13316 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
13317 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
38bd7296
BK
13318 for ac_func in _sqrtf
13319do
13320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13321echo "configure:13322: checking for $ac_func" >&5
38bd7296
BK
13322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13323 echo $ac_n "(cached) $ac_c" 1>&6
13324else
13325 cat > conftest.$ac_ext <<EOF
421173e6 13326#line 13327 "configure"
38bd7296
BK
13327#include "confdefs.h"
13328/* System header to define __stub macros and hopefully few prototypes,
13329 which can conflict with char $ac_func(); below. */
13330#include <assert.h>
13331/* Override any gcc2 internal prototype to avoid an error. */
13332/* We use char because int might match the return type of a gcc2
13333 builtin and then its argument prototype would still apply. */
13334char $ac_func();
13335
13336int main() {
13337
13338/* The GNU C library defines this for functions which it implements
13339 to always fail with ENOSYS. Some functions are actually named
13340 something starting with __ and the normal name is an alias. */
13341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13342choke me
13343#else
13344$ac_func();
13345#endif
13346
13347; return 0; }
13348EOF
421173e6 13349if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13350 rm -rf conftest*
13351 eval "ac_cv_func_$ac_func=yes"
13352else
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 rm -rf conftest*
13356 eval "ac_cv_func_$ac_func=no"
13357fi
13358rm -f conftest*
13359fi
13360
13361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13362 echo "$ac_t""yes" 1>&6
13363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13364 cat >> confdefs.h <<EOF
13365#define $ac_tr_func 1
13366EOF
13367
13368else
13369 echo "$ac_t""no" 1>&6
13370fi
13371done
13372
13373 fi
13374
13375
421173e6
PE
13376 echo $ac_n "checking for _tanf declaration""... $ac_c" 1>&6
13377echo "configure:13378: checking for _tanf declaration" >&5
13378 if eval "test \"`echo '$''{'glibcpp_cv_func__tanf_use'+set}'`\" = set"; then
13379 echo $ac_n "(cached) $ac_c" 1>&6
13380else
38bd7296 13381
421173e6
PE
13382
13383 ac_ext=C
38bd7296
BK
13384# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13385ac_cpp='$CXXCPP $CPPFLAGS'
13386ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13387ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13388cross_compiling=$ac_cv_prog_cxx_cross
13389
421173e6
PE
13390 cat > conftest.$ac_ext <<EOF
13391#line 13392 "configure"
38bd7296
BK
13392#include "confdefs.h"
13393#include <math.h>
13394int main() {
13395 _tanf(0);
13396; return 0; }
13397EOF
421173e6 13398if { (eval echo configure:13399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13399 rm -rf conftest*
421173e6 13400 glibcpp_cv_func__tanf_use=yes
38bd7296
BK
13401else
13402 echo "configure: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 rm -rf conftest*
421173e6 13405 glibcpp_cv_func__tanf_use=no
38bd7296
BK
13406fi
13407rm -f conftest*
421173e6 13408 ac_ext=c
38bd7296
BK
13409# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13410ac_cpp='$CPP $CPPFLAGS'
13411ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13412ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13413cross_compiling=$ac_cv_prog_cc_cross
13414
421173e6
PE
13415
13416fi
13417
13418 echo "$ac_t""$glibcpp_cv_func__tanf_use" 1>&6
13419 if test x$glibcpp_cv_func__tanf_use = x"yes"; then
38bd7296
BK
13420 for ac_func in _tanf
13421do
13422echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13423echo "configure:13424: checking for $ac_func" >&5
38bd7296
BK
13424if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13425 echo $ac_n "(cached) $ac_c" 1>&6
13426else
13427 cat > conftest.$ac_ext <<EOF
421173e6 13428#line 13429 "configure"
38bd7296
BK
13429#include "confdefs.h"
13430/* System header to define __stub macros and hopefully few prototypes,
13431 which can conflict with char $ac_func(); below. */
13432#include <assert.h>
13433/* Override any gcc2 internal prototype to avoid an error. */
13434/* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13436char $ac_func();
13437
13438int main() {
13439
13440/* The GNU C library defines this for functions which it implements
13441 to always fail with ENOSYS. Some functions are actually named
13442 something starting with __ and the normal name is an alias. */
13443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13444choke me
13445#else
13446$ac_func();
13447#endif
13448
13449; return 0; }
13450EOF
421173e6 13451if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13452 rm -rf conftest*
13453 eval "ac_cv_func_$ac_func=yes"
13454else
13455 echo "configure: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 rm -rf conftest*
13458 eval "ac_cv_func_$ac_func=no"
13459fi
13460rm -f conftest*
13461fi
13462
13463if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13464 echo "$ac_t""yes" 1>&6
13465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13466 cat >> confdefs.h <<EOF
13467#define $ac_tr_func 1
13468EOF
13469
13470else
13471 echo "$ac_t""no" 1>&6
13472fi
13473done
13474
13475 fi
13476
13477
421173e6
PE
13478 echo $ac_n "checking for _tanhf declaration""... $ac_c" 1>&6
13479echo "configure:13480: checking for _tanhf declaration" >&5
13480 if eval "test \"`echo '$''{'glibcpp_cv_func__tanhf_use'+set}'`\" = set"; then
13481 echo $ac_n "(cached) $ac_c" 1>&6
13482else
38bd7296 13483
421173e6
PE
13484
13485 ac_ext=C
38bd7296
BK
13486# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13487ac_cpp='$CXXCPP $CPPFLAGS'
13488ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13489ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13490cross_compiling=$ac_cv_prog_cxx_cross
13491
421173e6
PE
13492 cat > conftest.$ac_ext <<EOF
13493#line 13494 "configure"
38bd7296
BK
13494#include "confdefs.h"
13495#include <math.h>
13496int main() {
13497 _tanhf(0);
13498; return 0; }
13499EOF
421173e6 13500if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13501 rm -rf conftest*
421173e6 13502 glibcpp_cv_func__tanhf_use=yes
38bd7296
BK
13503else
13504 echo "configure: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 rm -rf conftest*
421173e6 13507 glibcpp_cv_func__tanhf_use=no
38bd7296
BK
13508fi
13509rm -f conftest*
421173e6 13510 ac_ext=c
38bd7296
BK
13511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13512ac_cpp='$CPP $CPPFLAGS'
13513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13515cross_compiling=$ac_cv_prog_cc_cross
13516
421173e6
PE
13517
13518fi
13519
13520 echo "$ac_t""$glibcpp_cv_func__tanhf_use" 1>&6
13521 if test x$glibcpp_cv_func__tanhf_use = x"yes"; then
38bd7296
BK
13522 for ac_func in _tanhf
13523do
13524echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13525echo "configure:13526: checking for $ac_func" >&5
38bd7296
BK
13526if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13527 echo $ac_n "(cached) $ac_c" 1>&6
13528else
13529 cat > conftest.$ac_ext <<EOF
421173e6 13530#line 13531 "configure"
38bd7296
BK
13531#include "confdefs.h"
13532/* System header to define __stub macros and hopefully few prototypes,
13533 which can conflict with char $ac_func(); below. */
13534#include <assert.h>
13535/* Override any gcc2 internal prototype to avoid an error. */
13536/* We use char because int might match the return type of a gcc2
13537 builtin and then its argument prototype would still apply. */
13538char $ac_func();
13539
13540int main() {
13541
13542/* The GNU C library defines this for functions which it implements
13543 to always fail with ENOSYS. Some functions are actually named
13544 something starting with __ and the normal name is an alias. */
13545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13546choke me
13547#else
13548$ac_func();
13549#endif
13550
13551; return 0; }
13552EOF
421173e6 13553if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13554 rm -rf conftest*
13555 eval "ac_cv_func_$ac_func=yes"
13556else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 eval "ac_cv_func_$ac_func=no"
13561fi
13562rm -f conftest*
13563fi
13564
13565if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13566 echo "$ac_t""yes" 1>&6
13567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13568 cat >> confdefs.h <<EOF
13569#define $ac_tr_func 1
13570EOF
13571
13572else
13573 echo "$ac_t""no" 1>&6
13574fi
13575done
13576
13577 fi
13578
13579
421173e6
PE
13580 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13581echo "configure:13582: checking for _sincosf declaration" >&5
13582 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584else
38bd7296 13585
421173e6
PE
13586
13587 ac_ext=C
38bd7296
BK
13588# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13589ac_cpp='$CXXCPP $CPPFLAGS'
13590ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13591ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13592cross_compiling=$ac_cv_prog_cxx_cross
13593
421173e6
PE
13594 cat > conftest.$ac_ext <<EOF
13595#line 13596 "configure"
38bd7296
BK
13596#include "confdefs.h"
13597#include <math.h>
13598int main() {
13599 _sincosf(0, 0, 0);
13600; return 0; }
13601EOF
421173e6 13602if { (eval echo configure:13603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13603 rm -rf conftest*
421173e6 13604 glibcpp_cv_func__sincosf_use=yes
38bd7296
BK
13605else
13606 echo "configure: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13608 rm -rf conftest*
421173e6 13609 glibcpp_cv_func__sincosf_use=no
38bd7296
BK
13610fi
13611rm -f conftest*
421173e6 13612 ac_ext=c
38bd7296
BK
13613# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13614ac_cpp='$CPP $CPPFLAGS'
13615ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13616ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13617cross_compiling=$ac_cv_prog_cc_cross
13618
421173e6
PE
13619
13620fi
13621
13622 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13623 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
38bd7296
BK
13624 for ac_func in _sincosf
13625do
13626echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13627echo "configure:13628: checking for $ac_func" >&5
38bd7296
BK
13628if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13629 echo $ac_n "(cached) $ac_c" 1>&6
13630else
13631 cat > conftest.$ac_ext <<EOF
421173e6 13632#line 13633 "configure"
38bd7296
BK
13633#include "confdefs.h"
13634/* System header to define __stub macros and hopefully few prototypes,
13635 which can conflict with char $ac_func(); below. */
13636#include <assert.h>
13637/* Override any gcc2 internal prototype to avoid an error. */
13638/* We use char because int might match the return type of a gcc2
13639 builtin and then its argument prototype would still apply. */
13640char $ac_func();
13641
13642int main() {
13643
13644/* The GNU C library defines this for functions which it implements
13645 to always fail with ENOSYS. Some functions are actually named
13646 something starting with __ and the normal name is an alias. */
13647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13648choke me
13649#else
13650$ac_func();
13651#endif
13652
13653; return 0; }
13654EOF
421173e6 13655if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13656 rm -rf conftest*
13657 eval "ac_cv_func_$ac_func=yes"
13658else
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -rf conftest*
13662 eval "ac_cv_func_$ac_func=no"
13663fi
13664rm -f conftest*
13665fi
13666
13667if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13668 echo "$ac_t""yes" 1>&6
13669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13670 cat >> confdefs.h <<EOF
13671#define $ac_tr_func 1
13672EOF
13673
13674else
13675 echo "$ac_t""no" 1>&6
13676fi
13677done
13678
13679 fi
13680
13681
421173e6
PE
13682 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13683echo "configure:13684: checking for _finitef declaration" >&5
13684 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13685 echo $ac_n "(cached) $ac_c" 1>&6
13686else
38bd7296 13687
421173e6
PE
13688
13689 ac_ext=C
38bd7296
BK
13690# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13691ac_cpp='$CXXCPP $CPPFLAGS'
13692ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13693ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13694cross_compiling=$ac_cv_prog_cxx_cross
13695
421173e6
PE
13696 cat > conftest.$ac_ext <<EOF
13697#line 13698 "configure"
38bd7296
BK
13698#include "confdefs.h"
13699#include <math.h>
13700int main() {
13701 _finitef(0);
13702; return 0; }
13703EOF
421173e6 13704if { (eval echo configure:13705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13705 rm -rf conftest*
421173e6 13706 glibcpp_cv_func__finitef_use=yes
38bd7296
BK
13707else
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
421173e6 13711 glibcpp_cv_func__finitef_use=no
38bd7296
BK
13712fi
13713rm -f conftest*
421173e6 13714 ac_ext=c
38bd7296
BK
13715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13716ac_cpp='$CPP $CPPFLAGS'
13717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13719cross_compiling=$ac_cv_prog_cc_cross
13720
421173e6
PE
13721
13722fi
13723
13724 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13725 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
38bd7296
BK
13726 for ac_func in _finitef
13727do
13728echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13729echo "configure:13730: checking for $ac_func" >&5
38bd7296
BK
13730if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13731 echo $ac_n "(cached) $ac_c" 1>&6
13732else
13733 cat > conftest.$ac_ext <<EOF
421173e6 13734#line 13735 "configure"
38bd7296
BK
13735#include "confdefs.h"
13736/* System header to define __stub macros and hopefully few prototypes,
13737 which can conflict with char $ac_func(); below. */
13738#include <assert.h>
13739/* Override any gcc2 internal prototype to avoid an error. */
13740/* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742char $ac_func();
13743
13744int main() {
13745
13746/* The GNU C library defines this for functions which it implements
13747 to always fail with ENOSYS. Some functions are actually named
13748 something starting with __ and the normal name is an alias. */
13749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13750choke me
13751#else
13752$ac_func();
13753#endif
13754
13755; return 0; }
13756EOF
421173e6 13757if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13758 rm -rf conftest*
13759 eval "ac_cv_func_$ac_func=yes"
13760else
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 eval "ac_cv_func_$ac_func=no"
13765fi
13766rm -f conftest*
13767fi
13768
13769if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13770 echo "$ac_t""yes" 1>&6
13771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13772 cat >> confdefs.h <<EOF
13773#define $ac_tr_func 1
13774EOF
13775
13776else
13777 echo "$ac_t""no" 1>&6
13778fi
13779done
13780
13781 fi
13782
13783
13784
421173e6
PE
13785 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13786echo "configure:13787: checking for _isnanl declaration" >&5
13787 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789else
38bd7296 13790
421173e6
PE
13791
13792 ac_ext=C
38bd7296
BK
13793# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13794ac_cpp='$CXXCPP $CPPFLAGS'
13795ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13796ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13797cross_compiling=$ac_cv_prog_cxx_cross
13798
421173e6
PE
13799 cat > conftest.$ac_ext <<EOF
13800#line 13801 "configure"
38bd7296
BK
13801#include "confdefs.h"
13802#include <math.h>
13803int main() {
13804 _isnanl(0);
13805; return 0; }
13806EOF
421173e6 13807if { (eval echo configure:13808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13808 rm -rf conftest*
421173e6 13809 glibcpp_cv_func__isnanl_use=yes
38bd7296
BK
13810else
13811 echo "configure: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 rm -rf conftest*
421173e6 13814 glibcpp_cv_func__isnanl_use=no
38bd7296
BK
13815fi
13816rm -f conftest*
421173e6 13817 ac_ext=c
38bd7296
BK
13818# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13819ac_cpp='$CPP $CPPFLAGS'
13820ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13821ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13822cross_compiling=$ac_cv_prog_cc_cross
13823
421173e6
PE
13824
13825fi
13826
13827 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13828 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
38bd7296
BK
13829 for ac_func in _isnanl
13830do
13831echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13832echo "configure:13833: checking for $ac_func" >&5
38bd7296
BK
13833if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13835else
13836 cat > conftest.$ac_ext <<EOF
421173e6 13837#line 13838 "configure"
38bd7296
BK
13838#include "confdefs.h"
13839/* System header to define __stub macros and hopefully few prototypes,
13840 which can conflict with char $ac_func(); below. */
13841#include <assert.h>
13842/* Override any gcc2 internal prototype to avoid an error. */
13843/* We use char because int might match the return type of a gcc2
13844 builtin and then its argument prototype would still apply. */
13845char $ac_func();
13846
13847int main() {
13848
13849/* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13853choke me
13854#else
13855$ac_func();
13856#endif
13857
13858; return 0; }
13859EOF
421173e6 13860if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13861 rm -rf conftest*
13862 eval "ac_cv_func_$ac_func=yes"
13863else
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 rm -rf conftest*
13867 eval "ac_cv_func_$ac_func=no"
13868fi
13869rm -f conftest*
13870fi
13871
13872if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13873 echo "$ac_t""yes" 1>&6
13874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13875 cat >> confdefs.h <<EOF
13876#define $ac_tr_func 1
13877EOF
13878
13879else
13880 echo "$ac_t""no" 1>&6
13881fi
13882done
13883
13884 fi
13885
13886
421173e6
PE
13887 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13888echo "configure:13889: checking for _isinfl declaration" >&5
13889 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13891else
38bd7296 13892
421173e6
PE
13893
13894 ac_ext=C
38bd7296
BK
13895# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13896ac_cpp='$CXXCPP $CPPFLAGS'
13897ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13898ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13899cross_compiling=$ac_cv_prog_cxx_cross
13900
421173e6
PE
13901 cat > conftest.$ac_ext <<EOF
13902#line 13903 "configure"
38bd7296
BK
13903#include "confdefs.h"
13904#include <math.h>
13905int main() {
13906 _isinfl(0);
13907; return 0; }
13908EOF
421173e6 13909if { (eval echo configure:13910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 13910 rm -rf conftest*
421173e6 13911 glibcpp_cv_func__isinfl_use=yes
38bd7296
BK
13912else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
421173e6 13916 glibcpp_cv_func__isinfl_use=no
38bd7296
BK
13917fi
13918rm -f conftest*
421173e6 13919 ac_ext=c
38bd7296
BK
13920# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13921ac_cpp='$CPP $CPPFLAGS'
13922ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13923ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13924cross_compiling=$ac_cv_prog_cc_cross
13925
421173e6
PE
13926
13927fi
13928
13929 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13930 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
38bd7296
BK
13931 for ac_func in _isinfl
13932do
13933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 13934echo "configure:13935: checking for $ac_func" >&5
38bd7296
BK
13935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13937else
13938 cat > conftest.$ac_ext <<EOF
421173e6 13939#line 13940 "configure"
38bd7296
BK
13940#include "confdefs.h"
13941/* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char $ac_func(); below. */
13943#include <assert.h>
13944/* Override any gcc2 internal prototype to avoid an error. */
13945/* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947char $ac_func();
13948
13949int main() {
13950
13951/* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13955choke me
13956#else
13957$ac_func();
13958#endif
13959
13960; return 0; }
13961EOF
421173e6 13962if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
13963 rm -rf conftest*
13964 eval "ac_cv_func_$ac_func=yes"
13965else
13966 echo "configure: failed program was:" >&5
13967 cat conftest.$ac_ext >&5
13968 rm -rf conftest*
13969 eval "ac_cv_func_$ac_func=no"
13970fi
13971rm -f conftest*
13972fi
13973
13974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13975 echo "$ac_t""yes" 1>&6
13976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13977 cat >> confdefs.h <<EOF
13978#define $ac_tr_func 1
13979EOF
13980
13981else
13982 echo "$ac_t""no" 1>&6
13983fi
13984done
13985
13986 fi
13987
13988
421173e6
PE
13989 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
13990echo "configure:13991: checking for _copysignl declaration" >&5
13991 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13993else
38bd7296 13994
421173e6
PE
13995
13996 ac_ext=C
38bd7296
BK
13997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13998ac_cpp='$CXXCPP $CPPFLAGS'
13999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14001cross_compiling=$ac_cv_prog_cxx_cross
14002
421173e6
PE
14003 cat > conftest.$ac_ext <<EOF
14004#line 14005 "configure"
38bd7296
BK
14005#include "confdefs.h"
14006#include <math.h>
14007int main() {
11fc1858 14008 _copysignl(0, 0);
38bd7296
BK
14009; return 0; }
14010EOF
421173e6 14011if { (eval echo configure:14012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14012 rm -rf conftest*
421173e6 14013 glibcpp_cv_func__copysignl_use=yes
38bd7296
BK
14014else
14015 echo "configure: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 rm -rf conftest*
421173e6 14018 glibcpp_cv_func__copysignl_use=no
38bd7296
BK
14019fi
14020rm -f conftest*
421173e6 14021 ac_ext=c
38bd7296
BK
14022# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14023ac_cpp='$CPP $CPPFLAGS'
14024ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14025ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14026cross_compiling=$ac_cv_prog_cc_cross
14027
421173e6
PE
14028
14029fi
14030
14031 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14032 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
38bd7296
BK
14033 for ac_func in _copysignl
14034do
14035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14036echo "configure:14037: checking for $ac_func" >&5
38bd7296
BK
14037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
14039else
14040 cat > conftest.$ac_ext <<EOF
421173e6 14041#line 14042 "configure"
38bd7296
BK
14042#include "confdefs.h"
14043/* System header to define __stub macros and hopefully few prototypes,
14044 which can conflict with char $ac_func(); below. */
14045#include <assert.h>
14046/* Override any gcc2 internal prototype to avoid an error. */
14047/* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049char $ac_func();
14050
14051int main() {
14052
14053/* The GNU C library defines this for functions which it implements
14054 to always fail with ENOSYS. Some functions are actually named
14055 something starting with __ and the normal name is an alias. */
14056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14057choke me
14058#else
14059$ac_func();
14060#endif
14061
14062; return 0; }
14063EOF
421173e6 14064if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14065 rm -rf conftest*
14066 eval "ac_cv_func_$ac_func=yes"
14067else
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 rm -rf conftest*
14071 eval "ac_cv_func_$ac_func=no"
14072fi
14073rm -f conftest*
14074fi
14075
14076if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14079 cat >> confdefs.h <<EOF
14080#define $ac_tr_func 1
14081EOF
14082
14083else
14084 echo "$ac_t""no" 1>&6
14085fi
14086done
14087
14088 fi
14089
14090
421173e6
PE
14091 echo $ac_n "checking for _acosl declaration""... $ac_c" 1>&6
14092echo "configure:14093: checking for _acosl declaration" >&5
14093 if eval "test \"`echo '$''{'glibcpp_cv_func__acosl_use'+set}'`\" = set"; then
14094 echo $ac_n "(cached) $ac_c" 1>&6
14095else
38bd7296 14096
421173e6
PE
14097
14098 ac_ext=C
38bd7296
BK
14099# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100ac_cpp='$CXXCPP $CPPFLAGS'
14101ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103cross_compiling=$ac_cv_prog_cxx_cross
14104
421173e6
PE
14105 cat > conftest.$ac_ext <<EOF
14106#line 14107 "configure"
38bd7296
BK
14107#include "confdefs.h"
14108#include <math.h>
14109int main() {
14110 _acosl(0);
14111; return 0; }
14112EOF
421173e6 14113if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14114 rm -rf conftest*
421173e6 14115 glibcpp_cv_func__acosl_use=yes
38bd7296
BK
14116else
14117 echo "configure: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 rm -rf conftest*
421173e6 14120 glibcpp_cv_func__acosl_use=no
38bd7296
BK
14121fi
14122rm -f conftest*
421173e6 14123 ac_ext=c
38bd7296
BK
14124# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14125ac_cpp='$CPP $CPPFLAGS'
14126ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14127ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14128cross_compiling=$ac_cv_prog_cc_cross
14129
421173e6
PE
14130
14131fi
14132
14133 echo "$ac_t""$glibcpp_cv_func__acosl_use" 1>&6
14134 if test x$glibcpp_cv_func__acosl_use = x"yes"; then
38bd7296
BK
14135 for ac_func in _acosl
14136do
14137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14138echo "configure:14139: checking for $ac_func" >&5
38bd7296
BK
14139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14140 echo $ac_n "(cached) $ac_c" 1>&6
14141else
14142 cat > conftest.$ac_ext <<EOF
421173e6 14143#line 14144 "configure"
38bd7296
BK
14144#include "confdefs.h"
14145/* System header to define __stub macros and hopefully few prototypes,
14146 which can conflict with char $ac_func(); below. */
14147#include <assert.h>
14148/* Override any gcc2 internal prototype to avoid an error. */
14149/* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151char $ac_func();
14152
14153int main() {
14154
14155/* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14159choke me
14160#else
14161$ac_func();
14162#endif
14163
14164; return 0; }
14165EOF
421173e6 14166if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14167 rm -rf conftest*
14168 eval "ac_cv_func_$ac_func=yes"
14169else
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 rm -rf conftest*
14173 eval "ac_cv_func_$ac_func=no"
14174fi
14175rm -f conftest*
14176fi
14177
14178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14181 cat >> confdefs.h <<EOF
14182#define $ac_tr_func 1
14183EOF
14184
14185else
14186 echo "$ac_t""no" 1>&6
14187fi
14188done
14189
14190 fi
14191
14192
421173e6
PE
14193 echo $ac_n "checking for _asinl declaration""... $ac_c" 1>&6
14194echo "configure:14195: checking for _asinl declaration" >&5
14195 if eval "test \"`echo '$''{'glibcpp_cv_func__asinl_use'+set}'`\" = set"; then
14196 echo $ac_n "(cached) $ac_c" 1>&6
14197else
38bd7296 14198
421173e6
PE
14199
14200 ac_ext=C
38bd7296
BK
14201# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202ac_cpp='$CXXCPP $CPPFLAGS'
14203ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205cross_compiling=$ac_cv_prog_cxx_cross
14206
421173e6
PE
14207 cat > conftest.$ac_ext <<EOF
14208#line 14209 "configure"
38bd7296
BK
14209#include "confdefs.h"
14210#include <math.h>
14211int main() {
14212 _asinl(0);
14213; return 0; }
14214EOF
421173e6 14215if { (eval echo configure:14216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14216 rm -rf conftest*
421173e6 14217 glibcpp_cv_func__asinl_use=yes
38bd7296
BK
14218else
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14221 rm -rf conftest*
421173e6 14222 glibcpp_cv_func__asinl_use=no
38bd7296
BK
14223fi
14224rm -f conftest*
421173e6 14225 ac_ext=c
38bd7296
BK
14226# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14227ac_cpp='$CPP $CPPFLAGS'
14228ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14229ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14230cross_compiling=$ac_cv_prog_cc_cross
14231
421173e6
PE
14232
14233fi
14234
14235 echo "$ac_t""$glibcpp_cv_func__asinl_use" 1>&6
14236 if test x$glibcpp_cv_func__asinl_use = x"yes"; then
38bd7296
BK
14237 for ac_func in _asinl
14238do
14239echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14240echo "configure:14241: checking for $ac_func" >&5
38bd7296
BK
14241if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14242 echo $ac_n "(cached) $ac_c" 1>&6
14243else
14244 cat > conftest.$ac_ext <<EOF
421173e6 14245#line 14246 "configure"
38bd7296
BK
14246#include "confdefs.h"
14247/* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func(); below. */
14249#include <assert.h>
14250/* Override any gcc2 internal prototype to avoid an error. */
14251/* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253char $ac_func();
14254
14255int main() {
14256
14257/* The GNU C library defines this for functions which it implements
14258 to always fail with ENOSYS. Some functions are actually named
14259 something starting with __ and the normal name is an alias. */
14260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14261choke me
14262#else
14263$ac_func();
14264#endif
14265
14266; return 0; }
14267EOF
421173e6 14268if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14269 rm -rf conftest*
14270 eval "ac_cv_func_$ac_func=yes"
14271else
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 rm -rf conftest*
14275 eval "ac_cv_func_$ac_func=no"
14276fi
14277rm -f conftest*
14278fi
14279
14280if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14281 echo "$ac_t""yes" 1>&6
14282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14283 cat >> confdefs.h <<EOF
14284#define $ac_tr_func 1
14285EOF
14286
14287else
14288 echo "$ac_t""no" 1>&6
14289fi
14290done
14291
14292 fi
14293
14294
421173e6
PE
14295 echo $ac_n "checking for _atanl declaration""... $ac_c" 1>&6
14296echo "configure:14297: checking for _atanl declaration" >&5
14297 if eval "test \"`echo '$''{'glibcpp_cv_func__atanl_use'+set}'`\" = set"; then
14298 echo $ac_n "(cached) $ac_c" 1>&6
14299else
38bd7296 14300
421173e6
PE
14301
14302 ac_ext=C
38bd7296
BK
14303# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14304ac_cpp='$CXXCPP $CPPFLAGS'
14305ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14306ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14307cross_compiling=$ac_cv_prog_cxx_cross
14308
421173e6
PE
14309 cat > conftest.$ac_ext <<EOF
14310#line 14311 "configure"
38bd7296
BK
14311#include "confdefs.h"
14312#include <math.h>
14313int main() {
14314 _atanl(0);
14315; return 0; }
14316EOF
421173e6 14317if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14318 rm -rf conftest*
421173e6 14319 glibcpp_cv_func__atanl_use=yes
38bd7296
BK
14320else
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14323 rm -rf conftest*
421173e6 14324 glibcpp_cv_func__atanl_use=no
38bd7296
BK
14325fi
14326rm -f conftest*
421173e6 14327 ac_ext=c
38bd7296
BK
14328# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14329ac_cpp='$CPP $CPPFLAGS'
14330ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14331ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14332cross_compiling=$ac_cv_prog_cc_cross
14333
421173e6
PE
14334
14335fi
14336
14337 echo "$ac_t""$glibcpp_cv_func__atanl_use" 1>&6
14338 if test x$glibcpp_cv_func__atanl_use = x"yes"; then
38bd7296
BK
14339 for ac_func in _atanl
14340do
14341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14342echo "configure:14343: checking for $ac_func" >&5
38bd7296
BK
14343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14344 echo $ac_n "(cached) $ac_c" 1>&6
14345else
14346 cat > conftest.$ac_ext <<EOF
421173e6 14347#line 14348 "configure"
38bd7296
BK
14348#include "confdefs.h"
14349/* System header to define __stub macros and hopefully few prototypes,
14350 which can conflict with char $ac_func(); below. */
14351#include <assert.h>
14352/* Override any gcc2 internal prototype to avoid an error. */
14353/* We use char because int might match the return type of a gcc2
14354 builtin and then its argument prototype would still apply. */
14355char $ac_func();
14356
14357int main() {
14358
14359/* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363choke me
14364#else
14365$ac_func();
14366#endif
14367
14368; return 0; }
14369EOF
421173e6 14370if { (eval echo configure:14371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14371 rm -rf conftest*
14372 eval "ac_cv_func_$ac_func=yes"
14373else
14374 echo "configure: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14376 rm -rf conftest*
14377 eval "ac_cv_func_$ac_func=no"
14378fi
14379rm -f conftest*
14380fi
14381
14382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14383 echo "$ac_t""yes" 1>&6
14384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14385 cat >> confdefs.h <<EOF
14386#define $ac_tr_func 1
14387EOF
14388
14389else
14390 echo "$ac_t""no" 1>&6
14391fi
14392done
14393
14394 fi
14395
14396
421173e6
PE
14397 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14398echo "configure:14399: checking for _atan2l declaration" >&5
14399 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14400 echo $ac_n "(cached) $ac_c" 1>&6
14401else
38bd7296 14402
421173e6
PE
14403
14404 ac_ext=C
38bd7296
BK
14405# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14406ac_cpp='$CXXCPP $CPPFLAGS'
14407ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14408ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14409cross_compiling=$ac_cv_prog_cxx_cross
14410
421173e6
PE
14411 cat > conftest.$ac_ext <<EOF
14412#line 14413 "configure"
38bd7296
BK
14413#include "confdefs.h"
14414#include <math.h>
14415int main() {
14416 _atan2l(0, 0);
14417; return 0; }
14418EOF
421173e6 14419if { (eval echo configure:14420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14420 rm -rf conftest*
421173e6 14421 glibcpp_cv_func__atan2l_use=yes
38bd7296
BK
14422else
14423 echo "configure: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 rm -rf conftest*
421173e6 14426 glibcpp_cv_func__atan2l_use=no
38bd7296
BK
14427fi
14428rm -f conftest*
421173e6 14429 ac_ext=c
38bd7296
BK
14430# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14431ac_cpp='$CPP $CPPFLAGS'
14432ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14433ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14434cross_compiling=$ac_cv_prog_cc_cross
14435
421173e6
PE
14436
14437fi
14438
14439 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14440 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
38bd7296
BK
14441 for ac_func in _atan2l
14442do
14443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14444echo "configure:14445: checking for $ac_func" >&5
38bd7296
BK
14445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14446 echo $ac_n "(cached) $ac_c" 1>&6
14447else
14448 cat > conftest.$ac_ext <<EOF
421173e6 14449#line 14450 "configure"
38bd7296
BK
14450#include "confdefs.h"
14451/* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char $ac_func(); below. */
14453#include <assert.h>
14454/* Override any gcc2 internal prototype to avoid an error. */
14455/* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14457char $ac_func();
14458
14459int main() {
14460
14461/* The GNU C library defines this for functions which it implements
14462 to always fail with ENOSYS. Some functions are actually named
14463 something starting with __ and the normal name is an alias. */
14464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14465choke me
14466#else
14467$ac_func();
14468#endif
14469
14470; return 0; }
14471EOF
421173e6 14472if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14473 rm -rf conftest*
14474 eval "ac_cv_func_$ac_func=yes"
14475else
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14478 rm -rf conftest*
14479 eval "ac_cv_func_$ac_func=no"
14480fi
14481rm -f conftest*
14482fi
14483
14484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14485 echo "$ac_t""yes" 1>&6
14486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14487 cat >> confdefs.h <<EOF
14488#define $ac_tr_func 1
14489EOF
14490
14491else
14492 echo "$ac_t""no" 1>&6
14493fi
14494done
14495
14496 fi
14497
14498
421173e6
PE
14499 echo $ac_n "checking for _ceill declaration""... $ac_c" 1>&6
14500echo "configure:14501: checking for _ceill declaration" >&5
14501 if eval "test \"`echo '$''{'glibcpp_cv_func__ceill_use'+set}'`\" = set"; then
14502 echo $ac_n "(cached) $ac_c" 1>&6
14503else
38bd7296 14504
421173e6
PE
14505
14506 ac_ext=C
38bd7296
BK
14507# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508ac_cpp='$CXXCPP $CPPFLAGS'
14509ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511cross_compiling=$ac_cv_prog_cxx_cross
14512
421173e6
PE
14513 cat > conftest.$ac_ext <<EOF
14514#line 14515 "configure"
38bd7296
BK
14515#include "confdefs.h"
14516#include <math.h>
14517int main() {
14518 _ceill(0);
14519; return 0; }
14520EOF
421173e6 14521if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14522 rm -rf conftest*
421173e6 14523 glibcpp_cv_func__ceill_use=yes
38bd7296
BK
14524else
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14527 rm -rf conftest*
421173e6 14528 glibcpp_cv_func__ceill_use=no
38bd7296
BK
14529fi
14530rm -f conftest*
421173e6 14531 ac_ext=c
38bd7296
BK
14532# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14533ac_cpp='$CPP $CPPFLAGS'
14534ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14535ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14536cross_compiling=$ac_cv_prog_cc_cross
14537
421173e6
PE
14538
14539fi
14540
14541 echo "$ac_t""$glibcpp_cv_func__ceill_use" 1>&6
14542 if test x$glibcpp_cv_func__ceill_use = x"yes"; then
38bd7296
BK
14543 for ac_func in _ceill
14544do
14545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14546echo "configure:14547: checking for $ac_func" >&5
38bd7296
BK
14547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14549else
14550 cat > conftest.$ac_ext <<EOF
421173e6 14551#line 14552 "configure"
38bd7296
BK
14552#include "confdefs.h"
14553/* System header to define __stub macros and hopefully few prototypes,
14554 which can conflict with char $ac_func(); below. */
14555#include <assert.h>
14556/* Override any gcc2 internal prototype to avoid an error. */
14557/* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14559char $ac_func();
14560
14561int main() {
14562
14563/* The GNU C library defines this for functions which it implements
14564 to always fail with ENOSYS. Some functions are actually named
14565 something starting with __ and the normal name is an alias. */
14566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14567choke me
14568#else
14569$ac_func();
14570#endif
14571
14572; return 0; }
14573EOF
421173e6 14574if { (eval echo configure:14575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14575 rm -rf conftest*
14576 eval "ac_cv_func_$ac_func=yes"
14577else
14578 echo "configure: failed program was:" >&5
14579 cat conftest.$ac_ext >&5
14580 rm -rf conftest*
14581 eval "ac_cv_func_$ac_func=no"
14582fi
14583rm -f conftest*
14584fi
14585
14586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14587 echo "$ac_t""yes" 1>&6
14588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14589 cat >> confdefs.h <<EOF
14590#define $ac_tr_func 1
14591EOF
14592
14593else
14594 echo "$ac_t""no" 1>&6
14595fi
14596done
14597
14598 fi
14599
14600
421173e6
PE
14601 echo $ac_n "checking for _cosl declaration""... $ac_c" 1>&6
14602echo "configure:14603: checking for _cosl declaration" >&5
14603 if eval "test \"`echo '$''{'glibcpp_cv_func__cosl_use'+set}'`\" = set"; then
14604 echo $ac_n "(cached) $ac_c" 1>&6
14605else
38bd7296 14606
421173e6
PE
14607
14608 ac_ext=C
38bd7296
BK
14609# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14610ac_cpp='$CXXCPP $CPPFLAGS'
14611ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14612ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14613cross_compiling=$ac_cv_prog_cxx_cross
14614
421173e6
PE
14615 cat > conftest.$ac_ext <<EOF
14616#line 14617 "configure"
38bd7296
BK
14617#include "confdefs.h"
14618#include <math.h>
14619int main() {
14620 _cosl(0);
14621; return 0; }
14622EOF
421173e6 14623if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14624 rm -rf conftest*
421173e6 14625 glibcpp_cv_func__cosl_use=yes
38bd7296
BK
14626else
14627 echo "configure: failed program was:" >&5
14628 cat conftest.$ac_ext >&5
14629 rm -rf conftest*
421173e6 14630 glibcpp_cv_func__cosl_use=no
38bd7296
BK
14631fi
14632rm -f conftest*
421173e6 14633 ac_ext=c
38bd7296
BK
14634# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14635ac_cpp='$CPP $CPPFLAGS'
14636ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14637ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14638cross_compiling=$ac_cv_prog_cc_cross
14639
421173e6
PE
14640
14641fi
14642
14643 echo "$ac_t""$glibcpp_cv_func__cosl_use" 1>&6
14644 if test x$glibcpp_cv_func__cosl_use = x"yes"; then
38bd7296
BK
14645 for ac_func in _cosl
14646do
14647echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14648echo "configure:14649: checking for $ac_func" >&5
38bd7296
BK
14649if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
14651else
14652 cat > conftest.$ac_ext <<EOF
421173e6 14653#line 14654 "configure"
38bd7296
BK
14654#include "confdefs.h"
14655/* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char $ac_func(); below. */
14657#include <assert.h>
14658/* Override any gcc2 internal prototype to avoid an error. */
14659/* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661char $ac_func();
14662
14663int main() {
14664
14665/* The GNU C library defines this for functions which it implements
14666 to always fail with ENOSYS. Some functions are actually named
14667 something starting with __ and the normal name is an alias. */
14668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14669choke me
14670#else
14671$ac_func();
14672#endif
14673
14674; return 0; }
14675EOF
421173e6 14676if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14677 rm -rf conftest*
14678 eval "ac_cv_func_$ac_func=yes"
14679else
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 rm -rf conftest*
14683 eval "ac_cv_func_$ac_func=no"
14684fi
14685rm -f conftest*
14686fi
14687
14688if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14689 echo "$ac_t""yes" 1>&6
14690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14691 cat >> confdefs.h <<EOF
14692#define $ac_tr_func 1
14693EOF
14694
14695else
14696 echo "$ac_t""no" 1>&6
14697fi
14698done
14699
14700 fi
14701
14702
421173e6
PE
14703 echo $ac_n "checking for _coshl declaration""... $ac_c" 1>&6
14704echo "configure:14705: checking for _coshl declaration" >&5
14705 if eval "test \"`echo '$''{'glibcpp_cv_func__coshl_use'+set}'`\" = set"; then
14706 echo $ac_n "(cached) $ac_c" 1>&6
14707else
38bd7296 14708
421173e6
PE
14709
14710 ac_ext=C
38bd7296
BK
14711# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14712ac_cpp='$CXXCPP $CPPFLAGS'
14713ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14714ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14715cross_compiling=$ac_cv_prog_cxx_cross
14716
421173e6
PE
14717 cat > conftest.$ac_ext <<EOF
14718#line 14719 "configure"
38bd7296
BK
14719#include "confdefs.h"
14720#include <math.h>
14721int main() {
14722 _coshl(0);
14723; return 0; }
14724EOF
421173e6 14725if { (eval echo configure:14726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14726 rm -rf conftest*
421173e6 14727 glibcpp_cv_func__coshl_use=yes
38bd7296
BK
14728else
14729 echo "configure: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14731 rm -rf conftest*
421173e6 14732 glibcpp_cv_func__coshl_use=no
38bd7296
BK
14733fi
14734rm -f conftest*
421173e6 14735 ac_ext=c
38bd7296
BK
14736# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14737ac_cpp='$CPP $CPPFLAGS'
14738ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14739ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14740cross_compiling=$ac_cv_prog_cc_cross
14741
421173e6
PE
14742
14743fi
14744
14745 echo "$ac_t""$glibcpp_cv_func__coshl_use" 1>&6
14746 if test x$glibcpp_cv_func__coshl_use = x"yes"; then
38bd7296
BK
14747 for ac_func in _coshl
14748do
14749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14750echo "configure:14751: checking for $ac_func" >&5
38bd7296
BK
14751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14753else
14754 cat > conftest.$ac_ext <<EOF
421173e6 14755#line 14756 "configure"
38bd7296
BK
14756#include "confdefs.h"
14757/* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char $ac_func(); below. */
14759#include <assert.h>
14760/* Override any gcc2 internal prototype to avoid an error. */
14761/* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763char $ac_func();
14764
14765int main() {
14766
14767/* The GNU C library defines this for functions which it implements
14768 to always fail with ENOSYS. Some functions are actually named
14769 something starting with __ and the normal name is an alias. */
14770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14771choke me
14772#else
14773$ac_func();
14774#endif
14775
14776; return 0; }
14777EOF
421173e6 14778if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14779 rm -rf conftest*
14780 eval "ac_cv_func_$ac_func=yes"
14781else
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14784 rm -rf conftest*
14785 eval "ac_cv_func_$ac_func=no"
14786fi
14787rm -f conftest*
14788fi
14789
14790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14793 cat >> confdefs.h <<EOF
14794#define $ac_tr_func 1
14795EOF
14796
14797else
14798 echo "$ac_t""no" 1>&6
14799fi
14800done
14801
14802 fi
14803
14804
421173e6
PE
14805 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14806echo "configure:14807: checking for _expl declaration" >&5
14807 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809else
38bd7296 14810
421173e6
PE
14811
14812 ac_ext=C
38bd7296
BK
14813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14814ac_cpp='$CXXCPP $CPPFLAGS'
14815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14817cross_compiling=$ac_cv_prog_cxx_cross
14818
421173e6
PE
14819 cat > conftest.$ac_ext <<EOF
14820#line 14821 "configure"
38bd7296
BK
14821#include "confdefs.h"
14822#include <math.h>
14823int main() {
14824 _expl(0);
14825; return 0; }
14826EOF
421173e6 14827if { (eval echo configure:14828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14828 rm -rf conftest*
421173e6 14829 glibcpp_cv_func__expl_use=yes
38bd7296
BK
14830else
14831 echo "configure: failed program was:" >&5
14832 cat conftest.$ac_ext >&5
14833 rm -rf conftest*
421173e6 14834 glibcpp_cv_func__expl_use=no
38bd7296
BK
14835fi
14836rm -f conftest*
421173e6 14837 ac_ext=c
38bd7296
BK
14838# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14839ac_cpp='$CPP $CPPFLAGS'
14840ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14841ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14842cross_compiling=$ac_cv_prog_cc_cross
14843
421173e6
PE
14844
14845fi
14846
14847 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14848 if test x$glibcpp_cv_func__expl_use = x"yes"; then
38bd7296
BK
14849 for ac_func in _expl
14850do
14851echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14852echo "configure:14853: checking for $ac_func" >&5
38bd7296
BK
14853if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14854 echo $ac_n "(cached) $ac_c" 1>&6
14855else
14856 cat > conftest.$ac_ext <<EOF
421173e6 14857#line 14858 "configure"
38bd7296
BK
14858#include "confdefs.h"
14859/* System header to define __stub macros and hopefully few prototypes,
14860 which can conflict with char $ac_func(); below. */
14861#include <assert.h>
14862/* Override any gcc2 internal prototype to avoid an error. */
14863/* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14865char $ac_func();
14866
14867int main() {
14868
14869/* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873choke me
14874#else
14875$ac_func();
14876#endif
14877
14878; return 0; }
14879EOF
421173e6 14880if { (eval echo configure:14881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14881 rm -rf conftest*
14882 eval "ac_cv_func_$ac_func=yes"
14883else
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 rm -rf conftest*
14887 eval "ac_cv_func_$ac_func=no"
14888fi
14889rm -f conftest*
14890fi
14891
14892if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14895 cat >> confdefs.h <<EOF
14896#define $ac_tr_func 1
14897EOF
14898
14899else
14900 echo "$ac_t""no" 1>&6
14901fi
14902done
14903
14904 fi
14905
14906
421173e6
PE
14907 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14908echo "configure:14909: checking for _fabsl declaration" >&5
14909 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14910 echo $ac_n "(cached) $ac_c" 1>&6
14911else
38bd7296 14912
421173e6
PE
14913
14914 ac_ext=C
38bd7296
BK
14915# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14916ac_cpp='$CXXCPP $CPPFLAGS'
14917ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14918ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14919cross_compiling=$ac_cv_prog_cxx_cross
14920
421173e6
PE
14921 cat > conftest.$ac_ext <<EOF
14922#line 14923 "configure"
38bd7296
BK
14923#include "confdefs.h"
14924#include <math.h>
14925int main() {
14926 _fabsl(0);
14927; return 0; }
14928EOF
421173e6 14929if { (eval echo configure:14930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 14930 rm -rf conftest*
421173e6 14931 glibcpp_cv_func__fabsl_use=yes
38bd7296
BK
14932else
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14935 rm -rf conftest*
421173e6 14936 glibcpp_cv_func__fabsl_use=no
38bd7296
BK
14937fi
14938rm -f conftest*
421173e6 14939 ac_ext=c
38bd7296
BK
14940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14941ac_cpp='$CPP $CPPFLAGS'
14942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14944cross_compiling=$ac_cv_prog_cc_cross
14945
421173e6
PE
14946
14947fi
14948
14949 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14950 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
38bd7296
BK
14951 for ac_func in _fabsl
14952do
14953echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 14954echo "configure:14955: checking for $ac_func" >&5
38bd7296
BK
14955if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
14957else
14958 cat > conftest.$ac_ext <<EOF
421173e6 14959#line 14960 "configure"
38bd7296
BK
14960#include "confdefs.h"
14961/* System header to define __stub macros and hopefully few prototypes,
14962 which can conflict with char $ac_func(); below. */
14963#include <assert.h>
14964/* Override any gcc2 internal prototype to avoid an error. */
14965/* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967char $ac_func();
14968
14969int main() {
14970
14971/* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14975choke me
14976#else
14977$ac_func();
14978#endif
14979
14980; return 0; }
14981EOF
421173e6 14982if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
14983 rm -rf conftest*
14984 eval "ac_cv_func_$ac_func=yes"
14985else
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 rm -rf conftest*
14989 eval "ac_cv_func_$ac_func=no"
14990fi
14991rm -f conftest*
14992fi
14993
14994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14995 echo "$ac_t""yes" 1>&6
14996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14997 cat >> confdefs.h <<EOF
14998#define $ac_tr_func 1
14999EOF
15000
15001else
15002 echo "$ac_t""no" 1>&6
15003fi
15004done
15005
15006 fi
15007
15008
421173e6
PE
15009 echo $ac_n "checking for _floorl declaration""... $ac_c" 1>&6
15010echo "configure:15011: checking for _floorl declaration" >&5
15011 if eval "test \"`echo '$''{'glibcpp_cv_func__floorl_use'+set}'`\" = set"; then
15012 echo $ac_n "(cached) $ac_c" 1>&6
15013else
38bd7296 15014
421173e6
PE
15015
15016 ac_ext=C
38bd7296
BK
15017# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15018ac_cpp='$CXXCPP $CPPFLAGS'
15019ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15020ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15021cross_compiling=$ac_cv_prog_cxx_cross
15022
421173e6
PE
15023 cat > conftest.$ac_ext <<EOF
15024#line 15025 "configure"
38bd7296
BK
15025#include "confdefs.h"
15026#include <math.h>
15027int main() {
15028 _floorl(0);
15029; return 0; }
15030EOF
421173e6 15031if { (eval echo configure:15032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15032 rm -rf conftest*
421173e6 15033 glibcpp_cv_func__floorl_use=yes
38bd7296
BK
15034else
15035 echo "configure: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15037 rm -rf conftest*
421173e6 15038 glibcpp_cv_func__floorl_use=no
38bd7296
BK
15039fi
15040rm -f conftest*
421173e6 15041 ac_ext=c
38bd7296
BK
15042# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15043ac_cpp='$CPP $CPPFLAGS'
15044ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15045ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15046cross_compiling=$ac_cv_prog_cc_cross
15047
421173e6
PE
15048
15049fi
15050
15051 echo "$ac_t""$glibcpp_cv_func__floorl_use" 1>&6
15052 if test x$glibcpp_cv_func__floorl_use = x"yes"; then
38bd7296
BK
15053 for ac_func in _floorl
15054do
15055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15056echo "configure:15057: checking for $ac_func" >&5
38bd7296
BK
15057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15059else
15060 cat > conftest.$ac_ext <<EOF
421173e6 15061#line 15062 "configure"
38bd7296
BK
15062#include "confdefs.h"
15063/* System header to define __stub macros and hopefully few prototypes,
15064 which can conflict with char $ac_func(); below. */
15065#include <assert.h>
15066/* Override any gcc2 internal prototype to avoid an error. */
15067/* We use char because int might match the return type of a gcc2
15068 builtin and then its argument prototype would still apply. */
15069char $ac_func();
15070
15071int main() {
15072
15073/* The GNU C library defines this for functions which it implements
15074 to always fail with ENOSYS. Some functions are actually named
15075 something starting with __ and the normal name is an alias. */
15076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15077choke me
15078#else
15079$ac_func();
15080#endif
15081
15082; return 0; }
15083EOF
421173e6 15084if { (eval echo configure:15085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15085 rm -rf conftest*
15086 eval "ac_cv_func_$ac_func=yes"
15087else
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 rm -rf conftest*
15091 eval "ac_cv_func_$ac_func=no"
15092fi
15093rm -f conftest*
15094fi
15095
15096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15097 echo "$ac_t""yes" 1>&6
15098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15099 cat >> confdefs.h <<EOF
15100#define $ac_tr_func 1
15101EOF
15102
15103else
15104 echo "$ac_t""no" 1>&6
15105fi
15106done
15107
15108 fi
15109
15110
421173e6
PE
15111 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15112echo "configure:15113: checking for _fmodl declaration" >&5
15113 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15114 echo $ac_n "(cached) $ac_c" 1>&6
15115else
38bd7296 15116
421173e6
PE
15117
15118 ac_ext=C
38bd7296
BK
15119# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15120ac_cpp='$CXXCPP $CPPFLAGS'
15121ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15122ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15123cross_compiling=$ac_cv_prog_cxx_cross
15124
421173e6
PE
15125 cat > conftest.$ac_ext <<EOF
15126#line 15127 "configure"
38bd7296
BK
15127#include "confdefs.h"
15128#include <math.h>
15129int main() {
15130 _fmodl(0, 0);
15131; return 0; }
15132EOF
421173e6 15133if { (eval echo configure:15134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15134 rm -rf conftest*
421173e6 15135 glibcpp_cv_func__fmodl_use=yes
38bd7296
BK
15136else
15137 echo "configure: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 rm -rf conftest*
421173e6 15140 glibcpp_cv_func__fmodl_use=no
38bd7296
BK
15141fi
15142rm -f conftest*
421173e6 15143 ac_ext=c
38bd7296
BK
15144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15145ac_cpp='$CPP $CPPFLAGS'
15146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15148cross_compiling=$ac_cv_prog_cc_cross
15149
421173e6
PE
15150
15151fi
15152
15153 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15154 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
38bd7296
BK
15155 for ac_func in _fmodl
15156do
15157echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15158echo "configure:15159: checking for $ac_func" >&5
38bd7296
BK
15159if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15161else
15162 cat > conftest.$ac_ext <<EOF
421173e6 15163#line 15164 "configure"
38bd7296
BK
15164#include "confdefs.h"
15165/* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func(); below. */
15167#include <assert.h>
15168/* Override any gcc2 internal prototype to avoid an error. */
15169/* We use char because int might match the return type of a gcc2
15170 builtin and then its argument prototype would still apply. */
15171char $ac_func();
15172
15173int main() {
15174
15175/* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15179choke me
15180#else
15181$ac_func();
15182#endif
15183
15184; return 0; }
15185EOF
421173e6 15186if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15187 rm -rf conftest*
15188 eval "ac_cv_func_$ac_func=yes"
15189else
15190 echo "configure: failed program was:" >&5
15191 cat conftest.$ac_ext >&5
15192 rm -rf conftest*
15193 eval "ac_cv_func_$ac_func=no"
15194fi
15195rm -f conftest*
15196fi
15197
15198if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15199 echo "$ac_t""yes" 1>&6
15200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15201 cat >> confdefs.h <<EOF
15202#define $ac_tr_func 1
15203EOF
15204
15205else
15206 echo "$ac_t""no" 1>&6
15207fi
15208done
15209
15210 fi
15211
15212
421173e6
PE
15213 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15214echo "configure:15215: checking for _frexpl declaration" >&5
15215 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15216 echo $ac_n "(cached) $ac_c" 1>&6
15217else
38bd7296 15218
421173e6
PE
15219
15220 ac_ext=C
38bd7296
BK
15221# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15222ac_cpp='$CXXCPP $CPPFLAGS'
15223ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15224ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15225cross_compiling=$ac_cv_prog_cxx_cross
15226
421173e6
PE
15227 cat > conftest.$ac_ext <<EOF
15228#line 15229 "configure"
38bd7296
BK
15229#include "confdefs.h"
15230#include <math.h>
15231int main() {
15232 _frexpl(0, 0);
15233; return 0; }
15234EOF
421173e6 15235if { (eval echo configure:15236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15236 rm -rf conftest*
421173e6 15237 glibcpp_cv_func__frexpl_use=yes
38bd7296
BK
15238else
15239 echo "configure: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15241 rm -rf conftest*
421173e6 15242 glibcpp_cv_func__frexpl_use=no
38bd7296
BK
15243fi
15244rm -f conftest*
421173e6 15245 ac_ext=c
38bd7296
BK
15246# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15247ac_cpp='$CPP $CPPFLAGS'
15248ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15249ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15250cross_compiling=$ac_cv_prog_cc_cross
15251
421173e6
PE
15252
15253fi
15254
15255 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15256 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
38bd7296
BK
15257 for ac_func in _frexpl
15258do
15259echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15260echo "configure:15261: checking for $ac_func" >&5
38bd7296
BK
15261if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15263else
15264 cat > conftest.$ac_ext <<EOF
421173e6 15265#line 15266 "configure"
38bd7296
BK
15266#include "confdefs.h"
15267/* System header to define __stub macros and hopefully few prototypes,
15268 which can conflict with char $ac_func(); below. */
15269#include <assert.h>
15270/* Override any gcc2 internal prototype to avoid an error. */
15271/* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15273char $ac_func();
15274
15275int main() {
15276
15277/* The GNU C library defines this for functions which it implements
15278 to always fail with ENOSYS. Some functions are actually named
15279 something starting with __ and the normal name is an alias. */
15280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15281choke me
15282#else
15283$ac_func();
15284#endif
15285
15286; return 0; }
15287EOF
421173e6 15288if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15289 rm -rf conftest*
15290 eval "ac_cv_func_$ac_func=yes"
15291else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "ac_cv_func_$ac_func=no"
15296fi
15297rm -f conftest*
15298fi
15299
15300if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15301 echo "$ac_t""yes" 1>&6
15302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15303 cat >> confdefs.h <<EOF
15304#define $ac_tr_func 1
15305EOF
15306
15307else
15308 echo "$ac_t""no" 1>&6
15309fi
15310done
15311
15312 fi
15313
15314
421173e6
PE
15315 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15316echo "configure:15317: checking for _ldexpl declaration" >&5
15317 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15318 echo $ac_n "(cached) $ac_c" 1>&6
15319else
38bd7296 15320
421173e6
PE
15321
15322 ac_ext=C
38bd7296
BK
15323# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15324ac_cpp='$CXXCPP $CPPFLAGS'
15325ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15326ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15327cross_compiling=$ac_cv_prog_cxx_cross
15328
421173e6
PE
15329 cat > conftest.$ac_ext <<EOF
15330#line 15331 "configure"
38bd7296
BK
15331#include "confdefs.h"
15332#include <math.h>
15333int main() {
15334 _ldexpl(0, 0);
15335; return 0; }
15336EOF
421173e6 15337if { (eval echo configure:15338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15338 rm -rf conftest*
421173e6 15339 glibcpp_cv_func__ldexpl_use=yes
38bd7296
BK
15340else
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 rm -rf conftest*
421173e6 15344 glibcpp_cv_func__ldexpl_use=no
38bd7296
BK
15345fi
15346rm -f conftest*
421173e6 15347 ac_ext=c
38bd7296
BK
15348# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15349ac_cpp='$CPP $CPPFLAGS'
15350ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15351ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15352cross_compiling=$ac_cv_prog_cc_cross
15353
421173e6
PE
15354
15355fi
15356
15357 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15358 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
38bd7296
BK
15359 for ac_func in _ldexpl
15360do
15361echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15362echo "configure:15363: checking for $ac_func" >&5
38bd7296
BK
15363if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15365else
15366 cat > conftest.$ac_ext <<EOF
421173e6 15367#line 15368 "configure"
38bd7296
BK
15368#include "confdefs.h"
15369/* System header to define __stub macros and hopefully few prototypes,
15370 which can conflict with char $ac_func(); below. */
15371#include <assert.h>
15372/* Override any gcc2 internal prototype to avoid an error. */
15373/* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15375char $ac_func();
15376
15377int main() {
15378
15379/* The GNU C library defines this for functions which it implements
15380 to always fail with ENOSYS. Some functions are actually named
15381 something starting with __ and the normal name is an alias. */
15382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15383choke me
15384#else
15385$ac_func();
15386#endif
15387
15388; return 0; }
15389EOF
421173e6 15390if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15391 rm -rf conftest*
15392 eval "ac_cv_func_$ac_func=yes"
15393else
15394 echo "configure: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15396 rm -rf conftest*
15397 eval "ac_cv_func_$ac_func=no"
15398fi
15399rm -f conftest*
15400fi
15401
15402if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15403 echo "$ac_t""yes" 1>&6
15404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15405 cat >> confdefs.h <<EOF
15406#define $ac_tr_func 1
15407EOF
15408
15409else
15410 echo "$ac_t""no" 1>&6
15411fi
15412done
15413
15414 fi
15415
15416
421173e6
PE
15417 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15418echo "configure:15419: checking for _logl declaration" >&5
15419 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15421else
38bd7296 15422
421173e6
PE
15423
15424 ac_ext=C
38bd7296
BK
15425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15426ac_cpp='$CXXCPP $CPPFLAGS'
15427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15429cross_compiling=$ac_cv_prog_cxx_cross
15430
421173e6
PE
15431 cat > conftest.$ac_ext <<EOF
15432#line 15433 "configure"
38bd7296
BK
15433#include "confdefs.h"
15434#include <math.h>
15435int main() {
15436 _logl(0);
15437; return 0; }
15438EOF
421173e6 15439if { (eval echo configure:15440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15440 rm -rf conftest*
421173e6 15441 glibcpp_cv_func__logl_use=yes
38bd7296
BK
15442else
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
421173e6 15446 glibcpp_cv_func__logl_use=no
38bd7296
BK
15447fi
15448rm -f conftest*
421173e6 15449 ac_ext=c
38bd7296
BK
15450# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15451ac_cpp='$CPP $CPPFLAGS'
15452ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15453ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15454cross_compiling=$ac_cv_prog_cc_cross
15455
421173e6
PE
15456
15457fi
15458
15459 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15460 if test x$glibcpp_cv_func__logl_use = x"yes"; then
38bd7296
BK
15461 for ac_func in _logl
15462do
15463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15464echo "configure:15465: checking for $ac_func" >&5
38bd7296
BK
15465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467else
15468 cat > conftest.$ac_ext <<EOF
421173e6 15469#line 15470 "configure"
38bd7296
BK
15470#include "confdefs.h"
15471/* System header to define __stub macros and hopefully few prototypes,
15472 which can conflict with char $ac_func(); below. */
15473#include <assert.h>
15474/* Override any gcc2 internal prototype to avoid an error. */
15475/* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477char $ac_func();
15478
15479int main() {
15480
15481/* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15485choke me
15486#else
15487$ac_func();
15488#endif
15489
15490; return 0; }
15491EOF
421173e6 15492if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15493 rm -rf conftest*
15494 eval "ac_cv_func_$ac_func=yes"
15495else
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 rm -rf conftest*
15499 eval "ac_cv_func_$ac_func=no"
15500fi
15501rm -f conftest*
15502fi
15503
15504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15505 echo "$ac_t""yes" 1>&6
15506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15507 cat >> confdefs.h <<EOF
15508#define $ac_tr_func 1
15509EOF
15510
15511else
15512 echo "$ac_t""no" 1>&6
15513fi
15514done
15515
15516 fi
15517
15518
421173e6
PE
15519 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
15520echo "configure:15521: checking for _log10l declaration" >&5
15521 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
15522 echo $ac_n "(cached) $ac_c" 1>&6
15523else
38bd7296 15524
421173e6
PE
15525
15526 ac_ext=C
38bd7296
BK
15527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15528ac_cpp='$CXXCPP $CPPFLAGS'
15529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15531cross_compiling=$ac_cv_prog_cxx_cross
15532
421173e6
PE
15533 cat > conftest.$ac_ext <<EOF
15534#line 15535 "configure"
38bd7296
BK
15535#include "confdefs.h"
15536#include <math.h>
15537int main() {
15538 _log10l(0);
15539; return 0; }
15540EOF
421173e6 15541if { (eval echo configure:15542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15542 rm -rf conftest*
421173e6 15543 glibcpp_cv_func__log10l_use=yes
38bd7296
BK
15544else
15545 echo "configure: failed program was:" >&5
15546 cat conftest.$ac_ext >&5
15547 rm -rf conftest*
421173e6 15548 glibcpp_cv_func__log10l_use=no
38bd7296
BK
15549fi
15550rm -f conftest*
421173e6 15551 ac_ext=c
38bd7296
BK
15552# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15553ac_cpp='$CPP $CPPFLAGS'
15554ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15555ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15556cross_compiling=$ac_cv_prog_cc_cross
15557
421173e6
PE
15558
15559fi
15560
15561 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
15562 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
38bd7296
BK
15563 for ac_func in _log10l
15564do
15565echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15566echo "configure:15567: checking for $ac_func" >&5
38bd7296
BK
15567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15568 echo $ac_n "(cached) $ac_c" 1>&6
15569else
15570 cat > conftest.$ac_ext <<EOF
421173e6 15571#line 15572 "configure"
38bd7296
BK
15572#include "confdefs.h"
15573/* System header to define __stub macros and hopefully few prototypes,
15574 which can conflict with char $ac_func(); below. */
15575#include <assert.h>
15576/* Override any gcc2 internal prototype to avoid an error. */
15577/* We use char because int might match the return type of a gcc2
15578 builtin and then its argument prototype would still apply. */
15579char $ac_func();
15580
15581int main() {
15582
15583/* The GNU C library defines this for functions which it implements
15584 to always fail with ENOSYS. Some functions are actually named
15585 something starting with __ and the normal name is an alias. */
15586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15587choke me
15588#else
15589$ac_func();
15590#endif
15591
15592; return 0; }
15593EOF
421173e6 15594if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15595 rm -rf conftest*
15596 eval "ac_cv_func_$ac_func=yes"
15597else
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15600 rm -rf conftest*
15601 eval "ac_cv_func_$ac_func=no"
15602fi
15603rm -f conftest*
15604fi
15605
15606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15607 echo "$ac_t""yes" 1>&6
15608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15609 cat >> confdefs.h <<EOF
15610#define $ac_tr_func 1
15611EOF
15612
15613else
15614 echo "$ac_t""no" 1>&6
15615fi
15616done
15617
15618 fi
15619
15620
421173e6
PE
15621 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
15622echo "configure:15623: checking for _modfl declaration" >&5
15623 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
15624 echo $ac_n "(cached) $ac_c" 1>&6
15625else
38bd7296 15626
421173e6
PE
15627
15628 ac_ext=C
38bd7296
BK
15629# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15630ac_cpp='$CXXCPP $CPPFLAGS'
15631ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15632ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15633cross_compiling=$ac_cv_prog_cxx_cross
15634
421173e6
PE
15635 cat > conftest.$ac_ext <<EOF
15636#line 15637 "configure"
38bd7296
BK
15637#include "confdefs.h"
15638#include <math.h>
15639int main() {
15640 _modfl(0, 0);
15641; return 0; }
15642EOF
421173e6 15643if { (eval echo configure:15644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15644 rm -rf conftest*
421173e6 15645 glibcpp_cv_func__modfl_use=yes
38bd7296
BK
15646else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
421173e6 15650 glibcpp_cv_func__modfl_use=no
38bd7296
BK
15651fi
15652rm -f conftest*
421173e6 15653 ac_ext=c
38bd7296
BK
15654# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15655ac_cpp='$CPP $CPPFLAGS'
15656ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15657ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15658cross_compiling=$ac_cv_prog_cc_cross
15659
421173e6
PE
15660
15661fi
15662
15663 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
15664 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
38bd7296
BK
15665 for ac_func in _modfl
15666do
15667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15668echo "configure:15669: checking for $ac_func" >&5
38bd7296
BK
15669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15670 echo $ac_n "(cached) $ac_c" 1>&6
15671else
15672 cat > conftest.$ac_ext <<EOF
421173e6 15673#line 15674 "configure"
38bd7296
BK
15674#include "confdefs.h"
15675/* System header to define __stub macros and hopefully few prototypes,
15676 which can conflict with char $ac_func(); below. */
15677#include <assert.h>
15678/* Override any gcc2 internal prototype to avoid an error. */
15679/* We use char because int might match the return type of a gcc2
15680 builtin and then its argument prototype would still apply. */
15681char $ac_func();
15682
15683int main() {
15684
15685/* The GNU C library defines this for functions which it implements
15686 to always fail with ENOSYS. Some functions are actually named
15687 something starting with __ and the normal name is an alias. */
15688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15689choke me
15690#else
15691$ac_func();
15692#endif
15693
15694; return 0; }
15695EOF
421173e6 15696if { (eval echo configure:15697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15697 rm -rf conftest*
15698 eval "ac_cv_func_$ac_func=yes"
15699else
15700 echo "configure: failed program was:" >&5
15701 cat conftest.$ac_ext >&5
15702 rm -rf conftest*
15703 eval "ac_cv_func_$ac_func=no"
15704fi
15705rm -f conftest*
15706fi
15707
15708if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15709 echo "$ac_t""yes" 1>&6
15710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15711 cat >> confdefs.h <<EOF
15712#define $ac_tr_func 1
15713EOF
15714
15715else
15716 echo "$ac_t""no" 1>&6
15717fi
15718done
15719
15720 fi
15721
15722
421173e6
PE
15723 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
15724echo "configure:15725: checking for _powl declaration" >&5
15725 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15727else
38bd7296 15728
421173e6
PE
15729
15730 ac_ext=C
38bd7296
BK
15731# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15732ac_cpp='$CXXCPP $CPPFLAGS'
15733ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15734ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15735cross_compiling=$ac_cv_prog_cxx_cross
15736
421173e6
PE
15737 cat > conftest.$ac_ext <<EOF
15738#line 15739 "configure"
38bd7296
BK
15739#include "confdefs.h"
15740#include <math.h>
15741int main() {
15742 _powl(0, 0);
15743; return 0; }
15744EOF
421173e6 15745if { (eval echo configure:15746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15746 rm -rf conftest*
421173e6 15747 glibcpp_cv_func__powl_use=yes
38bd7296
BK
15748else
15749 echo "configure: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751 rm -rf conftest*
421173e6 15752 glibcpp_cv_func__powl_use=no
38bd7296
BK
15753fi
15754rm -f conftest*
421173e6 15755 ac_ext=c
38bd7296
BK
15756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15757ac_cpp='$CPP $CPPFLAGS'
15758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15760cross_compiling=$ac_cv_prog_cc_cross
15761
421173e6
PE
15762
15763fi
15764
15765 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
15766 if test x$glibcpp_cv_func__powl_use = x"yes"; then
38bd7296
BK
15767 for ac_func in _powl
15768do
15769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15770echo "configure:15771: checking for $ac_func" >&5
38bd7296
BK
15771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773else
15774 cat > conftest.$ac_ext <<EOF
421173e6 15775#line 15776 "configure"
38bd7296
BK
15776#include "confdefs.h"
15777/* System header to define __stub macros and hopefully few prototypes,
15778 which can conflict with char $ac_func(); below. */
15779#include <assert.h>
15780/* Override any gcc2 internal prototype to avoid an error. */
15781/* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15783char $ac_func();
15784
15785int main() {
15786
15787/* The GNU C library defines this for functions which it implements
15788 to always fail with ENOSYS. Some functions are actually named
15789 something starting with __ and the normal name is an alias. */
15790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791choke me
15792#else
15793$ac_func();
15794#endif
15795
15796; return 0; }
15797EOF
421173e6 15798if { (eval echo configure:15799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15799 rm -rf conftest*
15800 eval "ac_cv_func_$ac_func=yes"
15801else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
15805 eval "ac_cv_func_$ac_func=no"
15806fi
15807rm -f conftest*
15808fi
15809
15810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15811 echo "$ac_t""yes" 1>&6
15812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15813 cat >> confdefs.h <<EOF
15814#define $ac_tr_func 1
15815EOF
15816
15817else
15818 echo "$ac_t""no" 1>&6
15819fi
15820done
15821
15822 fi
15823
15824
421173e6
PE
15825 echo $ac_n "checking for _sinl declaration""... $ac_c" 1>&6
15826echo "configure:15827: checking for _sinl declaration" >&5
15827 if eval "test \"`echo '$''{'glibcpp_cv_func__sinl_use'+set}'`\" = set"; then
15828 echo $ac_n "(cached) $ac_c" 1>&6
15829else
38bd7296 15830
421173e6
PE
15831
15832 ac_ext=C
38bd7296
BK
15833# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15834ac_cpp='$CXXCPP $CPPFLAGS'
15835ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15836ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15837cross_compiling=$ac_cv_prog_cxx_cross
15838
421173e6
PE
15839 cat > conftest.$ac_ext <<EOF
15840#line 15841 "configure"
38bd7296
BK
15841#include "confdefs.h"
15842#include <math.h>
15843int main() {
11fc1858 15844 _sinl(0);
38bd7296
BK
15845; return 0; }
15846EOF
421173e6 15847if { (eval echo configure:15848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15848 rm -rf conftest*
421173e6 15849 glibcpp_cv_func__sinl_use=yes
38bd7296
BK
15850else
15851 echo "configure: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 rm -rf conftest*
421173e6 15854 glibcpp_cv_func__sinl_use=no
38bd7296
BK
15855fi
15856rm -f conftest*
421173e6 15857 ac_ext=c
38bd7296
BK
15858# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15859ac_cpp='$CPP $CPPFLAGS'
15860ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15861ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15862cross_compiling=$ac_cv_prog_cc_cross
15863
421173e6
PE
15864
15865fi
15866
15867 echo "$ac_t""$glibcpp_cv_func__sinl_use" 1>&6
15868 if test x$glibcpp_cv_func__sinl_use = x"yes"; then
38bd7296
BK
15869 for ac_func in _sinl
15870do
15871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15872echo "configure:15873: checking for $ac_func" >&5
38bd7296
BK
15873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15874 echo $ac_n "(cached) $ac_c" 1>&6
15875else
15876 cat > conftest.$ac_ext <<EOF
421173e6 15877#line 15878 "configure"
38bd7296
BK
15878#include "confdefs.h"
15879/* System header to define __stub macros and hopefully few prototypes,
15880 which can conflict with char $ac_func(); below. */
15881#include <assert.h>
15882/* Override any gcc2 internal prototype to avoid an error. */
15883/* We use char because int might match the return type of a gcc2
15884 builtin and then its argument prototype would still apply. */
15885char $ac_func();
15886
15887int main() {
15888
15889/* The GNU C library defines this for functions which it implements
15890 to always fail with ENOSYS. Some functions are actually named
15891 something starting with __ and the normal name is an alias. */
15892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15893choke me
15894#else
15895$ac_func();
15896#endif
15897
15898; return 0; }
15899EOF
421173e6 15900if { (eval echo configure:15901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
15901 rm -rf conftest*
15902 eval "ac_cv_func_$ac_func=yes"
15903else
15904 echo "configure: failed program was:" >&5
15905 cat conftest.$ac_ext >&5
15906 rm -rf conftest*
15907 eval "ac_cv_func_$ac_func=no"
15908fi
15909rm -f conftest*
15910fi
15911
15912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15915 cat >> confdefs.h <<EOF
15916#define $ac_tr_func 1
15917EOF
15918
15919else
15920 echo "$ac_t""no" 1>&6
15921fi
15922done
15923
15924 fi
15925
15926
421173e6
PE
15927 echo $ac_n "checking for _sinhl declaration""... $ac_c" 1>&6
15928echo "configure:15929: checking for _sinhl declaration" >&5
15929 if eval "test \"`echo '$''{'glibcpp_cv_func__sinhl_use'+set}'`\" = set"; then
15930 echo $ac_n "(cached) $ac_c" 1>&6
15931else
38bd7296 15932
421173e6
PE
15933
15934 ac_ext=C
38bd7296
BK
15935# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15936ac_cpp='$CXXCPP $CPPFLAGS'
15937ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15938ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15939cross_compiling=$ac_cv_prog_cxx_cross
15940
421173e6
PE
15941 cat > conftest.$ac_ext <<EOF
15942#line 15943 "configure"
38bd7296
BK
15943#include "confdefs.h"
15944#include <math.h>
15945int main() {
15946 _sinhl(0);
15947; return 0; }
15948EOF
421173e6 15949if { (eval echo configure:15950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 15950 rm -rf conftest*
421173e6 15951 glibcpp_cv_func__sinhl_use=yes
38bd7296
BK
15952else
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
421173e6 15956 glibcpp_cv_func__sinhl_use=no
38bd7296
BK
15957fi
15958rm -f conftest*
421173e6 15959 ac_ext=c
38bd7296
BK
15960# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15961ac_cpp='$CPP $CPPFLAGS'
15962ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15963ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15964cross_compiling=$ac_cv_prog_cc_cross
15965
421173e6
PE
15966
15967fi
15968
15969 echo "$ac_t""$glibcpp_cv_func__sinhl_use" 1>&6
15970 if test x$glibcpp_cv_func__sinhl_use = x"yes"; then
38bd7296
BK
15971 for ac_func in _sinhl
15972do
15973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 15974echo "configure:15975: checking for $ac_func" >&5
38bd7296
BK
15975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978 cat > conftest.$ac_ext <<EOF
421173e6 15979#line 15980 "configure"
38bd7296
BK
15980#include "confdefs.h"
15981/* System header to define __stub macros and hopefully few prototypes,
15982 which can conflict with char $ac_func(); below. */
15983#include <assert.h>
15984/* Override any gcc2 internal prototype to avoid an error. */
15985/* We use char because int might match the return type of a gcc2
15986 builtin and then its argument prototype would still apply. */
15987char $ac_func();
15988
15989int main() {
15990
15991/* The GNU C library defines this for functions which it implements
15992 to always fail with ENOSYS. Some functions are actually named
15993 something starting with __ and the normal name is an alias. */
15994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995choke me
15996#else
15997$ac_func();
15998#endif
15999
16000; return 0; }
16001EOF
421173e6 16002if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16003 rm -rf conftest*
16004 eval "ac_cv_func_$ac_func=yes"
16005else
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16008 rm -rf conftest*
16009 eval "ac_cv_func_$ac_func=no"
16010fi
16011rm -f conftest*
16012fi
16013
16014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16015 echo "$ac_t""yes" 1>&6
16016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16017 cat >> confdefs.h <<EOF
16018#define $ac_tr_func 1
16019EOF
16020
16021else
16022 echo "$ac_t""no" 1>&6
16023fi
16024done
16025
16026 fi
16027
16028
421173e6
PE
16029 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16030echo "configure:16031: checking for _sqrtl declaration" >&5
16031 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16032 echo $ac_n "(cached) $ac_c" 1>&6
16033else
38bd7296 16034
421173e6
PE
16035
16036 ac_ext=C
38bd7296
BK
16037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16038ac_cpp='$CXXCPP $CPPFLAGS'
16039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16041cross_compiling=$ac_cv_prog_cxx_cross
16042
421173e6
PE
16043 cat > conftest.$ac_ext <<EOF
16044#line 16045 "configure"
38bd7296
BK
16045#include "confdefs.h"
16046#include <math.h>
16047int main() {
16048 _sqrtl(0);
16049; return 0; }
16050EOF
421173e6 16051if { (eval echo configure:16052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 16052 rm -rf conftest*
421173e6 16053 glibcpp_cv_func__sqrtl_use=yes
38bd7296
BK
16054else
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16057 rm -rf conftest*
421173e6 16058 glibcpp_cv_func__sqrtl_use=no
38bd7296
BK
16059fi
16060rm -f conftest*
421173e6 16061 ac_ext=c
38bd7296
BK
16062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16063ac_cpp='$CPP $CPPFLAGS'
16064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16066cross_compiling=$ac_cv_prog_cc_cross
16067
421173e6
PE
16068
16069fi
16070
16071 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16072 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
38bd7296
BK
16073 for ac_func in _sqrtl
16074do
16075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16076echo "configure:16077: checking for $ac_func" >&5
38bd7296
BK
16077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16078 echo $ac_n "(cached) $ac_c" 1>&6
16079else
16080 cat > conftest.$ac_ext <<EOF
421173e6 16081#line 16082 "configure"
38bd7296
BK
16082#include "confdefs.h"
16083/* System header to define __stub macros and hopefully few prototypes,
16084 which can conflict with char $ac_func(); below. */
16085#include <assert.h>
16086/* Override any gcc2 internal prototype to avoid an error. */
16087/* We use char because int might match the return type of a gcc2
16088 builtin and then its argument prototype would still apply. */
16089char $ac_func();
16090
16091int main() {
16092
16093/* The GNU C library defines this for functions which it implements
16094 to always fail with ENOSYS. Some functions are actually named
16095 something starting with __ and the normal name is an alias. */
16096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16097choke me
16098#else
16099$ac_func();
16100#endif
16101
16102; return 0; }
16103EOF
421173e6 16104if { (eval echo configure:16105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16105 rm -rf conftest*
16106 eval "ac_cv_func_$ac_func=yes"
16107else
16108 echo "configure: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 rm -rf conftest*
16111 eval "ac_cv_func_$ac_func=no"
16112fi
16113rm -f conftest*
16114fi
16115
16116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16117 echo "$ac_t""yes" 1>&6
16118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16119 cat >> confdefs.h <<EOF
16120#define $ac_tr_func 1
16121EOF
16122
16123else
16124 echo "$ac_t""no" 1>&6
16125fi
16126done
16127
16128 fi
16129
16130
421173e6
PE
16131 echo $ac_n "checking for _tanl declaration""... $ac_c" 1>&6
16132echo "configure:16133: checking for _tanl declaration" >&5
16133 if eval "test \"`echo '$''{'glibcpp_cv_func__tanl_use'+set}'`\" = set"; then
16134 echo $ac_n "(cached) $ac_c" 1>&6
16135else
38bd7296 16136
421173e6
PE
16137
16138 ac_ext=C
38bd7296
BK
16139# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16140ac_cpp='$CXXCPP $CPPFLAGS'
16141ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16142ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16143cross_compiling=$ac_cv_prog_cxx_cross
16144
421173e6
PE
16145 cat > conftest.$ac_ext <<EOF
16146#line 16147 "configure"
38bd7296
BK
16147#include "confdefs.h"
16148#include <math.h>
16149int main() {
16150 _tanl(0);
16151; return 0; }
16152EOF
421173e6 16153if { (eval echo configure:16154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 16154 rm -rf conftest*
421173e6 16155 glibcpp_cv_func__tanl_use=yes
38bd7296
BK
16156else
16157 echo "configure: failed program was:" >&5
16158 cat conftest.$ac_ext >&5
16159 rm -rf conftest*
421173e6 16160 glibcpp_cv_func__tanl_use=no
38bd7296
BK
16161fi
16162rm -f conftest*
421173e6 16163 ac_ext=c
38bd7296
BK
16164# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16165ac_cpp='$CPP $CPPFLAGS'
16166ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16167ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16168cross_compiling=$ac_cv_prog_cc_cross
16169
421173e6
PE
16170
16171fi
16172
16173 echo "$ac_t""$glibcpp_cv_func__tanl_use" 1>&6
16174 if test x$glibcpp_cv_func__tanl_use = x"yes"; then
38bd7296
BK
16175 for ac_func in _tanl
16176do
16177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16178echo "configure:16179: checking for $ac_func" >&5
38bd7296
BK
16179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16181else
16182 cat > conftest.$ac_ext <<EOF
421173e6 16183#line 16184 "configure"
38bd7296
BK
16184#include "confdefs.h"
16185/* System header to define __stub macros and hopefully few prototypes,
16186 which can conflict with char $ac_func(); below. */
16187#include <assert.h>
16188/* Override any gcc2 internal prototype to avoid an error. */
16189/* We use char because int might match the return type of a gcc2
16190 builtin and then its argument prototype would still apply. */
16191char $ac_func();
16192
16193int main() {
16194
16195/* The GNU C library defines this for functions which it implements
16196 to always fail with ENOSYS. Some functions are actually named
16197 something starting with __ and the normal name is an alias. */
16198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16199choke me
16200#else
16201$ac_func();
16202#endif
16203
16204; return 0; }
16205EOF
421173e6 16206if { (eval echo configure:16207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16207 rm -rf conftest*
16208 eval "ac_cv_func_$ac_func=yes"
16209else
16210 echo "configure: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16212 rm -rf conftest*
16213 eval "ac_cv_func_$ac_func=no"
16214fi
16215rm -f conftest*
16216fi
16217
16218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16219 echo "$ac_t""yes" 1>&6
16220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16221 cat >> confdefs.h <<EOF
16222#define $ac_tr_func 1
16223EOF
16224
16225else
16226 echo "$ac_t""no" 1>&6
16227fi
16228done
16229
16230 fi
16231
16232
421173e6
PE
16233 echo $ac_n "checking for _tanhl declaration""... $ac_c" 1>&6
16234echo "configure:16235: checking for _tanhl declaration" >&5
16235 if eval "test \"`echo '$''{'glibcpp_cv_func__tanhl_use'+set}'`\" = set"; then
16236 echo $ac_n "(cached) $ac_c" 1>&6
16237else
38bd7296 16238
421173e6
PE
16239
16240 ac_ext=C
38bd7296
BK
16241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16242ac_cpp='$CXXCPP $CPPFLAGS'
16243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16245cross_compiling=$ac_cv_prog_cxx_cross
16246
421173e6
PE
16247 cat > conftest.$ac_ext <<EOF
16248#line 16249 "configure"
38bd7296
BK
16249#include "confdefs.h"
16250#include <math.h>
16251int main() {
16252 _tanhl(0);
16253; return 0; }
16254EOF
421173e6 16255if { (eval echo configure:16256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 16256 rm -rf conftest*
421173e6 16257 glibcpp_cv_func__tanhl_use=yes
38bd7296
BK
16258else
16259 echo "configure: failed program was:" >&5
16260 cat conftest.$ac_ext >&5
16261 rm -rf conftest*
421173e6 16262 glibcpp_cv_func__tanhl_use=no
38bd7296
BK
16263fi
16264rm -f conftest*
421173e6 16265 ac_ext=c
38bd7296
BK
16266# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16267ac_cpp='$CPP $CPPFLAGS'
16268ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16269ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16270cross_compiling=$ac_cv_prog_cc_cross
16271
421173e6
PE
16272
16273fi
16274
16275 echo "$ac_t""$glibcpp_cv_func__tanhl_use" 1>&6
16276 if test x$glibcpp_cv_func__tanhl_use = x"yes"; then
38bd7296
BK
16277 for ac_func in _tanhl
16278do
16279echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16280echo "configure:16281: checking for $ac_func" >&5
38bd7296
BK
16281if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16282 echo $ac_n "(cached) $ac_c" 1>&6
16283else
16284 cat > conftest.$ac_ext <<EOF
421173e6 16285#line 16286 "configure"
38bd7296
BK
16286#include "confdefs.h"
16287/* System header to define __stub macros and hopefully few prototypes,
16288 which can conflict with char $ac_func(); below. */
16289#include <assert.h>
16290/* Override any gcc2 internal prototype to avoid an error. */
16291/* We use char because int might match the return type of a gcc2
16292 builtin and then its argument prototype would still apply. */
16293char $ac_func();
16294
16295int main() {
16296
16297/* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16301choke me
16302#else
16303$ac_func();
16304#endif
16305
16306; return 0; }
16307EOF
421173e6 16308if { (eval echo configure:16309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16309 rm -rf conftest*
16310 eval "ac_cv_func_$ac_func=yes"
16311else
16312 echo "configure: failed program was:" >&5
16313 cat conftest.$ac_ext >&5
16314 rm -rf conftest*
16315 eval "ac_cv_func_$ac_func=no"
16316fi
16317rm -f conftest*
16318fi
16319
16320if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16321 echo "$ac_t""yes" 1>&6
16322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16323 cat >> confdefs.h <<EOF
16324#define $ac_tr_func 1
16325EOF
16326
16327else
16328 echo "$ac_t""no" 1>&6
16329fi
16330done
16331
16332 fi
16333
16334
421173e6
PE
16335 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16336echo "configure:16337: checking for _sincosl declaration" >&5
16337 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16338 echo $ac_n "(cached) $ac_c" 1>&6
16339else
38bd7296 16340
421173e6
PE
16341
16342 ac_ext=C
38bd7296
BK
16343# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16344ac_cpp='$CXXCPP $CPPFLAGS'
16345ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16346ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16347cross_compiling=$ac_cv_prog_cxx_cross
16348
421173e6
PE
16349 cat > conftest.$ac_ext <<EOF
16350#line 16351 "configure"
38bd7296
BK
16351#include "confdefs.h"
16352#include <math.h>
16353int main() {
16354 _sincosl(0, 0, 0);
16355; return 0; }
16356EOF
421173e6 16357if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 16358 rm -rf conftest*
421173e6 16359 glibcpp_cv_func__sincosl_use=yes
38bd7296
BK
16360else
16361 echo "configure: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 rm -rf conftest*
421173e6 16364 glibcpp_cv_func__sincosl_use=no
38bd7296
BK
16365fi
16366rm -f conftest*
421173e6 16367 ac_ext=c
38bd7296
BK
16368# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16369ac_cpp='$CPP $CPPFLAGS'
16370ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16371ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16372cross_compiling=$ac_cv_prog_cc_cross
16373
421173e6
PE
16374
16375fi
16376
16377 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16378 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
38bd7296
BK
16379 for ac_func in _sincosl
16380do
16381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16382echo "configure:16383: checking for $ac_func" >&5
38bd7296
BK
16383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16385else
16386 cat > conftest.$ac_ext <<EOF
421173e6 16387#line 16388 "configure"
38bd7296
BK
16388#include "confdefs.h"
16389/* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func(); below. */
16391#include <assert.h>
16392/* Override any gcc2 internal prototype to avoid an error. */
16393/* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16395char $ac_func();
16396
16397int main() {
16398
16399/* The GNU C library defines this for functions which it implements
16400 to always fail with ENOSYS. Some functions are actually named
16401 something starting with __ and the normal name is an alias. */
16402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16403choke me
16404#else
16405$ac_func();
16406#endif
16407
16408; return 0; }
16409EOF
421173e6 16410if { (eval echo configure:16411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16411 rm -rf conftest*
16412 eval "ac_cv_func_$ac_func=yes"
16413else
16414 echo "configure: failed program was:" >&5
16415 cat conftest.$ac_ext >&5
16416 rm -rf conftest*
16417 eval "ac_cv_func_$ac_func=no"
16418fi
16419rm -f conftest*
16420fi
16421
16422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16423 echo "$ac_t""yes" 1>&6
16424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16425 cat >> confdefs.h <<EOF
16426#define $ac_tr_func 1
16427EOF
16428
16429else
16430 echo "$ac_t""no" 1>&6
16431fi
16432done
16433
16434 fi
16435
16436
421173e6
PE
16437 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
16438echo "configure:16439: checking for _finitel declaration" >&5
16439 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
38bd7296 16442
421173e6
PE
16443
16444 ac_ext=C
38bd7296
BK
16445# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16446ac_cpp='$CXXCPP $CPPFLAGS'
16447ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16448ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16449cross_compiling=$ac_cv_prog_cxx_cross
16450
421173e6
PE
16451 cat > conftest.$ac_ext <<EOF
16452#line 16453 "configure"
38bd7296
BK
16453#include "confdefs.h"
16454#include <math.h>
16455int main() {
16456 _finitel(0);
16457; return 0; }
16458EOF
421173e6 16459if { (eval echo configure:16460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296 16460 rm -rf conftest*
421173e6 16461 glibcpp_cv_func__finitel_use=yes
38bd7296
BK
16462else
16463 echo "configure: failed program was:" >&5
16464 cat conftest.$ac_ext >&5
16465 rm -rf conftest*
421173e6 16466 glibcpp_cv_func__finitel_use=no
38bd7296
BK
16467fi
16468rm -f conftest*
421173e6 16469 ac_ext=c
38bd7296
BK
16470# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16471ac_cpp='$CPP $CPPFLAGS'
16472ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16473ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16474cross_compiling=$ac_cv_prog_cc_cross
16475
421173e6
PE
16476
16477fi
16478
16479 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
16480 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
38bd7296
BK
16481 for ac_func in _finitel
16482do
16483echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16484echo "configure:16485: checking for $ac_func" >&5
38bd7296
BK
16485if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16486 echo $ac_n "(cached) $ac_c" 1>&6
16487else
16488 cat > conftest.$ac_ext <<EOF
421173e6 16489#line 16490 "configure"
38bd7296
BK
16490#include "confdefs.h"
16491/* System header to define __stub macros and hopefully few prototypes,
16492 which can conflict with char $ac_func(); below. */
16493#include <assert.h>
16494/* Override any gcc2 internal prototype to avoid an error. */
16495/* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16497char $ac_func();
16498
16499int main() {
16500
16501/* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505choke me
16506#else
16507$ac_func();
16508#endif
16509
16510; return 0; }
16511EOF
421173e6 16512if { (eval echo configure:16513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16513 rm -rf conftest*
16514 eval "ac_cv_func_$ac_func=yes"
16515else
16516 echo "configure: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16518 rm -rf conftest*
16519 eval "ac_cv_func_$ac_func=no"
16520fi
16521rm -f conftest*
16522fi
16523
16524if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16525 echo "$ac_t""yes" 1>&6
16526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16527 cat >> confdefs.h <<EOF
16528#define $ac_tr_func 1
16529EOF
16530
16531else
16532 echo "$ac_t""no" 1>&6
16533fi
16534done
16535
16536 fi
16537
16538
16539 LIBS="$ac_save_LIBS"
16540 CXXFLAGS="$ac_save_CXXFLAGS"
16541
16542
16543 for ac_hdr in complex.h
16544do
16545ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16546echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
421173e6 16547echo "configure:16548: checking for $ac_hdr" >&5
38bd7296
BK
16548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16549 echo $ac_n "(cached) $ac_c" 1>&6
16550else
16551 cat > conftest.$ac_ext <<EOF
421173e6 16552#line 16553 "configure"
38bd7296
BK
16553#include "confdefs.h"
16554#include <$ac_hdr>
16555EOF
16556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 16557{ (eval echo configure:16558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
38bd7296
BK
16558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16559if test -z "$ac_err"; then
16560 rm -rf conftest*
16561 eval "ac_cv_header_$ac_safe=yes"
16562else
16563 echo "$ac_err" >&5
16564 echo "configure: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 rm -rf conftest*
16567 eval "ac_cv_header_$ac_safe=no"
16568fi
16569rm -f conftest*
16570fi
16571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16572 echo "$ac_t""yes" 1>&6
16573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16574 cat >> confdefs.h <<EOF
16575#define $ac_tr_hdr 1
16576EOF
16577
16578else
16579 echo "$ac_t""no" 1>&6
16580fi
16581done
16582
16583 for ac_func in ccos ccosf ccosh ccoshf cexp cexpf c_log c_logf \
16584 clog10 clog10f cpow cpowf csin csinf csinh csinhf csqrt csqrtf \
11fc1858 16585 ctan ctanf ctanh ctanhf carg cargf nan hypot hypotf atan2f expf copysignf
38bd7296
BK
16586do
16587echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16588echo "configure:16589: checking for $ac_func" >&5
38bd7296
BK
16589if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16590 echo $ac_n "(cached) $ac_c" 1>&6
16591else
16592 cat > conftest.$ac_ext <<EOF
421173e6 16593#line 16594 "configure"
38bd7296
BK
16594#include "confdefs.h"
16595/* System header to define __stub macros and hopefully few prototypes,
16596 which can conflict with char $ac_func(); below. */
16597#include <assert.h>
16598/* Override any gcc2 internal prototype to avoid an error. */
16599/* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16601char $ac_func();
16602
16603int main() {
16604
16605/* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16609choke me
16610#else
16611$ac_func();
16612#endif
16613
16614; return 0; }
16615EOF
421173e6 16616if { (eval echo configure:16617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16617 rm -rf conftest*
16618 eval "ac_cv_func_$ac_func=yes"
16619else
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16622 rm -rf conftest*
16623 eval "ac_cv_func_$ac_func=no"
16624fi
16625rm -f conftest*
16626fi
16627
16628if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16629 echo "$ac_t""yes" 1>&6
16630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16631 cat >> confdefs.h <<EOF
16632#define $ac_tr_func 1
16633EOF
16634
16635else
16636 echo "$ac_t""no" 1>&6
16637LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16638fi
16639done
16640
16641
16642
11fc1858
BK
16643 USE_COMPLEX_LONG_DOUBLE=no
16644 if test x$ac_cv_func_atan2l = x"yes" \
16645 && test x$ac_cv_func_copysignl = x"yes"; then
16646 USE_COMPLEX_LONG_DOUBLE=yes
16647 for ac_func in ccoshl ccosl cexpl cpowl csinhl csinl \
16648 csqrtl ctanhl ctanl cargl hypotl signbitl c_logl clog10l
38bd7296
BK
16649do
16650echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16651echo "configure:16652: checking for $ac_func" >&5
38bd7296
BK
16652if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16653 echo $ac_n "(cached) $ac_c" 1>&6
16654else
16655 cat > conftest.$ac_ext <<EOF
421173e6 16656#line 16657 "configure"
38bd7296
BK
16657#include "confdefs.h"
16658/* System header to define __stub macros and hopefully few prototypes,
16659 which can conflict with char $ac_func(); below. */
16660#include <assert.h>
16661/* Override any gcc2 internal prototype to avoid an error. */
16662/* We use char because int might match the return type of a gcc2
16663 builtin and then its argument prototype would still apply. */
16664char $ac_func();
16665
16666int main() {
16667
16668/* The GNU C library defines this for functions which it implements
16669 to always fail with ENOSYS. Some functions are actually named
16670 something starting with __ and the normal name is an alias. */
16671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16672choke me
16673#else
16674$ac_func();
16675#endif
16676
16677; return 0; }
16678EOF
421173e6 16679if { (eval echo configure:16680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38bd7296
BK
16680 rm -rf conftest*
16681 eval "ac_cv_func_$ac_func=yes"
16682else
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16685 rm -rf conftest*
16686 eval "ac_cv_func_$ac_func=no"
16687fi
16688rm -f conftest*
16689fi
16690
16691if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16692 echo "$ac_t""yes" 1>&6
16693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16694 cat >> confdefs.h <<EOF
16695#define $ac_tr_func 1
16696EOF
16697
16698else
16699 echo "$ac_t""no" 1>&6
16700LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16701fi
16702done
16703
16704
11fc1858 16705 fi
38bd7296
BK
16706
16707
16708
16709
16710
16711
16712 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
421173e6 16713echo "configure:16714: checking for GNU C++ __complex__ support" >&5
38bd7296
BK
16714 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
16715 echo $ac_n "(cached) $ac_c" 1>&6
16716else
16717
16718
16719 ac_ext=C
16720# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16721ac_cpp='$CXXCPP $CPPFLAGS'
16722ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16723ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16724cross_compiling=$ac_cv_prog_cxx_cross
16725
16726 cat > conftest.$ac_ext <<EOF
421173e6 16727#line 16728 "configure"
38bd7296
BK
16728#include "confdefs.h"
16729struct dcomplex { __complex__ double x; }; \
16730 dcomplex f(const dcomplex& x) { return dcomplex(x); }
16731int main() {
16732\
16733 dcomplex x; f(x);
16734; return 0; }
16735EOF
421173e6 16736if { (eval echo configure:16737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38bd7296
BK
16737 rm -rf conftest*
16738 glibcpp_cv_complex=ok
2f103494
BK
16739else
16740 echo "configure: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16742 rm -rf conftest*
16743 glibcpp_cv_complex=buggy
16744
16745fi
16746rm -f conftest*
16747 ac_ext=c
16748# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16749ac_cpp='$CPP $CPPFLAGS'
16750ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16751ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16752cross_compiling=$ac_cv_prog_cc_cross
16753
16754
16755fi
16756
16757 echo "$ac_t""$glibcpp_cv_complex" 1>&6
16758 if test $glibcpp_cv_complex = buggy; then
16759 cat >> confdefs.h <<\EOF
16760#define _GLIBCPP_BUGGY_COMPLEX 1
16761EOF
16762
16763 fi
16764
16765 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
421173e6 16766echo "configure:16767: checking for GNU C++ __complex__ float support" >&5
2f103494
BK
16767 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
16769else
16770
16771
16772 ac_ext=C
16773# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16774ac_cpp='$CXXCPP $CPPFLAGS'
16775ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16776ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16777cross_compiling=$ac_cv_prog_cxx_cross
16778
16779 rm -f conftest.h
16780 cat > conftest.h <<EOB
16781 //
16782 // Check for buggy __complex__ that causes ICE in most versions of egcs
16783 // and gcc-2.95.x on certain platforms (eg., x86-win32).
16784 //
16785 // See http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00845.html for
16786 // more info on the bug itself.
16787 //
16788 struct
16789 float_complex
16790 {
16791 __complex__ float m_value;
16792 float_complex (float = 0.0f, float = 0.0f);
16793 float_complex (__complex__ float val) : m_value (val) {}
16794 float_complex foo (const float_complex &val)
16795 { return float_complex (~val.m_value); }
16796 };
16797EOB
16798 cat > conftest.$ac_ext <<EOF
421173e6 16799#line 16800 "configure"
2f103494
BK
16800#include "confdefs.h"
16801#include "conftest.h"
16802int main() {
16803
16804; return 0; }
16805EOF
421173e6 16806if { (eval echo configure:16807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2f103494
BK
16807 rm -rf conftest*
16808 glibcpp_cv_float_complex=ok
16809else
16810 echo "configure: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16812 rm -rf conftest*
16813 glibcpp_cv_float_complex=buggy
16814
16815fi
16816rm -f conftest*
16817 ac_ext=c
16818# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16819ac_cpp='$CPP $CPPFLAGS'
16820ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16821ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16822cross_compiling=$ac_cv_prog_cc_cross
16823
16824
16825fi
16826
16827 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
16828 if test $glibcpp_cv_float_complex = buggy; then
16829 cat >> confdefs.h <<\EOF
16830#define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
16831EOF
16832
16833 fi
b2dad0e3
BK
16834
16835
3840fa2a
BK
16836
16837 ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
b2dad0e3 16838echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
421173e6 16839echo "configure:16840: checking for wchar.h" >&5
b2dad0e3
BK
16840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16841 echo $ac_n "(cached) $ac_c" 1>&6
16842else
16843 cat > conftest.$ac_ext <<EOF
421173e6 16844#line 16845 "configure"
b2dad0e3
BK
16845#include "confdefs.h"
16846#include <wchar.h>
16847EOF
16848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 16849{ (eval echo configure:16850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
16850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16851if test -z "$ac_err"; then
16852 rm -rf conftest*
16853 eval "ac_cv_header_$ac_safe=yes"
16854else
16855 echo "$ac_err" >&5
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16858 rm -rf conftest*
16859 eval "ac_cv_header_$ac_safe=no"
16860fi
16861rm -f conftest*
16862fi
16863if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16864 echo "$ac_t""yes" 1>&6
3840fa2a
BK
16865 ac_has_wchar_h=yes
16866else
16867 echo "$ac_t""no" 1>&6
16868ac_has_wchar_h=no
16869fi
16870
16871 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16872echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
421173e6 16873echo "configure:16874: checking for wctype.h" >&5
3840fa2a
BK
16874if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16876else
b2dad0e3 16877 cat > conftest.$ac_ext <<EOF
421173e6 16878#line 16879 "configure"
3840fa2a
BK
16879#include "confdefs.h"
16880#include <wctype.h>
16881EOF
16882ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 16883{ (eval echo configure:16884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840fa2a
BK
16884ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16885if test -z "$ac_err"; then
16886 rm -rf conftest*
16887 eval "ac_cv_header_$ac_safe=yes"
16888else
16889 echo "$ac_err" >&5
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16892 rm -rf conftest*
16893 eval "ac_cv_header_$ac_safe=no"
16894fi
16895rm -f conftest*
16896fi
16897if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16898 echo "$ac_t""yes" 1>&6
16899 ac_has_wctype_h=yes
16900else
16901 echo "$ac_t""no" 1>&6
16902ac_has_wctype_h=no
16903fi
16904
16905
16906 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then
16907
16908 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
421173e6 16909echo "configure:16910: checking for mbstate_t" >&5
3840fa2a 16910 cat > conftest.$ac_ext <<EOF
421173e6 16911#line 16912 "configure"
b2dad0e3
BK
16912#include "confdefs.h"
16913#include <wchar.h>
16914int main() {
16915mbstate_t teststate;
16916; return 0; }
16917EOF
421173e6 16918if { (eval echo configure:16919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16919 rm -rf conftest*
16920 use_native_mbstatet=yes
16921else
16922 echo "configure: failed program was:" >&5
16923 cat conftest.$ac_ext >&5
16924 rm -rf conftest*
16925 use_native_mbstatet=no
16926fi
16927rm -f conftest*
3840fa2a
BK
16928 echo "$ac_t""$use_native_mbstatet" 1>&6
16929 if test x"$use_native_mbstatet" = xno; then
16930 cat >> confdefs.h <<\EOF
b2dad0e3
BK
16931#define _GLIBCPP_NEED_MBSTATE_T 1
16932EOF
16933
3840fa2a 16934 fi
b2dad0e3 16935
3840fa2a 16936 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
421173e6 16937echo "configure:16938: checking for WCHAR_MIN and WCHAR_MAX" >&5
3840fa2a 16938 cat > conftest.$ac_ext <<EOF
421173e6 16939#line 16940 "configure"
b2dad0e3
BK
16940#include "confdefs.h"
16941#include <wchar.h>
16942int main() {
16943int i = WCHAR_MIN; int j = WCHAR_MAX;
16944; return 0; }
16945EOF
421173e6 16946if { (eval echo configure:16947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16947 rm -rf conftest*
16948 has_wchar_minmax=yes
16949else
16950 echo "configure: failed program was:" >&5
16951 cat conftest.$ac_ext >&5
16952 rm -rf conftest*
16953 has_wchar_minmax=no
16954fi
16955rm -f conftest*
3840fa2a 16956 echo "$ac_t""$has_wchar_minmax" 1>&6
b2dad0e3 16957
3840fa2a 16958 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
421173e6 16959echo "configure:16960: checking for WEOF" >&5
3840fa2a 16960 cat > conftest.$ac_ext <<EOF
421173e6 16961#line 16962 "configure"
b2dad0e3
BK
16962#include "confdefs.h"
16963
3840fa2a
BK
16964 #include <wchar.h>
16965 #include <stddef.h>
b2dad0e3
BK
16966int main() {
16967wint_t i = WEOF;
16968; return 0; }
16969EOF
421173e6 16970if { (eval echo configure:16971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
16971 rm -rf conftest*
16972 has_weof=yes
16973else
16974 echo "configure: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16976 rm -rf conftest*
16977 has_weof=no
16978fi
16979rm -f conftest*
3840fa2a 16980 echo "$ac_t""$has_weof" 1>&6
b2dad0e3 16981
3840fa2a 16982 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
b2dad0e3
BK
16983do
16984echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 16985echo "configure:16986: checking for $ac_func" >&5
b2dad0e3
BK
16986if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16987 echo $ac_n "(cached) $ac_c" 1>&6
16988else
16989 cat > conftest.$ac_ext <<EOF
421173e6 16990#line 16991 "configure"
b2dad0e3
BK
16991#include "confdefs.h"
16992/* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func(); below. */
16994#include <assert.h>
16995/* Override any gcc2 internal prototype to avoid an error. */
16996/* We use char because int might match the return type of a gcc2
16997 builtin and then its argument prototype would still apply. */
16998char $ac_func();
16999
17000int main() {
17001
17002/* The GNU C library defines this for functions which it implements
17003 to always fail with ENOSYS. Some functions are actually named
17004 something starting with __ and the normal name is an alias. */
17005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17006choke me
17007#else
17008$ac_func();
17009#endif
17010
17011; return 0; }
17012EOF
421173e6 17013if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
17014 rm -rf conftest*
17015 eval "ac_cv_func_$ac_func=yes"
17016else
17017 echo "configure: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17019 rm -rf conftest*
17020 eval "ac_cv_func_$ac_func=no"
17021fi
17022rm -f conftest*
17023fi
17024
17025if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17026 echo "$ac_t""yes" 1>&6
17027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17028 cat >> confdefs.h <<EOF
17029#define $ac_tr_func 1
17030EOF
3840fa2a 17031 ac_wfuncs=yes
b2dad0e3
BK
17032else
17033 echo "$ac_t""no" 1>&6
3840fa2a 17034ac_wfuncs=no
b2dad0e3
BK
17035fi
17036done
17037
17038
3840fa2a 17039 echo $ac_n "checking for ISO C9X wchar_t support""... $ac_c" 1>&6
421173e6 17040echo "configure:17041: checking for ISO C9X wchar_t support" >&5
3840fa2a
BK
17041 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes && test x"$ac_wfuncs" = xyes; then
17042 ac_isoC9X_wchar_t=yes
17043 else
17044 ac_isoC9X_wchar_t=no
17045 fi
17046 echo "$ac_t""$ac_isoC9X_wchar_t" 1>&6
b2dad0e3 17047
3840fa2a
BK
17048 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
17049echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
421173e6 17050echo "configure:17051: checking for iconv.h" >&5
3840fa2a
BK
17051if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17052 echo $ac_n "(cached) $ac_c" 1>&6
17053else
17054 cat > conftest.$ac_ext <<EOF
421173e6 17055#line 17056 "configure"
3840fa2a
BK
17056#include "confdefs.h"
17057#include <iconv.h>
b2dad0e3 17058EOF
3840fa2a 17059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 17060{ (eval echo configure:17061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840fa2a
BK
17061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17062if test -z "$ac_err"; then
17063 rm -rf conftest*
17064 eval "ac_cv_header_$ac_safe=yes"
17065else
17066 echo "$ac_err" >&5
17067 echo "configure: failed program was:" >&5
17068 cat conftest.$ac_ext >&5
17069 rm -rf conftest*
17070 eval "ac_cv_header_$ac_safe=no"
17071fi
17072rm -f conftest*
17073fi
17074if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17075 echo "$ac_t""yes" 1>&6
17076 ac_has_iconv_h=yes
b2dad0e3
BK
17077else
17078 echo "$ac_t""no" 1>&6
3840fa2a
BK
17079ac_has_iconv_h=no
17080fi
b2dad0e3 17081
3840fa2a
BK
17082 for ac_func in iconv_open iconv_close iconv
17083do
17084echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 17085echo "configure:17086: checking for $ac_func" >&5
3840fa2a
BK
17086if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17087 echo $ac_n "(cached) $ac_c" 1>&6
17088else
17089 cat > conftest.$ac_ext <<EOF
421173e6 17090#line 17091 "configure"
3840fa2a
BK
17091#include "confdefs.h"
17092/* System header to define __stub macros and hopefully few prototypes,
17093 which can conflict with char $ac_func(); below. */
17094#include <assert.h>
17095/* Override any gcc2 internal prototype to avoid an error. */
17096/* We use char because int might match the return type of a gcc2
17097 builtin and then its argument prototype would still apply. */
17098char $ac_func();
17099
17100int main() {
17101
17102/* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17106choke me
17107#else
17108$ac_func();
17109#endif
17110
17111; return 0; }
b2dad0e3 17112EOF
421173e6 17113if { (eval echo configure:17114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840fa2a
BK
17114 rm -rf conftest*
17115 eval "ac_cv_func_$ac_func=yes"
17116else
17117 echo "configure: failed program was:" >&5
17118 cat conftest.$ac_ext >&5
17119 rm -rf conftest*
17120 eval "ac_cv_func_$ac_func=no"
17121fi
17122rm -f conftest*
17123fi
b2dad0e3 17124
3840fa2a
BK
17125if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17126 echo "$ac_t""yes" 1>&6
17127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17128 cat >> confdefs.h <<EOF
17129#define $ac_tr_func 1
17130EOF
17131 ac_XPG2funcs=yes
17132else
17133 echo "$ac_t""no" 1>&6
17134ac_XPG2funcs=no
b2dad0e3 17135fi
3840fa2a
BK
17136done
17137
17138
17139 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
421173e6 17140echo "configure:17141: checking for XPG2 wchar_t support" >&5
3840fa2a
BK
17141 if test x"$ac_has_iconv_h" = xyes && test x"$ac_XPG2funcs" = xyes; then
17142 ac_XPG2_wchar_t=yes
17143 else
17144 ac_XPG2_wchar_t=no
17145 fi
17146 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
17147
dd75251f
BK
17148 # ac_isoC9X_wchar_t=no
17149
17150 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
421173e6 17151echo "configure:17152: checking for enabled wchar_t specializations" >&5
3840fa2a
BK
17152 if test x"$ac_isoC9X_wchar_t" = xyes && test x"$ac_XPG2_wchar_t" = xyes; then
17153 libinst_wstring_la="libinst-wstring.la"
17154 cat >> confdefs.h <<\EOF
17155#define _GLIBCPP_USE_WCHAR_T 1
17156EOF
17157
17158 echo "$ac_t"""yes"" 1>&6
17159 else
17160 libinst_wstring_la=""
17161 echo "$ac_t"""no"" 1>&6
17162 fi
17163
b2dad0e3 17164
3840fa2a
BK
17165 else
17166 echo "configure: warning: <wchar.h> not found" 1>&2
17167 cat >> confdefs.h <<\EOF
17168#define _GLIBCPP_NEED_MBSTATE_T 1
17169EOF
17170
17171 fi
b2dad0e3
BK
17172
17173
17174 ac_safe=`echo "ctype.h" | sed 'y%./+-%__p_%'`
17175echo $ac_n "checking for ctype.h""... $ac_c" 1>&6
421173e6 17176echo "configure:17177: checking for ctype.h" >&5
b2dad0e3
BK
17177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17178 echo $ac_n "(cached) $ac_c" 1>&6
17179else
17180 cat > conftest.$ac_ext <<EOF
421173e6 17181#line 17182 "configure"
b2dad0e3
BK
17182#include "confdefs.h"
17183#include <ctype.h>
17184EOF
17185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 17186{ (eval echo configure:17187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
17187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17188if test -z "$ac_err"; then
17189 rm -rf conftest*
17190 eval "ac_cv_header_$ac_safe=yes"
17191else
17192 echo "$ac_err" >&5
17193 echo "configure: failed program was:" >&5
17194 cat conftest.$ac_ext >&5
17195 rm -rf conftest*
17196 eval "ac_cv_header_$ac_safe=no"
17197fi
17198rm -f conftest*
17199fi
17200if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17201 echo "$ac_t""yes" 1>&6
17202
17203
17204 ctype_default=yes
17205
8445e42a 17206 echo $ac_n "checking <ctype> for gnu-linux ""... $ac_c" 1>&6
421173e6 17207echo "configure:17208: checking <ctype> for gnu-linux " >&5
b2dad0e3 17208 cat > conftest.$ac_ext <<EOF
421173e6 17209#line 17210 "configure"
b2dad0e3
BK
17210#include "confdefs.h"
17211#include <ctype.h>
17212int main() {
17213int
17214 foo (int a)
17215 { return _ISspace + _ISprint + _IScntrl + _ISupper + _ISlower + _ISalpha \
17216 + _ISdigit + _ISpunct + _ISxdigit + _ISalnum + _ISgraph \
17217 + __ctype_tolower[a] + __ctype_toupper[a] + __ctype_b[a];}
17218; return 0; }
17219EOF
421173e6 17220if { (eval echo configure:17221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17221 rm -rf conftest*
17222 \
17223 ctype_linux=yes
17224else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 ctype_linux=no
17229fi
17230rm -f conftest*
17231 echo "$ac_t""$ctype_linux" 1>&6
17232 if test $ctype_linux = "yes"; then
17233 ctype_include_dir="config/gnu-linux"
17234 ctype_default=no
17235 fi
17236
65dd21b7
LR
17237 if test $ctype_default = "yes"; then
17238 echo $ac_n "checking <ctype> for freebsd 4.0 ""... $ac_c" 1>&6
421173e6 17239echo "configure:17240: checking <ctype> for freebsd 4.0 " >&5
7b267e3e 17240 cat > conftest.$ac_ext <<EOF
421173e6 17241#line 17242 "configure"
7b267e3e
BK
17242#include "confdefs.h"
17243#include <ctype.h>
17244int main() {
17245int
17246 foo (int a)
17247 { return _CTYPE_S + _CTYPE_R + _CTYPE_C + _CTYPE_U + _CTYPE_L + _CTYPE_A \
17248 + _CTYPE_D + _CTYPE_P + _CTYPE_X + _CTYPE_G ;}
17249; return 0; }
17250EOF
421173e6 17251if { (eval echo configure:17252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7b267e3e
BK
17252 rm -rf conftest*
17253 \
17254 ctype_bsd=yes
17255else
17256 echo "configure: failed program was:" >&5
17257 cat conftest.$ac_ext >&5
17258 rm -rf conftest*
17259 ctype_bsd=no
17260fi
17261rm -f conftest*
17262 echo "$ac_t""$ctype_bsd" 1>&6
17263 if test $ctype_bsd = "yes"; then
17264 ctype_include_dir="config/bsd"
17265 ctype_default=no
65dd21b7 17266 fi
7b267e3e
BK
17267 fi
17268
65dd21b7
LR
17269 if test $ctype_default = "yes"; then
17270 echo $ac_n "checking <ctype> for freebsd 3.4 ""... $ac_c" 1>&6
421173e6 17271echo "configure:17272: checking <ctype> for freebsd 3.4 " >&5
6ad50467 17272 cat > conftest.$ac_ext <<EOF
421173e6 17273#line 17274 "configure"
6ad50467
BK
17274#include "confdefs.h"
17275#include <ctype.h>
17276int main() {
17277int
17278 foo (int a)
17279 { return _S + _R + _C + _U + _L + _A \
17280 + _D + _P + _X + _G + __istype (a, 0);}
17281; return 0; }
17282EOF
421173e6 17283if { (eval echo configure:17284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6ad50467
BK
17284 rm -rf conftest*
17285 \
17286 ctype_freebsd34=yes
17287else
17288 echo "configure: failed program was:" >&5
17289 cat conftest.$ac_ext >&5
17290 rm -rf conftest*
17291 ctype_freebsd34=no
17292fi
17293rm -f conftest*
17294 echo "$ac_t""$ctype_freebsd34" 1>&6
17295 if test $ctype_freebsd34 = "yes"; then
17296 ctype_include_dir="config/bsd"
17297 ctype_default=no
65dd21b7 17298 fi
6ad50467
BK
17299 fi
17300
b2dad0e3 17301 if test $ctype_default = "yes"; then
8445e42a 17302 echo $ac_n "checking <ctype> for solaris 2.6,7,8 ""... $ac_c" 1>&6
421173e6 17303echo "configure:17304: checking <ctype> for solaris 2.6,7,8 " >&5
b2dad0e3 17304 cat > conftest.$ac_ext <<EOF
421173e6 17305#line 17306 "configure"
b2dad0e3
BK
17306#include "confdefs.h"
17307#include <ctype.h>
17308int main() {
17309int
17310 foo (int a)
17311 { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \
17312 + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \
17313 + __trans_lower[a] + __trans_upper[a] + __ctype_mask[a];}
17314; return 0; }
17315EOF
421173e6 17316if { (eval echo configure:17317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17317 rm -rf conftest*
17318 \
17319 ctype_solaris=yes
17320else
17321 echo "configure: failed program was:" >&5
17322 cat conftest.$ac_ext >&5
17323 rm -rf conftest*
17324 ctype_solaris=no
17325fi
17326rm -f conftest*
17327 echo "$ac_t""$ctype_solaris" 1>&6
17328
17329 if test $ctype_solaris = "yes"; then
17330 echo $ac_n "checking for version""... $ac_c" 1>&6
421173e6 17331echo "configure:17332: checking for version" >&5
b2dad0e3
BK
17332 ac_ext=C
17333# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17334ac_cpp='$CXXCPP $CPPFLAGS'
17335ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17336ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17337cross_compiling=$ac_cv_prog_cxx_cross
17338
17339 cat > conftest.$ac_ext <<EOF
421173e6 17340#line 17341 "configure"
b2dad0e3
BK
17341#include "confdefs.h"
17342#include <ctype.h>
17343int main() {
17344typedef long* __to_type; __to_type const& _M_toupper = __trans_upper;
17345; return 0; }
17346EOF
421173e6 17347if { (eval echo configure:17348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17348 rm -rf conftest*
17349 \
17350 ctype_solaris26=yes
17351else
17352 echo "configure: failed program was:" >&5
17353 cat conftest.$ac_ext >&5
17354 rm -rf conftest*
17355 ctype_solaris26=no
17356fi
17357rm -f conftest*
17358 ac_ext=c
17359# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17360ac_cpp='$CPP $CPPFLAGS'
17361ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17362ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17363cross_compiling=$ac_cv_prog_cc_cross
17364
17365 if test $ctype_solaris26 = "yes"; then
17366 ctype_include_dir="config/solaris/solaris2.6"
17367 echo "$ac_t"""solaris2.6"" 1>&6
17368 ctype_default=no
17369 else
17370 ctype_include_dir="config/solaris/solaris2.7"
32a4595e 17371 echo "$ac_t"""solaris2.7,8"" 1>&6
b2dad0e3
BK
17372 ctype_default=no
17373 fi
17374 fi
17375 fi
17376
17377 if test $ctype_default = "yes"; then
8445e42a 17378 echo $ac_n "checking <ctype> for solaris 2.5.1 ""... $ac_c" 1>&6
421173e6 17379echo "configure:17380: checking <ctype> for solaris 2.5.1 " >&5
b2dad0e3 17380 cat > conftest.$ac_ext <<EOF
421173e6 17381#line 17382 "configure"
b2dad0e3
BK
17382#include "confdefs.h"
17383#include <ctype.h>
17384int main() {
17385int
17386 foo (int a)
17387 { return _U + _L + _N + _S + _P + _C + _X + _B \
17388 + __ctype[a];}
17389; return 0; }
17390EOF
421173e6 17391if { (eval echo configure:17392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17392 rm -rf conftest*
17393 \
17394 ctype_solaris25=yes
17395else
17396 echo "configure: failed program was:" >&5
17397 cat conftest.$ac_ext >&5
17398 rm -rf conftest*
17399 ctype_solaris25=no
17400fi
17401rm -f conftest*
17402 echo "$ac_t""$ctype_solaris25" 1>&6
17403 if test $ctype_solaris25 = "yes"; then
17404 ctype_include_dir="config/solaris/solaris2.5"
17405 ctype_default=no
17406 fi
17407 fi
17408
17409 if test $ctype_default = "yes"; then
8445e42a 17410 echo $ac_n "checking <ctype> for aix ""... $ac_c" 1>&6
421173e6 17411echo "configure:17412: checking <ctype> for aix " >&5
b2dad0e3 17412 cat > conftest.$ac_ext <<EOF
421173e6 17413#line 17414 "configure"
b2dad0e3
BK
17414#include "confdefs.h"
17415#include <ctype.h>
17416int main() {
17417int
17418 foo (int a)
17419 { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \
17420 + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \
17421 + _VALC('a') + _IS('c', 0);}
17422; return 0; }
17423EOF
421173e6 17424if { (eval echo configure:17425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17425 rm -rf conftest*
17426 \
17427 ctype_aix=yes
17428else
17429 echo "configure: failed program was:" >&5
17430 cat conftest.$ac_ext >&5
17431 rm -rf conftest*
17432 ctype_aix=no
17433fi
17434rm -f conftest*
17435 echo "$ac_t""$ctype_aix" 1>&6
17436 if test $ctype_aix = "yes"; then
17437 ctype_include_dir="config/aix"
17438 ctype_default=no
17439 fi
17440 fi
17441
17442 if test $ctype_default = "yes"; then
8445e42a 17443 echo $ac_n "checking <ctype> for newlib ""... $ac_c" 1>&6
421173e6 17444echo "configure:17445: checking <ctype> for newlib " >&5
b2dad0e3 17445 cat > conftest.$ac_ext <<EOF
421173e6 17446#line 17447 "configure"
b2dad0e3
BK
17447#include "confdefs.h"
17448#include <ctype.h>
17449int main() {
17450int
17451 foo (int a)
17452 { return _U + _L + _N + _S + _P + _C + _X + _B \
17453 + _ctype_[a];}
17454; return 0; }
17455EOF
421173e6 17456if { (eval echo configure:17457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2dad0e3
BK
17457 rm -rf conftest*
17458 \
17459 ctype_newlib=yes
17460else
17461 echo "configure: failed program was:" >&5
17462 cat conftest.$ac_ext >&5
17463 rm -rf conftest*
17464 ctype_newlib=no
17465fi
17466rm -f conftest*
17467 echo "$ac_t""$ctype_newlib" 1>&6
17468 if test $ctype_newlib = "yes"; then
17469 ctype_include_dir="config/newlib"
17470 ctype_default=no
17471 fi
17472 fi
17473
17474 if test $ctype_default = "yes"; then
17475 ctype_include_dir="config/generic"
17476 echo "configure: warning: "Using default ctype headers."" 1>&2
17477 fi
17478
17479
17480else
17481 echo "$ac_t""no" 1>&6
17482fi
17483
17484
17485
17486 for ac_hdr in unistd.h
17487do
17488ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17489echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
421173e6 17490echo "configure:17491: checking for $ac_hdr" >&5
b2dad0e3
BK
17491if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17492 echo $ac_n "(cached) $ac_c" 1>&6
17493else
17494 cat > conftest.$ac_ext <<EOF
421173e6 17495#line 17496 "configure"
b2dad0e3
BK
17496#include "confdefs.h"
17497#include <$ac_hdr>
17498EOF
17499ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
421173e6 17500{ (eval echo configure:17501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
17501ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17502if test -z "$ac_err"; then
17503 rm -rf conftest*
17504 eval "ac_cv_header_$ac_safe=yes"
17505else
17506 echo "$ac_err" >&5
17507 echo "configure: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17509 rm -rf conftest*
17510 eval "ac_cv_header_$ac_safe=no"
17511fi
17512rm -f conftest*
17513fi
17514if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17515 echo "$ac_t""yes" 1>&6
17516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17517 cat >> confdefs.h <<EOF
17518#define $ac_tr_hdr 1
17519EOF
17520
17521else
17522 echo "$ac_t""no" 1>&6
17523fi
17524done
17525
17526for ac_func in getpagesize
17527do
17528echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
421173e6 17529echo "configure:17530: checking for $ac_func" >&5
b2dad0e3
BK
17530if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17531 echo $ac_n "(cached) $ac_c" 1>&6
17532else
17533 cat > conftest.$ac_ext <<EOF
421173e6 17534#line 17535 "configure"
b2dad0e3
BK
17535#include "confdefs.h"
17536/* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func(); below. */
17538#include <assert.h>
17539/* Override any gcc2 internal prototype to avoid an error. */
17540/* We use char because int might match the return type of a gcc2
17541 builtin and then its argument prototype would still apply. */
17542char $ac_func();
17543
17544int main() {
17545
17546/* The GNU C library defines this for functions which it implements
17547 to always fail with ENOSYS. Some functions are actually named
17548 something starting with __ and the normal name is an alias. */
17549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17550choke me
17551#else
17552$ac_func();
17553#endif
17554
17555; return 0; }
17556EOF
421173e6 17557if { (eval echo configure:17558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
17558 rm -rf conftest*
17559 eval "ac_cv_func_$ac_func=yes"
17560else
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17563 rm -rf conftest*
17564 eval "ac_cv_func_$ac_func=no"
17565fi
17566rm -f conftest*
17567fi
17568
17569if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17570 echo "$ac_t""yes" 1>&6
17571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17572 cat >> confdefs.h <<EOF
17573#define $ac_tr_func 1
17574EOF
17575
17576else
17577 echo "$ac_t""no" 1>&6
17578fi
17579done
17580
17581echo $ac_n "checking for working mmap""... $ac_c" 1>&6
421173e6 17582echo "configure:17583: checking for working mmap" >&5
b2dad0e3
BK
17583if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17584 echo $ac_n "(cached) $ac_c" 1>&6
17585else
17586 if test "$cross_compiling" = yes; then
17587 ac_cv_func_mmap_fixed_mapped=no
17588else
17589 cat > conftest.$ac_ext <<EOF
421173e6 17590#line 17591 "configure"
b2dad0e3
BK
17591#include "confdefs.h"
17592
17593/* Thanks to Mike Haertel and Jim Avera for this test.
17594 Here is a matrix of mmap possibilities:
17595 mmap private not fixed
17596 mmap private fixed at somewhere currently unmapped
17597 mmap private fixed at somewhere already mapped
17598 mmap shared not fixed
17599 mmap shared fixed at somewhere currently unmapped
17600 mmap shared fixed at somewhere already mapped
17601 For private mappings, we should verify that changes cannot be read()
17602 back from the file, nor mmap's back from the file at a different
17603 address. (There have been systems where private was not correctly
17604 implemented like the infamous i386 svr4.0, and systems where the
17605 VM page cache was not coherent with the filesystem buffer cache
17606 like early versions of FreeBSD and possibly contemporary NetBSD.)
17607 For shared mappings, we should conversely verify that changes get
17608 propogated back to all the places they're supposed to be.
17609
17610 Grep wants private fixed already mapped.
17611 The main things grep needs to know about mmap are:
17612 * does it exist and is it safe to write into the mmap'd area
17613 * how to use it (BSD variants) */
17614#include <sys/types.h>
17615#include <fcntl.h>
17616#include <sys/mman.h>
17617
17618/* This mess was copied from the GNU getpagesize.h. */
17619#ifndef HAVE_GETPAGESIZE
17620# ifdef HAVE_UNISTD_H
17621# include <unistd.h>
17622# endif
17623
17624/* Assume that all systems that can run configure have sys/param.h. */
17625# ifndef HAVE_SYS_PARAM_H
17626# define HAVE_SYS_PARAM_H 1
17627# endif
17628
17629# ifdef _SC_PAGESIZE
17630# define getpagesize() sysconf(_SC_PAGESIZE)
17631# else /* no _SC_PAGESIZE */
17632# ifdef HAVE_SYS_PARAM_H
17633# include <sys/param.h>
17634# ifdef EXEC_PAGESIZE
17635# define getpagesize() EXEC_PAGESIZE
17636# else /* no EXEC_PAGESIZE */
17637# ifdef NBPG
17638# define getpagesize() NBPG * CLSIZE
17639# ifndef CLSIZE
17640# define CLSIZE 1
17641# endif /* no CLSIZE */
17642# else /* no NBPG */
17643# ifdef NBPC
17644# define getpagesize() NBPC
17645# else /* no NBPC */
17646# ifdef PAGESIZE
17647# define getpagesize() PAGESIZE
17648# endif /* PAGESIZE */
17649# endif /* no NBPC */
17650# endif /* no NBPG */
17651# endif /* no EXEC_PAGESIZE */
17652# else /* no HAVE_SYS_PARAM_H */
17653# define getpagesize() 8192 /* punt totally */
17654# endif /* no HAVE_SYS_PARAM_H */
17655# endif /* no _SC_PAGESIZE */
17656
17657#endif /* no HAVE_GETPAGESIZE */
17658
17659#ifdef __cplusplus
17660extern "C" { void *malloc(unsigned); }
17661#else
17662char *malloc();
17663#endif
17664
17665int
17666main()
17667{
17668 char *data, *data2, *data3;
17669 int i, pagesize;
17670 int fd;
17671
17672 pagesize = getpagesize();
17673
17674 /*
17675 * First, make a file with some known garbage in it.
17676 */
17677 data = malloc(pagesize);
17678 if (!data)
17679 exit(1);
17680 for (i = 0; i < pagesize; ++i)
17681 *(data + i) = rand();
17682 umask(0);
17683 fd = creat("conftestmmap", 0600);
17684 if (fd < 0)
17685 exit(1);
17686 if (write(fd, data, pagesize) != pagesize)
17687 exit(1);
17688 close(fd);
17689
17690 /*
17691 * Next, try to mmap the file at a fixed address which
17692 * already has something else allocated at it. If we can,
17693 * also make sure that we see the same garbage.
17694 */
17695 fd = open("conftestmmap", O_RDWR);
17696 if (fd < 0)
17697 exit(1);
17698 data2 = malloc(2 * pagesize);
17699 if (!data2)
17700 exit(1);
17701 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17702 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17703 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17704 exit(1);
17705 for (i = 0; i < pagesize; ++i)
17706 if (*(data + i) != *(data2 + i))
17707 exit(1);
17708
17709 /*
17710 * Finally, make sure that changes to the mapped area
17711 * do not percolate back to the file as seen by read().
17712 * (This is a bug on some variants of i386 svr4.0.)
17713 */
17714 for (i = 0; i < pagesize; ++i)
17715 *(data2 + i) = *(data2 + i) + 1;
17716 data3 = malloc(pagesize);
17717 if (!data3)
17718 exit(1);
17719 if (read(fd, data3, pagesize) != pagesize)
17720 exit(1);
17721 for (i = 0; i < pagesize; ++i)
17722 if (*(data + i) != *(data3 + i))
17723 exit(1);
17724 close(fd);
17725 unlink("conftestmmap");
17726 exit(0);
17727}
17728
17729EOF
421173e6 17730if { (eval echo configure:17731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
b2dad0e3
BK
17731then
17732 ac_cv_func_mmap_fixed_mapped=yes
17733else
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17736 rm -fr conftest*
17737 ac_cv_func_mmap_fixed_mapped=no
17738fi
17739rm -fr conftest*
17740fi
17741
17742fi
17743
17744echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17745if test $ac_cv_func_mmap_fixed_mapped = yes; then
17746 cat >> confdefs.h <<\EOF
17747#define HAVE_MMAP 1
17748EOF
17749
17750fi
17751
17752fi
17753
17754
17755
17756if test "$CANADIAN" = yes; then
17757 CANADIAN_TRUE=
17758 CANADIAN_FALSE='#'
17759else
17760 CANADIAN_TRUE='#'
17761 CANADIAN_FALSE=
17762fi
17763
17764
17765if test "$NULL_TARGET" = yes; then
17766 NULL_TARGET_TRUE=
17767 NULL_TARGET_FALSE='#'
17768else
17769 NULL_TARGET_TRUE='#'
17770 NULL_TARGET_FALSE=
17771fi
17772
17773
17774if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
17775 NATIVE_TRUE=
17776 NATIVE_FALSE='#'
17777else
17778 NATIVE_TRUE='#'
17779 NATIVE_FALSE=
17780fi
17781
17782
17783if test -z "$with_cross_host"; then
17784 USE_LIBDIR_TRUE=
17785 USE_LIBDIR_FALSE='#'
17786else
17787 USE_LIBDIR_TRUE='#'
17788 USE_LIBDIR_FALSE=
17789fi
17790
17791if test $ac_cv_header_locale_h = yes; then
17792 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
421173e6 17793echo "configure:17794: checking for LC_MESSAGES" >&5
b2dad0e3
BK
17794if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17796else
17797 cat > conftest.$ac_ext <<EOF
421173e6 17798#line 17799 "configure"
b2dad0e3
BK
17799#include "confdefs.h"
17800#include <locale.h>
17801int main() {
17802return LC_MESSAGES
17803; return 0; }
17804EOF
421173e6 17805if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
17806 rm -rf conftest*
17807 ac_cv_val_LC_MESSAGES=yes
17808else
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17811 rm -rf conftest*
17812 ac_cv_val_LC_MESSAGES=no
17813fi
17814rm -f conftest*
17815fi
17816
17817echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17818 if test $ac_cv_val_LC_MESSAGES = yes; then
17819 cat >> confdefs.h <<\EOF
17820#define HAVE_LC_MESSAGES 1
17821EOF
17822
17823 fi
17824 fi
17825
17826
b2dad0e3
BK
17827if test "${multilib}" = "yes"; then
17828 multilib_arg="--enable-multilib"
17829else
17830 multilib_arg=
17831fi
17832
17833
17834# Generate the various Makefiles, include files, and scripts.
17835
17836# NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17837# so that multilib installs will end up installed in the correct
17838# place. To work around this not being passed down from config-ml.in
17839# -> top_srcdir/Makefile.am -> top_srcdir/src/Makefile.am, manually
17840# append it here.
17841
17842trap '' 1 2 15
17843cat > confcache <<\EOF
17844# This file is a shell script that caches the results of configure
17845# tests run on this system so they can be shared between configure
17846# scripts and configure runs. It is not useful on other systems.
17847# If it contains results you don't want to keep, you may remove or edit it.
17848#
17849# By default, configure uses ./config.cache as the cache file,
17850# creating it if it does not exist already. You can give configure
17851# the --cache-file=FILE option to use a different cache file; that is
17852# what configure does when it calls configure scripts in
17853# subdirectories, so they share the cache.
17854# Giving --cache-file=/dev/null disables caching, for debugging configure.
17855# config.status only pays attention to the cache file if you give it the
17856# --recheck option to rerun configure.
17857#
17858EOF
17859# The following way of writing the cache mishandles newlines in values,
17860# but we know of no workaround that is simple, portable, and efficient.
17861# So, don't put newlines in cache variables' values.
17862# Ultrix sh set writes to stderr and can't be redirected directly,
17863# and sets the high bit in the cache file unless we assign to the vars.
17864(set) 2>&1 |
17865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17866 *ac_space=\ *)
17867 # `set' does not quote correctly, so add quotes (double-quote substitution
17868 # turns \\\\ into \\, and sed turns \\ into \).
17869 sed -n \
17870 -e "s/'/'\\\\''/g" \
17871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17872 ;;
17873 *)
17874 # `set' quotes correctly as required by POSIX, so do not add quotes.
17875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17876 ;;
17877 esac >> confcache
17878if cmp -s $cache_file confcache; then
17879 :
17880else
17881 if test -w $cache_file; then
17882 echo "updating cache $cache_file"
17883 cat confcache > $cache_file
17884 else
17885 echo "not updating unwritable cache $cache_file"
17886 fi
17887fi
17888rm -f confcache
17889
17890trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17891
17892test "x$prefix" = xNONE && prefix=$ac_default_prefix
17893# Let make expand exec_prefix.
17894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17895
17896# Any assignment to VPATH causes Sun make to only execute
17897# the first set of double-colon rules, so remove it if not needed.
17898# If there is a colon in the path, we need to keep it.
17899if test "x$srcdir" = x.; then
17900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17901fi
17902
17903trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17904
17905DEFS=-DHAVE_CONFIG_H
17906
17907# Without the "./", some shells look in PATH for config.status.
17908: ${CONFIG_STATUS=./config.status}
17909
17910echo creating $CONFIG_STATUS
17911rm -f $CONFIG_STATUS
17912cat > $CONFIG_STATUS <<EOF
17913#! /bin/sh
17914# Generated automatically by configure.
17915# Run this file to recreate the current configuration.
17916# This directory was configured as follows,
17917# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17918#
17919# $0 $ac_configure_args
17920#
17921# Compiler output produced by configure, useful for debugging
17922# configure, is in ./config.log if it exists.
17923
17924ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17925for ac_option
17926do
17927 case "\$ac_option" in
17928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17932 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17933 exit 0 ;;
17934 -help | --help | --hel | --he | --h)
17935 echo "\$ac_cs_usage"; exit 0 ;;
17936 *) echo "\$ac_cs_usage"; exit 1 ;;
17937 esac
17938done
17939
17940ac_given_srcdir=$srcdir
17941ac_given_INSTALL="$INSTALL"
17942
17943trap 'rm -fr `echo "mkcheck Makefile src/Makefile math/Makefile libio/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17944EOF
17945cat >> $CONFIG_STATUS <<EOF
17946
17947# Protect against being on the right side of a sed subst in config.status.
17948sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17949 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17950$ac_vpsub
17951$extrasub
17952s%@SHELL@%$SHELL%g
17953s%@CFLAGS@%$CFLAGS%g
17954s%@CPPFLAGS@%$CPPFLAGS%g
17955s%@CXXFLAGS@%$CXXFLAGS%g
17956s%@FFLAGS@%$FFLAGS%g
17957s%@DEFS@%$DEFS%g
17958s%@LDFLAGS@%$LDFLAGS%g
17959s%@LIBS@%$LIBS%g
17960s%@exec_prefix@%$exec_prefix%g
17961s%@prefix@%$prefix%g
17962s%@program_transform_name@%$program_transform_name%g
17963s%@bindir@%$bindir%g
17964s%@sbindir@%$sbindir%g
17965s%@libexecdir@%$libexecdir%g
17966s%@datadir@%$datadir%g
17967s%@sysconfdir@%$sysconfdir%g
17968s%@sharedstatedir@%$sharedstatedir%g
17969s%@localstatedir@%$localstatedir%g
17970s%@libdir@%$libdir%g
17971s%@includedir@%$includedir%g
17972s%@oldincludedir@%$oldincludedir%g
17973s%@infodir@%$infodir%g
17974s%@mandir@%$mandir%g
17975s%@host@%$host%g
17976s%@host_alias@%$host_alias%g
17977s%@host_cpu@%$host_cpu%g
17978s%@host_vendor@%$host_vendor%g
17979s%@host_os@%$host_os%g
17980s%@target@%$target%g
17981s%@target_alias@%$target_alias%g
17982s%@target_cpu@%$target_cpu%g
17983s%@target_vendor@%$target_vendor%g
17984s%@target_os@%$target_os%g
17985s%@build@%$build%g
17986s%@build_alias@%$build_alias%g
17987s%@build_cpu@%$build_cpu%g
17988s%@build_vendor@%$build_vendor%g
17989s%@build_os@%$build_os%g
17990s%@glibcpp_basedir@%$glibcpp_basedir%g
17991s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17992s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17993s%@INSTALL_DATA@%$INSTALL_DATA%g
17994s%@PACKAGE@%$PACKAGE%g
17995s%@VERSION@%$VERSION%g
17996s%@ACLOCAL@%$ACLOCAL%g
17997s%@AUTOCONF@%$AUTOCONF%g
17998s%@AUTOMAKE@%$AUTOMAKE%g
17999s%@AUTOHEADER@%$AUTOHEADER%g
18000s%@MAKEINFO@%$MAKEINFO%g
18001s%@SET_MAKE@%$SET_MAKE%g
18002s%@CC@%$CC%g
18003s%@CXX@%$CXX%g
18004s%@AS@%$AS%g
18005s%@AR@%$AR%g
18006s%@RANLIB@%$RANLIB%g
18007s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
18008s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
18009s%@MAINT@%$MAINT%g
18010s%@EXEEXT@%$EXEEXT%g
18011s%@GLIBCPP_CFLAGS@%$GLIBCPP_CFLAGS%g
18012s%@GLIBCPP_CXXFLAGS@%$GLIBCPP_CXXFLAGS%g
18013s%@LN_S@%$LN_S%g
18014s%@LIBTOOL@%$LIBTOOL%g
5780a46b 18015s%@ifGNUmake@%$ifGNUmake%g
a4e99046 18016s%@CPP@%$CPP%g
c470c17d
BK
18017s%@cpu_include_dir@%$cpu_include_dir%g
18018s%@CPU_FLAGS@%$CPU_FLAGS%g
18019s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
b2dad0e3
BK
18020s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
18021s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
dd75251f
BK
18022s%@GLIBCPP_NEED_XTRA_LIBIO_TRUE@%$GLIBCPP_NEED_XTRA_LIBIO_TRUE%g
18023s%@GLIBCPP_NEED_XTRA_LIBIO_FALSE@%$GLIBCPP_NEED_XTRA_LIBIO_FALSE%g
20427c6b
BK
18024s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
18025s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
5b80666b 18026s%@CSHADOWFLAGS@%$CSHADOWFLAGS%g
5b80666b
BK
18027s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
18028s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
b2dad0e3
BK
18029s%@THREADLIBS@%$THREADLIBS%g
18030s%@THREADINCS@%$THREADINCS%g
18031s%@THREADDEPS@%$THREADDEPS%g
18032s%@THREADOBJS@%$THREADOBJS%g
18033s%@THREADSPEC@%$THREADSPEC%g
dcfa0bc8 18034s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
b2dad0e3 18035s%@ctype_include_dir@%$ctype_include_dir%g
c470c17d
BK
18036s%@WERROR@%$WERROR%g
18037s%@WFMT_FLAGS@%$WFMT_FLAGS%g
18038s%@SECTION_FLAGS@%$SECTION_FLAGS%g
18039s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
421173e6 18040s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
b2dad0e3 18041s%@LIBMATHOBJS@%$LIBMATHOBJS%g
2f103494 18042s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
5d89258a 18043s%@libinst_wstring_la@%$libinst_wstring_la%g
b2dad0e3
BK
18044s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
18045s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
18046s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
18047s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
18048s%@NATIVE_TRUE@%$NATIVE_TRUE%g
18049s%@NATIVE_FALSE@%$NATIVE_FALSE%g
18050s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
18051s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
18052
18053CEOF
18054EOF
18055
18056cat >> $CONFIG_STATUS <<\EOF
18057
18058# Split the substitutions into bite-sized pieces for seds with
18059# small command number limits, like on Digital OSF/1 and HP-UX.
18060ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18061ac_file=1 # Number of current file.
18062ac_beg=1 # First line for current file.
18063ac_end=$ac_max_sed_cmds # Line after last line for current file.
18064ac_more_lines=:
18065ac_sed_cmds=""
18066while $ac_more_lines; do
18067 if test $ac_beg -gt 1; then
18068 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18069 else
18070 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18071 fi
18072 if test ! -s conftest.s$ac_file; then
18073 ac_more_lines=false
18074 rm -f conftest.s$ac_file
18075 else
18076 if test -z "$ac_sed_cmds"; then
18077 ac_sed_cmds="sed -f conftest.s$ac_file"
18078 else
18079 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18080 fi
18081 ac_file=`expr $ac_file + 1`
18082 ac_beg=$ac_end
18083 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18084 fi
18085done
18086if test -z "$ac_sed_cmds"; then
18087 ac_sed_cmds=cat
18088fi
18089EOF
18090
18091cat >> $CONFIG_STATUS <<EOF
18092
18093CONFIG_FILES=\${CONFIG_FILES-"mkcheck Makefile src/Makefile math/Makefile libio/Makefile"}
18094EOF
18095cat >> $CONFIG_STATUS <<\EOF
18096for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18098 case "$ac_file" in
18099 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18100 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18101 *) ac_file_in="${ac_file}.in" ;;
18102 esac
18103
18104 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18105
18106 # Remove last slash and all that follows it. Not all systems have dirname.
18107 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18109 # The file is in a subdirectory.
18110 test ! -d "$ac_dir" && mkdir "$ac_dir"
18111 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18112 # A "../" for each directory in $ac_dir_suffix.
18113 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18114 else
18115 ac_dir_suffix= ac_dots=
18116 fi
18117
18118 case "$ac_given_srcdir" in
18119 .) srcdir=.
18120 if test -z "$ac_dots"; then top_srcdir=.
18121 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18122 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18123 *) # Relative path.
18124 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18125 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18126 esac
18127
18128 case "$ac_given_INSTALL" in
18129 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18130 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18131 esac
18132
18133 echo creating "$ac_file"
18134 rm -f "$ac_file"
18135 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18136 case "$ac_file" in
18137 *Makefile*) ac_comsub="1i\\
18138# $configure_input" ;;
18139 *) ac_comsub= ;;
18140 esac
18141
18142 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18143 sed -e "$ac_comsub
18144s%@configure_input@%$configure_input%g
18145s%@srcdir@%$srcdir%g
18146s%@top_srcdir@%$top_srcdir%g
18147s%@INSTALL@%$INSTALL%g
18148" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18149fi; done
18150rm -f conftest.s*
18151
18152# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18153# NAME is the cpp macro being defined and VALUE is the value it is being given.
18154#
18155# ac_d sets the value in "#define NAME VALUE" lines.
18156ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18157ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18158ac_dC='\3'
18159ac_dD='%g'
18160# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18161ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18162ac_uB='\([ ]\)%\1#\2define\3'
18163ac_uC=' '
18164ac_uD='\4%g'
18165# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18166ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18167ac_eB='$%\1#\2define\3'
18168ac_eC=' '
18169ac_eD='%g'
18170
18171if test "${CONFIG_HEADERS+set}" != set; then
18172EOF
18173cat >> $CONFIG_STATUS <<EOF
18174 CONFIG_HEADERS="config.h"
18175EOF
18176cat >> $CONFIG_STATUS <<\EOF
18177fi
18178for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18180 case "$ac_file" in
18181 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18182 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18183 *) ac_file_in="${ac_file}.in" ;;
18184 esac
18185
18186 echo creating $ac_file
18187
18188 rm -f conftest.frag conftest.in conftest.out
18189 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18190 cat $ac_file_inputs > conftest.in
18191
18192EOF
18193
18194# Transform confdefs.h into a sed script conftest.vals that substitutes
18195# the proper values into config.h.in to produce config.h. And first:
18196# Protect against being on the right side of a sed subst in config.status.
18197# Protect against being in an unquoted here document in config.status.
18198rm -f conftest.vals
18199cat > conftest.hdr <<\EOF
18200s/[\\&%]/\\&/g
18201s%[\\$`]%\\&%g
18202s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18203s%ac_d%ac_u%gp
18204s%ac_u%ac_e%gp
18205EOF
18206sed -n -f conftest.hdr confdefs.h > conftest.vals
18207rm -f conftest.hdr
18208
18209# This sed command replaces #undef with comments. This is necessary, for
18210# example, in the case of _POSIX_SOURCE, which is predefined and required
18211# on some systems where configure will not decide to define it.
18212cat >> conftest.vals <<\EOF
18213s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18214EOF
18215
18216# Break up conftest.vals because some shells have a limit on
18217# the size of here documents, and old seds have small limits too.
18218
18219rm -f conftest.tail
18220while :
18221do
18222 ac_lines=`grep -c . conftest.vals`
18223 # grep -c gives empty output for an empty file on some AIX systems.
18224 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18225 # Write a limited-size here document to conftest.frag.
18226 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18227 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18228 echo 'CEOF
18229 sed -f conftest.frag conftest.in > conftest.out
18230 rm -f conftest.in
18231 mv conftest.out conftest.in
18232' >> $CONFIG_STATUS
18233 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18234 rm -f conftest.vals
18235 mv conftest.tail conftest.vals
18236done
18237rm -f conftest.vals
18238
18239cat >> $CONFIG_STATUS <<\EOF
18240 rm -f conftest.frag conftest.h
18241 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18242 cat conftest.in >> conftest.h
18243 rm -f conftest.in
18244 if cmp -s $ac_file conftest.h 2>/dev/null; then
18245 echo "$ac_file is unchanged"
18246 rm -f conftest.h
18247 else
18248 # Remove last slash and all that follows it. Not all systems have dirname.
18249 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18251 # The file is in a subdirectory.
18252 test ! -d "$ac_dir" && mkdir "$ac_dir"
18253 fi
18254 rm -f $ac_file
18255 mv conftest.h $ac_file
18256 fi
18257fi; done
18258
c4561450
BK
18259EOF
18260
18261cat >> $CONFIG_STATUS <<EOF
18262ac_sources="$CSTDIO_H $CSTDIO_CC config/$THREADH"
18263ac_dests="bits/c++io.h src/c++io.cc bits/c++threads.h"
18264EOF
18265
18266cat >> $CONFIG_STATUS <<\EOF
18267srcdir=$ac_given_srcdir
18268while test -n "$ac_sources"; do
18269 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18270 set $ac_sources; ac_source=$1; shift; ac_sources=$*
18271
18272 echo "linking $srcdir/$ac_source to $ac_dest"
18273
18274 if test ! -r $srcdir/$ac_source; then
18275 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18276 fi
18277 rm -f $ac_dest
18278
18279 # Make relative symlinks.
18280 # Remove last slash and all that follows it. Not all systems have dirname.
18281 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18282 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18283 # The dest file is in a subdirectory.
18284 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18285 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18286 # A "../" for each directory in $ac_dest_dir_suffix.
18287 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18288 else
18289 ac_dest_dir_suffix= ac_dots=
18290 fi
18291
18292 case "$srcdir" in
18293 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18294 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18295 esac
18296
18297 # Make a symlink if possible; otherwise try a hard link.
18298 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18299 ln $srcdir/$ac_source $ac_dest; then :
18300 else
18301 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18302 fi
18303done
b2dad0e3
BK
18304EOF
18305cat >> $CONFIG_STATUS <<EOF
18306
18307srcdir=${srcdir}
18308host=${host}
18309target=${target}
18310with_multisubdir=${with_multisubdir}
18311ac_configure_args="${multilib_arg} ${ac_configure_args}"
18312CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18313glibcpp_basedir=${glibcpp_basedir}
18314CC="${CC}"
18315CXX="${CXX}"
18316
18317EOF
18318cat >> $CONFIG_STATUS <<\EOF
18319test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18320if test -n "$CONFIG_FILES"; then
18321 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18322 grep '^MULTISUBDIR =' Makefile >> src/Makefile
18323fi
18324exit 0
18325EOF
18326chmod +x $CONFIG_STATUS
18327rm -fr confdefs* $ac_clean_files
18328test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18329
18330
18331
18332blddir=`pwd`
b2dad0e3
BK
18333# Generate bits/c++config.h
18334# NB: This must be the first generated file as others include it. . .
18335
18336
18337# Generate bits/std_limits.h and src/limitsMEMBERS.cc
18338
29bd52c8
PE
18339
18340
18341# Sanity checking & User-visible messages.
18342# Checks down here, otherwise they get scrolled off before
18343# the user will notice.
18344if test "$enable_namespaces" = "yes" && test "$enable_libgcc_rebuild" = "no"
18345then
18346 echo "configure: warning: libgcc.a will not match mangled symbols unless it is rebuilt" 1>&2
18347fi
18348if test "$enable_namespaces" = "no" && test "$enable_libgcc_rebuild" != "no"
18349then
18350 # Other things besides namespaces can make this true as well, but none
18351 # of them are done automatically... yet
18352 echo "configure: warning: no point in rebuilding libgcc.a if namespaces aren't used" 1>&2
18353fi
18354
5780a46b
BK
18355# Trying to get more people to read documentation. Possibly remove
18356# check and warn all the time. There is no "informational" AC_MSG_
18357# macro, so these are going to be printed even when --quiet/--silent
18358# is given.
99b51359
BK
18359if test ! -f stamp-sanity-warned; then
18360 touch stamp-sanity-warned
5780a46b
BK
18361 echo ""
18362 echo "Please make certain that you read the installation information here:"
29bd52c8 18363 echo " faster => ${srcdir}/docs/install.html"
5780a46b
BK
18364 echo " slower => <URL:http://sources.redhat.com/libstdc++/install.html>"
18365 echo ""
18366 echo "and the configuration information here:"
29bd52c8 18367 echo " faster => ${srcdir}/docs/configopts.html"
5780a46b
BK
18368 echo " slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>"
18369 echo ""
421173e6 18370 echo "before proceeding with ${_cv_gnu_make_command}."
5780a46b 18371 echo ""
29bd52c8
PE
18372fi
18373
18374
b2dad0e3
BK
18375$srcdir/mkc++config $blddir $srcdir
18376$srcdir/mknumeric_limits $blddir $srcdir $xcompiling
b2dad0e3
BK
18377
18378