acinclude.m4: Clean extraneous tabs, rewrap 'test' lines.
[official-gcc.git] / libstdc++-v3 / configure
blob73a28884f2fad8d8b2d295a43cfb5afdbf8dab98
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 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
106 ac_prev=
107 for ac_option
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
113 ac_prev=
114 continue
117 case "$ac_option" in
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 *) ac_optarg= ;;
120 esac
122 # Accept the important Cygnus configure options, so we can diagnose typos.
124 case "$ac_option" in
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 ac_prev=bindir ;;
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
132 ac_prev=build ;;
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 ac_prev=datadir ;;
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 | --da=*)
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 case "$ac_option" in
166 *=*) ;;
167 *) ac_optarg=yes ;;
168 esac
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
182 with_gas=yes ;;
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
187 cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --site-file=FILE use FILE as the site file
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
199 [$ac_default_prefix]
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 [same as prefix]
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
206 [PREFIX/share]
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 [PREFIX/com]
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
222 cat << EOF
223 Host type:
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
238 exit 0 ;;
240 -host | --host | --hos | --ho)
241 ac_prev=host ;;
242 -host=* | --host=* | --hos=* | --ho=*)
243 host="$ac_optarg" ;;
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 ac_prev=infodir ;;
254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255 infodir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
258 ac_prev=libdir ;;
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 ac_prev=mandir ;;
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
283 -nfp | --nfp | --nf)
284 # Obsolete; use --without-fp.
285 with_fp=no ;;
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 | --no-cr | --no-c)
289 no_create=yes ;;
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 no_recursion=yes ;;
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 ac_prev=prefix ;;
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
342 silent=yes ;;
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 ac_prev=sbindir ;;
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 | --sbi=* | --sb=*)
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
353 | --sha | --sh)
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 | --sha=* | --sh=*)
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
362 ac_prev=site ;;
363 -site=* | --site=* | --sit=*)
364 site="$ac_optarg" ;;
366 -site-file | --site-file | --site-fil | --site-fi | --site-f)
367 ac_prev=sitefile ;;
368 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369 sitefile="$ac_optarg" ;;
371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372 ac_prev=srcdir ;;
373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374 srcdir="$ac_optarg" ;;
376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377 | --syscon | --sysco | --sysc | --sys | --sy)
378 ac_prev=sysconfdir ;;
379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381 sysconfdir="$ac_optarg" ;;
383 -target | --target | --targe | --targ | --tar | --ta | --t)
384 ac_prev=target ;;
385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386 target="$ac_optarg" ;;
388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 verbose=yes ;;
391 -version | --version | --versio | --versi | --vers)
392 echo "configure generated by autoconf version 2.13"
393 exit 0 ;;
395 -with-* | --with-*)
396 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 case "$ac_option" in
403 *=*) ;;
404 *) ac_optarg=yes ;;
405 esac
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
417 --x)
418 # Obsolete; use --with-x.
419 with_x=yes ;;
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes="$ac_optarg" ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 nonopt="$ac_option"
448 esac
449 done
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466 exec 6>/dev/null
467 else
468 exec 6>&1
470 exec 5>./config.log
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
482 case "$ac_arg" in
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c) ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 esac
491 done
493 # NLS nuisances.
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
516 ac_prog=$0
517 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519 srcdir=$ac_confdir
520 if test ! -r $srcdir/$ac_unique_file; then
521 srcdir=..
523 else
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 else
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 else
545 CONFIG_SITE="$sitefile"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # When building with srcdir == objdir, links to the source files will
586 # be created in directories within the target_subdir. We have to
587 # adjust toplevel_srcdir accordingly, so that configure finds
588 # install-sh and other auxiliary files that live in the top-level
589 # source directory.
590 if test "${srcdir}" = "."; then
591 if test -z "${with_target_subdir}"; then
592 toprel=".."
593 else
594 if test "${with_target_subdir}" != "."; then
595 toprel="${with_multisrctop}../.."
596 else
597 toprel="${with_multisrctop}.."
600 else
601 toprel=".."
603 ac_aux_dir=
604 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
605 if test -f $ac_dir/install-sh; then
606 ac_aux_dir=$ac_dir
607 ac_install_sh="$ac_aux_dir/install-sh -c"
608 break
609 elif test -f $ac_dir/install.sh; then
610 ac_aux_dir=$ac_dir
611 ac_install_sh="$ac_aux_dir/install.sh -c"
612 break
614 done
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 toplevel_srcdir=\${top_srcdir}/$toprel
627 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
628 # AC 2.50 sets target_alias iff the user specified --target, but we use it
629 # everywhere, so we set it here just to be sure.
631 # Do some error checking and defaulting for the host and target type.
632 # The inputs are:
633 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
635 # The rules are:
636 # 1. You are not allowed to specify --host, --target, and nonopt at the
637 # same time.
638 # 2. Host defaults to nonopt.
639 # 3. If nonopt is not specified, then host defaults to the current host,
640 # as determined by config.guess.
641 # 4. Target and build default to nonopt.
642 # 5. If nonopt is not specified, then target and build default to host.
644 # The aliases save the names the user supplied, while $host etc.
645 # will get canonicalized.
646 case $host---$target---$nonopt in
647 NONE---*---* | *---NONE---* | *---*---NONE) ;;
648 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 esac
652 # Make sure we can run config.sub.
653 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
660 host_alias=$host
661 case "$host_alias" in
662 NONE)
663 case $nonopt in
664 NONE)
665 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
666 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
667 fi ;;
668 *) host_alias=$nonopt ;;
669 esac ;;
670 esac
672 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
673 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
678 echo $ac_n "checking target system type""... $ac_c" 1>&6
679 echo "configure:680: checking target system type" >&5
681 target_alias=$target
682 case "$target_alias" in
683 NONE)
684 case $nonopt in
685 NONE) target_alias=$host_alias ;;
686 *) target_alias=$nonopt ;;
687 esac ;;
688 esac
690 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
691 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$target" 1>&6
696 echo $ac_n "checking build system type""... $ac_c" 1>&6
697 echo "configure:698: checking build system type" >&5
699 build_alias=$build
700 case "$build_alias" in
701 NONE)
702 case $nonopt in
703 NONE) build_alias=$host_alias ;;
704 *) build_alias=$nonopt ;;
705 esac ;;
706 esac
708 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
709 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$build" 1>&6
714 test "$host_alias" != "$target_alias" &&
715 test "$program_prefix$program_suffix$program_transform_name" = \
716 NONENONEs,x,x, &&
717 program_prefix=${target_alias}-
719 target_alias=${target_alias-$target}
722 # We use these options to decide which functions to include.
723 # Check whether --with-target-subdir or --without-target-subdir was given.
724 if test "${with_target_subdir+set}" = set; then
725 withval="$with_target_subdir"
729 # Check whether --with-cross-host or --without-cross-host was given.
730 if test "${with_cross_host+set}" = set; then
731 withval="$with_cross_host"
736 # Runs configure.host and configure.target. Have to run this before
737 # the GLIBCPP_ENABLE_* macros below.
738 # Find a good install program. We prefer a C program (faster),
739 # so one script is as good as another. But avoid the broken or
740 # incompatible versions:
741 # SysV /etc/install, /usr/sbin/install
742 # SunOS /usr/etc/install
743 # IRIX /sbin/install
744 # AIX /bin/install
745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
758 case "$ac_dir/" in
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 # Don't use installbsd from OSF since it installs stuff as root
763 # by default.
764 for ac_prog in ginstall scoinst install; do
765 if test -f $ac_dir/$ac_prog; then
766 if test $ac_prog = install &&
767 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
768 # AIX install. It has an incompatible calling convention.
770 else
771 ac_cv_path_install="$ac_dir/$ac_prog -c"
772 break 2
775 done
777 esac
778 done
779 IFS="$ac_save_IFS"
782 if test "${ac_cv_path_install+set}" = set; then
783 INSTALL="$ac_cv_path_install"
784 else
785 # As a last resort, use the slow shell script. We don't cache a
786 # path for INSTALL within a source directory, because that will
787 # break other packages using the cache if that directory is
788 # removed, or if the path is relative.
789 INSTALL="$ac_install_sh"
792 echo "$ac_t""$INSTALL" 1>&6
794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
795 # It thinks the first close brace ends the variable substitution.
796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
802 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
803 echo "configure:804: checking whether build environment is sane" >&5
804 # Just in case
805 sleep 1
806 echo timestamp > conftestfile
807 # Do `set' in a subshell so we don't clobber the current shell's
808 # arguments. Must try -L first in case configure is actually a
809 # symlink; some systems play weird games with the mod time of symlinks
810 # (eg FreeBSD returns the mod time of the symlink's containing
811 # directory).
812 if (
813 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
814 if test "$*" = "X"; then
815 # -L didn't work.
816 set X `ls -t $srcdir/configure conftestfile`
818 if test "$*" != "X $srcdir/configure conftestfile" \
819 && test "$*" != "X conftestfile $srcdir/configure"; then
821 # If neither matched, then we have a broken ls. This can happen
822 # if, for instance, CONFIG_SHELL is bash and it inherits a
823 # broken ls alias from the environment. This has actually
824 # happened. Such a system could not be considered "sane".
825 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
826 alias in your environment" 1>&2; exit 1; }
829 test "$2" = conftestfile
831 then
832 # Ok.
834 else
835 { echo "configure: error: newly created file is older than distributed files!
836 Check your system clock" 1>&2; exit 1; }
838 rm -f conftest*
839 echo "$ac_t""yes" 1>&6
840 if test "$program_transform_name" = s,x,x,; then
841 program_transform_name=
842 else
843 # Double any \ or $. echo might interpret backslashes.
844 cat <<\EOF_SED > conftestsed
845 s,\\,\\\\,g; s,\$,$$,g
846 EOF_SED
847 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
848 rm -f conftestsed
850 test "$program_prefix" != NONE &&
851 program_transform_name="s,^,${program_prefix},; $program_transform_name"
852 # Use a double $ so make ignores it.
853 test "$program_suffix" != NONE &&
854 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
856 # sed with no file args requires a program.
857 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
859 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
860 echo "configure:861: checking whether ${MAKE-make} sets \${MAKE}" >&5
861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
862 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
864 else
865 cat > conftestmake <<\EOF
866 all:
867 @echo 'ac_maketemp="${MAKE}"'
869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
870 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
871 if test -n "$ac_maketemp"; then
872 eval ac_cv_prog_make_${ac_make}_set=yes
873 else
874 eval ac_cv_prog_make_${ac_make}_set=no
876 rm -f conftestmake
878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
879 echo "$ac_t""yes" 1>&6
880 SET_MAKE=
881 else
882 echo "$ac_t""no" 1>&6
883 SET_MAKE="MAKE=${MAKE-make}"
886 if test $host != $build; then
887 ac_tool_prefix=${host_alias}-
888 else
889 ac_tool_prefix=
892 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
893 echo "configure:894: checking for Cygwin environment" >&5
894 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
896 else
897 cat > conftest.$ac_ext <<EOF
898 #line 899 "configure"
899 #include "confdefs.h"
901 int main() {
903 #ifndef __CYGWIN__
904 #define __CYGWIN__ __CYGWIN32__
905 #endif
906 return __CYGWIN__;
907 ; return 0; }
909 if { (eval echo configure:910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
910 rm -rf conftest*
911 ac_cv_cygwin=yes
912 else
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 ac_cv_cygwin=no
918 rm -f conftest*
919 rm -f conftest*
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
923 CYGWIN=
924 test "$ac_cv_cygwin" = yes && CYGWIN=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
929 else
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
934 int main() {
935 return __MINGW32__;
936 ; return 0; }
938 if { (eval echo configure:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
939 rm -rf conftest*
940 ac_cv_mingw32=yes
941 else
942 echo "configure: failed program was:" >&5
943 cat conftest.$ac_ext >&5
944 rm -rf conftest*
945 ac_cv_mingw32=no
947 rm -f conftest*
948 rm -f conftest*
951 echo "$ac_t""$ac_cv_mingw32" 1>&6
952 MINGW32=
953 test "$ac_cv_mingw32" = yes && MINGW32=yes
955 # Check whether --enable-multilib or --disable-multilib was given.
956 if test "${enable_multilib+set}" = set; then
957 enableval="$enable_multilib"
958 case "${enableval}" in
959 yes) multilib=yes ;;
960 no) multilib=no ;;
961 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
962 esac
963 else
964 multilib=yes
967 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
971 PACKAGE=libstdc++
973 VERSION=3.0.0
975 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
976 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
978 cat >> confdefs.h <<EOF
979 #define PACKAGE "$PACKAGE"
982 cat >> confdefs.h <<EOF
983 #define VERSION "$VERSION"
988 missing_dir=`cd $ac_aux_dir && pwd`
989 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
990 echo "configure:991: checking for working aclocal" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
995 ACLOCAL=aclocal
996 echo "$ac_t""found" 1>&6
997 else
998 ACLOCAL="$missing_dir/missing aclocal"
999 echo "$ac_t""missing" 1>&6
1002 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1008 AUTOCONF=autoconf
1009 echo "$ac_t""found" 1>&6
1010 else
1011 AUTOCONF="$missing_dir/missing autoconf"
1012 echo "$ac_t""missing" 1>&6
1015 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1021 AUTOMAKE=automake
1022 echo "$ac_t""found" 1>&6
1023 else
1024 AUTOMAKE="$missing_dir/missing automake"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1034 AUTOHEADER=autoheader
1035 echo "$ac_t""found" 1>&6
1036 else
1037 AUTOHEADER="$missing_dir/missing autoheader"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1047 MAKEINFO=makeinfo
1048 echo "$ac_t""found" 1>&6
1049 else
1050 MAKEINFO="$missing_dir/missing makeinfo"
1051 echo "$ac_t""missing" 1>&6
1056 # Never versions of autoconf add an underscore to these functions.
1057 # Prevent future problems ...
1063 # AC_PROG_CC
1065 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1066 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1067 # are probably using a cross compiler, which will not be able to fully
1068 # link an executable. This should really be fixed in autoconf
1069 # itself.
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081 if test -n "$CC"; then
1082 ac_cv_prog_CC="$CC" # Let the user override the test.
1083 else
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_CC="gcc"
1090 break
1092 done
1093 IFS="$ac_save_ifs"
1096 CC="$ac_cv_prog_CC"
1097 if test -n "$CC"; then
1098 echo "$ac_t""$CC" 1>&6
1099 else
1100 echo "$ac_t""no" 1>&6
1103 if test -z "$CC"; then
1104 # Extract the first word of "cc", so it can be a program name with args.
1105 set dummy cc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 else
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 ac_prog_rejected=no
1116 ac_dummy="$PATH"
1117 for ac_dir in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir=.
1119 if test -f $ac_dir/$ac_word; then
1120 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1121 ac_prog_rejected=yes
1122 continue
1124 ac_cv_prog_CC="cc"
1125 break
1127 done
1128 IFS="$ac_save_ifs"
1129 if test $ac_prog_rejected = yes; then
1130 # We found a bogon in the path, so make sure we never use it.
1131 set dummy $ac_cv_prog_CC
1132 shift
1133 if test $# -gt 0; then
1134 # We chose a different compiler from the bogus one.
1135 # However, it has the same basename, so the bogon will be chosen
1136 # first if we set CC to just the basename; use the full file name.
1137 shift
1138 set dummy "$ac_dir/$ac_word" "$@"
1139 shift
1140 ac_cv_prog_CC="$@"
1145 CC="$ac_cv_prog_CC"
1146 if test -n "$CC"; then
1147 echo "$ac_t""$CC" 1>&6
1148 else
1149 echo "$ac_t""no" 1>&6
1152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1155 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1156 echo "configure:1157: checking whether we are using GNU C" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160 cat > conftest.c <<EOF
1161 #ifdef __GNUC__
1162 yes;
1163 #endif
1165 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1166 ac_cv_prog_gcc=yes
1167 else
1168 ac_cv_prog_gcc=no
1172 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1174 if test $ac_cv_prog_gcc = yes; then
1175 GCC=yes
1176 ac_test_CFLAGS="${CFLAGS+set}"
1177 ac_save_CFLAGS="$CFLAGS"
1178 CFLAGS=
1179 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ${CC-cc} accepts -g" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184 echo 'void f(){}' > conftest.c
1185 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1186 ac_cv_prog_cc_g=yes
1187 else
1188 ac_cv_prog_cc_g=no
1190 rm -f conftest*
1194 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1195 if test "$ac_test_CFLAGS" = set; then
1196 CFLAGS="$ac_save_CFLAGS"
1197 elif test $ac_cv_prog_cc_g = yes; then
1198 CFLAGS="-g -O2"
1199 else
1200 CFLAGS="-O2"
1202 else
1203 GCC=
1204 test "${CFLAGS+set}" = set || CFLAGS="-g"
1208 # Can't just call these here as g++ requires libstc++ to be built....
1209 # AC_PROG_CXX
1211 # Likewise for AC_PROG_CXX.
1215 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1216 # flags that come in CXX while configuring libstdc++. They're different
1217 # from those used for all other target libraries. If CXX is set in
1218 # the environment, respect that here.
1219 glibcpp_CXX=$CXX
1220 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy $ac_prog; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 if test -n "$glibcpp_CXX"; then
1230 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1231 else
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_glibcpp_CXX="$ac_prog"
1238 break
1240 done
1241 IFS="$ac_save_ifs"
1244 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1245 if test -n "$glibcpp_CXX"; then
1246 echo "$ac_t""$glibcpp_CXX" 1>&6
1247 else
1248 echo "$ac_t""no" 1>&6
1251 test -n "$glibcpp_CXX" && break
1252 done
1253 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1256 CXX=$glibcpp_CXX
1257 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1259 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether we are using GNU C++" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 cat > conftest.C <<EOF
1265 #ifdef __GNUC__
1266 yes;
1267 #endif
1269 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1270 ac_cv_prog_gxx=yes
1271 else
1272 ac_cv_prog_gxx=no
1276 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1278 if test $ac_cv_prog_gxx = yes; then
1279 GXX=yes
1280 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1281 ac_save_CXXFLAGS="$CXXFLAGS"
1282 CXXFLAGS=
1283 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether ${CXX-g++} accepts -g" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 echo 'void f(){}' > conftest.cc
1289 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1290 ac_cv_prog_cxx_g=yes
1291 else
1292 ac_cv_prog_cxx_g=no
1294 rm -f conftest*
1298 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1299 if test "$ac_test_CXXFLAGS" = set; then
1300 CXXFLAGS="$ac_save_CXXFLAGS"
1301 elif test $ac_cv_prog_cxx_g = yes; then
1302 CXXFLAGS="-g -O2"
1303 else
1304 CXXFLAGS="-O2"
1306 else
1307 GXX=
1308 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1312 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1313 set dummy ${ac_tool_prefix}as; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319 if test -n "$AS"; then
1320 ac_cv_prog_AS="$AS" # Let the user override the test.
1321 else
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1323 ac_dummy="$PATH"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_AS="${ac_tool_prefix}as"
1328 break
1330 done
1331 IFS="$ac_save_ifs"
1332 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1335 AS="$ac_cv_prog_AS"
1336 if test -n "$AS"; then
1337 echo "$ac_t""$AS" 1>&6
1338 else
1339 echo "$ac_t""no" 1>&6
1344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1345 set dummy ${ac_tool_prefix}ar; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 if test -n "$AR"; then
1352 ac_cv_prog_AR="$AR" # Let the user override the test.
1353 else
1354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1355 ac_dummy="$PATH"
1356 for ac_dir in $ac_dummy; do
1357 test -z "$ac_dir" && ac_dir=.
1358 if test -f $ac_dir/$ac_word; then
1359 ac_cv_prog_AR="${ac_tool_prefix}ar"
1360 break
1362 done
1363 IFS="$ac_save_ifs"
1364 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1367 AR="$ac_cv_prog_AR"
1368 if test -n "$AR"; then
1369 echo "$ac_t""$AR" 1>&6
1370 else
1371 echo "$ac_t""no" 1>&6
1376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1382 else
1383 if test -n "$RANLIB"; then
1384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1385 else
1386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1387 ac_dummy="$PATH"
1388 for ac_dir in $ac_dummy; do
1389 test -z "$ac_dir" && ac_dir=.
1390 if test -f $ac_dir/$ac_word; then
1391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1392 break
1394 done
1395 IFS="$ac_save_ifs"
1398 RANLIB="$ac_cv_prog_RANLIB"
1399 if test -n "$RANLIB"; then
1400 echo "$ac_t""$RANLIB" 1>&6
1401 else
1402 echo "$ac_t""no" 1>&6
1406 if test -z "$ac_cv_prog_RANLIB"; then
1407 if test -n "$ac_tool_prefix"; then
1408 # Extract the first word of "ranlib", so it can be a program name with args.
1409 set dummy ranlib; ac_word=$2
1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411 echo "configure:1412: checking for $ac_word" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415 if test -n "$RANLIB"; then
1416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1417 else
1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1419 ac_dummy="$PATH"
1420 for ac_dir in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir=.
1422 if test -f $ac_dir/$ac_word; then
1423 ac_cv_prog_RANLIB="ranlib"
1424 break
1426 done
1427 IFS="$ac_save_ifs"
1428 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1431 RANLIB="$ac_cv_prog_RANLIB"
1432 if test -n "$RANLIB"; then
1433 echo "$ac_t""$RANLIB" 1>&6
1434 else
1435 echo "$ac_t""no" 1>&6
1438 else
1439 RANLIB="ranlib-not-found-in-path-error"
1443 # Find a good install program. We prefer a C program (faster),
1444 # so one script is as good as another. But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1449 # AIX /bin/install
1450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1453 # ./install, which can be erroneously created by make from ./install.sh.
1454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1455 echo "configure:1456: checking for a BSD compatible install" >&5
1456 if test -z "$INSTALL"; then
1457 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1461 for ac_dir in $PATH; do
1462 # Account for people who put trailing slashes in PATH elements.
1463 case "$ac_dir/" in
1464 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1466 # OSF1 and SCO ODT 3.0 have their own names for install.
1467 # Don't use installbsd from OSF since it installs stuff as root
1468 # by default.
1469 for ac_prog in ginstall scoinst install; do
1470 if test -f $ac_dir/$ac_prog; then
1471 if test $ac_prog = install &&
1472 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1473 # AIX install. It has an incompatible calling convention.
1475 else
1476 ac_cv_path_install="$ac_dir/$ac_prog -c"
1477 break 2
1480 done
1482 esac
1483 done
1484 IFS="$ac_save_IFS"
1487 if test "${ac_cv_path_install+set}" = set; then
1488 INSTALL="$ac_cv_path_install"
1489 else
1490 # As a last resort, use the slow shell script. We don't cache a
1491 # path for INSTALL within a source directory, because that will
1492 # break other packages using the cache if that directory is
1493 # removed, or if the path is relative.
1494 INSTALL="$ac_install_sh"
1497 echo "$ac_t""$INSTALL" 1>&6
1499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1500 # It thinks the first close brace ends the variable substitution.
1501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1508 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1509 echo "configure:1510: checking whether to enable maintainer-specific portions of Makefiles" >&5
1510 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1511 if test "${enable_maintainer_mode+set}" = set; then
1512 enableval="$enable_maintainer_mode"
1513 USE_MAINTAINER_MODE=$enableval
1514 else
1515 USE_MAINTAINER_MODE=no
1518 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1521 if test $USE_MAINTAINER_MODE = yes; then
1522 MAINTAINER_MODE_TRUE=
1523 MAINTAINER_MODE_FALSE='#'
1524 else
1525 MAINTAINER_MODE_TRUE='#'
1526 MAINTAINER_MODE_FALSE=
1528 MAINT=$MAINTAINER_MODE_TRUE
1532 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1533 # at least currently, we never actually build a program, so we never
1534 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1535 # fails, because we are probably configuring with a cross compiler
1536 # which cant create executables. So we include AC_EXEEXT to keep
1537 # automake happy, but we dont execute it, since we dont care about
1538 # the result.
1539 if false; then
1540 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1541 # to nothing, so nothing would remain between `then' and `fi' if it
1542 # were not for the `:' below.
1546 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1547 echo "configure:1548: checking for executable suffix" >&5
1548 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1552 ac_cv_exeext=.exe
1553 else
1554 rm -f conftest*
1555 echo 'int main () { return 0; }' > conftest.$ac_ext
1556 ac_cv_exeext=
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1558 for file in conftest.*; do
1559 case $file in
1560 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1561 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1562 esac
1563 done
1564 else
1565 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1567 rm -f conftest*
1568 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1572 EXEEXT=""
1573 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1574 echo "$ac_t""${ac_cv_exeext}" 1>&6
1575 ac_exeext=$EXEEXT
1579 . ${glibcpp_basedir}/configure.host
1581 case ${glibcpp_basedir} in
1582 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1583 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1584 esac
1586 # This does for the target what configure.host does for the host. In
1587 # addition to possibly modifying the same flags, it also sets up symlinks.
1589 . ${glibcpp_basedir}/configure.target
1590 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1591 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1597 # Check whether --enable-shared or --disable-shared was given.
1598 if test "${enable_shared+set}" = set; then
1599 enableval="$enable_shared"
1600 p=${PACKAGE-default}
1601 case $enableval in
1602 yes) enable_shared=yes ;;
1603 no) enable_shared=no ;;
1605 enable_shared=no
1606 # Look at the argument we got. We use all the common list separators.
1607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1608 for pkg in $enableval; do
1609 if test "X$pkg" = "X$p"; then
1610 enable_shared=yes
1612 done
1613 IFS="$ac_save_ifs"
1615 esac
1616 else
1617 enable_shared=yes
1620 # Check whether --enable-static or --disable-static was given.
1621 if test "${enable_static+set}" = set; then
1622 enableval="$enable_static"
1623 p=${PACKAGE-default}
1624 case $enableval in
1625 yes) enable_static=yes ;;
1626 no) enable_static=no ;;
1628 enable_static=no
1629 # Look at the argument we got. We use all the common list separators.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1631 for pkg in $enableval; do
1632 if test "X$pkg" = "X$p"; then
1633 enable_static=yes
1635 done
1636 IFS="$ac_save_ifs"
1638 esac
1639 else
1640 enable_static=yes
1643 # Check whether --enable-fast-install or --disable-fast-install was given.
1644 if test "${enable_fast_install+set}" = set; then
1645 enableval="$enable_fast_install"
1646 p=${PACKAGE-default}
1647 case $enableval in
1648 yes) enable_fast_install=yes ;;
1649 no) enable_fast_install=no ;;
1651 enable_fast_install=no
1652 # Look at the argument we got. We use all the common list separators.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1654 for pkg in $enableval; do
1655 if test "X$pkg" = "X$p"; then
1656 enable_fast_install=yes
1658 done
1659 IFS="$ac_save_ifs"
1661 esac
1662 else
1663 enable_fast_install=yes
1666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1667 if test "${with_gnu_ld+set}" = set; then
1668 withval="$with_gnu_ld"
1669 test "$withval" = no || with_gnu_ld=yes
1670 else
1671 with_gnu_ld=no
1674 ac_prog=ld
1675 if test "$GCC" = yes; then
1676 # Check if gcc -print-prog-name=ld gives a path.
1677 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1678 echo "configure:1679: checking for ld used by GCC" >&5
1679 case $host in
1680 *-*-mingw*)
1681 # gcc leaves a trailing carriage return which upsets mingw
1682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1685 esac
1686 case $ac_prog in
1687 # Accept absolute paths.
1688 [\\/]* | [A-Za-z]:[\\/]*)
1689 re_direlt='/[^/][^/]*/\.\./'
1690 # Canonicalize the path of ld
1691 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1692 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1693 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1694 done
1695 test -z "$LD" && LD="$ac_prog"
1698 # If it fails, then pretend we aren't using GCC.
1699 ac_prog=ld
1702 # If it is relative, then search for the first ld in PATH.
1703 with_gnu_ld=unknown
1705 esac
1706 elif test "$with_gnu_ld" = yes; then
1707 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1708 echo "configure:1709: checking for GNU ld" >&5
1709 else
1710 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1711 echo "configure:1712: checking for non-GNU ld" >&5
1713 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716 if test -z "$LD"; then
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1718 for ac_dir in $PATH; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1721 lt_cv_path_LD="$ac_dir/$ac_prog"
1722 # Check to see if the program is GNU ld. I'd rather use --version,
1723 # but apparently some GNU ld's only accept -v.
1724 # Break only if it was the GNU/non-GNU ld that we prefer.
1725 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1726 test "$with_gnu_ld" != no && break
1727 else
1728 test "$with_gnu_ld" != yes && break
1731 done
1732 IFS="$ac_save_ifs"
1733 else
1734 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1738 LD="$lt_cv_path_LD"
1739 if test -n "$LD"; then
1740 echo "$ac_t""$LD" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1744 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1745 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1746 echo "configure:1747: checking if the linker ($LD) is GNU ld" >&5
1747 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1751 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1752 lt_cv_prog_gnu_ld=yes
1753 else
1754 lt_cv_prog_gnu_ld=no
1758 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1759 with_gnu_ld=$lt_cv_prog_gnu_ld
1762 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $LD option to reload object files" >&5
1764 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767 lt_cv_ld_reload_flag='-r'
1770 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1771 reload_flag=$lt_cv_ld_reload_flag
1772 test -n "$reload_flag" && reload_flag=" $reload_flag"
1774 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1775 echo "configure:1776: checking for BSD-compatible nm" >&5
1776 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 if test -n "$NM"; then
1780 # Let the user override the test.
1781 lt_cv_path_NM="$NM"
1782 else
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1784 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1785 test -z "$ac_dir" && ac_dir=.
1786 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1787 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1788 # Check to see if the nm accepts a BSD-compat flag.
1789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1790 # nm: unknown option "B" ignored
1791 # Tru64's nm complains that /dev/null is an invalid object file
1792 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1793 lt_cv_path_NM="$tmp_nm -B"
1794 break
1795 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1796 lt_cv_path_NM="$tmp_nm -p"
1797 break
1798 else
1799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1800 continue # so that we can try to find one that supports BSD flags
1803 done
1804 IFS="$ac_save_ifs"
1805 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1809 NM="$lt_cv_path_NM"
1810 echo "$ac_t""$NM" 1>&6
1812 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ln -s works" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 rm -f conftestdata
1818 if ln -s X conftestdata 2>/dev/null
1819 then
1820 rm -f conftestdata
1821 ac_cv_prog_LN_S="ln -s"
1822 else
1823 ac_cv_prog_LN_S=ln
1826 LN_S="$ac_cv_prog_LN_S"
1827 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1828 echo "$ac_t""yes" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1833 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1834 echo "configure:1835: checking how to recognise dependant libraries" >&5
1835 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 lt_cv_file_magic_cmd='$MAGIC_CMD'
1839 lt_cv_file_magic_test_file=
1840 lt_cv_deplibs_check_method='unknown'
1841 # Need to set the preceding variable on all platforms that support
1842 # interlibrary dependencies.
1843 # 'none' -- dependencies not supported.
1844 # `unknown' -- same as none, but documents that we really don't know.
1845 # 'pass_all' -- all dependencies passed with no checks.
1846 # 'test_compile' -- check by making test program.
1847 # 'file_magic [regex]' -- check by looking for files in library path
1848 # which responds to the $file_magic_cmd with a given egrep regex.
1849 # If you have `file' or equivalent on your system and you're not sure
1850 # whether `pass_all' will *always* work, you probably want this one.
1852 case $host_os in
1853 aix*)
1854 lt_cv_deplibs_check_method=pass_all
1857 beos*)
1858 lt_cv_deplibs_check_method=pass_all
1861 bsdi4*)
1862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1863 lt_cv_file_magic_cmd='/usr/bin/file -L'
1864 lt_cv_file_magic_test_file=/shlib/libc.so
1867 cygwin* | mingw* |pw32*)
1868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1869 lt_cv_file_magic_cmd='$OBJDUMP -f'
1872 darwin* | rhapsody*)
1873 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1874 lt_cv_file_magic_cmd='/usr/bin/file -L'
1875 case "$host_os" in
1876 rhapsody* | darwin1.012)
1877 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1879 *) # Darwin 1.3 on
1880 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1882 esac
1885 freebsd* )
1886 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1887 case $host_cpu in
1888 i*86 )
1889 # Not sure whether the presence of OpenBSD here was a mistake.
1890 # Let's accept both of them until this is cleared up.
1891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1892 lt_cv_file_magic_cmd=/usr/bin/file
1893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1895 esac
1896 else
1897 lt_cv_deplibs_check_method=pass_all
1901 gnu*)
1902 lt_cv_deplibs_check_method=pass_all
1905 hpux10.20*|hpux11*)
1906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1907 lt_cv_file_magic_cmd=/usr/bin/file
1908 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1911 irix5* | irix6*)
1912 case $host_os in
1913 irix5*)
1914 # this will be overridden with pass_all, but let us keep it just in case
1915 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1918 case $LD in
1919 *-32|*"-32 ") libmagic=32-bit;;
1920 *-n32|*"-n32 ") libmagic=N32;;
1921 *-64|*"-64 ") libmagic=64-bit;;
1922 *) libmagic=never-match;;
1923 esac
1924 # this will be overridden with pass_all, but let us keep it just in case
1925 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1927 esac
1928 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1929 lt_cv_deplibs_check_method=pass_all
1932 # This must be Linux ELF.
1933 linux-gnu*)
1934 case $host_cpu in
1935 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1936 lt_cv_deplibs_check_method=pass_all ;;
1938 # glibc up to 2.1.1 does not perform some relocations on ARM
1939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1940 esac
1941 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1944 netbsd*)
1945 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1946 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1947 else
1948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1952 newsos6)
1953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1954 lt_cv_file_magic_cmd=/usr/bin/file
1955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1958 osf3* | osf4* | osf5*)
1959 # this will be overridden with pass_all, but let us keep it just in case
1960 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1961 lt_cv_file_magic_test_file=/shlib/libc.so
1962 lt_cv_deplibs_check_method=pass_all
1965 sco3.2v5*)
1966 lt_cv_deplibs_check_method=pass_all
1969 solaris*)
1970 lt_cv_deplibs_check_method=pass_all
1971 lt_cv_file_magic_test_file=/lib/libc.so
1974 sysv5uw[78]* | sysv4*uw2*)
1975 lt_cv_deplibs_check_method=pass_all
1978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1979 case $host_vendor in
1980 ncr)
1981 lt_cv_deplibs_check_method=pass_all
1983 motorola)
1984 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]'
1985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1987 esac
1989 esac
1993 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1994 file_magic_cmd=$lt_cv_file_magic_cmd
1995 deplibs_check_method=$lt_cv_deplibs_check_method
1997 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1998 echo "configure:1999: checking for object suffix" >&5
1999 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 rm -f conftest*
2003 echo 'int i = 1;' > conftest.$ac_ext
2004 if { (eval echo configure:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2005 for ac_file in conftest.*; do
2006 case $ac_file in
2007 *.c) ;;
2008 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2009 esac
2010 done
2011 else
2012 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2014 rm -f conftest*
2017 echo "$ac_t""$ac_cv_objext" 1>&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$ac_cv_objext
2021 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2023 # Only perform the check for file, if the check method requires it
2024 case $deplibs_check_method in
2025 file_magic*)
2026 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2027 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2028 echo "configure:2029: checking for ${ac_tool_prefix}file" >&5
2029 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 case $MAGIC_CMD in
2034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2036 ?:/*)
2037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2040 ac_save_MAGIC_CMD="$MAGIC_CMD"
2041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 ac_dummy="/usr/bin:$PATH"
2043 for ac_dir in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/${ac_tool_prefix}file; then
2046 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2047 if test -n "$file_magic_test_file"; then
2048 case $deplibs_check_method in
2049 "file_magic "*)
2050 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2053 egrep "$file_magic_regex" > /dev/null; then
2055 else
2056 cat <<EOF 1>&2
2058 *** Warning: the command libtool uses to detect shared libraries,
2059 *** $file_magic_cmd, produces output that libtool cannot recognize.
2060 *** The result is that libtool may fail to recognize shared libraries
2061 *** as such. This will affect the creation of libtool libraries that
2062 *** depend on shared libraries, but programs linked with such libtool
2063 *** libraries will work regardless of this problem. Nevertheless, you
2064 *** may want to report the problem to your system manager and/or to
2065 *** bug-libtool@gnu.org
2068 fi ;;
2069 esac
2071 break
2073 done
2074 IFS="$ac_save_ifs"
2075 MAGIC_CMD="$ac_save_MAGIC_CMD"
2077 esac
2080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2081 if test -n "$MAGIC_CMD"; then
2082 echo "$ac_t""$MAGIC_CMD" 1>&6
2083 else
2084 echo "$ac_t""no" 1>&6
2087 if test -z "$lt_cv_path_MAGIC_CMD"; then
2088 if test -n "$ac_tool_prefix"; then
2089 echo $ac_n "checking for file""... $ac_c" 1>&6
2090 echo "configure:2091: checking for file" >&5
2091 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 case $MAGIC_CMD in
2096 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2098 ?:/*)
2099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2102 ac_save_MAGIC_CMD="$MAGIC_CMD"
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2104 ac_dummy="/usr/bin:$PATH"
2105 for ac_dir in $ac_dummy; do
2106 test -z "$ac_dir" && ac_dir=.
2107 if test -f $ac_dir/file; then
2108 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2109 if test -n "$file_magic_test_file"; then
2110 case $deplibs_check_method in
2111 "file_magic "*)
2112 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2115 egrep "$file_magic_regex" > /dev/null; then
2117 else
2118 cat <<EOF 1>&2
2120 *** Warning: the command libtool uses to detect shared libraries,
2121 *** $file_magic_cmd, produces output that libtool cannot recognize.
2122 *** The result is that libtool may fail to recognize shared libraries
2123 *** as such. This will affect the creation of libtool libraries that
2124 *** depend on shared libraries, but programs linked with such libtool
2125 *** libraries will work regardless of this problem. Nevertheless, you
2126 *** may want to report the problem to your system manager and/or to
2127 *** bug-libtool@gnu.org
2130 fi ;;
2131 esac
2133 break
2135 done
2136 IFS="$ac_save_ifs"
2137 MAGIC_CMD="$ac_save_MAGIC_CMD"
2139 esac
2142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2143 if test -n "$MAGIC_CMD"; then
2144 echo "$ac_t""$MAGIC_CMD" 1>&6
2145 else
2146 echo "$ac_t""no" 1>&6
2149 else
2150 MAGIC_CMD=:
2156 esac
2158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_word" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2164 else
2165 if test -n "$RANLIB"; then
2166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2167 else
2168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2169 ac_dummy="$PATH"
2170 for ac_dir in $ac_dummy; do
2171 test -z "$ac_dir" && ac_dir=.
2172 if test -f $ac_dir/$ac_word; then
2173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2174 break
2176 done
2177 IFS="$ac_save_ifs"
2180 RANLIB="$ac_cv_prog_RANLIB"
2181 if test -n "$RANLIB"; then
2182 echo "$ac_t""$RANLIB" 1>&6
2183 else
2184 echo "$ac_t""no" 1>&6
2188 if test -z "$ac_cv_prog_RANLIB"; then
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "ranlib", so it can be a program name with args.
2191 set dummy ranlib; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 if test -n "$RANLIB"; then
2198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2199 else
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="$PATH"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/$ac_word; then
2205 ac_cv_prog_RANLIB="ranlib"
2206 break
2208 done
2209 IFS="$ac_save_ifs"
2210 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2213 RANLIB="$ac_cv_prog_RANLIB"
2214 if test -n "$RANLIB"; then
2215 echo "$ac_t""$RANLIB" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2220 else
2221 RANLIB=":"
2225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}strip; ac_word=$2
2227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_word" >&5
2229 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 if test -n "$STRIP"; then
2233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2234 else
2235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2236 ac_dummy="$PATH"
2237 for ac_dir in $ac_dummy; do
2238 test -z "$ac_dir" && ac_dir=.
2239 if test -f $ac_dir/$ac_word; then
2240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2241 break
2243 done
2244 IFS="$ac_save_ifs"
2247 STRIP="$ac_cv_prog_STRIP"
2248 if test -n "$STRIP"; then
2249 echo "$ac_t""$STRIP" 1>&6
2250 else
2251 echo "$ac_t""no" 1>&6
2255 if test -z "$ac_cv_prog_STRIP"; then
2256 if test -n "$ac_tool_prefix"; then
2257 # Extract the first word of "strip", so it can be a program name with args.
2258 set dummy strip; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$STRIP"; then
2265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_dummy="$PATH"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_STRIP="strip"
2273 break
2275 done
2276 IFS="$ac_save_ifs"
2277 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2280 STRIP="$ac_cv_prog_STRIP"
2281 if test -n "$STRIP"; then
2282 echo "$ac_t""$STRIP" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2287 else
2288 STRIP=":"
2293 # Check for any special flags to pass to ltconfig.
2294 libtool_flags="--cache-file=$cache_file"
2295 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2296 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2297 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2298 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2299 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2300 libtool_flags="$libtool_flags --enable-dlopen"
2302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2303 if test "${enable_libtool_lock+set}" = set; then
2304 enableval="$enable_libtool_lock"
2308 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2309 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2311 # Check whether --with-pic or --without-pic was given.
2312 if test "${with_pic+set}" = set; then
2313 withval="$with_pic"
2314 pic_mode="$withval"
2315 else
2316 pic_mode=default
2319 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2320 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2322 # Some flags need to be propagated to the compiler or linker for good
2323 # libtool support.
2324 case $host in
2325 *-*-irix6*)
2326 # Find out which ABI we are using.
2327 echo '#line 2328 "configure"' > conftest.$ac_ext
2328 if { (eval echo configure:2329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329 case `/usr/bin/file conftest.$ac_objext` in
2330 *32-bit*)
2331 LD="${LD-ld} -32"
2333 *N32*)
2334 LD="${LD-ld} -n32"
2336 *64-bit*)
2337 LD="${LD-ld} -64"
2339 esac
2341 rm -rf conftest*
2344 *-*-sco3.2v5*)
2345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2346 SAVE_CFLAGS="$CFLAGS"
2347 CFLAGS="$CFLAGS -belf"
2348 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether the C compiler needs -belf" >&5
2350 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2354 ac_ext=c
2355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2359 cross_compiling=$ac_cv_prog_cc_cross
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2365 int main() {
2367 ; return 0; }
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370 rm -rf conftest*
2371 lt_cv_cc_needs_belf=yes
2372 else
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -rf conftest*
2376 lt_cv_cc_needs_belf=no
2378 rm -f conftest*
2379 ac_ext=c
2380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2384 cross_compiling=$ac_cv_prog_cc_cross
2388 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2389 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2390 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2391 CFLAGS="$SAVE_CFLAGS"
2396 esac
2398 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2399 echo "configure:2400: checking how to run the C++ preprocessor" >&5
2400 if test -z "$CXXCPP"; then
2401 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404 ac_ext=C
2405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2406 ac_cpp='$CXXCPP $CPPFLAGS'
2407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2409 cross_compiling=$ac_cv_prog_cxx_cross
2410 CXXCPP="${CXX-g++} -E"
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <stdlib.h>
2416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2417 { (eval echo configure:2418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2419 if test -z "$ac_err"; then
2421 else
2422 echo "$ac_err" >&5
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 CXXCPP=/lib/cpp
2428 rm -f conftest*
2429 ac_cv_prog_CXXCPP="$CXXCPP"
2430 ac_ext=c
2431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2435 cross_compiling=$ac_cv_prog_cc_cross
2438 CXXCPP="$ac_cv_prog_CXXCPP"
2439 echo "$ac_t""$CXXCPP" 1>&6
2442 # Save cache, so that ltconfig can load it
2443 cat > confcache <<\EOF
2444 # This file is a shell script that caches the results of configure
2445 # tests run on this system so they can be shared between configure
2446 # scripts and configure runs. It is not useful on other systems.
2447 # If it contains results you don't want to keep, you may remove or edit it.
2449 # By default, configure uses ./config.cache as the cache file,
2450 # creating it if it does not exist already. You can give configure
2451 # the --cache-file=FILE option to use a different cache file; that is
2452 # what configure does when it calls configure scripts in
2453 # subdirectories, so they share the cache.
2454 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2455 # config.status only pays attention to the cache file if you give it the
2456 # --recheck option to rerun configure.
2459 # The following way of writing the cache mishandles newlines in values,
2460 # but we know of no workaround that is simple, portable, and efficient.
2461 # So, don't put newlines in cache variables' values.
2462 # Ultrix sh set writes to stderr and can't be redirected directly,
2463 # and sets the high bit in the cache file unless we assign to the vars.
2464 (set) 2>&1 |
2465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2466 *ac_space=\ *)
2467 # `set' does not quote correctly, so add quotes (double-quote substitution
2468 # turns \\\\ into \\, and sed turns \\ into \).
2469 sed -n \
2470 -e "s/'/'\\\\''/g" \
2471 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2474 # `set' quotes correctly as required by POSIX, so do not add quotes.
2475 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2477 esac >> confcache
2478 if cmp -s $cache_file confcache; then
2480 else
2481 if test -w $cache_file; then
2482 echo "updating cache $cache_file"
2483 cat confcache > $cache_file
2484 else
2485 echo "not updating unwritable cache $cache_file"
2488 rm -f confcache
2491 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2492 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2493 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2494 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2495 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2496 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2497 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2498 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2499 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2500 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2502 # Reload cache, that may have been modified by ltconfig
2503 if test -r "$cache_file"; then
2504 echo "loading cache $cache_file"
2505 . $cache_file
2506 else
2507 echo "creating cache $cache_file"
2508 > $cache_file
2512 # This can be used to rebuild libtool when needed
2513 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2515 # Always use our own libtool.
2516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2518 # Redirect the config.log output again, so that the ltconfig log is not
2519 # clobbered by the next message.
2520 exec 5>>./config.log
2524 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2525 lt_save_CC="$CC"
2526 lt_save_CFLAGS="$CFLAGS"
2527 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2528 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2529 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2530 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2531 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2532 deplibs_check_method="$deplibs_check_method" \
2533 file_magic_cmd="$file_magic_cmd" \
2534 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2535 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2536 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2537 CC="$lt_save_CC"
2538 CFLAGS="$lt_save_CFLAGS"
2540 # Redirect the config.log output again, so that the ltconfig log is not
2541 # clobbered by the next message.
2542 exec 5>>./config.log
2551 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2552 echo "configure:2553: checking for GNU make" >&5
2553 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556 _cv_gnu_make_command='' ;
2557 for a in "${MAKE-make}" make gmake gnumake ; do
2558 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2559 then
2560 _cv_gnu_make_command=$a ;
2561 break;
2563 done ;
2567 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2568 if test "x$_cv_gnu_make_command" != "x" ; then
2569 ifGNUmake='' ;
2570 else
2571 ifGNUmake='#' ;
2582 # Check for c++ or library specific bits that don't require linking.
2584 if test ! -f stamp-sanity-compiler; then
2585 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2586 echo "configure:2587: checking for g++ that will successfully compile libstdc++-v3" >&5
2588 ac_ext=C
2589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2590 ac_cpp='$CXXCPP $CPPFLAGS'
2591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2593 cross_compiling=$ac_cv_prog_cxx_cross
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2599 int main() {
2601 #if __GNUC__ < 3
2602 not_ok
2603 #endif
2605 ; return 0; }
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 rm -rf conftest*
2609 gpp_satisfactory=yes
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2616 rm -f conftest*
2617 ac_ext=c
2618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2622 cross_compiling=$ac_cv_prog_cc_cross
2624 echo "$ac_t""$gpp_satisfactory" 1>&6
2625 touch stamp-sanity-compiler
2629 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2630 # Check whether --enable-debug or --disable-debug was given.
2631 if test "${enable_debug+set}" = set; then
2632 enableval="$enable_debug"
2633 case "${enableval}" in
2634 yes) enable_debug=yes ;;
2635 no) enable_debug=no ;;
2636 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2637 esac
2638 else
2639 enable_debug=no
2642 case "${enable_debug}" in
2643 yes)
2644 DEBUG_FLAGS='-O0 -ggdb3'
2646 no)
2647 DEBUG_FLAGS='-g'
2649 esac
2652 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2653 echo "configure:2654: checking how to run the C preprocessor" >&5
2654 # On Suns, sometimes $CPP names a directory.
2655 if test -n "$CPP" && test -d "$CPP"; then
2656 CPP=
2658 if test -z "$CPP"; then
2659 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 # This must be in double quotes, not single quotes, because CPP may get
2663 # substituted into the Makefile and "${CC-cc}" will confuse make.
2664 CPP="${CC-cc} -E"
2665 # On the NeXT, cc -E runs the code through the compiler's parser,
2666 # not just through cpp.
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <assert.h>
2671 Syntax Error
2673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2674 { (eval echo configure:2675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2676 if test -z "$ac_err"; then
2678 else
2679 echo "$ac_err" >&5
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 rm -rf conftest*
2683 CPP="${CC-cc} -E -traditional-cpp"
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <assert.h>
2688 Syntax Error
2690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691 { (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693 if test -z "$ac_err"; then
2695 else
2696 echo "$ac_err" >&5
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 rm -rf conftest*
2700 CPP="${CC-cc} -nologo -E"
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <assert.h>
2705 Syntax Error
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 else
2713 echo "$ac_err" >&5
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 rm -rf conftest*
2717 CPP=/lib/cpp
2719 rm -f conftest*
2721 rm -f conftest*
2723 rm -f conftest*
2724 ac_cv_prog_CPP="$CPP"
2726 CPP="$ac_cv_prog_CPP"
2727 else
2728 ac_cv_prog_CPP="$CPP"
2730 echo "$ac_t""$CPP" 1>&6
2733 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2734 echo "configure:2735: checking for cstdio to use" >&5
2735 # Check whether --enable-cstdio or --disable-cstdio was given.
2736 if test "${enable_cstdio+set}" = set; then
2737 enableval="$enable_cstdio"
2738 if test x$enable_cstdio = xno; then
2739 enable_cstdio=stdio
2741 else
2742 enable_cstdio=stdio
2746 enable_cstdio_flag=$enable_cstdio
2748 case x${enable_cstdio_flag} in
2749 xlibio)
2750 CSTDIO_H=config/c_io_libio.h
2751 BASIC_FILE_H=config/basic_file_libio.h
2752 BASIC_FILE_CC=config/basic_file_libio.cc
2753 echo "$ac_t""libio" 1>&6
2755 # see if we are on a system with libio native (ie, linux)
2756 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2758 echo "configure:2759: checking for libio.h" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 #include <libio.h>
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771 rm -rf conftest*
2772 eval "ac_cv_header_$ac_safe=yes"
2773 else
2774 echo "$ac_err" >&5
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 eval "ac_cv_header_$ac_safe=no"
2780 rm -f conftest*
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 has_libio=yes
2785 else
2786 echo "$ac_t""no" 1>&6
2787 has_libio=no
2791 # Need to check and see what version of glibc is being used. If
2792 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2793 # compile most of libio for linux systems.
2794 if test x$has_libio = x"yes"; then
2795 case "$target" in
2796 *-*-linux*)
2797 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2798 echo "configure:2799: checking for glibc version >= 2.2" >&5
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2803 #include <features.h>
2804 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2806 #endif
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810 egrep "ok" >/dev/null 2>&1; then
2811 rm -rf conftest*
2812 glibc_satisfactory=yes
2813 else
2814 rm -rf conftest*
2815 glibc_satisfactory=no
2817 rm -f conftest*
2819 echo "$ac_t""$glibc_satisfactory" 1>&6
2821 esac
2823 # XXX at the moment, admit defeat and force the recompilation
2824 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2825 glibc_satisfactory=no
2827 if test x$glibc_satisfactory = x"yes"; then
2828 need_libio=no
2829 need_wlibio=no
2830 else
2831 need_libio=yes
2832 # bkoz XXX need to add checks to enable this
2833 # pme XXX here's a first pass at such a check
2834 if test x$enable_c_mbchar != xno; then
2835 need_wlibio=yes
2836 else
2837 need_wlibio=no
2841 else
2842 # Using libio, but <libio.h> doesn't exist on the target system. . .
2843 need_libio=yes
2844 # bkoz XXX need to add checks to enable this
2845 # pme XXX here's a first pass at such a check
2846 if test x$enable_c_mbchar != xno; then
2847 need_wlibio=yes
2848 else
2849 need_wlibio=no
2853 xstdio | x | xno | xnone | xyes)
2854 # default
2855 CSTDIO_H=config/c_io_stdio.h
2856 BASIC_FILE_H=config/basic_file_stdio.h
2857 BASIC_FILE_CC=config/basic_file_stdio.cc
2858 echo "$ac_t""stdio" 1>&6
2860 # We're not using stdio.
2861 need_libio=no
2862 need_wlibio=no
2865 echo "$enable_cstdio is an unknown io package" 1>&2
2866 exit 1
2868 esac
2873 # 2000-08-04 bkoz hack
2874 CCODECVT_C=config/c_io_libio_codecvt.c
2876 # 2000-08-04 bkoz hack
2880 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2881 GLIBCPP_BUILD_LIBIO_TRUE=
2882 GLIBCPP_BUILD_LIBIO_FALSE='#'
2883 else
2884 GLIBCPP_BUILD_LIBIO_TRUE='#'
2885 GLIBCPP_BUILD_LIBIO_FALSE=
2889 if test "$need_libio" = yes; then
2890 GLIBCPP_NEED_LIBIO_TRUE=
2891 GLIBCPP_NEED_LIBIO_FALSE='#'
2892 else
2893 GLIBCPP_NEED_LIBIO_TRUE='#'
2894 GLIBCPP_NEED_LIBIO_FALSE=
2898 if test "$need_wlibio" = yes; then
2899 GLIBCPP_NEED_WLIBIO_TRUE=
2900 GLIBCPP_NEED_WLIBIO_FALSE='#'
2901 else
2902 GLIBCPP_NEED_WLIBIO_TRUE='#'
2903 GLIBCPP_NEED_WLIBIO_FALSE=
2905 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2906 libio_la=../libio/libio.la
2907 else
2908 libio_la=
2913 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2914 echo "configure:2915: checking for clocale to use" >&5
2915 # Check whether --enable-clocale or --disable-clocale was given.
2916 if test "${enable_clocale+set}" = set; then
2917 enableval="$enable_clocale"
2918 if test x$enable_clocale = xno; then
2919 enable_clocale=generic
2921 else
2922 enable_clocale=generic
2926 enable_clocale_flag=$enable_clocale
2928 case x${enable_clocale_flag} in
2929 xgnu)
2930 CLOCALE_H=config/c_locale_gnu.h
2931 CLOCALE_CC=config/c_locale_gnu.cc
2932 echo "$ac_t""gnu" 1>&6
2934 xgeneric)
2935 CLOCALE_H=config/c_locale_generic.h
2936 CLOCALE_CC=config/c_locale_generic.cc
2937 echo "$ac_t""generic" 1>&6
2940 echo "$enable_clocale is an unknown locale package" 1>&2
2941 exit 1
2943 esac
2948 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2949 if test "${enable_c_mbchar+set}" = set; then
2950 enableval="$enable_c_mbchar"
2951 case "$enableval" in
2952 yes) enable_c_mbchar=yes ;;
2953 no) enable_c_mbchar=no ;;
2954 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2955 esac
2956 else
2957 enable_c_mbchar=yes
2961 # Check whether --enable-c99 or --disable-c99 was given.
2962 if test "${enable_c99+set}" = set; then
2963 enableval="$enable_c99"
2964 case "$enableval" in
2965 yes) enable_c99=yes ;;
2966 no) enable_c99=no ;;
2967 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2968 esac
2969 else
2970 enable_c99=yes
2974 ac_ext=C
2975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2979 cross_compiling=$ac_cv_prog_cxx_cross
2982 # Check for the existence of <math.h> functions used if C99 is enabled.
2983 ac_c99_math=yes;
2984 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2985 echo "configure:2986: checking for ISO C99 support in <math.h>" >&5
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <math.h>
2990 int main() {
2991 fpclassify(0.0);
2992 ; return 0; }
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996 else
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
2999 rm -rf conftest*
3000 ac_c99_math=no
3002 rm -f conftest*
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <math.h>
3007 int main() {
3008 isfinite(0.0);
3009 ; return 0; }
3011 if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013 else
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 rm -rf conftest*
3017 ac_c99_math=no
3019 rm -f conftest*
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <math.h>
3024 int main() {
3025 isinf(0.0);
3026 ; return 0; }
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 else
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3033 rm -rf conftest*
3034 ac_c99_math=no
3036 rm -f conftest*
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <math.h>
3041 int main() {
3042 isnan(0.0);
3043 ; return 0; }
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3047 else
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 ac_c99_math=no
3053 rm -f conftest*
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <math.h>
3058 int main() {
3059 isnormal(0.0);
3060 ; return 0; }
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064 else
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 rm -rf conftest*
3068 ac_c99_math=no
3070 rm -f conftest*
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <math.h>
3075 int main() {
3076 signbit(0.0);
3077 ; return 0; }
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 else
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3084 rm -rf conftest*
3085 ac_c99_math=no
3087 rm -f conftest*
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #include <math.h>
3092 int main() {
3093 isgreater(0.0,0.0);
3094 ; return 0; }
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 else
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3101 rm -rf conftest*
3102 ac_c99_math=no
3104 rm -f conftest*
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <math.h>
3109 int main() {
3110 isgreaterequal(0.0,0.0);
3111 ; return 0; }
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 else
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118 rm -rf conftest*
3119 ac_c99_math=no
3121 rm -f conftest*
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <math.h>
3126 int main() {
3127 isless(0.0,0.0);
3128 ; return 0; }
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132 else
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3135 rm -rf conftest*
3136 ac_c99_math=no
3138 rm -f conftest*
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 #include <math.h>
3143 int main() {
3144 islessequal(0.0,0.0);
3145 ; return 0; }
3147 if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149 else
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 rm -rf conftest*
3153 ac_c99_math=no
3155 rm -f conftest*
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <math.h>
3160 int main() {
3161 islessgreater(0.0,0.0);
3162 ; return 0; }
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166 else
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 rm -rf conftest*
3170 ac_c99_math=no
3172 rm -f conftest*
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <math.h>
3177 int main() {
3178 isunordered(0.0,0.0);
3179 ; return 0; }
3181 if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 rm -rf conftest*
3187 ac_c99_math=no
3189 rm -f conftest*
3190 echo "$ac_t""$ac_c99_math" 1>&6
3192 # Check for the existence in <stdio.h> of vscanf, et. al.
3193 ac_c99_stdio=yes;
3194 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3195 echo "configure:3196: checking for ISO C99 support in <stdio.h>" >&5
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <stdio.h>
3200 int main() {
3201 snprintf("12", 0, "%i");
3202 ; return 0; }
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 ac_c99_stdio=no
3212 rm -f conftest*
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <stdio.h>
3217 #include <stdarg.h>
3218 void foo(char* fmt, ...)
3219 {va_list args; va_start(args, fmt);
3220 vfscanf(stderr, "%i", args);}
3221 int main() {
3223 ; return 0; }
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227 else
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3230 rm -rf conftest*
3231 ac_c99_stdio=no
3233 rm -f conftest*
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <stdio.h>
3238 #include <stdarg.h>
3239 void foo(char* fmt, ...)
3240 {va_list args; va_start(args, fmt);
3241 vscanf("%i", args);}
3242 int main() {
3244 ; return 0; }
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 else
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 ac_c99_stdio=no
3254 rm -f conftest*
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <stdio.h>
3259 #include <stdarg.h>
3260 void foo(char* fmt, ...)
3261 {va_list args; va_start(args, fmt);
3262 vsnprintf(fmt, 0, "%i", args);}
3263 int main() {
3265 ; return 0; }
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 else
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3272 rm -rf conftest*
3273 ac_c99_stdio=no
3275 rm -f conftest*
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <stdio.h>
3280 #include <stdarg.h>
3281 void foo(char* fmt, ...)
3282 {va_list args; va_start(args, fmt);
3283 vsscanf(fmt, "%i", args);}
3284 int main() {
3286 ; return 0; }
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 else
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 rm -rf conftest*
3294 ac_c99_stdio=no
3296 rm -f conftest*
3297 echo "$ac_t""$ac_c99_stdio" 1>&6
3299 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3300 ac_c99_stdlib=yes;
3301 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3302 echo "configure:3303: checking for lldiv_t declaration" >&5
3303 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <stdlib.h>
3311 int main() {
3312 lldiv_t mydivt;
3313 ; return 0; }
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 rm -rf conftest*
3317 ac_c99_lldiv_t=yes
3318 else
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 rm -rf conftest*
3322 ac_c99_lldiv_t=no
3324 rm -f conftest*
3328 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3330 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3331 echo "configure:3332: checking for ISO C99 support in <stdlib.h>" >&5
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <stdlib.h>
3336 int main() {
3337 char* tmp; strtof("gnu", &tmp);
3338 ; return 0; }
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342 else
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 ac_c99_stdlib=no
3348 rm -f conftest*
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <stdlib.h>
3353 int main() {
3354 char* tmp; strtold("gnu", &tmp);
3355 ; return 0; }
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359 else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 ac_c99_stdlib=no
3365 rm -f conftest*
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <stdlib.h>
3370 int main() {
3371 char* tmp; strtoll("gnu", &tmp, 10);
3372 ; return 0; }
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376 else
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 rm -rf conftest*
3380 ac_c99_stdlib=no
3382 rm -f conftest*
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <stdlib.h>
3387 int main() {
3388 char* tmp; strtoull("gnu", &tmp, 10);
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 ac_c99_stdlib=no
3399 rm -f conftest*
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <stdlib.h>
3404 int main() {
3405 llabs(10);
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3410 else
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 rm -rf conftest*
3414 ac_c99_stdlib=no
3416 rm -f conftest*
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <stdlib.h>
3421 int main() {
3422 lldiv(10,1);
3423 ; return 0; }
3425 if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 ac_c99_stdlib=no
3433 rm -f conftest*
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <stdlib.h>
3438 int main() {
3439 atoll("10");
3440 ; return 0; }
3442 if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444 else
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 rm -rf conftest*
3448 ac_c99_stdlib=no
3450 rm -f conftest*
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <stdlib.h>
3455 int main() {
3456 _Exit(0);
3457 ; return 0; }
3459 if { (eval echo configure:3460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3461 else
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 rm -rf conftest*
3465 ac_c99_stdlib=no
3467 rm -f conftest*
3468 if test x"$ac_c99_lldiv_t" = x"no"; then
3469 ac_c99_stdlib=no;
3470 fi;
3471 echo "$ac_t""$ac_c99_stdlib" 1>&6
3473 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3474 # XXX the wchar.h checks should be rolled into the general C99 bits.
3475 ac_c99_wchar=yes;
3476 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3477 echo "configure:3478: checking for additional ISO C99 support in <wchar.h>" >&5
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <wchar.h>
3482 int main() {
3483 wcstold(L"10.0", NULL);
3484 ; return 0; }
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3488 else
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3491 rm -rf conftest*
3492 ac_c99_wchar=no
3494 rm -f conftest*
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <wchar.h>
3499 int main() {
3500 wcstoll(L"10", NULL, 10);
3501 ; return 0; }
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 else
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3508 rm -rf conftest*
3509 ac_c99_wchar=no
3511 rm -f conftest*
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <wchar.h>
3516 int main() {
3517 wcstoull(L"10", NULL, 10);
3518 ; return 0; }
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 else
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 rm -rf conftest*
3526 ac_c99_wchar=no
3528 rm -f conftest*
3529 echo "$ac_t""$ac_c99_wchar" 1>&6
3531 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3532 echo "configure:3533: checking for enabled ISO C99 support" >&5
3533 if test x"$ac_c99_math" = x"no" ||
3534 test x"$ac_c99_stdio" = x"no" ||
3535 test x"$ac_c99_stdlib" = x"no" ||
3536 test x"$ac_c99_wchar" = x"no"; then
3537 enable_c99=no;
3538 fi;
3539 echo "$ac_t""$enable_c99" 1>&6
3541 # Option parsed, now set things appropriately
3542 if test x"$enable_c99" = x"yes"; then
3543 cat >> confdefs.h <<\EOF
3544 #define _GLIBCPP_USE_C99 1
3549 ac_ext=c
3550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3554 cross_compiling=$ac_cv_prog_cc_cross
3558 # Check whether --enable-long-long or --disable-long-long was given.
3559 if test "${enable_long_long+set}" = set; then
3560 enableval="$enable_long_long"
3561 case "$enableval" in
3562 yes) enable_long_long=yes ;;
3563 no) enable_long_long=no ;;
3564 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3565 esac
3566 else
3567 enable_long_long=yes
3570 # iostreams require strtoll, strtoull to compile. If the
3571 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3572 # go ahead and allow long long to be used.
3573 if test x"$enable_c99" = x"no"; then
3574 enable_long_long=no;
3577 # Option parsed, now set things appropriately
3578 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3579 echo "configure:3580: checking for enabled long long support" >&5
3580 if test x"$enable_long_long" = xyes; then
3581 cat >> confdefs.h <<\EOF
3582 #define _GLIBCPP_USE_LONG_LONG 1
3586 echo "$ac_t""$enable_long_long" 1>&6
3588 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3589 echo "configure:3590: checking for c header strategy to use" >&5
3590 # Check whether --enable-cheaders or --disable-cheaders was given.
3591 if test "${enable_cheaders+set}" = set; then
3592 enableval="$enable_cheaders"
3594 case "$enableval" in
3596 enable_cheaders=c
3598 c_std)
3599 enable_cheaders=c_std
3601 c_shadow)
3602 enable_cheaders=c_shadow
3604 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3606 esac
3607 else
3608 enable_cheaders=c_std
3611 echo "$ac_t""$enable_cheaders" 1>&6
3613 case "$enable_cheaders" in
3614 c_shadow)
3615 CSHADOW_FLAGS="-fno-builtin"
3616 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3617 cat >> confdefs.h <<\EOF
3618 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3622 c_std)
3623 CSHADOW_FLAGS=""
3624 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3627 CSHADOW_FLAGS=""
3628 C_INCLUDE_DIR='${top_srcdir}/include/c'
3630 esac
3636 if test "$enable_cheaders" = c_shadow; then
3637 GLIBCPP_USE_CSHADOW_TRUE=
3638 GLIBCPP_USE_CSHADOW_FALSE='#'
3639 else
3640 GLIBCPP_USE_CSHADOW_TRUE='#'
3641 GLIBCPP_USE_CSHADOW_FALSE=
3645 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3646 echo "configure:3647: checking for thread model used by GCC" >&5
3647 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3648 echo "$ac_t""$target_thread_file" 1>&6
3653 if test $target_thread_file != single; then
3654 cat >> confdefs.h <<\EOF
3655 #define HAVE_GTHR_DEFAULT 1
3658 cat >> confdefs.h <<\EOF
3659 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3665 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3666 if test "${enable_cxx_flags+set}" = set; then
3667 enableval="$enable_cxx_flags"
3668 case "x$enableval" in
3669 xyes)
3670 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3671 xno|x)
3672 enable_cxx_flags='' ;;
3674 enable_cxx_flags="$enableval" ;;
3675 esac
3676 else
3677 enable_cxx_flags='none'
3681 if test "$enable_cxx_flags" = "none"; then
3682 enable_cxx_flags='';
3685 if test -n "$enable_cxx_flags"; then
3686 for f in $enable_cxx_flags; do
3687 case "$f" in
3688 -fhonor-std) ;;
3689 -*) ;;
3690 *) # and we're trying to pass /what/ exactly?
3691 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3692 esac
3693 done
3695 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3699 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3700 echo "configure:3701: checking for exception model to use" >&5
3702 ac_ext=C
3703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3707 cross_compiling=$ac_cv_prog_cxx_cross
3709 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3710 if test "${enable_sjlj_exceptions+set}" = set; then
3711 enableval="$enable_sjlj_exceptions"
3713 else
3714 cat > conftest.$ac_ext << EOF
3715 #line 3716 "configure"
3716 struct S { ~S(); };
3717 void bar();
3718 void foo()
3720 S s;
3721 bar();
3724 old_CXXFLAGS="$CXXFLAGS"
3725 CXXFLAGS=-S
3726 if { (eval echo configure:3727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3728 enable_sjlj_exceptions=yes
3729 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3730 enable_sjlj_exceptions=no
3733 CXXFLAGS="$old_CXXFLAGS"
3734 rm -f conftest*
3737 if test x$enable_sjlj_exceptions = xyes; then
3738 cat >> confdefs.h <<\EOF
3739 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3742 ac_exception_model_name=sjlj
3743 elif test x$enable_sjlj_exceptions = xno; then
3744 ac_exception_model_name="call frame"
3745 else
3746 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3748 ac_ext=c
3749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3753 cross_compiling=$ac_cv_prog_cc_cross
3755 echo "$ac_t""$ac_exception_model_name" 1>&6
3758 if test -n "$with_cross_host"; then
3760 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3761 # may not work correctly, because the compiler may not be able to
3762 # link executables.
3763 xcompiling=1
3764 NATIVE=no
3766 # If Canadian cross, then don't pick up tools from the build
3767 # directory.
3768 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3769 CANADIAN=yes
3770 NULL_TARGET=yes
3771 else
3772 CANADIAN=no
3773 NULL_TARGET=no
3776 case "$target_alias" in
3777 *-linux*)
3778 # Construct linux crosses by hand, eliminating bits that need ld...
3779 # Check for available headers.
3780 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3781 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3782 float.h inttypes.h
3784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3786 echo "configure:3787: checking for $ac_hdr" >&5
3787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3789 else
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <$ac_hdr>
3795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3796 { (eval echo configure:3797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3798 if test -z "$ac_err"; then
3799 rm -rf conftest*
3800 eval "ac_cv_header_$ac_safe=yes"
3801 else
3802 echo "$ac_err" >&5
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 rm -rf conftest*
3806 eval "ac_cv_header_$ac_safe=no"
3808 rm -f conftest*
3810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3813 cat >> confdefs.h <<EOF
3814 #define $ac_tr_hdr 1
3817 else
3818 echo "$ac_t""no" 1>&6
3820 done
3823 # GLIBCPP_CHECK_COMPILER_FEATURES
3824 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3827 # If we're not using GNU ld, then there's no point in even trying these
3828 # tests. Check for that first. We should have already tested for gld
3829 # by now (in libtool), but require it now just to be safe...
3830 SECTION_LDFLAGS=''
3831 OPT_LDFLAGS=''
3834 # Set --gc-sections.
3835 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3836 # GNU ld it is! Joy and bunny rabbits!
3838 # All these tests are for C++; save the language and the compiler flags.
3839 # Need to do this so that g++ won't try to link in libstdc++
3840 ac_test_CFLAGS="${CFLAGS+set}"
3841 ac_save_CFLAGS="$CFLAGS"
3842 CFLAGS='-x c++ -Wl,--gc-sections'
3844 # Check for -Wl,--gc-sections
3845 # XXX This test is broken at the moment, as symbols required for
3846 # linking are now in libsupc++ (not built yet.....). In addition,
3847 # this test has cored on solaris in the past. In addition,
3848 # --gc-sections doesn't really work at the moment (keeps on discarding
3849 # used sections, first .eh_frame and now some of the glibc sections for
3850 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3851 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3852 echo "configure:3853: checking for ld that supports -Wl,--gc-sections" >&5
3853 if test "$cross_compiling" = yes; then
3854 ac_sectionLDflags=yes
3855 else
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3860 int main(void)
3862 try { throw 1; }
3863 catch (...) { };
3864 return 0;
3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3869 then
3870 ac_sectionLDflags=yes
3871 else
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 rm -fr conftest*
3875 ac_sectionLFflags=no
3877 rm -fr conftest*
3880 if test "$ac_test_CFLAGS" = set; then
3881 CFLAGS="$ac_save_CFLAGS"
3882 else
3883 # this is the suspicious part
3884 CFLAGS=''
3886 if test "$ac_sectionLDflags" = "yes"; then
3887 SECTION_LDFLAGS='-Wl,--gc-sections'
3889 echo "$ac_t""$ac_sectionLDflags" 1>&6
3892 # Set linker optimization flags.
3893 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3894 test x"$enable_debug" = x"no"; then
3895 OPT_LDFLAGS='-Wl,-O1'
3901 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3902 # GLIBCPP_CHECK_MATH_SUPPORT
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_ACOSF 1
3907 cat >> confdefs.h <<\EOF
3908 #define HAVE_ASINF 1
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_ATAN2F 1
3915 cat >> confdefs.h <<\EOF
3916 #define HAVE_ATANF 1
3919 cat >> confdefs.h <<\EOF
3920 #define HAVE_CEILF 1
3923 cat >> confdefs.h <<\EOF
3924 #define HAVE_COPYSIGN 1
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_COPYSIGNF 1
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_COSF 1
3935 cat >> confdefs.h <<\EOF
3936 #define HAVE_COSHF 1
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_EXPF 1
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_FABSF 1
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_FINITE 1
3951 cat >> confdefs.h <<\EOF
3952 #define HAVE_FINITEF 1
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_FLOORF 1
3959 cat >> confdefs.h <<\EOF
3960 #define HAVE_FMODF 1
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_FREXPF 1
3967 cat >> confdefs.h <<\EOF
3968 #define HAVE_ISINF 1
3971 cat >> confdefs.h <<\EOF
3972 #define HAVE_ISINFF 1
3975 cat >> confdefs.h <<\EOF
3976 #define HAVE_ISNAN 1
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_ISNANF 1
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_LDEXPF 1
3987 cat >> confdefs.h <<\EOF
3988 #define HAVE_LOG10F 1
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_LOGF 1
3995 cat >> confdefs.h <<\EOF
3996 #define HAVE_MODFF 1
3999 cat >> confdefs.h <<\EOF
4000 #define HAVE_POWF 1
4003 cat >> confdefs.h <<\EOF
4004 #define HAVE_SINCOS 1
4007 cat >> confdefs.h <<\EOF
4008 #define HAVE_SINCOSF 1
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_SINF 1
4015 cat >> confdefs.h <<\EOF
4016 #define HAVE_SINHF 1
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_SQRTF 1
4023 cat >> confdefs.h <<\EOF
4024 #define HAVE_TANF 1
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_TANHF 1
4032 # At some point, we should differentiate between architectures
4033 # like x86, which have long double versions, and alpha/powerpc/etc.,
4034 # which don't. For the time being, punt.
4035 if test x"long_double_math_on_this_cpu" = x"yes"; then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_ACOSL 1
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_ASINL 1
4044 cat >> confdefs.h <<\EOF
4045 #define HAVE_ATAN2L 1
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_ATANL 1
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_CEILL 1
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_COPYSIGNL 1
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_COSL 1
4064 cat >> confdefs.h <<\EOF
4065 #define HAVE_COSHL 1
4068 cat >> confdefs.h <<\EOF
4069 #define HAVE_EXPL 1
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_FABSL 1
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_FINITEL 1
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_FLOORL 1
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_FMODL 1
4088 cat >> confdefs.h <<\EOF
4089 #define HAVE_FREXPL 1
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_ISINFL 1
4096 cat >> confdefs.h <<\EOF
4097 #define HAVE_ISNANL 1
4100 cat >> confdefs.h <<\EOF
4101 #define HAVE_LDEXPL 1
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_LOG10L 1
4108 cat >> confdefs.h <<\EOF
4109 #define HAVE_LOGL 1
4112 cat >> confdefs.h <<\EOF
4113 #define HAVE_MODFL 1
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_POWL 1
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_SINCOSL 1
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_SINL 1
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_SINHL 1
4132 cat >> confdefs.h <<\EOF
4133 #define HAVE_SQRTL 1
4136 cat >> confdefs.h <<\EOF
4137 #define HAVE_TANL 1
4140 cat >> confdefs.h <<\EOF
4141 #define HAVE_TANHL 1
4146 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4147 echo "configure:4148: checking for main in -lm" >&5
4148 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152 ac_save_LIBS="$LIBS"
4153 LIBS="-lm $LIBS"
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 int main() {
4159 main()
4160 ; return 0; }
4162 if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163 rm -rf conftest*
4164 eval "ac_cv_lib_$ac_lib_var=yes"
4165 else
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 rm -rf conftest*
4169 eval "ac_cv_lib_$ac_lib_var=no"
4171 rm -f conftest*
4172 LIBS="$ac_save_LIBS"
4175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4179 cat >> confdefs.h <<EOF
4180 #define $ac_tr_lib 1
4183 LIBS="-lm $LIBS"
4185 else
4186 echo "$ac_t""no" 1>&6
4189 for ac_func in nan hypot hypotf atan2f expf copysignf
4191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4192 echo "configure:4193: checking for $ac_func" >&5
4193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4195 else
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 /* System header to define __stub macros and hopefully few prototypes,
4200 which can conflict with char $ac_func(); below. */
4201 #include <assert.h>
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char $ac_func();
4207 int main() {
4209 /* The GNU C library defines this for functions which it implements
4210 to always fail with ENOSYS. Some functions are actually named
4211 something starting with __ and the normal name is an alias. */
4212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4213 choke me
4214 #else
4215 $ac_func();
4216 #endif
4218 ; return 0; }
4220 if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 rm -rf conftest*
4222 eval "ac_cv_func_$ac_func=yes"
4223 else
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 rm -rf conftest*
4227 eval "ac_cv_func_$ac_func=no"
4229 rm -f conftest*
4232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4235 cat >> confdefs.h <<EOF
4236 #define $ac_tr_func 1
4239 else
4240 echo "$ac_t""no" 1>&6
4241 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4243 done
4247 USE_COMPLEX_LONG_DOUBLE=no
4248 if test x$ac_cv_func_atan2l = x"yes" &&
4249 test x$ac_cv_func_copysignl = x"yes"; then
4250 USE_COMPLEX_LONG_DOUBLE=yes
4251 for ac_func in hypotl signbitl
4253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_func" >&5
4255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4257 else
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* System header to define __stub macros and hopefully few prototypes,
4262 which can conflict with char $ac_func(); below. */
4263 #include <assert.h>
4264 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4267 char $ac_func();
4269 int main() {
4271 /* The GNU C library defines this for functions which it implements
4272 to always fail with ENOSYS. Some functions are actually named
4273 something starting with __ and the normal name is an alias. */
4274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4275 choke me
4276 #else
4277 $ac_func();
4278 #endif
4280 ; return 0; }
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283 rm -rf conftest*
4284 eval "ac_cv_func_$ac_func=yes"
4285 else
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 rm -rf conftest*
4289 eval "ac_cv_func_$ac_func=no"
4291 rm -f conftest*
4294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4297 cat >> confdefs.h <<EOF
4298 #define $ac_tr_func 1
4301 else
4302 echo "$ac_t""no" 1>&6
4303 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4305 done
4314 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4315 echo "configure:4316: checking for mbstate_t" >&5
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <wchar.h>
4320 int main() {
4321 mbstate_t teststate;
4322 ; return 0; }
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 rm -rf conftest*
4326 have_mbstate_t=yes
4327 else
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4330 rm -rf conftest*
4331 have_mbstate_t=no
4333 rm -f conftest*
4334 echo "$ac_t""$have_mbstate_t" 1>&6
4335 if test x"$have_mbstate_t" = xyes; then
4336 cat >> confdefs.h <<\EOF
4337 #define HAVE_MBSTATE_T 1
4342 for ac_hdr in wchar.h
4344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_hdr" >&5
4347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4349 else
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <$ac_hdr>
4355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4356 { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4358 if test -z "$ac_err"; then
4359 rm -rf conftest*
4360 eval "ac_cv_header_$ac_safe=yes"
4361 else
4362 echo "$ac_err" >&5
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4365 rm -rf conftest*
4366 eval "ac_cv_header_$ac_safe=no"
4368 rm -f conftest*
4370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_hdr 1
4376 ac_has_wchar_h=yes
4377 else
4378 echo "$ac_t""no" 1>&6
4379 ac_has_wchar_h=no
4381 done
4383 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4384 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4385 echo "configure:4386: checking for wctype.h" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <wctype.h>
4394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4398 rm -rf conftest*
4399 eval "ac_cv_header_$ac_safe=yes"
4400 else
4401 echo "$ac_err" >&5
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 rm -rf conftest*
4405 eval "ac_cv_header_$ac_safe=no"
4407 rm -f conftest*
4409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_has_wctype_h=yes
4412 else
4413 echo "$ac_t""no" 1>&6
4414 ac_has_wctype_h=no
4418 if test x"$ac_has_wchar_h" = xyes &&
4419 test x"$ac_has_wctype_h" = xyes &&
4420 test x"$enable_c_mbchar" != xno; then
4422 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4423 echo "configure:4424: checking for WCHAR_MIN and WCHAR_MAX" >&5
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <wchar.h>
4428 int main() {
4429 int i = WCHAR_MIN; int j = WCHAR_MAX;
4430 ; return 0; }
4432 if { (eval echo configure:4433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4433 rm -rf conftest*
4434 has_wchar_minmax=yes
4435 else
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 rm -rf conftest*
4439 has_wchar_minmax=no
4441 rm -f conftest*
4442 echo "$ac_t""$has_wchar_minmax" 1>&6
4444 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4445 echo "configure:4446: checking for WEOF" >&5
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4450 #include <wchar.h>
4451 #include <stddef.h>
4452 int main() {
4453 wint_t i = WEOF;
4454 ; return 0; }
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4457 rm -rf conftest*
4458 has_weof=yes
4459 else
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4462 rm -rf conftest*
4463 has_weof=no
4465 rm -f conftest*
4466 echo "$ac_t""$has_weof" 1>&6
4468 ac_wfuncs=yes
4469 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_func" >&5
4473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4475 else
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 /* System header to define __stub macros and hopefully few prototypes,
4480 which can conflict with char $ac_func(); below. */
4481 #include <assert.h>
4482 /* Override any gcc2 internal prototype to avoid an error. */
4483 /* We use char because int might match the return type of a gcc2
4484 builtin and then its argument prototype would still apply. */
4485 char $ac_func();
4487 int main() {
4489 /* The GNU C library defines this for functions which it implements
4490 to always fail with ENOSYS. Some functions are actually named
4491 something starting with __ and the normal name is an alias. */
4492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 choke me
4494 #else
4495 $ac_func();
4496 #endif
4498 ; return 0; }
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 rm -rf conftest*
4502 eval "ac_cv_func_$ac_func=yes"
4503 else
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 rm -rf conftest*
4507 eval "ac_cv_func_$ac_func=no"
4509 rm -f conftest*
4512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4515 cat >> confdefs.h <<EOF
4516 #define $ac_tr_func 1
4519 else
4520 echo "$ac_t""no" 1>&6
4522 ac_wfuncs=no
4524 done
4527 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4528 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4529 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4530 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4531 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4532 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4535 echo "configure:4536: checking for $ac_func" >&5
4536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* System header to define __stub macros and hopefully few prototypes,
4543 which can conflict with char $ac_func(); below. */
4544 #include <assert.h>
4545 /* Override any gcc2 internal prototype to avoid an error. */
4546 /* We use char because int might match the return type of a gcc2
4547 builtin and then its argument prototype would still apply. */
4548 char $ac_func();
4550 int main() {
4552 /* The GNU C library defines this for functions which it implements
4553 to always fail with ENOSYS. Some functions are actually named
4554 something starting with __ and the normal name is an alias. */
4555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4556 choke me
4557 #else
4558 $ac_func();
4559 #endif
4561 ; return 0; }
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 rm -rf conftest*
4565 eval "ac_cv_func_$ac_func=yes"
4566 else
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -rf conftest*
4570 eval "ac_cv_func_$ac_func=no"
4572 rm -f conftest*
4575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4578 cat >> confdefs.h <<EOF
4579 #define $ac_tr_func 1
4582 else
4583 echo "$ac_t""no" 1>&6
4585 ac_wfuncs=no
4587 done
4590 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4591 echo "configure:4592: checking for ISO C99 wchar_t support" >&5
4592 if test x"$has_weof" = xyes &&
4593 test x"$has_wchar_minmax" = xyes &&
4594 test x"$ac_wfuncs" = xyes; then
4595 ac_isoC99_wchar_t=yes
4596 else
4597 ac_isoC99_wchar_t=no
4599 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4601 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4603 echo "configure:4604: checking for iconv.h" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <iconv.h>
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4616 rm -rf conftest*
4617 eval "ac_cv_header_$ac_safe=yes"
4618 else
4619 echo "$ac_err" >&5
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 rm -rf conftest*
4623 eval "ac_cv_header_$ac_safe=no"
4625 rm -f conftest*
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ac_has_iconv_h=yes
4630 else
4631 echo "$ac_t""no" 1>&6
4632 ac_has_iconv_h=no
4635 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4636 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4637 echo "configure:4638: checking for langinfo.h" >&5
4638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4644 #include <langinfo.h>
4646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4650 rm -rf conftest*
4651 eval "ac_cv_header_$ac_safe=yes"
4652 else
4653 echo "$ac_err" >&5
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4656 rm -rf conftest*
4657 eval "ac_cv_header_$ac_safe=no"
4659 rm -f conftest*
4661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_has_langinfo_h=yes
4664 else
4665 echo "$ac_t""no" 1>&6
4666 ac_has_langinfo_h=no
4670 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4671 echo "configure:4672: checking for iconv in -liconv" >&5
4672 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676 ac_save_LIBS="$LIBS"
4677 LIBS="-liconv $LIBS"
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* Override any gcc2 internal prototype to avoid an error. */
4682 /* We use char because int might match the return type of a gcc2
4683 builtin and then its argument prototype would still apply. */
4684 char iconv();
4686 int main() {
4687 iconv()
4688 ; return 0; }
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691 rm -rf conftest*
4692 eval "ac_cv_lib_$ac_lib_var=yes"
4693 else
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 rm -rf conftest*
4697 eval "ac_cv_lib_$ac_lib_var=no"
4699 rm -f conftest*
4700 LIBS="$ac_save_LIBS"
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4705 libiconv="-liconv"
4706 else
4707 echo "$ac_t""no" 1>&6
4710 ac_save_LIBS="$LIBS"
4711 LIBS="$LIBS $libiconv"
4713 for ac_func in iconv_open iconv_close iconv nl_langinfo
4715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_func" >&5
4717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char $ac_func(); below. */
4725 #include <assert.h>
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4729 char $ac_func();
4731 int main() {
4733 /* The GNU C library defines this for functions which it implements
4734 to always fail with ENOSYS. Some functions are actually named
4735 something starting with __ and the normal name is an alias. */
4736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4737 choke me
4738 #else
4739 $ac_func();
4740 #endif
4742 ; return 0; }
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 rm -rf conftest*
4746 eval "ac_cv_func_$ac_func=yes"
4747 else
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 rm -rf conftest*
4751 eval "ac_cv_func_$ac_func=no"
4753 rm -f conftest*
4756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4759 cat >> confdefs.h <<EOF
4760 #define $ac_tr_func 1
4763 ac_XPG2funcs=yes
4764 else
4765 echo "$ac_t""no" 1>&6
4766 ac_XPG2funcs=no
4768 done
4771 LIBS="$ac_save_LIBS"
4773 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4774 echo "configure:4775: checking for XPG2 wchar_t support" >&5
4775 if test x"$ac_has_iconv_h" = xyes &&
4776 test x"$ac_has_langinfo_h" = xyes &&
4777 test x"$ac_XPG2funcs" = xyes; then
4778 ac_XPG2_wchar_t=yes
4779 else
4780 ac_XPG2_wchar_t=no
4782 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4784 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4785 echo "configure:4786: checking for enabled wchar_t specializations" >&5
4786 if test x"$ac_isoC99_wchar_t" = xyes &&
4787 test x"$ac_XPG2_wchar_t" = xyes; then
4788 cat >> confdefs.h <<\EOF
4789 #define _GLIBCPP_USE_WCHAR_T 1
4792 echo "$ac_t"""yes"" 1>&6
4793 else
4794 echo "$ac_t"""no"" 1>&6
4796 else
4797 echo "configure: warning: wchar_t support disabled." 1>&2
4800 os_include_dir="config/os/gnu-linux"
4801 # GLIBCPP_CHECK_STDLIB_SUPPORT
4802 cat >> confdefs.h <<\EOF
4803 #define HAVE_STRTOF 1
4806 cat >> confdefs.h <<\EOF
4807 #define HAVE_STRTOLD 1
4810 # AC_FUNC_MMAP
4811 cat >> confdefs.h <<\EOF
4812 #define HAVE_MMAP 1
4817 # We assume newlib. This lets us hard-code the functions we know
4818 # we'll have.
4819 cat >> confdefs.h <<\EOF
4820 #define HAVE_FINITE 1
4823 cat >> confdefs.h <<\EOF
4824 #define HAVE_ISNAN 1
4827 cat >> confdefs.h <<\EOF
4828 #define HAVE_ISNANF 1
4831 cat >> confdefs.h <<\EOF
4832 #define HAVE_ISINF 1
4835 cat >> confdefs.h <<\EOF
4836 #define HAVE_ISINFF 1
4840 os_include_dir="config/os/newlib"
4842 # need to check for faster f versions of math functions, ie sinf?
4844 esac
4845 else
4847 # We are being configured natively. We can do more elaborate tests
4848 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4849 # working.
4850 xcompiling=0
4851 NATIVE=yes
4852 CANADIAN=no
4853 NULL_TARGET=no
4855 # Check for available headers.
4856 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4857 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4861 echo "configure:4862: checking for $ac_hdr" >&5
4862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 #include <$ac_hdr>
4870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4871 { (eval echo configure:4872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4873 if test -z "$ac_err"; then
4874 rm -rf conftest*
4875 eval "ac_cv_header_$ac_safe=yes"
4876 else
4877 echo "$ac_err" >&5
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4880 rm -rf conftest*
4881 eval "ac_cv_header_$ac_safe=no"
4883 rm -f conftest*
4885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_hdr 1
4892 else
4893 echo "$ac_t""no" 1>&6
4895 done
4899 # All these tests are for C++; save the language and the compiler flags.
4900 # The CXXFLAGS thing is suspicious, but based on similar bits previously
4901 # found in GLIBCPP_CONFIGURE.
4903 ac_ext=C
4904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4908 cross_compiling=$ac_cv_prog_cxx_cross
4910 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4911 ac_save_CXXFLAGS="$CXXFLAGS"
4913 # Check for maintainer-mode bits.
4914 if test x"$USE_MAINTAINER_MODE" = xno; then
4915 WERROR=''
4916 else
4917 WERROR='-Werror'
4920 # Check for -ffunction-sections -fdata-sections
4921 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4922 echo "configure:4923: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4923 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4928 int main() {
4929 int foo;
4931 ; return 0; }
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934 rm -rf conftest*
4935 ac_fdsections=yes
4936 else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 ac_fdsections=no
4942 rm -f conftest*
4943 if test "$ac_test_CXXFLAGS" = set; then
4944 CXXFLAGS="$ac_save_CXXFLAGS"
4945 else
4946 # this is the suspicious part
4947 CXXFLAGS=''
4949 if test x"$ac_fdsections" = x"yes" &&
4950 test x"$enable_debug" = x"no"; then
4951 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4953 echo "$ac_t""$ac_fdsections" 1>&6
4955 ac_ext=c
4956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960 cross_compiling=$ac_cv_prog_cc_cross
4966 # If we're not using GNU ld, then there's no point in even trying these
4967 # tests. Check for that first. We should have already tested for gld
4968 # by now (in libtool), but require it now just to be safe...
4969 SECTION_LDFLAGS=''
4970 OPT_LDFLAGS=''
4973 # Set --gc-sections.
4974 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4975 # GNU ld it is! Joy and bunny rabbits!
4977 # All these tests are for C++; save the language and the compiler flags.
4978 # Need to do this so that g++ won't try to link in libstdc++
4979 ac_test_CFLAGS="${CFLAGS+set}"
4980 ac_save_CFLAGS="$CFLAGS"
4981 CFLAGS='-x c++ -Wl,--gc-sections'
4983 # Check for -Wl,--gc-sections
4984 # XXX This test is broken at the moment, as symbols required for
4985 # linking are now in libsupc++ (not built yet.....). In addition,
4986 # this test has cored on solaris in the past. In addition,
4987 # --gc-sections doesn't really work at the moment (keeps on discarding
4988 # used sections, first .eh_frame and now some of the glibc sections for
4989 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4990 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4991 echo "configure:4992: checking for ld that supports -Wl,--gc-sections" >&5
4992 if test "$cross_compiling" = yes; then
4993 ac_sectionLDflags=yes
4994 else
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4999 int main(void)
5001 try { throw 1; }
5002 catch (...) { };
5003 return 0;
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5008 then
5009 ac_sectionLDflags=yes
5010 else
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5013 rm -fr conftest*
5014 ac_sectionLFflags=no
5016 rm -fr conftest*
5019 if test "$ac_test_CFLAGS" = set; then
5020 CFLAGS="$ac_save_CFLAGS"
5021 else
5022 # this is the suspicious part
5023 CFLAGS=''
5025 if test "$ac_sectionLDflags" = "yes"; then
5026 SECTION_LDFLAGS='-Wl,--gc-sections'
5028 echo "$ac_t""$ac_sectionLDflags" 1>&6
5031 # Set linker optimization flags.
5032 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5033 test x"$enable_debug" = x"no"; then
5034 OPT_LDFLAGS='-Wl,-O1'
5042 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5043 echo "configure:5044: checking for __builtin_abs declaration" >&5
5044 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5045 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5050 ac_ext=C
5051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5052 ac_cpp='$CXXCPP $CPPFLAGS'
5053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5055 cross_compiling=$ac_cv_prog_cxx_cross
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 #include <math.h>
5061 int main() {
5062 __builtin_abs(0);
5063 ; return 0; }
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5066 rm -rf conftest*
5067 glibcpp_cv_func___builtin_abs_use=yes
5068 else
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5071 rm -rf conftest*
5072 glibcpp_cv_func___builtin_abs_use=no
5074 rm -f conftest*
5075 ac_ext=c
5076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5080 cross_compiling=$ac_cv_prog_cc_cross
5086 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5087 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5088 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5089 echo "configure:5090: checking for __builtin_abs linkage" >&5
5090 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5091 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #include <math.h>
5099 int main() {
5100 __builtin_abs(0);
5101 ; return 0; }
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 rm -rf conftest*
5105 glibcpp_cv_func___builtin_abs_link=yes
5106 else
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5109 rm -rf conftest*
5110 glibcpp_cv_func___builtin_abs_link=no
5112 rm -f conftest*
5117 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5118 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5119 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5120 cat >> confdefs.h <<EOF
5121 #define ${ac_tr_func} 1
5128 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5129 echo "configure:5130: checking for __builtin_fabsf declaration" >&5
5130 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5131 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5136 ac_ext=C
5137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5138 ac_cpp='$CXXCPP $CPPFLAGS'
5139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5141 cross_compiling=$ac_cv_prog_cxx_cross
5143 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 #include <math.h>
5147 int main() {
5148 __builtin_fabsf(0);
5149 ; return 0; }
5151 if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5152 rm -rf conftest*
5153 glibcpp_cv_func___builtin_fabsf_use=yes
5154 else
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5157 rm -rf conftest*
5158 glibcpp_cv_func___builtin_fabsf_use=no
5160 rm -f conftest*
5161 ac_ext=c
5162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5166 cross_compiling=$ac_cv_prog_cc_cross
5172 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5173 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5174 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5175 echo "configure:5176: checking for __builtin_fabsf linkage" >&5
5176 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5177 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5179 else
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 #include <math.h>
5185 int main() {
5186 __builtin_fabsf(0);
5187 ; return 0; }
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 rm -rf conftest*
5191 glibcpp_cv_func___builtin_fabsf_link=yes
5192 else
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 rm -rf conftest*
5196 glibcpp_cv_func___builtin_fabsf_link=no
5198 rm -f conftest*
5203 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5204 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5205 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5206 cat >> confdefs.h <<EOF
5207 #define ${ac_tr_func} 1
5214 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5215 echo "configure:5216: checking for __builtin_fabs declaration" >&5
5216 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5217 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5219 else
5222 ac_ext=C
5223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5224 ac_cpp='$CXXCPP $CPPFLAGS'
5225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5227 cross_compiling=$ac_cv_prog_cxx_cross
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 #include <math.h>
5233 int main() {
5234 __builtin_fabs(0);
5235 ; return 0; }
5237 if { (eval echo configure:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 rm -rf conftest*
5239 glibcpp_cv_func___builtin_fabs_use=yes
5240 else
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 rm -rf conftest*
5244 glibcpp_cv_func___builtin_fabs_use=no
5246 rm -f conftest*
5247 ac_ext=c
5248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5252 cross_compiling=$ac_cv_prog_cc_cross
5258 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5259 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5260 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5261 echo "configure:5262: checking for __builtin_fabs linkage" >&5
5262 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5263 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5265 else
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 #include <math.h>
5271 int main() {
5272 __builtin_fabs(0);
5273 ; return 0; }
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276 rm -rf conftest*
5277 glibcpp_cv_func___builtin_fabs_link=yes
5278 else
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 rm -rf conftest*
5282 glibcpp_cv_func___builtin_fabs_link=no
5284 rm -f conftest*
5289 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5290 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5291 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5292 cat >> confdefs.h <<EOF
5293 #define ${ac_tr_func} 1
5300 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5301 echo "configure:5302: checking for __builtin_fabsl declaration" >&5
5302 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5303 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5305 else
5308 ac_ext=C
5309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5310 ac_cpp='$CXXCPP $CPPFLAGS'
5311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5313 cross_compiling=$ac_cv_prog_cxx_cross
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <math.h>
5319 int main() {
5320 __builtin_fabsl(0);
5321 ; return 0; }
5323 if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5324 rm -rf conftest*
5325 glibcpp_cv_func___builtin_fabsl_use=yes
5326 else
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 rm -rf conftest*
5330 glibcpp_cv_func___builtin_fabsl_use=no
5332 rm -f conftest*
5333 ac_ext=c
5334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5338 cross_compiling=$ac_cv_prog_cc_cross
5344 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5345 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5346 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5347 echo "configure:5348: checking for __builtin_fabsl linkage" >&5
5348 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5349 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <math.h>
5357 int main() {
5358 __builtin_fabsl(0);
5359 ; return 0; }
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 rm -rf conftest*
5363 glibcpp_cv_func___builtin_fabsl_link=yes
5364 else
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 glibcpp_cv_func___builtin_fabsl_link=no
5370 rm -f conftest*
5375 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5376 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5377 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378 cat >> confdefs.h <<EOF
5379 #define ${ac_tr_func} 1
5386 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5387 echo "configure:5388: checking for __builtin_labs declaration" >&5
5388 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5389 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5391 else
5394 ac_ext=C
5395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5396 ac_cpp='$CXXCPP $CPPFLAGS'
5397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5399 cross_compiling=$ac_cv_prog_cxx_cross
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <math.h>
5405 int main() {
5406 __builtin_labs(0);
5407 ; return 0; }
5409 if { (eval echo configure:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410 rm -rf conftest*
5411 glibcpp_cv_func___builtin_labs_use=yes
5412 else
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5415 rm -rf conftest*
5416 glibcpp_cv_func___builtin_labs_use=no
5418 rm -f conftest*
5419 ac_ext=c
5420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5424 cross_compiling=$ac_cv_prog_cc_cross
5430 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5431 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5432 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5433 echo "configure:5434: checking for __builtin_labs linkage" >&5
5434 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5435 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 #include <math.h>
5443 int main() {
5444 __builtin_labs(0);
5445 ; return 0; }
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5448 rm -rf conftest*
5449 glibcpp_cv_func___builtin_labs_link=yes
5450 else
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5453 rm -rf conftest*
5454 glibcpp_cv_func___builtin_labs_link=no
5456 rm -f conftest*
5461 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5462 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5463 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464 cat >> confdefs.h <<EOF
5465 #define ${ac_tr_func} 1
5473 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5474 echo "configure:5475: checking for __builtin_sqrtf declaration" >&5
5475 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5476 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5478 else
5481 ac_ext=C
5482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5486 cross_compiling=$ac_cv_prog_cxx_cross
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <math.h>
5492 int main() {
5493 __builtin_sqrtf(0);
5494 ; return 0; }
5496 if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 rm -rf conftest*
5498 glibcpp_cv_func___builtin_sqrtf_use=yes
5499 else
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 rm -rf conftest*
5503 glibcpp_cv_func___builtin_sqrtf_use=no
5505 rm -f conftest*
5506 ac_ext=c
5507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5511 cross_compiling=$ac_cv_prog_cc_cross
5517 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5518 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5519 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5520 echo "configure:5521: checking for __builtin_sqrtf linkage" >&5
5521 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5522 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <math.h>
5530 int main() {
5531 __builtin_sqrtf(0);
5532 ; return 0; }
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535 rm -rf conftest*
5536 glibcpp_cv_func___builtin_sqrtf_link=yes
5537 else
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 rm -rf conftest*
5541 glibcpp_cv_func___builtin_sqrtf_link=no
5543 rm -f conftest*
5548 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5549 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5550 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5551 cat >> confdefs.h <<EOF
5552 #define ${ac_tr_func} 1
5559 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5560 echo "configure:5561: checking for __builtin_fsqrt declaration" >&5
5561 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5562 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5567 ac_ext=C
5568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5572 cross_compiling=$ac_cv_prog_cxx_cross
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 #include <math.h>
5578 int main() {
5579 __builtin_fsqrt(0);
5580 ; return 0; }
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5583 rm -rf conftest*
5584 glibcpp_cv_func___builtin_fsqrt_use=yes
5585 else
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 rm -rf conftest*
5589 glibcpp_cv_func___builtin_fsqrt_use=no
5591 rm -f conftest*
5592 ac_ext=c
5593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5597 cross_compiling=$ac_cv_prog_cc_cross
5603 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5604 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5605 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5606 echo "configure:5607: checking for __builtin_fsqrt linkage" >&5
5607 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5608 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5610 else
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <math.h>
5616 int main() {
5617 __builtin_fsqrt(0);
5618 ; return 0; }
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 rm -rf conftest*
5622 glibcpp_cv_func___builtin_fsqrt_link=yes
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 glibcpp_cv_func___builtin_fsqrt_link=no
5629 rm -f conftest*
5634 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5635 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5636 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h <<EOF
5638 #define ${ac_tr_func} 1
5645 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5646 echo "configure:5647: checking for __builtin_sqrtl declaration" >&5
5647 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5648 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5650 else
5653 ac_ext=C
5654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5655 ac_cpp='$CXXCPP $CPPFLAGS'
5656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5658 cross_compiling=$ac_cv_prog_cxx_cross
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #include <math.h>
5664 int main() {
5665 __builtin_sqrtl(0);
5666 ; return 0; }
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669 rm -rf conftest*
5670 glibcpp_cv_func___builtin_sqrtl_use=yes
5671 else
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 rm -rf conftest*
5675 glibcpp_cv_func___builtin_sqrtl_use=no
5677 rm -f conftest*
5678 ac_ext=c
5679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5683 cross_compiling=$ac_cv_prog_cc_cross
5689 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5690 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5691 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5692 echo "configure:5693: checking for __builtin_sqrtl linkage" >&5
5693 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5694 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5696 else
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 #include <math.h>
5702 int main() {
5703 __builtin_sqrtl(0);
5704 ; return 0; }
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 rm -rf conftest*
5708 glibcpp_cv_func___builtin_sqrtl_link=yes
5709 else
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 glibcpp_cv_func___builtin_sqrtl_link=no
5715 rm -f conftest*
5720 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5721 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5722 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723 cat >> confdefs.h <<EOF
5724 #define ${ac_tr_func} 1
5732 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5733 echo "configure:5734: checking for __builtin_sinf declaration" >&5
5734 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5735 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5737 else
5740 ac_ext=C
5741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5742 ac_cpp='$CXXCPP $CPPFLAGS'
5743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5745 cross_compiling=$ac_cv_prog_cxx_cross
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 #include <math.h>
5751 int main() {
5752 __builtin_sinf(0);
5753 ; return 0; }
5755 if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5756 rm -rf conftest*
5757 glibcpp_cv_func___builtin_sinf_use=yes
5758 else
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 rm -rf conftest*
5762 glibcpp_cv_func___builtin_sinf_use=no
5764 rm -f conftest*
5765 ac_ext=c
5766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5770 cross_compiling=$ac_cv_prog_cc_cross
5776 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5777 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5778 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5779 echo "configure:5780: checking for __builtin_sinf linkage" >&5
5780 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5781 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <math.h>
5789 int main() {
5790 __builtin_sinf(0);
5791 ; return 0; }
5793 if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5794 rm -rf conftest*
5795 glibcpp_cv_func___builtin_sinf_link=yes
5796 else
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 rm -rf conftest*
5800 glibcpp_cv_func___builtin_sinf_link=no
5802 rm -f conftest*
5807 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5808 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5809 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5810 cat >> confdefs.h <<EOF
5811 #define ${ac_tr_func} 1
5818 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5819 echo "configure:5820: checking for __builtin_sin declaration" >&5
5820 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5821 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5823 else
5826 ac_ext=C
5827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5828 ac_cpp='$CXXCPP $CPPFLAGS'
5829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5831 cross_compiling=$ac_cv_prog_cxx_cross
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 #include <math.h>
5837 int main() {
5838 __builtin_sin(0);
5839 ; return 0; }
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5842 rm -rf conftest*
5843 glibcpp_cv_func___builtin_sin_use=yes
5844 else
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5847 rm -rf conftest*
5848 glibcpp_cv_func___builtin_sin_use=no
5850 rm -f conftest*
5851 ac_ext=c
5852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5856 cross_compiling=$ac_cv_prog_cc_cross
5862 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5863 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5864 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5865 echo "configure:5866: checking for __builtin_sin linkage" >&5
5866 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5867 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 #include <math.h>
5875 int main() {
5876 __builtin_sin(0);
5877 ; return 0; }
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 rm -rf conftest*
5881 glibcpp_cv_func___builtin_sin_link=yes
5882 else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 glibcpp_cv_func___builtin_sin_link=no
5888 rm -f conftest*
5893 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5894 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5895 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5896 cat >> confdefs.h <<EOF
5897 #define ${ac_tr_func} 1
5904 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5905 echo "configure:5906: checking for __builtin_sinl declaration" >&5
5906 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5907 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5912 ac_ext=C
5913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5914 ac_cpp='$CXXCPP $CPPFLAGS'
5915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5917 cross_compiling=$ac_cv_prog_cxx_cross
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include <math.h>
5923 int main() {
5924 __builtin_sinl(0);
5925 ; return 0; }
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5928 rm -rf conftest*
5929 glibcpp_cv_func___builtin_sinl_use=yes
5930 else
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 rm -rf conftest*
5934 glibcpp_cv_func___builtin_sinl_use=no
5936 rm -f conftest*
5937 ac_ext=c
5938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5942 cross_compiling=$ac_cv_prog_cc_cross
5948 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5949 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5950 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5951 echo "configure:5952: checking for __builtin_sinl linkage" >&5
5952 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5953 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5955 else
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 #include <math.h>
5961 int main() {
5962 __builtin_sinl(0);
5963 ; return 0; }
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5966 rm -rf conftest*
5967 glibcpp_cv_func___builtin_sinl_link=yes
5968 else
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5971 rm -rf conftest*
5972 glibcpp_cv_func___builtin_sinl_link=no
5974 rm -f conftest*
5979 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5980 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5981 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5982 cat >> confdefs.h <<EOF
5983 #define ${ac_tr_func} 1
5991 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5992 echo "configure:5993: checking for __builtin_cosf declaration" >&5
5993 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5994 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5996 else
5999 ac_ext=C
6000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6001 ac_cpp='$CXXCPP $CPPFLAGS'
6002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6004 cross_compiling=$ac_cv_prog_cxx_cross
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <math.h>
6010 int main() {
6011 __builtin_cosf(0);
6012 ; return 0; }
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6015 rm -rf conftest*
6016 glibcpp_cv_func___builtin_cosf_use=yes
6017 else
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 rm -rf conftest*
6021 glibcpp_cv_func___builtin_cosf_use=no
6023 rm -f conftest*
6024 ac_ext=c
6025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6029 cross_compiling=$ac_cv_prog_cc_cross
6035 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6036 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6037 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6038 echo "configure:6039: checking for __builtin_cosf linkage" >&5
6039 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6040 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <math.h>
6048 int main() {
6049 __builtin_cosf(0);
6050 ; return 0; }
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053 rm -rf conftest*
6054 glibcpp_cv_func___builtin_cosf_link=yes
6055 else
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 rm -rf conftest*
6059 glibcpp_cv_func___builtin_cosf_link=no
6061 rm -f conftest*
6066 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6067 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6068 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define ${ac_tr_func} 1
6077 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6078 echo "configure:6079: checking for __builtin_cos declaration" >&5
6079 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6080 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6085 ac_ext=C
6086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6090 cross_compiling=$ac_cv_prog_cxx_cross
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <math.h>
6096 int main() {
6097 __builtin_cos(0);
6098 ; return 0; }
6100 if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 rm -rf conftest*
6102 glibcpp_cv_func___builtin_cos_use=yes
6103 else
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 rm -rf conftest*
6107 glibcpp_cv_func___builtin_cos_use=no
6109 rm -f conftest*
6110 ac_ext=c
6111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6112 ac_cpp='$CPP $CPPFLAGS'
6113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6115 cross_compiling=$ac_cv_prog_cc_cross
6121 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6122 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6123 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6124 echo "configure:6125: checking for __builtin_cos linkage" >&5
6125 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6126 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6128 else
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <math.h>
6134 int main() {
6135 __builtin_cos(0);
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 glibcpp_cv_func___builtin_cos_link=yes
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 glibcpp_cv_func___builtin_cos_link=no
6147 rm -f conftest*
6152 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6153 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6154 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155 cat >> confdefs.h <<EOF
6156 #define ${ac_tr_func} 1
6163 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6164 echo "configure:6165: checking for __builtin_cosl declaration" >&5
6165 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6166 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168 else
6171 ac_ext=C
6172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6173 ac_cpp='$CXXCPP $CPPFLAGS'
6174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6176 cross_compiling=$ac_cv_prog_cxx_cross
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <math.h>
6182 int main() {
6183 __builtin_cosl(0);
6184 ; return 0; }
6186 if { (eval echo configure:6187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6187 rm -rf conftest*
6188 glibcpp_cv_func___builtin_cosl_use=yes
6189 else
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6192 rm -rf conftest*
6193 glibcpp_cv_func___builtin_cosl_use=no
6195 rm -f conftest*
6196 ac_ext=c
6197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6198 ac_cpp='$CPP $CPPFLAGS'
6199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6201 cross_compiling=$ac_cv_prog_cc_cross
6207 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6208 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6209 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6210 echo "configure:6211: checking for __builtin_cosl linkage" >&5
6211 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6212 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6214 else
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 #include <math.h>
6220 int main() {
6221 __builtin_cosl(0);
6222 ; return 0; }
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225 rm -rf conftest*
6226 glibcpp_cv_func___builtin_cosl_link=yes
6227 else
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 rm -rf conftest*
6231 glibcpp_cv_func___builtin_cosl_link=no
6233 rm -f conftest*
6238 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6239 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6240 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6241 cat >> confdefs.h <<EOF
6242 #define ${ac_tr_func} 1
6249 dummyvar=no
6250 if test x$dummyvar = x"yes"; then
6251 cat >> confdefs.h <<\EOF
6252 #define HAVE___BUILTIN_ABS 1
6255 cat >> confdefs.h <<\EOF
6256 #define HAVE___BUILTIN_LABS 1
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE___BUILTIN_COS 1
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE___BUILTIN_COSF 1
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE___BUILTIN_COSL 1
6271 cat >> confdefs.h <<\EOF
6272 #define HAVE___BUILTIN_FABS 1
6275 cat >> confdefs.h <<\EOF
6276 #define HAVE___BUILTIN_FABSF 1
6279 cat >> confdefs.h <<\EOF
6280 #define HAVE___BUILTIN_FABSL 1
6283 cat >> confdefs.h <<\EOF
6284 #define HAVE___BUILTIN_SIN 1
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE___BUILTIN_SINF 1
6291 cat >> confdefs.h <<\EOF
6292 #define HAVE___BUILTIN_SINL 1
6295 cat >> confdefs.h <<\EOF
6296 #define HAVE___BUILTIN_FSQRT 1
6299 cat >> confdefs.h <<\EOF
6300 #define HAVE___BUILTIN_SQRTF 1
6303 cat >> confdefs.h <<\EOF
6304 #define HAVE___BUILTIN_SQRTL 1
6310 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6311 ac_save_CXXFLAGS="$CXXFLAGS"
6312 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6314 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6315 echo "configure:6316: checking for sin in -lm" >&5
6316 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6319 else
6320 ac_save_LIBS="$LIBS"
6321 LIBS="-lm $LIBS"
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328 char sin();
6330 int main() {
6331 sin()
6332 ; return 0; }
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 rm -rf conftest*
6336 eval "ac_cv_lib_$ac_lib_var=yes"
6337 else
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 rm -rf conftest*
6341 eval "ac_cv_lib_$ac_lib_var=no"
6343 rm -f conftest*
6344 LIBS="$ac_save_LIBS"
6347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 libm="-lm"
6350 else
6351 echo "$ac_t""no" 1>&6
6354 ac_save_LIBS="$LIBS"
6355 LIBS="$LIBS $libm"
6359 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6360 echo "configure:6361: checking for isinf declaration" >&5
6361 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6362 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6364 else
6367 ac_ext=C
6368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6369 ac_cpp='$CXXCPP $CPPFLAGS'
6370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6372 cross_compiling=$ac_cv_prog_cxx_cross
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 #include <math.h>
6378 #ifdef HAVE_IEEEFP_H
6379 #include <ieeefp.h>
6380 #endif
6382 int main() {
6383 isinf(0);
6384 ; return 0; }
6386 if { (eval echo configure:6387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6387 rm -rf conftest*
6388 glibcpp_cv_func_isinf_use=yes
6389 else
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 rm -rf conftest*
6393 glibcpp_cv_func_isinf_use=no
6395 rm -f conftest*
6396 ac_ext=c
6397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401 cross_compiling=$ac_cv_prog_cc_cross
6407 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6409 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6410 for ac_func in isinf
6412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6413 echo "configure:6414: checking for $ac_func" >&5
6414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* System header to define __stub macros and hopefully few prototypes,
6421 which can conflict with char $ac_func(); below. */
6422 #include <assert.h>
6423 /* Override any gcc2 internal prototype to avoid an error. */
6424 /* We use char because int might match the return type of a gcc2
6425 builtin and then its argument prototype would still apply. */
6426 char $ac_func();
6428 int main() {
6430 /* The GNU C library defines this for functions which it implements
6431 to always fail with ENOSYS. Some functions are actually named
6432 something starting with __ and the normal name is an alias. */
6433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6434 choke me
6435 #else
6436 $ac_func();
6437 #endif
6439 ; return 0; }
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6442 rm -rf conftest*
6443 eval "ac_cv_func_$ac_func=yes"
6444 else
6445 echo "configure: failed program was:" >&5
6446 cat conftest.$ac_ext >&5
6447 rm -rf conftest*
6448 eval "ac_cv_func_$ac_func=no"
6450 rm -f conftest*
6453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6454 echo "$ac_t""yes" 1>&6
6455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6456 cat >> confdefs.h <<EOF
6457 #define $ac_tr_func 1
6460 else
6461 echo "$ac_t""no" 1>&6
6463 done
6465 else
6467 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6468 echo "configure:6469: checking for _isinf declaration" >&5
6469 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6470 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6472 else
6475 ac_ext=C
6476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6477 ac_cpp='$CXXCPP $CPPFLAGS'
6478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6480 cross_compiling=$ac_cv_prog_cxx_cross
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <math.h>
6486 #ifdef HAVE_IEEEFP_H
6487 #include <ieeefp.h>
6488 #endif
6490 int main() {
6491 _isinf(0);
6492 ; return 0; }
6494 if { (eval echo configure:6495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6495 rm -rf conftest*
6496 glibcpp_cv_func__isinf_use=yes
6497 else
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 glibcpp_cv_func__isinf_use=no
6503 rm -f conftest*
6504 ac_ext=c
6505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6509 cross_compiling=$ac_cv_prog_cc_cross
6515 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6517 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6518 for ac_func in _isinf
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func(); below. */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char $ac_func();
6536 int main() {
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 $ac_func();
6545 #endif
6547 ; return 0; }
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 rm -rf conftest*
6551 eval "ac_cv_func_$ac_func=yes"
6552 else
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 rm -rf conftest*
6556 eval "ac_cv_func_$ac_func=no"
6558 rm -f conftest*
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564 cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6568 else
6569 echo "$ac_t""no" 1>&6
6571 done
6578 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6579 echo "configure:6580: checking for isnan declaration" >&5
6580 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6581 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6586 ac_ext=C
6587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6588 ac_cpp='$CXXCPP $CPPFLAGS'
6589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6591 cross_compiling=$ac_cv_prog_cxx_cross
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <math.h>
6597 #ifdef HAVE_IEEEFP_H
6598 #include <ieeefp.h>
6599 #endif
6601 int main() {
6602 isnan(0);
6603 ; return 0; }
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6606 rm -rf conftest*
6607 glibcpp_cv_func_isnan_use=yes
6608 else
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 rm -rf conftest*
6612 glibcpp_cv_func_isnan_use=no
6614 rm -f conftest*
6615 ac_ext=c
6616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6617 ac_cpp='$CPP $CPPFLAGS'
6618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6620 cross_compiling=$ac_cv_prog_cc_cross
6626 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6628 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6629 for ac_func in isnan
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6641 #include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645 char $ac_func();
6647 int main() {
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 choke me
6654 #else
6655 $ac_func();
6656 #endif
6658 ; return 0; }
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 rm -rf conftest*
6662 eval "ac_cv_func_$ac_func=yes"
6663 else
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 rm -rf conftest*
6667 eval "ac_cv_func_$ac_func=no"
6669 rm -f conftest*
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6679 else
6680 echo "$ac_t""no" 1>&6
6682 done
6684 else
6686 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6687 echo "configure:6688: checking for _isnan declaration" >&5
6688 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6689 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6694 ac_ext=C
6695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6696 ac_cpp='$CXXCPP $CPPFLAGS'
6697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6699 cross_compiling=$ac_cv_prog_cxx_cross
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <math.h>
6705 #ifdef HAVE_IEEEFP_H
6706 #include <ieeefp.h>
6707 #endif
6709 int main() {
6710 _isnan(0);
6711 ; return 0; }
6713 if { (eval echo configure:6714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6714 rm -rf conftest*
6715 glibcpp_cv_func__isnan_use=yes
6716 else
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 rm -rf conftest*
6720 glibcpp_cv_func__isnan_use=no
6722 rm -f conftest*
6723 ac_ext=c
6724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6725 ac_cpp='$CPP $CPPFLAGS'
6726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6728 cross_compiling=$ac_cv_prog_cc_cross
6734 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6736 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6737 for ac_func in _isnan
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6743 else
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char $ac_func();
6755 int main() {
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6761 choke me
6762 #else
6763 $ac_func();
6764 #endif
6766 ; return 0; }
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 rm -rf conftest*
6770 eval "ac_cv_func_$ac_func=yes"
6771 else
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 rm -rf conftest*
6775 eval "ac_cv_func_$ac_func=no"
6777 rm -f conftest*
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783 cat >> confdefs.h <<EOF
6784 #define $ac_tr_func 1
6787 else
6788 echo "$ac_t""no" 1>&6
6790 done
6797 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6798 echo "configure:6799: checking for finite declaration" >&5
6799 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6800 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6801 echo $ac_n "(cached) $ac_c" 1>&6
6802 else
6805 ac_ext=C
6806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6810 cross_compiling=$ac_cv_prog_cxx_cross
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 #include <math.h>
6816 #ifdef HAVE_IEEEFP_H
6817 #include <ieeefp.h>
6818 #endif
6820 int main() {
6821 finite(0);
6822 ; return 0; }
6824 if { (eval echo configure:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6825 rm -rf conftest*
6826 glibcpp_cv_func_finite_use=yes
6827 else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
6831 glibcpp_cv_func_finite_use=no
6833 rm -f conftest*
6834 ac_ext=c
6835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6839 cross_compiling=$ac_cv_prog_cc_cross
6845 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6847 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6848 for ac_func in finite
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6854 else
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char $ac_func(); below. */
6860 #include <assert.h>
6861 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6864 char $ac_func();
6866 int main() {
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6872 choke me
6873 #else
6874 $ac_func();
6875 #endif
6877 ; return 0; }
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 rm -rf conftest*
6881 eval "ac_cv_func_$ac_func=yes"
6882 else
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 rm -rf conftest*
6886 eval "ac_cv_func_$ac_func=no"
6888 rm -f conftest*
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6898 else
6899 echo "$ac_t""no" 1>&6
6901 done
6903 else
6905 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6906 echo "configure:6907: checking for _finite declaration" >&5
6907 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6908 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6913 ac_ext=C
6914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6915 ac_cpp='$CXXCPP $CPPFLAGS'
6916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6918 cross_compiling=$ac_cv_prog_cxx_cross
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 #include <math.h>
6924 #ifdef HAVE_IEEEFP_H
6925 #include <ieeefp.h>
6926 #endif
6928 int main() {
6929 _finite(0);
6930 ; return 0; }
6932 if { (eval echo configure:6933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6933 rm -rf conftest*
6934 glibcpp_cv_func__finite_use=yes
6935 else
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6938 rm -rf conftest*
6939 glibcpp_cv_func__finite_use=no
6941 rm -f conftest*
6942 ac_ext=c
6943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6944 ac_cpp='$CPP $CPPFLAGS'
6945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6947 cross_compiling=$ac_cv_prog_cc_cross
6953 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6955 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6956 for ac_func in _finite
6958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6959 echo "configure:6960: checking for $ac_func" >&5
6960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func(); below. */
6968 #include <assert.h>
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6972 char $ac_func();
6974 int main() {
6976 /* The GNU C library defines this for functions which it implements
6977 to always fail with ENOSYS. Some functions are actually named
6978 something starting with __ and the normal name is an alias. */
6979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6980 choke me
6981 #else
6982 $ac_func();
6983 #endif
6985 ; return 0; }
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 rm -rf conftest*
6989 eval "ac_cv_func_$ac_func=yes"
6990 else
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6993 rm -rf conftest*
6994 eval "ac_cv_func_$ac_func=no"
6996 rm -f conftest*
6999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7002 cat >> confdefs.h <<EOF
7003 #define $ac_tr_func 1
7006 else
7007 echo "$ac_t""no" 1>&6
7009 done
7016 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7017 echo "configure:7018: checking for copysign declaration" >&5
7018 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7019 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7020 echo $ac_n "(cached) $ac_c" 1>&6
7021 else
7024 ac_ext=C
7025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7026 ac_cpp='$CXXCPP $CPPFLAGS'
7027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7029 cross_compiling=$ac_cv_prog_cxx_cross
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 #include <math.h>
7035 int main() {
7036 copysign(0, 0);
7037 ; return 0; }
7039 if { (eval echo configure:7040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7040 rm -rf conftest*
7041 glibcpp_cv_func_copysign_use=yes
7042 else
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 glibcpp_cv_func_copysign_use=no
7048 rm -f conftest*
7049 ac_ext=c
7050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7054 cross_compiling=$ac_cv_prog_cc_cross
7060 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7062 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7063 for ac_func in copysign
7065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7066 echo "configure:7067: checking for $ac_func" >&5
7067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7069 else
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7073 /* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char $ac_func(); below. */
7075 #include <assert.h>
7076 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7079 char $ac_func();
7081 int main() {
7083 /* The GNU C library defines this for functions which it implements
7084 to always fail with ENOSYS. Some functions are actually named
7085 something starting with __ and the normal name is an alias. */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7087 choke me
7088 #else
7089 $ac_func();
7090 #endif
7092 ; return 0; }
7094 if { (eval echo configure:7095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7095 rm -rf conftest*
7096 eval "ac_cv_func_$ac_func=yes"
7097 else
7098 echo "configure: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7100 rm -rf conftest*
7101 eval "ac_cv_func_$ac_func=no"
7103 rm -f conftest*
7106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7109 cat >> confdefs.h <<EOF
7110 #define $ac_tr_func 1
7113 else
7114 echo "$ac_t""no" 1>&6
7116 done
7118 else
7120 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7121 echo "configure:7122: checking for _copysign declaration" >&5
7122 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7123 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7125 else
7128 ac_ext=C
7129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7130 ac_cpp='$CXXCPP $CPPFLAGS'
7131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7133 cross_compiling=$ac_cv_prog_cxx_cross
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 #include <math.h>
7139 int main() {
7140 _copysign(0, 0);
7141 ; return 0; }
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144 rm -rf conftest*
7145 glibcpp_cv_func__copysign_use=yes
7146 else
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 rm -rf conftest*
7150 glibcpp_cv_func__copysign_use=no
7152 rm -f conftest*
7153 ac_ext=c
7154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7158 cross_compiling=$ac_cv_prog_cc_cross
7164 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7166 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7167 for ac_func in _copysign
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178 which can conflict with char $ac_func(); below. */
7179 #include <assert.h>
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7183 char $ac_func();
7185 int main() {
7187 /* The GNU C library defines this for functions which it implements
7188 to always fail with ENOSYS. Some functions are actually named
7189 something starting with __ and the normal name is an alias. */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7191 choke me
7192 #else
7193 $ac_func();
7194 #endif
7196 ; return 0; }
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 rm -rf conftest*
7200 eval "ac_cv_func_$ac_func=yes"
7201 else
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 rm -rf conftest*
7205 eval "ac_cv_func_$ac_func=no"
7207 rm -f conftest*
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213 cat >> confdefs.h <<EOF
7214 #define $ac_tr_func 1
7217 else
7218 echo "$ac_t""no" 1>&6
7220 done
7227 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7228 echo "configure:7229: checking for sincos declaration" >&5
7229 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7230 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7235 ac_ext=C
7236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7237 ac_cpp='$CXXCPP $CPPFLAGS'
7238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7240 cross_compiling=$ac_cv_prog_cxx_cross
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <math.h>
7246 int main() {
7247 sincos(0, 0, 0);
7248 ; return 0; }
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251 rm -rf conftest*
7252 glibcpp_cv_func_sincos_use=yes
7253 else
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7256 rm -rf conftest*
7257 glibcpp_cv_func_sincos_use=no
7259 rm -f conftest*
7260 ac_ext=c
7261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7265 cross_compiling=$ac_cv_prog_cc_cross
7271 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7273 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7274 for ac_func in sincos
7276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7277 echo "configure:7278: checking for $ac_func" >&5
7278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7280 else
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 /* System header to define __stub macros and hopefully few prototypes,
7285 which can conflict with char $ac_func(); below. */
7286 #include <assert.h>
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7290 char $ac_func();
7292 int main() {
7294 /* The GNU C library defines this for functions which it implements
7295 to always fail with ENOSYS. Some functions are actually named
7296 something starting with __ and the normal name is an alias. */
7297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7298 choke me
7299 #else
7300 $ac_func();
7301 #endif
7303 ; return 0; }
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 rm -rf conftest*
7307 eval "ac_cv_func_$ac_func=yes"
7308 else
7309 echo "configure: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7311 rm -rf conftest*
7312 eval "ac_cv_func_$ac_func=no"
7314 rm -f conftest*
7317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7320 cat >> confdefs.h <<EOF
7321 #define $ac_tr_func 1
7324 else
7325 echo "$ac_t""no" 1>&6
7327 done
7329 else
7331 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7332 echo "configure:7333: checking for _sincos declaration" >&5
7333 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7334 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7339 ac_ext=C
7340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7341 ac_cpp='$CXXCPP $CPPFLAGS'
7342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7344 cross_compiling=$ac_cv_prog_cxx_cross
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <math.h>
7350 int main() {
7351 _sincos(0, 0, 0);
7352 ; return 0; }
7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7355 rm -rf conftest*
7356 glibcpp_cv_func__sincos_use=yes
7357 else
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 rm -rf conftest*
7361 glibcpp_cv_func__sincos_use=no
7363 rm -f conftest*
7364 ac_ext=c
7365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7369 cross_compiling=$ac_cv_prog_cc_cross
7375 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7377 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7378 for ac_func in _sincos
7380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7381 echo "configure:7382: checking for $ac_func" >&5
7382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7384 else
7385 cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7388 /* System header to define __stub macros and hopefully few prototypes,
7389 which can conflict with char $ac_func(); below. */
7390 #include <assert.h>
7391 /* Override any gcc2 internal prototype to avoid an error. */
7392 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */
7394 char $ac_func();
7396 int main() {
7398 /* The GNU C library defines this for functions which it implements
7399 to always fail with ENOSYS. Some functions are actually named
7400 something starting with __ and the normal name is an alias. */
7401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7402 choke me
7403 #else
7404 $ac_func();
7405 #endif
7407 ; return 0; }
7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7410 rm -rf conftest*
7411 eval "ac_cv_func_$ac_func=yes"
7412 else
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7415 rm -rf conftest*
7416 eval "ac_cv_func_$ac_func=no"
7418 rm -f conftest*
7421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7422 echo "$ac_t""yes" 1>&6
7423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7424 cat >> confdefs.h <<EOF
7425 #define $ac_tr_func 1
7428 else
7429 echo "$ac_t""no" 1>&6
7431 done
7438 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7439 echo "configure:7440: checking for fpclass declaration" >&5
7440 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7441 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7443 else
7446 ac_ext=C
7447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7448 ac_cpp='$CXXCPP $CPPFLAGS'
7449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7451 cross_compiling=$ac_cv_prog_cxx_cross
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 #include <math.h>
7457 #ifdef HAVE_IEEEFP_H
7458 #include <ieeefp.h>
7459 #endif
7461 int main() {
7462 fpclass(0);
7463 ; return 0; }
7465 if { (eval echo configure:7466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7466 rm -rf conftest*
7467 glibcpp_cv_func_fpclass_use=yes
7468 else
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 rm -rf conftest*
7472 glibcpp_cv_func_fpclass_use=no
7474 rm -f conftest*
7475 ac_ext=c
7476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7480 cross_compiling=$ac_cv_prog_cc_cross
7486 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7488 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7489 for ac_func in fpclass
7491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_func" >&5
7493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7495 else
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char $ac_func(); below. */
7501 #include <assert.h>
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char $ac_func();
7507 int main() {
7509 /* The GNU C library defines this for functions which it implements
7510 to always fail with ENOSYS. Some functions are actually named
7511 something starting with __ and the normal name is an alias. */
7512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7513 choke me
7514 #else
7515 $ac_func();
7516 #endif
7518 ; return 0; }
7520 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521 rm -rf conftest*
7522 eval "ac_cv_func_$ac_func=yes"
7523 else
7524 echo "configure: failed program was:" >&5
7525 cat conftest.$ac_ext >&5
7526 rm -rf conftest*
7527 eval "ac_cv_func_$ac_func=no"
7529 rm -f conftest*
7532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7535 cat >> confdefs.h <<EOF
7536 #define $ac_tr_func 1
7539 else
7540 echo "$ac_t""no" 1>&6
7542 done
7544 else
7546 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7547 echo "configure:7548: checking for _fpclass declaration" >&5
7548 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7549 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7554 ac_ext=C
7555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7556 ac_cpp='$CXXCPP $CPPFLAGS'
7557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7559 cross_compiling=$ac_cv_prog_cxx_cross
7561 cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 #include <math.h>
7565 #ifdef HAVE_IEEEFP_H
7566 #include <ieeefp.h>
7567 #endif
7569 int main() {
7570 _fpclass(0);
7571 ; return 0; }
7573 if { (eval echo configure:7574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7574 rm -rf conftest*
7575 glibcpp_cv_func__fpclass_use=yes
7576 else
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7579 rm -rf conftest*
7580 glibcpp_cv_func__fpclass_use=no
7582 rm -f conftest*
7583 ac_ext=c
7584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7585 ac_cpp='$CPP $CPPFLAGS'
7586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7588 cross_compiling=$ac_cv_prog_cc_cross
7594 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7596 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7597 for ac_func in _fpclass
7599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7600 echo "configure:7601: checking for $ac_func" >&5
7601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7603 else
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7607 /* System header to define __stub macros and hopefully few prototypes,
7608 which can conflict with char $ac_func(); below. */
7609 #include <assert.h>
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7613 char $ac_func();
7615 int main() {
7617 /* The GNU C library defines this for functions which it implements
7618 to always fail with ENOSYS. Some functions are actually named
7619 something starting with __ and the normal name is an alias. */
7620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7621 choke me
7622 #else
7623 $ac_func();
7624 #endif
7626 ; return 0; }
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629 rm -rf conftest*
7630 eval "ac_cv_func_$ac_func=yes"
7631 else
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7634 rm -rf conftest*
7635 eval "ac_cv_func_$ac_func=no"
7637 rm -f conftest*
7640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7643 cat >> confdefs.h <<EOF
7644 #define $ac_tr_func 1
7647 else
7648 echo "$ac_t""no" 1>&6
7650 done
7657 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7658 echo "configure:7659: checking for qfpclass declaration" >&5
7659 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7660 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7665 ac_ext=C
7666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7667 ac_cpp='$CXXCPP $CPPFLAGS'
7668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7670 cross_compiling=$ac_cv_prog_cxx_cross
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 #include <math.h>
7676 #ifdef HAVE_IEEEFP_H
7677 #include <ieeefp.h>
7678 #endif
7680 int main() {
7681 qfpclass(0);
7682 ; return 0; }
7684 if { (eval echo configure:7685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7685 rm -rf conftest*
7686 glibcpp_cv_func_qfpclass_use=yes
7687 else
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 rm -rf conftest*
7691 glibcpp_cv_func_qfpclass_use=no
7693 rm -f conftest*
7694 ac_ext=c
7695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7699 cross_compiling=$ac_cv_prog_cc_cross
7705 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7707 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7708 for ac_func in qfpclass
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func(); below. */
7720 #include <assert.h>
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724 char $ac_func();
7726 int main() {
7728 /* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7732 choke me
7733 #else
7734 $ac_func();
7735 #endif
7737 ; return 0; }
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740 rm -rf conftest*
7741 eval "ac_cv_func_$ac_func=yes"
7742 else
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 rm -rf conftest*
7746 eval "ac_cv_func_$ac_func=no"
7748 rm -f conftest*
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754 cat >> confdefs.h <<EOF
7755 #define $ac_tr_func 1
7758 else
7759 echo "$ac_t""no" 1>&6
7761 done
7763 else
7765 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7766 echo "configure:7767: checking for _qfpclass declaration" >&5
7767 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7768 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7773 ac_ext=C
7774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7778 cross_compiling=$ac_cv_prog_cxx_cross
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 #include <math.h>
7784 #ifdef HAVE_IEEEFP_H
7785 #include <ieeefp.h>
7786 #endif
7788 int main() {
7789 _qfpclass(0);
7790 ; return 0; }
7792 if { (eval echo configure:7793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7793 rm -rf conftest*
7794 glibcpp_cv_func__qfpclass_use=yes
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -rf conftest*
7799 glibcpp_cv_func__qfpclass_use=no
7801 rm -f conftest*
7802 ac_ext=c
7803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7807 cross_compiling=$ac_cv_prog_cc_cross
7813 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7815 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7816 for ac_func in _qfpclass
7818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_func" >&5
7820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 /* System header to define __stub macros and hopefully few prototypes,
7827 which can conflict with char $ac_func(); below. */
7828 #include <assert.h>
7829 /* Override any gcc2 internal prototype to avoid an error. */
7830 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */
7832 char $ac_func();
7834 int main() {
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 choke me
7841 #else
7842 $ac_func();
7843 #endif
7845 ; return 0; }
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 rm -rf conftest*
7849 eval "ac_cv_func_$ac_func=yes"
7850 else
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7853 rm -rf conftest*
7854 eval "ac_cv_func_$ac_func=no"
7856 rm -f conftest*
7859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7860 echo "$ac_t""yes" 1>&6
7861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7862 cat >> confdefs.h <<EOF
7863 #define $ac_tr_func 1
7866 else
7867 echo "$ac_t""no" 1>&6
7869 done
7876 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7877 echo "configure:7878: checking for float trig functions" >&5
7878 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7880 else
7883 ac_ext=C
7884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7885 ac_cpp='$CXXCPP $CPPFLAGS'
7886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7888 cross_compiling=$ac_cv_prog_cxx_cross
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 #include <math.h>
7894 int main() {
7895 `for x in acosf asinf atanf \
7896 cosf sinf tanf \
7897 coshf sinhf tanhf; do echo "$x (0);"; done`
7898 ; return 0; }
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7901 rm -rf conftest*
7902 glibcpp_cv_func_float_trig_use=yes
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 glibcpp_cv_func_float_trig_use=no
7909 rm -f conftest*
7910 ac_ext=c
7911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7915 cross_compiling=$ac_cv_prog_cc_cross
7919 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7920 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7921 for ac_func in acosf asinf atanf \
7922 cosf sinf tanf \
7923 coshf sinhf tanhf
7925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_func" >&5
7927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929 else
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char $ac_func(); below. */
7935 #include <assert.h>
7936 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939 char $ac_func();
7941 int main() {
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7947 choke me
7948 #else
7949 $ac_func();
7950 #endif
7952 ; return 0; }
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 rm -rf conftest*
7956 eval "ac_cv_func_$ac_func=yes"
7957 else
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 rm -rf conftest*
7961 eval "ac_cv_func_$ac_func=no"
7963 rm -f conftest*
7966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7969 cat >> confdefs.h <<EOF
7970 #define $ac_tr_func 1
7973 else
7974 echo "$ac_t""no" 1>&6
7976 done
7981 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7982 echo "configure:7983: checking for float round functions" >&5
7983 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7988 ac_ext=C
7989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7990 ac_cpp='$CXXCPP $CPPFLAGS'
7991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7993 cross_compiling=$ac_cv_prog_cxx_cross
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 #include <math.h>
7999 int main() {
8000 `for x in ceilf floorf; do echo "$x (0);"; done`
8001 ; return 0; }
8003 if { (eval echo configure:8004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8004 rm -rf conftest*
8005 glibcpp_cv_func_float_round_use=yes
8006 else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 glibcpp_cv_func_float_round_use=no
8012 rm -f conftest*
8013 ac_ext=c
8014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8018 cross_compiling=$ac_cv_prog_cc_cross
8022 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8023 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8024 for ac_func in ceilf floorf
8026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_func" >&5
8028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8030 else
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034 /* System header to define __stub macros and hopefully few prototypes,
8035 which can conflict with char $ac_func(); below. */
8036 #include <assert.h>
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 /* We use char because int might match the return type of a gcc2
8039 builtin and then its argument prototype would still apply. */
8040 char $ac_func();
8042 int main() {
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048 choke me
8049 #else
8050 $ac_func();
8051 #endif
8053 ; return 0; }
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056 rm -rf conftest*
8057 eval "ac_cv_func_$ac_func=yes"
8058 else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 rm -rf conftest*
8062 eval "ac_cv_func_$ac_func=no"
8064 rm -f conftest*
8067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8068 echo "$ac_t""yes" 1>&6
8069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8070 cat >> confdefs.h <<EOF
8071 #define $ac_tr_func 1
8074 else
8075 echo "$ac_t""no" 1>&6
8077 done
8083 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8084 echo "configure:8085: checking for isnanf declaration" >&5
8085 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8086 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8091 ac_ext=C
8092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8093 ac_cpp='$CXXCPP $CPPFLAGS'
8094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8096 cross_compiling=$ac_cv_prog_cxx_cross
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 #include <math.h>
8102 #ifdef HAVE_IEEEFP_H
8103 #include <ieeefp.h>
8104 #endif
8106 int main() {
8107 isnanf(0);
8108 ; return 0; }
8110 if { (eval echo configure:8111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8111 rm -rf conftest*
8112 glibcpp_cv_func_isnanf_use=yes
8113 else
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 rm -rf conftest*
8117 glibcpp_cv_func_isnanf_use=no
8119 rm -f conftest*
8120 ac_ext=c
8121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8125 cross_compiling=$ac_cv_prog_cc_cross
8131 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8133 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8134 for ac_func in isnanf
8136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_func" >&5
8138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141 cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8144 /* System header to define __stub macros and hopefully few prototypes,
8145 which can conflict with char $ac_func(); below. */
8146 #include <assert.h>
8147 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8150 char $ac_func();
8152 int main() {
8154 /* The GNU C library defines this for functions which it implements
8155 to always fail with ENOSYS. Some functions are actually named
8156 something starting with __ and the normal name is an alias. */
8157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8158 choke me
8159 #else
8160 $ac_func();
8161 #endif
8163 ; return 0; }
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 rm -rf conftest*
8167 eval "ac_cv_func_$ac_func=yes"
8168 else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 eval "ac_cv_func_$ac_func=no"
8174 rm -f conftest*
8177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8180 cat >> confdefs.h <<EOF
8181 #define $ac_tr_func 1
8184 else
8185 echo "$ac_t""no" 1>&6
8187 done
8189 else
8191 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8192 echo "configure:8193: checking for _isnanf declaration" >&5
8193 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8194 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8199 ac_ext=C
8200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8201 ac_cpp='$CXXCPP $CPPFLAGS'
8202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8204 cross_compiling=$ac_cv_prog_cxx_cross
8206 cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 #include <math.h>
8210 #ifdef HAVE_IEEEFP_H
8211 #include <ieeefp.h>
8212 #endif
8214 int main() {
8215 _isnanf(0);
8216 ; return 0; }
8218 if { (eval echo configure:8219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8219 rm -rf conftest*
8220 glibcpp_cv_func__isnanf_use=yes
8221 else
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8224 rm -rf conftest*
8225 glibcpp_cv_func__isnanf_use=no
8227 rm -f conftest*
8228 ac_ext=c
8229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8233 cross_compiling=$ac_cv_prog_cc_cross
8239 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8241 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8242 for ac_func in _isnanf
8244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8245 echo "configure:8246: checking for $ac_func" >&5
8246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8248 else
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* System header to define __stub macros and hopefully few prototypes,
8253 which can conflict with char $ac_func(); below. */
8254 #include <assert.h>
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258 char $ac_func();
8260 int main() {
8262 /* The GNU C library defines this for functions which it implements
8263 to always fail with ENOSYS. Some functions are actually named
8264 something starting with __ and the normal name is an alias. */
8265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 choke me
8267 #else
8268 $ac_func();
8269 #endif
8271 ; return 0; }
8273 if { (eval echo configure:8274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8274 rm -rf conftest*
8275 eval "ac_cv_func_$ac_func=yes"
8276 else
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8279 rm -rf conftest*
8280 eval "ac_cv_func_$ac_func=no"
8282 rm -f conftest*
8285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8288 cat >> confdefs.h <<EOF
8289 #define $ac_tr_func 1
8292 else
8293 echo "$ac_t""no" 1>&6
8295 done
8302 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8303 echo "configure:8304: checking for isinff declaration" >&5
8304 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8305 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8307 else
8310 ac_ext=C
8311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8312 ac_cpp='$CXXCPP $CPPFLAGS'
8313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8315 cross_compiling=$ac_cv_prog_cxx_cross
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 #include <math.h>
8321 #ifdef HAVE_IEEEFP_H
8322 #include <ieeefp.h>
8323 #endif
8325 int main() {
8326 isinff(0);
8327 ; return 0; }
8329 if { (eval echo configure:8330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8330 rm -rf conftest*
8331 glibcpp_cv_func_isinff_use=yes
8332 else
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 rm -rf conftest*
8336 glibcpp_cv_func_isinff_use=no
8338 rm -f conftest*
8339 ac_ext=c
8340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8341 ac_cpp='$CPP $CPPFLAGS'
8342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8344 cross_compiling=$ac_cv_prog_cc_cross
8350 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8352 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8353 for ac_func in isinff
8355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_func" >&5
8357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8359 else
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func(); below. */
8365 #include <assert.h>
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369 char $ac_func();
8371 int main() {
8373 /* The GNU C library defines this for functions which it implements
8374 to always fail with ENOSYS. Some functions are actually named
8375 something starting with __ and the normal name is an alias. */
8376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8377 choke me
8378 #else
8379 $ac_func();
8380 #endif
8382 ; return 0; }
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385 rm -rf conftest*
8386 eval "ac_cv_func_$ac_func=yes"
8387 else
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 rm -rf conftest*
8391 eval "ac_cv_func_$ac_func=no"
8393 rm -f conftest*
8396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8397 echo "$ac_t""yes" 1>&6
8398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8399 cat >> confdefs.h <<EOF
8400 #define $ac_tr_func 1
8403 else
8404 echo "$ac_t""no" 1>&6
8406 done
8408 else
8410 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8411 echo "configure:8412: checking for _isinff declaration" >&5
8412 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8413 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6
8415 else
8418 ac_ext=C
8419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8420 ac_cpp='$CXXCPP $CPPFLAGS'
8421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8423 cross_compiling=$ac_cv_prog_cxx_cross
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <math.h>
8429 #ifdef HAVE_IEEEFP_H
8430 #include <ieeefp.h>
8431 #endif
8433 int main() {
8434 _isinff(0);
8435 ; return 0; }
8437 if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8438 rm -rf conftest*
8439 glibcpp_cv_func__isinff_use=yes
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -rf conftest*
8444 glibcpp_cv_func__isinff_use=no
8446 rm -f conftest*
8447 ac_ext=c
8448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8452 cross_compiling=$ac_cv_prog_cc_cross
8458 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8460 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8461 for ac_func in _isinff
8463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_func" >&5
8465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* System header to define __stub macros and hopefully few prototypes,
8472 which can conflict with char $ac_func(); below. */
8473 #include <assert.h>
8474 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char $ac_func();
8479 int main() {
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 choke me
8486 #else
8487 $ac_func();
8488 #endif
8490 ; return 0; }
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493 rm -rf conftest*
8494 eval "ac_cv_func_$ac_func=yes"
8495 else
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 rm -rf conftest*
8499 eval "ac_cv_func_$ac_func=no"
8501 rm -f conftest*
8504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8507 cat >> confdefs.h <<EOF
8508 #define $ac_tr_func 1
8511 else
8512 echo "$ac_t""no" 1>&6
8514 done
8521 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8522 echo "configure:8523: checking for fabsf declaration" >&5
8523 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8524 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8526 else
8529 ac_ext=C
8530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8531 ac_cpp='$CXXCPP $CPPFLAGS'
8532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8534 cross_compiling=$ac_cv_prog_cxx_cross
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 #include <math.h>
8540 #ifdef HAVE_IEEEFP_H
8541 #include <ieeefp.h>
8542 #endif
8544 int main() {
8545 fabsf(0);
8546 ; return 0; }
8548 if { (eval echo configure:8549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8549 rm -rf conftest*
8550 glibcpp_cv_func_fabsf_use=yes
8551 else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -rf conftest*
8555 glibcpp_cv_func_fabsf_use=no
8557 rm -f conftest*
8558 ac_ext=c
8559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8563 cross_compiling=$ac_cv_prog_cc_cross
8569 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8571 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8572 for ac_func in fabsf
8574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8575 echo "configure:8576: checking for $ac_func" >&5
8576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* System header to define __stub macros and hopefully few prototypes,
8583 which can conflict with char $ac_func(); below. */
8584 #include <assert.h>
8585 /* Override any gcc2 internal prototype to avoid an error. */
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char $ac_func();
8590 int main() {
8592 /* The GNU C library defines this for functions which it implements
8593 to always fail with ENOSYS. Some functions are actually named
8594 something starting with __ and the normal name is an alias. */
8595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8596 choke me
8597 #else
8598 $ac_func();
8599 #endif
8601 ; return 0; }
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8604 rm -rf conftest*
8605 eval "ac_cv_func_$ac_func=yes"
8606 else
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 rm -rf conftest*
8610 eval "ac_cv_func_$ac_func=no"
8612 rm -f conftest*
8615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8618 cat >> confdefs.h <<EOF
8619 #define $ac_tr_func 1
8622 else
8623 echo "$ac_t""no" 1>&6
8625 done
8627 else
8629 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8630 echo "configure:8631: checking for _fabsf declaration" >&5
8631 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8632 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8637 ac_ext=C
8638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8639 ac_cpp='$CXXCPP $CPPFLAGS'
8640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8642 cross_compiling=$ac_cv_prog_cxx_cross
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <math.h>
8648 #ifdef HAVE_IEEEFP_H
8649 #include <ieeefp.h>
8650 #endif
8652 int main() {
8653 _fabsf(0);
8654 ; return 0; }
8656 if { (eval echo configure:8657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8657 rm -rf conftest*
8658 glibcpp_cv_func__fabsf_use=yes
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -rf conftest*
8663 glibcpp_cv_func__fabsf_use=no
8665 rm -f conftest*
8666 ac_ext=c
8667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8671 cross_compiling=$ac_cv_prog_cc_cross
8677 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8679 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8680 for ac_func in _fabsf
8682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_func" >&5
8684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 /* System header to define __stub macros and hopefully few prototypes,
8691 which can conflict with char $ac_func(); below. */
8692 #include <assert.h>
8693 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8696 char $ac_func();
8698 int main() {
8700 /* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 choke me
8705 #else
8706 $ac_func();
8707 #endif
8709 ; return 0; }
8711 if { (eval echo configure:8712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 rm -rf conftest*
8713 eval "ac_cv_func_$ac_func=yes"
8714 else
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 rm -rf conftest*
8718 eval "ac_cv_func_$ac_func=no"
8720 rm -f conftest*
8723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8726 cat >> confdefs.h <<EOF
8727 #define $ac_tr_func 1
8730 else
8731 echo "$ac_t""no" 1>&6
8733 done
8740 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8741 echo "configure:8742: checking for fmodf declaration" >&5
8742 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8743 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8748 ac_ext=C
8749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8750 ac_cpp='$CXXCPP $CPPFLAGS'
8751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8753 cross_compiling=$ac_cv_prog_cxx_cross
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <math.h>
8759 int main() {
8760 fmodf(0, 0);
8761 ; return 0; }
8763 if { (eval echo configure:8764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8764 rm -rf conftest*
8765 glibcpp_cv_func_fmodf_use=yes
8766 else
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 rm -rf conftest*
8770 glibcpp_cv_func_fmodf_use=no
8772 rm -f conftest*
8773 ac_ext=c
8774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8778 cross_compiling=$ac_cv_prog_cc_cross
8784 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8786 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8787 for ac_func in fmodf
8789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_func" >&5
8791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func(); below. */
8799 #include <assert.h>
8800 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char $ac_func();
8805 int main() {
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8811 choke me
8812 #else
8813 $ac_func();
8814 #endif
8816 ; return 0; }
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819 rm -rf conftest*
8820 eval "ac_cv_func_$ac_func=yes"
8821 else
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 rm -rf conftest*
8825 eval "ac_cv_func_$ac_func=no"
8827 rm -f conftest*
8830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8831 echo "$ac_t""yes" 1>&6
8832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8833 cat >> confdefs.h <<EOF
8834 #define $ac_tr_func 1
8837 else
8838 echo "$ac_t""no" 1>&6
8840 done
8842 else
8844 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8845 echo "configure:8846: checking for _fmodf declaration" >&5
8846 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8847 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8852 ac_ext=C
8853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8854 ac_cpp='$CXXCPP $CPPFLAGS'
8855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8857 cross_compiling=$ac_cv_prog_cxx_cross
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <math.h>
8863 int main() {
8864 _fmodf(0, 0);
8865 ; return 0; }
8867 if { (eval echo configure:8868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8868 rm -rf conftest*
8869 glibcpp_cv_func__fmodf_use=yes
8870 else
8871 echo "configure: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8873 rm -rf conftest*
8874 glibcpp_cv_func__fmodf_use=no
8876 rm -f conftest*
8877 ac_ext=c
8878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8882 cross_compiling=$ac_cv_prog_cc_cross
8888 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8890 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8891 for ac_func in _fmodf
8893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_func" >&5
8895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func(); below. */
8903 #include <assert.h>
8904 /* Override any gcc2 internal prototype to avoid an error. */
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8907 char $ac_func();
8909 int main() {
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8915 choke me
8916 #else
8917 $ac_func();
8918 #endif
8920 ; return 0; }
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 rm -rf conftest*
8924 eval "ac_cv_func_$ac_func=yes"
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 eval "ac_cv_func_$ac_func=no"
8931 rm -f conftest*
8934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8935 echo "$ac_t""yes" 1>&6
8936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8937 cat >> confdefs.h <<EOF
8938 #define $ac_tr_func 1
8941 else
8942 echo "$ac_t""no" 1>&6
8944 done
8951 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8952 echo "configure:8953: checking for frexpf declaration" >&5
8953 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8954 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8959 ac_ext=C
8960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8961 ac_cpp='$CXXCPP $CPPFLAGS'
8962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8964 cross_compiling=$ac_cv_prog_cxx_cross
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 #include <math.h>
8970 int main() {
8971 frexpf(0, 0);
8972 ; return 0; }
8974 if { (eval echo configure:8975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8975 rm -rf conftest*
8976 glibcpp_cv_func_frexpf_use=yes
8977 else
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8980 rm -rf conftest*
8981 glibcpp_cv_func_frexpf_use=no
8983 rm -f conftest*
8984 ac_ext=c
8985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8986 ac_cpp='$CPP $CPPFLAGS'
8987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8989 cross_compiling=$ac_cv_prog_cc_cross
8995 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8997 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8998 for ac_func in frexpf
9000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9001 echo "configure:9002: checking for $ac_func" >&5
9002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9004 else
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 /* System header to define __stub macros and hopefully few prototypes,
9009 which can conflict with char $ac_func(); below. */
9010 #include <assert.h>
9011 /* Override any gcc2 internal prototype to avoid an error. */
9012 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */
9014 char $ac_func();
9016 int main() {
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9022 choke me
9023 #else
9024 $ac_func();
9025 #endif
9027 ; return 0; }
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9030 rm -rf conftest*
9031 eval "ac_cv_func_$ac_func=yes"
9032 else
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9035 rm -rf conftest*
9036 eval "ac_cv_func_$ac_func=no"
9038 rm -f conftest*
9041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9044 cat >> confdefs.h <<EOF
9045 #define $ac_tr_func 1
9048 else
9049 echo "$ac_t""no" 1>&6
9051 done
9053 else
9055 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9056 echo "configure:9057: checking for _frexpf declaration" >&5
9057 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9058 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9060 else
9063 ac_ext=C
9064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9065 ac_cpp='$CXXCPP $CPPFLAGS'
9066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9068 cross_compiling=$ac_cv_prog_cxx_cross
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 #include <math.h>
9074 int main() {
9075 _frexpf(0, 0);
9076 ; return 0; }
9078 if { (eval echo configure:9079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9079 rm -rf conftest*
9080 glibcpp_cv_func__frexpf_use=yes
9081 else
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 rm -rf conftest*
9085 glibcpp_cv_func__frexpf_use=no
9087 rm -f conftest*
9088 ac_ext=c
9089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9093 cross_compiling=$ac_cv_prog_cc_cross
9099 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9101 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9102 for ac_func in _frexpf
9104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9105 echo "configure:9106: checking for $ac_func" >&5
9106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9108 else
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112 /* System header to define __stub macros and hopefully few prototypes,
9113 which can conflict with char $ac_func(); below. */
9114 #include <assert.h>
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 /* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9118 char $ac_func();
9120 int main() {
9122 /* The GNU C library defines this for functions which it implements
9123 to always fail with ENOSYS. Some functions are actually named
9124 something starting with __ and the normal name is an alias. */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9126 choke me
9127 #else
9128 $ac_func();
9129 #endif
9131 ; return 0; }
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 rm -rf conftest*
9135 eval "ac_cv_func_$ac_func=yes"
9136 else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -rf conftest*
9140 eval "ac_cv_func_$ac_func=no"
9142 rm -f conftest*
9145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9146 echo "$ac_t""yes" 1>&6
9147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9148 cat >> confdefs.h <<EOF
9149 #define $ac_tr_func 1
9152 else
9153 echo "$ac_t""no" 1>&6
9155 done
9162 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9163 echo "configure:9164: checking for ldexpf declaration" >&5
9164 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9165 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9170 ac_ext=C
9171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9172 ac_cpp='$CXXCPP $CPPFLAGS'
9173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9175 cross_compiling=$ac_cv_prog_cxx_cross
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 #include <math.h>
9181 int main() {
9182 ldexpf(0, 0);
9183 ; return 0; }
9185 if { (eval echo configure:9186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9186 rm -rf conftest*
9187 glibcpp_cv_func_ldexpf_use=yes
9188 else
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9191 rm -rf conftest*
9192 glibcpp_cv_func_ldexpf_use=no
9194 rm -f conftest*
9195 ac_ext=c
9196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9197 ac_cpp='$CPP $CPPFLAGS'
9198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9200 cross_compiling=$ac_cv_prog_cc_cross
9206 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9208 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9209 for ac_func in ldexpf
9211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9212 echo "configure:9213: checking for $ac_func" >&5
9213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9219 /* System header to define __stub macros and hopefully few prototypes,
9220 which can conflict with char $ac_func(); below. */
9221 #include <assert.h>
9222 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9225 char $ac_func();
9227 int main() {
9229 /* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9233 choke me
9234 #else
9235 $ac_func();
9236 #endif
9238 ; return 0; }
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241 rm -rf conftest*
9242 eval "ac_cv_func_$ac_func=yes"
9243 else
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 rm -rf conftest*
9247 eval "ac_cv_func_$ac_func=no"
9249 rm -f conftest*
9252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9253 echo "$ac_t""yes" 1>&6
9254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9255 cat >> confdefs.h <<EOF
9256 #define $ac_tr_func 1
9259 else
9260 echo "$ac_t""no" 1>&6
9262 done
9264 else
9266 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9267 echo "configure:9268: checking for _ldexpf declaration" >&5
9268 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9269 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9271 else
9274 ac_ext=C
9275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9276 ac_cpp='$CXXCPP $CPPFLAGS'
9277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9279 cross_compiling=$ac_cv_prog_cxx_cross
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 #include <math.h>
9285 int main() {
9286 _ldexpf(0, 0);
9287 ; return 0; }
9289 if { (eval echo configure:9290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9290 rm -rf conftest*
9291 glibcpp_cv_func__ldexpf_use=yes
9292 else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -rf conftest*
9296 glibcpp_cv_func__ldexpf_use=no
9298 rm -f conftest*
9299 ac_ext=c
9300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304 cross_compiling=$ac_cv_prog_cc_cross
9310 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9312 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9313 for ac_func in _ldexpf
9315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9316 echo "configure:9317: checking for $ac_func" >&5
9317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9318 echo $ac_n "(cached) $ac_c" 1>&6
9319 else
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* System header to define __stub macros and hopefully few prototypes,
9324 which can conflict with char $ac_func(); below. */
9325 #include <assert.h>
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char $ac_func();
9331 int main() {
9333 /* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337 choke me
9338 #else
9339 $ac_func();
9340 #endif
9342 ; return 0; }
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9345 rm -rf conftest*
9346 eval "ac_cv_func_$ac_func=yes"
9347 else
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 rm -rf conftest*
9351 eval "ac_cv_func_$ac_func=no"
9353 rm -f conftest*
9356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9357 echo "$ac_t""yes" 1>&6
9358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9359 cat >> confdefs.h <<EOF
9360 #define $ac_tr_func 1
9363 else
9364 echo "$ac_t""no" 1>&6
9366 done
9373 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9374 echo "configure:9375: checking for logf declaration" >&5
9375 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9376 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9381 ac_ext=C
9382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383 ac_cpp='$CXXCPP $CPPFLAGS'
9384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386 cross_compiling=$ac_cv_prog_cxx_cross
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <math.h>
9392 #ifdef HAVE_IEEEFP_H
9393 #include <ieeefp.h>
9394 #endif
9396 int main() {
9397 logf(0);
9398 ; return 0; }
9400 if { (eval echo configure:9401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9401 rm -rf conftest*
9402 glibcpp_cv_func_logf_use=yes
9403 else
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9406 rm -rf conftest*
9407 glibcpp_cv_func_logf_use=no
9409 rm -f conftest*
9410 ac_ext=c
9411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9412 ac_cpp='$CPP $CPPFLAGS'
9413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9415 cross_compiling=$ac_cv_prog_cc_cross
9421 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9423 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9424 for ac_func in logf
9426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9427 echo "configure:9428: checking for $ac_func" >&5
9428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431 cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char $ac_func(); below. */
9436 #include <assert.h>
9437 /* Override any gcc2 internal prototype to avoid an error. */
9438 /* We use char because int might match the return type of a gcc2
9439 builtin and then its argument prototype would still apply. */
9440 char $ac_func();
9442 int main() {
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 choke me
9449 #else
9450 $ac_func();
9451 #endif
9453 ; return 0; }
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 rm -rf conftest*
9457 eval "ac_cv_func_$ac_func=yes"
9458 else
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 rm -rf conftest*
9462 eval "ac_cv_func_$ac_func=no"
9464 rm -f conftest*
9467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9468 echo "$ac_t""yes" 1>&6
9469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9470 cat >> confdefs.h <<EOF
9471 #define $ac_tr_func 1
9474 else
9475 echo "$ac_t""no" 1>&6
9477 done
9479 else
9481 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9482 echo "configure:9483: checking for _logf declaration" >&5
9483 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9484 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9486 else
9489 ac_ext=C
9490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9491 ac_cpp='$CXXCPP $CPPFLAGS'
9492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9494 cross_compiling=$ac_cv_prog_cxx_cross
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 #include <math.h>
9500 #ifdef HAVE_IEEEFP_H
9501 #include <ieeefp.h>
9502 #endif
9504 int main() {
9505 _logf(0);
9506 ; return 0; }
9508 if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 rm -rf conftest*
9510 glibcpp_cv_func__logf_use=yes
9511 else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 glibcpp_cv_func__logf_use=no
9517 rm -f conftest*
9518 ac_ext=c
9519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9520 ac_cpp='$CPP $CPPFLAGS'
9521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9523 cross_compiling=$ac_cv_prog_cc_cross
9529 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9531 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9532 for ac_func in _logf
9534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9535 echo "configure:9536: checking for $ac_func" >&5
9536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538 else
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char $ac_func(); below. */
9544 #include <assert.h>
9545 /* Override any gcc2 internal prototype to avoid an error. */
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char $ac_func();
9550 int main() {
9552 /* The GNU C library defines this for functions which it implements
9553 to always fail with ENOSYS. Some functions are actually named
9554 something starting with __ and the normal name is an alias. */
9555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9556 choke me
9557 #else
9558 $ac_func();
9559 #endif
9561 ; return 0; }
9563 if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9564 rm -rf conftest*
9565 eval "ac_cv_func_$ac_func=yes"
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 eval "ac_cv_func_$ac_func=no"
9572 rm -f conftest*
9575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9576 echo "$ac_t""yes" 1>&6
9577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9578 cat >> confdefs.h <<EOF
9579 #define $ac_tr_func 1
9582 else
9583 echo "$ac_t""no" 1>&6
9585 done
9592 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9593 echo "configure:9594: checking for log10f declaration" >&5
9594 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9595 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9597 else
9600 ac_ext=C
9601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9602 ac_cpp='$CXXCPP $CPPFLAGS'
9603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9605 cross_compiling=$ac_cv_prog_cxx_cross
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #include <math.h>
9611 #ifdef HAVE_IEEEFP_H
9612 #include <ieeefp.h>
9613 #endif
9615 int main() {
9616 log10f(0);
9617 ; return 0; }
9619 if { (eval echo configure:9620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9620 rm -rf conftest*
9621 glibcpp_cv_func_log10f_use=yes
9622 else
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 rm -rf conftest*
9626 glibcpp_cv_func_log10f_use=no
9628 rm -f conftest*
9629 ac_ext=c
9630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9631 ac_cpp='$CPP $CPPFLAGS'
9632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9634 cross_compiling=$ac_cv_prog_cc_cross
9640 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9642 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9643 for ac_func in log10f
9645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9646 echo "configure:9647: checking for $ac_func" >&5
9647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9649 else
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char $ac_func(); below. */
9655 #include <assert.h>
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9659 char $ac_func();
9661 int main() {
9663 /* The GNU C library defines this for functions which it implements
9664 to always fail with ENOSYS. Some functions are actually named
9665 something starting with __ and the normal name is an alias. */
9666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9667 choke me
9668 #else
9669 $ac_func();
9670 #endif
9672 ; return 0; }
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675 rm -rf conftest*
9676 eval "ac_cv_func_$ac_func=yes"
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681 eval "ac_cv_func_$ac_func=no"
9683 rm -f conftest*
9686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9687 echo "$ac_t""yes" 1>&6
9688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9689 cat >> confdefs.h <<EOF
9690 #define $ac_tr_func 1
9693 else
9694 echo "$ac_t""no" 1>&6
9696 done
9698 else
9700 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9701 echo "configure:9702: checking for _log10f declaration" >&5
9702 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9703 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9708 ac_ext=C
9709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9710 ac_cpp='$CXXCPP $CPPFLAGS'
9711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9713 cross_compiling=$ac_cv_prog_cxx_cross
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <math.h>
9719 #ifdef HAVE_IEEEFP_H
9720 #include <ieeefp.h>
9721 #endif
9723 int main() {
9724 _log10f(0);
9725 ; return 0; }
9727 if { (eval echo configure:9728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9728 rm -rf conftest*
9729 glibcpp_cv_func__log10f_use=yes
9730 else
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 rm -rf conftest*
9734 glibcpp_cv_func__log10f_use=no
9736 rm -f conftest*
9737 ac_ext=c
9738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9742 cross_compiling=$ac_cv_prog_cc_cross
9748 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9750 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9751 for ac_func in _log10f
9753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9754 echo "configure:9755: checking for $ac_func" >&5
9755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char $ac_func(); below. */
9763 #include <assert.h>
9764 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767 char $ac_func();
9769 int main() {
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9775 choke me
9776 #else
9777 $ac_func();
9778 #endif
9780 ; return 0; }
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9783 rm -rf conftest*
9784 eval "ac_cv_func_$ac_func=yes"
9785 else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 eval "ac_cv_func_$ac_func=no"
9791 rm -f conftest*
9794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9797 cat >> confdefs.h <<EOF
9798 #define $ac_tr_func 1
9801 else
9802 echo "$ac_t""no" 1>&6
9804 done
9811 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9812 echo "configure:9813: checking for modff declaration" >&5
9813 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9814 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9816 else
9819 ac_ext=C
9820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9821 ac_cpp='$CXXCPP $CPPFLAGS'
9822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9824 cross_compiling=$ac_cv_prog_cxx_cross
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 #include <math.h>
9830 int main() {
9831 modff(0, 0);
9832 ; return 0; }
9834 if { (eval echo configure:9835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9835 rm -rf conftest*
9836 glibcpp_cv_func_modff_use=yes
9837 else
9838 echo "configure: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9840 rm -rf conftest*
9841 glibcpp_cv_func_modff_use=no
9843 rm -f conftest*
9844 ac_ext=c
9845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9849 cross_compiling=$ac_cv_prog_cc_cross
9855 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9857 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9858 for ac_func in modff
9860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9861 echo "configure:9862: checking for $ac_func" >&5
9862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 /* System header to define __stub macros and hopefully few prototypes,
9869 which can conflict with char $ac_func(); below. */
9870 #include <assert.h>
9871 /* Override any gcc2 internal prototype to avoid an error. */
9872 /* We use char because int might match the return type of a gcc2
9873 builtin and then its argument prototype would still apply. */
9874 char $ac_func();
9876 int main() {
9878 /* The GNU C library defines this for functions which it implements
9879 to always fail with ENOSYS. Some functions are actually named
9880 something starting with __ and the normal name is an alias. */
9881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9882 choke me
9883 #else
9884 $ac_func();
9885 #endif
9887 ; return 0; }
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9890 rm -rf conftest*
9891 eval "ac_cv_func_$ac_func=yes"
9892 else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 eval "ac_cv_func_$ac_func=no"
9898 rm -f conftest*
9901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9902 echo "$ac_t""yes" 1>&6
9903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9904 cat >> confdefs.h <<EOF
9905 #define $ac_tr_func 1
9908 else
9909 echo "$ac_t""no" 1>&6
9911 done
9913 else
9915 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9916 echo "configure:9917: checking for _modff declaration" >&5
9917 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9918 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9920 else
9923 ac_ext=C
9924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9925 ac_cpp='$CXXCPP $CPPFLAGS'
9926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9928 cross_compiling=$ac_cv_prog_cxx_cross
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <math.h>
9934 int main() {
9935 _modff(0, 0);
9936 ; return 0; }
9938 if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9939 rm -rf conftest*
9940 glibcpp_cv_func__modff_use=yes
9941 else
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 rm -rf conftest*
9945 glibcpp_cv_func__modff_use=no
9947 rm -f conftest*
9948 ac_ext=c
9949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9950 ac_cpp='$CPP $CPPFLAGS'
9951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9953 cross_compiling=$ac_cv_prog_cc_cross
9959 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9961 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9962 for ac_func in _modff
9964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9965 echo "configure:9966: checking for $ac_func" >&5
9966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9968 else
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9972 /* System header to define __stub macros and hopefully few prototypes,
9973 which can conflict with char $ac_func(); below. */
9974 #include <assert.h>
9975 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978 char $ac_func();
9980 int main() {
9982 /* The GNU C library defines this for functions which it implements
9983 to always fail with ENOSYS. Some functions are actually named
9984 something starting with __ and the normal name is an alias. */
9985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9986 choke me
9987 #else
9988 $ac_func();
9989 #endif
9991 ; return 0; }
9993 if { (eval echo configure:9994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9994 rm -rf conftest*
9995 eval "ac_cv_func_$ac_func=yes"
9996 else
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
9999 rm -rf conftest*
10000 eval "ac_cv_func_$ac_func=no"
10002 rm -f conftest*
10005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10006 echo "$ac_t""yes" 1>&6
10007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10008 cat >> confdefs.h <<EOF
10009 #define $ac_tr_func 1
10012 else
10013 echo "$ac_t""no" 1>&6
10015 done
10022 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10023 echo "configure:10024: checking for powf declaration" >&5
10024 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10025 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10027 else
10030 ac_ext=C
10031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10032 ac_cpp='$CXXCPP $CPPFLAGS'
10033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10035 cross_compiling=$ac_cv_prog_cxx_cross
10037 cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <math.h>
10041 int main() {
10042 powf(0, 0);
10043 ; return 0; }
10045 if { (eval echo configure:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046 rm -rf conftest*
10047 glibcpp_cv_func_powf_use=yes
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -rf conftest*
10052 glibcpp_cv_func_powf_use=no
10054 rm -f conftest*
10055 ac_ext=c
10056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10057 ac_cpp='$CPP $CPPFLAGS'
10058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10060 cross_compiling=$ac_cv_prog_cc_cross
10066 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10068 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10069 for ac_func in powf
10071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10072 echo "configure:10073: checking for $ac_func" >&5
10073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10075 else
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 /* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char $ac_func(); below. */
10081 #include <assert.h>
10082 /* Override any gcc2 internal prototype to avoid an error. */
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10085 char $ac_func();
10087 int main() {
10089 /* The GNU C library defines this for functions which it implements
10090 to always fail with ENOSYS. Some functions are actually named
10091 something starting with __ and the normal name is an alias. */
10092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10093 choke me
10094 #else
10095 $ac_func();
10096 #endif
10098 ; return 0; }
10100 if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10101 rm -rf conftest*
10102 eval "ac_cv_func_$ac_func=yes"
10103 else
10104 echo "configure: failed program was:" >&5
10105 cat conftest.$ac_ext >&5
10106 rm -rf conftest*
10107 eval "ac_cv_func_$ac_func=no"
10109 rm -f conftest*
10112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10115 cat >> confdefs.h <<EOF
10116 #define $ac_tr_func 1
10119 else
10120 echo "$ac_t""no" 1>&6
10122 done
10124 else
10126 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10127 echo "configure:10128: checking for _powf declaration" >&5
10128 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10129 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10131 else
10134 ac_ext=C
10135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10136 ac_cpp='$CXXCPP $CPPFLAGS'
10137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10139 cross_compiling=$ac_cv_prog_cxx_cross
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 #include <math.h>
10145 int main() {
10146 _powf(0, 0);
10147 ; return 0; }
10149 if { (eval echo configure:10150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10150 rm -rf conftest*
10151 glibcpp_cv_func__powf_use=yes
10152 else
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10155 rm -rf conftest*
10156 glibcpp_cv_func__powf_use=no
10158 rm -f conftest*
10159 ac_ext=c
10160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10161 ac_cpp='$CPP $CPPFLAGS'
10162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10164 cross_compiling=$ac_cv_prog_cc_cross
10170 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10172 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10173 for ac_func in _powf
10175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10176 echo "configure:10177: checking for $ac_func" >&5
10177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10178 echo $ac_n "(cached) $ac_c" 1>&6
10179 else
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func(); below. */
10185 #include <assert.h>
10186 /* Override any gcc2 internal prototype to avoid an error. */
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char $ac_func();
10191 int main() {
10193 /* The GNU C library defines this for functions which it implements
10194 to always fail with ENOSYS. Some functions are actually named
10195 something starting with __ and the normal name is an alias. */
10196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10197 choke me
10198 #else
10199 $ac_func();
10200 #endif
10202 ; return 0; }
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10205 rm -rf conftest*
10206 eval "ac_cv_func_$ac_func=yes"
10207 else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -rf conftest*
10211 eval "ac_cv_func_$ac_func=no"
10213 rm -f conftest*
10216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10217 echo "$ac_t""yes" 1>&6
10218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10219 cat >> confdefs.h <<EOF
10220 #define $ac_tr_func 1
10223 else
10224 echo "$ac_t""no" 1>&6
10226 done
10233 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10234 echo "configure:10235: checking for sqrtf declaration" >&5
10235 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10236 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10241 ac_ext=C
10242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10243 ac_cpp='$CXXCPP $CPPFLAGS'
10244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10246 cross_compiling=$ac_cv_prog_cxx_cross
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 #include <math.h>
10252 #ifdef HAVE_IEEEFP_H
10253 #include <ieeefp.h>
10254 #endif
10256 int main() {
10257 sqrtf(0);
10258 ; return 0; }
10260 if { (eval echo configure:10261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261 rm -rf conftest*
10262 glibcpp_cv_func_sqrtf_use=yes
10263 else
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10266 rm -rf conftest*
10267 glibcpp_cv_func_sqrtf_use=no
10269 rm -f conftest*
10270 ac_ext=c
10271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10275 cross_compiling=$ac_cv_prog_cc_cross
10281 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10283 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10284 for ac_func in sqrtf
10286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10287 echo "configure:10288: checking for $ac_func" >&5
10288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func(); below. */
10296 #include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 /* We use char because int might match the return type of a gcc2
10299 builtin and then its argument prototype would still apply. */
10300 char $ac_func();
10302 int main() {
10304 /* The GNU C library defines this for functions which it implements
10305 to always fail with ENOSYS. Some functions are actually named
10306 something starting with __ and the normal name is an alias. */
10307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10308 choke me
10309 #else
10310 $ac_func();
10311 #endif
10313 ; return 0; }
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10316 rm -rf conftest*
10317 eval "ac_cv_func_$ac_func=yes"
10318 else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 rm -rf conftest*
10322 eval "ac_cv_func_$ac_func=no"
10324 rm -f conftest*
10327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10330 cat >> confdefs.h <<EOF
10331 #define $ac_tr_func 1
10334 else
10335 echo "$ac_t""no" 1>&6
10337 done
10339 else
10341 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10342 echo "configure:10343: checking for _sqrtf declaration" >&5
10343 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10344 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10345 echo $ac_n "(cached) $ac_c" 1>&6
10346 else
10349 ac_ext=C
10350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10351 ac_cpp='$CXXCPP $CPPFLAGS'
10352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10354 cross_compiling=$ac_cv_prog_cxx_cross
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 #include <math.h>
10360 #ifdef HAVE_IEEEFP_H
10361 #include <ieeefp.h>
10362 #endif
10364 int main() {
10365 _sqrtf(0);
10366 ; return 0; }
10368 if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10369 rm -rf conftest*
10370 glibcpp_cv_func__sqrtf_use=yes
10371 else
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 rm -rf conftest*
10375 glibcpp_cv_func__sqrtf_use=no
10377 rm -f conftest*
10378 ac_ext=c
10379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10380 ac_cpp='$CPP $CPPFLAGS'
10381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10383 cross_compiling=$ac_cv_prog_cc_cross
10389 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10391 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10392 for ac_func in _sqrtf
10394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10395 echo "configure:10396: checking for $ac_func" >&5
10396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 /* System header to define __stub macros and hopefully few prototypes,
10403 which can conflict with char $ac_func(); below. */
10404 #include <assert.h>
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10408 char $ac_func();
10410 int main() {
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10416 choke me
10417 #else
10418 $ac_func();
10419 #endif
10421 ; return 0; }
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 rm -rf conftest*
10425 eval "ac_cv_func_$ac_func=yes"
10426 else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_func_$ac_func=no"
10432 rm -f conftest*
10435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10438 cat >> confdefs.h <<EOF
10439 #define $ac_tr_func 1
10442 else
10443 echo "$ac_t""no" 1>&6
10445 done
10452 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10453 echo "configure:10454: checking for sincosf declaration" >&5
10454 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10455 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10457 else
10460 ac_ext=C
10461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10462 ac_cpp='$CXXCPP $CPPFLAGS'
10463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10465 cross_compiling=$ac_cv_prog_cxx_cross
10467 cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10470 #include <math.h>
10471 int main() {
10472 sincosf(0, 0, 0);
10473 ; return 0; }
10475 if { (eval echo configure:10476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10476 rm -rf conftest*
10477 glibcpp_cv_func_sincosf_use=yes
10478 else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -rf conftest*
10482 glibcpp_cv_func_sincosf_use=no
10484 rm -f conftest*
10485 ac_ext=c
10486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10487 ac_cpp='$CPP $CPPFLAGS'
10488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10490 cross_compiling=$ac_cv_prog_cc_cross
10496 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10498 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10499 for ac_func in sincosf
10501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10502 echo "configure:10503: checking for $ac_func" >&5
10503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char $ac_func(); below. */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char $ac_func();
10517 int main() {
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 $ac_func();
10526 #endif
10528 ; return 0; }
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10531 rm -rf conftest*
10532 eval "ac_cv_func_$ac_func=yes"
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_func_$ac_func=no"
10539 rm -f conftest*
10542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10543 echo "$ac_t""yes" 1>&6
10544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10545 cat >> confdefs.h <<EOF
10546 #define $ac_tr_func 1
10549 else
10550 echo "$ac_t""no" 1>&6
10552 done
10554 else
10556 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10557 echo "configure:10558: checking for _sincosf declaration" >&5
10558 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10559 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561 else
10564 ac_ext=C
10565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10569 cross_compiling=$ac_cv_prog_cxx_cross
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10574 #include <math.h>
10575 int main() {
10576 _sincosf(0, 0, 0);
10577 ; return 0; }
10579 if { (eval echo configure:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10580 rm -rf conftest*
10581 glibcpp_cv_func__sincosf_use=yes
10582 else
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -rf conftest*
10586 glibcpp_cv_func__sincosf_use=no
10588 rm -f conftest*
10589 ac_ext=c
10590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10591 ac_cpp='$CPP $CPPFLAGS'
10592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10594 cross_compiling=$ac_cv_prog_cc_cross
10600 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10602 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10603 for ac_func in _sincosf
10605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10606 echo "configure:10607: checking for $ac_func" >&5
10607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10609 else
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char $ac_func(); below. */
10615 #include <assert.h>
10616 /* Override any gcc2 internal prototype to avoid an error. */
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619 char $ac_func();
10621 int main() {
10623 /* The GNU C library defines this for functions which it implements
10624 to always fail with ENOSYS. Some functions are actually named
10625 something starting with __ and the normal name is an alias. */
10626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10627 choke me
10628 #else
10629 $ac_func();
10630 #endif
10632 ; return 0; }
10634 if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10635 rm -rf conftest*
10636 eval "ac_cv_func_$ac_func=yes"
10637 else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 eval "ac_cv_func_$ac_func=no"
10643 rm -f conftest*
10646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10649 cat >> confdefs.h <<EOF
10650 #define $ac_tr_func 1
10653 else
10654 echo "$ac_t""no" 1>&6
10656 done
10663 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10664 echo "configure:10665: checking for finitef declaration" >&5
10665 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10666 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10668 else
10671 ac_ext=C
10672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10673 ac_cpp='$CXXCPP $CPPFLAGS'
10674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10676 cross_compiling=$ac_cv_prog_cxx_cross
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681 #include <math.h>
10682 #ifdef HAVE_IEEEFP_H
10683 #include <ieeefp.h>
10684 #endif
10686 int main() {
10687 finitef(0);
10688 ; return 0; }
10690 if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10691 rm -rf conftest*
10692 glibcpp_cv_func_finitef_use=yes
10693 else
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 glibcpp_cv_func_finitef_use=no
10699 rm -f conftest*
10700 ac_ext=c
10701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10702 ac_cpp='$CPP $CPPFLAGS'
10703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10705 cross_compiling=$ac_cv_prog_cc_cross
10711 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10713 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10714 for ac_func in finitef
10716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10717 echo "configure:10718: checking for $ac_func" >&5
10718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 /* System header to define __stub macros and hopefully few prototypes,
10725 which can conflict with char $ac_func(); below. */
10726 #include <assert.h>
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char $ac_func();
10732 int main() {
10734 /* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10738 choke me
10739 #else
10740 $ac_func();
10741 #endif
10743 ; return 0; }
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746 rm -rf conftest*
10747 eval "ac_cv_func_$ac_func=yes"
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752 eval "ac_cv_func_$ac_func=no"
10754 rm -f conftest*
10757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10758 echo "$ac_t""yes" 1>&6
10759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10760 cat >> confdefs.h <<EOF
10761 #define $ac_tr_func 1
10764 else
10765 echo "$ac_t""no" 1>&6
10767 done
10769 else
10771 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10772 echo "configure:10773: checking for _finitef declaration" >&5
10773 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10774 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10776 else
10779 ac_ext=C
10780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10781 ac_cpp='$CXXCPP $CPPFLAGS'
10782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10784 cross_compiling=$ac_cv_prog_cxx_cross
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <math.h>
10790 #ifdef HAVE_IEEEFP_H
10791 #include <ieeefp.h>
10792 #endif
10794 int main() {
10795 _finitef(0);
10796 ; return 0; }
10798 if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799 rm -rf conftest*
10800 glibcpp_cv_func__finitef_use=yes
10801 else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -rf conftest*
10805 glibcpp_cv_func__finitef_use=no
10807 rm -f conftest*
10808 ac_ext=c
10809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10813 cross_compiling=$ac_cv_prog_cc_cross
10819 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10821 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10822 for ac_func in _finitef
10824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10825 echo "configure:10826: checking for $ac_func" >&5
10826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10829 cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char $ac_func(); below. */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838 char $ac_func();
10840 int main() {
10842 /* The GNU C library defines this for functions which it implements
10843 to always fail with ENOSYS. Some functions are actually named
10844 something starting with __ and the normal name is an alias. */
10845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10846 choke me
10847 #else
10848 $ac_func();
10849 #endif
10851 ; return 0; }
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10854 rm -rf conftest*
10855 eval "ac_cv_func_$ac_func=yes"
10856 else
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -rf conftest*
10860 eval "ac_cv_func_$ac_func=no"
10862 rm -f conftest*
10865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10866 echo "$ac_t""yes" 1>&6
10867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10868 cat >> confdefs.h <<EOF
10869 #define $ac_tr_func 1
10872 else
10873 echo "$ac_t""no" 1>&6
10875 done
10882 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10883 echo "configure:10884: checking for long double trig functions" >&5
10884 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10885 echo $ac_n "(cached) $ac_c" 1>&6
10886 else
10889 ac_ext=C
10890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10891 ac_cpp='$CXXCPP $CPPFLAGS'
10892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10894 cross_compiling=$ac_cv_prog_cxx_cross
10896 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10899 #include <math.h>
10900 int main() {
10901 `for x in acosl asinl atanl \
10902 cosl sinl tanl \
10903 coshl sinhl tanhl; do echo "$x (0);"; done`
10904 ; return 0; }
10906 if { (eval echo configure:10907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10907 rm -rf conftest*
10908 glibcpp_cv_func_long_double_trig_use=yes
10909 else
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10912 rm -rf conftest*
10913 glibcpp_cv_func_long_double_trig_use=no
10915 rm -f conftest*
10916 ac_ext=c
10917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10921 cross_compiling=$ac_cv_prog_cc_cross
10925 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10926 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10927 for ac_func in acosl asinl atanl \
10928 cosl sinl tanl \
10929 coshl sinhl tanhl
10931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10932 echo "configure:10933: checking for $ac_func" >&5
10933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func(); below. */
10941 #include <assert.h>
10942 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10945 char $ac_func();
10947 int main() {
10949 /* The GNU C library defines this for functions which it implements
10950 to always fail with ENOSYS. Some functions are actually named
10951 something starting with __ and the normal name is an alias. */
10952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 choke me
10954 #else
10955 $ac_func();
10956 #endif
10958 ; return 0; }
10960 if { (eval echo configure:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961 rm -rf conftest*
10962 eval "ac_cv_func_$ac_func=yes"
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 rm -rf conftest*
10967 eval "ac_cv_func_$ac_func=no"
10969 rm -f conftest*
10972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10973 echo "$ac_t""yes" 1>&6
10974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10975 cat >> confdefs.h <<EOF
10976 #define $ac_tr_func 1
10979 else
10980 echo "$ac_t""no" 1>&6
10982 done
10987 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10988 echo "configure:10989: checking for long double round functions" >&5
10989 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10994 ac_ext=C
10995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10996 ac_cpp='$CXXCPP $CPPFLAGS'
10997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10999 cross_compiling=$ac_cv_prog_cxx_cross
11001 cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11004 #include <math.h>
11005 int main() {
11006 `for x in ceill floorl; do echo "$x (0);"; done`
11007 ; return 0; }
11009 if { (eval echo configure:11010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11010 rm -rf conftest*
11011 glibcpp_cv_func_long_double_round_use=yes
11012 else
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 rm -rf conftest*
11016 glibcpp_cv_func_long_double_round_use=no
11018 rm -f conftest*
11019 ac_ext=c
11020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11024 cross_compiling=$ac_cv_prog_cc_cross
11028 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11029 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11030 for ac_func in ceill floorl
11032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11033 echo "configure:11034: checking for $ac_func" >&5
11034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11035 echo $ac_n "(cached) $ac_c" 1>&6
11036 else
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure"
11039 #include "confdefs.h"
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func(); below. */
11042 #include <assert.h>
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046 char $ac_func();
11048 int main() {
11050 /* The GNU C library defines this for functions which it implements
11051 to always fail with ENOSYS. Some functions are actually named
11052 something starting with __ and the normal name is an alias. */
11053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11054 choke me
11055 #else
11056 $ac_func();
11057 #endif
11059 ; return 0; }
11061 if { (eval echo configure:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11062 rm -rf conftest*
11063 eval "ac_cv_func_$ac_func=yes"
11064 else
11065 echo "configure: failed program was:" >&5
11066 cat conftest.$ac_ext >&5
11067 rm -rf conftest*
11068 eval "ac_cv_func_$ac_func=no"
11070 rm -f conftest*
11073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11074 echo "$ac_t""yes" 1>&6
11075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11076 cat >> confdefs.h <<EOF
11077 #define $ac_tr_func 1
11080 else
11081 echo "$ac_t""no" 1>&6
11083 done
11089 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11090 echo "configure:11091: checking for isnanl declaration" >&5
11091 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11092 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11097 ac_ext=C
11098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CXXCPP $CPPFLAGS'
11100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cxx_cross
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <math.h>
11108 #ifdef HAVE_IEEEFP_H
11109 #include <ieeefp.h>
11110 #endif
11112 int main() {
11113 isnanl(0);
11114 ; return 0; }
11116 if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11117 rm -rf conftest*
11118 glibcpp_cv_func_isnanl_use=yes
11119 else
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 rm -rf conftest*
11123 glibcpp_cv_func_isnanl_use=no
11125 rm -f conftest*
11126 ac_ext=c
11127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11131 cross_compiling=$ac_cv_prog_cc_cross
11137 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11139 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11140 for ac_func in isnanl
11142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11143 echo "configure:11144: checking for $ac_func" >&5
11144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11146 else
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* System header to define __stub macros and hopefully few prototypes,
11151 which can conflict with char $ac_func(); below. */
11152 #include <assert.h>
11153 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char $ac_func();
11158 int main() {
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 $ac_func();
11167 #endif
11169 ; return 0; }
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172 rm -rf conftest*
11173 eval "ac_cv_func_$ac_func=yes"
11174 else
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11177 rm -rf conftest*
11178 eval "ac_cv_func_$ac_func=no"
11180 rm -f conftest*
11183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11186 cat >> confdefs.h <<EOF
11187 #define $ac_tr_func 1
11190 else
11191 echo "$ac_t""no" 1>&6
11193 done
11195 else
11197 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11198 echo "configure:11199: checking for _isnanl declaration" >&5
11199 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11200 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11205 ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include <math.h>
11216 #ifdef HAVE_IEEEFP_H
11217 #include <ieeefp.h>
11218 #endif
11220 int main() {
11221 _isnanl(0);
11222 ; return 0; }
11224 if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225 rm -rf conftest*
11226 glibcpp_cv_func__isnanl_use=yes
11227 else
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11230 rm -rf conftest*
11231 glibcpp_cv_func__isnanl_use=no
11233 rm -f conftest*
11234 ac_ext=c
11235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11239 cross_compiling=$ac_cv_prog_cc_cross
11245 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11247 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11248 for ac_func in _isnanl
11250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_func" >&5
11252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11254 else
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func(); below. */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11264 char $ac_func();
11266 int main() {
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 $ac_func();
11275 #endif
11277 ; return 0; }
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280 rm -rf conftest*
11281 eval "ac_cv_func_$ac_func=yes"
11282 else
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 eval "ac_cv_func_$ac_func=no"
11288 rm -f conftest*
11291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11292 echo "$ac_t""yes" 1>&6
11293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11294 cat >> confdefs.h <<EOF
11295 #define $ac_tr_func 1
11298 else
11299 echo "$ac_t""no" 1>&6
11301 done
11308 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11309 echo "configure:11310: checking for isinfl declaration" >&5
11310 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11311 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11312 echo $ac_n "(cached) $ac_c" 1>&6
11313 else
11316 ac_ext=C
11317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11318 ac_cpp='$CXXCPP $CPPFLAGS'
11319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11321 cross_compiling=$ac_cv_prog_cxx_cross
11323 cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 #include <math.h>
11327 #ifdef HAVE_IEEEFP_H
11328 #include <ieeefp.h>
11329 #endif
11331 int main() {
11332 isinfl(0);
11333 ; return 0; }
11335 if { (eval echo configure:11336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11336 rm -rf conftest*
11337 glibcpp_cv_func_isinfl_use=yes
11338 else
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11341 rm -rf conftest*
11342 glibcpp_cv_func_isinfl_use=no
11344 rm -f conftest*
11345 ac_ext=c
11346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11347 ac_cpp='$CPP $CPPFLAGS'
11348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11350 cross_compiling=$ac_cv_prog_cc_cross
11356 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11358 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11359 for ac_func in isinfl
11361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11362 echo "configure:11363: checking for $ac_func" >&5
11363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func(); below. */
11371 #include <assert.h>
11372 /* Override any gcc2 internal prototype to avoid an error. */
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11375 char $ac_func();
11377 int main() {
11379 /* The GNU C library defines this for functions which it implements
11380 to always fail with ENOSYS. Some functions are actually named
11381 something starting with __ and the normal name is an alias. */
11382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383 choke me
11384 #else
11385 $ac_func();
11386 #endif
11388 ; return 0; }
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11391 rm -rf conftest*
11392 eval "ac_cv_func_$ac_func=yes"
11393 else
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 rm -rf conftest*
11397 eval "ac_cv_func_$ac_func=no"
11399 rm -f conftest*
11402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11403 echo "$ac_t""yes" 1>&6
11404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11405 cat >> confdefs.h <<EOF
11406 #define $ac_tr_func 1
11409 else
11410 echo "$ac_t""no" 1>&6
11412 done
11414 else
11416 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11417 echo "configure:11418: checking for _isinfl declaration" >&5
11418 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11419 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11424 ac_ext=C
11425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11426 ac_cpp='$CXXCPP $CPPFLAGS'
11427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11429 cross_compiling=$ac_cv_prog_cxx_cross
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <math.h>
11435 #ifdef HAVE_IEEEFP_H
11436 #include <ieeefp.h>
11437 #endif
11439 int main() {
11440 _isinfl(0);
11441 ; return 0; }
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 rm -rf conftest*
11445 glibcpp_cv_func__isinfl_use=yes
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 glibcpp_cv_func__isinfl_use=no
11452 rm -f conftest*
11453 ac_ext=c
11454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11458 cross_compiling=$ac_cv_prog_cc_cross
11464 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11466 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11467 for ac_func in _isinfl
11469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11470 echo "configure:11471: checking for $ac_func" >&5
11471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11472 echo $ac_n "(cached) $ac_c" 1>&6
11473 else
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 /* System header to define __stub macros and hopefully few prototypes,
11478 which can conflict with char $ac_func(); below. */
11479 #include <assert.h>
11480 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483 char $ac_func();
11485 int main() {
11487 /* The GNU C library defines this for functions which it implements
11488 to always fail with ENOSYS. Some functions are actually named
11489 something starting with __ and the normal name is an alias. */
11490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11491 choke me
11492 #else
11493 $ac_func();
11494 #endif
11496 ; return 0; }
11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499 rm -rf conftest*
11500 eval "ac_cv_func_$ac_func=yes"
11501 else
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 rm -rf conftest*
11505 eval "ac_cv_func_$ac_func=no"
11507 rm -f conftest*
11510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11511 echo "$ac_t""yes" 1>&6
11512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11513 cat >> confdefs.h <<EOF
11514 #define $ac_tr_func 1
11517 else
11518 echo "$ac_t""no" 1>&6
11520 done
11527 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11528 echo "configure:11529: checking for copysignl declaration" >&5
11529 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11530 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11531 echo $ac_n "(cached) $ac_c" 1>&6
11532 else
11535 ac_ext=C
11536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11537 ac_cpp='$CXXCPP $CPPFLAGS'
11538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11539 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11540 cross_compiling=$ac_cv_prog_cxx_cross
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 #include <math.h>
11546 int main() {
11547 copysignl(0, 0);
11548 ; return 0; }
11550 if { (eval echo configure:11551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11551 rm -rf conftest*
11552 glibcpp_cv_func_copysignl_use=yes
11553 else
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
11557 glibcpp_cv_func_copysignl_use=no
11559 rm -f conftest*
11560 ac_ext=c
11561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11562 ac_cpp='$CPP $CPPFLAGS'
11563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11565 cross_compiling=$ac_cv_prog_cc_cross
11571 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11573 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11574 for ac_func in copysignl
11576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11577 echo "configure:11578: checking for $ac_func" >&5
11578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 /* System header to define __stub macros and hopefully few prototypes,
11585 which can conflict with char $ac_func(); below. */
11586 #include <assert.h>
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 /* We use char because int might match the return type of a gcc2
11589 builtin and then its argument prototype would still apply. */
11590 char $ac_func();
11592 int main() {
11594 /* The GNU C library defines this for functions which it implements
11595 to always fail with ENOSYS. Some functions are actually named
11596 something starting with __ and the normal name is an alias. */
11597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11598 choke me
11599 #else
11600 $ac_func();
11601 #endif
11603 ; return 0; }
11605 if { (eval echo configure:11606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11606 rm -rf conftest*
11607 eval "ac_cv_func_$ac_func=yes"
11608 else
11609 echo "configure: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 rm -rf conftest*
11612 eval "ac_cv_func_$ac_func=no"
11614 rm -f conftest*
11617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11618 echo "$ac_t""yes" 1>&6
11619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11620 cat >> confdefs.h <<EOF
11621 #define $ac_tr_func 1
11624 else
11625 echo "$ac_t""no" 1>&6
11627 done
11629 else
11631 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11632 echo "configure:11633: checking for _copysignl declaration" >&5
11633 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11634 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11636 else
11639 ac_ext=C
11640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11641 ac_cpp='$CXXCPP $CPPFLAGS'
11642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11644 cross_compiling=$ac_cv_prog_cxx_cross
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 #include <math.h>
11650 int main() {
11651 _copysignl(0, 0);
11652 ; return 0; }
11654 if { (eval echo configure:11655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11655 rm -rf conftest*
11656 glibcpp_cv_func__copysignl_use=yes
11657 else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 glibcpp_cv_func__copysignl_use=no
11663 rm -f conftest*
11664 ac_ext=c
11665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11669 cross_compiling=$ac_cv_prog_cc_cross
11675 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11677 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11678 for ac_func in _copysignl
11680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_func" >&5
11682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func(); below. */
11690 #include <assert.h>
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 /* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11694 char $ac_func();
11696 int main() {
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 choke me
11703 #else
11704 $ac_func();
11705 #endif
11707 ; return 0; }
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11710 rm -rf conftest*
11711 eval "ac_cv_func_$ac_func=yes"
11712 else
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 eval "ac_cv_func_$ac_func=no"
11718 rm -f conftest*
11721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11722 echo "$ac_t""yes" 1>&6
11723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11724 cat >> confdefs.h <<EOF
11725 #define $ac_tr_func 1
11728 else
11729 echo "$ac_t""no" 1>&6
11731 done
11738 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11739 echo "configure:11740: checking for atan2l declaration" >&5
11740 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11741 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743 else
11746 ac_ext=C
11747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11748 ac_cpp='$CXXCPP $CPPFLAGS'
11749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11751 cross_compiling=$ac_cv_prog_cxx_cross
11753 cat > conftest.$ac_ext <<EOF
11754 #line 11755 "configure"
11755 #include "confdefs.h"
11756 #include <math.h>
11757 int main() {
11758 atan2l(0, 0);
11759 ; return 0; }
11761 if { (eval echo configure:11762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11762 rm -rf conftest*
11763 glibcpp_cv_func_atan2l_use=yes
11764 else
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 glibcpp_cv_func_atan2l_use=no
11770 rm -f conftest*
11771 ac_ext=c
11772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11773 ac_cpp='$CPP $CPPFLAGS'
11774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11776 cross_compiling=$ac_cv_prog_cc_cross
11782 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11784 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11785 for ac_func in atan2l
11787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11788 echo "configure:11789: checking for $ac_func" >&5
11789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11795 /* System header to define __stub macros and hopefully few prototypes,
11796 which can conflict with char $ac_func(); below. */
11797 #include <assert.h>
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801 char $ac_func();
11803 int main() {
11805 /* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11809 choke me
11810 #else
11811 $ac_func();
11812 #endif
11814 ; return 0; }
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 rm -rf conftest*
11818 eval "ac_cv_func_$ac_func=yes"
11819 else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_func_$ac_func=no"
11825 rm -f conftest*
11828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11831 cat >> confdefs.h <<EOF
11832 #define $ac_tr_func 1
11835 else
11836 echo "$ac_t""no" 1>&6
11838 done
11840 else
11842 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11843 echo "configure:11844: checking for _atan2l declaration" >&5
11844 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11845 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11850 ac_ext=C
11851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11852 ac_cpp='$CXXCPP $CPPFLAGS'
11853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11855 cross_compiling=$ac_cv_prog_cxx_cross
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <math.h>
11861 int main() {
11862 _atan2l(0, 0);
11863 ; return 0; }
11865 if { (eval echo configure:11866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11866 rm -rf conftest*
11867 glibcpp_cv_func__atan2l_use=yes
11868 else
11869 echo "configure: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 rm -rf conftest*
11872 glibcpp_cv_func__atan2l_use=no
11874 rm -f conftest*
11875 ac_ext=c
11876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11877 ac_cpp='$CPP $CPPFLAGS'
11878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11880 cross_compiling=$ac_cv_prog_cc_cross
11886 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11888 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11889 for ac_func in _atan2l
11891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11892 echo "configure:11893: checking for $ac_func" >&5
11893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11894 echo $ac_n "(cached) $ac_c" 1>&6
11895 else
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 /* System header to define __stub macros and hopefully few prototypes,
11900 which can conflict with char $ac_func(); below. */
11901 #include <assert.h>
11902 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char $ac_func();
11907 int main() {
11909 /* The GNU C library defines this for functions which it implements
11910 to always fail with ENOSYS. Some functions are actually named
11911 something starting with __ and the normal name is an alias. */
11912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11913 choke me
11914 #else
11915 $ac_func();
11916 #endif
11918 ; return 0; }
11920 if { (eval echo configure:11921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11921 rm -rf conftest*
11922 eval "ac_cv_func_$ac_func=yes"
11923 else
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 rm -rf conftest*
11927 eval "ac_cv_func_$ac_func=no"
11929 rm -f conftest*
11932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11933 echo "$ac_t""yes" 1>&6
11934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11935 cat >> confdefs.h <<EOF
11936 #define $ac_tr_func 1
11939 else
11940 echo "$ac_t""no" 1>&6
11942 done
11949 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11950 echo "configure:11951: checking for expl declaration" >&5
11951 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11952 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11953 echo $ac_n "(cached) $ac_c" 1>&6
11954 else
11957 ac_ext=C
11958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11959 ac_cpp='$CXXCPP $CPPFLAGS'
11960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11962 cross_compiling=$ac_cv_prog_cxx_cross
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include <math.h>
11968 #ifdef HAVE_IEEEFP_H
11969 #include <ieeefp.h>
11970 #endif
11972 int main() {
11973 expl(0);
11974 ; return 0; }
11976 if { (eval echo configure:11977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11977 rm -rf conftest*
11978 glibcpp_cv_func_expl_use=yes
11979 else
11980 echo "configure: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11982 rm -rf conftest*
11983 glibcpp_cv_func_expl_use=no
11985 rm -f conftest*
11986 ac_ext=c
11987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11988 ac_cpp='$CPP $CPPFLAGS'
11989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11991 cross_compiling=$ac_cv_prog_cc_cross
11997 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11999 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12000 for ac_func in expl
12002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12003 echo "configure:12004: checking for $ac_func" >&5
12004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006 else
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 /* System header to define __stub macros and hopefully few prototypes,
12011 which can conflict with char $ac_func(); below. */
12012 #include <assert.h>
12013 /* Override any gcc2 internal prototype to avoid an error. */
12014 /* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016 char $ac_func();
12018 int main() {
12020 /* The GNU C library defines this for functions which it implements
12021 to always fail with ENOSYS. Some functions are actually named
12022 something starting with __ and the normal name is an alias. */
12023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12024 choke me
12025 #else
12026 $ac_func();
12027 #endif
12029 ; return 0; }
12031 if { (eval echo configure:12032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12032 rm -rf conftest*
12033 eval "ac_cv_func_$ac_func=yes"
12034 else
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 rm -rf conftest*
12038 eval "ac_cv_func_$ac_func=no"
12040 rm -f conftest*
12043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12044 echo "$ac_t""yes" 1>&6
12045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12046 cat >> confdefs.h <<EOF
12047 #define $ac_tr_func 1
12050 else
12051 echo "$ac_t""no" 1>&6
12053 done
12055 else
12057 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12058 echo "configure:12059: checking for _expl declaration" >&5
12059 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12060 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12062 else
12065 ac_ext=C
12066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12067 ac_cpp='$CXXCPP $CPPFLAGS'
12068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12070 cross_compiling=$ac_cv_prog_cxx_cross
12072 cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 #include <math.h>
12076 #ifdef HAVE_IEEEFP_H
12077 #include <ieeefp.h>
12078 #endif
12080 int main() {
12081 _expl(0);
12082 ; return 0; }
12084 if { (eval echo configure:12085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12085 rm -rf conftest*
12086 glibcpp_cv_func__expl_use=yes
12087 else
12088 echo "configure: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 rm -rf conftest*
12091 glibcpp_cv_func__expl_use=no
12093 rm -f conftest*
12094 ac_ext=c
12095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12096 ac_cpp='$CPP $CPPFLAGS'
12097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12099 cross_compiling=$ac_cv_prog_cc_cross
12105 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12107 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12108 for ac_func in _expl
12110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12111 echo "configure:12112: checking for $ac_func" >&5
12112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12113 echo $ac_n "(cached) $ac_c" 1>&6
12114 else
12115 cat > conftest.$ac_ext <<EOF
12116 #line 12117 "configure"
12117 #include "confdefs.h"
12118 /* System header to define __stub macros and hopefully few prototypes,
12119 which can conflict with char $ac_func(); below. */
12120 #include <assert.h>
12121 /* Override any gcc2 internal prototype to avoid an error. */
12122 /* We use char because int might match the return type of a gcc2
12123 builtin and then its argument prototype would still apply. */
12124 char $ac_func();
12126 int main() {
12128 /* The GNU C library defines this for functions which it implements
12129 to always fail with ENOSYS. Some functions are actually named
12130 something starting with __ and the normal name is an alias. */
12131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12132 choke me
12133 #else
12134 $ac_func();
12135 #endif
12137 ; return 0; }
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12140 rm -rf conftest*
12141 eval "ac_cv_func_$ac_func=yes"
12142 else
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 rm -rf conftest*
12146 eval "ac_cv_func_$ac_func=no"
12148 rm -f conftest*
12151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12152 echo "$ac_t""yes" 1>&6
12153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12154 cat >> confdefs.h <<EOF
12155 #define $ac_tr_func 1
12158 else
12159 echo "$ac_t""no" 1>&6
12161 done
12168 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12169 echo "configure:12170: checking for fabsl declaration" >&5
12170 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12171 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12176 ac_ext=C
12177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12178 ac_cpp='$CXXCPP $CPPFLAGS'
12179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12181 cross_compiling=$ac_cv_prog_cxx_cross
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 #include <math.h>
12187 #ifdef HAVE_IEEEFP_H
12188 #include <ieeefp.h>
12189 #endif
12191 int main() {
12192 fabsl(0);
12193 ; return 0; }
12195 if { (eval echo configure:12196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12196 rm -rf conftest*
12197 glibcpp_cv_func_fabsl_use=yes
12198 else
12199 echo "configure: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 rm -rf conftest*
12202 glibcpp_cv_func_fabsl_use=no
12204 rm -f conftest*
12205 ac_ext=c
12206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12210 cross_compiling=$ac_cv_prog_cc_cross
12216 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12218 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12219 for ac_func in fabsl
12221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12222 echo "configure:12223: checking for $ac_func" >&5
12223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12225 else
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func(); below. */
12231 #include <assert.h>
12232 /* Override any gcc2 internal prototype to avoid an error. */
12233 /* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12235 char $ac_func();
12237 int main() {
12239 /* The GNU C library defines this for functions which it implements
12240 to always fail with ENOSYS. Some functions are actually named
12241 something starting with __ and the normal name is an alias. */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 choke me
12244 #else
12245 $ac_func();
12246 #endif
12248 ; return 0; }
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12251 rm -rf conftest*
12252 eval "ac_cv_func_$ac_func=yes"
12253 else
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 rm -rf conftest*
12257 eval "ac_cv_func_$ac_func=no"
12259 rm -f conftest*
12262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12263 echo "$ac_t""yes" 1>&6
12264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12265 cat >> confdefs.h <<EOF
12266 #define $ac_tr_func 1
12269 else
12270 echo "$ac_t""no" 1>&6
12272 done
12274 else
12276 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12277 echo "configure:12278: checking for _fabsl declaration" >&5
12278 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12279 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12280 echo $ac_n "(cached) $ac_c" 1>&6
12281 else
12284 ac_ext=C
12285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12289 cross_compiling=$ac_cv_prog_cxx_cross
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 #include <math.h>
12295 #ifdef HAVE_IEEEFP_H
12296 #include <ieeefp.h>
12297 #endif
12299 int main() {
12300 _fabsl(0);
12301 ; return 0; }
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12304 rm -rf conftest*
12305 glibcpp_cv_func__fabsl_use=yes
12306 else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310 glibcpp_cv_func__fabsl_use=no
12312 rm -f conftest*
12313 ac_ext=c
12314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12318 cross_compiling=$ac_cv_prog_cc_cross
12324 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12326 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12327 for ac_func in _fabsl
12329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12330 echo "configure:12331: checking for $ac_func" >&5
12331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 /* System header to define __stub macros and hopefully few prototypes,
12338 which can conflict with char $ac_func(); below. */
12339 #include <assert.h>
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343 char $ac_func();
12345 int main() {
12347 /* The GNU C library defines this for functions which it implements
12348 to always fail with ENOSYS. Some functions are actually named
12349 something starting with __ and the normal name is an alias. */
12350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12351 choke me
12352 #else
12353 $ac_func();
12354 #endif
12356 ; return 0; }
12358 if { (eval echo configure:12359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12359 rm -rf conftest*
12360 eval "ac_cv_func_$ac_func=yes"
12361 else
12362 echo "configure: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12364 rm -rf conftest*
12365 eval "ac_cv_func_$ac_func=no"
12367 rm -f conftest*
12370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12371 echo "$ac_t""yes" 1>&6
12372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12373 cat >> confdefs.h <<EOF
12374 #define $ac_tr_func 1
12377 else
12378 echo "$ac_t""no" 1>&6
12380 done
12387 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12388 echo "configure:12389: checking for fmodl declaration" >&5
12389 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12390 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12392 else
12395 ac_ext=C
12396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12397 ac_cpp='$CXXCPP $CPPFLAGS'
12398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12400 cross_compiling=$ac_cv_prog_cxx_cross
12402 cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405 #include <math.h>
12406 int main() {
12407 fmodl(0, 0);
12408 ; return 0; }
12410 if { (eval echo configure:12411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12411 rm -rf conftest*
12412 glibcpp_cv_func_fmodl_use=yes
12413 else
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
12417 glibcpp_cv_func_fmodl_use=no
12419 rm -f conftest*
12420 ac_ext=c
12421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12422 ac_cpp='$CPP $CPPFLAGS'
12423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12425 cross_compiling=$ac_cv_prog_cc_cross
12431 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12433 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12434 for ac_func in fmodl
12436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12437 echo "configure:12438: checking for $ac_func" >&5
12438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12439 echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12441 cat > conftest.$ac_ext <<EOF
12442 #line 12443 "configure"
12443 #include "confdefs.h"
12444 /* System header to define __stub macros and hopefully few prototypes,
12445 which can conflict with char $ac_func(); below. */
12446 #include <assert.h>
12447 /* Override any gcc2 internal prototype to avoid an error. */
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12450 char $ac_func();
12452 int main() {
12454 /* The GNU C library defines this for functions which it implements
12455 to always fail with ENOSYS. Some functions are actually named
12456 something starting with __ and the normal name is an alias. */
12457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12458 choke me
12459 #else
12460 $ac_func();
12461 #endif
12463 ; return 0; }
12465 if { (eval echo configure:12466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12466 rm -rf conftest*
12467 eval "ac_cv_func_$ac_func=yes"
12468 else
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 rm -rf conftest*
12472 eval "ac_cv_func_$ac_func=no"
12474 rm -f conftest*
12477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12478 echo "$ac_t""yes" 1>&6
12479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12480 cat >> confdefs.h <<EOF
12481 #define $ac_tr_func 1
12484 else
12485 echo "$ac_t""no" 1>&6
12487 done
12489 else
12491 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12492 echo "configure:12493: checking for _fmodl declaration" >&5
12493 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12494 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12495 echo $ac_n "(cached) $ac_c" 1>&6
12496 else
12499 ac_ext=C
12500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12501 ac_cpp='$CXXCPP $CPPFLAGS'
12502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12504 cross_compiling=$ac_cv_prog_cxx_cross
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <math.h>
12510 int main() {
12511 _fmodl(0, 0);
12512 ; return 0; }
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12515 rm -rf conftest*
12516 glibcpp_cv_func__fmodl_use=yes
12517 else
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12520 rm -rf conftest*
12521 glibcpp_cv_func__fmodl_use=no
12523 rm -f conftest*
12524 ac_ext=c
12525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12529 cross_compiling=$ac_cv_prog_cc_cross
12535 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12537 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12538 for ac_func in _fmodl
12540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12541 echo "configure:12542: checking for $ac_func" >&5
12542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12543 echo $ac_n "(cached) $ac_c" 1>&6
12544 else
12545 cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* System header to define __stub macros and hopefully few prototypes,
12549 which can conflict with char $ac_func(); below. */
12550 #include <assert.h>
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char $ac_func();
12556 int main() {
12558 /* The GNU C library defines this for functions which it implements
12559 to always fail with ENOSYS. Some functions are actually named
12560 something starting with __ and the normal name is an alias. */
12561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12562 choke me
12563 #else
12564 $ac_func();
12565 #endif
12567 ; return 0; }
12569 if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12570 rm -rf conftest*
12571 eval "ac_cv_func_$ac_func=yes"
12572 else
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 rm -rf conftest*
12576 eval "ac_cv_func_$ac_func=no"
12578 rm -f conftest*
12581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12582 echo "$ac_t""yes" 1>&6
12583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12584 cat >> confdefs.h <<EOF
12585 #define $ac_tr_func 1
12588 else
12589 echo "$ac_t""no" 1>&6
12591 done
12598 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12599 echo "configure:12600: checking for frexpl declaration" >&5
12600 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12601 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12606 ac_ext=C
12607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12611 cross_compiling=$ac_cv_prog_cxx_cross
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 #include <math.h>
12617 int main() {
12618 frexpl(0, 0);
12619 ; return 0; }
12621 if { (eval echo configure:12622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12622 rm -rf conftest*
12623 glibcpp_cv_func_frexpl_use=yes
12624 else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -rf conftest*
12628 glibcpp_cv_func_frexpl_use=no
12630 rm -f conftest*
12631 ac_ext=c
12632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12636 cross_compiling=$ac_cv_prog_cc_cross
12642 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12644 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12645 for ac_func in frexpl
12647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12648 echo "configure:12649: checking for $ac_func" >&5
12649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* System header to define __stub macros and hopefully few prototypes,
12656 which can conflict with char $ac_func(); below. */
12657 #include <assert.h>
12658 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char $ac_func();
12663 int main() {
12665 /* The GNU C library defines this for functions which it implements
12666 to always fail with ENOSYS. Some functions are actually named
12667 something starting with __ and the normal name is an alias. */
12668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12669 choke me
12670 #else
12671 $ac_func();
12672 #endif
12674 ; return 0; }
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12677 rm -rf conftest*
12678 eval "ac_cv_func_$ac_func=yes"
12679 else
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12682 rm -rf conftest*
12683 eval "ac_cv_func_$ac_func=no"
12685 rm -f conftest*
12688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12689 echo "$ac_t""yes" 1>&6
12690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12691 cat >> confdefs.h <<EOF
12692 #define $ac_tr_func 1
12695 else
12696 echo "$ac_t""no" 1>&6
12698 done
12700 else
12702 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12703 echo "configure:12704: checking for _frexpl declaration" >&5
12704 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12705 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12706 echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12710 ac_ext=C
12711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CXXCPP $CPPFLAGS'
12713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cxx_cross
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <math.h>
12721 int main() {
12722 _frexpl(0, 0);
12723 ; return 0; }
12725 if { (eval echo configure:12726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12726 rm -rf conftest*
12727 glibcpp_cv_func__frexpl_use=yes
12728 else
12729 echo "configure: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12731 rm -rf conftest*
12732 glibcpp_cv_func__frexpl_use=no
12734 rm -f conftest*
12735 ac_ext=c
12736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12740 cross_compiling=$ac_cv_prog_cc_cross
12746 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12748 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12749 for ac_func in _frexpl
12751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12752 echo "configure:12753: checking for $ac_func" >&5
12753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12754 echo $ac_n "(cached) $ac_c" 1>&6
12755 else
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 /* System header to define __stub macros and hopefully few prototypes,
12760 which can conflict with char $ac_func(); below. */
12761 #include <assert.h>
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 /* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12765 char $ac_func();
12767 int main() {
12769 /* The GNU C library defines this for functions which it implements
12770 to always fail with ENOSYS. Some functions are actually named
12771 something starting with __ and the normal name is an alias. */
12772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12773 choke me
12774 #else
12775 $ac_func();
12776 #endif
12778 ; return 0; }
12780 if { (eval echo configure:12781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781 rm -rf conftest*
12782 eval "ac_cv_func_$ac_func=yes"
12783 else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787 eval "ac_cv_func_$ac_func=no"
12789 rm -f conftest*
12792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12793 echo "$ac_t""yes" 1>&6
12794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12795 cat >> confdefs.h <<EOF
12796 #define $ac_tr_func 1
12799 else
12800 echo "$ac_t""no" 1>&6
12802 done
12809 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12810 echo "configure:12811: checking for ldexpl declaration" >&5
12811 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12812 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12817 ac_ext=C
12818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12819 ac_cpp='$CXXCPP $CPPFLAGS'
12820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12822 cross_compiling=$ac_cv_prog_cxx_cross
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 #include <math.h>
12828 int main() {
12829 ldexpl(0, 0);
12830 ; return 0; }
12832 if { (eval echo configure:12833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12833 rm -rf conftest*
12834 glibcpp_cv_func_ldexpl_use=yes
12835 else
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839 glibcpp_cv_func_ldexpl_use=no
12841 rm -f conftest*
12842 ac_ext=c
12843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12844 ac_cpp='$CPP $CPPFLAGS'
12845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12847 cross_compiling=$ac_cv_prog_cc_cross
12853 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12855 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12856 for ac_func in ldexpl
12858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12859 echo "configure:12860: checking for $ac_func" >&5
12860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func(); below. */
12868 #include <assert.h>
12869 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char $ac_func();
12874 int main() {
12876 /* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12880 choke me
12881 #else
12882 $ac_func();
12883 #endif
12885 ; return 0; }
12887 if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888 rm -rf conftest*
12889 eval "ac_cv_func_$ac_func=yes"
12890 else
12891 echo "configure: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12893 rm -rf conftest*
12894 eval "ac_cv_func_$ac_func=no"
12896 rm -f conftest*
12899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12902 cat >> confdefs.h <<EOF
12903 #define $ac_tr_func 1
12906 else
12907 echo "$ac_t""no" 1>&6
12909 done
12911 else
12913 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12914 echo "configure:12915: checking for _ldexpl declaration" >&5
12915 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12916 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12921 ac_ext=C
12922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12926 cross_compiling=$ac_cv_prog_cxx_cross
12928 cat > conftest.$ac_ext <<EOF
12929 #line 12930 "configure"
12930 #include "confdefs.h"
12931 #include <math.h>
12932 int main() {
12933 _ldexpl(0, 0);
12934 ; return 0; }
12936 if { (eval echo configure:12937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12937 rm -rf conftest*
12938 glibcpp_cv_func__ldexpl_use=yes
12939 else
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 rm -rf conftest*
12943 glibcpp_cv_func__ldexpl_use=no
12945 rm -f conftest*
12946 ac_ext=c
12947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12948 ac_cpp='$CPP $CPPFLAGS'
12949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12951 cross_compiling=$ac_cv_prog_cc_cross
12957 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12959 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12960 for ac_func in _ldexpl
12962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12963 echo "configure:12964: checking for $ac_func" >&5
12964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12966 else
12967 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12970 /* System header to define __stub macros and hopefully few prototypes,
12971 which can conflict with char $ac_func(); below. */
12972 #include <assert.h>
12973 /* Override any gcc2 internal prototype to avoid an error. */
12974 /* We use char because int might match the return type of a gcc2
12975 builtin and then its argument prototype would still apply. */
12976 char $ac_func();
12978 int main() {
12980 /* The GNU C library defines this for functions which it implements
12981 to always fail with ENOSYS. Some functions are actually named
12982 something starting with __ and the normal name is an alias. */
12983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12984 choke me
12985 #else
12986 $ac_func();
12987 #endif
12989 ; return 0; }
12991 if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12992 rm -rf conftest*
12993 eval "ac_cv_func_$ac_func=yes"
12994 else
12995 echo "configure: failed program was:" >&5
12996 cat conftest.$ac_ext >&5
12997 rm -rf conftest*
12998 eval "ac_cv_func_$ac_func=no"
13000 rm -f conftest*
13003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13006 cat >> confdefs.h <<EOF
13007 #define $ac_tr_func 1
13010 else
13011 echo "$ac_t""no" 1>&6
13013 done
13020 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13021 echo "configure:13022: checking for logl declaration" >&5
13022 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13023 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13024 echo $ac_n "(cached) $ac_c" 1>&6
13025 else
13028 ac_ext=C
13029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13030 ac_cpp='$CXXCPP $CPPFLAGS'
13031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13033 cross_compiling=$ac_cv_prog_cxx_cross
13035 cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038 #include <math.h>
13039 #ifdef HAVE_IEEEFP_H
13040 #include <ieeefp.h>
13041 #endif
13043 int main() {
13044 logl(0);
13045 ; return 0; }
13047 if { (eval echo configure:13048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13048 rm -rf conftest*
13049 glibcpp_cv_func_logl_use=yes
13050 else
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 rm -rf conftest*
13054 glibcpp_cv_func_logl_use=no
13056 rm -f conftest*
13057 ac_ext=c
13058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13062 cross_compiling=$ac_cv_prog_cc_cross
13068 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13070 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13071 for ac_func in logl
13073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13074 echo "configure:13075: checking for $ac_func" >&5
13075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13076 echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char $ac_func(); below. */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error. */
13085 /* We use char because int might match the return type of a gcc2
13086 builtin and then its argument prototype would still apply. */
13087 char $ac_func();
13089 int main() {
13091 /* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095 choke me
13096 #else
13097 $ac_func();
13098 #endif
13100 ; return 0; }
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103 rm -rf conftest*
13104 eval "ac_cv_func_$ac_func=yes"
13105 else
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 rm -rf conftest*
13109 eval "ac_cv_func_$ac_func=no"
13111 rm -f conftest*
13114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13117 cat >> confdefs.h <<EOF
13118 #define $ac_tr_func 1
13121 else
13122 echo "$ac_t""no" 1>&6
13124 done
13126 else
13128 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13129 echo "configure:13130: checking for _logl declaration" >&5
13130 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13131 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13133 else
13136 ac_ext=C
13137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13141 cross_compiling=$ac_cv_prog_cxx_cross
13143 cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 #include <math.h>
13147 #ifdef HAVE_IEEEFP_H
13148 #include <ieeefp.h>
13149 #endif
13151 int main() {
13152 _logl(0);
13153 ; return 0; }
13155 if { (eval echo configure:13156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13156 rm -rf conftest*
13157 glibcpp_cv_func__logl_use=yes
13158 else
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 rm -rf conftest*
13162 glibcpp_cv_func__logl_use=no
13164 rm -f conftest*
13165 ac_ext=c
13166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13167 ac_cpp='$CPP $CPPFLAGS'
13168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13170 cross_compiling=$ac_cv_prog_cc_cross
13176 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13178 if test x$glibcpp_cv_func__logl_use = x"yes"; then
13179 for ac_func in _logl
13181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13182 echo "configure:13183: checking for $ac_func" >&5
13183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
13185 else
13186 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13189 /* System header to define __stub macros and hopefully few prototypes,
13190 which can conflict with char $ac_func(); below. */
13191 #include <assert.h>
13192 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char $ac_func();
13197 int main() {
13199 /* The GNU C library defines this for functions which it implements
13200 to always fail with ENOSYS. Some functions are actually named
13201 something starting with __ and the normal name is an alias. */
13202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13203 choke me
13204 #else
13205 $ac_func();
13206 #endif
13208 ; return 0; }
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211 rm -rf conftest*
13212 eval "ac_cv_func_$ac_func=yes"
13213 else
13214 echo "configure: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 rm -rf conftest*
13217 eval "ac_cv_func_$ac_func=no"
13219 rm -f conftest*
13222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13225 cat >> confdefs.h <<EOF
13226 #define $ac_tr_func 1
13229 else
13230 echo "$ac_t""no" 1>&6
13232 done
13239 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13240 echo "configure:13241: checking for log10l declaration" >&5
13241 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13242 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13244 else
13247 ac_ext=C
13248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13249 ac_cpp='$CXXCPP $CPPFLAGS'
13250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13252 cross_compiling=$ac_cv_prog_cxx_cross
13254 cat > conftest.$ac_ext <<EOF
13255 #line 13256 "configure"
13256 #include "confdefs.h"
13257 #include <math.h>
13258 #ifdef HAVE_IEEEFP_H
13259 #include <ieeefp.h>
13260 #endif
13262 int main() {
13263 log10l(0);
13264 ; return 0; }
13266 if { (eval echo configure:13267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13267 rm -rf conftest*
13268 glibcpp_cv_func_log10l_use=yes
13269 else
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 rm -rf conftest*
13273 glibcpp_cv_func_log10l_use=no
13275 rm -f conftest*
13276 ac_ext=c
13277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13278 ac_cpp='$CPP $CPPFLAGS'
13279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13281 cross_compiling=$ac_cv_prog_cc_cross
13287 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13289 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13290 for ac_func in log10l
13292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13293 echo "configure:13294: checking for $ac_func" >&5
13294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13296 else
13297 cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* System header to define __stub macros and hopefully few prototypes,
13301 which can conflict with char $ac_func(); below. */
13302 #include <assert.h>
13303 /* Override any gcc2 internal prototype to avoid an error. */
13304 /* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306 char $ac_func();
13308 int main() {
13310 /* The GNU C library defines this for functions which it implements
13311 to always fail with ENOSYS. Some functions are actually named
13312 something starting with __ and the normal name is an alias. */
13313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314 choke me
13315 #else
13316 $ac_func();
13317 #endif
13319 ; return 0; }
13321 if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322 rm -rf conftest*
13323 eval "ac_cv_func_$ac_func=yes"
13324 else
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_func_$ac_func=no"
13330 rm -f conftest*
13333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334 echo "$ac_t""yes" 1>&6
13335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336 cat >> confdefs.h <<EOF
13337 #define $ac_tr_func 1
13340 else
13341 echo "$ac_t""no" 1>&6
13343 done
13345 else
13347 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13348 echo "configure:13349: checking for _log10l declaration" >&5
13349 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13350 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13352 else
13355 ac_ext=C
13356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13357 ac_cpp='$CXXCPP $CPPFLAGS'
13358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13360 cross_compiling=$ac_cv_prog_cxx_cross
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 #include <math.h>
13366 #ifdef HAVE_IEEEFP_H
13367 #include <ieeefp.h>
13368 #endif
13370 int main() {
13371 _log10l(0);
13372 ; return 0; }
13374 if { (eval echo configure:13375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13375 rm -rf conftest*
13376 glibcpp_cv_func__log10l_use=yes
13377 else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 glibcpp_cv_func__log10l_use=no
13383 rm -f conftest*
13384 ac_ext=c
13385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389 cross_compiling=$ac_cv_prog_cc_cross
13395 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13397 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13398 for ac_func in _log10l
13400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13401 echo "configure:13402: checking for $ac_func" >&5
13402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char $ac_func(); below. */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error. */
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414 char $ac_func();
13416 int main() {
13418 /* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422 choke me
13423 #else
13424 $ac_func();
13425 #endif
13427 ; return 0; }
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430 rm -rf conftest*
13431 eval "ac_cv_func_$ac_func=yes"
13432 else
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 rm -rf conftest*
13436 eval "ac_cv_func_$ac_func=no"
13438 rm -f conftest*
13441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13444 cat >> confdefs.h <<EOF
13445 #define $ac_tr_func 1
13448 else
13449 echo "$ac_t""no" 1>&6
13451 done
13458 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13459 echo "configure:13460: checking for modfl declaration" >&5
13460 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13461 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13462 echo $ac_n "(cached) $ac_c" 1>&6
13463 else
13466 ac_ext=C
13467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13468 ac_cpp='$CXXCPP $CPPFLAGS'
13469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13471 cross_compiling=$ac_cv_prog_cxx_cross
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 #include <math.h>
13477 int main() {
13478 modfl(0, 0);
13479 ; return 0; }
13481 if { (eval echo configure:13482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13482 rm -rf conftest*
13483 glibcpp_cv_func_modfl_use=yes
13484 else
13485 echo "configure: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 rm -rf conftest*
13488 glibcpp_cv_func_modfl_use=no
13490 rm -f conftest*
13491 ac_ext=c
13492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13493 ac_cpp='$CPP $CPPFLAGS'
13494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13496 cross_compiling=$ac_cv_prog_cc_cross
13502 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13504 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13505 for ac_func in modfl
13507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13508 echo "configure:13509: checking for $ac_func" >&5
13509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 /* System header to define __stub macros and hopefully few prototypes,
13516 which can conflict with char $ac_func(); below. */
13517 #include <assert.h>
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13521 char $ac_func();
13523 int main() {
13525 /* The GNU C library defines this for functions which it implements
13526 to always fail with ENOSYS. Some functions are actually named
13527 something starting with __ and the normal name is an alias. */
13528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13529 choke me
13530 #else
13531 $ac_func();
13532 #endif
13534 ; return 0; }
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537 rm -rf conftest*
13538 eval "ac_cv_func_$ac_func=yes"
13539 else
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 rm -rf conftest*
13543 eval "ac_cv_func_$ac_func=no"
13545 rm -f conftest*
13548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13549 echo "$ac_t""yes" 1>&6
13550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13551 cat >> confdefs.h <<EOF
13552 #define $ac_tr_func 1
13555 else
13556 echo "$ac_t""no" 1>&6
13558 done
13560 else
13562 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13563 echo "configure:13564: checking for _modfl declaration" >&5
13564 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13565 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13567 else
13570 ac_ext=C
13571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13575 cross_compiling=$ac_cv_prog_cxx_cross
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 #include <math.h>
13581 int main() {
13582 _modfl(0, 0);
13583 ; return 0; }
13585 if { (eval echo configure:13586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13586 rm -rf conftest*
13587 glibcpp_cv_func__modfl_use=yes
13588 else
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 rm -rf conftest*
13592 glibcpp_cv_func__modfl_use=no
13594 rm -f conftest*
13595 ac_ext=c
13596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13597 ac_cpp='$CPP $CPPFLAGS'
13598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13600 cross_compiling=$ac_cv_prog_cc_cross
13606 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13608 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13609 for ac_func in _modfl
13611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13612 echo "configure:13613: checking for $ac_func" >&5
13613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13614 echo $ac_n "(cached) $ac_c" 1>&6
13615 else
13616 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13619 /* System header to define __stub macros and hopefully few prototypes,
13620 which can conflict with char $ac_func(); below. */
13621 #include <assert.h>
13622 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13625 char $ac_func();
13627 int main() {
13629 /* The GNU C library defines this for functions which it implements
13630 to always fail with ENOSYS. Some functions are actually named
13631 something starting with __ and the normal name is an alias. */
13632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633 choke me
13634 #else
13635 $ac_func();
13636 #endif
13638 ; return 0; }
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13641 rm -rf conftest*
13642 eval "ac_cv_func_$ac_func=yes"
13643 else
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 rm -rf conftest*
13647 eval "ac_cv_func_$ac_func=no"
13649 rm -f conftest*
13652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13653 echo "$ac_t""yes" 1>&6
13654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13655 cat >> confdefs.h <<EOF
13656 #define $ac_tr_func 1
13659 else
13660 echo "$ac_t""no" 1>&6
13662 done
13669 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13670 echo "configure:13671: checking for powl declaration" >&5
13671 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13672 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13673 echo $ac_n "(cached) $ac_c" 1>&6
13674 else
13677 ac_ext=C
13678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13682 cross_compiling=$ac_cv_prog_cxx_cross
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 #include <math.h>
13688 int main() {
13689 powl(0, 0);
13690 ; return 0; }
13692 if { (eval echo configure:13693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13693 rm -rf conftest*
13694 glibcpp_cv_func_powl_use=yes
13695 else
13696 echo "configure: failed program was:" >&5
13697 cat conftest.$ac_ext >&5
13698 rm -rf conftest*
13699 glibcpp_cv_func_powl_use=no
13701 rm -f conftest*
13702 ac_ext=c
13703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13704 ac_cpp='$CPP $CPPFLAGS'
13705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13707 cross_compiling=$ac_cv_prog_cc_cross
13713 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13715 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13716 for ac_func in powl
13718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13719 echo "configure:13720: checking for $ac_func" >&5
13720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13721 echo $ac_n "(cached) $ac_c" 1>&6
13722 else
13723 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 /* System header to define __stub macros and hopefully few prototypes,
13727 which can conflict with char $ac_func(); below. */
13728 #include <assert.h>
13729 /* Override any gcc2 internal prototype to avoid an error. */
13730 /* We use char because int might match the return type of a gcc2
13731 builtin and then its argument prototype would still apply. */
13732 char $ac_func();
13734 int main() {
13736 /* The GNU C library defines this for functions which it implements
13737 to always fail with ENOSYS. Some functions are actually named
13738 something starting with __ and the normal name is an alias. */
13739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13740 choke me
13741 #else
13742 $ac_func();
13743 #endif
13745 ; return 0; }
13747 if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 rm -rf conftest*
13749 eval "ac_cv_func_$ac_func=yes"
13750 else
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 rm -rf conftest*
13754 eval "ac_cv_func_$ac_func=no"
13756 rm -f conftest*
13759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13760 echo "$ac_t""yes" 1>&6
13761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13762 cat >> confdefs.h <<EOF
13763 #define $ac_tr_func 1
13766 else
13767 echo "$ac_t""no" 1>&6
13769 done
13771 else
13773 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13774 echo "configure:13775: checking for _powl declaration" >&5
13775 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13776 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13777 echo $ac_n "(cached) $ac_c" 1>&6
13778 else
13781 ac_ext=C
13782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13783 ac_cpp='$CXXCPP $CPPFLAGS'
13784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13786 cross_compiling=$ac_cv_prog_cxx_cross
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 #include <math.h>
13792 int main() {
13793 _powl(0, 0);
13794 ; return 0; }
13796 if { (eval echo configure:13797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13797 rm -rf conftest*
13798 glibcpp_cv_func__powl_use=yes
13799 else
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 rm -rf conftest*
13803 glibcpp_cv_func__powl_use=no
13805 rm -f conftest*
13806 ac_ext=c
13807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13808 ac_cpp='$CPP $CPPFLAGS'
13809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13811 cross_compiling=$ac_cv_prog_cc_cross
13817 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13819 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13820 for ac_func in _powl
13822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13823 echo "configure:13824: checking for $ac_func" >&5
13824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13825 echo $ac_n "(cached) $ac_c" 1>&6
13826 else
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char $ac_func(); below. */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13834 /* We use char because int might match the return type of a gcc2
13835 builtin and then its argument prototype would still apply. */
13836 char $ac_func();
13838 int main() {
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13844 choke me
13845 #else
13846 $ac_func();
13847 #endif
13849 ; return 0; }
13851 if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 rm -rf conftest*
13853 eval "ac_cv_func_$ac_func=yes"
13854 else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 eval "ac_cv_func_$ac_func=no"
13860 rm -f conftest*
13863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13864 echo "$ac_t""yes" 1>&6
13865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13866 cat >> confdefs.h <<EOF
13867 #define $ac_tr_func 1
13870 else
13871 echo "$ac_t""no" 1>&6
13873 done
13880 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13881 echo "configure:13882: checking for sqrtl declaration" >&5
13882 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13883 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13884 echo $ac_n "(cached) $ac_c" 1>&6
13885 else
13888 ac_ext=C
13889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13890 ac_cpp='$CXXCPP $CPPFLAGS'
13891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13893 cross_compiling=$ac_cv_prog_cxx_cross
13895 cat > conftest.$ac_ext <<EOF
13896 #line 13897 "configure"
13897 #include "confdefs.h"
13898 #include <math.h>
13899 #ifdef HAVE_IEEEFP_H
13900 #include <ieeefp.h>
13901 #endif
13903 int main() {
13904 sqrtl(0);
13905 ; return 0; }
13907 if { (eval echo configure:13908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13908 rm -rf conftest*
13909 glibcpp_cv_func_sqrtl_use=yes
13910 else
13911 echo "configure: failed program was:" >&5
13912 cat conftest.$ac_ext >&5
13913 rm -rf conftest*
13914 glibcpp_cv_func_sqrtl_use=no
13916 rm -f conftest*
13917 ac_ext=c
13918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13919 ac_cpp='$CPP $CPPFLAGS'
13920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13922 cross_compiling=$ac_cv_prog_cc_cross
13928 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13930 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13931 for ac_func in sqrtl
13933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13934 echo "configure:13935: checking for $ac_func" >&5
13935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13937 else
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 /* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char $ac_func(); below. */
13943 #include <assert.h>
13944 /* Override any gcc2 internal prototype to avoid an error. */
13945 /* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947 char $ac_func();
13949 int main() {
13951 /* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13955 choke me
13956 #else
13957 $ac_func();
13958 #endif
13960 ; return 0; }
13962 if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13963 rm -rf conftest*
13964 eval "ac_cv_func_$ac_func=yes"
13965 else
13966 echo "configure: failed program was:" >&5
13967 cat conftest.$ac_ext >&5
13968 rm -rf conftest*
13969 eval "ac_cv_func_$ac_func=no"
13971 rm -f conftest*
13974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13975 echo "$ac_t""yes" 1>&6
13976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13977 cat >> confdefs.h <<EOF
13978 #define $ac_tr_func 1
13981 else
13982 echo "$ac_t""no" 1>&6
13984 done
13986 else
13988 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13989 echo "configure:13990: checking for _sqrtl declaration" >&5
13990 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13991 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13993 else
13996 ac_ext=C
13997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13998 ac_cpp='$CXXCPP $CPPFLAGS'
13999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14001 cross_compiling=$ac_cv_prog_cxx_cross
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <math.h>
14007 #ifdef HAVE_IEEEFP_H
14008 #include <ieeefp.h>
14009 #endif
14011 int main() {
14012 _sqrtl(0);
14013 ; return 0; }
14015 if { (eval echo configure:14016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14016 rm -rf conftest*
14017 glibcpp_cv_func__sqrtl_use=yes
14018 else
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14021 rm -rf conftest*
14022 glibcpp_cv_func__sqrtl_use=no
14024 rm -f conftest*
14025 ac_ext=c
14026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14027 ac_cpp='$CPP $CPPFLAGS'
14028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14030 cross_compiling=$ac_cv_prog_cc_cross
14036 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14038 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14039 for ac_func in _sqrtl
14041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14042 echo "configure:14043: checking for $ac_func" >&5
14043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 /* System header to define __stub macros and hopefully few prototypes,
14050 which can conflict with char $ac_func(); below. */
14051 #include <assert.h>
14052 /* Override any gcc2 internal prototype to avoid an error. */
14053 /* We use char because int might match the return type of a gcc2
14054 builtin and then its argument prototype would still apply. */
14055 char $ac_func();
14057 int main() {
14059 /* The GNU C library defines this for functions which it implements
14060 to always fail with ENOSYS. Some functions are actually named
14061 something starting with __ and the normal name is an alias. */
14062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14063 choke me
14064 #else
14065 $ac_func();
14066 #endif
14068 ; return 0; }
14070 if { (eval echo configure:14071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14071 rm -rf conftest*
14072 eval "ac_cv_func_$ac_func=yes"
14073 else
14074 echo "configure: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14076 rm -rf conftest*
14077 eval "ac_cv_func_$ac_func=no"
14079 rm -f conftest*
14082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14083 echo "$ac_t""yes" 1>&6
14084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14085 cat >> confdefs.h <<EOF
14086 #define $ac_tr_func 1
14089 else
14090 echo "$ac_t""no" 1>&6
14092 done
14099 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14100 echo "configure:14101: checking for sincosl declaration" >&5
14101 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14102 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14104 else
14107 ac_ext=C
14108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14109 ac_cpp='$CXXCPP $CPPFLAGS'
14110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14112 cross_compiling=$ac_cv_prog_cxx_cross
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 #include <math.h>
14118 int main() {
14119 sincosl(0, 0, 0);
14120 ; return 0; }
14122 if { (eval echo configure:14123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14123 rm -rf conftest*
14124 glibcpp_cv_func_sincosl_use=yes
14125 else
14126 echo "configure: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14128 rm -rf conftest*
14129 glibcpp_cv_func_sincosl_use=no
14131 rm -f conftest*
14132 ac_ext=c
14133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14134 ac_cpp='$CPP $CPPFLAGS'
14135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14137 cross_compiling=$ac_cv_prog_cc_cross
14143 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14145 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14146 for ac_func in sincosl
14148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14149 echo "configure:14150: checking for $ac_func" >&5
14150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14151 echo $ac_n "(cached) $ac_c" 1>&6
14152 else
14153 cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 /* System header to define __stub macros and hopefully few prototypes,
14157 which can conflict with char $ac_func(); below. */
14158 #include <assert.h>
14159 /* Override any gcc2 internal prototype to avoid an error. */
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162 char $ac_func();
14164 int main() {
14166 /* The GNU C library defines this for functions which it implements
14167 to always fail with ENOSYS. Some functions are actually named
14168 something starting with __ and the normal name is an alias. */
14169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14170 choke me
14171 #else
14172 $ac_func();
14173 #endif
14175 ; return 0; }
14177 if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14178 rm -rf conftest*
14179 eval "ac_cv_func_$ac_func=yes"
14180 else
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 rm -rf conftest*
14184 eval "ac_cv_func_$ac_func=no"
14186 rm -f conftest*
14189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14190 echo "$ac_t""yes" 1>&6
14191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14192 cat >> confdefs.h <<EOF
14193 #define $ac_tr_func 1
14196 else
14197 echo "$ac_t""no" 1>&6
14199 done
14201 else
14203 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14204 echo "configure:14205: checking for _sincosl declaration" >&5
14205 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14206 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
14208 else
14211 ac_ext=C
14212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14213 ac_cpp='$CXXCPP $CPPFLAGS'
14214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14216 cross_compiling=$ac_cv_prog_cxx_cross
14218 cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 #include <math.h>
14222 int main() {
14223 _sincosl(0, 0, 0);
14224 ; return 0; }
14226 if { (eval echo configure:14227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14227 rm -rf conftest*
14228 glibcpp_cv_func__sincosl_use=yes
14229 else
14230 echo "configure: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14232 rm -rf conftest*
14233 glibcpp_cv_func__sincosl_use=no
14235 rm -f conftest*
14236 ac_ext=c
14237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14238 ac_cpp='$CPP $CPPFLAGS'
14239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14241 cross_compiling=$ac_cv_prog_cc_cross
14247 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14249 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14250 for ac_func in _sincosl
14252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14253 echo "configure:14254: checking for $ac_func" >&5
14254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14255 echo $ac_n "(cached) $ac_c" 1>&6
14256 else
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func(); below. */
14262 #include <assert.h>
14263 /* Override any gcc2 internal prototype to avoid an error. */
14264 /* We use char because int might match the return type of a gcc2
14265 builtin and then its argument prototype would still apply. */
14266 char $ac_func();
14268 int main() {
14270 /* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
14273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 choke me
14275 #else
14276 $ac_func();
14277 #endif
14279 ; return 0; }
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14282 rm -rf conftest*
14283 eval "ac_cv_func_$ac_func=yes"
14284 else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 eval "ac_cv_func_$ac_func=no"
14290 rm -f conftest*
14293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14294 echo "$ac_t""yes" 1>&6
14295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14296 cat >> confdefs.h <<EOF
14297 #define $ac_tr_func 1
14300 else
14301 echo "$ac_t""no" 1>&6
14303 done
14310 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14311 echo "configure:14312: checking for finitel declaration" >&5
14312 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14313 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14315 else
14318 ac_ext=C
14319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14320 ac_cpp='$CXXCPP $CPPFLAGS'
14321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14323 cross_compiling=$ac_cv_prog_cxx_cross
14325 cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 #include <math.h>
14329 #ifdef HAVE_IEEEFP_H
14330 #include <ieeefp.h>
14331 #endif
14333 int main() {
14334 finitel(0);
14335 ; return 0; }
14337 if { (eval echo configure:14338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14338 rm -rf conftest*
14339 glibcpp_cv_func_finitel_use=yes
14340 else
14341 echo "configure: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14343 rm -rf conftest*
14344 glibcpp_cv_func_finitel_use=no
14346 rm -f conftest*
14347 ac_ext=c
14348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14352 cross_compiling=$ac_cv_prog_cc_cross
14358 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14360 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14361 for ac_func in finitel
14363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14364 echo "configure:14365: checking for $ac_func" >&5
14365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14366 echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14368 cat > conftest.$ac_ext <<EOF
14369 #line 14370 "configure"
14370 #include "confdefs.h"
14371 /* System header to define __stub macros and hopefully few prototypes,
14372 which can conflict with char $ac_func(); below. */
14373 #include <assert.h>
14374 /* Override any gcc2 internal prototype to avoid an error. */
14375 /* We use char because int might match the return type of a gcc2
14376 builtin and then its argument prototype would still apply. */
14377 char $ac_func();
14379 int main() {
14381 /* The GNU C library defines this for functions which it implements
14382 to always fail with ENOSYS. Some functions are actually named
14383 something starting with __ and the normal name is an alias. */
14384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14385 choke me
14386 #else
14387 $ac_func();
14388 #endif
14390 ; return 0; }
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14393 rm -rf conftest*
14394 eval "ac_cv_func_$ac_func=yes"
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 eval "ac_cv_func_$ac_func=no"
14401 rm -f conftest*
14404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14405 echo "$ac_t""yes" 1>&6
14406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14407 cat >> confdefs.h <<EOF
14408 #define $ac_tr_func 1
14411 else
14412 echo "$ac_t""no" 1>&6
14414 done
14416 else
14418 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14419 echo "configure:14420: checking for _finitel declaration" >&5
14420 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14421 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14422 echo $ac_n "(cached) $ac_c" 1>&6
14423 else
14426 ac_ext=C
14427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14428 ac_cpp='$CXXCPP $CPPFLAGS'
14429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14431 cross_compiling=$ac_cv_prog_cxx_cross
14433 cat > conftest.$ac_ext <<EOF
14434 #line 14435 "configure"
14435 #include "confdefs.h"
14436 #include <math.h>
14437 #ifdef HAVE_IEEEFP_H
14438 #include <ieeefp.h>
14439 #endif
14441 int main() {
14442 _finitel(0);
14443 ; return 0; }
14445 if { (eval echo configure:14446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14446 rm -rf conftest*
14447 glibcpp_cv_func__finitel_use=yes
14448 else
14449 echo "configure: failed program was:" >&5
14450 cat conftest.$ac_ext >&5
14451 rm -rf conftest*
14452 glibcpp_cv_func__finitel_use=no
14454 rm -f conftest*
14455 ac_ext=c
14456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14457 ac_cpp='$CPP $CPPFLAGS'
14458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14460 cross_compiling=$ac_cv_prog_cc_cross
14466 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14468 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14469 for ac_func in _finitel
14471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14472 echo "configure:14473: checking for $ac_func" >&5
14473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14475 else
14476 cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* System header to define __stub macros and hopefully few prototypes,
14480 which can conflict with char $ac_func(); below. */
14481 #include <assert.h>
14482 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char $ac_func();
14487 int main() {
14489 /* The GNU C library defines this for functions which it implements
14490 to always fail with ENOSYS. Some functions are actually named
14491 something starting with __ and the normal name is an alias. */
14492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14493 choke me
14494 #else
14495 $ac_func();
14496 #endif
14498 ; return 0; }
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14501 rm -rf conftest*
14502 eval "ac_cv_func_$ac_func=yes"
14503 else
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 rm -rf conftest*
14507 eval "ac_cv_func_$ac_func=no"
14509 rm -f conftest*
14512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14513 echo "$ac_t""yes" 1>&6
14514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14515 cat >> confdefs.h <<EOF
14516 #define $ac_tr_func 1
14519 else
14520 echo "$ac_t""no" 1>&6
14522 done
14530 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14531 echo "configure:14532: checking for _float trig functions" >&5
14532 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14533 echo $ac_n "(cached) $ac_c" 1>&6
14534 else
14537 ac_ext=C
14538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CXXCPP $CPPFLAGS'
14540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cxx_cross
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 #include <math.h>
14548 int main() {
14549 `for x in _acosf _asinf _atanf \
14550 _cosf _sinf _tanf \
14551 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14552 ; return 0; }
14554 if { (eval echo configure:14555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14555 rm -rf conftest*
14556 glibcpp_cv_func__float_trig_use=yes
14557 else
14558 echo "configure: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14560 rm -rf conftest*
14561 glibcpp_cv_func__float_trig_use=no
14563 rm -f conftest*
14564 ac_ext=c
14565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14566 ac_cpp='$CPP $CPPFLAGS'
14567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14569 cross_compiling=$ac_cv_prog_cc_cross
14573 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14574 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14575 for ac_func in _acosf _asinf _atanf \
14576 _cosf _sinf _tanf \
14577 _coshf _sinhf _tanhf
14579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14580 echo "configure:14581: checking for $ac_func" >&5
14581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14583 else
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 /* System header to define __stub macros and hopefully few prototypes,
14588 which can conflict with char $ac_func(); below. */
14589 #include <assert.h>
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 /* We use char because int might match the return type of a gcc2
14592 builtin and then its argument prototype would still apply. */
14593 char $ac_func();
14595 int main() {
14597 /* The GNU C library defines this for functions which it implements
14598 to always fail with ENOSYS. Some functions are actually named
14599 something starting with __ and the normal name is an alias. */
14600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14601 choke me
14602 #else
14603 $ac_func();
14604 #endif
14606 ; return 0; }
14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14609 rm -rf conftest*
14610 eval "ac_cv_func_$ac_func=yes"
14611 else
14612 echo "configure: failed program was:" >&5
14613 cat conftest.$ac_ext >&5
14614 rm -rf conftest*
14615 eval "ac_cv_func_$ac_func=no"
14617 rm -f conftest*
14620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14621 echo "$ac_t""yes" 1>&6
14622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14623 cat >> confdefs.h <<EOF
14624 #define $ac_tr_func 1
14627 else
14628 echo "$ac_t""no" 1>&6
14630 done
14635 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14636 echo "configure:14637: checking for _float round functions" >&5
14637 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14638 echo $ac_n "(cached) $ac_c" 1>&6
14639 else
14642 ac_ext=C
14643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14644 ac_cpp='$CXXCPP $CPPFLAGS'
14645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14647 cross_compiling=$ac_cv_prog_cxx_cross
14649 cat > conftest.$ac_ext <<EOF
14650 #line 14651 "configure"
14651 #include "confdefs.h"
14652 #include <math.h>
14653 int main() {
14654 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14655 ; return 0; }
14657 if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14658 rm -rf conftest*
14659 glibcpp_cv_func__float_round_use=yes
14660 else
14661 echo "configure: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 rm -rf conftest*
14664 glibcpp_cv_func__float_round_use=no
14666 rm -f conftest*
14667 ac_ext=c
14668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14669 ac_cpp='$CPP $CPPFLAGS'
14670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14672 cross_compiling=$ac_cv_prog_cc_cross
14676 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14677 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14678 for ac_func in _ceilf _floorf
14680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14681 echo "configure:14682: checking for $ac_func" >&5
14682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
14684 else
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 /* System header to define __stub macros and hopefully few prototypes,
14689 which can conflict with char $ac_func(); below. */
14690 #include <assert.h>
14691 /* Override any gcc2 internal prototype to avoid an error. */
14692 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14694 char $ac_func();
14696 int main() {
14698 /* The GNU C library defines this for functions which it implements
14699 to always fail with ENOSYS. Some functions are actually named
14700 something starting with __ and the normal name is an alias. */
14701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14702 choke me
14703 #else
14704 $ac_func();
14705 #endif
14707 ; return 0; }
14709 if { (eval echo configure:14710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14710 rm -rf conftest*
14711 eval "ac_cv_func_$ac_func=yes"
14712 else
14713 echo "configure: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 rm -rf conftest*
14716 eval "ac_cv_func_$ac_func=no"
14718 rm -f conftest*
14721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14722 echo "$ac_t""yes" 1>&6
14723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14724 cat >> confdefs.h <<EOF
14725 #define $ac_tr_func 1
14728 else
14729 echo "$ac_t""no" 1>&6
14731 done
14737 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14738 echo "configure:14739: checking for _long double trig functions" >&5
14739 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14744 ac_ext=C
14745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cxx_cross
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <math.h>
14755 int main() {
14756 `for x in _acosl _asinl _atanl \
14757 _cosl _sinl _tanl \
14758 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14759 ; return 0; }
14761 if { (eval echo configure:14762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14762 rm -rf conftest*
14763 glibcpp_cv_func__long_double_trig_use=yes
14764 else
14765 echo "configure: failed program was:" >&5
14766 cat conftest.$ac_ext >&5
14767 rm -rf conftest*
14768 glibcpp_cv_func__long_double_trig_use=no
14770 rm -f conftest*
14771 ac_ext=c
14772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14773 ac_cpp='$CPP $CPPFLAGS'
14774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14776 cross_compiling=$ac_cv_prog_cc_cross
14780 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14781 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14782 for ac_func in _acosl _asinl _atanl \
14783 _cosl _sinl _tanl \
14784 _coshl _sinhl _tanhl
14786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14787 echo "configure:14788: checking for $ac_func" >&5
14788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794 /* System header to define __stub macros and hopefully few prototypes,
14795 which can conflict with char $ac_func(); below. */
14796 #include <assert.h>
14797 /* Override any gcc2 internal prototype to avoid an error. */
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14800 char $ac_func();
14802 int main() {
14804 /* The GNU C library defines this for functions which it implements
14805 to always fail with ENOSYS. Some functions are actually named
14806 something starting with __ and the normal name is an alias. */
14807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 choke me
14809 #else
14810 $ac_func();
14811 #endif
14813 ; return 0; }
14815 if { (eval echo configure:14816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816 rm -rf conftest*
14817 eval "ac_cv_func_$ac_func=yes"
14818 else
14819 echo "configure: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14821 rm -rf conftest*
14822 eval "ac_cv_func_$ac_func=no"
14824 rm -f conftest*
14827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14828 echo "$ac_t""yes" 1>&6
14829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14830 cat >> confdefs.h <<EOF
14831 #define $ac_tr_func 1
14834 else
14835 echo "$ac_t""no" 1>&6
14837 done
14842 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14843 echo "configure:14844: checking for _long double round functions" >&5
14844 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14846 else
14849 ac_ext=C
14850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14851 ac_cpp='$CXXCPP $CPPFLAGS'
14852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14854 cross_compiling=$ac_cv_prog_cxx_cross
14856 cat > conftest.$ac_ext <<EOF
14857 #line 14858 "configure"
14858 #include "confdefs.h"
14859 #include <math.h>
14860 int main() {
14861 `for x in _ceill _floorl; do echo "$x (0);"; done`
14862 ; return 0; }
14864 if { (eval echo configure:14865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14865 rm -rf conftest*
14866 glibcpp_cv_func__long_double_round_use=yes
14867 else
14868 echo "configure: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 rm -rf conftest*
14871 glibcpp_cv_func__long_double_round_use=no
14873 rm -f conftest*
14874 ac_ext=c
14875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14879 cross_compiling=$ac_cv_prog_cc_cross
14883 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14884 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14885 for ac_func in _ceill _floorl
14887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14888 echo "configure:14889: checking for $ac_func" >&5
14889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
14891 else
14892 cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* System header to define __stub macros and hopefully few prototypes,
14896 which can conflict with char $ac_func(); below. */
14897 #include <assert.h>
14898 /* Override any gcc2 internal prototype to avoid an error. */
14899 /* We use char because int might match the return type of a gcc2
14900 builtin and then its argument prototype would still apply. */
14901 char $ac_func();
14903 int main() {
14905 /* The GNU C library defines this for functions which it implements
14906 to always fail with ENOSYS. Some functions are actually named
14907 something starting with __ and the normal name is an alias. */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 choke me
14910 #else
14911 $ac_func();
14912 #endif
14914 ; return 0; }
14916 if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917 rm -rf conftest*
14918 eval "ac_cv_func_$ac_func=yes"
14919 else
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 rm -rf conftest*
14923 eval "ac_cv_func_$ac_func=no"
14925 rm -f conftest*
14928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14929 echo "$ac_t""yes" 1>&6
14930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14931 cat >> confdefs.h <<EOF
14932 #define $ac_tr_func 1
14935 else
14936 echo "$ac_t""no" 1>&6
14938 done
14943 LIBS="$ac_save_LIBS"
14944 CXXFLAGS="$ac_save_CXXFLAGS"
14947 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14948 echo "configure:14949: checking for main in -lm" >&5
14949 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14953 ac_save_LIBS="$LIBS"
14954 LIBS="-lm $LIBS"
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14959 int main() {
14960 main()
14961 ; return 0; }
14963 if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14964 rm -rf conftest*
14965 eval "ac_cv_lib_$ac_lib_var=yes"
14966 else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 eval "ac_cv_lib_$ac_lib_var=no"
14972 rm -f conftest*
14973 LIBS="$ac_save_LIBS"
14976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14977 echo "$ac_t""yes" 1>&6
14978 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14980 cat >> confdefs.h <<EOF
14981 #define $ac_tr_lib 1
14984 LIBS="-lm $LIBS"
14986 else
14987 echo "$ac_t""no" 1>&6
14990 for ac_func in nan hypot hypotf atan2f expf copysignf
14992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14993 echo "configure:14994: checking for $ac_func" >&5
14994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14997 cat > conftest.$ac_ext <<EOF
14998 #line 14999 "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func(); below. */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15006 char $ac_func();
15008 int main() {
15010 /* The GNU C library defines this for functions which it implements
15011 to always fail with ENOSYS. Some functions are actually named
15012 something starting with __ and the normal name is an alias. */
15013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15014 choke me
15015 #else
15016 $ac_func();
15017 #endif
15019 ; return 0; }
15021 if { (eval echo configure:15022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15022 rm -rf conftest*
15023 eval "ac_cv_func_$ac_func=yes"
15024 else
15025 echo "configure: failed program was:" >&5
15026 cat conftest.$ac_ext >&5
15027 rm -rf conftest*
15028 eval "ac_cv_func_$ac_func=no"
15030 rm -f conftest*
15033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15034 echo "$ac_t""yes" 1>&6
15035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15036 cat >> confdefs.h <<EOF
15037 #define $ac_tr_func 1
15040 else
15041 echo "$ac_t""no" 1>&6
15042 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15044 done
15048 USE_COMPLEX_LONG_DOUBLE=no
15049 if test x$ac_cv_func_atan2l = x"yes" &&
15050 test x$ac_cv_func_copysignl = x"yes"; then
15051 USE_COMPLEX_LONG_DOUBLE=yes
15052 for ac_func in hypotl signbitl
15054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15055 echo "configure:15056: checking for $ac_func" >&5
15056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
15058 else
15059 cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063 which can conflict with char $ac_func(); below. */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error. */
15066 /* We use char because int might match the return type of a gcc2
15067 builtin and then its argument prototype would still apply. */
15068 char $ac_func();
15070 int main() {
15072 /* The GNU C library defines this for functions which it implements
15073 to always fail with ENOSYS. Some functions are actually named
15074 something starting with __ and the normal name is an alias. */
15075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15076 choke me
15077 #else
15078 $ac_func();
15079 #endif
15081 ; return 0; }
15083 if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084 rm -rf conftest*
15085 eval "ac_cv_func_$ac_func=yes"
15086 else
15087 echo "configure: failed program was:" >&5
15088 cat conftest.$ac_ext >&5
15089 rm -rf conftest*
15090 eval "ac_cv_func_$ac_func=no"
15092 rm -f conftest*
15095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15096 echo "$ac_t""yes" 1>&6
15097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15098 cat >> confdefs.h <<EOF
15099 #define $ac_tr_func 1
15102 else
15103 echo "$ac_t""no" 1>&6
15104 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15106 done
15115 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15116 echo "configure:15117: checking for mbstate_t" >&5
15117 cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15120 #include <wchar.h>
15121 int main() {
15122 mbstate_t teststate;
15123 ; return 0; }
15125 if { (eval echo configure:15126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126 rm -rf conftest*
15127 have_mbstate_t=yes
15128 else
15129 echo "configure: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 rm -rf conftest*
15132 have_mbstate_t=no
15134 rm -f conftest*
15135 echo "$ac_t""$have_mbstate_t" 1>&6
15136 if test x"$have_mbstate_t" = xyes; then
15137 cat >> confdefs.h <<\EOF
15138 #define HAVE_MBSTATE_T 1
15143 for ac_hdr in wchar.h
15145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15147 echo "configure:15148: checking for $ac_hdr" >&5
15148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
15150 else
15151 cat > conftest.$ac_ext <<EOF
15152 #line 15153 "configure"
15153 #include "confdefs.h"
15154 #include <$ac_hdr>
15156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15157 { (eval echo configure:15158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15159 if test -z "$ac_err"; then
15160 rm -rf conftest*
15161 eval "ac_cv_header_$ac_safe=yes"
15162 else
15163 echo "$ac_err" >&5
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15166 rm -rf conftest*
15167 eval "ac_cv_header_$ac_safe=no"
15169 rm -f conftest*
15171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15172 echo "$ac_t""yes" 1>&6
15173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15174 cat >> confdefs.h <<EOF
15175 #define $ac_tr_hdr 1
15177 ac_has_wchar_h=yes
15178 else
15179 echo "$ac_t""no" 1>&6
15180 ac_has_wchar_h=no
15182 done
15184 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15185 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15186 echo "configure:15187: checking for wctype.h" >&5
15187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
15189 else
15190 cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15193 #include <wctype.h>
15195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15196 { (eval echo configure:15197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15198 if test -z "$ac_err"; then
15199 rm -rf conftest*
15200 eval "ac_cv_header_$ac_safe=yes"
15201 else
15202 echo "$ac_err" >&5
15203 echo "configure: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 rm -rf conftest*
15206 eval "ac_cv_header_$ac_safe=no"
15208 rm -f conftest*
15210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15211 echo "$ac_t""yes" 1>&6
15212 ac_has_wctype_h=yes
15213 else
15214 echo "$ac_t""no" 1>&6
15215 ac_has_wctype_h=no
15219 if test x"$ac_has_wchar_h" = xyes &&
15220 test x"$ac_has_wctype_h" = xyes &&
15221 test x"$enable_c_mbchar" != xno; then
15223 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15224 echo "configure:15225: checking for WCHAR_MIN and WCHAR_MAX" >&5
15225 cat > conftest.$ac_ext <<EOF
15226 #line 15227 "configure"
15227 #include "confdefs.h"
15228 #include <wchar.h>
15229 int main() {
15230 int i = WCHAR_MIN; int j = WCHAR_MAX;
15231 ; return 0; }
15233 if { (eval echo configure:15234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15234 rm -rf conftest*
15235 has_wchar_minmax=yes
15236 else
15237 echo "configure: failed program was:" >&5
15238 cat conftest.$ac_ext >&5
15239 rm -rf conftest*
15240 has_wchar_minmax=no
15242 rm -f conftest*
15243 echo "$ac_t""$has_wchar_minmax" 1>&6
15245 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15246 echo "configure:15247: checking for WEOF" >&5
15247 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15251 #include <wchar.h>
15252 #include <stddef.h>
15253 int main() {
15254 wint_t i = WEOF;
15255 ; return 0; }
15257 if { (eval echo configure:15258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15258 rm -rf conftest*
15259 has_weof=yes
15260 else
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15263 rm -rf conftest*
15264 has_weof=no
15266 rm -f conftest*
15267 echo "$ac_t""$has_weof" 1>&6
15269 ac_wfuncs=yes
15270 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15273 echo "configure:15274: checking for $ac_func" >&5
15274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15275 echo $ac_n "(cached) $ac_c" 1>&6
15276 else
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char $ac_func(); below. */
15282 #include <assert.h>
15283 /* Override any gcc2 internal prototype to avoid an error. */
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char $ac_func();
15288 int main() {
15290 /* The GNU C library defines this for functions which it implements
15291 to always fail with ENOSYS. Some functions are actually named
15292 something starting with __ and the normal name is an alias. */
15293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15294 choke me
15295 #else
15296 $ac_func();
15297 #endif
15299 ; return 0; }
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302 rm -rf conftest*
15303 eval "ac_cv_func_$ac_func=yes"
15304 else
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15307 rm -rf conftest*
15308 eval "ac_cv_func_$ac_func=no"
15310 rm -f conftest*
15313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15314 echo "$ac_t""yes" 1>&6
15315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15316 cat >> confdefs.h <<EOF
15317 #define $ac_tr_func 1
15320 else
15321 echo "$ac_t""no" 1>&6
15323 ac_wfuncs=no
15325 done
15328 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15329 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15330 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15331 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15332 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15333 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15336 echo "configure:15337: checking for $ac_func" >&5
15337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15338 echo $ac_n "(cached) $ac_c" 1>&6
15339 else
15340 cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char $ac_func(); below. */
15345 #include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error. */
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15349 char $ac_func();
15351 int main() {
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 choke me
15358 #else
15359 $ac_func();
15360 #endif
15362 ; return 0; }
15364 if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15365 rm -rf conftest*
15366 eval "ac_cv_func_$ac_func=yes"
15367 else
15368 echo "configure: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15370 rm -rf conftest*
15371 eval "ac_cv_func_$ac_func=no"
15373 rm -f conftest*
15376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15377 echo "$ac_t""yes" 1>&6
15378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15379 cat >> confdefs.h <<EOF
15380 #define $ac_tr_func 1
15383 else
15384 echo "$ac_t""no" 1>&6
15386 ac_wfuncs=no
15388 done
15391 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15392 echo "configure:15393: checking for ISO C99 wchar_t support" >&5
15393 if test x"$has_weof" = xyes &&
15394 test x"$has_wchar_minmax" = xyes &&
15395 test x"$ac_wfuncs" = xyes; then
15396 ac_isoC99_wchar_t=yes
15397 else
15398 ac_isoC99_wchar_t=no
15400 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15402 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15403 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15404 echo "configure:15405: checking for iconv.h" >&5
15405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407 else
15408 cat > conftest.$ac_ext <<EOF
15409 #line 15410 "configure"
15410 #include "confdefs.h"
15411 #include <iconv.h>
15413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15414 { (eval echo configure:15415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15416 if test -z "$ac_err"; then
15417 rm -rf conftest*
15418 eval "ac_cv_header_$ac_safe=yes"
15419 else
15420 echo "$ac_err" >&5
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 rm -rf conftest*
15424 eval "ac_cv_header_$ac_safe=no"
15426 rm -f conftest*
15428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15429 echo "$ac_t""yes" 1>&6
15430 ac_has_iconv_h=yes
15431 else
15432 echo "$ac_t""no" 1>&6
15433 ac_has_iconv_h=no
15436 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15437 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15438 echo "configure:15439: checking for langinfo.h" >&5
15439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15440 echo $ac_n "(cached) $ac_c" 1>&6
15441 else
15442 cat > conftest.$ac_ext <<EOF
15443 #line 15444 "configure"
15444 #include "confdefs.h"
15445 #include <langinfo.h>
15447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15448 { (eval echo configure:15449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15450 if test -z "$ac_err"; then
15451 rm -rf conftest*
15452 eval "ac_cv_header_$ac_safe=yes"
15453 else
15454 echo "$ac_err" >&5
15455 echo "configure: failed program was:" >&5
15456 cat conftest.$ac_ext >&5
15457 rm -rf conftest*
15458 eval "ac_cv_header_$ac_safe=no"
15460 rm -f conftest*
15462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15463 echo "$ac_t""yes" 1>&6
15464 ac_has_langinfo_h=yes
15465 else
15466 echo "$ac_t""no" 1>&6
15467 ac_has_langinfo_h=no
15471 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15472 echo "configure:15473: checking for iconv in -liconv" >&5
15473 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15475 echo $ac_n "(cached) $ac_c" 1>&6
15476 else
15477 ac_save_LIBS="$LIBS"
15478 LIBS="-liconv $LIBS"
15479 cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 /* Override any gcc2 internal prototype to avoid an error. */
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15485 char iconv();
15487 int main() {
15488 iconv()
15489 ; return 0; }
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15492 rm -rf conftest*
15493 eval "ac_cv_lib_$ac_lib_var=yes"
15494 else
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 rm -rf conftest*
15498 eval "ac_cv_lib_$ac_lib_var=no"
15500 rm -f conftest*
15501 LIBS="$ac_save_LIBS"
15504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15505 echo "$ac_t""yes" 1>&6
15506 libiconv="-liconv"
15507 else
15508 echo "$ac_t""no" 1>&6
15511 ac_save_LIBS="$LIBS"
15512 LIBS="$LIBS $libiconv"
15514 for ac_func in iconv_open iconv_close iconv nl_langinfo
15516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15517 echo "configure:15518: checking for $ac_func" >&5
15518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15519 echo $ac_n "(cached) $ac_c" 1>&6
15520 else
15521 cat > conftest.$ac_ext <<EOF
15522 #line 15523 "configure"
15523 #include "confdefs.h"
15524 /* System header to define __stub macros and hopefully few prototypes,
15525 which can conflict with char $ac_func(); below. */
15526 #include <assert.h>
15527 /* Override any gcc2 internal prototype to avoid an error. */
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15530 char $ac_func();
15532 int main() {
15534 /* The GNU C library defines this for functions which it implements
15535 to always fail with ENOSYS. Some functions are actually named
15536 something starting with __ and the normal name is an alias. */
15537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15538 choke me
15539 #else
15540 $ac_func();
15541 #endif
15543 ; return 0; }
15545 if { (eval echo configure:15546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15546 rm -rf conftest*
15547 eval "ac_cv_func_$ac_func=yes"
15548 else
15549 echo "configure: failed program was:" >&5
15550 cat conftest.$ac_ext >&5
15551 rm -rf conftest*
15552 eval "ac_cv_func_$ac_func=no"
15554 rm -f conftest*
15557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15558 echo "$ac_t""yes" 1>&6
15559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15560 cat >> confdefs.h <<EOF
15561 #define $ac_tr_func 1
15564 ac_XPG2funcs=yes
15565 else
15566 echo "$ac_t""no" 1>&6
15567 ac_XPG2funcs=no
15569 done
15572 LIBS="$ac_save_LIBS"
15574 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15575 echo "configure:15576: checking for XPG2 wchar_t support" >&5
15576 if test x"$ac_has_iconv_h" = xyes &&
15577 test x"$ac_has_langinfo_h" = xyes &&
15578 test x"$ac_XPG2funcs" = xyes; then
15579 ac_XPG2_wchar_t=yes
15580 else
15581 ac_XPG2_wchar_t=no
15583 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15585 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15586 echo "configure:15587: checking for enabled wchar_t specializations" >&5
15587 if test x"$ac_isoC99_wchar_t" = xyes &&
15588 test x"$ac_XPG2_wchar_t" = xyes; then
15589 cat >> confdefs.h <<\EOF
15590 #define _GLIBCPP_USE_WCHAR_T 1
15593 echo "$ac_t"""yes"" 1>&6
15594 else
15595 echo "$ac_t"""no"" 1>&6
15597 else
15598 echo "configure: warning: wchar_t support disabled." 1>&2
15602 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15603 ac_save_CXXFLAGS="$CXXFLAGS"
15604 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15607 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15608 echo "configure:15609: checking for strtold declaration" >&5
15609 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15610 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15611 echo $ac_n "(cached) $ac_c" 1>&6
15612 else
15615 ac_ext=C
15616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15617 ac_cpp='$CXXCPP $CPPFLAGS'
15618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15620 cross_compiling=$ac_cv_prog_cxx_cross
15622 cat > conftest.$ac_ext <<EOF
15623 #line 15624 "configure"
15624 #include "confdefs.h"
15625 #include <stdlib.h>
15626 int main() {
15627 strtold(0, 0);
15628 ; return 0; }
15630 if { (eval echo configure:15631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15631 rm -rf conftest*
15632 glibcpp_cv_func_strtold_use=yes
15633 else
15634 echo "configure: failed program was:" >&5
15635 cat conftest.$ac_ext >&5
15636 rm -rf conftest*
15637 glibcpp_cv_func_strtold_use=no
15639 rm -f conftest*
15640 ac_ext=c
15641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15642 ac_cpp='$CPP $CPPFLAGS'
15643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15645 cross_compiling=$ac_cv_prog_cc_cross
15651 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15652 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15653 for ac_func in strtold
15655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15656 echo "configure:15657: checking for $ac_func" >&5
15657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15658 echo $ac_n "(cached) $ac_c" 1>&6
15659 else
15660 cat > conftest.$ac_ext <<EOF
15661 #line 15662 "configure"
15662 #include "confdefs.h"
15663 /* System header to define __stub macros and hopefully few prototypes,
15664 which can conflict with char $ac_func(); below. */
15665 #include <assert.h>
15666 /* Override any gcc2 internal prototype to avoid an error. */
15667 /* We use char because int might match the return type of a gcc2
15668 builtin and then its argument prototype would still apply. */
15669 char $ac_func();
15671 int main() {
15673 /* The GNU C library defines this for functions which it implements
15674 to always fail with ENOSYS. Some functions are actually named
15675 something starting with __ and the normal name is an alias. */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 $ac_func();
15680 #endif
15682 ; return 0; }
15684 if { (eval echo configure:15685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15685 rm -rf conftest*
15686 eval "ac_cv_func_$ac_func=yes"
15687 else
15688 echo "configure: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15690 rm -rf conftest*
15691 eval "ac_cv_func_$ac_func=no"
15693 rm -f conftest*
15696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15697 echo "$ac_t""yes" 1>&6
15698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15699 cat >> confdefs.h <<EOF
15700 #define $ac_tr_func 1
15703 else
15704 echo "$ac_t""no" 1>&6
15706 done
15710 for ac_func in drand48
15712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15713 echo "configure:15714: checking for $ac_func" >&5
15714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15715 echo $ac_n "(cached) $ac_c" 1>&6
15716 else
15717 cat > conftest.$ac_ext <<EOF
15718 #line 15719 "configure"
15719 #include "confdefs.h"
15720 /* System header to define __stub macros and hopefully few prototypes,
15721 which can conflict with char $ac_func(); below. */
15722 #include <assert.h>
15723 /* Override any gcc2 internal prototype to avoid an error. */
15724 /* We use char because int might match the return type of a gcc2
15725 builtin and then its argument prototype would still apply. */
15726 char $ac_func();
15728 int main() {
15730 /* The GNU C library defines this for functions which it implements
15731 to always fail with ENOSYS. Some functions are actually named
15732 something starting with __ and the normal name is an alias. */
15733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15734 choke me
15735 #else
15736 $ac_func();
15737 #endif
15739 ; return 0; }
15741 if { (eval echo configure:15742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15742 rm -rf conftest*
15743 eval "ac_cv_func_$ac_func=yes"
15744 else
15745 echo "configure: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15747 rm -rf conftest*
15748 eval "ac_cv_func_$ac_func=no"
15750 rm -f conftest*
15753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15754 echo "$ac_t""yes" 1>&6
15755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15756 cat >> confdefs.h <<EOF
15757 #define $ac_tr_func 1
15760 else
15761 echo "$ac_t""no" 1>&6
15763 done
15766 CXXFLAGS="$ac_save_CXXFLAGS"
15769 cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15773 #include <setjmp.h>
15775 int main() {
15776 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15777 ; return 0; }
15779 if { (eval echo configure:15780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15780 rm -rf conftest*
15781 cat >> confdefs.h <<\EOF
15782 #define HAVE_SIGSETJMP 1
15785 else
15786 echo "configure: failed program was:" >&5
15787 cat conftest.$ac_ext >&5
15789 rm -f conftest*
15791 for ac_hdr in unistd.h
15793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15795 echo "configure:15796: checking for $ac_hdr" >&5
15796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15797 echo $ac_n "(cached) $ac_c" 1>&6
15798 else
15799 cat > conftest.$ac_ext <<EOF
15800 #line 15801 "configure"
15801 #include "confdefs.h"
15802 #include <$ac_hdr>
15804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15805 { (eval echo configure:15806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15807 if test -z "$ac_err"; then
15808 rm -rf conftest*
15809 eval "ac_cv_header_$ac_safe=yes"
15810 else
15811 echo "$ac_err" >&5
15812 echo "configure: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15814 rm -rf conftest*
15815 eval "ac_cv_header_$ac_safe=no"
15817 rm -f conftest*
15819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
15821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15822 cat >> confdefs.h <<EOF
15823 #define $ac_tr_hdr 1
15826 else
15827 echo "$ac_t""no" 1>&6
15829 done
15831 for ac_func in getpagesize
15833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15834 echo "configure:15835: checking for $ac_func" >&5
15835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15837 else
15838 cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func(); below. */
15843 #include <assert.h>
15844 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847 char $ac_func();
15849 int main() {
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 choke me
15856 #else
15857 $ac_func();
15858 #endif
15860 ; return 0; }
15862 if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=yes"
15865 else
15866 echo "configure: failed program was:" >&5
15867 cat conftest.$ac_ext >&5
15868 rm -rf conftest*
15869 eval "ac_cv_func_$ac_func=no"
15871 rm -f conftest*
15874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15875 echo "$ac_t""yes" 1>&6
15876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15877 cat >> confdefs.h <<EOF
15878 #define $ac_tr_func 1
15881 else
15882 echo "$ac_t""no" 1>&6
15884 done
15886 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15887 echo "configure:15888: checking for working mmap" >&5
15888 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15889 echo $ac_n "(cached) $ac_c" 1>&6
15890 else
15891 if test "$cross_compiling" = yes; then
15892 ac_cv_func_mmap_fixed_mapped=no
15893 else
15894 cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15898 /* Thanks to Mike Haertel and Jim Avera for this test.
15899 Here is a matrix of mmap possibilities:
15900 mmap private not fixed
15901 mmap private fixed at somewhere currently unmapped
15902 mmap private fixed at somewhere already mapped
15903 mmap shared not fixed
15904 mmap shared fixed at somewhere currently unmapped
15905 mmap shared fixed at somewhere already mapped
15906 For private mappings, we should verify that changes cannot be read()
15907 back from the file, nor mmap's back from the file at a different
15908 address. (There have been systems where private was not correctly
15909 implemented like the infamous i386 svr4.0, and systems where the
15910 VM page cache was not coherent with the filesystem buffer cache
15911 like early versions of FreeBSD and possibly contemporary NetBSD.)
15912 For shared mappings, we should conversely verify that changes get
15913 propogated back to all the places they're supposed to be.
15915 Grep wants private fixed already mapped.
15916 The main things grep needs to know about mmap are:
15917 * does it exist and is it safe to write into the mmap'd area
15918 * how to use it (BSD variants) */
15919 #include <sys/types.h>
15920 #include <fcntl.h>
15921 #include <sys/mman.h>
15923 /* This mess was copied from the GNU getpagesize.h. */
15924 #ifndef HAVE_GETPAGESIZE
15925 # ifdef HAVE_UNISTD_H
15926 # include <unistd.h>
15927 # endif
15929 /* Assume that all systems that can run configure have sys/param.h. */
15930 # ifndef HAVE_SYS_PARAM_H
15931 # define HAVE_SYS_PARAM_H 1
15932 # endif
15934 # ifdef _SC_PAGESIZE
15935 # define getpagesize() sysconf(_SC_PAGESIZE)
15936 # else /* no _SC_PAGESIZE */
15937 # ifdef HAVE_SYS_PARAM_H
15938 # include <sys/param.h>
15939 # ifdef EXEC_PAGESIZE
15940 # define getpagesize() EXEC_PAGESIZE
15941 # else /* no EXEC_PAGESIZE */
15942 # ifdef NBPG
15943 # define getpagesize() NBPG * CLSIZE
15944 # ifndef CLSIZE
15945 # define CLSIZE 1
15946 # endif /* no CLSIZE */
15947 # else /* no NBPG */
15948 # ifdef NBPC
15949 # define getpagesize() NBPC
15950 # else /* no NBPC */
15951 # ifdef PAGESIZE
15952 # define getpagesize() PAGESIZE
15953 # endif /* PAGESIZE */
15954 # endif /* no NBPC */
15955 # endif /* no NBPG */
15956 # endif /* no EXEC_PAGESIZE */
15957 # else /* no HAVE_SYS_PARAM_H */
15958 # define getpagesize() 8192 /* punt totally */
15959 # endif /* no HAVE_SYS_PARAM_H */
15960 # endif /* no _SC_PAGESIZE */
15962 #endif /* no HAVE_GETPAGESIZE */
15964 #ifdef __cplusplus
15965 extern "C" { void *malloc(unsigned); }
15966 #else
15967 char *malloc();
15968 #endif
15971 main()
15973 char *data, *data2, *data3;
15974 int i, pagesize;
15975 int fd;
15977 pagesize = getpagesize();
15980 * First, make a file with some known garbage in it.
15982 data = malloc(pagesize);
15983 if (!data)
15984 exit(1);
15985 for (i = 0; i < pagesize; ++i)
15986 *(data + i) = rand();
15987 umask(0);
15988 fd = creat("conftestmmap", 0600);
15989 if (fd < 0)
15990 exit(1);
15991 if (write(fd, data, pagesize) != pagesize)
15992 exit(1);
15993 close(fd);
15996 * Next, try to mmap the file at a fixed address which
15997 * already has something else allocated at it. If we can,
15998 * also make sure that we see the same garbage.
16000 fd = open("conftestmmap", O_RDWR);
16001 if (fd < 0)
16002 exit(1);
16003 data2 = malloc(2 * pagesize);
16004 if (!data2)
16005 exit(1);
16006 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16007 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16008 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16009 exit(1);
16010 for (i = 0; i < pagesize; ++i)
16011 if (*(data + i) != *(data2 + i))
16012 exit(1);
16015 * Finally, make sure that changes to the mapped area
16016 * do not percolate back to the file as seen by read().
16017 * (This is a bug on some variants of i386 svr4.0.)
16019 for (i = 0; i < pagesize; ++i)
16020 *(data2 + i) = *(data2 + i) + 1;
16021 data3 = malloc(pagesize);
16022 if (!data3)
16023 exit(1);
16024 if (read(fd, data3, pagesize) != pagesize)
16025 exit(1);
16026 for (i = 0; i < pagesize; ++i)
16027 if (*(data + i) != *(data3 + i))
16028 exit(1);
16029 close(fd);
16030 unlink("conftestmmap");
16031 exit(0);
16035 if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16036 then
16037 ac_cv_func_mmap_fixed_mapped=yes
16038 else
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16041 rm -fr conftest*
16042 ac_cv_func_mmap_fixed_mapped=no
16044 rm -fr conftest*
16049 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16051 cat >> confdefs.h <<\EOF
16052 #define HAVE_MMAP 1
16059 # Now that ctype is determined for all possible targets, we can do this...
16067 if test "$NULL_TARGET" = yes; then
16068 NULL_TARGET_TRUE=
16069 NULL_TARGET_FALSE='#'
16070 else
16071 NULL_TARGET_TRUE='#'
16072 NULL_TARGET_FALSE=
16076 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16077 NATIVE_TRUE=
16078 NATIVE_FALSE='#'
16079 else
16080 NATIVE_TRUE='#'
16081 NATIVE_FALSE=
16085 if test "$CANADIAN" = yes; then
16086 CANADIAN_TRUE=
16087 CANADIAN_FALSE='#'
16088 else
16089 CANADIAN_TRUE='#'
16090 CANADIAN_FALSE=
16093 cat > confcache <<\EOF
16094 # This file is a shell script that caches the results of configure
16095 # tests run on this system so they can be shared between configure
16096 # scripts and configure runs. It is not useful on other systems.
16097 # If it contains results you don't want to keep, you may remove or edit it.
16099 # By default, configure uses ./config.cache as the cache file,
16100 # creating it if it does not exist already. You can give configure
16101 # the --cache-file=FILE option to use a different cache file; that is
16102 # what configure does when it calls configure scripts in
16103 # subdirectories, so they share the cache.
16104 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16105 # config.status only pays attention to the cache file if you give it the
16106 # --recheck option to rerun configure.
16109 # The following way of writing the cache mishandles newlines in values,
16110 # but we know of no workaround that is simple, portable, and efficient.
16111 # So, don't put newlines in cache variables' values.
16112 # Ultrix sh set writes to stderr and can't be redirected directly,
16113 # and sets the high bit in the cache file unless we assign to the vars.
16114 (set) 2>&1 |
16115 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16116 *ac_space=\ *)
16117 # `set' does not quote correctly, so add quotes (double-quote substitution
16118 # turns \\\\ into \\, and sed turns \\ into \).
16119 sed -n \
16120 -e "s/'/'\\\\''/g" \
16121 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16124 # `set' quotes correctly as required by POSIX, so do not add quotes.
16125 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16127 esac >> confcache
16128 if cmp -s $cache_file confcache; then
16130 else
16131 if test -w $cache_file; then
16132 echo "updating cache $cache_file"
16133 cat confcache > $cache_file
16134 else
16135 echo "not updating unwritable cache $cache_file"
16138 rm -f confcache
16141 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16142 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16143 echo "configure:16144: checking for locale.h" >&5
16144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16145 echo $ac_n "(cached) $ac_c" 1>&6
16146 else
16147 cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 #include <locale.h>
16152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16153 { (eval echo configure:16154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16155 if test -z "$ac_err"; then
16156 rm -rf conftest*
16157 eval "ac_cv_header_$ac_safe=yes"
16158 else
16159 echo "$ac_err" >&5
16160 echo "configure: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16162 rm -rf conftest*
16163 eval "ac_cv_header_$ac_safe=no"
16165 rm -f conftest*
16167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16168 echo "$ac_t""yes" 1>&6
16170 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16171 echo "configure:16172: checking for LC_MESSAGES" >&5
16172 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174 else
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 #include <locale.h>
16179 int main() {
16180 return LC_MESSAGES
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 ac_cv_val_LC_MESSAGES=yes
16186 else
16187 echo "configure: failed program was:" >&5
16188 cat conftest.$ac_ext >&5
16189 rm -rf conftest*
16190 ac_cv_val_LC_MESSAGES=no
16192 rm -f conftest*
16195 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16196 if test $ac_cv_val_LC_MESSAGES = yes; then
16197 cat >> confdefs.h <<\EOF
16198 #define HAVE_LC_MESSAGES 1
16203 else
16204 echo "$ac_t""no" 1>&6
16209 if test "${multilib}" = "yes"; then
16210 multilib_arg="--enable-multilib"
16211 else
16212 multilib_arg=
16216 # Generate the various Makefiles, include files, and scripts.
16218 # Needed so that g++ can find the correct include subdir automatically.
16219 INTERFACE=v3
16221 # Export all the install information
16224 glibcpp_toolexecdir=no
16225 glibcpp_toolexeclibdir=no
16227 # Export build and source directories.
16228 # These need to be absolute paths, yet at the same time need to
16229 # canonicalize only relative paths, because then amd will not unmount
16230 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16231 glibcpp_builddir=`pwd`
16232 case $srcdir in
16233 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16234 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16235 esac
16236 glibcpp_prefixdir=${prefix}
16238 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16239 echo "configure:16240: checking for interface version number" >&5
16240 libstdcxx_interface=$INTERFACE
16241 echo "$ac_t""$libstdcxx_interface" 1>&6
16243 # Process the option --with-gxx-include-dir=<path to include-files directory>
16244 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16245 echo "configure:16246: checking for --with-gxx-include-dir" >&5
16246 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16247 if test "${with_gxx_include_dir+set}" = set; then
16248 withval="$with_gxx_include_dir"
16249 case "${withval}" in
16250 yes)
16251 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16252 gxx_include_dir=no
16255 gxx_include_dir=no
16258 gxx_include_dir=${withval}
16260 esac
16261 else
16262 gxx_include_dir=no
16265 echo "$ac_t""$gxx_include_dir" 1>&6
16267 # Process the option "--enable-version-specific-runtime-libs"
16268 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16269 echo "configure:16270: checking for --enable-version-specific-runtime-libs" >&5
16270 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16271 if test "${enable_version_specific_runtime_libs+set}" = set; then
16272 enableval="$enable_version_specific_runtime_libs"
16273 version_specific_libs=yes
16274 # Need the gcc compiler version to know where to install libraries
16275 # and header files if --enable-version-specific-runtime-libs option
16276 # is selected.
16277 gcc_version_trigger=${srcdir}/../gcc/version.c
16278 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16279 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16280 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16281 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16282 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16284 else
16285 version_specific_libs=no
16288 echo "$ac_t""$version_specific_libs" 1>&6
16290 # Default case for install directory for include files.
16291 if test x"$version_specific_libs" = x"no" \
16292 && test x"$gxx_include_dir" = x"no"; then
16293 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16296 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16297 # Install a library built with a cross compiler in tooldir, not libdir.
16298 if test x"$glibcpp_toolexecdir" = x"no"; then
16299 if test -n "$with_cross_host" &&
16300 test x"$with_cross_host" != x"no"; then
16301 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16302 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16303 else
16304 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16305 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16309 echo $ac_n "checking for install location""... $ac_c" 1>&6
16310 echo "configure:16311: checking for install location" >&5
16311 echo "$ac_t""$gxx_include_dir" 1>&6
16321 # Export all the include and flag information to makefiles.
16323 # Root level of the include sources.
16324 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16326 # Can either use include/c or include/c_std to grab "C" headers. This
16327 # variable is set to the include directory currently in use.
16328 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16330 # Passed down for canadian crosses.
16331 if test x"$CANADIAN" = xyes; then
16332 TOPLEVEL_INCLUDES='-I$(includedir)'
16335 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16337 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16339 #if GLIBCPP_NEED_LIBIO
16340 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16341 #else
16342 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16343 #endif
16345 #if GLIBCPP_USE_CSHADOW
16346 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16347 # -I$(top_blddir)/cshadow'
16348 #else
16349 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16350 #endif
16352 # Now, export this to all the little Makefiles....
16361 # Optimization flags that are probably a good idea for thrill-seekers. Just
16362 # uncomment the lines below and make, everything else is ready to go...
16363 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16364 OPTIMIZE_CXXFLAGS=
16367 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16371 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16372 grep "enable shared" > /dev/null; then
16373 LIBSUPCXX_PICFLAGS=-prefer-pic
16374 else
16375 LIBSUPCXX_PICFLAGS=
16379 # This should be done by mkincludedir, but hack around it now.
16380 blddir=`pwd`
16381 echo "checking for $blddir/include"
16383 if test ! -d "$blddir/include"; then
16384 mkdir "$blddir/include"
16387 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16388 # and libsupc++/Makefile.am so that multilib installs will end up
16389 # installed in the correct place. To work around this not being passed
16390 # down from config-ml.in -> top_srcdir/Makefile.am ->
16391 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16392 trap '' 1 2 15
16393 cat > confcache <<\EOF
16394 # This file is a shell script that caches the results of configure
16395 # tests run on this system so they can be shared between configure
16396 # scripts and configure runs. It is not useful on other systems.
16397 # If it contains results you don't want to keep, you may remove or edit it.
16399 # By default, configure uses ./config.cache as the cache file,
16400 # creating it if it does not exist already. You can give configure
16401 # the --cache-file=FILE option to use a different cache file; that is
16402 # what configure does when it calls configure scripts in
16403 # subdirectories, so they share the cache.
16404 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16405 # config.status only pays attention to the cache file if you give it the
16406 # --recheck option to rerun configure.
16409 # The following way of writing the cache mishandles newlines in values,
16410 # but we know of no workaround that is simple, portable, and efficient.
16411 # So, don't put newlines in cache variables' values.
16412 # Ultrix sh set writes to stderr and can't be redirected directly,
16413 # and sets the high bit in the cache file unless we assign to the vars.
16414 (set) 2>&1 |
16415 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16416 *ac_space=\ *)
16417 # `set' does not quote correctly, so add quotes (double-quote substitution
16418 # turns \\\\ into \\, and sed turns \\ into \).
16419 sed -n \
16420 -e "s/'/'\\\\''/g" \
16421 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16424 # `set' quotes correctly as required by POSIX, so do not add quotes.
16425 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16427 esac >> confcache
16428 if cmp -s $cache_file confcache; then
16430 else
16431 if test -w $cache_file; then
16432 echo "updating cache $cache_file"
16433 cat confcache > $cache_file
16434 else
16435 echo "not updating unwritable cache $cache_file"
16438 rm -f confcache
16440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16442 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16443 # Let make expand exec_prefix.
16444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16446 # Any assignment to VPATH causes Sun make to only execute
16447 # the first set of double-colon rules, so remove it if not needed.
16448 # If there is a colon in the path, we need to keep it.
16449 if test "x$srcdir" = x.; then
16450 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16453 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16455 DEFS=-DHAVE_CONFIG_H
16457 # Without the "./", some shells look in PATH for config.status.
16458 : ${CONFIG_STATUS=./config.status}
16460 echo creating $CONFIG_STATUS
16461 rm -f $CONFIG_STATUS
16462 cat > $CONFIG_STATUS <<EOF
16463 #! /bin/sh
16464 # Generated automatically by configure.
16465 # Run this file to recreate the current configuration.
16466 # This directory was configured as follows,
16467 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469 # $0 $ac_configure_args
16471 # Compiler output produced by configure, useful for debugging
16472 # configure, is in ./config.log if it exists.
16474 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16475 for ac_option
16477 case "\$ac_option" in
16478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16479 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16480 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16481 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16482 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16483 exit 0 ;;
16484 -help | --help | --hel | --he | --h)
16485 echo "\$ac_cs_usage"; exit 0 ;;
16486 *) echo "\$ac_cs_usage"; exit 1 ;;
16487 esac
16488 done
16490 ac_given_srcdir=$srcdir
16491 ac_given_INSTALL="$INSTALL"
16493 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16495 cat >> $CONFIG_STATUS <<EOF
16497 # Protect against being on the right side of a sed subst in config.status.
16498 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16499 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16500 $ac_vpsub
16501 $extrasub
16502 s%@SHELL@%$SHELL%g
16503 s%@CFLAGS@%$CFLAGS%g
16504 s%@CPPFLAGS@%$CPPFLAGS%g
16505 s%@CXXFLAGS@%$CXXFLAGS%g
16506 s%@FFLAGS@%$FFLAGS%g
16507 s%@DEFS@%$DEFS%g
16508 s%@LDFLAGS@%$LDFLAGS%g
16509 s%@LIBS@%$LIBS%g
16510 s%@exec_prefix@%$exec_prefix%g
16511 s%@prefix@%$prefix%g
16512 s%@program_transform_name@%$program_transform_name%g
16513 s%@bindir@%$bindir%g
16514 s%@sbindir@%$sbindir%g
16515 s%@libexecdir@%$libexecdir%g
16516 s%@datadir@%$datadir%g
16517 s%@sysconfdir@%$sysconfdir%g
16518 s%@sharedstatedir@%$sharedstatedir%g
16519 s%@localstatedir@%$localstatedir%g
16520 s%@libdir@%$libdir%g
16521 s%@includedir@%$includedir%g
16522 s%@oldincludedir@%$oldincludedir%g
16523 s%@infodir@%$infodir%g
16524 s%@mandir@%$mandir%g
16525 s%@toplevel_srcdir@%$toplevel_srcdir%g
16526 s%@host@%$host%g
16527 s%@host_alias@%$host_alias%g
16528 s%@host_cpu@%$host_cpu%g
16529 s%@host_vendor@%$host_vendor%g
16530 s%@host_os@%$host_os%g
16531 s%@target@%$target%g
16532 s%@target_alias@%$target_alias%g
16533 s%@target_cpu@%$target_cpu%g
16534 s%@target_vendor@%$target_vendor%g
16535 s%@target_os@%$target_os%g
16536 s%@build@%$build%g
16537 s%@build_alias@%$build_alias%g
16538 s%@build_cpu@%$build_cpu%g
16539 s%@build_vendor@%$build_vendor%g
16540 s%@build_os@%$build_os%g
16541 s%@glibcpp_basedir@%$glibcpp_basedir%g
16542 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16543 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16544 s%@INSTALL_DATA@%$INSTALL_DATA%g
16545 s%@PACKAGE@%$PACKAGE%g
16546 s%@VERSION@%$VERSION%g
16547 s%@ACLOCAL@%$ACLOCAL%g
16548 s%@AUTOCONF@%$AUTOCONF%g
16549 s%@AUTOMAKE@%$AUTOMAKE%g
16550 s%@AUTOHEADER@%$AUTOHEADER%g
16551 s%@MAKEINFO@%$MAKEINFO%g
16552 s%@SET_MAKE@%$SET_MAKE%g
16553 s%@CC@%$CC%g
16554 s%@glibcpp_CXX@%$glibcpp_CXX%g
16555 s%@AS@%$AS%g
16556 s%@AR@%$AR%g
16557 s%@RANLIB@%$RANLIB%g
16558 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16559 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16560 s%@MAINT@%$MAINT%g
16561 s%@EXEEXT@%$EXEEXT%g
16562 s%@LN_S@%$LN_S%g
16563 s%@OBJEXT@%$OBJEXT%g
16564 s%@STRIP@%$STRIP%g
16565 s%@LIBTOOL@%$LIBTOOL%g
16566 s%@CXXCPP@%$CXXCPP%g
16567 s%@enable_shared@%$enable_shared%g
16568 s%@enable_static@%$enable_static%g
16569 s%@ifGNUmake@%$ifGNUmake%g
16570 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16571 s%@CPP@%$CPP%g
16572 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16573 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16574 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16575 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16576 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16577 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16578 s%@libio_la@%$libio_la%g
16579 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16580 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16581 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16582 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16583 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16584 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16585 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16586 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16587 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16588 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16589 s%@WERROR@%$WERROR%g
16590 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16591 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16592 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16593 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16594 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16595 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16596 s%@glibcpp_builddir@%$glibcpp_builddir%g
16597 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16598 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16599 s%@gxx_include_dir@%$gxx_include_dir%g
16600 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16601 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16602 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16603 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16604 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16605 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16606 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16607 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16608 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16609 s%@WARN_FLAGS@%$WARN_FLAGS%g
16610 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16612 CEOF
16615 cat >> $CONFIG_STATUS <<\EOF
16617 # Split the substitutions into bite-sized pieces for seds with
16618 # small command number limits, like on Digital OSF/1 and HP-UX.
16619 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16620 ac_file=1 # Number of current file.
16621 ac_beg=1 # First line for current file.
16622 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16623 ac_more_lines=:
16624 ac_sed_cmds=""
16625 while $ac_more_lines; do
16626 if test $ac_beg -gt 1; then
16627 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16628 else
16629 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16631 if test ! -s conftest.s$ac_file; then
16632 ac_more_lines=false
16633 rm -f conftest.s$ac_file
16634 else
16635 if test -z "$ac_sed_cmds"; then
16636 ac_sed_cmds="sed -f conftest.s$ac_file"
16637 else
16638 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16640 ac_file=`expr $ac_file + 1`
16641 ac_beg=$ac_end
16642 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16644 done
16645 if test -z "$ac_sed_cmds"; then
16646 ac_sed_cmds=cat
16650 cat >> $CONFIG_STATUS <<EOF
16652 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16654 cat >> $CONFIG_STATUS <<\EOF
16655 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16657 case "$ac_file" in
16658 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16659 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16660 *) ac_file_in="${ac_file}.in" ;;
16661 esac
16663 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16665 # Remove last slash and all that follows it. Not all systems have dirname.
16666 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16668 # The file is in a subdirectory.
16669 test ! -d "$ac_dir" && mkdir "$ac_dir"
16670 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16671 # A "../" for each directory in $ac_dir_suffix.
16672 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16673 else
16674 ac_dir_suffix= ac_dots=
16677 case "$ac_given_srcdir" in
16678 .) srcdir=.
16679 if test -z "$ac_dots"; then top_srcdir=.
16680 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16681 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16682 *) # Relative path.
16683 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16684 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16685 esac
16687 case "$ac_given_INSTALL" in
16688 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16689 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16690 esac
16692 echo creating "$ac_file"
16693 rm -f "$ac_file"
16694 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16695 case "$ac_file" in
16696 *Makefile*) ac_comsub="1i\\
16697 # $configure_input" ;;
16698 *) ac_comsub= ;;
16699 esac
16701 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16702 sed -e "$ac_comsub
16703 s%@configure_input@%$configure_input%g
16704 s%@srcdir@%$srcdir%g
16705 s%@top_srcdir@%$top_srcdir%g
16706 s%@INSTALL@%$INSTALL%g
16707 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16708 fi; done
16709 rm -f conftest.s*
16711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16714 # ac_d sets the value in "#define NAME VALUE" lines.
16715 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16716 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16717 ac_dC='\3'
16718 ac_dD='%g'
16719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16720 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16721 ac_uB='\([ ]\)%\1#\2define\3'
16722 ac_uC=' '
16723 ac_uD='\4%g'
16724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16725 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16726 ac_eB='$%\1#\2define\3'
16727 ac_eC=' '
16728 ac_eD='%g'
16730 if test "${CONFIG_HEADERS+set}" != set; then
16732 cat >> $CONFIG_STATUS <<EOF
16733 CONFIG_HEADERS="config.h"
16735 cat >> $CONFIG_STATUS <<\EOF
16737 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16739 case "$ac_file" in
16740 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16741 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16742 *) ac_file_in="${ac_file}.in" ;;
16743 esac
16745 echo creating $ac_file
16747 rm -f conftest.frag conftest.in conftest.out
16748 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16749 cat $ac_file_inputs > conftest.in
16753 # Transform confdefs.h into a sed script conftest.vals that substitutes
16754 # the proper values into config.h.in to produce config.h. And first:
16755 # Protect against being on the right side of a sed subst in config.status.
16756 # Protect against being in an unquoted here document in config.status.
16757 rm -f conftest.vals
16758 cat > conftest.hdr <<\EOF
16759 s/[\\&%]/\\&/g
16760 s%[\\$`]%\\&%g
16761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16762 s%ac_d%ac_u%gp
16763 s%ac_u%ac_e%gp
16765 sed -n -f conftest.hdr confdefs.h > conftest.vals
16766 rm -f conftest.hdr
16768 # This sed command replaces #undef with comments. This is necessary, for
16769 # example, in the case of _POSIX_SOURCE, which is predefined and required
16770 # on some systems where configure will not decide to define it.
16771 cat >> conftest.vals <<\EOF
16772 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16775 # Break up conftest.vals because some shells have a limit on
16776 # the size of here documents, and old seds have small limits too.
16778 rm -f conftest.tail
16779 while :
16781 ac_lines=`grep -c . conftest.vals`
16782 # grep -c gives empty output for an empty file on some AIX systems.
16783 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16784 # Write a limited-size here document to conftest.frag.
16785 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16786 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16787 echo 'CEOF
16788 sed -f conftest.frag conftest.in > conftest.out
16789 rm -f conftest.in
16790 mv conftest.out conftest.in
16791 ' >> $CONFIG_STATUS
16792 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16793 rm -f conftest.vals
16794 mv conftest.tail conftest.vals
16795 done
16796 rm -f conftest.vals
16798 cat >> $CONFIG_STATUS <<\EOF
16799 rm -f conftest.frag conftest.h
16800 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16801 cat conftest.in >> conftest.h
16802 rm -f conftest.in
16803 if cmp -s $ac_file conftest.h 2>/dev/null; then
16804 echo "$ac_file is unchanged"
16805 rm -f conftest.h
16806 else
16807 # Remove last slash and all that follows it. Not all systems have dirname.
16808 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16810 # The file is in a subdirectory.
16811 test ! -d "$ac_dir" && mkdir "$ac_dir"
16813 rm -f $ac_file
16814 mv conftest.h $ac_file
16816 fi; done
16820 cat >> $CONFIG_STATUS <<EOF
16821 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC $toprel/gcc/gthr.h $toprel/gcc/gthr-single.h $toprel/gcc/gthr-$target_thread_file.h $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16822 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/gthr.h-in include/bits/gthr-single.h-in include/bits/gthr-default.h-in \
16823 include/bits/ctype_base.h \
16824 include/bits/ctype_inline.h \
16825 include/bits/ctype_noninline.h include/bits/atomicity.h"
16828 cat >> $CONFIG_STATUS <<\EOF
16829 srcdir=$ac_given_srcdir
16830 while test -n "$ac_sources"; do
16831 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16832 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16834 echo "linking $srcdir/$ac_source to $ac_dest"
16836 if test ! -r $srcdir/$ac_source; then
16837 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16839 rm -f $ac_dest
16841 # Make relative symlinks.
16842 # Remove last slash and all that follows it. Not all systems have dirname.
16843 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16844 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16845 # The dest file is in a subdirectory.
16846 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16847 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16848 # A "../" for each directory in $ac_dest_dir_suffix.
16849 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16850 else
16851 ac_dest_dir_suffix= ac_dots=
16854 case "$srcdir" in
16855 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16856 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16857 esac
16859 # Make a symlink if possible; otherwise try a hard link.
16860 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16861 ln $srcdir/$ac_source $ac_dest; then :
16862 else
16863 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16865 done
16867 cat >> $CONFIG_STATUS <<EOF
16870 srcdir=${srcdir}
16871 host=${host}
16872 target=${target}
16873 with_multisubdir=${with_multisubdir}
16874 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16875 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16876 glibcpp_basedir=${glibcpp_basedir}
16877 CC="${CC}"
16878 CXX="${CXX}"
16881 cat >> $CONFIG_STATUS <<\EOF
16882 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16883 d=include/bits
16884 rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
16885 sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h
16886 sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
16887 | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
16888 sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
16889 | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' \
16890 | sed 's/\([A-Z_]*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h
16891 if test -n "$CONFIG_FILES"; then
16892 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16893 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16894 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16896 chmod +x mkcheck
16897 chmod +x testsuite_flags
16899 exit 0
16901 chmod +x $CONFIG_STATUS
16902 rm -fr confdefs* $ac_clean_files
16903 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16907 # Generate bits/c++config.h
16908 # NB: This must be the first generated file as others include it. . .
16909 $srcdir/mkc++config $blddir $srcdir
16911 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16912 if test ! -f stamp-limits; then
16913 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16914 if test ! -f include/bits/std_limits.h; then
16915 echo "mknumeric_limits failed to execute properly: exiting"
16916 exit 1
16917 else
16918 touch stamp-limits
16923 # Sanity checking & User-visible messages.
16924 # Checks down here, otherwise they get scrolled off before
16925 # the user will notice.
16927 # Trying to get more people to read documentation. Possibly remove
16928 # check and warn all the time. There is no "informational" AC_MSG_
16929 # macro, so these are going to be printed even when --quiet/--silent
16930 # is given.
16931 if test ! -f stamp-sanity-warned; then
16932 touch stamp-sanity-warned
16933 echo ""
16934 echo "Please make certain that you read the installation information here:"
16935 echo " faster => ${srcdir}/docs/install.html"
16936 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16937 echo ""
16938 echo "and the configuration information here:"
16939 echo " faster => ${srcdir}/docs/configopts.html"
16940 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16941 echo ""
16942 echo "before proceeding with ${_cv_gnu_make_command}."
16943 echo ""