* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
[official-gcc.git] / libstdc++-v3 / configure
blobaa306e07e0c283a908535f63aa8d0279df375daf
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --with-gxx-include-dir the installation directory for include files"
61 ac_help="$ac_help
62 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
105 ac_prev=
106 for ac_option
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
112 ac_prev=
113 continue
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
121 # Accept the important Cygnus configure options, so we can diagnose typos.
123 case "$ac_option" in
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 ac_prev=datadir ;;
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 | --da=*)
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 case "$ac_option" in
165 *=*) ;;
166 *) ac_optarg=yes ;;
167 esac
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
186 cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
197 [$ac_default_prefix]
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 [same as prefix]
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
204 [PREFIX/share]
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 [PREFIX/com]
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
220 cat << EOF
221 Host type:
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
236 exit 0 ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
386 exit 0 ;;
388 -with-* | --with-*)
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 case "$ac_option" in
396 *=*) ;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 nonopt="$ac_option"
441 esac
442 done
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459 exec 6>/dev/null
460 else
461 exec 6>&1
463 exec 5>./config.log
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
475 case "$ac_arg" in
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 esac
484 done
486 # NLS nuisances.
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/ios.cc
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
509 ac_prog=$0
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 srcdir=$ac_confdir
513 if test ! -r $srcdir/$ac_unique_file; then
514 srcdir=..
516 else
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 else
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 else
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
539 . "$ac_site_file"
541 done
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
545 . $cache_file
546 else
547 echo "creating cache $cache_file"
548 > $cache_file
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='
564 ' ac_t=' '
565 else
566 ac_n=-n ac_c= ac_t=
568 else
569 ac_n= ac_c='\c' ac_t=
574 # When building with srcdir == objdir, links to the source files will
575 # be created in directories within the target_subdir. We have to
576 # adjust toplevel_srcdir accordingly, so that configure finds
577 # install-sh and other auxiliary files that live in the top-level
578 # source directory.
579 if test "${srcdir}" = "."; then
580 if test -z "${with_target_subdir}"; then
581 toprel=".."
582 else
583 if test "${with_target_subdir}" != "."; then
584 toprel="${with_multisrctop}../.."
585 else
586 toprel="${with_multisrctop}.."
589 else
590 toprel=".."
592 ac_aux_dir=
593 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
594 if test -f $ac_dir/install-sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install-sh -c"
597 break
598 elif test -f $ac_dir/install.sh; then
599 ac_aux_dir=$ac_dir
600 ac_install_sh="$ac_aux_dir/install.sh -c"
601 break
603 done
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 toplevel_srcdir=\${top_srcdir}/$toprel
616 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
617 # AC 2.50 sets target_alias iff the user specified --target, but we use it
618 # everywhere, so we set it here just to be sure.
620 # Do some error checking and defaulting for the host and target type.
621 # The inputs are:
622 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 # The rules are:
625 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 # same time.
627 # 2. Host defaults to nonopt.
628 # 3. If nonopt is not specified, then host defaults to the current host,
629 # as determined by config.guess.
630 # 4. Target and build default to nonopt.
631 # 5. If nonopt is not specified, then target and build default to host.
633 # The aliases save the names the user supplied, while $host etc.
634 # will get canonicalized.
635 case $host---$target---$nonopt in
636 NONE---*---* | *---NONE---* | *---*---NONE) ;;
637 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
638 esac
641 # Make sure we can run config.sub.
642 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
643 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
646 echo $ac_n "checking host system type""... $ac_c" 1>&6
647 echo "configure:648: checking host system type" >&5
649 host_alias=$host
650 case "$host_alias" in
651 NONE)
652 case $nonopt in
653 NONE)
654 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 fi ;;
657 *) host_alias=$nonopt ;;
658 esac ;;
659 esac
661 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
662 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$host" 1>&6
667 echo $ac_n "checking target system type""... $ac_c" 1>&6
668 echo "configure:669: checking target system type" >&5
670 target_alias=$target
671 case "$target_alias" in
672 NONE)
673 case $nonopt in
674 NONE) target_alias=$host_alias ;;
675 *) target_alias=$nonopt ;;
676 esac ;;
677 esac
679 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
680 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$target" 1>&6
685 echo $ac_n "checking build system type""... $ac_c" 1>&6
686 echo "configure:687: checking build system type" >&5
688 build_alias=$build
689 case "$build_alias" in
690 NONE)
691 case $nonopt in
692 NONE) build_alias=$host_alias ;;
693 *) build_alias=$nonopt ;;
694 esac ;;
695 esac
697 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
698 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$build" 1>&6
703 test "$host_alias" != "$target_alias" &&
704 test "$program_prefix$program_suffix$program_transform_name" = \
705 NONENONEs,x,x, &&
706 program_prefix=${target_alias}-
708 target_alias=${target_alias-$target}
711 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
712 # be 'cp -p' if linking isn't available.
713 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
714 echo "configure:715: checking whether ln -s works" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717 else
718 rm -f conftestdata
719 if ln -s X conftestdata 2>/dev/null
720 then
721 rm -f conftestdata
722 ac_cv_prog_LN_S="ln -s"
723 else
724 ac_cv_prog_LN_S=ln
727 LN_S="$ac_cv_prog_LN_S"
728 if test "$ac_cv_prog_LN_S" = "ln -s"; then
729 echo "$ac_t""yes" 1>&6
730 else
731 echo "$ac_t""no" 1>&6
735 # We use these options to decide which functions to include.
736 # Check whether --with-target-subdir or --without-target-subdir was given.
737 if test "${with_target_subdir+set}" = set; then
738 withval="$with_target_subdir"
742 # Check whether --with-cross-host or --without-cross-host was given.
743 if test "${with_cross_host+set}" = set; then
744 withval="$with_cross_host"
749 # Runs configure.host and configure.target. Have to run this before
750 # the GLIBCPP_ENABLE_* macros below.
751 # Find a good install program. We prefer a C program (faster),
752 # so one script is as good as another. But avoid the broken or
753 # incompatible versions:
754 # SysV /etc/install, /usr/sbin/install
755 # SunOS /usr/etc/install
756 # IRIX /sbin/install
757 # AIX /bin/install
758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
761 # ./install, which can be erroneously created by make from ./install.sh.
762 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
763 echo "configure:764: checking for a BSD compatible install" >&5
764 if test -z "$INSTALL"; then
765 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
769 for ac_dir in $PATH; do
770 # Account for people who put trailing slashes in PATH elements.
771 case "$ac_dir/" in
772 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
774 # OSF1 and SCO ODT 3.0 have their own names for install.
775 # Don't use installbsd from OSF since it installs stuff as root
776 # by default.
777 for ac_prog in ginstall scoinst install; do
778 if test -f $ac_dir/$ac_prog; then
779 if test $ac_prog = install &&
780 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
781 # AIX install. It has an incompatible calling convention.
783 else
784 ac_cv_path_install="$ac_dir/$ac_prog -c"
785 break 2
788 done
790 esac
791 done
792 IFS="$ac_save_IFS"
795 if test "${ac_cv_path_install+set}" = set; then
796 INSTALL="$ac_cv_path_install"
797 else
798 # As a last resort, use the slow shell script. We don't cache a
799 # path for INSTALL within a source directory, because that will
800 # break other packages using the cache if that directory is
801 # removed, or if the path is relative.
802 INSTALL="$ac_install_sh"
805 echo "$ac_t""$INSTALL" 1>&6
807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
808 # It thinks the first close brace ends the variable substitution.
809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
815 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
816 echo "configure:817: checking whether build environment is sane" >&5
817 # Just in case
818 sleep 1
819 echo timestamp > conftestfile
820 # Do `set' in a subshell so we don't clobber the current shell's
821 # arguments. Must try -L first in case configure is actually a
822 # symlink; some systems play weird games with the mod time of symlinks
823 # (eg FreeBSD returns the mod time of the symlink's containing
824 # directory).
825 if (
826 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
827 if test "$*" = "X"; then
828 # -L didn't work.
829 set X `ls -t $srcdir/configure conftestfile`
831 if test "$*" != "X $srcdir/configure conftestfile" \
832 && test "$*" != "X conftestfile $srcdir/configure"; then
834 # If neither matched, then we have a broken ls. This can happen
835 # if, for instance, CONFIG_SHELL is bash and it inherits a
836 # broken ls alias from the environment. This has actually
837 # happened. Such a system could not be considered "sane".
838 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
839 alias in your environment" 1>&2; exit 1; }
842 test "$2" = conftestfile
844 then
845 # Ok.
847 else
848 { echo "configure: error: newly created file is older than distributed files!
849 Check your system clock" 1>&2; exit 1; }
851 rm -f conftest*
852 echo "$ac_t""yes" 1>&6
853 if test "$program_transform_name" = s,x,x,; then
854 program_transform_name=
855 else
856 # Double any \ or $. echo might interpret backslashes.
857 cat <<\EOF_SED > conftestsed
858 s,\\,\\\\,g; s,\$,$$,g
859 EOF_SED
860 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
861 rm -f conftestsed
863 test "$program_prefix" != NONE &&
864 program_transform_name="s,^,${program_prefix},; $program_transform_name"
865 # Use a double $ so make ignores it.
866 test "$program_suffix" != NONE &&
867 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
869 # sed with no file args requires a program.
870 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
872 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
873 echo "configure:874: checking whether ${MAKE-make} sets \${MAKE}" >&5
874 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
875 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 cat > conftestmake <<\EOF
879 all:
880 @echo 'ac_maketemp="${MAKE}"'
882 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
883 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
884 if test -n "$ac_maketemp"; then
885 eval ac_cv_prog_make_${ac_make}_set=yes
886 else
887 eval ac_cv_prog_make_${ac_make}_set=no
889 rm -f conftestmake
891 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
892 echo "$ac_t""yes" 1>&6
893 SET_MAKE=
894 else
895 echo "$ac_t""no" 1>&6
896 SET_MAKE="MAKE=${MAKE-make}"
899 if test $host != $build; then
900 ac_tool_prefix=${host_alias}-
901 else
902 ac_tool_prefix=
905 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
906 echo "configure:907: checking for Cygwin environment" >&5
907 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
914 int main() {
916 #ifndef __CYGWIN__
917 #define __CYGWIN__ __CYGWIN32__
918 #endif
919 return __CYGWIN__;
920 ; return 0; }
922 if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
923 rm -rf conftest*
924 ac_cv_cygwin=yes
925 else
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 rm -rf conftest*
929 ac_cv_cygwin=no
931 rm -f conftest*
932 rm -f conftest*
935 echo "$ac_t""$ac_cv_cygwin" 1>&6
936 CYGWIN=
937 test "$ac_cv_cygwin" = yes && CYGWIN=yes
938 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
939 echo "configure:940: checking for mingw32 environment" >&5
940 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
947 int main() {
948 return __MINGW32__;
949 ; return 0; }
951 if { (eval echo configure:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
952 rm -rf conftest*
953 ac_cv_mingw32=yes
954 else
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 ac_cv_mingw32=no
960 rm -f conftest*
961 rm -f conftest*
964 echo "$ac_t""$ac_cv_mingw32" 1>&6
965 MINGW32=
966 test "$ac_cv_mingw32" = yes && MINGW32=yes
968 # Check whether --enable-multilib or --disable-multilib was given.
969 if test "${enable_multilib+set}" = set; then
970 enableval="$enable_multilib"
971 case "${enableval}" in
972 yes) multilib=yes ;;
973 no) multilib=no ;;
974 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
975 esac
976 else
977 multilib=yes
980 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
984 PACKAGE=libstdc++
986 VERSION=3.0.0
988 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
989 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
991 cat >> confdefs.h <<EOF
992 #define PACKAGE "$PACKAGE"
995 cat >> confdefs.h <<EOF
996 #define VERSION "$VERSION"
1001 missing_dir=`cd $ac_aux_dir && pwd`
1002 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working aclocal" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf. Sigh.
1007 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1008 ACLOCAL=aclocal
1009 echo "$ac_t""found" 1>&6
1010 else
1011 ACLOCAL="$missing_dir/missing aclocal"
1012 echo "$ac_t""missing" 1>&6
1015 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working autoconf" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf. Sigh.
1020 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1021 AUTOCONF=autoconf
1022 echo "$ac_t""found" 1>&6
1023 else
1024 AUTOCONF="$missing_dir/missing autoconf"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working automake" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (automake --version) < /dev/null > /dev/null 2>&1; then
1034 AUTOMAKE=automake
1035 echo "$ac_t""found" 1>&6
1036 else
1037 AUTOMAKE="$missing_dir/missing automake"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoheader" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1047 AUTOHEADER=autoheader
1048 echo "$ac_t""found" 1>&6
1049 else
1050 AUTOHEADER="$missing_dir/missing autoheader"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working makeinfo" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1060 MAKEINFO=makeinfo
1061 echo "$ac_t""found" 1>&6
1062 else
1063 MAKEINFO="$missing_dir/missing makeinfo"
1064 echo "$ac_t""missing" 1>&6
1069 # Never versions of autoconf add an underscore to these functions.
1070 # Prevent future problems ...
1076 # AC_PROG_CC
1078 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1079 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1080 # are probably using a cross compiler, which will not be able to fully
1081 # link an executable. This should really be fixed in autoconf
1082 # itself.
1087 # Extract the first word of "gcc", so it can be a program name with args.
1088 set dummy gcc; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1096 else
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 ac_dummy="$PATH"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_CC="gcc"
1103 break
1105 done
1106 IFS="$ac_save_ifs"
1109 CC="$ac_cv_prog_CC"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1112 else
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 # Extract the first word of "cc", so it can be a program name with args.
1118 set dummy cc; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC="$CC" # Let the user override the test.
1126 else
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_prog_rejected=no
1129 ac_dummy="$PATH"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1134 ac_prog_rejected=yes
1135 continue
1137 ac_cv_prog_CC="cc"
1138 break
1140 done
1141 IFS="$ac_save_ifs"
1142 if test $ac_prog_rejected = yes; then
1143 # We found a bogon in the path, so make sure we never use it.
1144 set dummy $ac_cv_prog_CC
1145 shift
1146 if test $# -gt 0; then
1147 # We chose a different compiler from the bogus one.
1148 # However, it has the same basename, so the bogon will be chosen
1149 # first if we set CC to just the basename; use the full file name.
1150 shift
1151 set dummy "$ac_dir/$ac_word" "$@"
1152 shift
1153 ac_cv_prog_CC="$@"
1158 CC="$ac_cv_prog_CC"
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1161 else
1162 echo "$ac_t""no" 1>&6
1165 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1168 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether we are using GNU C" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 cat > conftest.c <<EOF
1174 #ifdef __GNUC__
1175 yes;
1176 #endif
1178 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1179 ac_cv_prog_gcc=yes
1180 else
1181 ac_cv_prog_gcc=no
1185 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1187 if test $ac_cv_prog_gcc = yes; then
1188 GCC=yes
1189 ac_test_CFLAGS="${CFLAGS+set}"
1190 ac_save_CFLAGS="$CFLAGS"
1191 CFLAGS=
1192 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CC-cc} accepts -g" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197 echo 'void f(){}' > conftest.c
1198 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1199 ac_cv_prog_cc_g=yes
1200 else
1201 ac_cv_prog_cc_g=no
1203 rm -f conftest*
1207 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1208 if test "$ac_test_CFLAGS" = set; then
1209 CFLAGS="$ac_save_CFLAGS"
1210 elif test $ac_cv_prog_cc_g = yes; then
1211 CFLAGS="-g -O2"
1212 else
1213 CFLAGS="-O2"
1215 else
1216 GCC=
1217 test "${CFLAGS+set}" = set || CFLAGS="-g"
1221 # Can't just call these here as g++ requires libstc++ to be built....
1222 # AC_PROG_CXX
1224 # Likewise for AC_PROG_CXX.
1228 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1229 # flags that come in CXX while configuring libstdc++. They're different
1230 # from those used for all other target libraries. If CXX is set in
1231 # the environment, respect that here.
1232 glibcpp_CXX=$CXX
1233 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1235 # Extract the first word of "$ac_prog", so it can be a program name with args.
1236 set dummy $ac_prog; ac_word=$2
1237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_word" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 if test -n "$glibcpp_CXX"; then
1243 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1244 else
1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1246 ac_dummy="$PATH"
1247 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 if test -f $ac_dir/$ac_word; then
1250 ac_cv_prog_glibcpp_CXX="$ac_prog"
1251 break
1253 done
1254 IFS="$ac_save_ifs"
1257 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1258 if test -n "$glibcpp_CXX"; then
1259 echo "$ac_t""$glibcpp_CXX" 1>&6
1260 else
1261 echo "$ac_t""no" 1>&6
1264 test -n "$glibcpp_CXX" && break
1265 done
1266 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1269 CXX=$glibcpp_CXX
1270 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1272 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether we are using GNU C++" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 cat > conftest.C <<EOF
1278 #ifdef __GNUC__
1279 yes;
1280 #endif
1282 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1283 ac_cv_prog_gxx=yes
1284 else
1285 ac_cv_prog_gxx=no
1289 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1291 if test $ac_cv_prog_gxx = yes; then
1292 GXX=yes
1293 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1294 ac_save_CXXFLAGS="$CXXFLAGS"
1295 CXXFLAGS=
1296 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether ${CXX-g++} accepts -g" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 echo 'void f(){}' > conftest.cc
1302 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1303 ac_cv_prog_cxx_g=yes
1304 else
1305 ac_cv_prog_cxx_g=no
1307 rm -f conftest*
1311 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1312 if test "$ac_test_CXXFLAGS" = set; then
1313 CXXFLAGS="$ac_save_CXXFLAGS"
1314 elif test $ac_cv_prog_cxx_g = yes; then
1315 CXXFLAGS="-g -O2"
1316 else
1317 CXXFLAGS="-O2"
1319 else
1320 GXX=
1321 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1325 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}as; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 if test -n "$AS"; then
1333 ac_cv_prog_AS="$AS" # Let the user override the test.
1334 else
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 ac_dummy="$PATH"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_AS="${ac_tool_prefix}as"
1341 break
1343 done
1344 IFS="$ac_save_ifs"
1345 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1348 AS="$ac_cv_prog_AS"
1349 if test -n "$AS"; then
1350 echo "$ac_t""$AS" 1>&6
1351 else
1352 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}ar; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 if test -n "$AR"; then
1365 ac_cv_prog_AR="$AR" # Let the user override the test.
1366 else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 ac_dummy="$PATH"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_AR="${ac_tool_prefix}ar"
1373 break
1375 done
1376 IFS="$ac_save_ifs"
1377 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1380 AR="$ac_cv_prog_AR"
1381 if test -n "$AR"; then
1382 echo "$ac_t""$AR" 1>&6
1383 else
1384 echo "$ac_t""no" 1>&6
1389 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396 if test -n "$RANLIB"; then
1397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1398 else
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 ac_dummy="$PATH"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1405 break
1407 done
1408 IFS="$ac_save_ifs"
1411 RANLIB="$ac_cv_prog_RANLIB"
1412 if test -n "$RANLIB"; then
1413 echo "$ac_t""$RANLIB" 1>&6
1414 else
1415 echo "$ac_t""no" 1>&6
1419 if test -z "$ac_cv_prog_RANLIB"; then
1420 if test -n "$ac_tool_prefix"; then
1421 # Extract the first word of "ranlib", so it can be a program name with args.
1422 set dummy ranlib; ac_word=$2
1423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1424 echo "configure:1425: checking for $ac_word" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 if test -n "$RANLIB"; then
1429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1430 else
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1432 ac_dummy="$PATH"
1433 for ac_dir in $ac_dummy; do
1434 test -z "$ac_dir" && ac_dir=.
1435 if test -f $ac_dir/$ac_word; then
1436 ac_cv_prog_RANLIB="ranlib"
1437 break
1439 done
1440 IFS="$ac_save_ifs"
1441 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1444 RANLIB="$ac_cv_prog_RANLIB"
1445 if test -n "$RANLIB"; then
1446 echo "$ac_t""$RANLIB" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 else
1452 RANLIB="ranlib-not-found-in-path-error"
1456 # Find a good install program. We prefer a C program (faster),
1457 # so one script is as good as another. But avoid the broken or
1458 # incompatible versions:
1459 # SysV /etc/install, /usr/sbin/install
1460 # SunOS /usr/etc/install
1461 # IRIX /sbin/install
1462 # AIX /bin/install
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1468 echo "configure:1469: checking for a BSD compatible install" >&5
1469 if test -z "$INSTALL"; then
1470 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1474 for ac_dir in $PATH; do
1475 # Account for people who put trailing slashes in PATH elements.
1476 case "$ac_dir/" in
1477 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1479 # OSF1 and SCO ODT 3.0 have their own names for install.
1480 # Don't use installbsd from OSF since it installs stuff as root
1481 # by default.
1482 for ac_prog in ginstall scoinst install; do
1483 if test -f $ac_dir/$ac_prog; then
1484 if test $ac_prog = install &&
1485 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1486 # AIX install. It has an incompatible calling convention.
1488 else
1489 ac_cv_path_install="$ac_dir/$ac_prog -c"
1490 break 2
1493 done
1495 esac
1496 done
1497 IFS="$ac_save_IFS"
1500 if test "${ac_cv_path_install+set}" = set; then
1501 INSTALL="$ac_cv_path_install"
1502 else
1503 # As a last resort, use the slow shell script. We don't cache a
1504 # path for INSTALL within a source directory, because that will
1505 # break other packages using the cache if that directory is
1506 # removed, or if the path is relative.
1507 INSTALL="$ac_install_sh"
1510 echo "$ac_t""$INSTALL" 1>&6
1512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1513 # It thinks the first close brace ends the variable substitution.
1514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1521 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether to enable maintainer-specific portions of Makefiles" >&5
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1531 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1534 if test $USE_MAINTAINER_MODE = yes; then
1535 MAINTAINER_MODE_TRUE=
1536 MAINTAINER_MODE_FALSE='#'
1537 else
1538 MAINTAINER_MODE_TRUE='#'
1539 MAINTAINER_MODE_FALSE=
1541 MAINT=$MAINTAINER_MODE_TRUE
1545 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1546 # at least currently, we never actually build a program, so we never
1547 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1548 # fails, because we are probably configuring with a cross compiler
1549 # which cant create executables. So we include AC_EXEEXT to keep
1550 # automake happy, but we dont execute it, since we dont care about
1551 # the result.
1552 if false; then
1553 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1554 # to nothing, so nothing would remain between `then' and `fi' if it
1555 # were not for the `:' below.
1559 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1560 echo "configure:1561: checking for executable suffix" >&5
1561 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1565 ac_cv_exeext=.exe
1566 else
1567 rm -f conftest*
1568 echo 'int main () { return 0; }' > conftest.$ac_ext
1569 ac_cv_exeext=
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1571 for file in conftest.*; do
1572 case $file in
1573 *.c | *.o | *.obj) ;;
1574 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1575 esac
1576 done
1577 else
1578 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1580 rm -f conftest*
1581 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1585 EXEEXT=""
1586 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1587 echo "$ac_t""${ac_cv_exeext}" 1>&6
1588 ac_exeext=$EXEEXT
1592 . ${glibcpp_basedir}/configure.host
1594 case ${glibcpp_basedir} in
1595 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1596 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1597 esac
1599 # This does for the target what configure.host does for the host. In
1600 # addition to possibly modifying the same flags, it also sets up symlinks.
1602 . ${glibcpp_basedir}/configure.target
1603 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1604 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1609 # Check whether --enable-shared or --disable-shared was given.
1610 if test "${enable_shared+set}" = set; then
1611 enableval="$enable_shared"
1612 p=${PACKAGE-default}
1613 case $enableval in
1614 yes) enable_shared=yes ;;
1615 no) enable_shared=no ;;
1617 enable_shared=no
1618 # Look at the argument we got. We use all the common list separators.
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1620 for pkg in $enableval; do
1621 if test "X$pkg" = "X$p"; then
1622 enable_shared=yes
1624 done
1625 IFS="$ac_save_ifs"
1627 esac
1628 else
1629 enable_shared=yes
1632 # Check whether --enable-static or --disable-static was given.
1633 if test "${enable_static+set}" = set; then
1634 enableval="$enable_static"
1635 p=${PACKAGE-default}
1636 case $enableval in
1637 yes) enable_static=yes ;;
1638 no) enable_static=no ;;
1640 enable_static=no
1641 # Look at the argument we got. We use all the common list separators.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1643 for pkg in $enableval; do
1644 if test "X$pkg" = "X$p"; then
1645 enable_static=yes
1647 done
1648 IFS="$ac_save_ifs"
1650 esac
1651 else
1652 enable_static=yes
1655 # Check whether --enable-fast-install or --disable-fast-install was given.
1656 if test "${enable_fast_install+set}" = set; then
1657 enableval="$enable_fast_install"
1658 p=${PACKAGE-default}
1659 case $enableval in
1660 yes) enable_fast_install=yes ;;
1661 no) enable_fast_install=no ;;
1663 enable_fast_install=no
1664 # Look at the argument we got. We use all the common list separators.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1666 for pkg in $enableval; do
1667 if test "X$pkg" = "X$p"; then
1668 enable_fast_install=yes
1670 done
1671 IFS="$ac_save_ifs"
1673 esac
1674 else
1675 enable_fast_install=yes
1678 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1679 if test "${with_gnu_ld+set}" = set; then
1680 withval="$with_gnu_ld"
1681 test "$withval" = no || with_gnu_ld=yes
1682 else
1683 with_gnu_ld=no
1686 ac_prog=ld
1687 if test "$GCC" = yes; then
1688 # Check if gcc -print-prog-name=ld gives a path.
1689 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1690 echo "configure:1691: checking for ld used by GCC" >&5
1691 case $host in
1692 *-*-mingw*)
1693 # gcc leaves a trailing carriage return which upsets mingw
1694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1697 esac
1698 case $ac_prog in
1699 # Accept absolute paths.
1700 [\\/]* | [A-Za-z]:[\\/]*)
1701 re_direlt='/[^/][^/]*/\.\./'
1702 # Canonicalize the path of ld
1703 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1705 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1706 done
1707 test -z "$LD" && LD="$ac_prog"
1710 # If it fails, then pretend we aren't using GCC.
1711 ac_prog=ld
1714 # If it is relative, then search for the first ld in PATH.
1715 with_gnu_ld=unknown
1717 esac
1718 elif test "$with_gnu_ld" = yes; then
1719 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1720 echo "configure:1721: checking for GNU ld" >&5
1721 else
1722 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1723 echo "configure:1724: checking for non-GNU ld" >&5
1725 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727 else
1728 if test -z "$LD"; then
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1730 for ac_dir in $PATH; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1733 lt_cv_path_LD="$ac_dir/$ac_prog"
1734 # Check to see if the program is GNU ld. I'd rather use --version,
1735 # but apparently some GNU ld's only accept -v.
1736 # Break only if it was the GNU/non-GNU ld that we prefer.
1737 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1738 test "$with_gnu_ld" != no && break
1739 else
1740 test "$with_gnu_ld" != yes && break
1743 done
1744 IFS="$ac_save_ifs"
1745 else
1746 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1750 LD="$lt_cv_path_LD"
1751 if test -n "$LD"; then
1752 echo "$ac_t""$LD" 1>&6
1753 else
1754 echo "$ac_t""no" 1>&6
1756 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1757 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1758 echo "configure:1759: checking if the linker ($LD) is GNU ld" >&5
1759 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1763 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1764 lt_cv_prog_gnu_ld=yes
1765 else
1766 lt_cv_prog_gnu_ld=no
1770 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1771 with_gnu_ld=$lt_cv_prog_gnu_ld
1774 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $LD option to reload object files" >&5
1776 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 lt_cv_ld_reload_flag='-r'
1782 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1783 reload_flag=$lt_cv_ld_reload_flag
1784 test -n "$reload_flag" && reload_flag=" $reload_flag"
1786 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1787 echo "configure:1788: checking for BSD-compatible nm" >&5
1788 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -n "$NM"; then
1792 # Let the user override the test.
1793 lt_cv_path_NM="$NM"
1794 else
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1797 test -z "$ac_dir" && ac_dir=.
1798 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1799 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1800 # Check to see if the nm accepts a BSD-compat flag.
1801 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1802 # nm: unknown option "B" ignored
1803 # Tru64's nm complains that /dev/null is an invalid object file
1804 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1805 lt_cv_path_NM="$tmp_nm -B"
1806 break
1807 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1808 lt_cv_path_NM="$tmp_nm -p"
1809 break
1810 else
1811 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1812 continue # so that we can try to find one that supports BSD flags
1815 done
1816 IFS="$ac_save_ifs"
1817 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1821 NM="$lt_cv_path_NM"
1822 echo "$ac_t""$NM" 1>&6
1824 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1825 echo "configure:1826: checking how to recognise dependant libraries" >&5
1826 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 lt_cv_file_magic_cmd='$MAGIC_CMD'
1830 lt_cv_file_magic_test_file=
1831 lt_cv_deplibs_check_method='unknown'
1832 # Need to set the preceding variable on all platforms that support
1833 # interlibrary dependencies.
1834 # 'none' -- dependencies not supported.
1835 # `unknown' -- same as none, but documents that we really don't know.
1836 # 'pass_all' -- all dependencies passed with no checks.
1837 # 'test_compile' -- check by making test program.
1838 # 'file_magic [regex]' -- check by looking for files in library path
1839 # which responds to the $file_magic_cmd with a given egrep regex.
1840 # If you have `file' or equivalent on your system and you're not sure
1841 # whether `pass_all' will *always* work, you probably want this one.
1843 case $host_os in
1844 aix*)
1845 lt_cv_deplibs_check_method=pass_all
1848 beos*)
1849 lt_cv_deplibs_check_method=pass_all
1852 bsdi4*)
1853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1854 lt_cv_file_magic_cmd='/usr/bin/file -L'
1855 lt_cv_file_magic_test_file=/shlib/libc.so
1858 cygwin* | mingw* |pw32*)
1859 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1860 lt_cv_file_magic_cmd='$OBJDUMP -f'
1863 darwin* | rhapsody*)
1864 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1865 lt_cv_file_magic_cmd='/usr/bin/file -L'
1866 case "$host_os" in
1867 rhapsody* | darwin1.012)
1868 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1870 *) # Darwin 1.3 on
1871 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1873 esac
1876 freebsd* )
1877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1878 case $host_cpu in
1879 i*86 )
1880 # Not sure whether the presence of OpenBSD here was a mistake.
1881 # Let's accept both of them until this is cleared up.
1882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1883 lt_cv_file_magic_cmd=/usr/bin/file
1884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1886 esac
1887 else
1888 lt_cv_deplibs_check_method=pass_all
1892 gnu*)
1893 lt_cv_deplibs_check_method=pass_all
1896 hpux10.20*|hpux11*)
1897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1898 lt_cv_file_magic_cmd=/usr/bin/file
1899 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1902 irix5* | irix6*)
1903 case $host_os in
1904 irix5*)
1905 # this will be overridden with pass_all, but let us keep it just in case
1906 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1909 case $LD in
1910 *-32|*"-32 ") libmagic=32-bit;;
1911 *-n32|*"-n32 ") libmagic=N32;;
1912 *-64|*"-64 ") libmagic=64-bit;;
1913 *) libmagic=never-match;;
1914 esac
1915 # this will be overridden with pass_all, but let us keep it just in case
1916 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1918 esac
1919 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1920 lt_cv_deplibs_check_method=pass_all
1923 # This must be Linux ELF.
1924 linux-gnu*)
1925 case $host_cpu in
1926 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1927 lt_cv_deplibs_check_method=pass_all ;;
1929 # glibc up to 2.1.1 does not perform some relocations on ARM
1930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1931 esac
1932 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1935 netbsd*)
1936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1937 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1938 else
1939 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1943 newsos6)
1944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1945 lt_cv_file_magic_cmd=/usr/bin/file
1946 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1949 osf3* | osf4* | osf5*)
1950 # this will be overridden with pass_all, but let us keep it just in case
1951 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1952 lt_cv_file_magic_test_file=/shlib/libc.so
1953 lt_cv_deplibs_check_method=pass_all
1956 sco3.2v5*)
1957 lt_cv_deplibs_check_method=pass_all
1960 solaris*)
1961 lt_cv_deplibs_check_method=pass_all
1962 lt_cv_file_magic_test_file=/lib/libc.so
1965 sysv5uw[78]* | sysv4*uw2*)
1966 lt_cv_deplibs_check_method=pass_all
1969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1970 case $host_vendor in
1971 ncr)
1972 lt_cv_deplibs_check_method=pass_all
1974 motorola)
1975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1978 esac
1980 esac
1984 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1985 file_magic_cmd=$lt_cv_file_magic_cmd
1986 deplibs_check_method=$lt_cv_deplibs_check_method
1988 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1989 echo "configure:1990: checking for object suffix" >&5
1990 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 rm -f conftest*
1994 echo 'int i = 1;' > conftest.$ac_ext
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 for ac_file in conftest.*; do
1997 case $ac_file in
1998 *.c) ;;
1999 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2000 esac
2001 done
2002 else
2003 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2005 rm -f conftest*
2008 echo "$ac_t""$ac_cv_objext" 1>&6
2009 OBJEXT=$ac_cv_objext
2010 ac_objext=$ac_cv_objext
2012 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2014 # Only perform the check for file, if the check method requires it
2015 case $deplibs_check_method in
2016 file_magic*)
2017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2018 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2019 echo "configure:2020: checking for ${ac_tool_prefix}file" >&5
2020 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 case $MAGIC_CMD in
2025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2027 ?:/*)
2028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2031 ac_save_MAGIC_CMD="$MAGIC_CMD"
2032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2033 ac_dummy="/usr/bin:$PATH"
2034 for ac_dir in $ac_dummy; do
2035 test -z "$ac_dir" && ac_dir=.
2036 if test -f $ac_dir/${ac_tool_prefix}file; then
2037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2038 if test -n "$file_magic_test_file"; then
2039 case $deplibs_check_method in
2040 "file_magic "*)
2041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2044 egrep "$file_magic_regex" > /dev/null; then
2046 else
2047 cat <<EOF 1>&2
2049 *** Warning: the command libtool uses to detect shared libraries,
2050 *** $file_magic_cmd, produces output that libtool cannot recognize.
2051 *** The result is that libtool may fail to recognize shared libraries
2052 *** as such. This will affect the creation of libtool libraries that
2053 *** depend on shared libraries, but programs linked with such libtool
2054 *** libraries will work regardless of this problem. Nevertheless, you
2055 *** may want to report the problem to your system manager and/or to
2056 *** bug-libtool@gnu.org
2059 fi ;;
2060 esac
2062 break
2064 done
2065 IFS="$ac_save_ifs"
2066 MAGIC_CMD="$ac_save_MAGIC_CMD"
2068 esac
2071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2072 if test -n "$MAGIC_CMD"; then
2073 echo "$ac_t""$MAGIC_CMD" 1>&6
2074 else
2075 echo "$ac_t""no" 1>&6
2078 if test -z "$lt_cv_path_MAGIC_CMD"; then
2079 if test -n "$ac_tool_prefix"; then
2080 echo $ac_n "checking for file""... $ac_c" 1>&6
2081 echo "configure:2082: checking for file" >&5
2082 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 case $MAGIC_CMD in
2087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2089 ?:/*)
2090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2093 ac_save_MAGIC_CMD="$MAGIC_CMD"
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2095 ac_dummy="/usr/bin:$PATH"
2096 for ac_dir in $ac_dummy; do
2097 test -z "$ac_dir" && ac_dir=.
2098 if test -f $ac_dir/file; then
2099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2100 if test -n "$file_magic_test_file"; then
2101 case $deplibs_check_method in
2102 "file_magic "*)
2103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2106 egrep "$file_magic_regex" > /dev/null; then
2108 else
2109 cat <<EOF 1>&2
2111 *** Warning: the command libtool uses to detect shared libraries,
2112 *** $file_magic_cmd, produces output that libtool cannot recognize.
2113 *** The result is that libtool may fail to recognize shared libraries
2114 *** as such. This will affect the creation of libtool libraries that
2115 *** depend on shared libraries, but programs linked with such libtool
2116 *** libraries will work regardless of this problem. Nevertheless, you
2117 *** may want to report the problem to your system manager and/or to
2118 *** bug-libtool@gnu.org
2121 fi ;;
2122 esac
2124 break
2126 done
2127 IFS="$ac_save_ifs"
2128 MAGIC_CMD="$ac_save_MAGIC_CMD"
2130 esac
2133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2134 if test -n "$MAGIC_CMD"; then
2135 echo "$ac_t""$MAGIC_CMD" 1>&6
2136 else
2137 echo "$ac_t""no" 1>&6
2140 else
2141 MAGIC_CMD=:
2147 esac
2149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156 if test -n "$RANLIB"; then
2157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2158 else
2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2160 ac_dummy="$PATH"
2161 for ac_dir in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/$ac_word; then
2164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2165 break
2167 done
2168 IFS="$ac_save_ifs"
2171 RANLIB="$ac_cv_prog_RANLIB"
2172 if test -n "$RANLIB"; then
2173 echo "$ac_t""$RANLIB" 1>&6
2174 else
2175 echo "$ac_t""no" 1>&6
2179 if test -z "$ac_cv_prog_RANLIB"; then
2180 if test -n "$ac_tool_prefix"; then
2181 # Extract the first word of "ranlib", so it can be a program name with args.
2182 set dummy ranlib; ac_word=$2
2183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_word" >&5
2185 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 if test -n "$RANLIB"; then
2189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2190 else
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 ac_dummy="$PATH"
2193 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/$ac_word; then
2196 ac_cv_prog_RANLIB="ranlib"
2197 break
2199 done
2200 IFS="$ac_save_ifs"
2201 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2204 RANLIB="$ac_cv_prog_RANLIB"
2205 if test -n "$RANLIB"; then
2206 echo "$ac_t""$RANLIB" 1>&6
2207 else
2208 echo "$ac_t""no" 1>&6
2211 else
2212 RANLIB=":"
2216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2217 set dummy ${ac_tool_prefix}strip; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 if test -n "$STRIP"; then
2224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2225 else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2238 STRIP="$ac_cv_prog_STRIP"
2239 if test -n "$STRIP"; then
2240 echo "$ac_t""$STRIP" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2246 if test -z "$ac_cv_prog_STRIP"; then
2247 if test -n "$ac_tool_prefix"; then
2248 # Extract the first word of "strip", so it can be a program name with args.
2249 set dummy strip; ac_word=$2
2250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_word" >&5
2252 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2254 else
2255 if test -n "$STRIP"; then
2256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2257 else
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2259 ac_dummy="$PATH"
2260 for ac_dir in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_prog_STRIP="strip"
2264 break
2266 done
2267 IFS="$ac_save_ifs"
2268 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2271 STRIP="$ac_cv_prog_STRIP"
2272 if test -n "$STRIP"; then
2273 echo "$ac_t""$STRIP" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2278 else
2279 STRIP=":"
2284 # Check for any special flags to pass to ltconfig.
2285 libtool_flags="--cache-file=$cache_file"
2286 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2287 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2288 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2289 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2290 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2291 libtool_flags="$libtool_flags --enable-dlopen"
2293 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2294 if test "${enable_libtool_lock+set}" = set; then
2295 enableval="$enable_libtool_lock"
2299 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2300 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2302 # Check whether --with-pic or --without-pic was given.
2303 if test "${with_pic+set}" = set; then
2304 withval="$with_pic"
2305 pic_mode="$withval"
2306 else
2307 pic_mode=default
2310 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2311 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2313 # Some flags need to be propagated to the compiler or linker for good
2314 # libtool support.
2315 case $host in
2316 *-*-irix6*)
2317 # Find out which ABI we are using.
2318 echo '#line 2319 "configure"' > conftest.$ac_ext
2319 if { (eval echo configure:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 case `/usr/bin/file conftest.$ac_objext` in
2321 *32-bit*)
2322 LD="${LD-ld} -32"
2324 *N32*)
2325 LD="${LD-ld} -n32"
2327 *64-bit*)
2328 LD="${LD-ld} -64"
2330 esac
2332 rm -rf conftest*
2335 *-*-sco3.2v5*)
2336 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2337 SAVE_CFLAGS="$CFLAGS"
2338 CFLAGS="$CFLAGS -belf"
2339 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2340 echo "configure:2341: checking whether the C compiler needs -belf" >&5
2341 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2345 ac_ext=c
2346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2350 cross_compiling=$ac_cv_prog_cc_cross
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2356 int main() {
2358 ; return 0; }
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361 rm -rf conftest*
2362 lt_cv_cc_needs_belf=yes
2363 else
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 rm -rf conftest*
2367 lt_cv_cc_needs_belf=no
2369 rm -f conftest*
2370 ac_ext=c
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling=$ac_cv_prog_cc_cross
2379 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2382 CFLAGS="$SAVE_CFLAGS"
2387 esac
2389 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2390 echo "configure:2391: checking how to run the C++ preprocessor" >&5
2391 if test -z "$CXXCPP"; then
2392 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395 ac_ext=C
2396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2397 ac_cpp='$CXXCPP $CPPFLAGS'
2398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2400 cross_compiling=$ac_cv_prog_cxx_cross
2401 CXXCPP="${CXX-g++} -E"
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <stdlib.h>
2407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2408 { (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2410 if test -z "$ac_err"; then
2412 else
2413 echo "$ac_err" >&5
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -rf conftest*
2417 CXXCPP=/lib/cpp
2419 rm -f conftest*
2420 ac_cv_prog_CXXCPP="$CXXCPP"
2421 ac_ext=c
2422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2426 cross_compiling=$ac_cv_prog_cc_cross
2429 CXXCPP="$ac_cv_prog_CXXCPP"
2430 echo "$ac_t""$CXXCPP" 1>&6
2433 # Save cache, so that ltconfig can load it
2434 cat > confcache <<\EOF
2435 # This file is a shell script that caches the results of configure
2436 # tests run on this system so they can be shared between configure
2437 # scripts and configure runs. It is not useful on other systems.
2438 # If it contains results you don't want to keep, you may remove or edit it.
2440 # By default, configure uses ./config.cache as the cache file,
2441 # creating it if it does not exist already. You can give configure
2442 # the --cache-file=FILE option to use a different cache file; that is
2443 # what configure does when it calls configure scripts in
2444 # subdirectories, so they share the cache.
2445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2446 # config.status only pays attention to the cache file if you give it the
2447 # --recheck option to rerun configure.
2450 # The following way of writing the cache mishandles newlines in values,
2451 # but we know of no workaround that is simple, portable, and efficient.
2452 # So, don't put newlines in cache variables' values.
2453 # Ultrix sh set writes to stderr and can't be redirected directly,
2454 # and sets the high bit in the cache file unless we assign to the vars.
2455 (set) 2>&1 |
2456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2457 *ac_space=\ *)
2458 # `set' does not quote correctly, so add quotes (double-quote substitution
2459 # turns \\\\ into \\, and sed turns \\ into \).
2460 sed -n \
2461 -e "s/'/'\\\\''/g" \
2462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2465 # `set' quotes correctly as required by POSIX, so do not add quotes.
2466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2468 esac >> confcache
2469 if cmp -s $cache_file confcache; then
2471 else
2472 if test -w $cache_file; then
2473 echo "updating cache $cache_file"
2474 cat confcache > $cache_file
2475 else
2476 echo "not updating unwritable cache $cache_file"
2479 rm -f confcache
2482 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2483 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2484 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2485 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2486 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2487 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2488 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2489 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2490 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2491 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2493 # Reload cache, that may have been modified by ltconfig
2494 if test -r "$cache_file"; then
2495 echo "loading cache $cache_file"
2496 . $cache_file
2497 else
2498 echo "creating cache $cache_file"
2499 > $cache_file
2503 # This can be used to rebuild libtool when needed
2504 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2506 # Always use our own libtool.
2507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2509 # Redirect the config.log output again, so that the ltconfig log is not
2510 # clobbered by the next message.
2511 exec 5>>./config.log
2515 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2516 lt_save_CC="$CC"
2517 lt_save_CFLAGS="$CFLAGS"
2518 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2519 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2520 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2521 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2522 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2523 deplibs_check_method="$deplibs_check_method" \
2524 file_magic_cmd="$file_magic_cmd" \
2525 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2526 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2527 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2528 CC="$lt_save_CC"
2529 CFLAGS="$lt_save_CFLAGS"
2531 # Redirect the config.log output again, so that the ltconfig log is not
2532 # clobbered by the next message.
2533 exec 5>>./config.log
2542 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2543 echo "configure:2544: checking for GNU make" >&5
2544 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 _cv_gnu_make_command='' ;
2548 for a in "${MAKE-make}" make gmake gnumake ; do
2549 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2550 then
2551 _cv_gnu_make_command=$a ;
2552 break;
2554 done ;
2558 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2559 if test "x$_cv_gnu_make_command" != "x" ; then
2560 ifGNUmake='' ;
2561 else
2562 ifGNUmake='#' ;
2571 # Check for c++ or library specific bits that don't require linking.
2573 if test ! -f stamp-sanity-compiler; then
2574 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2575 echo "configure:2576: checking for g++ that will successfully compile libstdc++-v3" >&5
2577 ac_ext=C
2578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2579 ac_cpp='$CXXCPP $CPPFLAGS'
2580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2582 cross_compiling=$ac_cv_prog_cxx_cross
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2588 int main() {
2590 #if __GNUC__ < 3
2591 not_ok
2592 #endif
2594 ; return 0; }
2596 if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 rm -rf conftest*
2598 gpp_satisfactory=yes
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2605 rm -f conftest*
2606 ac_ext=c
2607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2611 cross_compiling=$ac_cv_prog_cc_cross
2613 echo "$ac_t""$gpp_satisfactory" 1>&6
2614 touch stamp-sanity-compiler
2618 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2619 # Check whether --enable-debug or --disable-debug was given.
2620 if test "${enable_debug+set}" = set; then
2621 enableval="$enable_debug"
2622 case "${enableval}" in
2623 yes) enable_debug=yes ;;
2624 no) enable_debug=no ;;
2625 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2626 esac
2627 else
2628 enable_debug=no
2631 case "${enable_debug}" in
2632 yes)
2633 DEBUG_FLAGS='-O0 -ggdb3'
2635 no)
2636 DEBUG_FLAGS='-g'
2638 esac
2641 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2642 echo "configure:2643: checking how to run the C preprocessor" >&5
2643 # On Suns, sometimes $CPP names a directory.
2644 if test -n "$CPP" && test -d "$CPP"; then
2645 CPP=
2647 if test -z "$CPP"; then
2648 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 # This must be in double quotes, not single quotes, because CPP may get
2652 # substituted into the Makefile and "${CC-cc}" will confuse make.
2653 CPP="${CC-cc} -E"
2654 # On the NeXT, cc -E runs the code through the compiler's parser,
2655 # not just through cpp.
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <assert.h>
2660 Syntax Error
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 else
2668 echo "$ac_err" >&5
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 CPP="${CC-cc} -E -traditional-cpp"
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <assert.h>
2677 Syntax Error
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 CPP="${CC-cc} -nologo -E"
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 #include <assert.h>
2694 Syntax Error
2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699 if test -z "$ac_err"; then
2701 else
2702 echo "$ac_err" >&5
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 rm -rf conftest*
2706 CPP=/lib/cpp
2708 rm -f conftest*
2710 rm -f conftest*
2712 rm -f conftest*
2713 ac_cv_prog_CPP="$CPP"
2715 CPP="$ac_cv_prog_CPP"
2716 else
2717 ac_cv_prog_CPP="$CPP"
2719 echo "$ac_t""$CPP" 1>&6
2722 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2723 echo "configure:2724: checking for cstdio to use" >&5
2724 # Check whether --enable-cstdio or --disable-cstdio was given.
2725 if test "${enable_cstdio+set}" = set; then
2726 enableval="$enable_cstdio"
2727 if test x$enable_cstdio = xno; then
2728 enable_cstdio=stdio
2730 else
2731 enable_cstdio=stdio
2735 enable_cstdio_flag=$enable_cstdio
2737 case x${enable_cstdio_flag} in
2738 xlibio)
2739 CSTDIO_H=config/c_io_libio.h
2740 BASIC_FILE_H=config/basic_file_libio.h
2741 BASIC_FILE_CC=config/basic_file_libio.cc
2742 echo "$ac_t""libio" 1>&6
2744 # see if we are on a system with libio native (ie, linux)
2745 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2747 echo "configure:2748: checking for libio.h" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <libio.h>
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762 else
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"
2769 rm -f conftest*
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 has_libio=yes
2774 else
2775 echo "$ac_t""no" 1>&6
2776 has_libio=no
2780 # Need to check and see what version of glibc is being used. If
2781 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2782 # compile most of libio for linux systems.
2783 if test x$has_libio = x"yes"; then
2784 case "$target" in
2785 *-*-linux*)
2786 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2787 echo "configure:2788: checking for glibc version >= 2.2" >&5
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2792 #include <features.h>
2793 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2795 #endif
2798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799 egrep "ok" >/dev/null 2>&1; then
2800 rm -rf conftest*
2801 glibc_satisfactory=yes
2802 else
2803 rm -rf conftest*
2804 glibc_satisfactory=no
2806 rm -f conftest*
2808 echo "$ac_t""$glibc_satisfactory" 1>&6
2810 esac
2812 # XXX at the moment, admit defeat and force the recompilation
2813 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2814 glibc_satisfactory=no
2816 if test x$glibc_satisfactory = x"yes"; then
2817 need_libio=no
2818 need_wlibio=no
2819 else
2820 need_libio=yes
2821 # bkoz XXX need to add checks to enable this
2822 # pme XXX here's a first pass at such a check
2823 if test x$enable_c_mbchar != xno; then
2824 need_wlibio=yes
2825 else
2826 need_wlibio=no
2830 else
2831 # Using libio, but <libio.h> doesn't exist on the target system. . .
2832 need_libio=yes
2833 # bkoz XXX need to add checks to enable this
2834 # pme XXX here's a first pass at such a check
2835 if test x$enable_c_mbchar != xno; then
2836 need_wlibio=yes
2837 else
2838 need_wlibio=no
2842 xstdio | x | xno | xnone | xyes)
2843 # default
2844 CSTDIO_H=config/c_io_stdio.h
2845 BASIC_FILE_H=config/basic_file_stdio.h
2846 BASIC_FILE_CC=config/basic_file_stdio.cc
2847 echo "$ac_t""stdio" 1>&6
2849 # We're not using stdio.
2850 need_libio=no
2851 need_wlibio=no
2854 echo "$enable_cstdio is an unknown io package" 1>&2
2855 exit 1
2857 esac
2862 # 2000-08-04 bkoz hack
2863 CCODECVT_C=config/c_io_libio_codecvt.c
2865 # 2000-08-04 bkoz hack
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870 GLIBCPP_BUILD_LIBIO_TRUE=
2871 GLIBCPP_BUILD_LIBIO_FALSE='#'
2872 else
2873 GLIBCPP_BUILD_LIBIO_TRUE='#'
2874 GLIBCPP_BUILD_LIBIO_FALSE=
2878 if test "$need_libio" = yes; then
2879 GLIBCPP_NEED_LIBIO_TRUE=
2880 GLIBCPP_NEED_LIBIO_FALSE='#'
2881 else
2882 GLIBCPP_NEED_LIBIO_TRUE='#'
2883 GLIBCPP_NEED_LIBIO_FALSE=
2887 if test "$need_wlibio" = yes; then
2888 GLIBCPP_NEED_WLIBIO_TRUE=
2889 GLIBCPP_NEED_WLIBIO_FALSE='#'
2890 else
2891 GLIBCPP_NEED_WLIBIO_TRUE='#'
2892 GLIBCPP_NEED_WLIBIO_FALSE=
2894 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2895 libio_la=../libio/libio.la
2896 else
2897 libio_la=
2902 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2903 echo "configure:2904: checking for clocale to use" >&5
2904 # Check whether --enable-clocale or --disable-clocale was given.
2905 if test "${enable_clocale+set}" = set; then
2906 enableval="$enable_clocale"
2907 if test x$enable_clocale = xno; then
2908 enable_clocale=generic
2910 else
2911 enable_clocale=generic
2915 enable_clocale_flag=$enable_clocale
2917 case x${enable_clocale_flag} in
2918 xgnu)
2919 CLOCALE_H=config/c_locale_gnu.h
2920 CLOCALE_CC=config/c_locale_gnu.cc
2921 echo "$ac_t""gnu" 1>&6
2923 xgeneric)
2924 CLOCALE_H=config/c_locale_generic.h
2925 CLOCALE_CC=config/c_locale_generic.cc
2926 echo "$ac_t""generic" 1>&6
2929 echo "$enable_clocale is an unknown locale package" 1>&2
2930 exit 1
2932 esac
2937 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2938 if test "${enable_c_mbchar+set}" = set; then
2939 enableval="$enable_c_mbchar"
2940 case "$enableval" in
2941 yes) enable_c_mbchar=yes ;;
2942 no) enable_c_mbchar=no ;;
2943 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2944 esac
2945 else
2946 enable_c_mbchar=yes
2950 # Check whether --enable-c99 or --disable-c99 was given.
2951 if test "${enable_c99+set}" = set; then
2952 enableval="$enable_c99"
2953 case "$enableval" in
2954 yes) enable_c99=yes ;;
2955 no) enable_c99=no ;;
2956 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2957 esac
2958 else
2959 enable_c99=yes
2963 ac_ext=C
2964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2965 ac_cpp='$CXXCPP $CPPFLAGS'
2966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2968 cross_compiling=$ac_cv_prog_cxx_cross
2971 # Check for the existence of <math.h> functions used if C99 is enabled.
2972 ac_c99_math=yes;
2973 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2974 echo "configure:2975: checking for ISO C99 support in <math.h>" >&5
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <math.h>
2979 int main() {
2980 fpclassify(0.0);
2981 ; return 0; }
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 else
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 rm -rf conftest*
2989 ac_c99_math=no
2991 rm -f conftest*
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <math.h>
2996 int main() {
2997 isfinite(0.0);
2998 ; return 0; }
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 ac_c99_math=no
3008 rm -f conftest*
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <math.h>
3013 int main() {
3014 isinf(0.0);
3015 ; return 0; }
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 ac_c99_math=no
3025 rm -f conftest*
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <math.h>
3030 int main() {
3031 isnan(0.0);
3032 ; return 0; }
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -rf conftest*
3040 ac_c99_math=no
3042 rm -f conftest*
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <math.h>
3047 int main() {
3048 isnormal(0.0);
3049 ; return 0; }
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -rf conftest*
3057 ac_c99_math=no
3059 rm -f conftest*
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <math.h>
3064 int main() {
3065 signbit(0.0);
3066 ; return 0; }
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 ac_c99_math=no
3076 rm -f conftest*
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <math.h>
3081 int main() {
3082 isgreater(0.0,0.0);
3083 ; return 0; }
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -rf conftest*
3091 ac_c99_math=no
3093 rm -f conftest*
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <math.h>
3098 int main() {
3099 isgreaterequal(0.0,0.0);
3100 ; return 0; }
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 else
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 ac_c99_math=no
3110 rm -f conftest*
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <math.h>
3115 int main() {
3116 isless(0.0,0.0);
3117 ; return 0; }
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -rf conftest*
3125 ac_c99_math=no
3127 rm -f conftest*
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <math.h>
3132 int main() {
3133 islessequal(0.0,0.0);
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138 else
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 ac_c99_math=no
3144 rm -f conftest*
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <math.h>
3149 int main() {
3150 islessgreater(0.0,0.0);
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 ac_c99_math=no
3161 rm -f conftest*
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 isunordered(0.0,0.0);
3168 ; return 0; }
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_c99_math=no
3178 rm -f conftest*
3179 echo "$ac_t""$ac_c99_math" 1>&6
3181 # Check for the existence in <stdio.h> of vscanf, et. al.
3182 ac_c99_stdio=yes;
3183 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3184 echo "configure:3185: checking for ISO C99 support in <stdio.h>" >&5
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <stdio.h>
3189 int main() {
3190 snprintf("12", 0, "%i");
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -rf conftest*
3199 ac_c99_stdio=no
3201 rm -f conftest*
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <stdio.h>
3206 #include <stdarg.h>
3207 void foo(char* fmt, ...)
3208 {va_list args; va_start(args, fmt);
3209 vfscanf(stderr, "%i", args);}
3210 int main() {
3212 ; return 0; }
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 else
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 ac_c99_stdio=no
3222 rm -f conftest*
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <stdio.h>
3227 #include <stdarg.h>
3228 void foo(char* fmt, ...)
3229 {va_list args; va_start(args, fmt);
3230 vscanf("%i", args);}
3231 int main() {
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 else
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 rm -rf conftest*
3241 ac_c99_stdio=no
3243 rm -f conftest*
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <stdio.h>
3248 #include <stdarg.h>
3249 void foo(char* fmt, ...)
3250 {va_list args; va_start(args, fmt);
3251 vsnprintf(fmt, 0, "%i", args);}
3252 int main() {
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 ac_c99_stdio=no
3264 rm -f conftest*
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <stdio.h>
3269 #include <stdarg.h>
3270 void foo(char* fmt, ...)
3271 {va_list args; va_start(args, fmt);
3272 vsscanf(fmt, "%i", args);}
3273 int main() {
3275 ; return 0; }
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 else
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 rm -rf conftest*
3283 ac_c99_stdio=no
3285 rm -f conftest*
3286 echo "$ac_t""$ac_c99_stdio" 1>&6
3288 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3289 ac_c99_stdlib=yes;
3290 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3291 echo "configure:3292: checking for lldiv_t declaration" >&5
3292 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <stdlib.h>
3300 int main() {
3301 lldiv_t mydivt;
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 rm -rf conftest*
3306 ac_c99_lldiv_t=yes
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 ac_c99_lldiv_t=no
3313 rm -f conftest*
3317 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3319 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3320 echo "configure:3321: checking for ISO C99 support in <stdlib.h>" >&5
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <stdlib.h>
3325 int main() {
3326 char* tmp; strtof("gnu", &tmp);
3327 ; return 0; }
3329 if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
3335 ac_c99_stdlib=no
3337 rm -f conftest*
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <stdlib.h>
3342 int main() {
3343 char* tmp; strtold("gnu", &tmp);
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 else
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
3352 ac_c99_stdlib=no
3354 rm -f conftest*
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <stdlib.h>
3359 int main() {
3360 char* tmp; strtoll("gnu", &tmp, 10);
3361 ; return 0; }
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 ac_c99_stdlib=no
3371 rm -f conftest*
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdlib.h>
3376 int main() {
3377 char* tmp; strtoull("gnu", &tmp, 10);
3378 ; return 0; }
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 ac_c99_stdlib=no
3388 rm -f conftest*
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdlib.h>
3393 int main() {
3394 llabs(10);
3395 ; return 0; }
3397 if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3399 else
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 ac_c99_stdlib=no
3405 rm -f conftest*
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 int main() {
3411 lldiv(10,1);
3412 ; return 0; }
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 else
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3419 rm -rf conftest*
3420 ac_c99_stdlib=no
3422 rm -f conftest*
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdlib.h>
3427 int main() {
3428 atoll("10");
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -rf conftest*
3437 ac_c99_stdlib=no
3439 rm -f conftest*
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdlib.h>
3444 int main() {
3445 _Exit(0);
3446 ; return 0; }
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 else
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 rm -rf conftest*
3454 ac_c99_stdlib=no
3456 rm -f conftest*
3457 if test x"$ac_c99_lldiv_t" = x"no"; then
3458 ac_c99_stdlib=no;
3459 fi;
3460 echo "$ac_t""$ac_c99_stdlib" 1>&6
3462 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3463 # XXX the wchar.h checks should be rolled into the general C99 bits.
3464 ac_c99_wchar=yes;
3465 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3466 echo "configure:3467: checking for additional ISO C99 support in <wchar.h>" >&5
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <wchar.h>
3471 int main() {
3472 wcstold(L"10.0", NULL);
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_c99_wchar=no
3483 rm -f conftest*
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <wchar.h>
3488 int main() {
3489 wcstoll(L"10", NULL, 10);
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_wchar=no
3500 rm -f conftest*
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <wchar.h>
3505 int main() {
3506 wcstoull(L"10", NULL, 10);
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 ac_c99_wchar=no
3517 rm -f conftest*
3518 echo "$ac_t""$ac_c99_wchar" 1>&6
3520 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3521 echo "configure:3522: checking for enabled ISO C99 support" >&5
3522 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_stdio" = x"no" \
3523 || test x"$ac_c99_stdlib" = x"no" \
3524 || test x"$ac_c99_wchar" = x"no"; then
3525 enable_c99=no;
3526 fi;
3527 echo "$ac_t""$enable_c99" 1>&6
3529 # Option parsed, now set things appropriately
3530 if test x"$enable_c99" = x"yes"; then
3531 cat >> confdefs.h <<\EOF
3532 #define _GLIBCPP_USE_C99 1
3537 ac_ext=c
3538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3542 cross_compiling=$ac_cv_prog_cc_cross
3546 # Check whether --enable-long-long or --disable-long-long was given.
3547 if test "${enable_long_long+set}" = set; then
3548 enableval="$enable_long_long"
3549 case "$enableval" in
3550 yes) enable_long_long=yes ;;
3551 no) enable_long_long=no ;;
3552 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3553 esac
3554 else
3555 enable_long_long=yes
3558 # iostreams require strtoll, strtoull to compile. If the
3559 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3560 # go ahead and allow long long to be used.
3561 if test x"$enable_c99" = x"no"; then
3562 enable_long_long=no;
3565 # Option parsed, now set things appropriately
3566 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3567 echo "configure:3568: checking for enabled long long support" >&5
3568 if test x"$enable_long_long" = xyes; then
3569 cat >> confdefs.h <<\EOF
3570 #define _GLIBCPP_USE_LONG_LONG 1
3574 echo "$ac_t""$enable_long_long" 1>&6
3576 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3577 echo "configure:3578: checking for c header strategy to use" >&5
3578 # Check whether --enable-cheaders or --disable-cheaders was given.
3579 if test "${enable_cheaders+set}" = set; then
3580 enableval="$enable_cheaders"
3582 case "$enableval" in
3584 enable_cheaders=c
3586 c_std)
3587 enable_cheaders=c_std
3589 c_shadow)
3590 enable_cheaders=c_shadow
3592 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3594 esac
3595 else
3596 enable_cheaders=c_std
3599 echo "$ac_t""$enable_cheaders" 1>&6
3601 case "$enable_cheaders" in
3602 c_shadow)
3603 CSHADOW_FLAGS="-fno-builtin"
3604 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3605 cat >> confdefs.h <<\EOF
3606 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3610 c_std)
3611 CSHADOW_FLAGS=""
3612 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3615 CSHADOW_FLAGS=""
3616 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3618 esac
3624 if test "$enable_cheaders" = c_shadow; then
3625 GLIBCPP_USE_CSHADOW_TRUE=
3626 GLIBCPP_USE_CSHADOW_FALSE='#'
3627 else
3628 GLIBCPP_USE_CSHADOW_TRUE='#'
3629 GLIBCPP_USE_CSHADOW_FALSE=
3633 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3634 echo "configure:3635: checking for thread model used by GCC" >&5
3635 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3636 echo "$ac_t""$target_thread_file" 1>&6
3638 if test $target_thread_file != single; then
3639 cat >> confdefs.h <<\EOF
3640 #define HAVE_GTHR_DEFAULT 1
3643 cat >> confdefs.h <<\EOF
3644 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3649 glibcpp_thread_h=gthr-$target_thread_file.h
3652 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3653 if test "${enable_cxx_flags+set}" = set; then
3654 enableval="$enable_cxx_flags"
3655 case "x$enableval" in
3656 xyes)
3657 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3658 xno|x)
3659 enable_cxx_flags='' ;;
3661 enable_cxx_flags="$enableval" ;;
3662 esac
3663 else
3664 enable_cxx_flags='none'
3668 if test "$enable_cxx_flags" = "none"; then
3669 enable_cxx_flags='';
3672 if test -n "$enable_cxx_flags"; then
3673 for f in $enable_cxx_flags; do
3674 case "$f" in
3675 -fhonor-std) ;;
3676 -*) ;;
3677 *) # and we're trying to pass /what/ exactly?
3678 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3679 esac
3680 done
3682 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3686 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3687 echo "configure:3688: checking for exception model to use" >&5
3689 ac_ext=C
3690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3691 ac_cpp='$CXXCPP $CPPFLAGS'
3692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3694 cross_compiling=$ac_cv_prog_cxx_cross
3696 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3697 if test "${enable_sjlj_exceptions+set}" = set; then
3698 enableval="$enable_sjlj_exceptions"
3700 else
3701 cat > conftest.$ac_ext << EOF
3702 #line 3703 "configure"
3703 struct S { ~S(); };
3704 void bar();
3705 void foo()
3707 S s;
3708 bar();
3711 old_CXXFLAGS="$CXXFLAGS"
3712 CXXFLAGS=-S
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3715 enable_sjlj_exceptions=yes
3716 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3717 enable_sjlj_exceptions=no
3720 CXXFLAGS="$old_CXXFLAGS"
3721 rm -f conftest*
3724 if test x$enable_sjlj_exceptions = xyes; then
3725 cat >> confdefs.h <<\EOF
3726 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3729 ac_exception_model_name=sjlj
3730 elif test x$enable_sjlj_exceptions = xno; then
3731 ac_exception_model_name="call frame"
3732 else
3733 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3735 ac_ext=c
3736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3740 cross_compiling=$ac_cv_prog_cc_cross
3742 echo "$ac_t""$ac_exception_model_name" 1>&6
3745 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3747 # We are being configured with some form of cross compiler.
3748 # mknumeric_limits may not work correctly, either because the
3749 # compiler may not run on this machine, may not be able to link
3750 # executables, or may produce executables we can't run on this
3751 # machine.
3752 GLIBCPP_IS_CROSS_COMPILING=1
3754 # If Canadian cross, then don't pick up tools from the build
3755 # directory.
3756 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3757 CANADIAN=yes
3758 else
3759 CANADIAN=no
3762 case "$target_alias" in
3763 *-linux*)
3764 # Construct linux crosses by hand, eliminating bits that need ld...
3765 # Check for available headers.
3766 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3767 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3768 float.h inttypes.h
3770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3772 echo "configure:3773: checking for $ac_hdr" >&5
3773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <$ac_hdr>
3781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3782 { (eval echo configure:3783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3784 if test -z "$ac_err"; then
3785 rm -rf conftest*
3786 eval "ac_cv_header_$ac_safe=yes"
3787 else
3788 echo "$ac_err" >&5
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 rm -rf conftest*
3792 eval "ac_cv_header_$ac_safe=no"
3794 rm -f conftest*
3796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_hdr 1
3803 else
3804 echo "$ac_t""no" 1>&6
3806 done
3809 # GLIBCPP_CHECK_COMPILER_FEATURES
3810 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3813 # If we're not using GNU ld, then there's no point in even trying these
3814 # tests. Check for that first. We should have already tested for gld
3815 # by now (in libtool), but require it now just to be safe...
3816 SECTION_LDFLAGS=''
3817 OPT_LDFLAGS=''
3820 # Set --gc-sections.
3821 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3822 # GNU ld it is! Joy and bunny rabbits!
3824 # All these tests are for C++; save the language and the compiler flags.
3825 # Need to do this so that g++ won't try to link in libstdc++
3826 ac_test_CFLAGS="${CFLAGS+set}"
3827 ac_save_CFLAGS="$CFLAGS"
3828 CFLAGS='-x c++ -Wl,--gc-sections'
3830 # Check for -Wl,--gc-sections
3831 # XXX This test is broken at the moment, as symbols required for
3832 # linking are now in libsupc++ (not built yet.....). In addition,
3833 # this test has cored on solaris in the past. In addition,
3834 # --gc-sections doesn't really work at the moment (keeps on discarding
3835 # used sections, first .eh_frame and now some of the glibc sections for
3836 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3837 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3838 echo "configure:3839: checking for ld that supports -Wl,--gc-sections" >&5
3839 if test "$cross_compiling" = yes; then
3840 ac_sectionLDflags=yes
3841 else
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3846 int main(void)
3848 try { throw 1; }
3849 catch (...) { };
3850 return 0;
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3855 then
3856 ac_sectionLDflags=yes
3857 else
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -fr conftest*
3861 ac_sectionLFflags=no
3863 rm -fr conftest*
3866 if test "$ac_test_CFLAGS" = set; then
3867 CFLAGS="$ac_save_CFLAGS"
3868 else
3869 # this is the suspicious part
3870 CFLAGS=''
3872 if test "$ac_sectionLDflags" = "yes"; then
3873 SECTION_LDFLAGS='-Wl,--gc-sections'
3875 echo "$ac_t""$ac_sectionLDflags" 1>&6
3878 # Set linker optimization flags.
3879 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3880 OPT_LDFLAGS='-Wl,-O1'
3886 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3887 # GLIBCPP_CHECK_MATH_SUPPORT
3888 cat >> confdefs.h <<\EOF
3889 #define HAVE_ACOSF 1
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_ASINF 1
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_ATAN2F 1
3900 cat >> confdefs.h <<\EOF
3901 #define HAVE_ATANF 1
3904 cat >> confdefs.h <<\EOF
3905 #define HAVE_CEILF 1
3908 cat >> confdefs.h <<\EOF
3909 #define HAVE_COPYSIGN 1
3912 cat >> confdefs.h <<\EOF
3913 #define HAVE_COPYSIGNF 1
3916 cat >> confdefs.h <<\EOF
3917 #define HAVE_COSF 1
3920 cat >> confdefs.h <<\EOF
3921 #define HAVE_COSHF 1
3924 cat >> confdefs.h <<\EOF
3925 #define HAVE_EXPF 1
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_FABSF 1
3932 cat >> confdefs.h <<\EOF
3933 #define HAVE_FINITE 1
3936 cat >> confdefs.h <<\EOF
3937 #define HAVE_FINITEF 1
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_FLOORF 1
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_FMODF 1
3948 cat >> confdefs.h <<\EOF
3949 #define HAVE_FREXPF 1
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_ISINF 1
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_ISINFF 1
3960 cat >> confdefs.h <<\EOF
3961 #define HAVE_ISNAN 1
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_ISNANF 1
3968 cat >> confdefs.h <<\EOF
3969 #define HAVE_LDEXPF 1
3972 cat >> confdefs.h <<\EOF
3973 #define HAVE_LOG10F 1
3976 cat >> confdefs.h <<\EOF
3977 #define HAVE_LOGF 1
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_MODFF 1
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_POWF 1
3988 cat >> confdefs.h <<\EOF
3989 #define HAVE_SINCOS 1
3992 cat >> confdefs.h <<\EOF
3993 #define HAVE_SINCOSF 1
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_SINF 1
4000 cat >> confdefs.h <<\EOF
4001 #define HAVE_SINHF 1
4004 cat >> confdefs.h <<\EOF
4005 #define HAVE_SQRTF 1
4008 cat >> confdefs.h <<\EOF
4009 #define HAVE_TANF 1
4012 cat >> confdefs.h <<\EOF
4013 #define HAVE_TANHF 1
4017 # At some point, we should differentiate between architectures
4018 # like x86, which have long double versions, and alpha/powerpc/etc.,
4019 # which don't. For the time being, punt.
4020 if test x"long_double_math_on_this_cpu" = x"yes"; then
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE_ACOSL 1
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_ASINL 1
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_ATAN2L 1
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_ATANL 1
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_CEILL 1
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_COPYSIGNL 1
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_COSL 1
4049 cat >> confdefs.h <<\EOF
4050 #define HAVE_COSHL 1
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_EXPL 1
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_FABSL 1
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_FINITEL 1
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_FLOORL 1
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_FMODL 1
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_FREXPL 1
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_ISINFL 1
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_ISNANL 1
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_LDEXPL 1
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_LOG10L 1
4093 cat >> confdefs.h <<\EOF
4094 #define HAVE_LOGL 1
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_MODFL 1
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_POWL 1
4105 cat >> confdefs.h <<\EOF
4106 #define HAVE_SINCOSL 1
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_SINL 1
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_SINHL 1
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_SQRTL 1
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_TANL 1
4125 cat >> confdefs.h <<\EOF
4126 #define HAVE_TANHL 1
4131 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4132 echo "configure:4133: checking for main in -lm" >&5
4133 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 ac_save_LIBS="$LIBS"
4138 LIBS="-lm $LIBS"
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4143 int main() {
4144 main()
4145 ; return 0; }
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 rm -rf conftest*
4149 eval "ac_cv_lib_$ac_lib_var=yes"
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 eval "ac_cv_lib_$ac_lib_var=no"
4156 rm -f conftest*
4157 LIBS="$ac_save_LIBS"
4160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4164 cat >> confdefs.h <<EOF
4165 #define $ac_tr_lib 1
4168 LIBS="-lm $LIBS"
4170 else
4171 echo "$ac_t""no" 1>&6
4174 for ac_func in nan copysignf
4176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4177 echo "configure:4178: checking for $ac_func" >&5
4178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* System header to define __stub macros and hopefully few prototypes,
4185 which can conflict with char $ac_func(); below. */
4186 #include <assert.h>
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190 char $ac_func();
4192 int main() {
4194 /* The GNU C library defines this for functions which it implements
4195 to always fail with ENOSYS. Some functions are actually named
4196 something starting with __ and the normal name is an alias. */
4197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4198 choke me
4199 #else
4200 $ac_func();
4201 #endif
4203 ; return 0; }
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 rm -rf conftest*
4207 eval "ac_cv_func_$ac_func=yes"
4208 else
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -rf conftest*
4212 eval "ac_cv_func_$ac_func=no"
4214 rm -f conftest*
4217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4220 cat >> confdefs.h <<EOF
4221 #define $ac_tr_func 1
4224 else
4225 echo "$ac_t""no" 1>&6
4226 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4228 done
4232 USE_COMPLEX_LONG_DOUBLE=no
4233 if test x$ac_cv_func_copysignl = x"yes"; then
4234 USE_COMPLEX_LONG_DOUBLE=yes
4235 for ac_func in signbitl
4237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4238 echo "configure:4239: checking for $ac_func" >&5
4239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4241 else
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* System header to define __stub macros and hopefully few prototypes,
4246 which can conflict with char $ac_func(); below. */
4247 #include <assert.h>
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4251 char $ac_func();
4253 int main() {
4255 /* The GNU C library defines this for functions which it implements
4256 to always fail with ENOSYS. Some functions are actually named
4257 something starting with __ and the normal name is an alias. */
4258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4259 choke me
4260 #else
4261 $ac_func();
4262 #endif
4264 ; return 0; }
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 rm -rf conftest*
4268 eval "ac_cv_func_$ac_func=yes"
4269 else
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 rm -rf conftest*
4273 eval "ac_cv_func_$ac_func=no"
4275 rm -f conftest*
4278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4281 cat >> confdefs.h <<EOF
4282 #define $ac_tr_func 1
4285 else
4286 echo "$ac_t""no" 1>&6
4287 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4289 done
4298 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4299 echo "configure:4300: checking for mbstate_t" >&5
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 #include <wchar.h>
4304 int main() {
4305 mbstate_t teststate;
4306 ; return 0; }
4308 if { (eval echo configure:4309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 rm -rf conftest*
4310 have_mbstate_t=yes
4311 else
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4314 rm -rf conftest*
4315 have_mbstate_t=no
4317 rm -f conftest*
4318 echo "$ac_t""$have_mbstate_t" 1>&6
4319 if test x"$have_mbstate_t" = xyes; then
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_MBSTATE_T 1
4326 for ac_hdr in wchar.h
4328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_hdr" >&5
4331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 #include <$ac_hdr>
4339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4342 if test -z "$ac_err"; then
4343 rm -rf conftest*
4344 eval "ac_cv_header_$ac_safe=yes"
4345 else
4346 echo "$ac_err" >&5
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4349 rm -rf conftest*
4350 eval "ac_cv_header_$ac_safe=no"
4352 rm -f conftest*
4354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_hdr 1
4360 ac_has_wchar_h=yes
4361 else
4362 echo "$ac_t""no" 1>&6
4363 ac_has_wchar_h=no
4365 done
4367 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4368 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4369 echo "configure:4370: checking for wctype.h" >&5
4370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <wctype.h>
4378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4379 { (eval echo configure:4380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4381 if test -z "$ac_err"; then
4382 rm -rf conftest*
4383 eval "ac_cv_header_$ac_safe=yes"
4384 else
4385 echo "$ac_err" >&5
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 eval "ac_cv_header_$ac_safe=no"
4391 rm -f conftest*
4393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_has_wctype_h=yes
4396 else
4397 echo "$ac_t""no" 1>&6
4398 ac_has_wctype_h=no
4402 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4403 && test x"$enable_c_mbchar" != xno; then
4405 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4406 echo "configure:4407: checking for WCHAR_MIN and WCHAR_MAX" >&5
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 #include <wchar.h>
4411 int main() {
4412 int i = WCHAR_MIN; int j = WCHAR_MAX;
4413 ; return 0; }
4415 if { (eval echo configure:4416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4416 rm -rf conftest*
4417 has_wchar_minmax=yes
4418 else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -rf conftest*
4422 has_wchar_minmax=no
4424 rm -f conftest*
4425 echo "$ac_t""$has_wchar_minmax" 1>&6
4427 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4428 echo "configure:4429: checking for WEOF" >&5
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4433 #include <wchar.h>
4434 #include <stddef.h>
4435 int main() {
4436 wint_t i = WEOF;
4437 ; return 0; }
4439 if { (eval echo configure:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4440 rm -rf conftest*
4441 has_weof=yes
4442 else
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4445 rm -rf conftest*
4446 has_weof=no
4448 rm -f conftest*
4449 echo "$ac_t""$has_weof" 1>&6
4451 ac_wfuncs=yes
4452 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_func" >&5
4456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4458 else
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func(); below. */
4464 #include <assert.h>
4465 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4468 char $ac_func();
4470 int main() {
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 choke me
4477 #else
4478 $ac_func();
4479 #endif
4481 ; return 0; }
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 rm -rf conftest*
4485 eval "ac_cv_func_$ac_func=yes"
4486 else
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 rm -rf conftest*
4490 eval "ac_cv_func_$ac_func=no"
4492 rm -f conftest*
4495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4498 cat >> confdefs.h <<EOF
4499 #define $ac_tr_func 1
4502 else
4503 echo "$ac_t""no" 1>&6
4505 ac_wfuncs=no
4507 done
4510 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4511 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4512 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4513 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4514 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4515 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_func" >&5
4519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func(); below. */
4527 #include <assert.h>
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char $ac_func();
4533 int main() {
4535 /* The GNU C library defines this for functions which it implements
4536 to always fail with ENOSYS. Some functions are actually named
4537 something starting with __ and the normal name is an alias. */
4538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4539 choke me
4540 #else
4541 $ac_func();
4542 #endif
4544 ; return 0; }
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4547 rm -rf conftest*
4548 eval "ac_cv_func_$ac_func=yes"
4549 else
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 rm -rf conftest*
4553 eval "ac_cv_func_$ac_func=no"
4555 rm -f conftest*
4558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_func 1
4565 else
4566 echo "$ac_t""no" 1>&6
4568 ac_wfuncs=no
4570 done
4573 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4574 echo "configure:4575: checking for ISO C99 wchar_t support" >&5
4575 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4576 && test x"$ac_wfuncs" = xyes; then
4577 ac_isoC99_wchar_t=yes
4578 else
4579 ac_isoC99_wchar_t=no
4581 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4583 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4584 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4585 echo "configure:4586: checking for iconv.h" >&5
4586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4588 else
4589 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4592 #include <iconv.h>
4594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4597 if test -z "$ac_err"; then
4598 rm -rf conftest*
4599 eval "ac_cv_header_$ac_safe=yes"
4600 else
4601 echo "$ac_err" >&5
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4604 rm -rf conftest*
4605 eval "ac_cv_header_$ac_safe=no"
4607 rm -f conftest*
4609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_has_iconv_h=yes
4612 else
4613 echo "$ac_t""no" 1>&6
4614 ac_has_iconv_h=no
4617 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4619 echo "configure:4620: checking for langinfo.h" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <langinfo.h>
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4632 rm -rf conftest*
4633 eval "ac_cv_header_$ac_safe=yes"
4634 else
4635 echo "$ac_err" >&5
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_header_$ac_safe=no"
4641 rm -f conftest*
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_has_langinfo_h=yes
4646 else
4647 echo "$ac_t""no" 1>&6
4648 ac_has_langinfo_h=no
4652 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4653 echo "configure:4654: checking for iconv in -liconv" >&5
4654 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 ac_save_LIBS="$LIBS"
4659 LIBS="-liconv $LIBS"
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4666 char iconv();
4668 int main() {
4669 iconv()
4670 ; return 0; }
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 rm -rf conftest*
4674 eval "ac_cv_lib_$ac_lib_var=yes"
4675 else
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -rf conftest*
4679 eval "ac_cv_lib_$ac_lib_var=no"
4681 rm -f conftest*
4682 LIBS="$ac_save_LIBS"
4685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 libiconv="-liconv"
4688 else
4689 echo "$ac_t""no" 1>&6
4692 ac_save_LIBS="$LIBS"
4693 LIBS="$LIBS $libiconv"
4695 for ac_func in iconv_open iconv_close iconv nl_langinfo
4697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_func" >&5
4699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char $ac_func(); below. */
4707 #include <assert.h>
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4711 char $ac_func();
4713 int main() {
4715 /* The GNU C library defines this for functions which it implements
4716 to always fail with ENOSYS. Some functions are actually named
4717 something starting with __ and the normal name is an alias. */
4718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4719 choke me
4720 #else
4721 $ac_func();
4722 #endif
4724 ; return 0; }
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 rm -rf conftest*
4728 eval "ac_cv_func_$ac_func=yes"
4729 else
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 rm -rf conftest*
4733 eval "ac_cv_func_$ac_func=no"
4735 rm -f conftest*
4738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_func 1
4745 ac_XPG2funcs=yes
4746 else
4747 echo "$ac_t""no" 1>&6
4748 ac_XPG2funcs=no
4750 done
4753 LIBS="$ac_save_LIBS"
4755 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4756 echo "configure:4757: checking for XPG2 wchar_t support" >&5
4757 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4758 && test x"$ac_XPG2funcs" = xyes; then
4759 ac_XPG2_wchar_t=yes
4760 else
4761 ac_XPG2_wchar_t=no
4763 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4765 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4766 echo "configure:4767: checking for enabled wchar_t specializations" >&5
4767 if test x"$ac_isoC99_wchar_t" = xyes \
4768 && test x"$ac_XPG2_wchar_t" = xyes; then
4769 cat >> confdefs.h <<\EOF
4770 #define _GLIBCPP_USE_WCHAR_T 1
4773 echo "$ac_t"""yes"" 1>&6
4774 else
4775 echo "$ac_t"""no"" 1>&6
4777 else
4778 echo "configure: warning: wchar_t support disabled." 1>&2
4781 os_include_dir="config/os/gnu-linux"
4782 # GLIBCPP_CHECK_STDLIB_SUPPORT
4783 cat >> confdefs.h <<\EOF
4784 #define HAVE_STRTOF 1
4787 cat >> confdefs.h <<\EOF
4788 #define HAVE_STRTOLD 1
4791 # AC_FUNC_MMAP
4792 cat >> confdefs.h <<\EOF
4793 #define HAVE_MMAP 1
4798 # We assume newlib. This lets us hard-code the functions we know
4799 # we'll have.
4800 cat >> confdefs.h <<\EOF
4801 #define HAVE_FINITE 1
4804 cat >> confdefs.h <<\EOF
4805 #define HAVE_ISNAN 1
4808 cat >> confdefs.h <<\EOF
4809 #define HAVE_ISNANF 1
4812 cat >> confdefs.h <<\EOF
4813 #define HAVE_ISINF 1
4816 cat >> confdefs.h <<\EOF
4817 #define HAVE_ISINFF 1
4821 os_include_dir="config/os/newlib"
4823 # need to check for faster f versions of math functions, ie sinf?
4825 esac
4826 else
4828 # We are being configured natively. We can do more elaborate tests
4829 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4830 # working.
4831 GLIBCPP_IS_CROSS_COMPILING=0
4832 CANADIAN=no
4834 # Check for available headers.
4835 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4836 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_hdr" >&5
4841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <$ac_hdr>
4849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4850 { (eval echo configure:4851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4852 if test -z "$ac_err"; then
4853 rm -rf conftest*
4854 eval "ac_cv_header_$ac_safe=yes"
4855 else
4856 echo "$ac_err" >&5
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 rm -rf conftest*
4860 eval "ac_cv_header_$ac_safe=no"
4862 rm -f conftest*
4864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4867 cat >> confdefs.h <<EOF
4868 #define $ac_tr_hdr 1
4871 else
4872 echo "$ac_t""no" 1>&6
4874 done
4878 # All these tests are for C++; save the language and the compiler flags.
4879 # The CXXFLAGS thing is suspicious, but based on similar bits previously
4880 # found in GLIBCPP_CONFIGURE.
4882 ac_ext=C
4883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4884 ac_cpp='$CXXCPP $CPPFLAGS'
4885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4887 cross_compiling=$ac_cv_prog_cxx_cross
4889 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4890 ac_save_CXXFLAGS="$CXXFLAGS"
4892 # Check for maintainer-mode bits.
4893 if test x"$USE_MAINTAINER_MODE" = xno; then
4894 WERROR=''
4895 else
4896 WERROR='-Werror'
4899 # Check for -ffunction-sections -fdata-sections
4900 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4901 echo "configure:4902: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4902 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4907 int main() {
4908 int foo;
4910 ; return 0; }
4912 if { (eval echo configure:4913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4913 rm -rf conftest*
4914 ac_fdsections=yes
4915 else
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 rm -rf conftest*
4919 ac_fdsections=no
4921 rm -f conftest*
4922 if test "$ac_test_CXXFLAGS" = set; then
4923 CXXFLAGS="$ac_save_CXXFLAGS"
4924 else
4925 # this is the suspicious part
4926 CXXFLAGS=''
4928 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4929 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4931 echo "$ac_t""$ac_fdsections" 1>&6
4933 ac_ext=c
4934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4938 cross_compiling=$ac_cv_prog_cc_cross
4944 # If we're not using GNU ld, then there's no point in even trying these
4945 # tests. Check for that first. We should have already tested for gld
4946 # by now (in libtool), but require it now just to be safe...
4947 SECTION_LDFLAGS=''
4948 OPT_LDFLAGS=''
4951 # Set --gc-sections.
4952 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4953 # GNU ld it is! Joy and bunny rabbits!
4955 # All these tests are for C++; save the language and the compiler flags.
4956 # Need to do this so that g++ won't try to link in libstdc++
4957 ac_test_CFLAGS="${CFLAGS+set}"
4958 ac_save_CFLAGS="$CFLAGS"
4959 CFLAGS='-x c++ -Wl,--gc-sections'
4961 # Check for -Wl,--gc-sections
4962 # XXX This test is broken at the moment, as symbols required for
4963 # linking are now in libsupc++ (not built yet.....). In addition,
4964 # this test has cored on solaris in the past. In addition,
4965 # --gc-sections doesn't really work at the moment (keeps on discarding
4966 # used sections, first .eh_frame and now some of the glibc sections for
4967 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4968 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4969 echo "configure:4970: checking for ld that supports -Wl,--gc-sections" >&5
4970 if test "$cross_compiling" = yes; then
4971 ac_sectionLDflags=yes
4972 else
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4977 int main(void)
4979 try { throw 1; }
4980 catch (...) { };
4981 return 0;
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4986 then
4987 ac_sectionLDflags=yes
4988 else
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 rm -fr conftest*
4992 ac_sectionLFflags=no
4994 rm -fr conftest*
4997 if test "$ac_test_CFLAGS" = set; then
4998 CFLAGS="$ac_save_CFLAGS"
4999 else
5000 # this is the suspicious part
5001 CFLAGS=''
5003 if test "$ac_sectionLDflags" = "yes"; then
5004 SECTION_LDFLAGS='-Wl,--gc-sections'
5006 echo "$ac_t""$ac_sectionLDflags" 1>&6
5009 # Set linker optimization flags.
5010 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5011 OPT_LDFLAGS='-Wl,-O1'
5019 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5020 echo "configure:5021: checking for __builtin_abs declaration" >&5
5021 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5022 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5024 else
5027 ac_ext=C
5028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5029 ac_cpp='$CXXCPP $CPPFLAGS'
5030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5032 cross_compiling=$ac_cv_prog_cxx_cross
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 #include <math.h>
5038 int main() {
5039 __builtin_abs(0);
5040 ; return 0; }
5042 if { (eval echo configure:5043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 rm -rf conftest*
5044 glibcpp_cv_func___builtin_abs_use=yes
5045 else
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 rm -rf conftest*
5049 glibcpp_cv_func___builtin_abs_use=no
5051 rm -f conftest*
5052 ac_ext=c
5053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5054 ac_cpp='$CPP $CPPFLAGS'
5055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5057 cross_compiling=$ac_cv_prog_cc_cross
5063 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5064 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5065 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5066 echo "configure:5067: checking for __builtin_abs linkage" >&5
5067 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5068 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070 else
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 #include <math.h>
5076 int main() {
5077 __builtin_abs(0);
5078 ; return 0; }
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 rm -rf conftest*
5082 glibcpp_cv_func___builtin_abs_link=yes
5083 else
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 rm -rf conftest*
5087 glibcpp_cv_func___builtin_abs_link=no
5089 rm -f conftest*
5094 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5095 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5096 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5097 cat >> confdefs.h <<EOF
5098 #define ${ac_tr_func} 1
5105 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5106 echo "configure:5107: checking for __builtin_fabsf declaration" >&5
5107 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5108 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5110 else
5113 ac_ext=C
5114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5115 ac_cpp='$CXXCPP $CPPFLAGS'
5116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5118 cross_compiling=$ac_cv_prog_cxx_cross
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 #include <math.h>
5124 int main() {
5125 __builtin_fabsf(0);
5126 ; return 0; }
5128 if { (eval echo configure:5129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5129 rm -rf conftest*
5130 glibcpp_cv_func___builtin_fabsf_use=yes
5131 else
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 rm -rf conftest*
5135 glibcpp_cv_func___builtin_fabsf_use=no
5137 rm -f conftest*
5138 ac_ext=c
5139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5142 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5143 cross_compiling=$ac_cv_prog_cc_cross
5149 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5150 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5151 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5152 echo "configure:5153: checking for __builtin_fabsf linkage" >&5
5153 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5154 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 #include <math.h>
5162 int main() {
5163 __builtin_fabsf(0);
5164 ; return 0; }
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 rm -rf conftest*
5168 glibcpp_cv_func___builtin_fabsf_link=yes
5169 else
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 rm -rf conftest*
5173 glibcpp_cv_func___builtin_fabsf_link=no
5175 rm -f conftest*
5180 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5181 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5182 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5183 cat >> confdefs.h <<EOF
5184 #define ${ac_tr_func} 1
5191 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5192 echo "configure:5193: checking for __builtin_fabs declaration" >&5
5193 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5194 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5196 else
5199 ac_ext=C
5200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5201 ac_cpp='$CXXCPP $CPPFLAGS'
5202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5204 cross_compiling=$ac_cv_prog_cxx_cross
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <math.h>
5210 int main() {
5211 __builtin_fabs(0);
5212 ; return 0; }
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 rm -rf conftest*
5216 glibcpp_cv_func___builtin_fabs_use=yes
5217 else
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 rm -rf conftest*
5221 glibcpp_cv_func___builtin_fabs_use=no
5223 rm -f conftest*
5224 ac_ext=c
5225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5226 ac_cpp='$CPP $CPPFLAGS'
5227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5229 cross_compiling=$ac_cv_prog_cc_cross
5235 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5236 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5237 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5238 echo "configure:5239: checking for __builtin_fabs linkage" >&5
5239 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5240 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 #include <math.h>
5248 int main() {
5249 __builtin_fabs(0);
5250 ; return 0; }
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5253 rm -rf conftest*
5254 glibcpp_cv_func___builtin_fabs_link=yes
5255 else
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 rm -rf conftest*
5259 glibcpp_cv_func___builtin_fabs_link=no
5261 rm -f conftest*
5266 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5267 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5268 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5269 cat >> confdefs.h <<EOF
5270 #define ${ac_tr_func} 1
5277 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5278 echo "configure:5279: checking for __builtin_fabsl declaration" >&5
5279 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5280 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5282 else
5285 ac_ext=C
5286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5287 ac_cpp='$CXXCPP $CPPFLAGS'
5288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5290 cross_compiling=$ac_cv_prog_cxx_cross
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 #include <math.h>
5296 int main() {
5297 __builtin_fabsl(0);
5298 ; return 0; }
5300 if { (eval echo configure:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 rm -rf conftest*
5302 glibcpp_cv_func___builtin_fabsl_use=yes
5303 else
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5306 rm -rf conftest*
5307 glibcpp_cv_func___builtin_fabsl_use=no
5309 rm -f conftest*
5310 ac_ext=c
5311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5312 ac_cpp='$CPP $CPPFLAGS'
5313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5315 cross_compiling=$ac_cv_prog_cc_cross
5321 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5322 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5323 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5324 echo "configure:5325: checking for __builtin_fabsl linkage" >&5
5325 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5326 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5328 else
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 #include <math.h>
5334 int main() {
5335 __builtin_fabsl(0);
5336 ; return 0; }
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 rm -rf conftest*
5340 glibcpp_cv_func___builtin_fabsl_link=yes
5341 else
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5344 rm -rf conftest*
5345 glibcpp_cv_func___builtin_fabsl_link=no
5347 rm -f conftest*
5352 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5353 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5354 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h <<EOF
5356 #define ${ac_tr_func} 1
5363 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5364 echo "configure:5365: checking for __builtin_labs declaration" >&5
5365 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5366 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5368 else
5371 ac_ext=C
5372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5373 ac_cpp='$CXXCPP $CPPFLAGS'
5374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5376 cross_compiling=$ac_cv_prog_cxx_cross
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 #include <math.h>
5382 int main() {
5383 __builtin_labs(0);
5384 ; return 0; }
5386 if { (eval echo configure:5387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5387 rm -rf conftest*
5388 glibcpp_cv_func___builtin_labs_use=yes
5389 else
5390 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5392 rm -rf conftest*
5393 glibcpp_cv_func___builtin_labs_use=no
5395 rm -f conftest*
5396 ac_ext=c
5397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5401 cross_compiling=$ac_cv_prog_cc_cross
5407 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5408 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5409 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5410 echo "configure:5411: checking for __builtin_labs linkage" >&5
5411 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5412 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5414 else
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 #include <math.h>
5420 int main() {
5421 __builtin_labs(0);
5422 ; return 0; }
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 rm -rf conftest*
5426 glibcpp_cv_func___builtin_labs_link=yes
5427 else
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 rm -rf conftest*
5431 glibcpp_cv_func___builtin_labs_link=no
5433 rm -f conftest*
5438 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5439 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5440 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5441 cat >> confdefs.h <<EOF
5442 #define ${ac_tr_func} 1
5450 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5451 echo "configure:5452: checking for __builtin_sqrtf declaration" >&5
5452 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5453 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5455 else
5458 ac_ext=C
5459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5460 ac_cpp='$CXXCPP $CPPFLAGS'
5461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5463 cross_compiling=$ac_cv_prog_cxx_cross
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 #include <math.h>
5469 int main() {
5470 __builtin_sqrtf(0);
5471 ; return 0; }
5473 if { (eval echo configure:5474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 rm -rf conftest*
5475 glibcpp_cv_func___builtin_sqrtf_use=yes
5476 else
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 rm -rf conftest*
5480 glibcpp_cv_func___builtin_sqrtf_use=no
5482 rm -f conftest*
5483 ac_ext=c
5484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5485 ac_cpp='$CPP $CPPFLAGS'
5486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5488 cross_compiling=$ac_cv_prog_cc_cross
5494 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5495 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5496 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5497 echo "configure:5498: checking for __builtin_sqrtf linkage" >&5
5498 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5499 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 #include <math.h>
5507 int main() {
5508 __builtin_sqrtf(0);
5509 ; return 0; }
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 glibcpp_cv_func___builtin_sqrtf_link=yes
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 glibcpp_cv_func___builtin_sqrtf_link=no
5520 rm -f conftest*
5525 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5526 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5527 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5528 cat >> confdefs.h <<EOF
5529 #define ${ac_tr_func} 1
5536 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5537 echo "configure:5538: checking for __builtin_fsqrt declaration" >&5
5538 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5539 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5544 ac_ext=C
5545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5546 ac_cpp='$CXXCPP $CPPFLAGS'
5547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5549 cross_compiling=$ac_cv_prog_cxx_cross
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554 #include <math.h>
5555 int main() {
5556 __builtin_fsqrt(0);
5557 ; return 0; }
5559 if { (eval echo configure:5560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560 rm -rf conftest*
5561 glibcpp_cv_func___builtin_fsqrt_use=yes
5562 else
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 rm -rf conftest*
5566 glibcpp_cv_func___builtin_fsqrt_use=no
5568 rm -f conftest*
5569 ac_ext=c
5570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5574 cross_compiling=$ac_cv_prog_cc_cross
5580 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5581 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5582 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5583 echo "configure:5584: checking for __builtin_fsqrt linkage" >&5
5584 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5585 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 #include <math.h>
5593 int main() {
5594 __builtin_fsqrt(0);
5595 ; return 0; }
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5598 rm -rf conftest*
5599 glibcpp_cv_func___builtin_fsqrt_link=yes
5600 else
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5603 rm -rf conftest*
5604 glibcpp_cv_func___builtin_fsqrt_link=no
5606 rm -f conftest*
5611 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5612 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5613 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5614 cat >> confdefs.h <<EOF
5615 #define ${ac_tr_func} 1
5622 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5623 echo "configure:5624: checking for __builtin_sqrtl declaration" >&5
5624 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5625 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5627 else
5630 ac_ext=C
5631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5632 ac_cpp='$CXXCPP $CPPFLAGS'
5633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5635 cross_compiling=$ac_cv_prog_cxx_cross
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 #include <math.h>
5641 int main() {
5642 __builtin_sqrtl(0);
5643 ; return 0; }
5645 if { (eval echo configure:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5646 rm -rf conftest*
5647 glibcpp_cv_func___builtin_sqrtl_use=yes
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 glibcpp_cv_func___builtin_sqrtl_use=no
5654 rm -f conftest*
5655 ac_ext=c
5656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5660 cross_compiling=$ac_cv_prog_cc_cross
5666 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5667 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5668 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5669 echo "configure:5670: checking for __builtin_sqrtl linkage" >&5
5670 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5671 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5673 else
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <math.h>
5679 int main() {
5680 __builtin_sqrtl(0);
5681 ; return 0; }
5683 if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5684 rm -rf conftest*
5685 glibcpp_cv_func___builtin_sqrtl_link=yes
5686 else
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5689 rm -rf conftest*
5690 glibcpp_cv_func___builtin_sqrtl_link=no
5692 rm -f conftest*
5697 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5698 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5699 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5700 cat >> confdefs.h <<EOF
5701 #define ${ac_tr_func} 1
5709 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5710 echo "configure:5711: checking for __builtin_sinf declaration" >&5
5711 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5712 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5714 else
5717 ac_ext=C
5718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5719 ac_cpp='$CXXCPP $CPPFLAGS'
5720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5722 cross_compiling=$ac_cv_prog_cxx_cross
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 #include <math.h>
5728 int main() {
5729 __builtin_sinf(0);
5730 ; return 0; }
5732 if { (eval echo configure:5733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733 rm -rf conftest*
5734 glibcpp_cv_func___builtin_sinf_use=yes
5735 else
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5738 rm -rf conftest*
5739 glibcpp_cv_func___builtin_sinf_use=no
5741 rm -f conftest*
5742 ac_ext=c
5743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5747 cross_compiling=$ac_cv_prog_cc_cross
5753 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5754 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5755 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5756 echo "configure:5757: checking for __builtin_sinf linkage" >&5
5757 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5758 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 #include <math.h>
5766 int main() {
5767 __builtin_sinf(0);
5768 ; return 0; }
5770 if { (eval echo configure:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5771 rm -rf conftest*
5772 glibcpp_cv_func___builtin_sinf_link=yes
5773 else
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 rm -rf conftest*
5777 glibcpp_cv_func___builtin_sinf_link=no
5779 rm -f conftest*
5784 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5785 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5786 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5787 cat >> confdefs.h <<EOF
5788 #define ${ac_tr_func} 1
5795 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5796 echo "configure:5797: checking for __builtin_sin declaration" >&5
5797 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5798 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5800 else
5803 ac_ext=C
5804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5808 cross_compiling=$ac_cv_prog_cxx_cross
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 #include <math.h>
5814 int main() {
5815 __builtin_sin(0);
5816 ; return 0; }
5818 if { (eval echo configure:5819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5819 rm -rf conftest*
5820 glibcpp_cv_func___builtin_sin_use=yes
5821 else
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5824 rm -rf conftest*
5825 glibcpp_cv_func___builtin_sin_use=no
5827 rm -f conftest*
5828 ac_ext=c
5829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5833 cross_compiling=$ac_cv_prog_cc_cross
5839 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5840 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5841 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5842 echo "configure:5843: checking for __builtin_sin linkage" >&5
5843 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5844 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5846 else
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 #include <math.h>
5852 int main() {
5853 __builtin_sin(0);
5854 ; return 0; }
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 rm -rf conftest*
5858 glibcpp_cv_func___builtin_sin_link=yes
5859 else
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 rm -rf conftest*
5863 glibcpp_cv_func___builtin_sin_link=no
5865 rm -f conftest*
5870 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5871 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5872 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define ${ac_tr_func} 1
5881 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5882 echo "configure:5883: checking for __builtin_sinl declaration" >&5
5883 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5884 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5886 else
5889 ac_ext=C
5890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5891 ac_cpp='$CXXCPP $CPPFLAGS'
5892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5894 cross_compiling=$ac_cv_prog_cxx_cross
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 #include <math.h>
5900 int main() {
5901 __builtin_sinl(0);
5902 ; return 0; }
5904 if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5905 rm -rf conftest*
5906 glibcpp_cv_func___builtin_sinl_use=yes
5907 else
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5910 rm -rf conftest*
5911 glibcpp_cv_func___builtin_sinl_use=no
5913 rm -f conftest*
5914 ac_ext=c
5915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5919 cross_compiling=$ac_cv_prog_cc_cross
5925 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5926 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5927 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5928 echo "configure:5929: checking for __builtin_sinl linkage" >&5
5929 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5930 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5932 else
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <math.h>
5938 int main() {
5939 __builtin_sinl(0);
5940 ; return 0; }
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 rm -rf conftest*
5944 glibcpp_cv_func___builtin_sinl_link=yes
5945 else
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 rm -rf conftest*
5949 glibcpp_cv_func___builtin_sinl_link=no
5951 rm -f conftest*
5956 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5957 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5958 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959 cat >> confdefs.h <<EOF
5960 #define ${ac_tr_func} 1
5968 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5969 echo "configure:5970: checking for __builtin_cosf declaration" >&5
5970 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5971 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5972 echo $ac_n "(cached) $ac_c" 1>&6
5973 else
5976 ac_ext=C
5977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5978 ac_cpp='$CXXCPP $CPPFLAGS'
5979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5981 cross_compiling=$ac_cv_prog_cxx_cross
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 #include <math.h>
5987 int main() {
5988 __builtin_cosf(0);
5989 ; return 0; }
5991 if { (eval echo configure:5992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5992 rm -rf conftest*
5993 glibcpp_cv_func___builtin_cosf_use=yes
5994 else
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 rm -rf conftest*
5998 glibcpp_cv_func___builtin_cosf_use=no
6000 rm -f conftest*
6001 ac_ext=c
6002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6006 cross_compiling=$ac_cv_prog_cc_cross
6012 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6013 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6014 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6015 echo "configure:6016: checking for __builtin_cosf linkage" >&5
6016 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6017 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6019 else
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 #include <math.h>
6025 int main() {
6026 __builtin_cosf(0);
6027 ; return 0; }
6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6030 rm -rf conftest*
6031 glibcpp_cv_func___builtin_cosf_link=yes
6032 else
6033 echo "configure: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6035 rm -rf conftest*
6036 glibcpp_cv_func___builtin_cosf_link=no
6038 rm -f conftest*
6043 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6044 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6045 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6046 cat >> confdefs.h <<EOF
6047 #define ${ac_tr_func} 1
6054 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6055 echo "configure:6056: checking for __builtin_cos declaration" >&5
6056 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6057 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059 else
6062 ac_ext=C
6063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6064 ac_cpp='$CXXCPP $CPPFLAGS'
6065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6067 cross_compiling=$ac_cv_prog_cxx_cross
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <math.h>
6073 int main() {
6074 __builtin_cos(0);
6075 ; return 0; }
6077 if { (eval echo configure:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6078 rm -rf conftest*
6079 glibcpp_cv_func___builtin_cos_use=yes
6080 else
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6083 rm -rf conftest*
6084 glibcpp_cv_func___builtin_cos_use=no
6086 rm -f conftest*
6087 ac_ext=c
6088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6089 ac_cpp='$CPP $CPPFLAGS'
6090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6092 cross_compiling=$ac_cv_prog_cc_cross
6098 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6099 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6100 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6101 echo "configure:6102: checking for __builtin_cos linkage" >&5
6102 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6103 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6105 else
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6110 #include <math.h>
6111 int main() {
6112 __builtin_cos(0);
6113 ; return 0; }
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 rm -rf conftest*
6117 glibcpp_cv_func___builtin_cos_link=yes
6118 else
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 rm -rf conftest*
6122 glibcpp_cv_func___builtin_cos_link=no
6124 rm -f conftest*
6129 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6130 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6131 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6132 cat >> confdefs.h <<EOF
6133 #define ${ac_tr_func} 1
6140 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6141 echo "configure:6142: checking for __builtin_cosl declaration" >&5
6142 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6143 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6145 else
6148 ac_ext=C
6149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6150 ac_cpp='$CXXCPP $CPPFLAGS'
6151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6153 cross_compiling=$ac_cv_prog_cxx_cross
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <math.h>
6159 int main() {
6160 __builtin_cosl(0);
6161 ; return 0; }
6163 if { (eval echo configure:6164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6164 rm -rf conftest*
6165 glibcpp_cv_func___builtin_cosl_use=yes
6166 else
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6169 rm -rf conftest*
6170 glibcpp_cv_func___builtin_cosl_use=no
6172 rm -f conftest*
6173 ac_ext=c
6174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6178 cross_compiling=$ac_cv_prog_cc_cross
6184 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6185 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6186 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6187 echo "configure:6188: checking for __builtin_cosl linkage" >&5
6188 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6189 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6191 else
6193 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 #include <math.h>
6197 int main() {
6198 __builtin_cosl(0);
6199 ; return 0; }
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 rm -rf conftest*
6203 glibcpp_cv_func___builtin_cosl_link=yes
6204 else
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6207 rm -rf conftest*
6208 glibcpp_cv_func___builtin_cosl_link=no
6210 rm -f conftest*
6215 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6216 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6217 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6218 cat >> confdefs.h <<EOF
6219 #define ${ac_tr_func} 1
6226 dummyvar=no
6227 if test x$dummyvar = x"yes"; then
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE___BUILTIN_ABS 1
6232 cat >> confdefs.h <<\EOF
6233 #define HAVE___BUILTIN_LABS 1
6236 cat >> confdefs.h <<\EOF
6237 #define HAVE___BUILTIN_COS 1
6240 cat >> confdefs.h <<\EOF
6241 #define HAVE___BUILTIN_COSF 1
6244 cat >> confdefs.h <<\EOF
6245 #define HAVE___BUILTIN_COSL 1
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE___BUILTIN_FABS 1
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE___BUILTIN_FABSF 1
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE___BUILTIN_FABSL 1
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE___BUILTIN_SIN 1
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE___BUILTIN_SINF 1
6268 cat >> confdefs.h <<\EOF
6269 #define HAVE___BUILTIN_SINL 1
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE___BUILTIN_FSQRT 1
6276 cat >> confdefs.h <<\EOF
6277 #define HAVE___BUILTIN_SQRTF 1
6280 cat >> confdefs.h <<\EOF
6281 #define HAVE___BUILTIN_SQRTL 1
6287 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6288 ac_save_CXXFLAGS="$CXXFLAGS"
6289 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6291 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6292 echo "configure:6293: checking for sin in -lm" >&5
6293 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6296 else
6297 ac_save_LIBS="$LIBS"
6298 LIBS="-lm $LIBS"
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6305 char sin();
6307 int main() {
6308 sin()
6309 ; return 0; }
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6312 rm -rf conftest*
6313 eval "ac_cv_lib_$ac_lib_var=yes"
6314 else
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6317 rm -rf conftest*
6318 eval "ac_cv_lib_$ac_lib_var=no"
6320 rm -f conftest*
6321 LIBS="$ac_save_LIBS"
6324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 libm="-lm"
6327 else
6328 echo "$ac_t""no" 1>&6
6331 ac_save_LIBS="$LIBS"
6332 LIBS="$LIBS $libm"
6336 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6337 echo "configure:6338: checking for isinf declaration" >&5
6338 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6339 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6341 else
6344 ac_ext=C
6345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6346 ac_cpp='$CXXCPP $CPPFLAGS'
6347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6349 cross_compiling=$ac_cv_prog_cxx_cross
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 #include <math.h>
6355 #ifdef HAVE_IEEEFP_H
6356 #include <ieeefp.h>
6357 #endif
6359 int main() {
6360 isinf(0);
6361 ; return 0; }
6363 if { (eval echo configure:6364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6364 rm -rf conftest*
6365 glibcpp_cv_func_isinf_use=yes
6366 else
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6369 rm -rf conftest*
6370 glibcpp_cv_func_isinf_use=no
6372 rm -f conftest*
6373 ac_ext=c
6374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6378 cross_compiling=$ac_cv_prog_cc_cross
6384 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6386 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6387 for ac_func in isinf
6389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6390 echo "configure:6391: checking for $ac_func" >&5
6391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6393 else
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 /* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func(); below. */
6399 #include <assert.h>
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6403 char $ac_func();
6405 int main() {
6407 /* The GNU C library defines this for functions which it implements
6408 to always fail with ENOSYS. Some functions are actually named
6409 something starting with __ and the normal name is an alias. */
6410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 choke me
6412 #else
6413 $ac_func();
6414 #endif
6416 ; return 0; }
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6419 rm -rf conftest*
6420 eval "ac_cv_func_$ac_func=yes"
6421 else
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 rm -rf conftest*
6425 eval "ac_cv_func_$ac_func=no"
6427 rm -f conftest*
6430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6433 cat >> confdefs.h <<EOF
6434 #define $ac_tr_func 1
6437 else
6438 echo "$ac_t""no" 1>&6
6440 done
6442 else
6444 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6445 echo "configure:6446: checking for _isinf declaration" >&5
6446 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6447 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6449 else
6452 ac_ext=C
6453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6454 ac_cpp='$CXXCPP $CPPFLAGS'
6455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6457 cross_compiling=$ac_cv_prog_cxx_cross
6459 cat > conftest.$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6462 #include <math.h>
6463 #ifdef HAVE_IEEEFP_H
6464 #include <ieeefp.h>
6465 #endif
6467 int main() {
6468 _isinf(0);
6469 ; return 0; }
6471 if { (eval echo configure:6472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6472 rm -rf conftest*
6473 glibcpp_cv_func__isinf_use=yes
6474 else
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6477 rm -rf conftest*
6478 glibcpp_cv_func__isinf_use=no
6480 rm -f conftest*
6481 ac_ext=c
6482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6483 ac_cpp='$CPP $CPPFLAGS'
6484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6486 cross_compiling=$ac_cv_prog_cc_cross
6492 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6494 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6495 for ac_func in _isinf
6497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6498 echo "configure:6499: checking for $ac_func" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6501 else
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char $ac_func(); below. */
6507 #include <assert.h>
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char $ac_func();
6513 int main() {
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519 choke me
6520 #else
6521 $ac_func();
6522 #endif
6524 ; return 0; }
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 rm -rf conftest*
6528 eval "ac_cv_func_$ac_func=yes"
6529 else
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 rm -rf conftest*
6533 eval "ac_cv_func_$ac_func=no"
6535 rm -f conftest*
6538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6541 cat >> confdefs.h <<EOF
6542 #define $ac_tr_func 1
6545 else
6546 echo "$ac_t""no" 1>&6
6548 done
6555 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6556 echo "configure:6557: checking for isnan declaration" >&5
6557 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6558 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6560 else
6563 ac_ext=C
6564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6565 ac_cpp='$CXXCPP $CPPFLAGS'
6566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6568 cross_compiling=$ac_cv_prog_cxx_cross
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <math.h>
6574 #ifdef HAVE_IEEEFP_H
6575 #include <ieeefp.h>
6576 #endif
6578 int main() {
6579 isnan(0);
6580 ; return 0; }
6582 if { (eval echo configure:6583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6583 rm -rf conftest*
6584 glibcpp_cv_func_isnan_use=yes
6585 else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 glibcpp_cv_func_isnan_use=no
6591 rm -f conftest*
6592 ac_ext=c
6593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6597 cross_compiling=$ac_cv_prog_cc_cross
6603 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6605 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6606 for ac_func in isnan
6608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6609 echo "configure:6610: checking for $ac_func" >&5
6610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6612 else
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* System header to define __stub macros and hopefully few prototypes,
6617 which can conflict with char $ac_func(); below. */
6618 #include <assert.h>
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622 char $ac_func();
6624 int main() {
6626 /* The GNU C library defines this for functions which it implements
6627 to always fail with ENOSYS. Some functions are actually named
6628 something starting with __ and the normal name is an alias. */
6629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6630 choke me
6631 #else
6632 $ac_func();
6633 #endif
6635 ; return 0; }
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6638 rm -rf conftest*
6639 eval "ac_cv_func_$ac_func=yes"
6640 else
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6643 rm -rf conftest*
6644 eval "ac_cv_func_$ac_func=no"
6646 rm -f conftest*
6649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6650 echo "$ac_t""yes" 1>&6
6651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6652 cat >> confdefs.h <<EOF
6653 #define $ac_tr_func 1
6656 else
6657 echo "$ac_t""no" 1>&6
6659 done
6661 else
6663 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6664 echo "configure:6665: checking for _isnan declaration" >&5
6665 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6666 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668 else
6671 ac_ext=C
6672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6673 ac_cpp='$CXXCPP $CPPFLAGS'
6674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6676 cross_compiling=$ac_cv_prog_cxx_cross
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <math.h>
6682 #ifdef HAVE_IEEEFP_H
6683 #include <ieeefp.h>
6684 #endif
6686 int main() {
6687 _isnan(0);
6688 ; return 0; }
6690 if { (eval echo configure:6691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6691 rm -rf conftest*
6692 glibcpp_cv_func__isnan_use=yes
6693 else
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6696 rm -rf conftest*
6697 glibcpp_cv_func__isnan_use=no
6699 rm -f conftest*
6700 ac_ext=c
6701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6702 ac_cpp='$CPP $CPPFLAGS'
6703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6705 cross_compiling=$ac_cv_prog_cc_cross
6711 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6713 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6714 for ac_func in _isnan
6716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6717 echo "configure:6718: checking for $ac_func" >&5
6718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6720 else
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func(); below. */
6726 #include <assert.h>
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730 char $ac_func();
6732 int main() {
6734 /* The GNU C library defines this for functions which it implements
6735 to always fail with ENOSYS. Some functions are actually named
6736 something starting with __ and the normal name is an alias. */
6737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6738 choke me
6739 #else
6740 $ac_func();
6741 #endif
6743 ; return 0; }
6745 if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 rm -rf conftest*
6747 eval "ac_cv_func_$ac_func=yes"
6748 else
6749 echo "configure: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6751 rm -rf conftest*
6752 eval "ac_cv_func_$ac_func=no"
6754 rm -f conftest*
6757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6760 cat >> confdefs.h <<EOF
6761 #define $ac_tr_func 1
6764 else
6765 echo "$ac_t""no" 1>&6
6767 done
6774 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6775 echo "configure:6776: checking for finite declaration" >&5
6776 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6777 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6779 else
6782 ac_ext=C
6783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6784 ac_cpp='$CXXCPP $CPPFLAGS'
6785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6787 cross_compiling=$ac_cv_prog_cxx_cross
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 #include <math.h>
6793 #ifdef HAVE_IEEEFP_H
6794 #include <ieeefp.h>
6795 #endif
6797 int main() {
6798 finite(0);
6799 ; return 0; }
6801 if { (eval echo configure:6802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6802 rm -rf conftest*
6803 glibcpp_cv_func_finite_use=yes
6804 else
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6807 rm -rf conftest*
6808 glibcpp_cv_func_finite_use=no
6810 rm -f conftest*
6811 ac_ext=c
6812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6813 ac_cpp='$CPP $CPPFLAGS'
6814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6816 cross_compiling=$ac_cv_prog_cc_cross
6822 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6824 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6825 for ac_func in finite
6827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6828 echo "configure:6829: checking for $ac_func" >&5
6829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831 else
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char $ac_func(); below. */
6837 #include <assert.h>
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6841 char $ac_func();
6843 int main() {
6845 /* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 choke me
6850 #else
6851 $ac_func();
6852 #endif
6854 ; return 0; }
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857 rm -rf conftest*
6858 eval "ac_cv_func_$ac_func=yes"
6859 else
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 rm -rf conftest*
6863 eval "ac_cv_func_$ac_func=no"
6865 rm -f conftest*
6868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6869 echo "$ac_t""yes" 1>&6
6870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6871 cat >> confdefs.h <<EOF
6872 #define $ac_tr_func 1
6875 else
6876 echo "$ac_t""no" 1>&6
6878 done
6880 else
6882 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6883 echo "configure:6884: checking for _finite declaration" >&5
6884 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6885 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6887 else
6890 ac_ext=C
6891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6892 ac_cpp='$CXXCPP $CPPFLAGS'
6893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6895 cross_compiling=$ac_cv_prog_cxx_cross
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 #include <math.h>
6901 #ifdef HAVE_IEEEFP_H
6902 #include <ieeefp.h>
6903 #endif
6905 int main() {
6906 _finite(0);
6907 ; return 0; }
6909 if { (eval echo configure:6910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6910 rm -rf conftest*
6911 glibcpp_cv_func__finite_use=yes
6912 else
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6915 rm -rf conftest*
6916 glibcpp_cv_func__finite_use=no
6918 rm -f conftest*
6919 ac_ext=c
6920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6924 cross_compiling=$ac_cv_prog_cc_cross
6930 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6932 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6933 for ac_func in _finite
6935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6936 echo "configure:6937: checking for $ac_func" >&5
6937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939 else
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* System header to define __stub macros and hopefully few prototypes,
6944 which can conflict with char $ac_func(); below. */
6945 #include <assert.h>
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char $ac_func();
6951 int main() {
6953 /* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 choke me
6958 #else
6959 $ac_func();
6960 #endif
6962 ; return 0; }
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 rm -rf conftest*
6966 eval "ac_cv_func_$ac_func=yes"
6967 else
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 rm -rf conftest*
6971 eval "ac_cv_func_$ac_func=no"
6973 rm -f conftest*
6976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6977 echo "$ac_t""yes" 1>&6
6978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6979 cat >> confdefs.h <<EOF
6980 #define $ac_tr_func 1
6983 else
6984 echo "$ac_t""no" 1>&6
6986 done
6993 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6994 echo "configure:6995: checking for copysign declaration" >&5
6995 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6996 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
7001 ac_ext=C
7002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7003 ac_cpp='$CXXCPP $CPPFLAGS'
7004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7006 cross_compiling=$ac_cv_prog_cxx_cross
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <math.h>
7012 int main() {
7013 copysign(0, 0);
7014 ; return 0; }
7016 if { (eval echo configure:7017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7017 rm -rf conftest*
7018 glibcpp_cv_func_copysign_use=yes
7019 else
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 rm -rf conftest*
7023 glibcpp_cv_func_copysign_use=no
7025 rm -f conftest*
7026 ac_ext=c
7027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7028 ac_cpp='$CPP $CPPFLAGS'
7029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7031 cross_compiling=$ac_cv_prog_cc_cross
7037 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7039 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7040 for ac_func in copysign
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func(); below. */
7052 #include <assert.h>
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char $ac_func();
7058 int main() {
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7064 choke me
7065 #else
7066 $ac_func();
7067 #endif
7069 ; return 0; }
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 rm -rf conftest*
7073 eval "ac_cv_func_$ac_func=yes"
7074 else
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_func_$ac_func=no"
7080 rm -f conftest*
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086 cat >> confdefs.h <<EOF
7087 #define $ac_tr_func 1
7090 else
7091 echo "$ac_t""no" 1>&6
7093 done
7095 else
7097 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7098 echo "configure:7099: checking for _copysign declaration" >&5
7099 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7100 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7102 else
7105 ac_ext=C
7106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7107 ac_cpp='$CXXCPP $CPPFLAGS'
7108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7110 cross_compiling=$ac_cv_prog_cxx_cross
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7115 #include <math.h>
7116 int main() {
7117 _copysign(0, 0);
7118 ; return 0; }
7120 if { (eval echo configure:7121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7121 rm -rf conftest*
7122 glibcpp_cv_func__copysign_use=yes
7123 else
7124 echo "configure: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 rm -rf conftest*
7127 glibcpp_cv_func__copysign_use=no
7129 rm -f conftest*
7130 ac_ext=c
7131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7135 cross_compiling=$ac_cv_prog_cc_cross
7141 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7143 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7144 for ac_func in _copysign
7146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7147 echo "configure:7148: checking for $ac_func" >&5
7148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7150 else
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char $ac_func(); below. */
7156 #include <assert.h>
7157 /* Override any gcc2 internal prototype to avoid an error. */
7158 /* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7160 char $ac_func();
7162 int main() {
7164 /* The GNU C library defines this for functions which it implements
7165 to always fail with ENOSYS. Some functions are actually named
7166 something starting with __ and the normal name is an alias. */
7167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7168 choke me
7169 #else
7170 $ac_func();
7171 #endif
7173 ; return 0; }
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7176 rm -rf conftest*
7177 eval "ac_cv_func_$ac_func=yes"
7178 else
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 rm -rf conftest*
7182 eval "ac_cv_func_$ac_func=no"
7184 rm -f conftest*
7187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7188 echo "$ac_t""yes" 1>&6
7189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7190 cat >> confdefs.h <<EOF
7191 #define $ac_tr_func 1
7194 else
7195 echo "$ac_t""no" 1>&6
7197 done
7204 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7205 echo "configure:7206: checking for sincos declaration" >&5
7206 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7207 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7209 else
7212 ac_ext=C
7213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7214 ac_cpp='$CXXCPP $CPPFLAGS'
7215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7217 cross_compiling=$ac_cv_prog_cxx_cross
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 #include <math.h>
7223 int main() {
7224 sincos(0, 0, 0);
7225 ; return 0; }
7227 if { (eval echo configure:7228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7228 rm -rf conftest*
7229 glibcpp_cv_func_sincos_use=yes
7230 else
7231 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 rm -rf conftest*
7234 glibcpp_cv_func_sincos_use=no
7236 rm -f conftest*
7237 ac_ext=c
7238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7242 cross_compiling=$ac_cv_prog_cc_cross
7248 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7250 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7251 for ac_func in sincos
7253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7254 echo "configure:7255: checking for $ac_func" >&5
7255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7257 else
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func(); below. */
7263 #include <assert.h>
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7267 char $ac_func();
7269 int main() {
7271 /* The GNU C library defines this for functions which it implements
7272 to always fail with ENOSYS. Some functions are actually named
7273 something starting with __ and the normal name is an alias. */
7274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7275 choke me
7276 #else
7277 $ac_func();
7278 #endif
7280 ; return 0; }
7282 if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7283 rm -rf conftest*
7284 eval "ac_cv_func_$ac_func=yes"
7285 else
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7288 rm -rf conftest*
7289 eval "ac_cv_func_$ac_func=no"
7291 rm -f conftest*
7294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7295 echo "$ac_t""yes" 1>&6
7296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7297 cat >> confdefs.h <<EOF
7298 #define $ac_tr_func 1
7301 else
7302 echo "$ac_t""no" 1>&6
7304 done
7306 else
7308 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7309 echo "configure:7310: checking for _sincos declaration" >&5
7310 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7311 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7313 else
7316 ac_ext=C
7317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7318 ac_cpp='$CXXCPP $CPPFLAGS'
7319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7321 cross_compiling=$ac_cv_prog_cxx_cross
7323 cat > conftest.$ac_ext <<EOF
7324 #line 7325 "configure"
7325 #include "confdefs.h"
7326 #include <math.h>
7327 int main() {
7328 _sincos(0, 0, 0);
7329 ; return 0; }
7331 if { (eval echo configure:7332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7332 rm -rf conftest*
7333 glibcpp_cv_func__sincos_use=yes
7334 else
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7337 rm -rf conftest*
7338 glibcpp_cv_func__sincos_use=no
7340 rm -f conftest*
7341 ac_ext=c
7342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7346 cross_compiling=$ac_cv_prog_cc_cross
7352 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7354 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7355 for ac_func in _sincos
7357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7358 echo "configure:7359: checking for $ac_func" >&5
7359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7361 else
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* System header to define __stub macros and hopefully few prototypes,
7366 which can conflict with char $ac_func(); below. */
7367 #include <assert.h>
7368 /* Override any gcc2 internal prototype to avoid an error. */
7369 /* We use char because int might match the return type of a gcc2
7370 builtin and then its argument prototype would still apply. */
7371 char $ac_func();
7373 int main() {
7375 /* The GNU C library defines this for functions which it implements
7376 to always fail with ENOSYS. Some functions are actually named
7377 something starting with __ and the normal name is an alias. */
7378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7379 choke me
7380 #else
7381 $ac_func();
7382 #endif
7384 ; return 0; }
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 rm -rf conftest*
7388 eval "ac_cv_func_$ac_func=yes"
7389 else
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7392 rm -rf conftest*
7393 eval "ac_cv_func_$ac_func=no"
7395 rm -f conftest*
7398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7399 echo "$ac_t""yes" 1>&6
7400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7401 cat >> confdefs.h <<EOF
7402 #define $ac_tr_func 1
7405 else
7406 echo "$ac_t""no" 1>&6
7408 done
7415 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7416 echo "configure:7417: checking for fpclass declaration" >&5
7417 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7418 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7420 else
7423 ac_ext=C
7424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7425 ac_cpp='$CXXCPP $CPPFLAGS'
7426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7428 cross_compiling=$ac_cv_prog_cxx_cross
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7433 #include <math.h>
7434 #ifdef HAVE_IEEEFP_H
7435 #include <ieeefp.h>
7436 #endif
7438 int main() {
7439 fpclass(0);
7440 ; return 0; }
7442 if { (eval echo configure:7443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7443 rm -rf conftest*
7444 glibcpp_cv_func_fpclass_use=yes
7445 else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 glibcpp_cv_func_fpclass_use=no
7451 rm -f conftest*
7452 ac_ext=c
7453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7454 ac_cpp='$CPP $CPPFLAGS'
7455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7457 cross_compiling=$ac_cv_prog_cc_cross
7463 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7465 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7466 for ac_func in fpclass
7468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7469 echo "configure:7470: checking for $ac_func" >&5
7470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7472 else
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* System header to define __stub macros and hopefully few prototypes,
7477 which can conflict with char $ac_func(); below. */
7478 #include <assert.h>
7479 /* Override any gcc2 internal prototype to avoid an error. */
7480 /* We use char because int might match the return type of a gcc2
7481 builtin and then its argument prototype would still apply. */
7482 char $ac_func();
7484 int main() {
7486 /* The GNU C library defines this for functions which it implements
7487 to always fail with ENOSYS. Some functions are actually named
7488 something starting with __ and the normal name is an alias. */
7489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7490 choke me
7491 #else
7492 $ac_func();
7493 #endif
7495 ; return 0; }
7497 if { (eval echo configure:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7498 rm -rf conftest*
7499 eval "ac_cv_func_$ac_func=yes"
7500 else
7501 echo "configure: failed program was:" >&5
7502 cat conftest.$ac_ext >&5
7503 rm -rf conftest*
7504 eval "ac_cv_func_$ac_func=no"
7506 rm -f conftest*
7509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_func 1
7516 else
7517 echo "$ac_t""no" 1>&6
7519 done
7521 else
7523 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7524 echo "configure:7525: checking for _fpclass declaration" >&5
7525 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7526 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7531 ac_ext=C
7532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7533 ac_cpp='$CXXCPP $CPPFLAGS'
7534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7536 cross_compiling=$ac_cv_prog_cxx_cross
7538 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 #include <math.h>
7542 #ifdef HAVE_IEEEFP_H
7543 #include <ieeefp.h>
7544 #endif
7546 int main() {
7547 _fpclass(0);
7548 ; return 0; }
7550 if { (eval echo configure:7551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7551 rm -rf conftest*
7552 glibcpp_cv_func__fpclass_use=yes
7553 else
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7556 rm -rf conftest*
7557 glibcpp_cv_func__fpclass_use=no
7559 rm -f conftest*
7560 ac_ext=c
7561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7565 cross_compiling=$ac_cv_prog_cc_cross
7571 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7573 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7574 for ac_func in _fpclass
7576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7577 echo "configure:7578: checking for $ac_func" >&5
7578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7580 else
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 /* System header to define __stub macros and hopefully few prototypes,
7585 which can conflict with char $ac_func(); below. */
7586 #include <assert.h>
7587 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590 char $ac_func();
7592 int main() {
7594 /* The GNU C library defines this for functions which it implements
7595 to always fail with ENOSYS. Some functions are actually named
7596 something starting with __ and the normal name is an alias. */
7597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7598 choke me
7599 #else
7600 $ac_func();
7601 #endif
7603 ; return 0; }
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 rm -rf conftest*
7607 eval "ac_cv_func_$ac_func=yes"
7608 else
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7611 rm -rf conftest*
7612 eval "ac_cv_func_$ac_func=no"
7614 rm -f conftest*
7617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7620 cat >> confdefs.h <<EOF
7621 #define $ac_tr_func 1
7624 else
7625 echo "$ac_t""no" 1>&6
7627 done
7634 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7635 echo "configure:7636: checking for qfpclass declaration" >&5
7636 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7637 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7639 else
7642 ac_ext=C
7643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7644 ac_cpp='$CXXCPP $CPPFLAGS'
7645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7647 cross_compiling=$ac_cv_prog_cxx_cross
7649 cat > conftest.$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7652 #include <math.h>
7653 #ifdef HAVE_IEEEFP_H
7654 #include <ieeefp.h>
7655 #endif
7657 int main() {
7658 qfpclass(0);
7659 ; return 0; }
7661 if { (eval echo configure:7662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7662 rm -rf conftest*
7663 glibcpp_cv_func_qfpclass_use=yes
7664 else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 glibcpp_cv_func_qfpclass_use=no
7670 rm -f conftest*
7671 ac_ext=c
7672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7676 cross_compiling=$ac_cv_prog_cc_cross
7682 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7684 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7685 for ac_func in qfpclass
7687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7688 echo "configure:7689: checking for $ac_func" >&5
7689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7691 else
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 /* System header to define __stub macros and hopefully few prototypes,
7696 which can conflict with char $ac_func(); below. */
7697 #include <assert.h>
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char $ac_func();
7703 int main() {
7705 /* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7709 choke me
7710 #else
7711 $ac_func();
7712 #endif
7714 ; return 0; }
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 rm -rf conftest*
7718 eval "ac_cv_func_$ac_func=yes"
7719 else
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 rm -rf conftest*
7723 eval "ac_cv_func_$ac_func=no"
7725 rm -f conftest*
7728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7731 cat >> confdefs.h <<EOF
7732 #define $ac_tr_func 1
7735 else
7736 echo "$ac_t""no" 1>&6
7738 done
7740 else
7742 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7743 echo "configure:7744: checking for _qfpclass declaration" >&5
7744 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7745 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7747 else
7750 ac_ext=C
7751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7752 ac_cpp='$CXXCPP $CPPFLAGS'
7753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7755 cross_compiling=$ac_cv_prog_cxx_cross
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 #include <math.h>
7761 #ifdef HAVE_IEEEFP_H
7762 #include <ieeefp.h>
7763 #endif
7765 int main() {
7766 _qfpclass(0);
7767 ; return 0; }
7769 if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7770 rm -rf conftest*
7771 glibcpp_cv_func__qfpclass_use=yes
7772 else
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 rm -rf conftest*
7776 glibcpp_cv_func__qfpclass_use=no
7778 rm -f conftest*
7779 ac_ext=c
7780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7784 cross_compiling=$ac_cv_prog_cc_cross
7790 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7792 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7793 for ac_func in _qfpclass
7795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7796 echo "configure:7797: checking for $ac_func" >&5
7797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7799 else
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char $ac_func(); below. */
7805 #include <assert.h>
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char $ac_func();
7811 int main() {
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7817 choke me
7818 #else
7819 $ac_func();
7820 #endif
7822 ; return 0; }
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 rm -rf conftest*
7826 eval "ac_cv_func_$ac_func=yes"
7827 else
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 rm -rf conftest*
7831 eval "ac_cv_func_$ac_func=no"
7833 rm -f conftest*
7836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7837 echo "$ac_t""yes" 1>&6
7838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7839 cat >> confdefs.h <<EOF
7840 #define $ac_tr_func 1
7843 else
7844 echo "$ac_t""no" 1>&6
7846 done
7853 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
7854 echo "configure:7855: checking for hypot declaration" >&5
7855 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
7856 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7858 else
7861 ac_ext=C
7862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7863 ac_cpp='$CXXCPP $CPPFLAGS'
7864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7866 cross_compiling=$ac_cv_prog_cxx_cross
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871 #include <math.h>
7872 int main() {
7873 hypot(0, 0);
7874 ; return 0; }
7876 if { (eval echo configure:7877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7877 rm -rf conftest*
7878 glibcpp_cv_func_hypot_use=yes
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 glibcpp_cv_func_hypot_use=no
7885 rm -f conftest*
7886 ac_ext=c
7887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7891 cross_compiling=$ac_cv_prog_cc_cross
7897 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
7899 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
7900 for ac_func in hypot
7902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7903 echo "configure:7904: checking for $ac_func" >&5
7904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7906 else
7907 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char $ac_func(); below. */
7912 #include <assert.h>
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7916 char $ac_func();
7918 int main() {
7920 /* The GNU C library defines this for functions which it implements
7921 to always fail with ENOSYS. Some functions are actually named
7922 something starting with __ and the normal name is an alias. */
7923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7924 choke me
7925 #else
7926 $ac_func();
7927 #endif
7929 ; return 0; }
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7932 rm -rf conftest*
7933 eval "ac_cv_func_$ac_func=yes"
7934 else
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 rm -rf conftest*
7938 eval "ac_cv_func_$ac_func=no"
7940 rm -f conftest*
7943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7946 cat >> confdefs.h <<EOF
7947 #define $ac_tr_func 1
7950 else
7951 echo "$ac_t""no" 1>&6
7953 done
7955 else
7957 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
7958 echo "configure:7959: checking for _hypot declaration" >&5
7959 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
7960 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7962 else
7965 ac_ext=C
7966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CXXCPP $CPPFLAGS'
7968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cxx_cross
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 #include <math.h>
7976 int main() {
7977 _hypot(0, 0);
7978 ; return 0; }
7980 if { (eval echo configure:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7981 rm -rf conftest*
7982 glibcpp_cv_func__hypot_use=yes
7983 else
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 rm -rf conftest*
7987 glibcpp_cv_func__hypot_use=no
7989 rm -f conftest*
7990 ac_ext=c
7991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7995 cross_compiling=$ac_cv_prog_cc_cross
8001 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8003 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8004 for ac_func in _hypot
8006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_func" >&5
8008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010 else
8011 cat > conftest.$ac_ext <<EOF
8012 #line 8013 "configure"
8013 #include "confdefs.h"
8014 /* System header to define __stub macros and hopefully few prototypes,
8015 which can conflict with char $ac_func(); below. */
8016 #include <assert.h>
8017 /* Override any gcc2 internal prototype to avoid an error. */
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8020 char $ac_func();
8022 int main() {
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8028 choke me
8029 #else
8030 $ac_func();
8031 #endif
8033 ; return 0; }
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 rm -rf conftest*
8037 eval "ac_cv_func_$ac_func=yes"
8038 else
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 rm -rf conftest*
8042 eval "ac_cv_func_$ac_func=no"
8044 rm -f conftest*
8047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8050 cat >> confdefs.h <<EOF
8051 #define $ac_tr_func 1
8054 else
8055 echo "$ac_t""no" 1>&6
8057 done
8064 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8065 echo "configure:8066: checking for float trig functions" >&5
8066 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8068 else
8071 ac_ext=C
8072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8073 ac_cpp='$CXXCPP $CPPFLAGS'
8074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8076 cross_compiling=$ac_cv_prog_cxx_cross
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8081 #include <math.h>
8082 int main() {
8083 `for x in acosf asinf atanf \
8084 cosf sinf tanf \
8085 coshf sinhf tanhf; do echo "$x (0);"; done`
8086 ; return 0; }
8088 if { (eval echo configure:8089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8089 rm -rf conftest*
8090 glibcpp_cv_func_float_trig_use=yes
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -rf conftest*
8095 glibcpp_cv_func_float_trig_use=no
8097 rm -f conftest*
8098 ac_ext=c
8099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8103 cross_compiling=$ac_cv_prog_cc_cross
8107 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8108 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8109 for ac_func in acosf asinf atanf \
8110 cosf sinf tanf \
8111 coshf sinhf tanhf
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char $ac_func();
8129 int main() {
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 choke me
8136 #else
8137 $ac_func();
8138 #endif
8140 ; return 0; }
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=yes"
8145 else
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=no"
8151 rm -f conftest*
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8161 else
8162 echo "$ac_t""no" 1>&6
8164 done
8169 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8170 echo "configure:8171: checking for float round functions" >&5
8171 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8173 else
8176 ac_ext=C
8177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8178 ac_cpp='$CXXCPP $CPPFLAGS'
8179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8181 cross_compiling=$ac_cv_prog_cxx_cross
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 #include <math.h>
8187 int main() {
8188 `for x in ceilf floorf; do echo "$x (0);"; done`
8189 ; return 0; }
8191 if { (eval echo configure:8192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8192 rm -rf conftest*
8193 glibcpp_cv_func_float_round_use=yes
8194 else
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8197 rm -rf conftest*
8198 glibcpp_cv_func_float_round_use=no
8200 rm -f conftest*
8201 ac_ext=c
8202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8203 ac_cpp='$CPP $CPPFLAGS'
8204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8206 cross_compiling=$ac_cv_prog_cc_cross
8210 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8211 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8212 for ac_func in ceilf floorf
8214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_func" >&5
8216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func(); below. */
8224 #include <assert.h>
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char $ac_func();
8230 int main() {
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 choke me
8237 #else
8238 $ac_func();
8239 #endif
8241 ; return 0; }
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 rm -rf conftest*
8245 eval "ac_cv_func_$ac_func=yes"
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -rf conftest*
8250 eval "ac_cv_func_$ac_func=no"
8252 rm -f conftest*
8255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258 cat >> confdefs.h <<EOF
8259 #define $ac_tr_func 1
8262 else
8263 echo "$ac_t""no" 1>&6
8265 done
8271 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8272 echo "configure:8273: checking for isnanf declaration" >&5
8273 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8274 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8276 else
8279 ac_ext=C
8280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8281 ac_cpp='$CXXCPP $CPPFLAGS'
8282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8284 cross_compiling=$ac_cv_prog_cxx_cross
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8289 #include <math.h>
8290 #ifdef HAVE_IEEEFP_H
8291 #include <ieeefp.h>
8292 #endif
8294 int main() {
8295 isnanf(0);
8296 ; return 0; }
8298 if { (eval echo configure:8299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8299 rm -rf conftest*
8300 glibcpp_cv_func_isnanf_use=yes
8301 else
8302 echo "configure: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8304 rm -rf conftest*
8305 glibcpp_cv_func_isnanf_use=no
8307 rm -f conftest*
8308 ac_ext=c
8309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8313 cross_compiling=$ac_cv_prog_cc_cross
8319 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8321 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8322 for ac_func in isnanf
8324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8325 echo "configure:8326: checking for $ac_func" >&5
8326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
8328 else
8329 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 /* System header to define __stub macros and hopefully few prototypes,
8333 which can conflict with char $ac_func(); below. */
8334 #include <assert.h>
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8338 char $ac_func();
8340 int main() {
8342 /* The GNU C library defines this for functions which it implements
8343 to always fail with ENOSYS. Some functions are actually named
8344 something starting with __ and the normal name is an alias. */
8345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8346 choke me
8347 #else
8348 $ac_func();
8349 #endif
8351 ; return 0; }
8353 if { (eval echo configure:8354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8354 rm -rf conftest*
8355 eval "ac_cv_func_$ac_func=yes"
8356 else
8357 echo "configure: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 rm -rf conftest*
8360 eval "ac_cv_func_$ac_func=no"
8362 rm -f conftest*
8365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8366 echo "$ac_t""yes" 1>&6
8367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8368 cat >> confdefs.h <<EOF
8369 #define $ac_tr_func 1
8372 else
8373 echo "$ac_t""no" 1>&6
8375 done
8377 else
8379 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8380 echo "configure:8381: checking for _isnanf declaration" >&5
8381 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8382 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8384 else
8387 ac_ext=C
8388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8389 ac_cpp='$CXXCPP $CPPFLAGS'
8390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8392 cross_compiling=$ac_cv_prog_cxx_cross
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 #include <math.h>
8398 #ifdef HAVE_IEEEFP_H
8399 #include <ieeefp.h>
8400 #endif
8402 int main() {
8403 _isnanf(0);
8404 ; return 0; }
8406 if { (eval echo configure:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8407 rm -rf conftest*
8408 glibcpp_cv_func__isnanf_use=yes
8409 else
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 rm -rf conftest*
8413 glibcpp_cv_func__isnanf_use=no
8415 rm -f conftest*
8416 ac_ext=c
8417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8421 cross_compiling=$ac_cv_prog_cc_cross
8427 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8429 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8430 for ac_func in _isnanf
8432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_func" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8436 else
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func(); below. */
8442 #include <assert.h>
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446 char $ac_func();
8448 int main() {
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8454 choke me
8455 #else
8456 $ac_func();
8457 #endif
8459 ; return 0; }
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 rm -rf conftest*
8463 eval "ac_cv_func_$ac_func=yes"
8464 else
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8467 rm -rf conftest*
8468 eval "ac_cv_func_$ac_func=no"
8470 rm -f conftest*
8473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8476 cat >> confdefs.h <<EOF
8477 #define $ac_tr_func 1
8480 else
8481 echo "$ac_t""no" 1>&6
8483 done
8490 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8491 echo "configure:8492: checking for isinff declaration" >&5
8492 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8493 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8495 else
8498 ac_ext=C
8499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8500 ac_cpp='$CXXCPP $CPPFLAGS'
8501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8503 cross_compiling=$ac_cv_prog_cxx_cross
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure"
8507 #include "confdefs.h"
8508 #include <math.h>
8509 #ifdef HAVE_IEEEFP_H
8510 #include <ieeefp.h>
8511 #endif
8513 int main() {
8514 isinff(0);
8515 ; return 0; }
8517 if { (eval echo configure:8518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8518 rm -rf conftest*
8519 glibcpp_cv_func_isinff_use=yes
8520 else
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8523 rm -rf conftest*
8524 glibcpp_cv_func_isinff_use=no
8526 rm -f conftest*
8527 ac_ext=c
8528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8529 ac_cpp='$CPP $CPPFLAGS'
8530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8532 cross_compiling=$ac_cv_prog_cc_cross
8538 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8540 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8541 for ac_func in isinff
8543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8544 echo "configure:8545: checking for $ac_func" >&5
8545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8547 else
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 /* System header to define __stub macros and hopefully few prototypes,
8552 which can conflict with char $ac_func(); below. */
8553 #include <assert.h>
8554 /* Override any gcc2 internal prototype to avoid an error. */
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char $ac_func();
8559 int main() {
8561 /* The GNU C library defines this for functions which it implements
8562 to always fail with ENOSYS. Some functions are actually named
8563 something starting with __ and the normal name is an alias. */
8564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8565 choke me
8566 #else
8567 $ac_func();
8568 #endif
8570 ; return 0; }
8572 if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8573 rm -rf conftest*
8574 eval "ac_cv_func_$ac_func=yes"
8575 else
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 rm -rf conftest*
8579 eval "ac_cv_func_$ac_func=no"
8581 rm -f conftest*
8584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8585 echo "$ac_t""yes" 1>&6
8586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8587 cat >> confdefs.h <<EOF
8588 #define $ac_tr_func 1
8591 else
8592 echo "$ac_t""no" 1>&6
8594 done
8596 else
8598 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8599 echo "configure:8600: checking for _isinff declaration" >&5
8600 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8601 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603 else
8606 ac_ext=C
8607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8608 ac_cpp='$CXXCPP $CPPFLAGS'
8609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8611 cross_compiling=$ac_cv_prog_cxx_cross
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 #include <math.h>
8617 #ifdef HAVE_IEEEFP_H
8618 #include <ieeefp.h>
8619 #endif
8621 int main() {
8622 _isinff(0);
8623 ; return 0; }
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8626 rm -rf conftest*
8627 glibcpp_cv_func__isinff_use=yes
8628 else
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 rm -rf conftest*
8632 glibcpp_cv_func__isinff_use=no
8634 rm -f conftest*
8635 ac_ext=c
8636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8637 ac_cpp='$CPP $CPPFLAGS'
8638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8640 cross_compiling=$ac_cv_prog_cc_cross
8646 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8648 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8649 for ac_func in _isinff
8651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8652 echo "configure:8653: checking for $ac_func" >&5
8653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655 else
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func(); below. */
8661 #include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8665 char $ac_func();
8667 int main() {
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8673 choke me
8674 #else
8675 $ac_func();
8676 #endif
8678 ; return 0; }
8680 if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8681 rm -rf conftest*
8682 eval "ac_cv_func_$ac_func=yes"
8683 else
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 rm -rf conftest*
8687 eval "ac_cv_func_$ac_func=no"
8689 rm -f conftest*
8692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8695 cat >> confdefs.h <<EOF
8696 #define $ac_tr_func 1
8699 else
8700 echo "$ac_t""no" 1>&6
8702 done
8709 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8710 echo "configure:8711: checking for atan2f declaration" >&5
8711 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8712 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8714 else
8717 ac_ext=C
8718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8719 ac_cpp='$CXXCPP $CPPFLAGS'
8720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8722 cross_compiling=$ac_cv_prog_cxx_cross
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 #include <math.h>
8728 int main() {
8729 atan2f(0, 0);
8730 ; return 0; }
8732 if { (eval echo configure:8733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8733 rm -rf conftest*
8734 glibcpp_cv_func_atan2f_use=yes
8735 else
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 rm -rf conftest*
8739 glibcpp_cv_func_atan2f_use=no
8741 rm -f conftest*
8742 ac_ext=c
8743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8744 ac_cpp='$CPP $CPPFLAGS'
8745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8747 cross_compiling=$ac_cv_prog_cc_cross
8753 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8755 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8756 for ac_func in atan2f
8758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8759 echo "configure:8760: checking for $ac_func" >&5
8760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762 else
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 /* System header to define __stub macros and hopefully few prototypes,
8767 which can conflict with char $ac_func(); below. */
8768 #include <assert.h>
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char $ac_func();
8774 int main() {
8776 /* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8780 choke me
8781 #else
8782 $ac_func();
8783 #endif
8785 ; return 0; }
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8788 rm -rf conftest*
8789 eval "ac_cv_func_$ac_func=yes"
8790 else
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8793 rm -rf conftest*
8794 eval "ac_cv_func_$ac_func=no"
8796 rm -f conftest*
8799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8802 cat >> confdefs.h <<EOF
8803 #define $ac_tr_func 1
8806 else
8807 echo "$ac_t""no" 1>&6
8809 done
8811 else
8813 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
8814 echo "configure:8815: checking for _atan2f declaration" >&5
8815 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
8816 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8818 else
8821 ac_ext=C
8822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8823 ac_cpp='$CXXCPP $CPPFLAGS'
8824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8826 cross_compiling=$ac_cv_prog_cxx_cross
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 #include <math.h>
8832 int main() {
8833 _atan2f(0, 0);
8834 ; return 0; }
8836 if { (eval echo configure:8837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8837 rm -rf conftest*
8838 glibcpp_cv_func__atan2f_use=yes
8839 else
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 glibcpp_cv_func__atan2f_use=no
8845 rm -f conftest*
8846 ac_ext=c
8847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8848 ac_cpp='$CPP $CPPFLAGS'
8849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8851 cross_compiling=$ac_cv_prog_cc_cross
8857 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
8859 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
8860 for ac_func in _atan2f
8862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8863 echo "configure:8864: checking for $ac_func" >&5
8864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8865 echo $ac_n "(cached) $ac_c" 1>&6
8866 else
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* System header to define __stub macros and hopefully few prototypes,
8871 which can conflict with char $ac_func(); below. */
8872 #include <assert.h>
8873 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char $ac_func();
8878 int main() {
8880 /* The GNU C library defines this for functions which it implements
8881 to always fail with ENOSYS. Some functions are actually named
8882 something starting with __ and the normal name is an alias. */
8883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8884 choke me
8885 #else
8886 $ac_func();
8887 #endif
8889 ; return 0; }
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8892 rm -rf conftest*
8893 eval "ac_cv_func_$ac_func=yes"
8894 else
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8897 rm -rf conftest*
8898 eval "ac_cv_func_$ac_func=no"
8900 rm -f conftest*
8903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8904 echo "$ac_t""yes" 1>&6
8905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8906 cat >> confdefs.h <<EOF
8907 #define $ac_tr_func 1
8910 else
8911 echo "$ac_t""no" 1>&6
8913 done
8920 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8921 echo "configure:8922: checking for fabsf declaration" >&5
8922 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8923 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925 else
8928 ac_ext=C
8929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8930 ac_cpp='$CXXCPP $CPPFLAGS'
8931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8933 cross_compiling=$ac_cv_prog_cxx_cross
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 #include <math.h>
8939 #ifdef HAVE_IEEEFP_H
8940 #include <ieeefp.h>
8941 #endif
8943 int main() {
8944 fabsf(0);
8945 ; return 0; }
8947 if { (eval echo configure:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8948 rm -rf conftest*
8949 glibcpp_cv_func_fabsf_use=yes
8950 else
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 rm -rf conftest*
8954 glibcpp_cv_func_fabsf_use=no
8956 rm -f conftest*
8957 ac_ext=c
8958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8959 ac_cpp='$CPP $CPPFLAGS'
8960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8962 cross_compiling=$ac_cv_prog_cc_cross
8968 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8970 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8971 for ac_func in fabsf
8973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8974 echo "configure:8975: checking for $ac_func" >&5
8975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8977 else
8978 cat > conftest.$ac_ext <<EOF
8979 #line 8980 "configure"
8980 #include "confdefs.h"
8981 /* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char $ac_func(); below. */
8983 #include <assert.h>
8984 /* Override any gcc2 internal prototype to avoid an error. */
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char $ac_func();
8989 int main() {
8991 /* The GNU C library defines this for functions which it implements
8992 to always fail with ENOSYS. Some functions are actually named
8993 something starting with __ and the normal name is an alias. */
8994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8995 choke me
8996 #else
8997 $ac_func();
8998 #endif
9000 ; return 0; }
9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9003 rm -rf conftest*
9004 eval "ac_cv_func_$ac_func=yes"
9005 else
9006 echo "configure: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9008 rm -rf conftest*
9009 eval "ac_cv_func_$ac_func=no"
9011 rm -f conftest*
9014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_func 1
9021 else
9022 echo "$ac_t""no" 1>&6
9024 done
9026 else
9028 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9029 echo "configure:9030: checking for _fabsf declaration" >&5
9030 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9031 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9033 else
9036 ac_ext=C
9037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9038 ac_cpp='$CXXCPP $CPPFLAGS'
9039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9041 cross_compiling=$ac_cv_prog_cxx_cross
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 #include <math.h>
9047 #ifdef HAVE_IEEEFP_H
9048 #include <ieeefp.h>
9049 #endif
9051 int main() {
9052 _fabsf(0);
9053 ; return 0; }
9055 if { (eval echo configure:9056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9056 rm -rf conftest*
9057 glibcpp_cv_func__fabsf_use=yes
9058 else
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -rf conftest*
9062 glibcpp_cv_func__fabsf_use=no
9064 rm -f conftest*
9065 ac_ext=c
9066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9067 ac_cpp='$CPP $CPPFLAGS'
9068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9070 cross_compiling=$ac_cv_prog_cc_cross
9076 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9078 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9079 for ac_func in _fabsf
9081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9082 echo "configure:9083: checking for $ac_func" >&5
9083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9084 echo $ac_n "(cached) $ac_c" 1>&6
9085 else
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 /* System header to define __stub macros and hopefully few prototypes,
9090 which can conflict with char $ac_func(); below. */
9091 #include <assert.h>
9092 /* Override any gcc2 internal prototype to avoid an error. */
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095 char $ac_func();
9097 int main() {
9099 /* The GNU C library defines this for functions which it implements
9100 to always fail with ENOSYS. Some functions are actually named
9101 something starting with __ and the normal name is an alias. */
9102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9103 choke me
9104 #else
9105 $ac_func();
9106 #endif
9108 ; return 0; }
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 rm -rf conftest*
9112 eval "ac_cv_func_$ac_func=yes"
9113 else
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 rm -rf conftest*
9117 eval "ac_cv_func_$ac_func=no"
9119 rm -f conftest*
9122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9123 echo "$ac_t""yes" 1>&6
9124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9125 cat >> confdefs.h <<EOF
9126 #define $ac_tr_func 1
9129 else
9130 echo "$ac_t""no" 1>&6
9132 done
9139 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9140 echo "configure:9141: checking for fmodf declaration" >&5
9141 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9142 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9143 echo $ac_n "(cached) $ac_c" 1>&6
9144 else
9147 ac_ext=C
9148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9149 ac_cpp='$CXXCPP $CPPFLAGS'
9150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9152 cross_compiling=$ac_cv_prog_cxx_cross
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 #include <math.h>
9158 int main() {
9159 fmodf(0, 0);
9160 ; return 0; }
9162 if { (eval echo configure:9163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9163 rm -rf conftest*
9164 glibcpp_cv_func_fmodf_use=yes
9165 else
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 rm -rf conftest*
9169 glibcpp_cv_func_fmodf_use=no
9171 rm -f conftest*
9172 ac_ext=c
9173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9176 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9177 cross_compiling=$ac_cv_prog_cc_cross
9183 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9185 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9186 for ac_func in fmodf
9188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9189 echo "configure:9190: checking for $ac_func" >&5
9190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9192 else
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 /* System header to define __stub macros and hopefully few prototypes,
9197 which can conflict with char $ac_func(); below. */
9198 #include <assert.h>
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9202 char $ac_func();
9204 int main() {
9206 /* The GNU C library defines this for functions which it implements
9207 to always fail with ENOSYS. Some functions are actually named
9208 something starting with __ and the normal name is an alias. */
9209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 choke me
9211 #else
9212 $ac_func();
9213 #endif
9215 ; return 0; }
9217 if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9218 rm -rf conftest*
9219 eval "ac_cv_func_$ac_func=yes"
9220 else
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 rm -rf conftest*
9224 eval "ac_cv_func_$ac_func=no"
9226 rm -f conftest*
9229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9230 echo "$ac_t""yes" 1>&6
9231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9232 cat >> confdefs.h <<EOF
9233 #define $ac_tr_func 1
9236 else
9237 echo "$ac_t""no" 1>&6
9239 done
9241 else
9243 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9244 echo "configure:9245: checking for _fmodf declaration" >&5
9245 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9246 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9248 else
9251 ac_ext=C
9252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9253 ac_cpp='$CXXCPP $CPPFLAGS'
9254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9256 cross_compiling=$ac_cv_prog_cxx_cross
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 #include <math.h>
9262 int main() {
9263 _fmodf(0, 0);
9264 ; return 0; }
9266 if { (eval echo configure:9267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9267 rm -rf conftest*
9268 glibcpp_cv_func__fmodf_use=yes
9269 else
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 rm -rf conftest*
9273 glibcpp_cv_func__fmodf_use=no
9275 rm -f conftest*
9276 ac_ext=c
9277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9278 ac_cpp='$CPP $CPPFLAGS'
9279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9281 cross_compiling=$ac_cv_prog_cc_cross
9287 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9289 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9290 for ac_func in _fmodf
9292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9293 echo "configure:9294: checking for $ac_func" >&5
9294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9296 else
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9300 /* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char $ac_func(); below. */
9302 #include <assert.h>
9303 /* Override any gcc2 internal prototype to avoid an error. */
9304 /* We use char because int might match the return type of a gcc2
9305 builtin and then its argument prototype would still apply. */
9306 char $ac_func();
9308 int main() {
9310 /* The GNU C library defines this for functions which it implements
9311 to always fail with ENOSYS. Some functions are actually named
9312 something starting with __ and the normal name is an alias. */
9313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9314 choke me
9315 #else
9316 $ac_func();
9317 #endif
9319 ; return 0; }
9321 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9322 rm -rf conftest*
9323 eval "ac_cv_func_$ac_func=yes"
9324 else
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9327 rm -rf conftest*
9328 eval "ac_cv_func_$ac_func=no"
9330 rm -f conftest*
9333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9334 echo "$ac_t""yes" 1>&6
9335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9336 cat >> confdefs.h <<EOF
9337 #define $ac_tr_func 1
9340 else
9341 echo "$ac_t""no" 1>&6
9343 done
9350 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9351 echo "configure:9352: checking for frexpf declaration" >&5
9352 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9353 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9355 else
9358 ac_ext=C
9359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9360 ac_cpp='$CXXCPP $CPPFLAGS'
9361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9363 cross_compiling=$ac_cv_prog_cxx_cross
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 #include <math.h>
9369 int main() {
9370 frexpf(0, 0);
9371 ; return 0; }
9373 if { (eval echo configure:9374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9374 rm -rf conftest*
9375 glibcpp_cv_func_frexpf_use=yes
9376 else
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9379 rm -rf conftest*
9380 glibcpp_cv_func_frexpf_use=no
9382 rm -f conftest*
9383 ac_ext=c
9384 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9385 ac_cpp='$CPP $CPPFLAGS'
9386 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9387 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9388 cross_compiling=$ac_cv_prog_cc_cross
9394 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9396 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9397 for ac_func in frexpf
9399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9400 echo "configure:9401: checking for $ac_func" >&5
9401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9402 echo $ac_n "(cached) $ac_c" 1>&6
9403 else
9404 cat > conftest.$ac_ext <<EOF
9405 #line 9406 "configure"
9406 #include "confdefs.h"
9407 /* System header to define __stub macros and hopefully few prototypes,
9408 which can conflict with char $ac_func(); below. */
9409 #include <assert.h>
9410 /* Override any gcc2 internal prototype to avoid an error. */
9411 /* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9413 char $ac_func();
9415 int main() {
9417 /* The GNU C library defines this for functions which it implements
9418 to always fail with ENOSYS. Some functions are actually named
9419 something starting with __ and the normal name is an alias. */
9420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421 choke me
9422 #else
9423 $ac_func();
9424 #endif
9426 ; return 0; }
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest*
9430 eval "ac_cv_func_$ac_func=yes"
9431 else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 eval "ac_cv_func_$ac_func=no"
9437 rm -f conftest*
9440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9441 echo "$ac_t""yes" 1>&6
9442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9443 cat >> confdefs.h <<EOF
9444 #define $ac_tr_func 1
9447 else
9448 echo "$ac_t""no" 1>&6
9450 done
9452 else
9454 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9455 echo "configure:9456: checking for _frexpf declaration" >&5
9456 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9457 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9459 else
9462 ac_ext=C
9463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9464 ac_cpp='$CXXCPP $CPPFLAGS'
9465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9467 cross_compiling=$ac_cv_prog_cxx_cross
9469 cat > conftest.$ac_ext <<EOF
9470 #line 9471 "configure"
9471 #include "confdefs.h"
9472 #include <math.h>
9473 int main() {
9474 _frexpf(0, 0);
9475 ; return 0; }
9477 if { (eval echo configure:9478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9478 rm -rf conftest*
9479 glibcpp_cv_func__frexpf_use=yes
9480 else
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 rm -rf conftest*
9484 glibcpp_cv_func__frexpf_use=no
9486 rm -f conftest*
9487 ac_ext=c
9488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9489 ac_cpp='$CPP $CPPFLAGS'
9490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9492 cross_compiling=$ac_cv_prog_cc_cross
9498 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9500 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9501 for ac_func in _frexpf
9503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9504 echo "configure:9505: checking for $ac_func" >&5
9505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507 else
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char $ac_func(); below. */
9513 #include <assert.h>
9514 /* Override any gcc2 internal prototype to avoid an error. */
9515 /* We use char because int might match the return type of a gcc2
9516 builtin and then its argument prototype would still apply. */
9517 char $ac_func();
9519 int main() {
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9525 choke me
9526 #else
9527 $ac_func();
9528 #endif
9530 ; return 0; }
9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9533 rm -rf conftest*
9534 eval "ac_cv_func_$ac_func=yes"
9535 else
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 rm -rf conftest*
9539 eval "ac_cv_func_$ac_func=no"
9541 rm -f conftest*
9544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9545 echo "$ac_t""yes" 1>&6
9546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9547 cat >> confdefs.h <<EOF
9548 #define $ac_tr_func 1
9551 else
9552 echo "$ac_t""no" 1>&6
9554 done
9561 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9562 echo "configure:9563: checking for hypotf declaration" >&5
9563 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9564 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566 else
9569 ac_ext=C
9570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9571 ac_cpp='$CXXCPP $CPPFLAGS'
9572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9574 cross_compiling=$ac_cv_prog_cxx_cross
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 #include <math.h>
9580 int main() {
9581 hypotf(0, 0);
9582 ; return 0; }
9584 if { (eval echo configure:9585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9585 rm -rf conftest*
9586 glibcpp_cv_func_hypotf_use=yes
9587 else
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9590 rm -rf conftest*
9591 glibcpp_cv_func_hypotf_use=no
9593 rm -f conftest*
9594 ac_ext=c
9595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9596 ac_cpp='$CPP $CPPFLAGS'
9597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9599 cross_compiling=$ac_cv_prog_cc_cross
9605 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9607 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9608 for ac_func in hypotf
9610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9611 echo "configure:9612: checking for $ac_func" >&5
9612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614 else
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func(); below. */
9620 #include <assert.h>
9621 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624 char $ac_func();
9626 int main() {
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9632 choke me
9633 #else
9634 $ac_func();
9635 #endif
9637 ; return 0; }
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 rm -rf conftest*
9641 eval "ac_cv_func_$ac_func=yes"
9642 else
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -rf conftest*
9646 eval "ac_cv_func_$ac_func=no"
9648 rm -f conftest*
9651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9652 echo "$ac_t""yes" 1>&6
9653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9654 cat >> confdefs.h <<EOF
9655 #define $ac_tr_func 1
9658 else
9659 echo "$ac_t""no" 1>&6
9661 done
9663 else
9665 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9666 echo "configure:9667: checking for _hypotf declaration" >&5
9667 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9668 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9670 else
9673 ac_ext=C
9674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9675 ac_cpp='$CXXCPP $CPPFLAGS'
9676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9678 cross_compiling=$ac_cv_prog_cxx_cross
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 #include <math.h>
9684 int main() {
9685 _hypotf(0, 0);
9686 ; return 0; }
9688 if { (eval echo configure:9689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9689 rm -rf conftest*
9690 glibcpp_cv_func__hypotf_use=yes
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -rf conftest*
9695 glibcpp_cv_func__hypotf_use=no
9697 rm -f conftest*
9698 ac_ext=c
9699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9700 ac_cpp='$CPP $CPPFLAGS'
9701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9703 cross_compiling=$ac_cv_prog_cc_cross
9709 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9711 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9712 for ac_func in _hypotf
9714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9715 echo "configure:9716: checking for $ac_func" >&5
9716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9717 echo $ac_n "(cached) $ac_c" 1>&6
9718 else
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 /* System header to define __stub macros and hopefully few prototypes,
9723 which can conflict with char $ac_func(); below. */
9724 #include <assert.h>
9725 /* Override any gcc2 internal prototype to avoid an error. */
9726 /* We use char because int might match the return type of a gcc2
9727 builtin and then its argument prototype would still apply. */
9728 char $ac_func();
9730 int main() {
9732 /* The GNU C library defines this for functions which it implements
9733 to always fail with ENOSYS. Some functions are actually named
9734 something starting with __ and the normal name is an alias. */
9735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9736 choke me
9737 #else
9738 $ac_func();
9739 #endif
9741 ; return 0; }
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9744 rm -rf conftest*
9745 eval "ac_cv_func_$ac_func=yes"
9746 else
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_func_$ac_func=no"
9752 rm -f conftest*
9755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9756 echo "$ac_t""yes" 1>&6
9757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9758 cat >> confdefs.h <<EOF
9759 #define $ac_tr_func 1
9762 else
9763 echo "$ac_t""no" 1>&6
9765 done
9772 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9773 echo "configure:9774: checking for ldexpf declaration" >&5
9774 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9775 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9780 ac_ext=C
9781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9782 ac_cpp='$CXXCPP $CPPFLAGS'
9783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9785 cross_compiling=$ac_cv_prog_cxx_cross
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 #include <math.h>
9791 int main() {
9792 ldexpf(0, 0);
9793 ; return 0; }
9795 if { (eval echo configure:9796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9796 rm -rf conftest*
9797 glibcpp_cv_func_ldexpf_use=yes
9798 else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 glibcpp_cv_func_ldexpf_use=no
9804 rm -f conftest*
9805 ac_ext=c
9806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9810 cross_compiling=$ac_cv_prog_cc_cross
9816 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9818 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9819 for ac_func in ldexpf
9821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9822 echo "configure:9823: checking for $ac_func" >&5
9823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9825 else
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 /* System header to define __stub macros and hopefully few prototypes,
9830 which can conflict with char $ac_func(); below. */
9831 #include <assert.h>
9832 /* Override any gcc2 internal prototype to avoid an error. */
9833 /* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9835 char $ac_func();
9837 int main() {
9839 /* The GNU C library defines this for functions which it implements
9840 to always fail with ENOSYS. Some functions are actually named
9841 something starting with __ and the normal name is an alias. */
9842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9843 choke me
9844 #else
9845 $ac_func();
9846 #endif
9848 ; return 0; }
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9851 rm -rf conftest*
9852 eval "ac_cv_func_$ac_func=yes"
9853 else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -rf conftest*
9857 eval "ac_cv_func_$ac_func=no"
9859 rm -f conftest*
9862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9865 cat >> confdefs.h <<EOF
9866 #define $ac_tr_func 1
9869 else
9870 echo "$ac_t""no" 1>&6
9872 done
9874 else
9876 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9877 echo "configure:9878: checking for _ldexpf declaration" >&5
9878 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9879 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9881 else
9884 ac_ext=C
9885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9886 ac_cpp='$CXXCPP $CPPFLAGS'
9887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9889 cross_compiling=$ac_cv_prog_cxx_cross
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 #include <math.h>
9895 int main() {
9896 _ldexpf(0, 0);
9897 ; return 0; }
9899 if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9900 rm -rf conftest*
9901 glibcpp_cv_func__ldexpf_use=yes
9902 else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 glibcpp_cv_func__ldexpf_use=no
9908 rm -f conftest*
9909 ac_ext=c
9910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9911 ac_cpp='$CPP $CPPFLAGS'
9912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9914 cross_compiling=$ac_cv_prog_cc_cross
9920 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9922 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9923 for ac_func in _ldexpf
9925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9926 echo "configure:9927: checking for $ac_func" >&5
9927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9929 else
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func(); below. */
9935 #include <assert.h>
9936 /* Override any gcc2 internal prototype to avoid an error. */
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939 char $ac_func();
9941 int main() {
9943 /* The GNU C library defines this for functions which it implements
9944 to always fail with ENOSYS. Some functions are actually named
9945 something starting with __ and the normal name is an alias. */
9946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9947 choke me
9948 #else
9949 $ac_func();
9950 #endif
9952 ; return 0; }
9954 if { (eval echo configure:9955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9955 rm -rf conftest*
9956 eval "ac_cv_func_$ac_func=yes"
9957 else
9958 echo "configure: failed program was:" >&5
9959 cat conftest.$ac_ext >&5
9960 rm -rf conftest*
9961 eval "ac_cv_func_$ac_func=no"
9963 rm -f conftest*
9966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9967 echo "$ac_t""yes" 1>&6
9968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9969 cat >> confdefs.h <<EOF
9970 #define $ac_tr_func 1
9973 else
9974 echo "$ac_t""no" 1>&6
9976 done
9983 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9984 echo "configure:9985: checking for logf declaration" >&5
9985 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9986 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9987 echo $ac_n "(cached) $ac_c" 1>&6
9988 else
9991 ac_ext=C
9992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9993 ac_cpp='$CXXCPP $CPPFLAGS'
9994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9996 cross_compiling=$ac_cv_prog_cxx_cross
9998 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 #include <math.h>
10002 #ifdef HAVE_IEEEFP_H
10003 #include <ieeefp.h>
10004 #endif
10006 int main() {
10007 logf(0);
10008 ; return 0; }
10010 if { (eval echo configure:10011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10011 rm -rf conftest*
10012 glibcpp_cv_func_logf_use=yes
10013 else
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 rm -rf conftest*
10017 glibcpp_cv_func_logf_use=no
10019 rm -f conftest*
10020 ac_ext=c
10021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10022 ac_cpp='$CPP $CPPFLAGS'
10023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10025 cross_compiling=$ac_cv_prog_cc_cross
10031 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10033 if test x$glibcpp_cv_func_logf_use = x"yes"; then
10034 for ac_func in logf
10036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10037 echo "configure:10038: checking for $ac_func" >&5
10038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10040 else
10041 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10044 /* System header to define __stub macros and hopefully few prototypes,
10045 which can conflict with char $ac_func(); below. */
10046 #include <assert.h>
10047 /* Override any gcc2 internal prototype to avoid an error. */
10048 /* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050 char $ac_func();
10052 int main() {
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10058 choke me
10059 #else
10060 $ac_func();
10061 #endif
10063 ; return 0; }
10065 if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10066 rm -rf conftest*
10067 eval "ac_cv_func_$ac_func=yes"
10068 else
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10071 rm -rf conftest*
10072 eval "ac_cv_func_$ac_func=no"
10074 rm -f conftest*
10077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10078 echo "$ac_t""yes" 1>&6
10079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10080 cat >> confdefs.h <<EOF
10081 #define $ac_tr_func 1
10084 else
10085 echo "$ac_t""no" 1>&6
10087 done
10089 else
10091 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10092 echo "configure:10093: checking for _logf declaration" >&5
10093 if test x${glibcpp_cv_func__logf_use+set} != xset; then
10094 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10096 else
10099 ac_ext=C
10100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10101 ac_cpp='$CXXCPP $CPPFLAGS'
10102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10104 cross_compiling=$ac_cv_prog_cxx_cross
10106 cat > conftest.$ac_ext <<EOF
10107 #line 10108 "configure"
10108 #include "confdefs.h"
10109 #include <math.h>
10110 #ifdef HAVE_IEEEFP_H
10111 #include <ieeefp.h>
10112 #endif
10114 int main() {
10115 _logf(0);
10116 ; return 0; }
10118 if { (eval echo configure:10119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10119 rm -rf conftest*
10120 glibcpp_cv_func__logf_use=yes
10121 else
10122 echo "configure: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 rm -rf conftest*
10125 glibcpp_cv_func__logf_use=no
10127 rm -f conftest*
10128 ac_ext=c
10129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10130 ac_cpp='$CPP $CPPFLAGS'
10131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10133 cross_compiling=$ac_cv_prog_cc_cross
10139 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10141 if test x$glibcpp_cv_func__logf_use = x"yes"; then
10142 for ac_func in _logf
10144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10145 echo "configure:10146: checking for $ac_func" >&5
10146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 /* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func(); below. */
10154 #include <assert.h>
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char $ac_func();
10160 int main() {
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166 choke me
10167 #else
10168 $ac_func();
10169 #endif
10171 ; return 0; }
10173 if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10174 rm -rf conftest*
10175 eval "ac_cv_func_$ac_func=yes"
10176 else
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 rm -rf conftest*
10180 eval "ac_cv_func_$ac_func=no"
10182 rm -f conftest*
10185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10188 cat >> confdefs.h <<EOF
10189 #define $ac_tr_func 1
10192 else
10193 echo "$ac_t""no" 1>&6
10195 done
10202 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10203 echo "configure:10204: checking for log10f declaration" >&5
10204 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10205 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10210 ac_ext=C
10211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10212 ac_cpp='$CXXCPP $CPPFLAGS'
10213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10215 cross_compiling=$ac_cv_prog_cxx_cross
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <math.h>
10221 #ifdef HAVE_IEEEFP_H
10222 #include <ieeefp.h>
10223 #endif
10225 int main() {
10226 log10f(0);
10227 ; return 0; }
10229 if { (eval echo configure:10230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10230 rm -rf conftest*
10231 glibcpp_cv_func_log10f_use=yes
10232 else
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -rf conftest*
10236 glibcpp_cv_func_log10f_use=no
10238 rm -f conftest*
10239 ac_ext=c
10240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10241 ac_cpp='$CPP $CPPFLAGS'
10242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10244 cross_compiling=$ac_cv_prog_cc_cross
10250 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10252 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10253 for ac_func in log10f
10255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10256 echo "configure:10257: checking for $ac_func" >&5
10257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10259 else
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char $ac_func(); below. */
10265 #include <assert.h>
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10269 char $ac_func();
10271 int main() {
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10277 choke me
10278 #else
10279 $ac_func();
10280 #endif
10282 ; return 0; }
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285 rm -rf conftest*
10286 eval "ac_cv_func_$ac_func=yes"
10287 else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 rm -rf conftest*
10291 eval "ac_cv_func_$ac_func=no"
10293 rm -f conftest*
10296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10299 cat >> confdefs.h <<EOF
10300 #define $ac_tr_func 1
10303 else
10304 echo "$ac_t""no" 1>&6
10306 done
10308 else
10310 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10311 echo "configure:10312: checking for _log10f declaration" >&5
10312 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10313 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10314 echo $ac_n "(cached) $ac_c" 1>&6
10315 else
10318 ac_ext=C
10319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10320 ac_cpp='$CXXCPP $CPPFLAGS'
10321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10323 cross_compiling=$ac_cv_prog_cxx_cross
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 #include <math.h>
10329 #ifdef HAVE_IEEEFP_H
10330 #include <ieeefp.h>
10331 #endif
10333 int main() {
10334 _log10f(0);
10335 ; return 0; }
10337 if { (eval echo configure:10338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10338 rm -rf conftest*
10339 glibcpp_cv_func__log10f_use=yes
10340 else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 rm -rf conftest*
10344 glibcpp_cv_func__log10f_use=no
10346 rm -f conftest*
10347 ac_ext=c
10348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10349 ac_cpp='$CPP $CPPFLAGS'
10350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10352 cross_compiling=$ac_cv_prog_cc_cross
10358 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10360 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10361 for ac_func in _log10f
10363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_func" >&5
10365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10367 else
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func(); below. */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error. */
10375 /* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10377 char $ac_func();
10379 int main() {
10381 /* The GNU C library defines this for functions which it implements
10382 to always fail with ENOSYS. Some functions are actually named
10383 something starting with __ and the normal name is an alias. */
10384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10385 choke me
10386 #else
10387 $ac_func();
10388 #endif
10390 ; return 0; }
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10393 rm -rf conftest*
10394 eval "ac_cv_func_$ac_func=yes"
10395 else
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 rm -rf conftest*
10399 eval "ac_cv_func_$ac_func=no"
10401 rm -f conftest*
10404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10405 echo "$ac_t""yes" 1>&6
10406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10407 cat >> confdefs.h <<EOF
10408 #define $ac_tr_func 1
10411 else
10412 echo "$ac_t""no" 1>&6
10414 done
10421 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10422 echo "configure:10423: checking for modff declaration" >&5
10423 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10424 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10426 else
10429 ac_ext=C
10430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10431 ac_cpp='$CXXCPP $CPPFLAGS'
10432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10434 cross_compiling=$ac_cv_prog_cxx_cross
10436 cat > conftest.$ac_ext <<EOF
10437 #line 10438 "configure"
10438 #include "confdefs.h"
10439 #include <math.h>
10440 int main() {
10441 modff(0, 0);
10442 ; return 0; }
10444 if { (eval echo configure:10445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10445 rm -rf conftest*
10446 glibcpp_cv_func_modff_use=yes
10447 else
10448 echo "configure: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 rm -rf conftest*
10451 glibcpp_cv_func_modff_use=no
10453 rm -f conftest*
10454 ac_ext=c
10455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10456 ac_cpp='$CPP $CPPFLAGS'
10457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10459 cross_compiling=$ac_cv_prog_cc_cross
10465 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10467 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10468 for ac_func in modff
10470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10471 echo "configure:10472: checking for $ac_func" >&5
10472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474 else
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10478 /* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func(); below. */
10480 #include <assert.h>
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484 char $ac_func();
10486 int main() {
10488 /* The GNU C library defines this for functions which it implements
10489 to always fail with ENOSYS. Some functions are actually named
10490 something starting with __ and the normal name is an alias. */
10491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10492 choke me
10493 #else
10494 $ac_func();
10495 #endif
10497 ; return 0; }
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 rm -rf conftest*
10501 eval "ac_cv_func_$ac_func=yes"
10502 else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -rf conftest*
10506 eval "ac_cv_func_$ac_func=no"
10508 rm -f conftest*
10511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10512 echo "$ac_t""yes" 1>&6
10513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10514 cat >> confdefs.h <<EOF
10515 #define $ac_tr_func 1
10518 else
10519 echo "$ac_t""no" 1>&6
10521 done
10523 else
10525 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10526 echo "configure:10527: checking for _modff declaration" >&5
10527 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10528 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10529 echo $ac_n "(cached) $ac_c" 1>&6
10530 else
10533 ac_ext=C
10534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10535 ac_cpp='$CXXCPP $CPPFLAGS'
10536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10538 cross_compiling=$ac_cv_prog_cxx_cross
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <math.h>
10544 int main() {
10545 _modff(0, 0);
10546 ; return 0; }
10548 if { (eval echo configure:10549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10549 rm -rf conftest*
10550 glibcpp_cv_func__modff_use=yes
10551 else
10552 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10554 rm -rf conftest*
10555 glibcpp_cv_func__modff_use=no
10557 rm -f conftest*
10558 ac_ext=c
10559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10560 ac_cpp='$CPP $CPPFLAGS'
10561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10563 cross_compiling=$ac_cv_prog_cc_cross
10569 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10571 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10572 for ac_func in _modff
10574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10575 echo "configure:10576: checking for $ac_func" >&5
10576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10578 else
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 /* System header to define __stub macros and hopefully few prototypes,
10583 which can conflict with char $ac_func(); below. */
10584 #include <assert.h>
10585 /* Override any gcc2 internal prototype to avoid an error. */
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char $ac_func();
10590 int main() {
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10596 choke me
10597 #else
10598 $ac_func();
10599 #endif
10601 ; return 0; }
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10604 rm -rf conftest*
10605 eval "ac_cv_func_$ac_func=yes"
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610 eval "ac_cv_func_$ac_func=no"
10612 rm -f conftest*
10615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10616 echo "$ac_t""yes" 1>&6
10617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10618 cat >> confdefs.h <<EOF
10619 #define $ac_tr_func 1
10622 else
10623 echo "$ac_t""no" 1>&6
10625 done
10632 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10633 echo "configure:10634: checking for powf declaration" >&5
10634 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10635 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10637 else
10640 ac_ext=C
10641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10642 ac_cpp='$CXXCPP $CPPFLAGS'
10643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10645 cross_compiling=$ac_cv_prog_cxx_cross
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <math.h>
10651 int main() {
10652 powf(0, 0);
10653 ; return 0; }
10655 if { (eval echo configure:10656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10656 rm -rf conftest*
10657 glibcpp_cv_func_powf_use=yes
10658 else
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10661 rm -rf conftest*
10662 glibcpp_cv_func_powf_use=no
10664 rm -f conftest*
10665 ac_ext=c
10666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10667 ac_cpp='$CPP $CPPFLAGS'
10668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10670 cross_compiling=$ac_cv_prog_cc_cross
10676 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10678 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10679 for ac_func in powf
10681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10682 echo "configure:10683: checking for $ac_func" >&5
10683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10685 else
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 /* System header to define __stub macros and hopefully few prototypes,
10690 which can conflict with char $ac_func(); below. */
10691 #include <assert.h>
10692 /* Override any gcc2 internal prototype to avoid an error. */
10693 /* We use char because int might match the return type of a gcc2
10694 builtin and then its argument prototype would still apply. */
10695 char $ac_func();
10697 int main() {
10699 /* The GNU C library defines this for functions which it implements
10700 to always fail with ENOSYS. Some functions are actually named
10701 something starting with __ and the normal name is an alias. */
10702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10703 choke me
10704 #else
10705 $ac_func();
10706 #endif
10708 ; return 0; }
10710 if { (eval echo configure:10711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10711 rm -rf conftest*
10712 eval "ac_cv_func_$ac_func=yes"
10713 else
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10716 rm -rf conftest*
10717 eval "ac_cv_func_$ac_func=no"
10719 rm -f conftest*
10722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10723 echo "$ac_t""yes" 1>&6
10724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10725 cat >> confdefs.h <<EOF
10726 #define $ac_tr_func 1
10729 else
10730 echo "$ac_t""no" 1>&6
10732 done
10734 else
10736 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10737 echo "configure:10738: checking for _powf declaration" >&5
10738 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10739 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741 else
10744 ac_ext=C
10745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10746 ac_cpp='$CXXCPP $CPPFLAGS'
10747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10749 cross_compiling=$ac_cv_prog_cxx_cross
10751 cat > conftest.$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10754 #include <math.h>
10755 int main() {
10756 _powf(0, 0);
10757 ; return 0; }
10759 if { (eval echo configure:10760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10760 rm -rf conftest*
10761 glibcpp_cv_func__powf_use=yes
10762 else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -rf conftest*
10766 glibcpp_cv_func__powf_use=no
10768 rm -f conftest*
10769 ac_ext=c
10770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10771 ac_cpp='$CPP $CPPFLAGS'
10772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10774 cross_compiling=$ac_cv_prog_cc_cross
10780 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10782 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10783 for ac_func in _powf
10785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_func" >&5
10787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10789 else
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func(); below. */
10795 #include <assert.h>
10796 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */
10799 char $ac_func();
10801 int main() {
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10807 choke me
10808 #else
10809 $ac_func();
10810 #endif
10812 ; return 0; }
10814 if { (eval echo configure:10815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10815 rm -rf conftest*
10816 eval "ac_cv_func_$ac_func=yes"
10817 else
10818 echo "configure: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 rm -rf conftest*
10821 eval "ac_cv_func_$ac_func=no"
10823 rm -f conftest*
10826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10827 echo "$ac_t""yes" 1>&6
10828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10829 cat >> confdefs.h <<EOF
10830 #define $ac_tr_func 1
10833 else
10834 echo "$ac_t""no" 1>&6
10836 done
10843 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10844 echo "configure:10845: checking for sqrtf declaration" >&5
10845 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10846 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10848 else
10851 ac_ext=C
10852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CXXCPP $CPPFLAGS'
10854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cxx_cross
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 #include <math.h>
10862 #ifdef HAVE_IEEEFP_H
10863 #include <ieeefp.h>
10864 #endif
10866 int main() {
10867 sqrtf(0);
10868 ; return 0; }
10870 if { (eval echo configure:10871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10871 rm -rf conftest*
10872 glibcpp_cv_func_sqrtf_use=yes
10873 else
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 rm -rf conftest*
10877 glibcpp_cv_func_sqrtf_use=no
10879 rm -f conftest*
10880 ac_ext=c
10881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10882 ac_cpp='$CPP $CPPFLAGS'
10883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10885 cross_compiling=$ac_cv_prog_cc_cross
10891 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10893 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10894 for ac_func in sqrtf
10896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10897 echo "configure:10898: checking for $ac_func" >&5
10898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 /* System header to define __stub macros and hopefully few prototypes,
10905 which can conflict with char $ac_func(); below. */
10906 #include <assert.h>
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 /* We use char because int might match the return type of a gcc2
10909 builtin and then its argument prototype would still apply. */
10910 char $ac_func();
10912 int main() {
10914 /* The GNU C library defines this for functions which it implements
10915 to always fail with ENOSYS. Some functions are actually named
10916 something starting with __ and the normal name is an alias. */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 choke me
10919 #else
10920 $ac_func();
10921 #endif
10923 ; return 0; }
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926 rm -rf conftest*
10927 eval "ac_cv_func_$ac_func=yes"
10928 else
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -rf conftest*
10932 eval "ac_cv_func_$ac_func=no"
10934 rm -f conftest*
10937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10938 echo "$ac_t""yes" 1>&6
10939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10940 cat >> confdefs.h <<EOF
10941 #define $ac_tr_func 1
10944 else
10945 echo "$ac_t""no" 1>&6
10947 done
10949 else
10951 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10952 echo "configure:10953: checking for _sqrtf declaration" >&5
10953 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10954 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10956 else
10959 ac_ext=C
10960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10961 ac_cpp='$CXXCPP $CPPFLAGS'
10962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10964 cross_compiling=$ac_cv_prog_cxx_cross
10966 cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10969 #include <math.h>
10970 #ifdef HAVE_IEEEFP_H
10971 #include <ieeefp.h>
10972 #endif
10974 int main() {
10975 _sqrtf(0);
10976 ; return 0; }
10978 if { (eval echo configure:10979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10979 rm -rf conftest*
10980 glibcpp_cv_func__sqrtf_use=yes
10981 else
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 rm -rf conftest*
10985 glibcpp_cv_func__sqrtf_use=no
10987 rm -f conftest*
10988 ac_ext=c
10989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10990 ac_cpp='$CPP $CPPFLAGS'
10991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10993 cross_compiling=$ac_cv_prog_cc_cross
10999 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11001 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11002 for ac_func in _sqrtf
11004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11005 echo "configure:11006: checking for $ac_func" >&5
11006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11009 cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11012 /* System header to define __stub macros and hopefully few prototypes,
11013 which can conflict with char $ac_func(); below. */
11014 #include <assert.h>
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11018 char $ac_func();
11020 int main() {
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026 choke me
11027 #else
11028 $ac_func();
11029 #endif
11031 ; return 0; }
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034 rm -rf conftest*
11035 eval "ac_cv_func_$ac_func=yes"
11036 else
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11039 rm -rf conftest*
11040 eval "ac_cv_func_$ac_func=no"
11042 rm -f conftest*
11045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11046 echo "$ac_t""yes" 1>&6
11047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11048 cat >> confdefs.h <<EOF
11049 #define $ac_tr_func 1
11052 else
11053 echo "$ac_t""no" 1>&6
11055 done
11062 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11063 echo "configure:11064: checking for sincosf declaration" >&5
11064 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11065 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11070 ac_ext=C
11071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CXXCPP $CPPFLAGS'
11073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cxx_cross
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 #include <math.h>
11081 int main() {
11082 sincosf(0, 0, 0);
11083 ; return 0; }
11085 if { (eval echo configure:11086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11086 rm -rf conftest*
11087 glibcpp_cv_func_sincosf_use=yes
11088 else
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11091 rm -rf conftest*
11092 glibcpp_cv_func_sincosf_use=no
11094 rm -f conftest*
11095 ac_ext=c
11096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11100 cross_compiling=$ac_cv_prog_cc_cross
11106 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11108 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11109 for ac_func in sincosf
11111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11112 echo "configure:11113: checking for $ac_func" >&5
11113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11115 else
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* System header to define __stub macros and hopefully few prototypes,
11120 which can conflict with char $ac_func(); below. */
11121 #include <assert.h>
11122 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11125 char $ac_func();
11127 int main() {
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 choke me
11134 #else
11135 $ac_func();
11136 #endif
11138 ; return 0; }
11140 if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11141 rm -rf conftest*
11142 eval "ac_cv_func_$ac_func=yes"
11143 else
11144 echo "configure: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11146 rm -rf conftest*
11147 eval "ac_cv_func_$ac_func=no"
11149 rm -f conftest*
11152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11155 cat >> confdefs.h <<EOF
11156 #define $ac_tr_func 1
11159 else
11160 echo "$ac_t""no" 1>&6
11162 done
11164 else
11166 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11167 echo "configure:11168: checking for _sincosf declaration" >&5
11168 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11169 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11171 else
11174 ac_ext=C
11175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11176 ac_cpp='$CXXCPP $CPPFLAGS'
11177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11179 cross_compiling=$ac_cv_prog_cxx_cross
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 #include <math.h>
11185 int main() {
11186 _sincosf(0, 0, 0);
11187 ; return 0; }
11189 if { (eval echo configure:11190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11190 rm -rf conftest*
11191 glibcpp_cv_func__sincosf_use=yes
11192 else
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 rm -rf conftest*
11196 glibcpp_cv_func__sincosf_use=no
11198 rm -f conftest*
11199 ac_ext=c
11200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11201 ac_cpp='$CPP $CPPFLAGS'
11202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11204 cross_compiling=$ac_cv_prog_cc_cross
11210 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11212 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11213 for ac_func in _sincosf
11215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11216 echo "configure:11217: checking for $ac_func" >&5
11217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11219 else
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func(); below. */
11225 #include <assert.h>
11226 /* Override any gcc2 internal prototype to avoid an error. */
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char $ac_func();
11231 int main() {
11233 /* The GNU C library defines this for functions which it implements
11234 to always fail with ENOSYS. Some functions are actually named
11235 something starting with __ and the normal name is an alias. */
11236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11237 choke me
11238 #else
11239 $ac_func();
11240 #endif
11242 ; return 0; }
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11245 rm -rf conftest*
11246 eval "ac_cv_func_$ac_func=yes"
11247 else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_func_$ac_func=no"
11253 rm -f conftest*
11256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11257 echo "$ac_t""yes" 1>&6
11258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11259 cat >> confdefs.h <<EOF
11260 #define $ac_tr_func 1
11263 else
11264 echo "$ac_t""no" 1>&6
11266 done
11273 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11274 echo "configure:11275: checking for finitef declaration" >&5
11275 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11276 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11277 echo $ac_n "(cached) $ac_c" 1>&6
11278 else
11281 ac_ext=C
11282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11283 ac_cpp='$CXXCPP $CPPFLAGS'
11284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11286 cross_compiling=$ac_cv_prog_cxx_cross
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 #include <math.h>
11292 #ifdef HAVE_IEEEFP_H
11293 #include <ieeefp.h>
11294 #endif
11296 int main() {
11297 finitef(0);
11298 ; return 0; }
11300 if { (eval echo configure:11301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11301 rm -rf conftest*
11302 glibcpp_cv_func_finitef_use=yes
11303 else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 glibcpp_cv_func_finitef_use=no
11309 rm -f conftest*
11310 ac_ext=c
11311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11312 ac_cpp='$CPP $CPPFLAGS'
11313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11315 cross_compiling=$ac_cv_prog_cc_cross
11321 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11323 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11324 for ac_func in finitef
11326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11327 echo "configure:11328: checking for $ac_func" >&5
11328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11330 else
11331 cat > conftest.$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11334 /* System header to define __stub macros and hopefully few prototypes,
11335 which can conflict with char $ac_func(); below. */
11336 #include <assert.h>
11337 /* Override any gcc2 internal prototype to avoid an error. */
11338 /* We use char because int might match the return type of a gcc2
11339 builtin and then its argument prototype would still apply. */
11340 char $ac_func();
11342 int main() {
11344 /* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11348 choke me
11349 #else
11350 $ac_func();
11351 #endif
11353 ; return 0; }
11355 if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11356 rm -rf conftest*
11357 eval "ac_cv_func_$ac_func=yes"
11358 else
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -rf conftest*
11362 eval "ac_cv_func_$ac_func=no"
11364 rm -f conftest*
11367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11368 echo "$ac_t""yes" 1>&6
11369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11370 cat >> confdefs.h <<EOF
11371 #define $ac_tr_func 1
11374 else
11375 echo "$ac_t""no" 1>&6
11377 done
11379 else
11381 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11382 echo "configure:11383: checking for _finitef declaration" >&5
11383 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11384 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
11386 else
11389 ac_ext=C
11390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11391 ac_cpp='$CXXCPP $CPPFLAGS'
11392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11394 cross_compiling=$ac_cv_prog_cxx_cross
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11398 "configure"
11398 #include "confdefs.h"
11399 #include <math.h>
11400 #ifdef HAVE_IEEEFP_H
11401 #include <ieeefp.h>
11402 #endif
11404 int main() {
11405 _finitef(0);
11406 ; return 0; }
11408 if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11409 rm -rf conftest*
11410 glibcpp_cv_func__finitef_use=yes
11411 else
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -rf conftest*
11415 glibcpp_cv_func__finitef_use=no
11417 rm -f conftest*
11418 ac_ext=c
11419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11423 cross_compiling=$ac_cv_prog_cc_cross
11429 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11431 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11432 for ac_func in _finitef
11434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11435 echo "configure:11436: checking for $ac_func" >&5
11436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11438 else
11439 cat > conftest.$ac_ext <<EOF
11440 #line 11441 "configure"
11441 #include "confdefs.h"
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func(); below. */
11444 #include <assert.h>
11445 /* Override any gcc2 internal prototype to avoid an error. */
11446 /* We use char because int might match the return type of a gcc2
11447 builtin and then its argument prototype would still apply. */
11448 char $ac_func();
11450 int main() {
11452 /* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 choke me
11457 #else
11458 $ac_func();
11459 #endif
11461 ; return 0; }
11463 if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11464 rm -rf conftest*
11465 eval "ac_cv_func_$ac_func=yes"
11466 else
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 rm -rf conftest*
11470 eval "ac_cv_func_$ac_func=no"
11472 rm -f conftest*
11475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11476 echo "$ac_t""yes" 1>&6
11477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11478 cat >> confdefs.h <<EOF
11479 #define $ac_tr_func 1
11482 else
11483 echo "$ac_t""no" 1>&6
11485 done
11492 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11493 echo "configure:11494: checking for long double trig functions" >&5
11494 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11499 ac_ext=C
11500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11501 ac_cpp='$CXXCPP $CPPFLAGS'
11502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11504 cross_compiling=$ac_cv_prog_cxx_cross
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11509 #include <math.h>
11510 int main() {
11511 `for x in acosl asinl atanl \
11512 cosl sinl tanl \
11513 coshl sinhl tanhl; do echo "$x (0);"; done`
11514 ; return 0; }
11516 if { (eval echo configure:11517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11517 rm -rf conftest*
11518 glibcpp_cv_func_long_double_trig_use=yes
11519 else
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523 glibcpp_cv_func_long_double_trig_use=no
11525 rm -f conftest*
11526 ac_ext=c
11527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11528 ac_cpp='$CPP $CPPFLAGS'
11529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11531 cross_compiling=$ac_cv_prog_cc_cross
11535 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11536 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11537 for ac_func in acosl asinl atanl \
11538 cosl sinl tanl \
11539 coshl sinhl tanhl
11541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11542 echo "configure:11543: checking for $ac_func" >&5
11543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11545 else
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func(); below. */
11551 #include <assert.h>
11552 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555 char $ac_func();
11557 int main() {
11559 /* The GNU C library defines this for functions which it implements
11560 to always fail with ENOSYS. Some functions are actually named
11561 something starting with __ and the normal name is an alias. */
11562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11563 choke me
11564 #else
11565 $ac_func();
11566 #endif
11568 ; return 0; }
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11571 rm -rf conftest*
11572 eval "ac_cv_func_$ac_func=yes"
11573 else
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 rm -rf conftest*
11577 eval "ac_cv_func_$ac_func=no"
11579 rm -f conftest*
11582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11583 echo "$ac_t""yes" 1>&6
11584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11585 cat >> confdefs.h <<EOF
11586 #define $ac_tr_func 1
11589 else
11590 echo "$ac_t""no" 1>&6
11592 done
11597 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11598 echo "configure:11599: checking for long double round functions" >&5
11599 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11601 else
11604 ac_ext=C
11605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11606 ac_cpp='$CXXCPP $CPPFLAGS'
11607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11609 cross_compiling=$ac_cv_prog_cxx_cross
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 #include <math.h>
11615 int main() {
11616 `for x in ceill floorl; do echo "$x (0);"; done`
11617 ; return 0; }
11619 if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11620 rm -rf conftest*
11621 glibcpp_cv_func_long_double_round_use=yes
11622 else
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11625 rm -rf conftest*
11626 glibcpp_cv_func_long_double_round_use=no
11628 rm -f conftest*
11629 ac_ext=c
11630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11631 ac_cpp='$CPP $CPPFLAGS'
11632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11634 cross_compiling=$ac_cv_prog_cc_cross
11638 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11639 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11640 for ac_func in ceill floorl
11642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11643 echo "configure:11644: checking for $ac_func" >&5
11644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* System header to define __stub macros and hopefully few prototypes,
11651 which can conflict with char $ac_func(); below. */
11652 #include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11656 char $ac_func();
11658 int main() {
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11664 choke me
11665 #else
11666 $ac_func();
11667 #endif
11669 ; return 0; }
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 rm -rf conftest*
11673 eval "ac_cv_func_$ac_func=yes"
11674 else
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11677 rm -rf conftest*
11678 eval "ac_cv_func_$ac_func=no"
11680 rm -f conftest*
11683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11684 echo "$ac_t""yes" 1>&6
11685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11686 cat >> confdefs.h <<EOF
11687 #define $ac_tr_func 1
11690 else
11691 echo "$ac_t""no" 1>&6
11693 done
11699 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11700 echo "configure:11701: checking for isnanl declaration" >&5
11701 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11702 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11704 else
11707 ac_ext=C
11708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11709 ac_cpp='$CXXCPP $CPPFLAGS'
11710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11712 cross_compiling=$ac_cv_prog_cxx_cross
11714 cat > conftest.$ac_ext <<EOF
11715 #line 11716 "configure"
11716 #include "confdefs.h"
11717 #include <math.h>
11718 #ifdef HAVE_IEEEFP_H
11719 #include <ieeefp.h>
11720 #endif
11722 int main() {
11723 isnanl(0);
11724 ; return 0; }
11726 if { (eval echo configure:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11727 rm -rf conftest*
11728 glibcpp_cv_func_isnanl_use=yes
11729 else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 glibcpp_cv_func_isnanl_use=no
11735 rm -f conftest*
11736 ac_ext=c
11737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11738 ac_cpp='$CPP $CPPFLAGS'
11739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11741 cross_compiling=$ac_cv_prog_cc_cross
11747 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11749 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11750 for ac_func in isnanl
11752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11753 echo "configure:11754: checking for $ac_func" >&5
11754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11755 echo $ac_n "(cached) $ac_c" 1>&6
11756 else
11757 cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760 /* System header to define __stub macros and hopefully few prototypes,
11761 which can conflict with char $ac_func(); below. */
11762 #include <assert.h>
11763 /* Override any gcc2 internal prototype to avoid an error. */
11764 /* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11766 char $ac_func();
11768 int main() {
11770 /* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11774 choke me
11775 #else
11776 $ac_func();
11777 #endif
11779 ; return 0; }
11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11782 rm -rf conftest*
11783 eval "ac_cv_func_$ac_func=yes"
11784 else
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -rf conftest*
11788 eval "ac_cv_func_$ac_func=no"
11790 rm -f conftest*
11793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11794 echo "$ac_t""yes" 1>&6
11795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11796 cat >> confdefs.h <<EOF
11797 #define $ac_tr_func 1
11800 else
11801 echo "$ac_t""no" 1>&6
11803 done
11805 else
11807 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11808 echo "configure:11809: checking for _isnanl declaration" >&5
11809 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11810 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11811 echo $ac_n "(cached) $ac_c" 1>&6
11812 else
11815 ac_ext=C
11816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11817 ac_cpp='$CXXCPP $CPPFLAGS'
11818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11820 cross_compiling=$ac_cv_prog_cxx_cross
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 #include <math.h>
11826 #ifdef HAVE_IEEEFP_H
11827 #include <ieeefp.h>
11828 #endif
11830 int main() {
11831 _isnanl(0);
11832 ; return 0; }
11834 if { (eval echo configure:11835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11835 rm -rf conftest*
11836 glibcpp_cv_func__isnanl_use=yes
11837 else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 glibcpp_cv_func__isnanl_use=no
11843 rm -f conftest*
11844 ac_ext=c
11845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11849 cross_compiling=$ac_cv_prog_cc_cross
11855 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11857 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11858 for ac_func in _isnanl
11860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11861 echo "configure:11862: checking for $ac_func" >&5
11862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11864 else
11865 cat > conftest.$ac_ext <<EOF
11866 #line 11867 "configure"
11867 #include "confdefs.h"
11868 /* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func(); below. */
11870 #include <assert.h>
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char $ac_func();
11876 int main() {
11878 /* The GNU C library defines this for functions which it implements
11879 to always fail with ENOSYS. Some functions are actually named
11880 something starting with __ and the normal name is an alias. */
11881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11882 choke me
11883 #else
11884 $ac_func();
11885 #endif
11887 ; return 0; }
11889 if { (eval echo configure:11890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11890 rm -rf conftest*
11891 eval "ac_cv_func_$ac_func=yes"
11892 else
11893 echo "configure: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11895 rm -rf conftest*
11896 eval "ac_cv_func_$ac_func=no"
11898 rm -f conftest*
11901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11902 echo "$ac_t""yes" 1>&6
11903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11904 cat >> confdefs.h <<EOF
11905 #define $ac_tr_func 1
11908 else
11909 echo "$ac_t""no" 1>&6
11911 done
11918 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11919 echo "configure:11920: checking for isinfl declaration" >&5
11920 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11921 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11923 else
11926 ac_ext=C
11927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11928 ac_cpp='$CXXCPP $CPPFLAGS'
11929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11931 cross_compiling=$ac_cv_prog_cxx_cross
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936 #include <math.h>
11937 #ifdef HAVE_IEEEFP_H
11938 #include <ieeefp.h>
11939 #endif
11941 int main() {
11942 isinfl(0);
11943 ; return 0; }
11945 if { (eval echo configure:11946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11946 rm -rf conftest*
11947 glibcpp_cv_func_isinfl_use=yes
11948 else
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11951 rm -rf conftest*
11952 glibcpp_cv_func_isinfl_use=no
11954 rm -f conftest*
11955 ac_ext=c
11956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11960 cross_compiling=$ac_cv_prog_cc_cross
11966 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11968 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11969 for ac_func in isinfl
11971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11972 echo "configure:11973: checking for $ac_func" >&5
11973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11974 echo $ac_n "(cached) $ac_c" 1>&6
11975 else
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11979 /* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char $ac_func(); below. */
11981 #include <assert.h>
11982 /* Override any gcc2 internal prototype to avoid an error. */
11983 /* We use char because int might match the return type of a gcc2
11984 builtin and then its argument prototype would still apply. */
11985 char $ac_func();
11987 int main() {
11989 /* The GNU C library defines this for functions which it implements
11990 to always fail with ENOSYS. Some functions are actually named
11991 something starting with __ and the normal name is an alias. */
11992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11993 choke me
11994 #else
11995 $ac_func();
11996 #endif
11998 ; return 0; }
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001 rm -rf conftest*
12002 eval "ac_cv_func_$ac_func=yes"
12003 else
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12006 rm -rf conftest*
12007 eval "ac_cv_func_$ac_func=no"
12009 rm -f conftest*
12012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12013 echo "$ac_t""yes" 1>&6
12014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12015 cat >> confdefs.h <<EOF
12016 #define $ac_tr_func 1
12019 else
12020 echo "$ac_t""no" 1>&6
12022 done
12024 else
12026 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12027 echo "configure:12028: checking for _isinfl declaration" >&5
12028 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12029 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12031 else
12034 ac_ext=C
12035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12036 ac_cpp='$CXXCPP $CPPFLAGS'
12037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12039 cross_compiling=$ac_cv_prog_cxx_cross
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 #include <math.h>
12045 #ifdef HAVE_IEEEFP_H
12046 #include <ieeefp.h>
12047 #endif
12049 int main() {
12050 _isinfl(0);
12051 ; return 0; }
12053 if { (eval echo configure:12054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12054 rm -rf conftest*
12055 glibcpp_cv_func__isinfl_use=yes
12056 else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 glibcpp_cv_func__isinfl_use=no
12062 rm -f conftest*
12063 ac_ext=c
12064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12065 ac_cpp='$CPP $CPPFLAGS'
12066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12068 cross_compiling=$ac_cv_prog_cc_cross
12074 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12076 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12077 for ac_func in _isinfl
12079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12080 echo "configure:12081: checking for $ac_func" >&5
12081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12083 else
12084 cat > conftest.$ac_ext <<EOF
12085 #line 12086 "configure"
12086 #include "confdefs.h"
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func(); below. */
12089 #include <assert.h>
12090 /* Override any gcc2 internal prototype to avoid an error. */
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093 char $ac_func();
12095 int main() {
12097 /* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12101 choke me
12102 #else
12103 $ac_func();
12104 #endif
12106 ; return 0; }
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12109 rm -rf conftest*
12110 eval "ac_cv_func_$ac_func=yes"
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115 eval "ac_cv_func_$ac_func=no"
12117 rm -f conftest*
12120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12121 echo "$ac_t""yes" 1>&6
12122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12123 cat >> confdefs.h <<EOF
12124 #define $ac_tr_func 1
12127 else
12128 echo "$ac_t""no" 1>&6
12130 done
12137 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12138 echo "configure:12139: checking for copysignl declaration" >&5
12139 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12140 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12141 echo $ac_n "(cached) $ac_c" 1>&6
12142 else
12145 ac_ext=C
12146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12147 ac_cpp='$CXXCPP $CPPFLAGS'
12148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12150 cross_compiling=$ac_cv_prog_cxx_cross
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 #include <math.h>
12156 int main() {
12157 copysignl(0, 0);
12158 ; return 0; }
12160 if { (eval echo configure:12161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12161 rm -rf conftest*
12162 glibcpp_cv_func_copysignl_use=yes
12163 else
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 rm -rf conftest*
12167 glibcpp_cv_func_copysignl_use=no
12169 rm -f conftest*
12170 ac_ext=c
12171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12172 ac_cpp='$CPP $CPPFLAGS'
12173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12175 cross_compiling=$ac_cv_prog_cc_cross
12181 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12183 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12184 for ac_func in copysignl
12186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12187 echo "configure:12188: checking for $ac_func" >&5
12188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
12190 else
12191 cat > conftest.$ac_ext <<EOF
12192 #line 12193 "configure"
12193 #include "confdefs.h"
12194 /* System header to define __stub macros and hopefully few prototypes,
12195 which can conflict with char $ac_func(); below. */
12196 #include <assert.h>
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200 char $ac_func();
12202 int main() {
12204 /* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208 choke me
12209 #else
12210 $ac_func();
12211 #endif
12213 ; return 0; }
12215 if { (eval echo configure:12216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12216 rm -rf conftest*
12217 eval "ac_cv_func_$ac_func=yes"
12218 else
12219 echo "configure: failed program was:" >&5
12220 cat conftest.$ac_ext >&5
12221 rm -rf conftest*
12222 eval "ac_cv_func_$ac_func=no"
12224 rm -f conftest*
12227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
12229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12230 cat >> confdefs.h <<EOF
12231 #define $ac_tr_func 1
12234 else
12235 echo "$ac_t""no" 1>&6
12237 done
12239 else
12241 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12242 echo "configure:12243: checking for _copysignl declaration" >&5
12243 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12244 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12246 else
12249 ac_ext=C
12250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12251 ac_cpp='$CXXCPP $CPPFLAGS'
12252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12254 cross_compiling=$ac_cv_prog_cxx_cross
12256 cat > conftest.$ac_ext <<EOF
12257 #line 12258 "configure"
12258 #include "confdefs.h"
12259 #include <math.h>
12260 int main() {
12261 _copysignl(0, 0);
12262 ; return 0; }
12264 if { (eval echo configure:12265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12265 rm -rf conftest*
12266 glibcpp_cv_func__copysignl_use=yes
12267 else
12268 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12270 rm -rf conftest*
12271 glibcpp_cv_func__copysignl_use=no
12273 rm -f conftest*
12274 ac_ext=c
12275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12279 cross_compiling=$ac_cv_prog_cc_cross
12285 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12287 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12288 for ac_func in _copysignl
12290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12291 echo "configure:12292: checking for $ac_func" >&5
12292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12293 echo $ac_n "(cached) $ac_c" 1>&6
12294 else
12295 cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func(); below. */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char $ac_func();
12306 int main() {
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12312 choke me
12313 #else
12314 $ac_func();
12315 #endif
12317 ; return 0; }
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320 rm -rf conftest*
12321 eval "ac_cv_func_$ac_func=yes"
12322 else
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12325 rm -rf conftest*
12326 eval "ac_cv_func_$ac_func=no"
12328 rm -f conftest*
12331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12334 cat >> confdefs.h <<EOF
12335 #define $ac_tr_func 1
12338 else
12339 echo "$ac_t""no" 1>&6
12341 done
12348 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12349 echo "configure:12350: checking for atan2l declaration" >&5
12350 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12351 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12352 echo $ac_n "(cached) $ac_c" 1>&6
12353 else
12356 ac_ext=C
12357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12358 ac_cpp='$CXXCPP $CPPFLAGS'
12359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12361 cross_compiling=$ac_cv_prog_cxx_cross
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 #include <math.h>
12367 int main() {
12368 atan2l(0, 0);
12369 ; return 0; }
12371 if { (eval echo configure:12372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12372 rm -rf conftest*
12373 glibcpp_cv_func_atan2l_use=yes
12374 else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 rm -rf conftest*
12378 glibcpp_cv_func_atan2l_use=no
12380 rm -f conftest*
12381 ac_ext=c
12382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12386 cross_compiling=$ac_cv_prog_cc_cross
12392 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12394 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12395 for ac_func in atan2l
12397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12398 echo "configure:12399: checking for $ac_func" >&5
12399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401 else
12402 cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405 /* System header to define __stub macros and hopefully few prototypes,
12406 which can conflict with char $ac_func(); below. */
12407 #include <assert.h>
12408 /* Override any gcc2 internal prototype to avoid an error. */
12409 /* We use char because int might match the return type of a gcc2
12410 builtin and then its argument prototype would still apply. */
12411 char $ac_func();
12413 int main() {
12415 /* The GNU C library defines this for functions which it implements
12416 to always fail with ENOSYS. Some functions are actually named
12417 something starting with __ and the normal name is an alias. */
12418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12419 choke me
12420 #else
12421 $ac_func();
12422 #endif
12424 ; return 0; }
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12427 rm -rf conftest*
12428 eval "ac_cv_func_$ac_func=yes"
12429 else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 eval "ac_cv_func_$ac_func=no"
12435 rm -f conftest*
12438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12439 echo "$ac_t""yes" 1>&6
12440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12441 cat >> confdefs.h <<EOF
12442 #define $ac_tr_func 1
12445 else
12446 echo "$ac_t""no" 1>&6
12448 done
12450 else
12452 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12453 echo "configure:12454: checking for _atan2l declaration" >&5
12454 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12455 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12456 echo $ac_n "(cached) $ac_c" 1>&6
12457 else
12460 ac_ext=C
12461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12462 ac_cpp='$CXXCPP $CPPFLAGS'
12463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12465 cross_compiling=$ac_cv_prog_cxx_cross
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12470 #include <math.h>
12471 int main() {
12472 _atan2l(0, 0);
12473 ; return 0; }
12475 if { (eval echo configure:12476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12476 rm -rf conftest*
12477 glibcpp_cv_func__atan2l_use=yes
12478 else
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 rm -rf conftest*
12482 glibcpp_cv_func__atan2l_use=no
12484 rm -f conftest*
12485 ac_ext=c
12486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12490 cross_compiling=$ac_cv_prog_cc_cross
12496 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12498 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12499 for ac_func in _atan2l
12501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12502 echo "configure:12503: checking for $ac_func" >&5
12503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12504 echo $ac_n "(cached) $ac_c" 1>&6
12505 else
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 /* System header to define __stub macros and hopefully few prototypes,
12510 which can conflict with char $ac_func(); below. */
12511 #include <assert.h>
12512 /* Override any gcc2 internal prototype to avoid an error. */
12513 /* We use char because int might match the return type of a gcc2
12514 builtin and then its argument prototype would still apply. */
12515 char $ac_func();
12517 int main() {
12519 /* The GNU C library defines this for functions which it implements
12520 to always fail with ENOSYS. Some functions are actually named
12521 something starting with __ and the normal name is an alias. */
12522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12523 choke me
12524 #else
12525 $ac_func();
12526 #endif
12528 ; return 0; }
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12531 rm -rf conftest*
12532 eval "ac_cv_func_$ac_func=yes"
12533 else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 eval "ac_cv_func_$ac_func=no"
12539 rm -f conftest*
12542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12545 cat >> confdefs.h <<EOF
12546 #define $ac_tr_func 1
12549 else
12550 echo "$ac_t""no" 1>&6
12552 done
12559 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12560 echo "configure:12561: checking for expl declaration" >&5
12561 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12562 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12564 else
12567 ac_ext=C
12568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12569 ac_cpp='$CXXCPP $CPPFLAGS'
12570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12572 cross_compiling=$ac_cv_prog_cxx_cross
12574 cat > conftest.$ac_ext <<EOF
12575 #line 12576 "configure"
12576 #include "confdefs.h"
12577 #include <math.h>
12578 #ifdef HAVE_IEEEFP_H
12579 #include <ieeefp.h>
12580 #endif
12582 int main() {
12583 expl(0);
12584 ; return 0; }
12586 if { (eval echo configure:12587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12587 rm -rf conftest*
12588 glibcpp_cv_func_expl_use=yes
12589 else
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 rm -rf conftest*
12593 glibcpp_cv_func_expl_use=no
12595 rm -f conftest*
12596 ac_ext=c
12597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12598 ac_cpp='$CPP $CPPFLAGS'
12599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12601 cross_compiling=$ac_cv_prog_cc_cross
12607 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12609 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12610 for ac_func in expl
12612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12613 echo "configure:12614: checking for $ac_func" >&5
12614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12616 else
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 /* System header to define __stub macros and hopefully few prototypes,
12621 which can conflict with char $ac_func(); below. */
12622 #include <assert.h>
12623 /* Override any gcc2 internal prototype to avoid an error. */
12624 /* We use char because int might match the return type of a gcc2
12625 builtin and then its argument prototype would still apply. */
12626 char $ac_func();
12628 int main() {
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12634 choke me
12635 #else
12636 $ac_func();
12637 #endif
12639 ; return 0; }
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 rm -rf conftest*
12643 eval "ac_cv_func_$ac_func=yes"
12644 else
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -rf conftest*
12648 eval "ac_cv_func_$ac_func=no"
12650 rm -f conftest*
12653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12656 cat >> confdefs.h <<EOF
12657 #define $ac_tr_func 1
12660 else
12661 echo "$ac_t""no" 1>&6
12663 done
12665 else
12667 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12668 echo "configure:12669: checking for _expl declaration" >&5
12669 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12670 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672 else
12675 ac_ext=C
12676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12677 ac_cpp='$CXXCPP $CPPFLAGS'
12678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12680 cross_compiling=$ac_cv_prog_cxx_cross
12682 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure"
12684 #include "confdefs.h"
12685 #include <math.h>
12686 #ifdef HAVE_IEEEFP_H
12687 #include <ieeefp.h>
12688 #endif
12690 int main() {
12691 _expl(0);
12692 ; return 0; }
12694 if { (eval echo configure:12695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12695 rm -rf conftest*
12696 glibcpp_cv_func__expl_use=yes
12697 else
12698 echo "configure: failed program was:" >&5
12699 cat conftest.$ac_ext >&5
12700 rm -rf conftest*
12701 glibcpp_cv_func__expl_use=no
12703 rm -f conftest*
12704 ac_ext=c
12705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12706 ac_cpp='$CPP $CPPFLAGS'
12707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12709 cross_compiling=$ac_cv_prog_cc_cross
12715 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12717 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12718 for ac_func in _expl
12720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12721 echo "configure:12722: checking for $ac_func" >&5
12722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12723 echo $ac_n "(cached) $ac_c" 1>&6
12724 else
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 /* System header to define __stub macros and hopefully few prototypes,
12729 which can conflict with char $ac_func(); below. */
12730 #include <assert.h>
12731 /* Override any gcc2 internal prototype to avoid an error. */
12732 /* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12734 char $ac_func();
12736 int main() {
12738 /* The GNU C library defines this for functions which it implements
12739 to always fail with ENOSYS. Some functions are actually named
12740 something starting with __ and the normal name is an alias. */
12741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12742 choke me
12743 #else
12744 $ac_func();
12745 #endif
12747 ; return 0; }
12749 if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12750 rm -rf conftest*
12751 eval "ac_cv_func_$ac_func=yes"
12752 else
12753 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12755 rm -rf conftest*
12756 eval "ac_cv_func_$ac_func=no"
12758 rm -f conftest*
12761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12762 echo "$ac_t""yes" 1>&6
12763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12764 cat >> confdefs.h <<EOF
12765 #define $ac_tr_func 1
12768 else
12769 echo "$ac_t""no" 1>&6
12771 done
12778 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12779 echo "configure:12780: checking for fabsl declaration" >&5
12780 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12781 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783 else
12786 ac_ext=C
12787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12788 ac_cpp='$CXXCPP $CPPFLAGS'
12789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12791 cross_compiling=$ac_cv_prog_cxx_cross
12793 cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12796 #include <math.h>
12797 #ifdef HAVE_IEEEFP_H
12798 #include <ieeefp.h>
12799 #endif
12801 int main() {
12802 fabsl(0);
12803 ; return 0; }
12805 if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12806 rm -rf conftest*
12807 glibcpp_cv_func_fabsl_use=yes
12808 else
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 rm -rf conftest*
12812 glibcpp_cv_func_fabsl_use=no
12814 rm -f conftest*
12815 ac_ext=c
12816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12817 ac_cpp='$CPP $CPPFLAGS'
12818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12820 cross_compiling=$ac_cv_prog_cc_cross
12826 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12828 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12829 for ac_func in fabsl
12831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12832 echo "configure:12833: checking for $ac_func" >&5
12833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12834 echo $ac_n "(cached) $ac_c" 1>&6
12835 else
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 /* System header to define __stub macros and hopefully few prototypes,
12840 which can conflict with char $ac_func(); below. */
12841 #include <assert.h>
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char $ac_func();
12847 int main() {
12849 /* The GNU C library defines this for functions which it implements
12850 to always fail with ENOSYS. Some functions are actually named
12851 something starting with __ and the normal name is an alias. */
12852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12853 choke me
12854 #else
12855 $ac_func();
12856 #endif
12858 ; return 0; }
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12861 rm -rf conftest*
12862 eval "ac_cv_func_$ac_func=yes"
12863 else
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 eval "ac_cv_func_$ac_func=no"
12869 rm -f conftest*
12872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12873 echo "$ac_t""yes" 1>&6
12874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12875 cat >> confdefs.h <<EOF
12876 #define $ac_tr_func 1
12879 else
12880 echo "$ac_t""no" 1>&6
12882 done
12884 else
12886 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12887 echo "configure:12888: checking for _fabsl declaration" >&5
12888 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12889 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12891 else
12894 ac_ext=C
12895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12896 ac_cpp='$CXXCPP $CPPFLAGS'
12897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12899 cross_compiling=$ac_cv_prog_cxx_cross
12901 cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure"
12903 #include "confdefs.h"
12904 #include <math.h>
12905 #ifdef HAVE_IEEEFP_H
12906 #include <ieeefp.h>
12907 #endif
12909 int main() {
12910 _fabsl(0);
12911 ; return 0; }
12913 if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12914 rm -rf conftest*
12915 glibcpp_cv_func__fabsl_use=yes
12916 else
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920 glibcpp_cv_func__fabsl_use=no
12922 rm -f conftest*
12923 ac_ext=c
12924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12928 cross_compiling=$ac_cv_prog_cc_cross
12934 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12936 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12937 for ac_func in _fabsl
12939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12940 echo "configure:12941: checking for $ac_func" >&5
12941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12942 echo $ac_n "(cached) $ac_c" 1>&6
12943 else
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12947 /* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func(); below. */
12949 #include <assert.h>
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char $ac_func();
12955 int main() {
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12961 choke me
12962 #else
12963 $ac_func();
12964 #endif
12966 ; return 0; }
12968 if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12969 rm -rf conftest*
12970 eval "ac_cv_func_$ac_func=yes"
12971 else
12972 echo "configure: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12974 rm -rf conftest*
12975 eval "ac_cv_func_$ac_func=no"
12977 rm -f conftest*
12980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12981 echo "$ac_t""yes" 1>&6
12982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12983 cat >> confdefs.h <<EOF
12984 #define $ac_tr_func 1
12987 else
12988 echo "$ac_t""no" 1>&6
12990 done
12997 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12998 echo "configure:12999: checking for fmodl declaration" >&5
12999 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13000 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13001 echo $ac_n "(cached) $ac_c" 1>&6
13002 else
13005 ac_ext=C
13006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13007 ac_cpp='$CXXCPP $CPPFLAGS'
13008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13010 cross_compiling=$ac_cv_prog_cxx_cross
13012 cat > conftest.$ac_ext <<EOF
13013 #line 13014 "configure"
13014 #include "confdefs.h"
13015 #include <math.h>
13016 int main() {
13017 fmodl(0, 0);
13018 ; return 0; }
13020 if { (eval echo configure:13021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13021 rm -rf conftest*
13022 glibcpp_cv_func_fmodl_use=yes
13023 else
13024 echo "configure: failed program was:" >&5
13025 cat conftest.$ac_ext >&5
13026 rm -rf conftest*
13027 glibcpp_cv_func_fmodl_use=no
13029 rm -f conftest*
13030 ac_ext=c
13031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13032 ac_cpp='$CPP $CPPFLAGS'
13033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13035 cross_compiling=$ac_cv_prog_cc_cross
13041 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13043 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13044 for ac_func in fmodl
13046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13047 echo "configure:13048: checking for $ac_func" >&5
13048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13049 echo $ac_n "(cached) $ac_c" 1>&6
13050 else
13051 cat > conftest.$ac_ext <<EOF
13052 #line 13053 "configure"
13053 #include "confdefs.h"
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func(); below. */
13056 #include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13060 char $ac_func();
13062 int main() {
13064 /* The GNU C library defines this for functions which it implements
13065 to always fail with ENOSYS. Some functions are actually named
13066 something starting with __ and the normal name is an alias. */
13067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13068 choke me
13069 #else
13070 $ac_func();
13071 #endif
13073 ; return 0; }
13075 if { (eval echo configure:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13076 rm -rf conftest*
13077 eval "ac_cv_func_$ac_func=yes"
13078 else
13079 echo "configure: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 rm -rf conftest*
13082 eval "ac_cv_func_$ac_func=no"
13084 rm -f conftest*
13087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13088 echo "$ac_t""yes" 1>&6
13089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13090 cat >> confdefs.h <<EOF
13091 #define $ac_tr_func 1
13094 else
13095 echo "$ac_t""no" 1>&6
13097 done
13099 else
13101 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13102 echo "configure:13103: checking for _fmodl declaration" >&5
13103 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13104 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13106 else
13109 ac_ext=C
13110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13111 ac_cpp='$CXXCPP $CPPFLAGS'
13112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13114 cross_compiling=$ac_cv_prog_cxx_cross
13116 cat > conftest.$ac_ext <<EOF
13117 #line 13118 "configure"
13118 #include "confdefs.h"
13119 #include <math.h>
13120 int main() {
13121 _fmodl(0, 0);
13122 ; return 0; }
13124 if { (eval echo configure:13125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13125 rm -rf conftest*
13126 glibcpp_cv_func__fmodl_use=yes
13127 else
13128 echo "configure: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 rm -rf conftest*
13131 glibcpp_cv_func__fmodl_use=no
13133 rm -f conftest*
13134 ac_ext=c
13135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13136 ac_cpp='$CPP $CPPFLAGS'
13137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13139 cross_compiling=$ac_cv_prog_cc_cross
13145 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13147 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13148 for ac_func in _fmodl
13150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13151 echo "configure:13152: checking for $ac_func" >&5
13152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13153 echo $ac_n "(cached) $ac_c" 1>&6
13154 else
13155 cat > conftest.$ac_ext <<EOF
13156 #line 13157 "configure"
13157 #include "confdefs.h"
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func(); below. */
13160 #include <assert.h>
13161 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13164 char $ac_func();
13166 int main() {
13168 /* The GNU C library defines this for functions which it implements
13169 to always fail with ENOSYS. Some functions are actually named
13170 something starting with __ and the normal name is an alias. */
13171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13172 choke me
13173 #else
13174 $ac_func();
13175 #endif
13177 ; return 0; }
13179 if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13180 rm -rf conftest*
13181 eval "ac_cv_func_$ac_func=yes"
13182 else
13183 echo "configure: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13185 rm -rf conftest*
13186 eval "ac_cv_func_$ac_func=no"
13188 rm -f conftest*
13191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13192 echo "$ac_t""yes" 1>&6
13193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13194 cat >> confdefs.h <<EOF
13195 #define $ac_tr_func 1
13198 else
13199 echo "$ac_t""no" 1>&6
13201 done
13208 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13209 echo "configure:13210: checking for frexpl declaration" >&5
13210 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13211 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13212 echo $ac_n "(cached) $ac_c" 1>&6
13213 else
13216 ac_ext=C
13217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13218 ac_cpp='$CXXCPP $CPPFLAGS'
13219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13221 cross_compiling=$ac_cv_prog_cxx_cross
13223 cat > conftest.$ac_ext <<EOF
13224 #line 13225 "configure"
13225 #include "confdefs.h"
13226 #include <math.h>
13227 int main() {
13228 frexpl(0, 0);
13229 ; return 0; }
13231 if { (eval echo configure:13232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13232 rm -rf conftest*
13233 glibcpp_cv_func_frexpl_use=yes
13234 else
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13237 rm -rf conftest*
13238 glibcpp_cv_func_frexpl_use=no
13240 rm -f conftest*
13241 ac_ext=c
13242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13243 ac_cpp='$CPP $CPPFLAGS'
13244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13246 cross_compiling=$ac_cv_prog_cc_cross
13252 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13254 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13255 for ac_func in frexpl
13257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13258 echo "configure:13259: checking for $ac_func" >&5
13259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261 else
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func(); below. */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func();
13273 int main() {
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 choke me
13280 #else
13281 $ac_func();
13282 #endif
13284 ; return 0; }
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 rm -rf conftest*
13288 eval "ac_cv_func_$ac_func=yes"
13289 else
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 rm -rf conftest*
13293 eval "ac_cv_func_$ac_func=no"
13295 rm -f conftest*
13298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13301 cat >> confdefs.h <<EOF
13302 #define $ac_tr_func 1
13305 else
13306 echo "$ac_t""no" 1>&6
13308 done
13310 else
13312 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13313 echo "configure:13314: checking for _frexpl declaration" >&5
13314 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13315 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13320 ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331 int main() {
13332 _frexpl(0, 0);
13333 ; return 0; }
13335 if { (eval echo configure:13336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13336 rm -rf conftest*
13337 glibcpp_cv_func__frexpl_use=yes
13338 else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342 glibcpp_cv_func__frexpl_use=no
13344 rm -f conftest*
13345 ac_ext=c
13346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13347 ac_cpp='$CPP $CPPFLAGS'
13348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13350 cross_compiling=$ac_cv_prog_cc_cross
13356 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13358 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13359 for ac_func in _frexpl
13361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13362 echo "configure:13363: checking for $ac_func" >&5
13363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* System header to define __stub macros and hopefully few prototypes,
13370 which can conflict with char $ac_func(); below. */
13371 #include <assert.h>
13372 /* Override any gcc2 internal prototype to avoid an error. */
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13375 char $ac_func();
13377 int main() {
13379 /* The GNU C library defines this for functions which it implements
13380 to always fail with ENOSYS. Some functions are actually named
13381 something starting with __ and the normal name is an alias. */
13382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13383 choke me
13384 #else
13385 $ac_func();
13386 #endif
13388 ; return 0; }
13390 if { (eval echo configure:13391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13391 rm -rf conftest*
13392 eval "ac_cv_func_$ac_func=yes"
13393 else
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 rm -rf conftest*
13397 eval "ac_cv_func_$ac_func=no"
13399 rm -f conftest*
13402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13403 echo "$ac_t""yes" 1>&6
13404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13405 cat >> confdefs.h <<EOF
13406 #define $ac_tr_func 1
13409 else
13410 echo "$ac_t""no" 1>&6
13412 done
13419 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13420 echo "configure:13421: checking for hypotl declaration" >&5
13421 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13422 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13424 else
13427 ac_ext=C
13428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13429 ac_cpp='$CXXCPP $CPPFLAGS'
13430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13432 cross_compiling=$ac_cv_prog_cxx_cross
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 #include <math.h>
13438 int main() {
13439 hypotl(0, 0);
13440 ; return 0; }
13442 if { (eval echo configure:13443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13443 rm -rf conftest*
13444 glibcpp_cv_func_hypotl_use=yes
13445 else
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 glibcpp_cv_func_hypotl_use=no
13451 rm -f conftest*
13452 ac_ext=c
13453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13454 ac_cpp='$CPP $CPPFLAGS'
13455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13457 cross_compiling=$ac_cv_prog_cc_cross
13463 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13465 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13466 for ac_func in hypotl
13468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13469 echo "configure:13470: checking for $ac_func" >&5
13470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13472 else
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func(); below. */
13478 #include <assert.h>
13479 /* Override any gcc2 internal prototype to avoid an error. */
13480 /* We use char because int might match the return type of a gcc2
13481 builtin and then its argument prototype would still apply. */
13482 char $ac_func();
13484 int main() {
13486 /* The GNU C library defines this for functions which it implements
13487 to always fail with ENOSYS. Some functions are actually named
13488 something starting with __ and the normal name is an alias. */
13489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13490 choke me
13491 #else
13492 $ac_func();
13493 #endif
13495 ; return 0; }
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 rm -rf conftest*
13499 eval "ac_cv_func_$ac_func=yes"
13500 else
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=no"
13506 rm -f conftest*
13509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13510 echo "$ac_t""yes" 1>&6
13511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13512 cat >> confdefs.h <<EOF
13513 #define $ac_tr_func 1
13516 else
13517 echo "$ac_t""no" 1>&6
13519 done
13521 else
13523 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13524 echo "configure:13525: checking for _hypotl declaration" >&5
13525 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13526 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13527 echo $ac_n "(cached) $ac_c" 1>&6
13528 else
13531 ac_ext=C
13532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13533 ac_cpp='$CXXCPP $CPPFLAGS'
13534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13536 cross_compiling=$ac_cv_prog_cxx_cross
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 #include <math.h>
13542 int main() {
13543 _hypotl(0, 0);
13544 ; return 0; }
13546 if { (eval echo configure:13547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13547 rm -rf conftest*
13548 glibcpp_cv_func__hypotl_use=yes
13549 else
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13552 rm -rf conftest*
13553 glibcpp_cv_func__hypotl_use=no
13555 rm -f conftest*
13556 ac_ext=c
13557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13558 ac_cpp='$CPP $CPPFLAGS'
13559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13561 cross_compiling=$ac_cv_prog_cc_cross
13567 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13569 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13570 for ac_func in _hypotl
13572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13573 echo "configure:13574: checking for $ac_func" >&5
13574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
13576 else
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 /* System header to define __stub macros and hopefully few prototypes,
13581 which can conflict with char $ac_func(); below. */
13582 #include <assert.h>
13583 /* Override any gcc2 internal prototype to avoid an error. */
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13586 char $ac_func();
13588 int main() {
13590 /* The GNU C library defines this for functions which it implements
13591 to always fail with ENOSYS. Some functions are actually named
13592 something starting with __ and the normal name is an alias. */
13593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13594 choke me
13595 #else
13596 $ac_func();
13597 #endif
13599 ; return 0; }
13601 if { (eval echo configure:13602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13602 rm -rf conftest*
13603 eval "ac_cv_func_$ac_func=yes"
13604 else
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 rm -rf conftest*
13608 eval "ac_cv_func_$ac_func=no"
13610 rm -f conftest*
13613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13614 echo "$ac_t""yes" 1>&6
13615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13616 cat >> confdefs.h <<EOF
13617 #define $ac_tr_func 1
13620 else
13621 echo "$ac_t""no" 1>&6
13623 done
13630 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13631 echo "configure:13632: checking for ldexpl declaration" >&5
13632 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13633 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13634 echo $ac_n "(cached) $ac_c" 1>&6
13635 else
13638 ac_ext=C
13639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13640 ac_cpp='$CXXCPP $CPPFLAGS'
13641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13643 cross_compiling=$ac_cv_prog_cxx_cross
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13648 #include <math.h>
13649 int main() {
13650 ldexpl(0, 0);
13651 ; return 0; }
13653 if { (eval echo configure:13654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13654 rm -rf conftest*
13655 glibcpp_cv_func_ldexpl_use=yes
13656 else
13657 echo "configure: failed program was:" >&5
13658 cat conftest.$ac_ext >&5
13659 rm -rf conftest*
13660 glibcpp_cv_func_ldexpl_use=no
13662 rm -f conftest*
13663 ac_ext=c
13664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13665 ac_cpp='$CPP $CPPFLAGS'
13666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13668 cross_compiling=$ac_cv_prog_cc_cross
13674 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13676 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13677 for ac_func in ldexpl
13679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13680 echo "configure:13681: checking for $ac_func" >&5
13681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13683 else
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func(); below. */
13689 #include <assert.h>
13690 /* Override any gcc2 internal prototype to avoid an error. */
13691 /* We use char because int might match the return type of a gcc2
13692 builtin and then its argument prototype would still apply. */
13693 char $ac_func();
13695 int main() {
13697 /* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13701 choke me
13702 #else
13703 $ac_func();
13704 #endif
13706 ; return 0; }
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13709 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=yes"
13711 else
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=no"
13717 rm -f conftest*
13720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13723 cat >> confdefs.h <<EOF
13724 #define $ac_tr_func 1
13727 else
13728 echo "$ac_t""no" 1>&6
13730 done
13732 else
13734 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13735 echo "configure:13736: checking for _ldexpl declaration" >&5
13736 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13737 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13739 else
13742 ac_ext=C
13743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744 ac_cpp='$CXXCPP $CPPFLAGS'
13745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747 cross_compiling=$ac_cv_prog_cxx_cross
13749 cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure"
13751 #include "confdefs.h"
13752 #include <math.h>
13753 int main() {
13754 _ldexpl(0, 0);
13755 ; return 0; }
13757 if { (eval echo configure:13758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13758 rm -rf conftest*
13759 glibcpp_cv_func__ldexpl_use=yes
13760 else
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 glibcpp_cv_func__ldexpl_use=no
13766 rm -f conftest*
13767 ac_ext=c
13768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13769 ac_cpp='$CPP $CPPFLAGS'
13770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13772 cross_compiling=$ac_cv_prog_cc_cross
13778 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13780 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13781 for ac_func in _ldexpl
13783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13784 echo "configure:13785: checking for $ac_func" >&5
13785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13786 echo $ac_n "(cached) $ac_c" 1>&6
13787 else
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 /* System header to define __stub macros and hopefully few prototypes,
13792 which can conflict with char $ac_func(); below. */
13793 #include <assert.h>
13794 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char $ac_func();
13799 int main() {
13801 /* The GNU C library defines this for functions which it implements
13802 to always fail with ENOSYS. Some functions are actually named
13803 something starting with __ and the normal name is an alias. */
13804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13805 choke me
13806 #else
13807 $ac_func();
13808 #endif
13810 ; return 0; }
13812 if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813 rm -rf conftest*
13814 eval "ac_cv_func_$ac_func=yes"
13815 else
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13818 rm -rf conftest*
13819 eval "ac_cv_func_$ac_func=no"
13821 rm -f conftest*
13824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13827 cat >> confdefs.h <<EOF
13828 #define $ac_tr_func 1
13831 else
13832 echo "$ac_t""no" 1>&6
13834 done
13841 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13842 echo "configure:13843: checking for logl declaration" >&5
13843 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13844 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13845 echo $ac_n "(cached) $ac_c" 1>&6
13846 else
13849 ac_ext=C
13850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13851 ac_cpp='$CXXCPP $CPPFLAGS'
13852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13854 cross_compiling=$ac_cv_prog_cxx_cross
13856 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13859 #include <math.h>
13860 #ifdef HAVE_IEEEFP_H
13861 #include <ieeefp.h>
13862 #endif
13864 int main() {
13865 logl(0);
13866 ; return 0; }
13868 if { (eval echo configure:13869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13869 rm -rf conftest*
13870 glibcpp_cv_func_logl_use=yes
13871 else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 glibcpp_cv_func_logl_use=no
13877 rm -f conftest*
13878 ac_ext=c
13879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13880 ac_cpp='$CPP $CPPFLAGS'
13881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13883 cross_compiling=$ac_cv_prog_cc_cross
13889 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13891 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13892 for ac_func in logl
13894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13895 echo "configure:13896: checking for $ac_func" >&5
13896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13898 else
13899 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure"
13901 #include "confdefs.h"
13902 /* System header to define __stub macros and hopefully few prototypes,
13903 which can conflict with char $ac_func(); below. */
13904 #include <assert.h>
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 /* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13908 char $ac_func();
13910 int main() {
13912 /* The GNU C library defines this for functions which it implements
13913 to always fail with ENOSYS. Some functions are actually named
13914 something starting with __ and the normal name is an alias. */
13915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13916 choke me
13917 #else
13918 $ac_func();
13919 #endif
13921 ; return 0; }
13923 if { (eval echo configure:13924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13924 rm -rf conftest*
13925 eval "ac_cv_func_$ac_func=yes"
13926 else
13927 echo "configure: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13929 rm -rf conftest*
13930 eval "ac_cv_func_$ac_func=no"
13932 rm -f conftest*
13935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13936 echo "$ac_t""yes" 1>&6
13937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13938 cat >> confdefs.h <<EOF
13939 #define $ac_tr_func 1
13942 else
13943 echo "$ac_t""no" 1>&6
13945 done
13947 else
13949 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13950 echo "configure:13951: checking for _logl declaration" >&5
13951 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13952 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13954 else
13957 ac_ext=C
13958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13959 ac_cpp='$CXXCPP $CPPFLAGS'
13960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13962 cross_compiling=$ac_cv_prog_cxx_cross
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13967 #include <math.h>
13968 #ifdef HAVE_IEEEFP_H
13969 #include <ieeefp.h>
13970 #endif
13972 int main() {
13973 _logl(0);
13974 ; return 0; }
13976 if { (eval echo configure:13977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13977 rm -rf conftest*
13978 glibcpp_cv_func__logl_use=yes
13979 else
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
13983 glibcpp_cv_func__logl_use=no
13985 rm -f conftest*
13986 ac_ext=c
13987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13988 ac_cpp='$CPP $CPPFLAGS'
13989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13991 cross_compiling=$ac_cv_prog_cc_cross
13997 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13999 if test x$glibcpp_cv_func__logl_use = x"yes"; then
14000 for ac_func in _logl
14002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14003 echo "configure:14004: checking for $ac_func" >&5
14004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14005 echo $ac_n "(cached) $ac_c" 1>&6
14006 else
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* System header to define __stub macros and hopefully few prototypes,
14011 which can conflict with char $ac_func(); below. */
14012 #include <assert.h>
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016 char $ac_func();
14018 int main() {
14020 /* The GNU C library defines this for functions which it implements
14021 to always fail with ENOSYS. Some functions are actually named
14022 something starting with __ and the normal name is an alias. */
14023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14024 choke me
14025 #else
14026 $ac_func();
14027 #endif
14029 ; return 0; }
14031 if { (eval echo configure:14032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14032 rm -rf conftest*
14033 eval "ac_cv_func_$ac_func=yes"
14034 else
14035 echo "configure: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 rm -rf conftest*
14038 eval "ac_cv_func_$ac_func=no"
14040 rm -f conftest*
14043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14046 cat >> confdefs.h <<EOF
14047 #define $ac_tr_func 1
14050 else
14051 echo "$ac_t""no" 1>&6
14053 done
14060 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14061 echo "configure:14062: checking for log10l declaration" >&5
14062 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14063 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14064 echo $ac_n "(cached) $ac_c" 1>&6
14065 else
14068 ac_ext=C
14069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14073 cross_compiling=$ac_cv_prog_cxx_cross
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 #include <math.h>
14079 #ifdef HAVE_IEEEFP_H
14080 #include <ieeefp.h>
14081 #endif
14083 int main() {
14084 log10l(0);
14085 ; return 0; }
14087 if { (eval echo configure:14088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14088 rm -rf conftest*
14089 glibcpp_cv_func_log10l_use=yes
14090 else
14091 echo "configure: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 rm -rf conftest*
14094 glibcpp_cv_func_log10l_use=no
14096 rm -f conftest*
14097 ac_ext=c
14098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14099 ac_cpp='$CPP $CPPFLAGS'
14100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14102 cross_compiling=$ac_cv_prog_cc_cross
14108 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14110 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14111 for ac_func in log10l
14113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14114 echo "configure:14115: checking for $ac_func" >&5
14115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14117 else
14118 cat > conftest.$ac_ext <<EOF
14119 #line 14120 "configure"
14120 #include "confdefs.h"
14121 /* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func(); below. */
14123 #include <assert.h>
14124 /* Override any gcc2 internal prototype to avoid an error. */
14125 /* We use char because int might match the return type of a gcc2
14126 builtin and then its argument prototype would still apply. */
14127 char $ac_func();
14129 int main() {
14131 /* The GNU C library defines this for functions which it implements
14132 to always fail with ENOSYS. Some functions are actually named
14133 something starting with __ and the normal name is an alias. */
14134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14135 choke me
14136 #else
14137 $ac_func();
14138 #endif
14140 ; return 0; }
14142 if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14143 rm -rf conftest*
14144 eval "ac_cv_func_$ac_func=yes"
14145 else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149 eval "ac_cv_func_$ac_func=no"
14151 rm -f conftest*
14154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14157 cat >> confdefs.h <<EOF
14158 #define $ac_tr_func 1
14161 else
14162 echo "$ac_t""no" 1>&6
14164 done
14166 else
14168 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14169 echo "configure:14170: checking for _log10l declaration" >&5
14170 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14171 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14172 echo $ac_n "(cached) $ac_c" 1>&6
14173 else
14176 ac_ext=C
14177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14178 ac_cpp='$CXXCPP $CPPFLAGS'
14179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14181 cross_compiling=$ac_cv_prog_cxx_cross
14183 cat > conftest.$ac_ext <<EOF
14184 #line 14185 "configure"
14185 #include "confdefs.h"
14186 #include <math.h>
14187 #ifdef HAVE_IEEEFP_H
14188 #include <ieeefp.h>
14189 #endif
14191 int main() {
14192 _log10l(0);
14193 ; return 0; }
14195 if { (eval echo configure:14196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14196 rm -rf conftest*
14197 glibcpp_cv_func__log10l_use=yes
14198 else
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14201 rm -rf conftest*
14202 glibcpp_cv_func__log10l_use=no
14204 rm -f conftest*
14205 ac_ext=c
14206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14207 ac_cpp='$CPP $CPPFLAGS'
14208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14210 cross_compiling=$ac_cv_prog_cc_cross
14216 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14218 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14219 for ac_func in _log10l
14221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14222 echo "configure:14223: checking for $ac_func" >&5
14223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14224 echo $ac_n "(cached) $ac_c" 1>&6
14225 else
14226 cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char $ac_func(); below. */
14231 #include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char $ac_func();
14237 int main() {
14239 /* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14243 choke me
14244 #else
14245 $ac_func();
14246 #endif
14248 ; return 0; }
14250 if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14251 rm -rf conftest*
14252 eval "ac_cv_func_$ac_func=yes"
14253 else
14254 echo "configure: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14256 rm -rf conftest*
14257 eval "ac_cv_func_$ac_func=no"
14259 rm -f conftest*
14262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14265 cat >> confdefs.h <<EOF
14266 #define $ac_tr_func 1
14269 else
14270 echo "$ac_t""no" 1>&6
14272 done
14279 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14280 echo "configure:14281: checking for modfl declaration" >&5
14281 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14282 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14283 echo $ac_n "(cached) $ac_c" 1>&6
14284 else
14287 ac_ext=C
14288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14289 ac_cpp='$CXXCPP $CPPFLAGS'
14290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14292 cross_compiling=$ac_cv_prog_cxx_cross
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 #include <math.h>
14298 int main() {
14299 modfl(0, 0);
14300 ; return 0; }
14302 if { (eval echo configure:14303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14303 rm -rf conftest*
14304 glibcpp_cv_func_modfl_use=yes
14305 else
14306 echo "configure: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14308 rm -rf conftest*
14309 glibcpp_cv_func_modfl_use=no
14311 rm -f conftest*
14312 ac_ext=c
14313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14314 ac_cpp='$CPP $CPPFLAGS'
14315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14317 cross_compiling=$ac_cv_prog_cc_cross
14323 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14325 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14326 for ac_func in modfl
14328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14329 echo "configure:14330: checking for $ac_func" >&5
14330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14331 echo $ac_n "(cached) $ac_c" 1>&6
14332 else
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 /* System header to define __stub macros and hopefully few prototypes,
14337 which can conflict with char $ac_func(); below. */
14338 #include <assert.h>
14339 /* Override any gcc2 internal prototype to avoid an error. */
14340 /* We use char because int might match the return type of a gcc2
14341 builtin and then its argument prototype would still apply. */
14342 char $ac_func();
14344 int main() {
14346 /* The GNU C library defines this for functions which it implements
14347 to always fail with ENOSYS. Some functions are actually named
14348 something starting with __ and the normal name is an alias. */
14349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14350 choke me
14351 #else
14352 $ac_func();
14353 #endif
14355 ; return 0; }
14357 if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 rm -rf conftest*
14359 eval "ac_cv_func_$ac_func=yes"
14360 else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_func_$ac_func=no"
14366 rm -f conftest*
14369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14370 echo "$ac_t""yes" 1>&6
14371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14372 cat >> confdefs.h <<EOF
14373 #define $ac_tr_func 1
14376 else
14377 echo "$ac_t""no" 1>&6
14379 done
14381 else
14383 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14384 echo "configure:14385: checking for _modfl declaration" >&5
14385 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14386 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388 else
14391 ac_ext=C
14392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14393 ac_cpp='$CXXCPP $CPPFLAGS'
14394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14396 cross_compiling=$ac_cv_prog_cxx_cross
14398 cat > conftest.$ac_ext <<EOF
14399 #line 14400 "configure"
14400 #include "confdefs.h"
14401 #include <math.h>
14402 int main() {
14403 _modfl(0, 0);
14404 ; return 0; }
14406 if { (eval echo configure:14407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14407 rm -rf conftest*
14408 glibcpp_cv_func__modfl_use=yes
14409 else
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14412 rm -rf conftest*
14413 glibcpp_cv_func__modfl_use=no
14415 rm -f conftest*
14416 ac_ext=c
14417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14418 ac_cpp='$CPP $CPPFLAGS'
14419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14421 cross_compiling=$ac_cv_prog_cc_cross
14427 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14429 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14430 for ac_func in _modfl
14432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14433 echo "configure:14434: checking for $ac_func" >&5
14434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14435 echo $ac_n "(cached) $ac_c" 1>&6
14436 else
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 /* System header to define __stub macros and hopefully few prototypes,
14441 which can conflict with char $ac_func(); below. */
14442 #include <assert.h>
14443 /* Override any gcc2 internal prototype to avoid an error. */
14444 /* We use char because int might match the return type of a gcc2
14445 builtin and then its argument prototype would still apply. */
14446 char $ac_func();
14448 int main() {
14450 /* The GNU C library defines this for functions which it implements
14451 to always fail with ENOSYS. Some functions are actually named
14452 something starting with __ and the normal name is an alias. */
14453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14454 choke me
14455 #else
14456 $ac_func();
14457 #endif
14459 ; return 0; }
14461 if { (eval echo configure:14462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14462 rm -rf conftest*
14463 eval "ac_cv_func_$ac_func=yes"
14464 else
14465 echo "configure: failed program was:" >&5
14466 cat conftest.$ac_ext >&5
14467 rm -rf conftest*
14468 eval "ac_cv_func_$ac_func=no"
14470 rm -f conftest*
14473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14474 echo "$ac_t""yes" 1>&6
14475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14476 cat >> confdefs.h <<EOF
14477 #define $ac_tr_func 1
14480 else
14481 echo "$ac_t""no" 1>&6
14483 done
14490 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14491 echo "configure:14492: checking for powl declaration" >&5
14492 if test x${glibcpp_cv_func_powl_use+set} != xset; then
14493 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14494 echo $ac_n "(cached) $ac_c" 1>&6
14495 else
14498 ac_ext=C
14499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14500 ac_cpp='$CXXCPP $CPPFLAGS'
14501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14503 cross_compiling=$ac_cv_prog_cxx_cross
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14508 #include <math.h>
14509 int main() {
14510 powl(0, 0);
14511 ; return 0; }
14513 if { (eval echo configure:14514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14514 rm -rf conftest*
14515 glibcpp_cv_func_powl_use=yes
14516 else
14517 echo "configure: failed program was:" >&5
14518 cat conftest.$ac_ext >&5
14519 rm -rf conftest*
14520 glibcpp_cv_func_powl_use=no
14522 rm -f conftest*
14523 ac_ext=c
14524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14525 ac_cpp='$CPP $CPPFLAGS'
14526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14528 cross_compiling=$ac_cv_prog_cc_cross
14534 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14536 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14537 for ac_func in powl
14539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14540 echo "configure:14541: checking for $ac_func" >&5
14541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14543 else
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 /* System header to define __stub macros and hopefully few prototypes,
14548 which can conflict with char $ac_func(); below. */
14549 #include <assert.h>
14550 /* Override any gcc2 internal prototype to avoid an error. */
14551 /* We use char because int might match the return type of a gcc2
14552 builtin and then its argument prototype would still apply. */
14553 char $ac_func();
14555 int main() {
14557 /* The GNU C library defines this for functions which it implements
14558 to always fail with ENOSYS. Some functions are actually named
14559 something starting with __ and the normal name is an alias. */
14560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14561 choke me
14562 #else
14563 $ac_func();
14564 #endif
14566 ; return 0; }
14568 if { (eval echo configure:14569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14569 rm -rf conftest*
14570 eval "ac_cv_func_$ac_func=yes"
14571 else
14572 echo "configure: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 rm -rf conftest*
14575 eval "ac_cv_func_$ac_func=no"
14577 rm -f conftest*
14580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14581 echo "$ac_t""yes" 1>&6
14582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14583 cat >> confdefs.h <<EOF
14584 #define $ac_tr_func 1
14587 else
14588 echo "$ac_t""no" 1>&6
14590 done
14592 else
14594 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14595 echo "configure:14596: checking for _powl declaration" >&5
14596 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14597 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14599 else
14602 ac_ext=C
14603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14604 ac_cpp='$CXXCPP $CPPFLAGS'
14605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14607 cross_compiling=$ac_cv_prog_cxx_cross
14609 cat > conftest.$ac_ext <<EOF
14610 #line 14611 "configure"
14611 #include "confdefs.h"
14612 #include <math.h>
14613 int main() {
14614 _powl(0, 0);
14615 ; return 0; }
14617 if { (eval echo configure:14618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14618 rm -rf conftest*
14619 glibcpp_cv_func__powl_use=yes
14620 else
14621 echo "configure: failed program was:" >&5
14622 cat conftest.$ac_ext >&5
14623 rm -rf conftest*
14624 glibcpp_cv_func__powl_use=no
14626 rm -f conftest*
14627 ac_ext=c
14628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14629 ac_cpp='$CPP $CPPFLAGS'
14630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14632 cross_compiling=$ac_cv_prog_cc_cross
14638 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14640 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14641 for ac_func in _powl
14643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14644 echo "configure:14645: checking for $ac_func" >&5
14645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14646 echo $ac_n "(cached) $ac_c" 1>&6
14647 else
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* System header to define __stub macros and hopefully few prototypes,
14652 which can conflict with char $ac_func(); below. */
14653 #include <assert.h>
14654 /* Override any gcc2 internal prototype to avoid an error. */
14655 /* We use char because int might match the return type of a gcc2
14656 builtin and then its argument prototype would still apply. */
14657 char $ac_func();
14659 int main() {
14661 /* The GNU C library defines this for functions which it implements
14662 to always fail with ENOSYS. Some functions are actually named
14663 something starting with __ and the normal name is an alias. */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14665 choke me
14666 #else
14667 $ac_func();
14668 #endif
14670 ; return 0; }
14672 if { (eval echo configure:14673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14673 rm -rf conftest*
14674 eval "ac_cv_func_$ac_func=yes"
14675 else
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 rm -rf conftest*
14679 eval "ac_cv_func_$ac_func=no"
14681 rm -f conftest*
14684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14685 echo "$ac_t""yes" 1>&6
14686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14687 cat >> confdefs.h <<EOF
14688 #define $ac_tr_func 1
14691 else
14692 echo "$ac_t""no" 1>&6
14694 done
14701 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14702 echo "configure:14703: checking for sqrtl declaration" >&5
14703 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14704 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14705 echo $ac_n "(cached) $ac_c" 1>&6
14706 else
14709 ac_ext=C
14710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14711 ac_cpp='$CXXCPP $CPPFLAGS'
14712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14714 cross_compiling=$ac_cv_prog_cxx_cross
14716 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure"
14718 #include "confdefs.h"
14719 #include <math.h>
14720 #ifdef HAVE_IEEEFP_H
14721 #include <ieeefp.h>
14722 #endif
14724 int main() {
14725 sqrtl(0);
14726 ; return 0; }
14728 if { (eval echo configure:14729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14729 rm -rf conftest*
14730 glibcpp_cv_func_sqrtl_use=yes
14731 else
14732 echo "configure: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14734 rm -rf conftest*
14735 glibcpp_cv_func_sqrtl_use=no
14737 rm -f conftest*
14738 ac_ext=c
14739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14740 ac_cpp='$CPP $CPPFLAGS'
14741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14743 cross_compiling=$ac_cv_prog_cc_cross
14749 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14751 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14752 for ac_func in sqrtl
14754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14755 echo "configure:14756: checking for $ac_func" >&5
14756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14757 echo $ac_n "(cached) $ac_c" 1>&6
14758 else
14759 cat > conftest.$ac_ext <<EOF
14760 #line 14761 "configure"
14761 #include "confdefs.h"
14762 /* System header to define __stub macros and hopefully few prototypes,
14763 which can conflict with char $ac_func(); below. */
14764 #include <assert.h>
14765 /* Override any gcc2 internal prototype to avoid an error. */
14766 /* We use char because int might match the return type of a gcc2
14767 builtin and then its argument prototype would still apply. */
14768 char $ac_func();
14770 int main() {
14772 /* The GNU C library defines this for functions which it implements
14773 to always fail with ENOSYS. Some functions are actually named
14774 something starting with __ and the normal name is an alias. */
14775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14776 choke me
14777 #else
14778 $ac_func();
14779 #endif
14781 ; return 0; }
14783 if { (eval echo configure:14784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14784 rm -rf conftest*
14785 eval "ac_cv_func_$ac_func=yes"
14786 else
14787 echo "configure: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 rm -rf conftest*
14790 eval "ac_cv_func_$ac_func=no"
14792 rm -f conftest*
14795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14796 echo "$ac_t""yes" 1>&6
14797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14798 cat >> confdefs.h <<EOF
14799 #define $ac_tr_func 1
14802 else
14803 echo "$ac_t""no" 1>&6
14805 done
14807 else
14809 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14810 echo "configure:14811: checking for _sqrtl declaration" >&5
14811 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14812 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14813 echo $ac_n "(cached) $ac_c" 1>&6
14814 else
14817 ac_ext=C
14818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14819 ac_cpp='$CXXCPP $CPPFLAGS'
14820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14822 cross_compiling=$ac_cv_prog_cxx_cross
14824 cat > conftest.$ac_ext <<EOF
14825 #line 14826 "configure"
14826 #include "confdefs.h"
14827 #include <math.h>
14828 #ifdef HAVE_IEEEFP_H
14829 #include <ieeefp.h>
14830 #endif
14832 int main() {
14833 _sqrtl(0);
14834 ; return 0; }
14836 if { (eval echo configure:14837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14837 rm -rf conftest*
14838 glibcpp_cv_func__sqrtl_use=yes
14839 else
14840 echo "configure: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 rm -rf conftest*
14843 glibcpp_cv_func__sqrtl_use=no
14845 rm -f conftest*
14846 ac_ext=c
14847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14848 ac_cpp='$CPP $CPPFLAGS'
14849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14851 cross_compiling=$ac_cv_prog_cc_cross
14857 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14859 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14860 for ac_func in _sqrtl
14862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14863 echo "configure:14864: checking for $ac_func" >&5
14864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14866 else
14867 cat > conftest.$ac_ext <<EOF
14868 #line 14869 "configure"
14869 #include "confdefs.h"
14870 /* System header to define __stub macros and hopefully few prototypes,
14871 which can conflict with char $ac_func(); below. */
14872 #include <assert.h>
14873 /* Override any gcc2 internal prototype to avoid an error. */
14874 /* We use char because int might match the return type of a gcc2
14875 builtin and then its argument prototype would still apply. */
14876 char $ac_func();
14878 int main() {
14880 /* The GNU C library defines this for functions which it implements
14881 to always fail with ENOSYS. Some functions are actually named
14882 something starting with __ and the normal name is an alias. */
14883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14884 choke me
14885 #else
14886 $ac_func();
14887 #endif
14889 ; return 0; }
14891 if { (eval echo configure:14892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14892 rm -rf conftest*
14893 eval "ac_cv_func_$ac_func=yes"
14894 else
14895 echo "configure: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14897 rm -rf conftest*
14898 eval "ac_cv_func_$ac_func=no"
14900 rm -f conftest*
14903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14904 echo "$ac_t""yes" 1>&6
14905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14906 cat >> confdefs.h <<EOF
14907 #define $ac_tr_func 1
14910 else
14911 echo "$ac_t""no" 1>&6
14913 done
14920 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14921 echo "configure:14922: checking for sincosl declaration" >&5
14922 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14923 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14924 echo $ac_n "(cached) $ac_c" 1>&6
14925 else
14928 ac_ext=C
14929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14930 ac_cpp='$CXXCPP $CPPFLAGS'
14931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14933 cross_compiling=$ac_cv_prog_cxx_cross
14935 cat > conftest.$ac_ext <<EOF
14936 #line 14937 "configure"
14937 #include "confdefs.h"
14938 #include <math.h>
14939 int main() {
14940 sincosl(0, 0, 0);
14941 ; return 0; }
14943 if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14944 rm -rf conftest*
14945 glibcpp_cv_func_sincosl_use=yes
14946 else
14947 echo "configure: failed program was:" >&5
14948 cat conftest.$ac_ext >&5
14949 rm -rf conftest*
14950 glibcpp_cv_func_sincosl_use=no
14952 rm -f conftest*
14953 ac_ext=c
14954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14955 ac_cpp='$CPP $CPPFLAGS'
14956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14958 cross_compiling=$ac_cv_prog_cc_cross
14964 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14966 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14967 for ac_func in sincosl
14969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14970 echo "configure:14971: checking for $ac_func" >&5
14971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974 cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char $ac_func(); below. */
14979 #include <assert.h>
14980 /* Override any gcc2 internal prototype to avoid an error. */
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char $ac_func();
14985 int main() {
14987 /* The GNU C library defines this for functions which it implements
14988 to always fail with ENOSYS. Some functions are actually named
14989 something starting with __ and the normal name is an alias. */
14990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14991 choke me
14992 #else
14993 $ac_func();
14994 #endif
14996 ; return 0; }
14998 if { (eval echo configure:14999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 rm -rf conftest*
15000 eval "ac_cv_func_$ac_func=yes"
15001 else
15002 echo "configure: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15004 rm -rf conftest*
15005 eval "ac_cv_func_$ac_func=no"
15007 rm -f conftest*
15010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
15012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15013 cat >> confdefs.h <<EOF
15014 #define $ac_tr_func 1
15017 else
15018 echo "$ac_t""no" 1>&6
15020 done
15022 else
15024 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15025 echo "configure:15026: checking for _sincosl declaration" >&5
15026 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15027 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15032 ac_ext=C
15033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CXXCPP $CPPFLAGS'
15035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cxx_cross
15039 cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 #include <math.h>
15043 int main() {
15044 _sincosl(0, 0, 0);
15045 ; return 0; }
15047 if { (eval echo configure:15048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15048 rm -rf conftest*
15049 glibcpp_cv_func__sincosl_use=yes
15050 else
15051 echo "configure: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 rm -rf conftest*
15054 glibcpp_cv_func__sincosl_use=no
15056 rm -f conftest*
15057 ac_ext=c
15058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15059 ac_cpp='$CPP $CPPFLAGS'
15060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15062 cross_compiling=$ac_cv_prog_cc_cross
15068 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15070 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15071 for ac_func in _sincosl
15073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15074 echo "configure:15075: checking for $ac_func" >&5
15075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15077 else
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func(); below. */
15083 #include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error. */
15085 /* We use char because int might match the return type of a gcc2
15086 builtin and then its argument prototype would still apply. */
15087 char $ac_func();
15089 int main() {
15091 /* The GNU C library defines this for functions which it implements
15092 to always fail with ENOSYS. Some functions are actually named
15093 something starting with __ and the normal name is an alias. */
15094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15095 choke me
15096 #else
15097 $ac_func();
15098 #endif
15100 ; return 0; }
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15103 rm -rf conftest*
15104 eval "ac_cv_func_$ac_func=yes"
15105 else
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 rm -rf conftest*
15109 eval "ac_cv_func_$ac_func=no"
15111 rm -f conftest*
15114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
15116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15117 cat >> confdefs.h <<EOF
15118 #define $ac_tr_func 1
15121 else
15122 echo "$ac_t""no" 1>&6
15124 done
15131 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15132 echo "configure:15133: checking for finitel declaration" >&5
15133 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15134 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15136 else
15139 ac_ext=C
15140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15141 ac_cpp='$CXXCPP $CPPFLAGS'
15142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15144 cross_compiling=$ac_cv_prog_cxx_cross
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15149 #include <math.h>
15150 #ifdef HAVE_IEEEFP_H
15151 #include <ieeefp.h>
15152 #endif
15154 int main() {
15155 finitel(0);
15156 ; return 0; }
15158 if { (eval echo configure:15159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15159 rm -rf conftest*
15160 glibcpp_cv_func_finitel_use=yes
15161 else
15162 echo "configure: failed program was:" >&5
15163 cat conftest.$ac_ext >&5
15164 rm -rf conftest*
15165 glibcpp_cv_func_finitel_use=no
15167 rm -f conftest*
15168 ac_ext=c
15169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15170 ac_cpp='$CPP $CPPFLAGS'
15171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15173 cross_compiling=$ac_cv_prog_cc_cross
15179 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15181 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15182 for ac_func in finitel
15184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15185 echo "configure:15186: checking for $ac_func" >&5
15186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15188 else
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15192 /* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char $ac_func(); below. */
15194 #include <assert.h>
15195 /* Override any gcc2 internal prototype to avoid an error. */
15196 /* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15198 char $ac_func();
15200 int main() {
15202 /* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15206 choke me
15207 #else
15208 $ac_func();
15209 #endif
15211 ; return 0; }
15213 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15214 rm -rf conftest*
15215 eval "ac_cv_func_$ac_func=yes"
15216 else
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 rm -rf conftest*
15220 eval "ac_cv_func_$ac_func=no"
15222 rm -f conftest*
15225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15226 echo "$ac_t""yes" 1>&6
15227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15228 cat >> confdefs.h <<EOF
15229 #define $ac_tr_func 1
15232 else
15233 echo "$ac_t""no" 1>&6
15235 done
15237 else
15239 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15240 echo "configure:15241: checking for _finitel declaration" >&5
15241 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15242 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15243 echo $ac_n "(cached) $ac_c" 1>&6
15244 else
15247 ac_ext=C
15248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15249 ac_cpp='$CXXCPP $CPPFLAGS'
15250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15252 cross_compiling=$ac_cv_prog_cxx_cross
15254 cat > conftest.$ac_ext <<EOF
15255 #line 15256 "configure"
15256 #include "confdefs.h"
15257 #include <math.h>
15258 #ifdef HAVE_IEEEFP_H
15259 #include <ieeefp.h>
15260 #endif
15262 int main() {
15263 _finitel(0);
15264 ; return 0; }
15266 if { (eval echo configure:15267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15267 rm -rf conftest*
15268 glibcpp_cv_func__finitel_use=yes
15269 else
15270 echo "configure: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 rm -rf conftest*
15273 glibcpp_cv_func__finitel_use=no
15275 rm -f conftest*
15276 ac_ext=c
15277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15281 cross_compiling=$ac_cv_prog_cc_cross
15287 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15289 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15290 for ac_func in _finitel
15292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15293 echo "configure:15294: checking for $ac_func" >&5
15294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15295 echo $ac_n "(cached) $ac_c" 1>&6
15296 else
15297 cat > conftest.$ac_ext <<EOF
15298 #line 15299 "configure"
15299 #include "confdefs.h"
15300 /* System header to define __stub macros and hopefully few prototypes,
15301 which can conflict with char $ac_func(); below. */
15302 #include <assert.h>
15303 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char $ac_func();
15308 int main() {
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15314 choke me
15315 #else
15316 $ac_func();
15317 #endif
15319 ; return 0; }
15321 if { (eval echo configure:15322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=yes"
15324 else
15325 echo "configure: failed program was:" >&5
15326 cat conftest.$ac_ext >&5
15327 rm -rf conftest*
15328 eval "ac_cv_func_$ac_func=no"
15330 rm -f conftest*
15333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15334 echo "$ac_t""yes" 1>&6
15335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15336 cat >> confdefs.h <<EOF
15337 #define $ac_tr_func 1
15340 else
15341 echo "$ac_t""no" 1>&6
15343 done
15351 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15352 echo "configure:15353: checking for _float trig functions" >&5
15353 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15354 echo $ac_n "(cached) $ac_c" 1>&6
15355 else
15358 ac_ext=C
15359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15360 ac_cpp='$CXXCPP $CPPFLAGS'
15361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15363 cross_compiling=$ac_cv_prog_cxx_cross
15365 cat > conftest.$ac_ext <<EOF
15366 #line 15367 "configure"
15367 #include "confdefs.h"
15368 #include <math.h>
15369 int main() {
15370 `for x in _acosf _asinf _atanf \
15371 _cosf _sinf _tanf \
15372 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
15373 ; return 0; }
15375 if { (eval echo configure:15376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15376 rm -rf conftest*
15377 glibcpp_cv_func__float_trig_use=yes
15378 else
15379 echo "configure: failed program was:" >&5
15380 cat conftest.$ac_ext >&5
15381 rm -rf conftest*
15382 glibcpp_cv_func__float_trig_use=no
15384 rm -f conftest*
15385 ac_ext=c
15386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15387 ac_cpp='$CPP $CPPFLAGS'
15388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15390 cross_compiling=$ac_cv_prog_cc_cross
15394 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15395 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15396 for ac_func in _acosf _asinf _atanf \
15397 _cosf _sinf _tanf \
15398 _coshf _sinhf _tanhf
15400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15401 echo "configure:15402: checking for $ac_func" >&5
15402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15403 echo $ac_n "(cached) $ac_c" 1>&6
15404 else
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 /* System header to define __stub macros and hopefully few prototypes,
15409 which can conflict with char $ac_func(); below. */
15410 #include <assert.h>
15411 /* Override any gcc2 internal prototype to avoid an error. */
15412 /* We use char because int might match the return type of a gcc2
15413 builtin and then its argument prototype would still apply. */
15414 char $ac_func();
15416 int main() {
15418 /* The GNU C library defines this for functions which it implements
15419 to always fail with ENOSYS. Some functions are actually named
15420 something starting with __ and the normal name is an alias. */
15421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15422 choke me
15423 #else
15424 $ac_func();
15425 #endif
15427 ; return 0; }
15429 if { (eval echo configure:15430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15430 rm -rf conftest*
15431 eval "ac_cv_func_$ac_func=yes"
15432 else
15433 echo "configure: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 rm -rf conftest*
15436 eval "ac_cv_func_$ac_func=no"
15438 rm -f conftest*
15441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15442 echo "$ac_t""yes" 1>&6
15443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15444 cat >> confdefs.h <<EOF
15445 #define $ac_tr_func 1
15448 else
15449 echo "$ac_t""no" 1>&6
15451 done
15456 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15457 echo "configure:15458: checking for _float round functions" >&5
15458 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15459 echo $ac_n "(cached) $ac_c" 1>&6
15460 else
15463 ac_ext=C
15464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15465 ac_cpp='$CXXCPP $CPPFLAGS'
15466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15468 cross_compiling=$ac_cv_prog_cxx_cross
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473 #include <math.h>
15474 int main() {
15475 `for x in _ceilf _floorf; do echo "$x (0);"; done`
15476 ; return 0; }
15478 if { (eval echo configure:15479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15479 rm -rf conftest*
15480 glibcpp_cv_func__float_round_use=yes
15481 else
15482 echo "configure: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 rm -rf conftest*
15485 glibcpp_cv_func__float_round_use=no
15487 rm -f conftest*
15488 ac_ext=c
15489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15490 ac_cpp='$CPP $CPPFLAGS'
15491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15493 cross_compiling=$ac_cv_prog_cc_cross
15497 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15498 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15499 for ac_func in _ceilf _floorf
15501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15502 echo "configure:15503: checking for $ac_func" >&5
15503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15505 else
15506 cat > conftest.$ac_ext <<EOF
15507 #line 15508 "configure"
15508 #include "confdefs.h"
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char $ac_func(); below. */
15511 #include <assert.h>
15512 /* Override any gcc2 internal prototype to avoid an error. */
15513 /* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15515 char $ac_func();
15517 int main() {
15519 /* The GNU C library defines this for functions which it implements
15520 to always fail with ENOSYS. Some functions are actually named
15521 something starting with __ and the normal name is an alias. */
15522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 choke me
15524 #else
15525 $ac_func();
15526 #endif
15528 ; return 0; }
15530 if { (eval echo configure:15531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15531 rm -rf conftest*
15532 eval "ac_cv_func_$ac_func=yes"
15533 else
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15536 rm -rf conftest*
15537 eval "ac_cv_func_$ac_func=no"
15539 rm -f conftest*
15542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
15544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15545 cat >> confdefs.h <<EOF
15546 #define $ac_tr_func 1
15549 else
15550 echo "$ac_t""no" 1>&6
15552 done
15558 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15559 echo "configure:15560: checking for _long double trig functions" >&5
15560 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15562 else
15565 ac_ext=C
15566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15567 ac_cpp='$CXXCPP $CPPFLAGS'
15568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15570 cross_compiling=$ac_cv_prog_cxx_cross
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15575 #include <math.h>
15576 int main() {
15577 `for x in _acosl _asinl _atanl \
15578 _cosl _sinl _tanl \
15579 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15580 ; return 0; }
15582 if { (eval echo configure:15583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15583 rm -rf conftest*
15584 glibcpp_cv_func__long_double_trig_use=yes
15585 else
15586 echo "configure: failed program was:" >&5
15587 cat conftest.$ac_ext >&5
15588 rm -rf conftest*
15589 glibcpp_cv_func__long_double_trig_use=no
15591 rm -f conftest*
15592 ac_ext=c
15593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15594 ac_cpp='$CPP $CPPFLAGS'
15595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15597 cross_compiling=$ac_cv_prog_cc_cross
15601 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15602 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15603 for ac_func in _acosl _asinl _atanl \
15604 _cosl _sinl _tanl \
15605 _coshl _sinhl _tanhl
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char $ac_func();
15623 int main() {
15625 /* The GNU C library defines this for functions which it implements
15626 to always fail with ENOSYS. Some functions are actually named
15627 something starting with __ and the normal name is an alias. */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15634 ; return 0; }
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637 rm -rf conftest*
15638 eval "ac_cv_func_$ac_func=yes"
15639 else
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
15643 eval "ac_cv_func_$ac_func=no"
15645 rm -f conftest*
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649 echo "$ac_t""yes" 1>&6
15650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651 cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15655 else
15656 echo "$ac_t""no" 1>&6
15658 done
15663 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15664 echo "configure:15665: checking for _long double round functions" >&5
15665 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15667 else
15670 ac_ext=C
15671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15672 ac_cpp='$CXXCPP $CPPFLAGS'
15673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15675 cross_compiling=$ac_cv_prog_cxx_cross
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 #include <math.h>
15681 int main() {
15682 `for x in _ceill _floorl; do echo "$x (0);"; done`
15683 ; return 0; }
15685 if { (eval echo configure:15686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15686 rm -rf conftest*
15687 glibcpp_cv_func__long_double_round_use=yes
15688 else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692 glibcpp_cv_func__long_double_round_use=no
15694 rm -f conftest*
15695 ac_ext=c
15696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15697 ac_cpp='$CPP $CPPFLAGS'
15698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15700 cross_compiling=$ac_cv_prog_cc_cross
15704 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15705 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15706 for ac_func in _ceill _floorl
15708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15709 echo "configure:15710: checking for $ac_func" >&5
15710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15711 echo $ac_n "(cached) $ac_c" 1>&6
15712 else
15713 cat > conftest.$ac_ext <<EOF
15714 #line 15715 "configure"
15715 #include "confdefs.h"
15716 /* System header to define __stub macros and hopefully few prototypes,
15717 which can conflict with char $ac_func(); below. */
15718 #include <assert.h>
15719 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15722 char $ac_func();
15724 int main() {
15726 /* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15730 choke me
15731 #else
15732 $ac_func();
15733 #endif
15735 ; return 0; }
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15738 rm -rf conftest*
15739 eval "ac_cv_func_$ac_func=yes"
15740 else
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15743 rm -rf conftest*
15744 eval "ac_cv_func_$ac_func=no"
15746 rm -f conftest*
15749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15750 echo "$ac_t""yes" 1>&6
15751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15752 cat >> confdefs.h <<EOF
15753 #define $ac_tr_func 1
15756 else
15757 echo "$ac_t""no" 1>&6
15759 done
15764 LIBS="$ac_save_LIBS"
15765 CXXFLAGS="$ac_save_CXXFLAGS"
15768 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15769 echo "configure:15770: checking for main in -lm" >&5
15770 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773 else
15774 ac_save_LIBS="$LIBS"
15775 LIBS="-lm $LIBS"
15776 cat > conftest.$ac_ext <<EOF
15777 #line 15778 "configure"
15778 #include "confdefs.h"
15780 int main() {
15781 main()
15782 ; return 0; }
15784 if { (eval echo configure:15785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15785 rm -rf conftest*
15786 eval "ac_cv_lib_$ac_lib_var=yes"
15787 else
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
15791 eval "ac_cv_lib_$ac_lib_var=no"
15793 rm -f conftest*
15794 LIBS="$ac_save_LIBS"
15797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15798 echo "$ac_t""yes" 1>&6
15799 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15801 cat >> confdefs.h <<EOF
15802 #define $ac_tr_lib 1
15805 LIBS="-lm $LIBS"
15807 else
15808 echo "$ac_t""no" 1>&6
15811 for ac_func in nan copysignf
15813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15814 echo "configure:15815: checking for $ac_func" >&5
15815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15816 echo $ac_n "(cached) $ac_c" 1>&6
15817 else
15818 cat > conftest.$ac_ext <<EOF
15819 #line 15820 "configure"
15820 #include "confdefs.h"
15821 /* System header to define __stub macros and hopefully few prototypes,
15822 which can conflict with char $ac_func(); below. */
15823 #include <assert.h>
15824 /* Override any gcc2 internal prototype to avoid an error. */
15825 /* We use char because int might match the return type of a gcc2
15826 builtin and then its argument prototype would still apply. */
15827 char $ac_func();
15829 int main() {
15831 /* The GNU C library defines this for functions which it implements
15832 to always fail with ENOSYS. Some functions are actually named
15833 something starting with __ and the normal name is an alias. */
15834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15835 choke me
15836 #else
15837 $ac_func();
15838 #endif
15840 ; return 0; }
15842 if { (eval echo configure:15843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15843 rm -rf conftest*
15844 eval "ac_cv_func_$ac_func=yes"
15845 else
15846 echo "configure: failed program was:" >&5
15847 cat conftest.$ac_ext >&5
15848 rm -rf conftest*
15849 eval "ac_cv_func_$ac_func=no"
15851 rm -f conftest*
15854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15855 echo "$ac_t""yes" 1>&6
15856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15857 cat >> confdefs.h <<EOF
15858 #define $ac_tr_func 1
15861 else
15862 echo "$ac_t""no" 1>&6
15863 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15865 done
15869 USE_COMPLEX_LONG_DOUBLE=no
15870 if test x$ac_cv_func_copysignl = x"yes"; then
15871 USE_COMPLEX_LONG_DOUBLE=yes
15872 for ac_func in signbitl
15874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15875 echo "configure:15876: checking for $ac_func" >&5
15876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15877 echo $ac_n "(cached) $ac_c" 1>&6
15878 else
15879 cat > conftest.$ac_ext <<EOF
15880 #line 15881 "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883 which can conflict with char $ac_func(); below. */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error. */
15886 /* We use char because int might match the return type of a gcc2
15887 builtin and then its argument prototype would still apply. */
15888 char $ac_func();
15890 int main() {
15892 /* The GNU C library defines this for functions which it implements
15893 to always fail with ENOSYS. Some functions are actually named
15894 something starting with __ and the normal name is an alias. */
15895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15896 choke me
15897 #else
15898 $ac_func();
15899 #endif
15901 ; return 0; }
15903 if { (eval echo configure:15904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15904 rm -rf conftest*
15905 eval "ac_cv_func_$ac_func=yes"
15906 else
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15909 rm -rf conftest*
15910 eval "ac_cv_func_$ac_func=no"
15912 rm -f conftest*
15915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15916 echo "$ac_t""yes" 1>&6
15917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15918 cat >> confdefs.h <<EOF
15919 #define $ac_tr_func 1
15922 else
15923 echo "$ac_t""no" 1>&6
15924 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15926 done
15935 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15936 echo "configure:15937: checking for mbstate_t" >&5
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 #include <wchar.h>
15941 int main() {
15942 mbstate_t teststate;
15943 ; return 0; }
15945 if { (eval echo configure:15946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15946 rm -rf conftest*
15947 have_mbstate_t=yes
15948 else
15949 echo "configure: failed program was:" >&5
15950 cat conftest.$ac_ext >&5
15951 rm -rf conftest*
15952 have_mbstate_t=no
15954 rm -f conftest*
15955 echo "$ac_t""$have_mbstate_t" 1>&6
15956 if test x"$have_mbstate_t" = xyes; then
15957 cat >> confdefs.h <<\EOF
15958 #define HAVE_MBSTATE_T 1
15963 for ac_hdr in wchar.h
15965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15967 echo "configure:15968: checking for $ac_hdr" >&5
15968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15969 echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971 cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974 #include <$ac_hdr>
15976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15977 { (eval echo configure:15978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15979 if test -z "$ac_err"; then
15980 rm -rf conftest*
15981 eval "ac_cv_header_$ac_safe=yes"
15982 else
15983 echo "$ac_err" >&5
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15986 rm -rf conftest*
15987 eval "ac_cv_header_$ac_safe=no"
15989 rm -f conftest*
15991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15992 echo "$ac_t""yes" 1>&6
15993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15994 cat >> confdefs.h <<EOF
15995 #define $ac_tr_hdr 1
15997 ac_has_wchar_h=yes
15998 else
15999 echo "$ac_t""no" 1>&6
16000 ac_has_wchar_h=no
16002 done
16004 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16005 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16006 echo "configure:16007: checking for wctype.h" >&5
16007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16008 echo $ac_n "(cached) $ac_c" 1>&6
16009 else
16010 cat > conftest.$ac_ext <<EOF
16011 #line 16012 "configure"
16012 #include "confdefs.h"
16013 #include <wctype.h>
16015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16016 { (eval echo configure:16017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16018 if test -z "$ac_err"; then
16019 rm -rf conftest*
16020 eval "ac_cv_header_$ac_safe=yes"
16021 else
16022 echo "$ac_err" >&5
16023 echo "configure: failed program was:" >&5
16024 cat conftest.$ac_ext >&5
16025 rm -rf conftest*
16026 eval "ac_cv_header_$ac_safe=no"
16028 rm -f conftest*
16030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16031 echo "$ac_t""yes" 1>&6
16032 ac_has_wctype_h=yes
16033 else
16034 echo "$ac_t""no" 1>&6
16035 ac_has_wctype_h=no
16039 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
16040 && test x"$enable_c_mbchar" != xno; then
16042 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16043 echo "configure:16044: checking for WCHAR_MIN and WCHAR_MAX" >&5
16044 cat > conftest.$ac_ext <<EOF
16045 #line 16046 "configure"
16046 #include "confdefs.h"
16047 #include <wchar.h>
16048 int main() {
16049 int i = WCHAR_MIN; int j = WCHAR_MAX;
16050 ; return 0; }
16052 if { (eval echo configure:16053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16053 rm -rf conftest*
16054 has_wchar_minmax=yes
16055 else
16056 echo "configure: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 rm -rf conftest*
16059 has_wchar_minmax=no
16061 rm -f conftest*
16062 echo "$ac_t""$has_wchar_minmax" 1>&6
16064 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16065 echo "configure:16066: checking for WEOF" >&5
16066 cat > conftest.$ac_ext <<EOF
16067 #line 16068 "configure"
16068 #include "confdefs.h"
16070 #include <wchar.h>
16071 #include <stddef.h>
16072 int main() {
16073 wint_t i = WEOF;
16074 ; return 0; }
16076 if { (eval echo configure:16077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16077 rm -rf conftest*
16078 has_weof=yes
16079 else
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 rm -rf conftest*
16083 has_weof=no
16085 rm -f conftest*
16086 echo "$ac_t""$has_weof" 1>&6
16088 ac_wfuncs=yes
16089 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16092 echo "configure:16093: checking for $ac_func" >&5
16093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095 else
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func(); below. */
16101 #include <assert.h>
16102 /* Override any gcc2 internal prototype to avoid an error. */
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105 char $ac_func();
16107 int main() {
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16113 choke me
16114 #else
16115 $ac_func();
16116 #endif
16118 ; return 0; }
16120 if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=yes"
16123 else
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16126 rm -rf conftest*
16127 eval "ac_cv_func_$ac_func=no"
16129 rm -f conftest*
16132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16133 echo "$ac_t""yes" 1>&6
16134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16135 cat >> confdefs.h <<EOF
16136 #define $ac_tr_func 1
16139 else
16140 echo "$ac_t""no" 1>&6
16142 ac_wfuncs=no
16144 done
16147 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16148 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16149 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16150 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16151 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16152 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16155 echo "configure:16156: checking for $ac_func" >&5
16156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16157 echo $ac_n "(cached) $ac_c" 1>&6
16158 else
16159 cat > conftest.$ac_ext <<EOF
16160 #line 16161 "configure"
16161 #include "confdefs.h"
16162 /* System header to define __stub macros and hopefully few prototypes,
16163 which can conflict with char $ac_func(); below. */
16164 #include <assert.h>
16165 /* Override any gcc2 internal prototype to avoid an error. */
16166 /* We use char because int might match the return type of a gcc2
16167 builtin and then its argument prototype would still apply. */
16168 char $ac_func();
16170 int main() {
16172 /* The GNU C library defines this for functions which it implements
16173 to always fail with ENOSYS. Some functions are actually named
16174 something starting with __ and the normal name is an alias. */
16175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16176 choke me
16177 #else
16178 $ac_func();
16179 #endif
16181 ; return 0; }
16183 if { (eval echo configure:16184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16184 rm -rf conftest*
16185 eval "ac_cv_func_$ac_func=yes"
16186 else
16187 echo "configure: failed program was:" >&5
16188 cat conftest.$ac_ext >&5
16189 rm -rf conftest*
16190 eval "ac_cv_func_$ac_func=no"
16192 rm -f conftest*
16195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16196 echo "$ac_t""yes" 1>&6
16197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16198 cat >> confdefs.h <<EOF
16199 #define $ac_tr_func 1
16202 else
16203 echo "$ac_t""no" 1>&6
16205 ac_wfuncs=no
16207 done
16210 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16211 echo "configure:16212: checking for ISO C99 wchar_t support" >&5
16212 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
16213 && test x"$ac_wfuncs" = xyes; then
16214 ac_isoC99_wchar_t=yes
16215 else
16216 ac_isoC99_wchar_t=no
16218 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16220 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16221 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16222 echo "configure:16223: checking for iconv.h" >&5
16223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16224 echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226 cat > conftest.$ac_ext <<EOF
16227 #line 16228 "configure"
16228 #include "confdefs.h"
16229 #include <iconv.h>
16231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16232 { (eval echo configure:16233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16234 if test -z "$ac_err"; then
16235 rm -rf conftest*
16236 eval "ac_cv_header_$ac_safe=yes"
16237 else
16238 echo "$ac_err" >&5
16239 echo "configure: failed program was:" >&5
16240 cat conftest.$ac_ext >&5
16241 rm -rf conftest*
16242 eval "ac_cv_header_$ac_safe=no"
16244 rm -f conftest*
16246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16247 echo "$ac_t""yes" 1>&6
16248 ac_has_iconv_h=yes
16249 else
16250 echo "$ac_t""no" 1>&6
16251 ac_has_iconv_h=no
16254 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16255 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16256 echo "configure:16257: checking for langinfo.h" >&5
16257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16258 echo $ac_n "(cached) $ac_c" 1>&6
16259 else
16260 cat > conftest.$ac_ext <<EOF
16261 #line 16262 "configure"
16262 #include "confdefs.h"
16263 #include <langinfo.h>
16265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16266 { (eval echo configure:16267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16268 if test -z "$ac_err"; then
16269 rm -rf conftest*
16270 eval "ac_cv_header_$ac_safe=yes"
16271 else
16272 echo "$ac_err" >&5
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16275 rm -rf conftest*
16276 eval "ac_cv_header_$ac_safe=no"
16278 rm -f conftest*
16280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16281 echo "$ac_t""yes" 1>&6
16282 ac_has_langinfo_h=yes
16283 else
16284 echo "$ac_t""no" 1>&6
16285 ac_has_langinfo_h=no
16289 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16290 echo "configure:16291: checking for iconv in -liconv" >&5
16291 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16293 echo $ac_n "(cached) $ac_c" 1>&6
16294 else
16295 ac_save_LIBS="$LIBS"
16296 LIBS="-liconv $LIBS"
16297 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300 /* Override any gcc2 internal prototype to avoid an error. */
16301 /* We use char because int might match the return type of a gcc2
16302 builtin and then its argument prototype would still apply. */
16303 char iconv();
16305 int main() {
16306 iconv()
16307 ; return 0; }
16309 if { (eval echo configure:16310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16310 rm -rf conftest*
16311 eval "ac_cv_lib_$ac_lib_var=yes"
16312 else
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16315 rm -rf conftest*
16316 eval "ac_cv_lib_$ac_lib_var=no"
16318 rm -f conftest*
16319 LIBS="$ac_save_LIBS"
16322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16323 echo "$ac_t""yes" 1>&6
16324 libiconv="-liconv"
16325 else
16326 echo "$ac_t""no" 1>&6
16329 ac_save_LIBS="$LIBS"
16330 LIBS="$LIBS $libiconv"
16332 for ac_func in iconv_open iconv_close iconv nl_langinfo
16334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16335 echo "configure:16336: checking for $ac_func" >&5
16336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16337 echo $ac_n "(cached) $ac_c" 1>&6
16338 else
16339 cat > conftest.$ac_ext <<EOF
16340 #line 16341 "configure"
16341 #include "confdefs.h"
16342 /* System header to define __stub macros and hopefully few prototypes,
16343 which can conflict with char $ac_func(); below. */
16344 #include <assert.h>
16345 /* Override any gcc2 internal prototype to avoid an error. */
16346 /* We use char because int might match the return type of a gcc2
16347 builtin and then its argument prototype would still apply. */
16348 char $ac_func();
16350 int main() {
16352 /* The GNU C library defines this for functions which it implements
16353 to always fail with ENOSYS. Some functions are actually named
16354 something starting with __ and the normal name is an alias. */
16355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16356 choke me
16357 #else
16358 $ac_func();
16359 #endif
16361 ; return 0; }
16363 if { (eval echo configure:16364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16364 rm -rf conftest*
16365 eval "ac_cv_func_$ac_func=yes"
16366 else
16367 echo "configure: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16369 rm -rf conftest*
16370 eval "ac_cv_func_$ac_func=no"
16372 rm -f conftest*
16375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16376 echo "$ac_t""yes" 1>&6
16377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16378 cat >> confdefs.h <<EOF
16379 #define $ac_tr_func 1
16382 ac_XPG2funcs=yes
16383 else
16384 echo "$ac_t""no" 1>&6
16385 ac_XPG2funcs=no
16387 done
16390 LIBS="$ac_save_LIBS"
16392 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16393 echo "configure:16394: checking for XPG2 wchar_t support" >&5
16394 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
16395 && test x"$ac_XPG2funcs" = xyes; then
16396 ac_XPG2_wchar_t=yes
16397 else
16398 ac_XPG2_wchar_t=no
16400 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16402 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16403 echo "configure:16404: checking for enabled wchar_t specializations" >&5
16404 if test x"$ac_isoC99_wchar_t" = xyes \
16405 && test x"$ac_XPG2_wchar_t" = xyes; then
16406 cat >> confdefs.h <<\EOF
16407 #define _GLIBCPP_USE_WCHAR_T 1
16410 echo "$ac_t"""yes"" 1>&6
16411 else
16412 echo "$ac_t"""no"" 1>&6
16414 else
16415 echo "configure: warning: wchar_t support disabled." 1>&2
16419 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16420 ac_save_CXXFLAGS="$CXXFLAGS"
16421 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16424 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16425 echo "configure:16426: checking for strtold declaration" >&5
16426 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16427 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16428 echo $ac_n "(cached) $ac_c" 1>&6
16429 else
16432 ac_ext=C
16433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16434 ac_cpp='$CXXCPP $CPPFLAGS'
16435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16437 cross_compiling=$ac_cv_prog_cxx_cross
16439 cat > conftest.$ac_ext <<EOF
16440 #line 16441 "configure"
16441 #include "confdefs.h"
16442 #include <stdlib.h>
16443 int main() {
16444 strtold(0, 0);
16445 ; return 0; }
16447 if { (eval echo configure:16448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16448 rm -rf conftest*
16449 glibcpp_cv_func_strtold_use=yes
16450 else
16451 echo "configure: failed program was:" >&5
16452 cat conftest.$ac_ext >&5
16453 rm -rf conftest*
16454 glibcpp_cv_func_strtold_use=no
16456 rm -f conftest*
16457 ac_ext=c
16458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16459 ac_cpp='$CPP $CPPFLAGS'
16460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16462 cross_compiling=$ac_cv_prog_cc_cross
16468 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16469 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16470 for ac_func in strtold
16472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16473 echo "configure:16474: checking for $ac_func" >&5
16474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16475 echo $ac_n "(cached) $ac_c" 1>&6
16476 else
16477 cat > conftest.$ac_ext <<EOF
16478 #line 16479 "configure"
16479 #include "confdefs.h"
16480 /* System header to define __stub macros and hopefully few prototypes,
16481 which can conflict with char $ac_func(); below. */
16482 #include <assert.h>
16483 /* Override any gcc2 internal prototype to avoid an error. */
16484 /* We use char because int might match the return type of a gcc2
16485 builtin and then its argument prototype would still apply. */
16486 char $ac_func();
16488 int main() {
16490 /* The GNU C library defines this for functions which it implements
16491 to always fail with ENOSYS. Some functions are actually named
16492 something starting with __ and the normal name is an alias. */
16493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16494 choke me
16495 #else
16496 $ac_func();
16497 #endif
16499 ; return 0; }
16501 if { (eval echo configure:16502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16502 rm -rf conftest*
16503 eval "ac_cv_func_$ac_func=yes"
16504 else
16505 echo "configure: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16507 rm -rf conftest*
16508 eval "ac_cv_func_$ac_func=no"
16510 rm -f conftest*
16513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16514 echo "$ac_t""yes" 1>&6
16515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16516 cat >> confdefs.h <<EOF
16517 #define $ac_tr_func 1
16520 else
16521 echo "$ac_t""no" 1>&6
16523 done
16527 for ac_func in drand48
16529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16530 echo "configure:16531: checking for $ac_func" >&5
16531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16532 echo $ac_n "(cached) $ac_c" 1>&6
16533 else
16534 cat > conftest.$ac_ext <<EOF
16535 #line 16536 "configure"
16536 #include "confdefs.h"
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char $ac_func(); below. */
16539 #include <assert.h>
16540 /* Override any gcc2 internal prototype to avoid an error. */
16541 /* We use char because int might match the return type of a gcc2
16542 builtin and then its argument prototype would still apply. */
16543 char $ac_func();
16545 int main() {
16547 /* The GNU C library defines this for functions which it implements
16548 to always fail with ENOSYS. Some functions are actually named
16549 something starting with __ and the normal name is an alias. */
16550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16551 choke me
16552 #else
16553 $ac_func();
16554 #endif
16556 ; return 0; }
16558 if { (eval echo configure:16559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16559 rm -rf conftest*
16560 eval "ac_cv_func_$ac_func=yes"
16561 else
16562 echo "configure: failed program was:" >&5
16563 cat conftest.$ac_ext >&5
16564 rm -rf conftest*
16565 eval "ac_cv_func_$ac_func=no"
16567 rm -f conftest*
16570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16571 echo "$ac_t""yes" 1>&6
16572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16573 cat >> confdefs.h <<EOF
16574 #define $ac_tr_func 1
16577 else
16578 echo "$ac_t""no" 1>&6
16580 done
16583 CXXFLAGS="$ac_save_CXXFLAGS"
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16590 #include <setjmp.h>
16592 int main() {
16593 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16594 ; return 0; }
16596 if { (eval echo configure:16597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16597 rm -rf conftest*
16598 cat >> confdefs.h <<\EOF
16599 #define HAVE_SIGSETJMP 1
16602 else
16603 echo "configure: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16606 rm -f conftest*
16608 for ac_hdr in unistd.h
16610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16612 echo "configure:16613: checking for $ac_hdr" >&5
16613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16614 echo $ac_n "(cached) $ac_c" 1>&6
16615 else
16616 cat > conftest.$ac_ext <<EOF
16617 #line 16618 "configure"
16618 #include "confdefs.h"
16619 #include <$ac_hdr>
16621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16622 { (eval echo configure:16623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16624 if test -z "$ac_err"; then
16625 rm -rf conftest*
16626 eval "ac_cv_header_$ac_safe=yes"
16627 else
16628 echo "$ac_err" >&5
16629 echo "configure: failed program was:" >&5
16630 cat conftest.$ac_ext >&5
16631 rm -rf conftest*
16632 eval "ac_cv_header_$ac_safe=no"
16634 rm -f conftest*
16636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16637 echo "$ac_t""yes" 1>&6
16638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16639 cat >> confdefs.h <<EOF
16640 #define $ac_tr_hdr 1
16643 else
16644 echo "$ac_t""no" 1>&6
16646 done
16648 for ac_func in getpagesize
16650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16651 echo "configure:16652: checking for $ac_func" >&5
16652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16653 echo $ac_n "(cached) $ac_c" 1>&6
16654 else
16655 cat > conftest.$ac_ext <<EOF
16656 #line 16657 "configure"
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. */
16664 char $ac_func();
16666 int main() {
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)
16672 choke me
16673 #else
16674 $ac_func();
16675 #endif
16677 ; return 0; }
16679 if { (eval echo configure:16680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16680 rm -rf conftest*
16681 eval "ac_cv_func_$ac_func=yes"
16682 else
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"
16688 rm -f conftest*
16691 if 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
16698 else
16699 echo "$ac_t""no" 1>&6
16701 done
16703 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16704 echo "configure:16705: checking for working mmap" >&5
16705 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16706 echo $ac_n "(cached) $ac_c" 1>&6
16707 else
16708 if test "$cross_compiling" = yes; then
16709 ac_cv_func_mmap_fixed_mapped=no
16710 else
16711 cat > conftest.$ac_ext <<EOF
16712 #line 16713 "configure"
16713 #include "confdefs.h"
16715 /* Thanks to Mike Haertel and Jim Avera for this test.
16716 Here is a matrix of mmap possibilities:
16717 mmap private not fixed
16718 mmap private fixed at somewhere currently unmapped
16719 mmap private fixed at somewhere already mapped
16720 mmap shared not fixed
16721 mmap shared fixed at somewhere currently unmapped
16722 mmap shared fixed at somewhere already mapped
16723 For private mappings, we should verify that changes cannot be read()
16724 back from the file, nor mmap's back from the file at a different
16725 address. (There have been systems where private was not correctly
16726 implemented like the infamous i386 svr4.0, and systems where the
16727 VM page cache was not coherent with the filesystem buffer cache
16728 like early versions of FreeBSD and possibly contemporary NetBSD.)
16729 For shared mappings, we should conversely verify that changes get
16730 propogated back to all the places they're supposed to be.
16732 Grep wants private fixed already mapped.
16733 The main things grep needs to know about mmap are:
16734 * does it exist and is it safe to write into the mmap'd area
16735 * how to use it (BSD variants) */
16736 #include <sys/types.h>
16737 #include <fcntl.h>
16738 #include <sys/mman.h>
16740 /* This mess was copied from the GNU getpagesize.h. */
16741 #ifndef HAVE_GETPAGESIZE
16742 # ifdef HAVE_UNISTD_H
16743 # include <unistd.h>
16744 # endif
16746 /* Assume that all systems that can run configure have sys/param.h. */
16747 # ifndef HAVE_SYS_PARAM_H
16748 # define HAVE_SYS_PARAM_H 1
16749 # endif
16751 # ifdef _SC_PAGESIZE
16752 # define getpagesize() sysconf(_SC_PAGESIZE)
16753 # else /* no _SC_PAGESIZE */
16754 # ifdef HAVE_SYS_PARAM_H
16755 # include <sys/param.h>
16756 # ifdef EXEC_PAGESIZE
16757 # define getpagesize() EXEC_PAGESIZE
16758 # else /* no EXEC_PAGESIZE */
16759 # ifdef NBPG
16760 # define getpagesize() NBPG * CLSIZE
16761 # ifndef CLSIZE
16762 # define CLSIZE 1
16763 # endif /* no CLSIZE */
16764 # else /* no NBPG */
16765 # ifdef NBPC
16766 # define getpagesize() NBPC
16767 # else /* no NBPC */
16768 # ifdef PAGESIZE
16769 # define getpagesize() PAGESIZE
16770 # endif /* PAGESIZE */
16771 # endif /* no NBPC */
16772 # endif /* no NBPG */
16773 # endif /* no EXEC_PAGESIZE */
16774 # else /* no HAVE_SYS_PARAM_H */
16775 # define getpagesize() 8192 /* punt totally */
16776 # endif /* no HAVE_SYS_PARAM_H */
16777 # endif /* no _SC_PAGESIZE */
16779 #endif /* no HAVE_GETPAGESIZE */
16781 #ifdef __cplusplus
16782 extern "C" { void *malloc(unsigned); }
16783 #else
16784 char *malloc();
16785 #endif
16788 main()
16790 char *data, *data2, *data3;
16791 int i, pagesize;
16792 int fd;
16794 pagesize = getpagesize();
16797 * First, make a file with some known garbage in it.
16799 data = malloc(pagesize);
16800 if (!data)
16801 exit(1);
16802 for (i = 0; i < pagesize; ++i)
16803 *(data + i) = rand();
16804 umask(0);
16805 fd = creat("conftestmmap", 0600);
16806 if (fd < 0)
16807 exit(1);
16808 if (write(fd, data, pagesize) != pagesize)
16809 exit(1);
16810 close(fd);
16813 * Next, try to mmap the file at a fixed address which
16814 * already has something else allocated at it. If we can,
16815 * also make sure that we see the same garbage.
16817 fd = open("conftestmmap", O_RDWR);
16818 if (fd < 0)
16819 exit(1);
16820 data2 = malloc(2 * pagesize);
16821 if (!data2)
16822 exit(1);
16823 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16824 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16825 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16826 exit(1);
16827 for (i = 0; i < pagesize; ++i)
16828 if (*(data + i) != *(data2 + i))
16829 exit(1);
16832 * Finally, make sure that changes to the mapped area
16833 * do not percolate back to the file as seen by read().
16834 * (This is a bug on some variants of i386 svr4.0.)
16836 for (i = 0; i < pagesize; ++i)
16837 *(data2 + i) = *(data2 + i) + 1;
16838 data3 = malloc(pagesize);
16839 if (!data3)
16840 exit(1);
16841 if (read(fd, data3, pagesize) != pagesize)
16842 exit(1);
16843 for (i = 0; i < pagesize; ++i)
16844 if (*(data + i) != *(data3 + i))
16845 exit(1);
16846 close(fd);
16847 unlink("conftestmmap");
16848 exit(0);
16852 if { (eval echo configure:16853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16853 then
16854 ac_cv_func_mmap_fixed_mapped=yes
16855 else
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16858 rm -fr conftest*
16859 ac_cv_func_mmap_fixed_mapped=no
16861 rm -fr conftest*
16866 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16868 cat >> confdefs.h <<\EOF
16869 #define HAVE_MMAP 1
16876 # Enable/configure some pieces which may require knowledge about the
16877 # compiler situation (native/cross), which we just finished discovering.
16880 setrlimit_have_headers=yes
16881 for ac_hdr in sys/resource.h unistd.h
16883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16885 echo "configure:16886: checking for $ac_hdr" >&5
16886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16888 else
16889 cat > conftest.$ac_ext <<EOF
16890 #line 16891 "configure"
16891 #include "confdefs.h"
16892 #include <$ac_hdr>
16894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16895 { (eval echo configure:16896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16897 if test -z "$ac_err"; then
16898 rm -rf conftest*
16899 eval "ac_cv_header_$ac_safe=yes"
16900 else
16901 echo "$ac_err" >&5
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16904 rm -rf conftest*
16905 eval "ac_cv_header_$ac_safe=no"
16907 rm -f conftest*
16909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16910 echo "$ac_t""yes" 1>&6
16911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16912 cat >> confdefs.h <<EOF
16913 #define $ac_tr_hdr 1
16916 else
16917 echo "$ac_t""no" 1>&6
16918 setrlimit_have_headers=no
16920 done
16922 # If don't have the headers, then we can't run the tests now, and we
16923 # won't be seeing any of these during testsuite compilation.
16924 if test $setrlimit_have_headers = yes; then
16925 # Can't do these in a loop, else the resulting syntax is wrong.
16927 cat > conftest.$ac_ext <<EOF
16928 #line 16929 "configure"
16929 #include "confdefs.h"
16930 #include <sys/resource.h>
16931 #include <unistd.h>
16933 int main() {
16934 int f = RLIMIT_DATA ;
16935 ; return 0; }
16937 if { (eval echo configure:16938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16938 rm -rf conftest*
16939 glibcpp_mresult=1
16940 else
16941 echo "configure: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 rm -rf conftest*
16944 glibcpp_mresult=0
16946 rm -f conftest*
16947 cat >> confdefs.h <<EOF
16948 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
16953 cat > conftest.$ac_ext <<EOF
16954 #line 16955 "configure"
16955 #include "confdefs.h"
16956 #include <sys/resource.h>
16957 #include <unistd.h>
16959 int main() {
16960 int f = RLIMIT_RSS ;
16961 ; return 0; }
16963 if { (eval echo configure:16964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16964 rm -rf conftest*
16965 glibcpp_mresult=1
16966 else
16967 echo "configure: failed program was:" >&5
16968 cat conftest.$ac_ext >&5
16969 rm -rf conftest*
16970 glibcpp_mresult=0
16972 rm -f conftest*
16973 cat >> confdefs.h <<EOF
16974 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
16979 cat > conftest.$ac_ext <<EOF
16980 #line 16981 "configure"
16981 #include "confdefs.h"
16982 #include <sys/resource.h>
16983 #include <unistd.h>
16985 int main() {
16986 int f = RLIMIT_VMEM ;
16987 ; return 0; }
16989 if { (eval echo configure:16990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16990 rm -rf conftest*
16991 glibcpp_mresult=1
16992 else
16993 echo "configure: failed program was:" >&5
16994 cat conftest.$ac_ext >&5
16995 rm -rf conftest*
16996 glibcpp_mresult=0
16998 rm -f conftest*
16999 cat >> confdefs.h <<EOF
17000 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17005 cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17008 #include <sys/resource.h>
17009 #include <unistd.h>
17011 int main() {
17012 int f = RLIMIT_AS ;
17013 ; return 0; }
17015 if { (eval echo configure:17016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17016 rm -rf conftest*
17017 glibcpp_mresult=1
17018 else
17019 echo "configure: failed program was:" >&5
17020 cat conftest.$ac_ext >&5
17021 rm -rf conftest*
17022 glibcpp_mresult=0
17024 rm -f conftest*
17025 cat >> confdefs.h <<EOF
17026 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17031 # Check for rlimit, setrlimit.
17032 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17033 echo $ac_n "(cached) $ac_c" 1>&6
17034 else
17036 cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17039 #include <sys/resource.h>
17040 #include <unistd.h>
17042 int main() {
17043 struct rlimit r; setrlimit(0, &r);
17044 ; return 0; }
17046 if { (eval echo configure:17047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17047 rm -rf conftest*
17048 ac_setrlimit=yes
17049 else
17050 echo "configure: failed program was:" >&5
17051 cat conftest.$ac_ext >&5
17052 rm -rf conftest*
17053 ac_setrlimit=no
17055 rm -f conftest*
17061 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17062 echo "configure:17063: checking for testsuite memory limit support" >&5
17063 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17064 ac_mem_limits=yes
17065 cat >> confdefs.h <<\EOF
17066 #define _GLIBCPP_MEM_LIMITS 1
17069 else
17070 ac_mem_limits=no
17072 echo "$ac_t""$ac_mem_limits" 1>&6
17076 # Propagate the target-specific source directories through the build chain.
17077 OS_INC_SRCDIR=$os_include_dir/bits
17078 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17079 LIMITS_INC_SRCDIR=$LIMITSH/bits
17084 # Set up cross-compile flags
17088 if test "$CANADIAN" = yes; then
17089 CANADIAN_TRUE=
17090 CANADIAN_FALSE='#'
17091 else
17092 CANADIAN_TRUE='#'
17093 CANADIAN_FALSE=
17096 cat > confcache <<\EOF
17097 # This file is a shell script that caches the results of configure
17098 # tests run on this system so they can be shared between configure
17099 # scripts and configure runs. It is not useful on other systems.
17100 # If it contains results you don't want to keep, you may remove or edit it.
17102 # By default, configure uses ./config.cache as the cache file,
17103 # creating it if it does not exist already. You can give configure
17104 # the --cache-file=FILE option to use a different cache file; that is
17105 # what configure does when it calls configure scripts in
17106 # subdirectories, so they share the cache.
17107 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17108 # config.status only pays attention to the cache file if you give it the
17109 # --recheck option to rerun configure.
17112 # The following way of writing the cache mishandles newlines in values,
17113 # but we know of no workaround that is simple, portable, and efficient.
17114 # So, don't put newlines in cache variables' values.
17115 # Ultrix sh set writes to stderr and can't be redirected directly,
17116 # and sets the high bit in the cache file unless we assign to the vars.
17117 (set) 2>&1 |
17118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17119 *ac_space=\ *)
17120 # `set' does not quote correctly, so add quotes (double-quote substitution
17121 # turns \\\\ into \\, and sed turns \\ into \).
17122 sed -n \
17123 -e "s/'/'\\\\''/g" \
17124 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17127 # `set' quotes correctly as required by POSIX, so do not add quotes.
17128 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17130 esac >> confcache
17131 if cmp -s $cache_file confcache; then
17133 else
17134 if test -w $cache_file; then
17135 echo "updating cache $cache_file"
17136 cat confcache > $cache_file
17137 else
17138 echo "not updating unwritable cache $cache_file"
17141 rm -f confcache
17144 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
17145 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
17146 echo "configure:17147: checking for locale.h" >&5
17147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
17149 else
17150 cat > conftest.$ac_ext <<EOF
17151 #line 17152 "configure"
17152 #include "confdefs.h"
17153 #include <locale.h>
17155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17156 { (eval echo configure:17157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17158 if test -z "$ac_err"; then
17159 rm -rf conftest*
17160 eval "ac_cv_header_$ac_safe=yes"
17161 else
17162 echo "$ac_err" >&5
17163 echo "configure: failed program was:" >&5
17164 cat conftest.$ac_ext >&5
17165 rm -rf conftest*
17166 eval "ac_cv_header_$ac_safe=no"
17168 rm -f conftest*
17170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17171 echo "$ac_t""yes" 1>&6
17173 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
17174 echo "configure:17175: checking for LC_MESSAGES" >&5
17175 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
17176 echo $ac_n "(cached) $ac_c" 1>&6
17177 else
17178 cat > conftest.$ac_ext <<EOF
17179 #line 17180 "configure"
17180 #include "confdefs.h"
17181 #include <locale.h>
17182 int main() {
17183 return LC_MESSAGES
17184 ; return 0; }
17186 if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187 rm -rf conftest*
17188 ac_cv_val_LC_MESSAGES=yes
17189 else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 ac_cv_val_LC_MESSAGES=no
17195 rm -f conftest*
17198 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17199 if test $ac_cv_val_LC_MESSAGES = yes; then
17200 cat >> confdefs.h <<\EOF
17201 #define HAVE_LC_MESSAGES 1
17206 else
17207 echo "$ac_t""no" 1>&6
17212 if test "${multilib}" = "yes"; then
17213 multilib_arg="--enable-multilib"
17214 else
17215 multilib_arg=
17218 # Needed so that g++ can find the correct include subdir automatically.
17219 INTERFACE=v3
17221 # Export all the install information
17224 glibcpp_toolexecdir=no
17225 glibcpp_toolexeclibdir=no
17227 # Export build and source directories.
17228 # These need to be absolute paths, yet at the same time need to
17229 # canonicalize only relative paths, because then amd will not unmount
17230 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
17231 glibcpp_builddir=`pwd`
17232 case $srcdir in
17233 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
17234 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
17235 esac
17236 glibcpp_prefixdir=${prefix}
17238 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17239 echo "configure:17240: checking for interface version number" >&5
17240 libstdcxx_interface=$INTERFACE
17241 echo "$ac_t""$libstdcxx_interface" 1>&6
17243 # Process the option --with-gxx-include-dir=<path to include-files directory>
17244 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17245 echo "configure:17246: checking for --with-gxx-include-dir" >&5
17246 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17247 if test "${with_gxx_include_dir+set}" = set; then
17248 withval="$with_gxx_include_dir"
17249 case "${withval}" in
17250 yes)
17251 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17252 gxx_include_dir=no
17255 gxx_include_dir=no
17258 gxx_include_dir=${withval}
17260 esac
17261 else
17262 gxx_include_dir=no
17265 echo "$ac_t""$gxx_include_dir" 1>&6
17267 # Process the option "--enable-version-specific-runtime-libs"
17268 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17269 echo "configure:17270: checking for --enable-version-specific-runtime-libs" >&5
17270 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17271 if test "${enable_version_specific_runtime_libs+set}" = set; then
17272 enableval="$enable_version_specific_runtime_libs"
17273 case "$enableval" in
17274 yes) version_specific_libs=yes ;;
17275 no) version_specific_libs=no ;;
17276 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17277 esac
17278 else
17279 version_specific_libs=no
17281 # Option set, now we can test it.
17282 echo "$ac_t""$version_specific_libs" 1>&6
17284 if test $version_specific_libs = yes; then
17285 # Need the gcc compiler version to know where to install libraries
17286 # and header files if --enable-version-specific-runtime-libs option
17287 # is selected.
17288 gcc_version_trigger=${srcdir}/../gcc/version.c
17289 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17290 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17291 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17292 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17293 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17296 # Default case for install directory for include files.
17297 if test $version_specific_libs = no &&
17298 test $gxx_include_dir = no; then
17299 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17302 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17303 # Install a library built with a cross compiler in tooldir, not libdir.
17304 if test x"$glibcpp_toolexecdir" = x"no"; then
17305 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
17306 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17307 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17308 else
17309 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17310 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17314 echo $ac_n "checking for install location""... $ac_c" 1>&6
17315 echo "configure:17316: checking for install location" >&5
17316 echo "$ac_t""$gxx_include_dir" 1>&6
17326 # Export all the include and flag information to makefiles.
17328 # Root level of the build directory include sources.
17329 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17331 # Passed down for canadian crosses.
17332 if test x"$CANADIAN" = xyes; then
17333 TOPLEVEL_INCLUDES='-I$(includedir)'
17336 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17338 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17340 if test x"$need_libio" = xyes; then
17341 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17345 # Now, export this to all the little Makefiles....
17352 # Optimization flags that are probably a good idea for thrill-seekers. Just
17353 # uncomment the lines below and make, everything else is ready to go...
17354 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
17355 OPTIMIZE_CXXFLAGS=
17358 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17362 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17363 grep "enable shared" > /dev/null; then
17364 LIBSUPCXX_PICFLAGS=-prefer-pic
17365 else
17366 LIBSUPCXX_PICFLAGS=
17370 # Generate the various Makefiles, include files, and scripts.
17371 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17372 # and libsupc++/Makefile.am so that multilib installs will end up
17373 # installed in the correct place. To work around this not being passed
17374 # down from config-ml.in -> top_srcdir/Makefile.am ->
17375 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17376 trap '' 1 2 15
17377 cat > confcache <<\EOF
17378 # This file is a shell script that caches the results of configure
17379 # tests run on this system so they can be shared between configure
17380 # scripts and configure runs. It is not useful on other systems.
17381 # If it contains results you don't want to keep, you may remove or edit it.
17383 # By default, configure uses ./config.cache as the cache file,
17384 # creating it if it does not exist already. You can give configure
17385 # the --cache-file=FILE option to use a different cache file; that is
17386 # what configure does when it calls configure scripts in
17387 # subdirectories, so they share the cache.
17388 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17389 # config.status only pays attention to the cache file if you give it the
17390 # --recheck option to rerun configure.
17393 # The following way of writing the cache mishandles newlines in values,
17394 # but we know of no workaround that is simple, portable, and efficient.
17395 # So, don't put newlines in cache variables' values.
17396 # Ultrix sh set writes to stderr and can't be redirected directly,
17397 # and sets the high bit in the cache file unless we assign to the vars.
17398 (set) 2>&1 |
17399 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17400 *ac_space=\ *)
17401 # `set' does not quote correctly, so add quotes (double-quote substitution
17402 # turns \\\\ into \\, and sed turns \\ into \).
17403 sed -n \
17404 -e "s/'/'\\\\''/g" \
17405 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17408 # `set' quotes correctly as required by POSIX, so do not add quotes.
17409 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17411 esac >> confcache
17412 if cmp -s $cache_file confcache; then
17414 else
17415 if test -w $cache_file; then
17416 echo "updating cache $cache_file"
17417 cat confcache > $cache_file
17418 else
17419 echo "not updating unwritable cache $cache_file"
17422 rm -f confcache
17424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17427 # Let make expand exec_prefix.
17428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17430 # Any assignment to VPATH causes Sun make to only execute
17431 # the first set of double-colon rules, so remove it if not needed.
17432 # If there is a colon in the path, we need to keep it.
17433 if test "x$srcdir" = x.; then
17434 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17437 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17439 DEFS=-DHAVE_CONFIG_H
17441 # Without the "./", some shells look in PATH for config.status.
17442 : ${CONFIG_STATUS=./config.status}
17444 echo creating $CONFIG_STATUS
17445 rm -f $CONFIG_STATUS
17446 cat > $CONFIG_STATUS <<EOF
17447 #! /bin/sh
17448 # Generated automatically by configure.
17449 # Run this file to recreate the current configuration.
17450 # This directory was configured as follows,
17451 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17453 # $0 $ac_configure_args
17455 # Compiler output produced by configure, useful for debugging
17456 # configure, is in ./config.log if it exists.
17458 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17459 for ac_option
17461 case "\$ac_option" in
17462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17463 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17464 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17465 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17466 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17467 exit 0 ;;
17468 -help | --help | --hel | --he | --h)
17469 echo "\$ac_cs_usage"; exit 0 ;;
17470 *) echo "\$ac_cs_usage"; exit 1 ;;
17471 esac
17472 done
17474 ac_given_srcdir=$srcdir
17475 ac_given_INSTALL="$INSTALL"
17477 trap 'rm -fr `echo "Makefile \
17478 include/Makefile src/Makefile \
17479 libmath/Makefile libio/Makefile libsupc++/Makefile \
17480 testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17482 cat >> $CONFIG_STATUS <<EOF
17484 # Protect against being on the right side of a sed subst in config.status.
17485 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17486 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17487 $ac_vpsub
17488 $extrasub
17489 s%@SHELL@%$SHELL%g
17490 s%@CFLAGS@%$CFLAGS%g
17491 s%@CPPFLAGS@%$CPPFLAGS%g
17492 s%@CXXFLAGS@%$CXXFLAGS%g
17493 s%@FFLAGS@%$FFLAGS%g
17494 s%@DEFS@%$DEFS%g
17495 s%@LDFLAGS@%$LDFLAGS%g
17496 s%@LIBS@%$LIBS%g
17497 s%@exec_prefix@%$exec_prefix%g
17498 s%@prefix@%$prefix%g
17499 s%@program_transform_name@%$program_transform_name%g
17500 s%@bindir@%$bindir%g
17501 s%@sbindir@%$sbindir%g
17502 s%@libexecdir@%$libexecdir%g
17503 s%@datadir@%$datadir%g
17504 s%@sysconfdir@%$sysconfdir%g
17505 s%@sharedstatedir@%$sharedstatedir%g
17506 s%@localstatedir@%$localstatedir%g
17507 s%@libdir@%$libdir%g
17508 s%@includedir@%$includedir%g
17509 s%@oldincludedir@%$oldincludedir%g
17510 s%@infodir@%$infodir%g
17511 s%@mandir@%$mandir%g
17512 s%@toplevel_srcdir@%$toplevel_srcdir%g
17513 s%@host@%$host%g
17514 s%@host_alias@%$host_alias%g
17515 s%@host_cpu@%$host_cpu%g
17516 s%@host_vendor@%$host_vendor%g
17517 s%@host_os@%$host_os%g
17518 s%@target@%$target%g
17519 s%@target_alias@%$target_alias%g
17520 s%@target_cpu@%$target_cpu%g
17521 s%@target_vendor@%$target_vendor%g
17522 s%@target_os@%$target_os%g
17523 s%@build@%$build%g
17524 s%@build_alias@%$build_alias%g
17525 s%@build_cpu@%$build_cpu%g
17526 s%@build_vendor@%$build_vendor%g
17527 s%@build_os@%$build_os%g
17528 s%@LN_S@%$LN_S%g
17529 s%@glibcpp_basedir@%$glibcpp_basedir%g
17530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17531 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17532 s%@INSTALL_DATA@%$INSTALL_DATA%g
17533 s%@PACKAGE@%$PACKAGE%g
17534 s%@VERSION@%$VERSION%g
17535 s%@ACLOCAL@%$ACLOCAL%g
17536 s%@AUTOCONF@%$AUTOCONF%g
17537 s%@AUTOMAKE@%$AUTOMAKE%g
17538 s%@AUTOHEADER@%$AUTOHEADER%g
17539 s%@MAKEINFO@%$MAKEINFO%g
17540 s%@SET_MAKE@%$SET_MAKE%g
17541 s%@CC@%$CC%g
17542 s%@glibcpp_CXX@%$glibcpp_CXX%g
17543 s%@AS@%$AS%g
17544 s%@AR@%$AR%g
17545 s%@RANLIB@%$RANLIB%g
17546 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17547 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17548 s%@MAINT@%$MAINT%g
17549 s%@EXEEXT@%$EXEEXT%g
17550 s%@OBJEXT@%$OBJEXT%g
17551 s%@STRIP@%$STRIP%g
17552 s%@LIBTOOL@%$LIBTOOL%g
17553 s%@CXXCPP@%$CXXCPP%g
17554 s%@enable_shared@%$enable_shared%g
17555 s%@enable_static@%$enable_static%g
17556 s%@ifGNUmake@%$ifGNUmake%g
17557 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17558 s%@CPP@%$CPP%g
17559 s%@CSTDIO_H@%$CSTDIO_H%g
17560 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17561 s%@CCODECVT_C@%$CCODECVT_C%g
17562 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17563 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17564 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17565 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17566 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17567 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17568 s%@libio_la@%$libio_la%g
17569 s%@CLOCALE_H@%$CLOCALE_H%g
17570 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17571 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17572 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17573 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17574 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17575 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17576 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17577 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17578 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17579 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17580 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17581 s%@WERROR@%$WERROR%g
17582 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17583 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17584 s%@LIMITS_INC_SRCDIR@%$LIMITS_INC_SRCDIR%g
17585 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17586 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17587 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17588 s%@glibcpp_builddir@%$glibcpp_builddir%g
17589 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17590 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17591 s%@gxx_include_dir@%$gxx_include_dir%g
17592 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17593 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17594 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17595 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17596 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17597 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17598 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17599 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17600 s%@WARN_FLAGS@%$WARN_FLAGS%g
17601 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17603 CEOF
17606 cat >> $CONFIG_STATUS <<\EOF
17608 # Split the substitutions into bite-sized pieces for seds with
17609 # small command number limits, like on Digital OSF/1 and HP-UX.
17610 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17611 ac_file=1 # Number of current file.
17612 ac_beg=1 # First line for current file.
17613 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17614 ac_more_lines=:
17615 ac_sed_cmds=""
17616 while $ac_more_lines; do
17617 if test $ac_beg -gt 1; then
17618 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17619 else
17620 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17622 if test ! -s conftest.s$ac_file; then
17623 ac_more_lines=false
17624 rm -f conftest.s$ac_file
17625 else
17626 if test -z "$ac_sed_cmds"; then
17627 ac_sed_cmds="sed -f conftest.s$ac_file"
17628 else
17629 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17631 ac_file=`expr $ac_file + 1`
17632 ac_beg=$ac_end
17633 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17635 done
17636 if test -z "$ac_sed_cmds"; then
17637 ac_sed_cmds=cat
17641 cat >> $CONFIG_STATUS <<EOF
17643 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17644 include/Makefile src/Makefile \
17645 libmath/Makefile libio/Makefile libsupc++/Makefile \
17646 testsuite/Makefile mkcheck testsuite_flags"}
17648 cat >> $CONFIG_STATUS <<\EOF
17649 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17650 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17651 case "$ac_file" in
17652 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17653 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17654 *) ac_file_in="${ac_file}.in" ;;
17655 esac
17657 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17659 # Remove last slash and all that follows it. Not all systems have dirname.
17660 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17661 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17662 # The file is in a subdirectory.
17663 test ! -d "$ac_dir" && mkdir "$ac_dir"
17664 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17665 # A "../" for each directory in $ac_dir_suffix.
17666 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17667 else
17668 ac_dir_suffix= ac_dots=
17671 case "$ac_given_srcdir" in
17672 .) srcdir=.
17673 if test -z "$ac_dots"; then top_srcdir=.
17674 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17675 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17676 *) # Relative path.
17677 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17678 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17679 esac
17681 case "$ac_given_INSTALL" in
17682 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17683 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17684 esac
17686 echo creating "$ac_file"
17687 rm -f "$ac_file"
17688 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17689 case "$ac_file" in
17690 *Makefile*) ac_comsub="1i\\
17691 # $configure_input" ;;
17692 *) ac_comsub= ;;
17693 esac
17695 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17696 sed -e "$ac_comsub
17697 s%@configure_input@%$configure_input%g
17698 s%@srcdir@%$srcdir%g
17699 s%@top_srcdir@%$top_srcdir%g
17700 s%@INSTALL@%$INSTALL%g
17701 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17702 fi; done
17703 rm -f conftest.s*
17705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17708 # ac_d sets the value in "#define NAME VALUE" lines.
17709 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17710 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17711 ac_dC='\3'
17712 ac_dD='%g'
17713 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17714 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17715 ac_uB='\([ ]\)%\1#\2define\3'
17716 ac_uC=' '
17717 ac_uD='\4%g'
17718 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17719 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17720 ac_eB='$%\1#\2define\3'
17721 ac_eC=' '
17722 ac_eD='%g'
17724 if test "${CONFIG_HEADERS+set}" != set; then
17726 cat >> $CONFIG_STATUS <<EOF
17727 CONFIG_HEADERS="config.h"
17729 cat >> $CONFIG_STATUS <<\EOF
17731 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17733 case "$ac_file" in
17734 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17735 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17736 *) ac_file_in="${ac_file}.in" ;;
17737 esac
17739 echo creating $ac_file
17741 rm -f conftest.frag conftest.in conftest.out
17742 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17743 cat $ac_file_inputs > conftest.in
17747 # Transform confdefs.h into a sed script conftest.vals that substitutes
17748 # the proper values into config.h.in to produce config.h. And first:
17749 # Protect against being on the right side of a sed subst in config.status.
17750 # Protect against being in an unquoted here document in config.status.
17751 rm -f conftest.vals
17752 cat > conftest.hdr <<\EOF
17753 s/[\\&%]/\\&/g
17754 s%[\\$`]%\\&%g
17755 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17756 s%ac_d%ac_u%gp
17757 s%ac_u%ac_e%gp
17759 sed -n -f conftest.hdr confdefs.h > conftest.vals
17760 rm -f conftest.hdr
17762 # This sed command replaces #undef with comments. This is necessary, for
17763 # example, in the case of _POSIX_SOURCE, which is predefined and required
17764 # on some systems where configure will not decide to define it.
17765 cat >> conftest.vals <<\EOF
17766 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17769 # Break up conftest.vals because some shells have a limit on
17770 # the size of here documents, and old seds have small limits too.
17772 rm -f conftest.tail
17773 while :
17775 ac_lines=`grep -c . conftest.vals`
17776 # grep -c gives empty output for an empty file on some AIX systems.
17777 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17778 # Write a limited-size here document to conftest.frag.
17779 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17780 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17781 echo 'CEOF
17782 sed -f conftest.frag conftest.in > conftest.out
17783 rm -f conftest.in
17784 mv conftest.out conftest.in
17785 ' >> $CONFIG_STATUS
17786 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17787 rm -f conftest.vals
17788 mv conftest.tail conftest.vals
17789 done
17790 rm -f conftest.vals
17792 cat >> $CONFIG_STATUS <<\EOF
17793 rm -f conftest.frag conftest.h
17794 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17795 cat conftest.in >> conftest.h
17796 rm -f conftest.in
17797 if cmp -s $ac_file conftest.h 2>/dev/null; then
17798 echo "$ac_file is unchanged"
17799 rm -f conftest.h
17800 else
17801 # Remove last slash and all that follows it. Not all systems have dirname.
17802 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17804 # The file is in a subdirectory.
17805 test ! -d "$ac_dir" && mkdir "$ac_dir"
17807 rm -f $ac_file
17808 mv conftest.h $ac_file
17810 fi; done
17814 cat >> $CONFIG_STATUS <<EOF
17815 ac_sources="$BASIC_FILE_CC $CLOCALE_CC"
17816 ac_dests="src/basic_file.cc src/c++locale.cc"
17819 cat >> $CONFIG_STATUS <<\EOF
17820 srcdir=$ac_given_srcdir
17821 while test -n "$ac_sources"; do
17822 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17823 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17825 echo "linking $srcdir/$ac_source to $ac_dest"
17827 if test ! -r $srcdir/$ac_source; then
17828 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17830 rm -f $ac_dest
17832 # Make relative symlinks.
17833 # Remove last slash and all that follows it. Not all systems have dirname.
17834 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17835 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17836 # The dest file is in a subdirectory.
17837 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17838 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17839 # A "../" for each directory in $ac_dest_dir_suffix.
17840 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17841 else
17842 ac_dest_dir_suffix= ac_dots=
17845 case "$srcdir" in
17846 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17847 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17848 esac
17850 # Make a symlink if possible; otherwise try a hard link.
17851 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17852 ln $srcdir/$ac_source $ac_dest; then :
17853 else
17854 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17856 done
17858 cat >> $CONFIG_STATUS <<EOF
17860 srcdir=${srcdir}
17861 host=${host}
17862 target=${target}
17863 with_multisubdir=${with_multisubdir}
17864 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17865 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17866 glibcpp_basedir=${glibcpp_basedir}
17867 CC="${CC}"
17868 CXX="${CXX}"
17871 cat >> $CONFIG_STATUS <<\EOF
17872 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17873 if test -n "$CONFIG_FILES"; then
17874 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17875 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17876 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17878 chmod +x mkcheck
17879 chmod +x testsuite_flags
17881 exit 0
17883 chmod +x $CONFIG_STATUS
17884 rm -fr confdefs* $ac_clean_files
17885 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17889 # Sanity checking & User-visible messages.
17890 # Checks down here, otherwise they get scrolled off before
17891 # the user will notice.
17893 # Trying to get more people to read documentation. Possibly remove
17894 # check and warn all the time. There is no "informational" AC_MSG_
17895 # macro, so these are going to be printed even when --quiet/--silent
17896 # is given.
17897 if test ! -f stamp-sanity-warned; then
17898 touch stamp-sanity-warned
17899 echo ""
17900 echo "Please make certain that you read the installation information here:"
17901 echo " faster => ${srcdir}/docs/install.html"
17902 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17903 echo ""
17904 echo "and the configuration information here:"
17905 echo " faster => ${srcdir}/docs/configopts.html"
17906 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17907 echo ""
17908 echo "before proceeding with ${_cv_gnu_make_command}."
17909 echo ""