acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments.
[official-gcc.git] / libstdc++-v3 / configure
blobc3444b95ab2ccd57d93be471b08ca9a04386cb99
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 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --with-newlib Configuring with newlib"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
40 ac_help="$ac_help
41 --enable-libunwind-exceptions force use of libunwind for exceptions"
42 ac_help="$ac_help
43 --enable-libstdcxx-pch build pre-compiled libstdc++ includes [default=yes]"
44 ac_help="$ac_help
45 --enable-cstdio enable stdio for target io package.
46 --enable-cstdio=LIB use LIB target-specific io package. [default=stdio]
48 ac_help="$ac_help
49 --enable-clocale enable model for target locale package.
50 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
52 ac_help="$ac_help
53 --enable-nls use Native Language Support (default)"
54 ac_help="$ac_help
55 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
58 ac_help="$ac_help
59 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
60 ac_help="$ac_help
61 --enable-long-long turns on 'long long' [default=yes]"
62 ac_help="$ac_help
63 --enable-concept-checks use Boost-derived template checks [default=no]"
64 ac_help="$ac_help
65 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
66 [default=]"
67 ac_help="$ac_help
68 --enable-libstdcxx-debug build extra debug library [default=no]"
69 ac_help="$ac_help
70 --enable-libstdcxx-debug-flags=FLAGS pass compiler FLAGS when building
71 debug library;
72 [default=none]"
73 ac_help="$ac_help
74 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
75 ac_help="$ac_help
76 --with-gxx-include-dir the installation directory for include files"
77 ac_help="$ac_help
78 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
83 build=NONE
84 cache_file=./config.cache
85 exec_prefix=NONE
86 host=NONE
87 no_create=
88 nonopt=NONE
89 no_recursion=
90 prefix=NONE
91 program_prefix=NONE
92 program_suffix=NONE
93 program_transform_name=s,x,x,
94 silent=
95 site=
96 srcdir=
97 target=NONE
98 verbose=
99 x_includes=NONE
100 x_libraries=NONE
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
115 subdirs=
116 MFLAGS= MAKEFLAGS=
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
119 ac_max_here_lines=12
121 ac_prev=
122 for ac_option
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
137 # Accept the important Cygnus configure options, so we can diagnose typos.
139 case "$ac_option" in
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
252 exit 0 ;;
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
402 exit 0 ;;
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 nonopt="$ac_option"
457 esac
458 done
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
479 exec 5>./config.log
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
502 # NLS nuisances.
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 echo > confdefs.h
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=src/ios.cc
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 else
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
590 # This works around the fact that libtool configuration may change LD
591 # for this particular configuration, but some shells, instead of
592 # keeping the changes in LD private, export them just because LD is
593 # exported. Only used at the end of this file.
594 ORIGINAL_LD_FOR_MULTILIBS=$LD
596 PACKAGE=libstdc++
598 # For libtool versioning info, format is CURRENT:REVISION:AGE
599 libtool_VERSION=6:0:0
603 # Check whether --enable-multilib or --disable-multilib was given.
604 if test "${enable_multilib+set}" = set; then
605 enableval="$enable_multilib"
606 case "${enableval}" in
607 yes) multilib=yes ;;
608 no) multilib=no ;;
609 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
610 esac
611 else
612 multilib=yes
615 # When building with srcdir == objdir, links to the source files will
616 # be created in directories within the target_subdir. We have to
617 # adjust toplevel_srcdir accordingly, so that configure finds
618 # install-sh and other auxiliary files that live in the top-level
619 # source directory.
620 if test "${srcdir}" = "."; then
621 if test -z "${with_target_subdir}"; then
622 toprel=".."
623 else
624 if test "${with_target_subdir}" != "."; then
625 toprel="${with_multisrctop}../.."
626 else
627 toprel="${with_multisrctop}.."
630 else
631 toprel=".."
633 ac_aux_dir=
634 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
635 if test -f $ac_dir/install-sh; then
636 ac_aux_dir=$ac_dir
637 ac_install_sh="$ac_aux_dir/install-sh -c"
638 break
639 elif test -f $ac_dir/install.sh; then
640 ac_aux_dir=$ac_dir
641 ac_install_sh="$ac_aux_dir/install.sh -c"
642 break
644 done
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
652 toplevel_srcdir=\${top_srcdir}/$toprel
656 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
658 # You will slowly go insane if you do not grok the following fact: when
659 # building v3 as part of the compiler, the top-level /target/ becomes the
660 # library's /host/. `configure' then causes --target to default to --host,
661 # exactly like any other package using autoconf. Therefore, 'target' and
662 # 'host' will always be the same. This makes sense both for native and
663 # cross compilers, just think about it for a little while. :-)
665 # Also, if v3 is being configured as part of a cross compiler, the top-level
666 # configure script will pass the "real" host as $with_cross_host.
668 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
670 # Do some error checking and defaulting for the host and target type.
671 # The inputs are:
672 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
674 # The rules are:
675 # 1. You are not allowed to specify --host, --target, and nonopt at the
676 # same time.
677 # 2. Host defaults to nonopt.
678 # 3. If nonopt is not specified, then host defaults to the current host,
679 # as determined by config.guess.
680 # 4. Target and build default to nonopt.
681 # 5. If nonopt is not specified, then target and build default to host.
683 # The aliases save the names the user supplied, while $host etc.
684 # will get canonicalized.
685 case $host---$target---$nonopt in
686 NONE---*---* | *---NONE---* | *---*---NONE) ;;
687 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
688 esac
691 # Make sure we can run config.sub.
692 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
693 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
696 echo $ac_n "checking host system type""... $ac_c" 1>&6
697 echo "configure:698: checking host system type" >&5
699 host_alias=$host
700 case "$host_alias" in
701 NONE)
702 case $nonopt in
703 NONE)
704 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
705 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
706 fi ;;
707 *) host_alias=$nonopt ;;
708 esac ;;
709 esac
711 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
712 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$host" 1>&6
717 echo $ac_n "checking target system type""... $ac_c" 1>&6
718 echo "configure:719: checking target system type" >&5
720 target_alias=$target
721 case "$target_alias" in
722 NONE)
723 case $nonopt in
724 NONE) target_alias=$host_alias ;;
725 *) target_alias=$nonopt ;;
726 esac ;;
727 esac
729 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
730 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$target" 1>&6
735 echo $ac_n "checking build system type""... $ac_c" 1>&6
736 echo "configure:737: checking build system type" >&5
738 build_alias=$build
739 case "$build_alias" in
740 NONE)
741 case $nonopt in
742 NONE) build_alias=$host_alias ;;
743 *) build_alias=$nonopt ;;
744 esac ;;
745 esac
747 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
748 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$build" 1>&6
753 test "$host_alias" != "$target_alias" &&
754 test "$program_prefix$program_suffix$program_transform_name" = \
755 NONENONEs,x,x, &&
756 program_prefix=${target_alias}-
759 # Runs configure.host, finds CC, CXX and assorted other critical bits.
760 # Must run this before the GLIBCXX_ENABLE_* macros below.
761 if test $host != $build; then
762 ac_tool_prefix=${host_alias}-
763 else
764 ac_tool_prefix=
767 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
768 echo "configure:769: checking for Cygwin environment" >&5
769 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
771 else
772 cat > conftest.$ac_ext <<EOF
773 #line 774 "configure"
774 #include "confdefs.h"
776 int main() {
778 #ifndef __CYGWIN__
779 #define __CYGWIN__ __CYGWIN32__
780 #endif
781 return __CYGWIN__;
782 ; return 0; }
784 if { (eval echo configure:785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
785 rm -rf conftest*
786 ac_cv_cygwin=yes
787 else
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 rm -rf conftest*
791 ac_cv_cygwin=no
793 rm -f conftest*
794 rm -f conftest*
797 echo "$ac_t""$ac_cv_cygwin" 1>&6
798 CYGWIN=
799 test "$ac_cv_cygwin" = yes && CYGWIN=yes
800 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
801 echo "configure:802: checking for mingw32 environment" >&5
802 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
809 int main() {
810 return __MINGW32__;
811 ; return 0; }
813 if { (eval echo configure:814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
814 rm -rf conftest*
815 ac_cv_mingw32=yes
816 else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 rm -rf conftest*
820 ac_cv_mingw32=no
822 rm -f conftest*
823 rm -f conftest*
826 echo "$ac_t""$ac_cv_mingw32" 1>&6
827 MINGW32=
828 test "$ac_cv_mingw32" = yes && MINGW32=yes
830 # Export build and source directories.
831 # These need to be absolute paths, yet at the same time need to
832 # canonicalize only relative paths, because then amd will not unmount
833 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
834 glibcxx_builddir=`${PWDCMD-pwd}`
835 case $srcdir in
836 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
837 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
838 esac
844 for ac_prog in mawk gawk nawk awk
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 ac_dummy="$PATH"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_AWK="$ac_prog"
862 break
864 done
865 IFS="$ac_save_ifs"
868 AWK="$ac_cv_prog_AWK"
869 if test -n "$AWK"; then
870 echo "$ac_t""$AWK" 1>&6
871 else
872 echo "$ac_t""no" 1>&6
875 test -n "$AWK" && break
876 done
878 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
879 # be 'cp -p' if linking isn't available. Uncomment the next line to
880 # force a particular method.
881 #ac_cv_prog_LN_S='cp -p'
882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
883 echo "configure:884: checking whether ln -s works" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 rm -f conftestdata
888 if ln -s X conftestdata 2>/dev/null
889 then
890 rm -f conftestdata
891 ac_cv_prog_LN_S="ln -s"
892 else
893 ac_cv_prog_LN_S=ln
896 LN_S="$ac_cv_prog_LN_S"
897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
898 echo "$ac_t""yes" 1>&6
899 else
900 echo "$ac_t""no" 1>&6
904 # We use these options to decide which functions to include.
905 # Check whether --with-target-subdir or --without-target-subdir was given.
906 if test "${with_target_subdir+set}" = set; then
907 withval="$with_target_subdir"
911 # Check whether --with-cross-host or --without-cross-host was given.
912 if test "${with_cross_host+set}" = set; then
913 withval="$with_cross_host"
918 # Check whether --with-newlib or --without-newlib was given.
919 if test "${with_newlib+set}" = set; then
920 withval="$with_newlib"
925 glibcxx_basedir=$srcdir/$toprel/./libstdc++-v3
928 # Never versions of autoconf add an underscore to these functions.
929 # Prevent future problems ...
935 # AC_PROG_CC
936 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
937 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
938 # are probably using a cross compiler, which will not be able to fully
939 # link an executable. This is addressed in later versions of autoconf.
944 # Extract the first word of "gcc", so it can be a program name with args.
945 set dummy gcc; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
950 else
951 if test -n "$CC"; then
952 ac_cv_prog_CC="$CC" # Let the user override the test.
953 else
954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
955 ac_dummy="$PATH"
956 for ac_dir in $ac_dummy; do
957 test -z "$ac_dir" && ac_dir=.
958 if test -f $ac_dir/$ac_word; then
959 ac_cv_prog_CC="gcc"
960 break
962 done
963 IFS="$ac_save_ifs"
966 CC="$ac_cv_prog_CC"
967 if test -n "$CC"; then
968 echo "$ac_t""$CC" 1>&6
969 else
970 echo "$ac_t""no" 1>&6
973 if test -z "$CC"; then
974 # Extract the first word of "cc", so it can be a program name with args.
975 set dummy cc; ac_word=$2
976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977 echo "configure:978: checking for $ac_word" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 if test -n "$CC"; then
982 ac_cv_prog_CC="$CC" # Let the user override the test.
983 else
984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 ac_prog_rejected=no
986 ac_dummy="$PATH"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
991 ac_prog_rejected=yes
992 continue
994 ac_cv_prog_CC="cc"
995 break
997 done
998 IFS="$ac_save_ifs"
999 if test $ac_prog_rejected = yes; then
1000 # We found a bogon in the path, so make sure we never use it.
1001 set dummy $ac_cv_prog_CC
1002 shift
1003 if test $# -gt 0; then
1004 # We chose a different compiler from the bogus one.
1005 # However, it has the same basename, so the bogon will be chosen
1006 # first if we set CC to just the basename; use the full file name.
1007 shift
1008 set dummy "$ac_dir/$ac_word" "$@"
1009 shift
1010 ac_cv_prog_CC="$@"
1015 CC="$ac_cv_prog_CC"
1016 if test -n "$CC"; then
1017 echo "$ac_t""$CC" 1>&6
1018 else
1019 echo "$ac_t""no" 1>&6
1022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1025 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether we are using GNU C" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 cat > conftest.c <<EOF
1031 #ifdef __GNUC__
1032 yes;
1033 #endif
1035 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1036 ac_cv_prog_gcc=yes
1037 else
1038 ac_cv_prog_gcc=no
1042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1044 if test $ac_cv_prog_gcc = yes; then
1045 GCC=yes
1046 ac_test_CFLAGS="${CFLAGS+set}"
1047 ac_save_CFLAGS="$CFLAGS"
1048 CFLAGS=
1049 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 echo 'void f(){}' > conftest.c
1055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056 ac_cv_prog_cc_g=yes
1057 else
1058 ac_cv_prog_cc_g=no
1060 rm -f conftest*
1064 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065 if test "$ac_test_CFLAGS" = set; then
1066 CFLAGS="$ac_save_CFLAGS"
1067 elif test $ac_cv_prog_cc_g = yes; then
1068 CFLAGS="-g -O2"
1069 else
1070 CFLAGS="-O2"
1072 else
1073 GCC=
1074 test "${CFLAGS+set}" = set || CFLAGS="-g"
1078 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1079 # will try to link in libstdc++.
1083 # Use glibcxx_CXX so that we do not cause CXX to be cached with the
1084 # flags that come in CXX while configuring libstdc++. They're different
1085 # from those used for all other target libraries. If CXX is set in
1086 # the environment, respect that here.
1087 glibcxx_CXX=$CXX
1088 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_glibcxx_CXX'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 if test -n "$glibcxx_CXX"; then
1098 ac_cv_prog_glibcxx_CXX="$glibcxx_CXX" # Let the user override the test.
1099 else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_glibcxx_CXX="$ac_prog"
1106 break
1108 done
1109 IFS="$ac_save_ifs"
1112 glibcxx_CXX="$ac_cv_prog_glibcxx_CXX"
1113 if test -n "$glibcxx_CXX"; then
1114 echo "$ac_t""$glibcxx_CXX" 1>&6
1115 else
1116 echo "$ac_t""no" 1>&6
1119 test -n "$glibcxx_CXX" && break
1120 done
1121 test -n "$glibcxx_CXX" || glibcxx_CXX="gcc"
1124 CXX=$glibcxx_CXX
1125 test -z "$glibcxx_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1127 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C++" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 cat > conftest.C <<EOF
1133 #ifdef __GNUC__
1134 yes;
1135 #endif
1137 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138 ac_cv_prog_gxx=yes
1139 else
1140 ac_cv_prog_gxx=no
1144 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1146 if test $ac_cv_prog_gxx = yes; then
1147 GXX=yes
1148 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149 ac_save_CXXFLAGS="$CXXFLAGS"
1150 CXXFLAGS=
1151 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 echo 'void f(){}' > conftest.cc
1157 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158 ac_cv_prog_cxx_g=yes
1159 else
1160 ac_cv_prog_cxx_g=no
1162 rm -f conftest*
1166 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167 if test "$ac_test_CXXFLAGS" = set; then
1168 CXXFLAGS="$ac_save_CXXFLAGS"
1169 elif test $ac_cv_prog_cxx_g = yes; then
1170 CXXFLAGS="-g -O2"
1171 else
1172 CXXFLAGS="-O2"
1174 else
1175 GXX=
1176 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1180 # For directory versioning (e.g., headers) and other variables.
1181 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1182 echo "configure:1183: checking for GCC version number" >&5
1183 gcc_version=`$glibcxx_CXX -dumpversion`
1184 echo "$ac_t""$gcc_version" 1>&6
1186 # For some reason, gettext needs this.
1188 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1189 echo "configure:1190: checking for strerror in -lcposix" >&5
1190 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 ac_save_LIBS="$LIBS"
1195 LIBS="-lcposix $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* Override any gcc2 internal prototype to avoid an error. */
1200 /* We use char because int might match the return type of a gcc2
1201 builtin and then its argument prototype would still apply. */
1202 char strerror();
1204 int main() {
1205 strerror()
1206 ; return 0; }
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 rm -rf conftest*
1210 eval "ac_cv_lib_$ac_lib_var=yes"
1211 else
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 rm -rf conftest*
1215 eval "ac_cv_lib_$ac_lib_var=no"
1217 rm -f conftest*
1218 LIBS="$ac_save_LIBS"
1221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 LIBS="$LIBS -lcposix"
1224 else
1225 echo "$ac_t""no" 1>&6
1231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}as; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$AS"; then
1239 ac_cv_prog_AS="$AS" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_AS="${ac_tool_prefix}as"
1247 break
1249 done
1250 IFS="$ac_save_ifs"
1251 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1254 AS="$ac_cv_prog_AS"
1255 if test -n "$AS"; then
1256 echo "$ac_t""$AS" 1>&6
1257 else
1258 echo "$ac_t""no" 1>&6
1263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}ar; ac_word=$2
1265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_word" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1272 else
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1279 break
1281 done
1282 IFS="$ac_save_ifs"
1283 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1286 AR="$ac_cv_prog_AR"
1287 if test -n "$AR"; then
1288 echo "$ac_t""$AR" 1>&6
1289 else
1290 echo "$ac_t""no" 1>&6
1295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311 break
1313 done
1314 IFS="$ac_save_ifs"
1317 RANLIB="$ac_cv_prog_RANLIB"
1318 if test -n "$RANLIB"; then
1319 echo "$ac_t""$RANLIB" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1325 if test -z "$ac_cv_prog_RANLIB"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 else
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 ac_dummy="$PATH"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_RANLIB="ranlib"
1343 break
1345 done
1346 IFS="$ac_save_ifs"
1347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352 echo "$ac_t""$RANLIB" 1>&6
1353 else
1354 echo "$ac_t""no" 1>&6
1357 else
1358 RANLIB="ranlib-not-found-in-path-error"
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1372 # ./install, which can be erroneously created by make from ./install.sh.
1373 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1374 echo "configure:1375: checking for a BSD compatible install" >&5
1375 if test -z "$INSTALL"; then
1376 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1380 for ac_dir in $PATH; do
1381 # Account for people who put trailing slashes in PATH elements.
1382 case "$ac_dir/" in
1383 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1387 # by default.
1388 for ac_prog in ginstall scoinst install; do
1389 if test -f $ac_dir/$ac_prog; then
1390 if test $ac_prog = install &&
1391 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1392 # AIX install. It has an incompatible calling convention.
1394 else
1395 ac_cv_path_install="$ac_dir/$ac_prog -c"
1396 break 2
1399 done
1401 esac
1402 done
1403 IFS="$ac_save_IFS"
1406 if test "${ac_cv_path_install+set}" = set; then
1407 INSTALL="$ac_cv_path_install"
1408 else
1409 # As a last resort, use the slow shell script. We don't cache a
1410 # path for INSTALL within a source directory, because that will
1411 # break other packages using the cache if that directory is
1412 # removed, or if the path is relative.
1413 INSTALL="$ac_install_sh"
1416 echo "$ac_t""$INSTALL" 1>&6
1418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419 # It thinks the first close brace ends the variable substitution.
1420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1427 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1429 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1430 if test "${enable_maintainer_mode+set}" = set; then
1431 enableval="$enable_maintainer_mode"
1432 USE_MAINTAINER_MODE=$enableval
1433 else
1434 USE_MAINTAINER_MODE=no
1437 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1440 if test $USE_MAINTAINER_MODE = yes; then
1441 MAINTAINER_MODE_TRUE=
1442 MAINTAINER_MODE_FALSE='#'
1443 else
1444 MAINTAINER_MODE_TRUE='#'
1445 MAINTAINER_MODE_FALSE=
1447 MAINT=$MAINTAINER_MODE_TRUE
1451 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1452 # at least currently, we never actually build a program, so we never
1453 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1454 # fails, because we are probably configuring with a cross compiler
1455 # which can't create executables. So we include AC_EXEEXT to keep
1456 # automake happy, but we don't execute it, since we don't care about
1457 # the result.
1458 if false; then
1459 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1460 # to nothing, so nothing would remain between `then' and `fi' if it
1461 # were not for the `:' below.
1465 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1466 echo "configure:1467: checking for executable suffix" >&5
1467 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1471 ac_cv_exeext=.exe
1472 else
1473 rm -f conftest*
1474 echo 'int main () { return 0; }' > conftest.$ac_ext
1475 ac_cv_exeext=
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1477 for file in conftest.*; do
1478 case $file in
1479 *.$ac_ext | *.c | *.o | *.obj) ;;
1480 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1481 esac
1482 done
1483 else
1484 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1486 rm -f conftest*
1487 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1491 EXEEXT=""
1492 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1493 echo "$ac_t""${ac_cv_exeext}" 1>&6
1494 ac_exeext=$EXEEXT
1498 case ${glibcxx_basedir} in
1499 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcxx_basedir} ;;
1500 *) glibcxx_flagbasedir='$(top_builddir)/'${glibcxx_basedir} ;;
1501 esac
1503 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1504 need_libmath=no
1505 enable_wchar_t=no
1506 #enable_debug=no
1507 #glibcxx_pch_comp=no
1508 #enable_cheaders=c
1509 #c_compatibility=no
1510 #enable_abi_check=no
1511 #enable_symvers=no
1513 # Find platform-specific directories containing configuration info. In
1514 # addition to possibly modifying the same flags, it also sets up symlinks.
1516 . ${glibcxx_basedir}/configure.host
1517 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1518 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1522 am__api_version="1.4"
1523 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1524 echo "configure:1525: checking whether build environment is sane" >&5
1525 # Just in case
1526 sleep 1
1527 echo timestamp > conftestfile
1528 # Do `set' in a subshell so we don't clobber the current shell's
1529 # arguments. Must try -L first in case configure is actually a
1530 # symlink; some systems play weird games with the mod time of symlinks
1531 # (eg FreeBSD returns the mod time of the symlink's containing
1532 # directory).
1533 if (
1534 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1535 if test "$*" = "X"; then
1536 # -L didn't work.
1537 set X `ls -t $srcdir/configure conftestfile`
1539 if test "$*" != "X $srcdir/configure conftestfile" \
1540 && test "$*" != "X conftestfile $srcdir/configure"; then
1542 # If neither matched, then we have a broken ls. This can happen
1543 # if, for instance, CONFIG_SHELL is bash and it inherits a
1544 # broken ls alias from the environment. This has actually
1545 # happened. Such a system could not be considered "sane".
1546 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1547 alias in your environment" 1>&2; exit 1; }
1550 test "$2" = conftestfile
1552 then
1553 # Ok.
1555 else
1556 { echo "configure: error: newly created file is older than distributed files!
1557 Check your system clock" 1>&2; exit 1; }
1559 rm -f conftest*
1560 echo "$ac_t""yes" 1>&6
1561 if test "$program_transform_name" = s,x,x,; then
1562 program_transform_name=
1563 else
1564 # Double any \ or $. echo might interpret backslashes.
1565 cat <<\EOF_SED > conftestsed
1566 s,\\,\\\\,g; s,\$,$$,g
1567 EOF_SED
1568 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1569 rm -f conftestsed
1571 test "$program_prefix" != NONE &&
1572 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1573 # Use a double $ so make ignores it.
1574 test "$program_suffix" != NONE &&
1575 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1577 # sed with no file args requires a program.
1578 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1580 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether ${MAKE-make} sets \${MAKE}" >&5
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 cat > conftestmake <<\EOF
1587 all:
1588 @echo 'ac_maketemp="${MAKE}"'
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1594 else
1595 eval ac_cv_prog_make_${ac_make}_set=no
1597 rm -f conftestmake
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 SET_MAKE=
1602 else
1603 echo "$ac_t""no" 1>&6
1604 SET_MAKE="MAKE=${MAKE-make}"
1608 PACKAGE=$PACKAGE
1610 VERSION=$gcc_version
1612 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1613 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1615 cat >> confdefs.h <<EOF
1616 #define PACKAGE "$PACKAGE"
1619 cat >> confdefs.h <<EOF
1620 #define VERSION "$VERSION"
1625 missing_dir=`cd $ac_aux_dir && pwd`
1626 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working aclocal-${am__api_version}" >&5
1628 # Run test in a subshell; some versions of sh will print an error if
1629 # an executable is not found, even if stderr is redirected.
1630 # Redirect stdin to placate older versions of autoconf. Sigh.
1631 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1632 ACLOCAL=aclocal-${am__api_version}
1633 echo "$ac_t""found" 1>&6
1634 else
1635 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1636 echo "$ac_t""missing" 1>&6
1639 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1640 echo "configure:1641: checking for working autoconf" >&5
1641 # Run test in a subshell; some versions of sh will print an error if
1642 # an executable is not found, even if stderr is redirected.
1643 # Redirect stdin to placate older versions of autoconf. Sigh.
1644 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1645 AUTOCONF=autoconf
1646 echo "$ac_t""found" 1>&6
1647 else
1648 AUTOCONF="$missing_dir/missing autoconf"
1649 echo "$ac_t""missing" 1>&6
1652 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1653 echo "configure:1654: checking for working automake-${am__api_version}" >&5
1654 # Run test in a subshell; some versions of sh will print an error if
1655 # an executable is not found, even if stderr is redirected.
1656 # Redirect stdin to placate older versions of autoconf. Sigh.
1657 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1658 AUTOMAKE=automake-${am__api_version}
1659 echo "$ac_t""found" 1>&6
1660 else
1661 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1662 echo "$ac_t""missing" 1>&6
1665 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working autoheader" >&5
1667 # Run test in a subshell; some versions of sh will print an error if
1668 # an executable is not found, even if stderr is redirected.
1669 # Redirect stdin to placate older versions of autoconf. Sigh.
1670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1671 AUTOHEADER=autoheader
1672 echo "$ac_t""found" 1>&6
1673 else
1674 AUTOHEADER="$missing_dir/missing autoheader"
1675 echo "$ac_t""missing" 1>&6
1678 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1679 echo "configure:1680: checking for working makeinfo" >&5
1680 # Run test in a subshell; some versions of sh will print an error if
1681 # an executable is not found, even if stderr is redirected.
1682 # Redirect stdin to placate older versions of autoconf. Sigh.
1683 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1684 MAKEINFO=makeinfo
1685 echo "$ac_t""found" 1>&6
1686 else
1687 MAKEINFO="$missing_dir/missing makeinfo"
1688 echo "$ac_t""missing" 1>&6
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1701 case $enableval in
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1705 enable_shared=no
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1710 enable_shared=yes
1712 done
1713 IFS="$ac_save_ifs"
1715 esac
1716 else
1717 enable_shared=yes
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1724 case $enableval in
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1728 enable_static=no
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1733 enable_static=yes
1735 done
1736 IFS="$ac_save_ifs"
1738 esac
1739 else
1740 enable_static=yes
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1747 case $enableval in
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install=yes
1758 done
1759 IFS="$ac_save_ifs"
1761 esac
1762 else
1763 enable_fast_install=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1770 else
1771 with_gnu_ld=no
1774 ac_prog=ld
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1779 case $host in
1780 *-*-mingw*)
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1785 esac
1786 case $ac_prog in
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1794 done
1795 test -z "$LD" && LD="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1799 ac_prog=ld
1802 # If it is relative, then search for the first ld in PATH.
1803 with_gnu_ld=unknown
1805 esac
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1809 else
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1827 else
1828 test "$with_gnu_ld" != yes && break
1831 done
1832 IFS="$ac_save_ifs"
1833 else
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1838 LD="$lt_cv_path_LD"
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1853 else
1854 lt_cv_prog_gnu_ld=no
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 lt_cv_ld_reload_flag='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1881 lt_cv_path_NM="$NM"
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1894 break
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1897 break
1898 else
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1903 done
1904 IFS="$ac_save_ifs"
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1909 NM="$lt_cv_path_NM"
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1931 case $host_os in
1932 aix*)
1933 lt_cv_deplibs_check_method=pass_all
1936 beos*)
1937 lt_cv_deplibs_check_method=pass_all
1940 bsdi4*)
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1954 case "$host_os" in
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1958 *) # Darwin 1.3 on
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1961 esac
1964 freebsd* )
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1966 case $host_cpu in
1967 i*86 )
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1974 esac
1975 else
1976 lt_cv_deplibs_check_method=pass_all
1980 gnu*)
1981 lt_cv_deplibs_check_method=pass_all
1984 hpux10.20*|hpux11*)
1985 case $host_cpu in
1986 hppa*)
1987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1988 lt_cv_file_magic_cmd=/usr/bin/file
1989 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1991 ia64*)
1992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1993 lt_cv_file_magic_cmd=/usr/bin/file
1994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1996 esac
1999 irix5* | irix6*)
2000 case $host_os in
2001 irix5*)
2002 # this will be overridden with pass_all, but let us keep it just in case
2003 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2006 case $LD in
2007 *-32|*"-32 ") libmagic=32-bit;;
2008 *-n32|*"-n32 ") libmagic=N32;;
2009 *-64|*"-64 ") libmagic=64-bit;;
2010 *) libmagic=never-match;;
2011 esac
2012 # this will be overridden with pass_all, but let us keep it just in case
2013 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2015 esac
2016 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2017 lt_cv_deplibs_check_method=pass_all
2020 # This must be Linux ELF.
2021 linux-gnu*)
2022 case $host_cpu in
2023 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2024 lt_cv_deplibs_check_method=pass_all ;;
2026 # glibc up to 2.1.1 does not perform some relocations on ARM
2027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2028 esac
2029 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2032 netbsd*)
2033 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2034 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2035 else
2036 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2040 newsos6)
2041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2042 lt_cv_file_magic_cmd=/usr/bin/file
2043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2046 osf3* | osf4* | osf5*)
2047 # this will be overridden with pass_all, but let us keep it just in case
2048 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2049 lt_cv_file_magic_test_file=/shlib/libc.so
2050 lt_cv_deplibs_check_method=pass_all
2053 sco3.2v5*)
2054 lt_cv_deplibs_check_method=pass_all
2057 solaris*)
2058 lt_cv_deplibs_check_method=pass_all
2059 lt_cv_file_magic_test_file=/lib/libc.so
2062 sysv5uw[78]* | sysv4*uw2*)
2063 lt_cv_deplibs_check_method=pass_all
2066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2067 case $host_vendor in
2068 ncr)
2069 lt_cv_deplibs_check_method=pass_all
2071 motorola)
2072 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]'
2073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2075 esac
2077 esac
2081 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2082 file_magic_cmd=$lt_cv_file_magic_cmd
2083 deplibs_check_method=$lt_cv_deplibs_check_method
2085 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2086 echo "configure:2087: checking for object suffix" >&5
2087 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 rm -f conftest*
2091 echo 'int i = 1;' > conftest.$ac_ext
2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 for ac_file in conftest.*; do
2094 case $ac_file in
2095 *.c) ;;
2096 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2097 esac
2098 done
2099 else
2100 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2102 rm -f conftest*
2105 echo "$ac_t""$ac_cv_objext" 1>&6
2106 OBJEXT=$ac_cv_objext
2107 ac_objext=$ac_cv_objext
2109 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2111 # Only perform the check for file, if the check method requires it
2112 case $deplibs_check_method in
2113 file_magic*)
2114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2115 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2116 echo "configure:2117: checking for ${ac_tool_prefix}file" >&5
2117 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120 case $MAGIC_CMD in
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2124 ?:/*)
2125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2128 ac_save_MAGIC_CMD="$MAGIC_CMD"
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 ac_dummy="/usr/bin:$PATH"
2131 for ac_dir in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir=.
2133 if test -f $ac_dir/${ac_tool_prefix}file; then
2134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2135 if test -n "$file_magic_test_file"; then
2136 case $deplibs_check_method in
2137 "file_magic "*)
2138 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2141 egrep "$file_magic_regex" > /dev/null; then
2143 else
2144 cat <<EOF 1>&2
2146 *** Warning: the command libtool uses to detect shared libraries,
2147 *** $file_magic_cmd, produces output that libtool cannot recognize.
2148 *** The result is that libtool may fail to recognize shared libraries
2149 *** as such. This will affect the creation of libtool libraries that
2150 *** depend on shared libraries, but programs linked with such libtool
2151 *** libraries will work regardless of this problem. Nevertheless, you
2152 *** may want to report the problem to your system manager and/or to
2153 *** bug-libtool@gnu.org
2156 fi ;;
2157 esac
2159 break
2161 done
2162 IFS="$ac_save_ifs"
2163 MAGIC_CMD="$ac_save_MAGIC_CMD"
2165 esac
2168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2169 if test -n "$MAGIC_CMD"; then
2170 echo "$ac_t""$MAGIC_CMD" 1>&6
2171 else
2172 echo "$ac_t""no" 1>&6
2175 if test -z "$lt_cv_path_MAGIC_CMD"; then
2176 if test -n "$ac_tool_prefix"; then
2177 echo $ac_n "checking for file""... $ac_c" 1>&6
2178 echo "configure:2179: checking for file" >&5
2179 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2181 else
2182 case $MAGIC_CMD in
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2186 ?:/*)
2187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2190 ac_save_MAGIC_CMD="$MAGIC_CMD"
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 ac_dummy="/usr/bin:$PATH"
2193 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/file; then
2196 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2197 if test -n "$file_magic_test_file"; then
2198 case $deplibs_check_method in
2199 "file_magic "*)
2200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2203 egrep "$file_magic_regex" > /dev/null; then
2205 else
2206 cat <<EOF 1>&2
2208 *** Warning: the command libtool uses to detect shared libraries,
2209 *** $file_magic_cmd, produces output that libtool cannot recognize.
2210 *** The result is that libtool may fail to recognize shared libraries
2211 *** as such. This will affect the creation of libtool libraries that
2212 *** depend on shared libraries, but programs linked with such libtool
2213 *** libraries will work regardless of this problem. Nevertheless, you
2214 *** may want to report the problem to your system manager and/or to
2215 *** bug-libtool@gnu.org
2218 fi ;;
2219 esac
2221 break
2223 done
2224 IFS="$ac_save_ifs"
2225 MAGIC_CMD="$ac_save_MAGIC_CMD"
2227 esac
2230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2231 if test -n "$MAGIC_CMD"; then
2232 echo "$ac_t""$MAGIC_CMD" 1>&6
2233 else
2234 echo "$ac_t""no" 1>&6
2237 else
2238 MAGIC_CMD=:
2244 esac
2246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 if test -n "$RANLIB"; then
2254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2255 else
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2257 ac_dummy="$PATH"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2262 break
2264 done
2265 IFS="$ac_save_ifs"
2268 RANLIB="$ac_cv_prog_RANLIB"
2269 if test -n "$RANLIB"; then
2270 echo "$ac_t""$RANLIB" 1>&6
2271 else
2272 echo "$ac_t""no" 1>&6
2276 if test -z "$ac_cv_prog_RANLIB"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "ranlib", so it can be a program name with args.
2279 set dummy ranlib; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 if test -n "$RANLIB"; then
2286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2287 else
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2289 ac_dummy="$PATH"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_RANLIB="ranlib"
2294 break
2296 done
2297 IFS="$ac_save_ifs"
2298 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303 echo "$ac_t""$RANLIB" 1>&6
2304 else
2305 echo "$ac_t""no" 1>&6
2308 else
2309 RANLIB=":"
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 else
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 ac_dummy="$PATH"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 break
2331 done
2332 IFS="$ac_save_ifs"
2335 STRIP="$ac_cv_prog_STRIP"
2336 if test -n "$STRIP"; then
2337 echo "$ac_t""$STRIP" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 ac_dummy="$PATH"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_STRIP="strip"
2361 break
2363 done
2364 IFS="$ac_save_ifs"
2365 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370 echo "$ac_t""$STRIP" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2375 else
2376 STRIP=":"
2381 # Check for any special flags to pass to ltconfig.
2382 libtool_flags="--cache-file=$cache_file"
2383 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2384 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2385 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2386 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2387 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2388 libtool_flags="$libtool_flags --enable-dlopen"
2390 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2391 if test "${enable_libtool_lock+set}" = set; then
2392 enableval="$enable_libtool_lock"
2396 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2397 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2399 # Check whether --with-pic or --without-pic was given.
2400 if test "${with_pic+set}" = set; then
2401 withval="$with_pic"
2402 pic_mode="$withval"
2403 else
2404 pic_mode=default
2407 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2408 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2410 # Some flags need to be propagated to the compiler or linker for good
2411 # libtool support.
2412 case $host in
2413 *-*-irix6*)
2414 # Find out which ABI we are using.
2415 echo '#line 2416 "configure"' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 if test "$lt_cv_prog_gnu_ld" = yes; then
2418 case `/usr/bin/file conftest.$ac_objext` in
2419 *32-bit*)
2420 LD="${LD-ld} -melf32bsmip"
2422 *N32*)
2423 LD="${LD-ld} -melf32bmipn32"
2425 *64-bit*)
2426 LD="${LD-ld} -melf64bmip"
2428 esac
2429 else
2430 case `/usr/bin/file conftest.$ac_objext` in
2431 *32-bit*)
2432 LD="${LD-ld} -32"
2434 *N32*)
2435 LD="${LD-ld} -n32"
2437 *64-bit*)
2438 LD="${LD-ld} -64"
2440 esac
2443 rm -rf conftest*
2446 ia64-*-hpux*)
2447 # Find out which ABI we are using.
2448 echo 'int i;' > conftest.$ac_ext
2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 case "`/usr/bin/file conftest.o`" in
2451 *ELF-32*)
2452 HPUX_IA64_MODE="32"
2454 *ELF-64*)
2455 HPUX_IA64_MODE="64"
2457 esac
2459 rm -rf conftest*
2462 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2463 # Find out which ABI we are using.
2464 echo 'int i;' > conftest.$ac_ext
2465 if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2466 case "`/usr/bin/file conftest.o`" in
2467 *32-bit*)
2468 case $host in
2469 x86_64-*linux*)
2470 LD="${LD-ld} -m elf_i386"
2472 ppc64-*linux*)
2473 LD="${LD-ld} -m elf32ppclinux"
2475 s390x-*linux*)
2476 LD="${LD-ld} -m elf_s390"
2478 sparc64-*linux*)
2479 LD="${LD-ld} -m elf32_sparc"
2481 esac
2483 *64-bit*)
2484 case $host in
2485 x86_64-*linux*)
2486 LD="${LD-ld} -m elf_x86_64"
2488 ppc*-*linux*|powerpc*-*linux*)
2489 LD="${LD-ld} -m elf64ppc"
2491 s390*-*linux*)
2492 LD="${LD-ld} -m elf64_s390"
2494 sparc*-*linux*)
2495 LD="${LD-ld} -m elf64_sparc"
2497 esac
2499 esac
2501 rm -rf conftest*
2504 *-*-sco3.2v5*)
2505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2506 SAVE_CFLAGS="$CFLAGS"
2507 CFLAGS="$CFLAGS -belf"
2508 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2509 echo "configure:2510: checking whether the C compiler needs -belf" >&5
2510 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2514 ac_ext=c
2515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2519 cross_compiling=$ac_cv_prog_cc_cross
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2525 int main() {
2527 ; return 0; }
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 rm -rf conftest*
2531 lt_cv_cc_needs_belf=yes
2532 else
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 lt_cv_cc_needs_belf=no
2538 rm -f conftest*
2539 ac_ext=c
2540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2544 cross_compiling=$ac_cv_prog_cc_cross
2548 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2549 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2551 CFLAGS="$SAVE_CFLAGS"
2556 esac
2558 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2559 echo "configure:2560: checking how to run the C++ preprocessor" >&5
2560 if test -z "$CXXCPP"; then
2561 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 ac_ext=C
2565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2566 ac_cpp='$CXXCPP $CPPFLAGS'
2567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2569 cross_compiling=$ac_cv_prog_cxx_cross
2570 CXXCPP="${CXX-g++} -E"
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <stdlib.h>
2576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2581 else
2582 echo "$ac_err" >&5
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 rm -rf conftest*
2586 CXXCPP=/lib/cpp
2588 rm -f conftest*
2589 ac_cv_prog_CXXCPP="$CXXCPP"
2590 ac_ext=c
2591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595 cross_compiling=$ac_cv_prog_cc_cross
2598 CXXCPP="$ac_cv_prog_CXXCPP"
2599 echo "$ac_t""$CXXCPP" 1>&6
2602 # Save cache, so that ltconfig can load it
2603 cat > confcache <<\EOF
2604 # This file is a shell script that caches the results of configure
2605 # tests run on this system so they can be shared between configure
2606 # scripts and configure runs. It is not useful on other systems.
2607 # If it contains results you don't want to keep, you may remove or edit it.
2609 # By default, configure uses ./config.cache as the cache file,
2610 # creating it if it does not exist already. You can give configure
2611 # the --cache-file=FILE option to use a different cache file; that is
2612 # what configure does when it calls configure scripts in
2613 # subdirectories, so they share the cache.
2614 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2615 # config.status only pays attention to the cache file if you give it the
2616 # --recheck option to rerun configure.
2619 # The following way of writing the cache mishandles newlines in values,
2620 # but we know of no workaround that is simple, portable, and efficient.
2621 # So, don't put newlines in cache variables' values.
2622 # Ultrix sh set writes to stderr and can't be redirected directly,
2623 # and sets the high bit in the cache file unless we assign to the vars.
2624 (set) 2>&1 |
2625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2626 *ac_space=\ *)
2627 # `set' does not quote correctly, so add quotes (double-quote substitution
2628 # turns \\\\ into \\, and sed turns \\ into \).
2629 sed -n \
2630 -e "s/'/'\\\\''/g" \
2631 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2634 # `set' quotes correctly as required by POSIX, so do not add quotes.
2635 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2637 esac >> confcache
2638 if cmp -s $cache_file confcache; then
2640 else
2641 if test -w $cache_file; then
2642 echo "updating cache $cache_file"
2643 cat confcache > $cache_file
2644 else
2645 echo "not updating unwritable cache $cache_file"
2648 rm -f confcache
2651 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2652 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2653 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2654 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2655 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2656 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2657 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2658 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2659 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2660 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2662 # Reload cache, that may have been modified by ltconfig
2663 if test -r "$cache_file"; then
2664 echo "loading cache $cache_file"
2665 . $cache_file
2666 else
2667 echo "creating cache $cache_file"
2668 > $cache_file
2672 # This can be used to rebuild libtool when needed
2673 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2675 # Always use our own libtool.
2676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2684 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2685 lt_save_CC="$CC"
2686 lt_save_CFLAGS="$CFLAGS"
2687 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2688 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2689 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2690 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2691 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2692 deplibs_check_method="$deplibs_check_method" \
2693 file_magic_cmd="$file_magic_cmd" \
2694 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2695 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2696 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2697 CC="$lt_save_CC"
2698 CFLAGS="$lt_save_CFLAGS"
2700 # Redirect the config.log output again, so that the ltconfig log is not
2701 # clobbered by the next message.
2702 exec 5>>./config.log
2712 # Check for support bits and g++ features that don't require linking.
2713 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2714 echo "configure:2715: checking for GNU make" >&5
2715 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718 _cv_gnu_make_command='' ;
2719 for a in "${MAKE-make}" make gmake gnumake ; do
2720 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2721 then
2722 _cv_gnu_make_command=$a ;
2723 break;
2725 done ;
2729 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2730 if test "x$_cv_gnu_make_command" != "x" ; then
2731 ifGNUmake='' ;
2732 else
2733 ifGNUmake='#' ;
2737 #GLIBCXX_CHECK_COMPILER_VERSION
2739 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2740 echo "configure:2741: checking for exception model to use" >&5
2742 ac_ext=C
2743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2747 cross_compiling=$ac_cv_prog_cxx_cross
2749 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2750 if test "${enable_sjlj_exceptions+set}" = set; then
2751 enableval="$enable_sjlj_exceptions"
2753 else
2754 cat > conftest.$ac_ext << EOF
2755 #line 2756 "configure"
2756 struct S { ~S(); };
2757 void bar();
2758 void foo()
2760 S s;
2761 bar();
2764 old_CXXFLAGS="$CXXFLAGS"
2765 CXXFLAGS=-S
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2768 enable_sjlj_exceptions=yes
2769 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2770 enable_sjlj_exceptions=no
2773 CXXFLAGS="$old_CXXFLAGS"
2774 rm -f conftest*
2777 if test x$enable_sjlj_exceptions = xyes; then
2778 cat >> confdefs.h <<\EOF
2779 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
2782 ac_exception_model_name=sjlj
2783 elif test x$enable_sjlj_exceptions = xno; then
2784 ac_exception_model_name="call frame"
2785 else
2786 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2788 ac_ext=c
2789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2793 cross_compiling=$ac_cv_prog_cc_cross
2795 echo "$ac_t""$ac_exception_model_name" 1>&6
2798 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
2799 echo "configure:2800: checking for use of libunwind" >&5
2800 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
2801 if test "${enable_libunwind_exceptions+set}" = set; then
2802 enableval="$enable_libunwind_exceptions"
2803 use_libunwind_exceptions=$enableval
2804 else
2805 use_libunwind_exceptions=no
2808 echo "$ac_t""$use_libunwind_exceptions" 1>&6
2809 if test x"$use_libunwind_exceptions" = xyes; then
2810 LIBUNWIND_FLAG="-lunwind"
2811 else
2812 LIBUNWIND_FLAG=""
2816 # Check whether --enable-libstdcxx_pch or --disable-libstdcxx_pch was given.
2817 if test "${enable_libstdcxx_pch+set}" = set; then
2818 enableval="$enable_libstdcxx_pch"
2819 case "${enableval}" in
2820 yes) enable_libstdcxx_pch=yes ;;
2821 no) enable_libstdcxx_pch=no ;;
2822 *) { echo "configure: error: Unknown argument to enable/disable PCH" 1>&2; exit 1; } ;;
2823 esac
2824 else
2825 enable_libstdcxx_pch=yes
2828 if test x$enable_libstdcxx_pch = xyes; then
2829 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2830 ac_save_CXXFLAGS="$CXXFLAGS"
2831 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2833 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2834 echo "configure:2835: checking for compiler that seems to compile .gch files" >&5
2835 if test x${pch_comp+set} != xset; then
2836 if eval "test \"`echo '$''{'pch_comp'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2841 ac_ext=C
2842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2843 ac_cpp='$CXXCPP $CPPFLAGS'
2844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2846 cross_compiling=$ac_cv_prog_cxx_cross
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <math.h>
2852 int main() {
2854 ; return 0; }
2856 if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2857 rm -rf conftest*
2858 pch_comp=yes
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 pch_comp=no
2865 rm -f conftest*
2866 ac_ext=c
2867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2871 cross_compiling=$ac_cv_prog_cc_cross
2877 echo "$ac_t""$pch_comp" 1>&6
2879 CXXFLAGS="$ac_save_CXXFLAGS"
2882 if test x"$enable_libstdcxx_pch" = xyes && test x"$pch_comp" = xno; then
2883 enable_pch=no
2886 echo $ac_n "checking for enabled PCH""... $ac_c" 1>&6
2887 echo "configure:2888: checking for enabled PCH" >&5
2888 echo "$ac_t""$enable_libstdcxx_pch" 1>&6
2892 if test "$enable_libstdcxx_pch" = yes; then
2893 GLIBCXX_BUILD_PCH_TRUE=
2894 GLIBCXX_BUILD_PCH_FALSE='#'
2895 else
2896 GLIBCXX_BUILD_PCH_TRUE='#'
2897 GLIBCXX_BUILD_PCH_FALSE=
2899 if test "$enable_libstdcxx_pch" = yes; then
2900 glibcxx_PCHFLAGS="-include bits/stdc++.h"
2901 else
2902 glibcxx_PCHFLAGS=""
2907 # Enable all the variable C++ runtime options.
2908 # NB: C_MBCHAR must come early.
2910 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2911 echo "configure:2912: checking for cstdio to use" >&5
2912 # Check whether --enable-cstdio or --disable-cstdio was given.
2913 if test "${enable_cstdio+set}" = set; then
2914 enableval="$enable_cstdio"
2915 if test x$enable_cstdio = xno; then
2916 enable_cstdio=stdio
2918 else
2919 enable_cstdio=stdio
2923 enable_cstdio_flag=$enable_cstdio
2925 case x${enable_cstdio_flag} in
2926 xstdio | x | xno | xnone | xyes)
2927 # default
2928 CSTDIO_H=config/io/c_io_stdio.h
2929 BASIC_FILE_H=config/io/basic_file_stdio.h
2930 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2931 echo "$ac_t""stdio" 1>&6
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2937 esac
2939 FPOS_H=$fpos_include_dir
2946 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2947 echo "configure:2948: checking how to run the C preprocessor" >&5
2948 # On Suns, sometimes $CPP names a directory.
2949 if test -n "$CPP" && test -d "$CPP"; then
2950 CPP=
2952 if test -z "$CPP"; then
2953 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2955 else
2956 # This must be in double quotes, not single quotes, because CPP may get
2957 # substituted into the Makefile and "${CC-cc}" will confuse make.
2958 CPP="${CC-cc} -E"
2959 # On the NeXT, cc -E runs the code through the compiler's parser,
2960 # not just through cpp.
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <assert.h>
2965 Syntax Error
2967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2972 else
2973 echo "$ac_err" >&5
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2976 rm -rf conftest*
2977 CPP="${CC-cc} -E -traditional-cpp"
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 #include <assert.h>
2982 Syntax Error
2984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2985 { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2987 if test -z "$ac_err"; then
2989 else
2990 echo "$ac_err" >&5
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 rm -rf conftest*
2994 CPP="${CC-cc} -nologo -E"
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <assert.h>
2999 Syntax Error
3001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3002 { (eval echo configure:3003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3004 if test -z "$ac_err"; then
3006 else
3007 echo "$ac_err" >&5
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 CPP=/lib/cpp
3013 rm -f conftest*
3015 rm -f conftest*
3017 rm -f conftest*
3018 ac_cv_prog_CPP="$CPP"
3020 CPP="$ac_cv_prog_CPP"
3021 else
3022 ac_cv_prog_CPP="$CPP"
3024 echo "$ac_t""$CPP" 1>&6
3027 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3028 echo "configure:3029: checking for clocale to use" >&5
3029 # Check whether --enable-clocale or --disable-clocale was given.
3030 if test "${enable_clocale+set}" = set; then
3031 enableval="$enable_clocale"
3032 if test x$enable_clocale = xno; then
3033 enable_clocale=no
3035 else
3036 enable_clocale=no
3040 enable_clocale_flag=$enable_clocale
3042 if test x$enable_clocale_flag = xno; then
3043 case x${target_os} in
3044 xlinux* | xgnu*)
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3049 #include <features.h>
3050 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3051 _GLIBCXX_ok
3052 #endif
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "_GLIBCXX_ok" >/dev/null 2>&1; then
3057 rm -rf conftest*
3058 enable_clocale_flag=gnu
3059 else
3060 rm -rf conftest*
3061 enable_clocale_flag=generic
3063 rm -f conftest*
3066 # Test for bugs early in glibc-2.2.x series
3067 if test x$enable_clocale_flag = xgnu; then
3068 if test "$cross_compiling" = yes; then
3069 enable_clocale_flag=generic
3070 else
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3075 #define _GNU_SOURCE 1
3076 #include <locale.h>
3077 #include <string.h>
3078 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3079 extern __typeof(newlocale) __newlocale;
3080 extern __typeof(duplocale) __duplocale;
3081 extern __typeof(strcoll_l) __strcoll_l;
3082 #endif
3083 int main()
3085 const char __one[] = "Äuglein Augmen";
3086 const char __two[] = "Äuglein";
3087 int i;
3088 int j;
3089 __locale_t loc;
3090 __locale_t loc_dup;
3091 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3092 loc_dup = __duplocale(loc);
3093 i = __strcoll_l(__one, __two, loc);
3094 j = __strcoll_l(__one, __two, loc_dup);
3095 return 0;
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3100 then
3101 enable_clocale_flag=gnu
3102 else
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 rm -fr conftest*
3106 enable_clocale_flag=generic
3108 rm -fr conftest*
3113 # ... at some point put __strxfrm_l tests in as well.
3116 enable_clocale_flag=generic
3118 esac
3121 # Check whether --enable-nls or --disable-nls was given.
3122 if test "${enable_nls+set}" = set; then
3123 enableval="$enable_nls"
3125 else
3126 enable_nls=yes
3129 USE_NLS=no
3131 case x${enable_clocale_flag} in
3132 xgeneric)
3133 echo "$ac_t""generic" 1>&6
3135 CLOCALE_H=config/locale/generic/c_locale.h
3136 CLOCALE_CC=config/locale/generic/c_locale.cc
3137 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3138 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3139 CCOLLATE_CC=config/locale/generic/collate_members.cc
3140 CCTYPE_CC=config/locale/generic/ctype_members.cc
3141 CMESSAGES_H=config/locale/generic/messages_members.h
3142 CMESSAGES_CC=config/locale/generic/messages_members.cc
3143 CMONEY_CC=config/locale/generic/monetary_members.cc
3144 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3145 CTIME_H=config/locale/generic/time_members.h
3146 CTIME_CC=config/locale/generic/time_members.cc
3147 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3149 xgnu)
3150 echo "$ac_t""gnu" 1>&6
3152 # Declare intention to use gettext, and add support for specific
3153 # languages.
3154 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3155 ALL_LINGUAS="de fr"
3157 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3158 # Extract the first word of "msgfmt", so it can be a program name with args.
3159 set dummy msgfmt; ac_word=$2
3160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_word" >&5
3162 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 if test -n "$check_msgfmt"; then
3166 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3167 else
3168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3169 ac_dummy="$PATH"
3170 for ac_dir in $ac_dummy; do
3171 test -z "$ac_dir" && ac_dir=.
3172 if test -f $ac_dir/$ac_word; then
3173 ac_cv_prog_check_msgfmt="yes"
3174 break
3176 done
3177 IFS="$ac_save_ifs"
3178 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3181 check_msgfmt="$ac_cv_prog_check_msgfmt"
3182 if test -n "$check_msgfmt"; then
3183 echo "$ac_t""$check_msgfmt" 1>&6
3184 else
3185 echo "$ac_t""no" 1>&6
3188 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3189 USE_NLS=yes
3191 # Export the build objects.
3192 for ling in $ALL_LINGUAS; do \
3193 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
3194 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
3195 done
3199 CLOCALE_H=config/locale/gnu/c_locale.h
3200 CLOCALE_CC=config/locale/gnu/c_locale.cc
3201 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3202 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3203 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3204 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3205 CMESSAGES_H=config/locale/gnu/messages_members.h
3206 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3207 CMONEY_CC=config/locale/gnu/monetary_members.cc
3208 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3209 CTIME_H=config/locale/gnu/time_members.h
3210 CTIME_CC=config/locale/gnu/time_members.cc
3211 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3213 xieee_1003.1-2001)
3214 echo "$ac_t""IEEE 1003.1" 1>&6
3216 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3217 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3218 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3219 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3220 CCOLLATE_CC=config/locale/generic/collate_members.cc
3221 CCTYPE_CC=config/locale/generic/ctype_members.cc
3222 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3223 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3224 CMONEY_CC=config/locale/generic/monetary_members.cc
3225 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3226 CTIME_H=config/locale/generic/time_members.h
3227 CTIME_CC=config/locale/generic/time_members.cc
3228 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3231 echo "$enable_clocale is an unknown locale package" 1>&2
3232 exit 1
3234 esac
3236 # This is where the testsuite looks for locale catalogs, using the
3237 # -DLOCALEDIR define during testsuite compilation.
3238 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
3241 # A standalone libintl (e.g., GNU libintl) may be in use.
3242 if test $USE_NLS = yes; then
3243 for ac_hdr in libintl.h
3245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_hdr" >&5
3248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <$ac_hdr>
3256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257 { (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259 if test -z "$ac_err"; then
3260 rm -rf conftest*
3261 eval "ac_cv_header_$ac_safe=yes"
3262 else
3263 echo "$ac_err" >&5
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 eval "ac_cv_header_$ac_safe=no"
3269 rm -f conftest*
3271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3274 cat >> confdefs.h <<EOF
3275 #define $ac_tr_hdr 1
3278 else
3279 echo "$ac_t""no" 1>&6
3280 USE_NLS=no
3282 done
3285 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3286 echo "configure:3287: checking for library containing gettext" >&5
3287 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 ac_func_search_save_LIBS="$LIBS"
3291 ac_cv_search_gettext="no"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gettext();
3300 int main() {
3301 gettext()
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 rm -rf conftest*
3306 ac_cv_search_gettext="none required"
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 rm -f conftest*
3312 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3313 LIBS="-l$i $ac_func_search_save_LIBS"
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 /* Override any gcc2 internal prototype to avoid an error. */
3318 /* We use char because int might match the return type of a gcc2
3319 builtin and then its argument prototype would still apply. */
3320 char gettext();
3322 int main() {
3323 gettext()
3324 ; return 0; }
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3327 rm -rf conftest*
3328 ac_cv_search_gettext="-l$i"
3329 break
3330 else
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 rm -f conftest*
3335 done
3336 LIBS="$ac_func_search_save_LIBS"
3339 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3340 if test "$ac_cv_search_gettext" != "no"; then
3341 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3343 else :
3344 USE_NLS=no
3347 if test $USE_NLS = yes; then
3348 cat >> confdefs.h <<\EOF
3349 #define _GLIBCXX_USE_NLS 1
3369 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3370 echo "configure:3371: checking for c header strategy to use" >&5
3371 # Check whether --enable-cheaders or --disable-cheaders was given.
3372 if test "${enable_cheaders+set}" = set; then
3373 enableval="$enable_cheaders"
3375 case "$enableval" in
3377 enable_cheaders=c
3379 c_std)
3380 enable_cheaders=c_std
3382 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3384 esac
3385 else
3386 enable_cheaders=c_std
3389 echo "$ac_t""$enable_cheaders" 1>&6
3391 case "$enable_cheaders" in
3392 c_std)
3393 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c_std'
3396 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c'
3398 esac
3403 if test "$enable_cheaders" = c; then
3404 GLIBCXX_C_HEADERS_C_TRUE=
3405 GLIBCXX_C_HEADERS_C_FALSE='#'
3406 else
3407 GLIBCXX_C_HEADERS_C_TRUE='#'
3408 GLIBCXX_C_HEADERS_C_FALSE=
3412 if test "$enable_cheaders" = c_std; then
3413 GLIBCXX_C_HEADERS_C_STD_TRUE=
3414 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
3415 else
3416 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
3417 GLIBCXX_C_HEADERS_C_STD_FALSE=
3421 if test "$c_compatibility" = yes; then
3422 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
3423 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
3424 else
3425 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
3426 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
3429 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3430 if test "${enable_c_mbchar+set}" = set; then
3431 enableval="$enable_c_mbchar"
3432 case "$enableval" in
3433 yes) enable_c_mbchar=yes ;;
3434 no) enable_c_mbchar=no ;;
3435 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3436 esac
3437 else
3438 enable_c_mbchar=yes
3442 # Check whether --enable-c99 or --disable-c99 was given.
3443 if test "${enable_c99+set}" = set; then
3444 enableval="$enable_c99"
3445 case "$enableval" in
3446 yes) enable_c99=yes ;;
3447 no) enable_c99=no ;;
3448 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3449 esac
3450 else
3451 enable_c99=yes
3455 ac_ext=C
3456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3457 ac_cpp='$CXXCPP $CPPFLAGS'
3458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3460 cross_compiling=$ac_cv_prog_cxx_cross
3463 # Check for the existence of <math.h> functions used if C99 is enabled.
3464 ac_c99_math=yes;
3465 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3466 echo "configure:3467: checking for ISO C99 support in <math.h>" >&5
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <math.h>
3471 int main() {
3472 fpclassify(0.0);
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_c99_math=no
3483 rm -f conftest*
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <math.h>
3488 int main() {
3489 isfinite(0.0);
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_math=no
3500 rm -f conftest*
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <math.h>
3505 int main() {
3506 isinf(0.0);
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 ac_c99_math=no
3517 rm -f conftest*
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <math.h>
3522 int main() {
3523 isnan(0.0);
3524 ; return 0; }
3526 if { (eval echo configure:3527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3528 else
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 ac_c99_math=no
3534 rm -f conftest*
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <math.h>
3539 int main() {
3540 isnormal(0.0);
3541 ; return 0; }
3543 if { (eval echo configure:3544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3545 else
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 rm -rf conftest*
3549 ac_c99_math=no
3551 rm -f conftest*
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <math.h>
3556 int main() {
3557 signbit(0.0);
3558 ; return 0; }
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 else
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3565 rm -rf conftest*
3566 ac_c99_math=no
3568 rm -f conftest*
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <math.h>
3573 int main() {
3574 isgreater(0.0,0.0);
3575 ; return 0; }
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 ac_c99_math=no
3585 rm -f conftest*
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <math.h>
3590 int main() {
3591 isgreaterequal(0.0,0.0);
3592 ; return 0; }
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 ac_c99_math=no
3602 rm -f conftest*
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 #include <math.h>
3607 int main() {
3608 isless(0.0,0.0);
3609 ; return 0; }
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 ac_c99_math=no
3619 rm -f conftest*
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <math.h>
3624 int main() {
3625 islessequal(0.0,0.0);
3626 ; return 0; }
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 ac_c99_math=no
3636 rm -f conftest*
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <math.h>
3641 int main() {
3642 islessgreater(0.0,0.0);
3643 ; return 0; }
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647 else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 ac_c99_math=no
3653 rm -f conftest*
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <math.h>
3658 int main() {
3659 isunordered(0.0,0.0);
3660 ; return 0; }
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 ac_c99_math=no
3670 rm -f conftest*
3671 echo "$ac_t""$ac_c99_math" 1>&6
3673 # Check for the existence in <stdio.h> of vscanf, et. al.
3674 ac_c99_stdio=yes;
3675 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3676 echo "configure:3677: checking for ISO C99 support in <stdio.h>" >&5
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 #include <stdio.h>
3681 int main() {
3682 snprintf("12", 0, "%i");
3683 ; return 0; }
3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 ac_c99_stdio=no
3693 rm -f conftest*
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 #include <stdio.h>
3698 #include <stdarg.h>
3699 void foo(char* fmt, ...)
3700 {va_list args; va_start(args, fmt);
3701 vfscanf(stderr, "%i", args);}
3702 int main() {
3704 ; return 0; }
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -rf conftest*
3712 ac_c99_stdio=no
3714 rm -f conftest*
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <stdio.h>
3719 #include <stdarg.h>
3720 void foo(char* fmt, ...)
3721 {va_list args; va_start(args, fmt);
3722 vscanf("%i", args);}
3723 int main() {
3725 ; return 0; }
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3729 else
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 rm -rf conftest*
3733 ac_c99_stdio=no
3735 rm -f conftest*
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <stdio.h>
3740 #include <stdarg.h>
3741 void foo(char* fmt, ...)
3742 {va_list args; va_start(args, fmt);
3743 vsnprintf(fmt, 0, "%i", args);}
3744 int main() {
3746 ; return 0; }
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 ac_c99_stdio=no
3756 rm -f conftest*
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <stdio.h>
3761 #include <stdarg.h>
3762 void foo(char* fmt, ...)
3763 {va_list args; va_start(args, fmt);
3764 vsscanf(fmt, "%i", args);}
3765 int main() {
3767 ; return 0; }
3769 if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3771 else
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 rm -rf conftest*
3775 ac_c99_stdio=no
3777 rm -f conftest*
3778 echo "$ac_t""$ac_c99_stdio" 1>&6
3780 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3781 ac_c99_stdlib=yes;
3782 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3783 echo "configure:3784: checking for lldiv_t declaration" >&5
3784 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <stdlib.h>
3792 int main() {
3793 lldiv_t mydivt;
3794 ; return 0; }
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 rm -rf conftest*
3798 ac_c99_lldiv_t=yes
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 ac_c99_lldiv_t=no
3805 rm -f conftest*
3809 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3811 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3812 echo "configure:3813: checking for ISO C99 support in <stdlib.h>" >&5
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtof("gnu", &tmp);
3819 ; return 0; }
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 ac_c99_stdlib=no
3829 rm -f conftest*
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <stdlib.h>
3834 int main() {
3835 char* tmp; strtold("gnu", &tmp);
3836 ; return 0; }
3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3840 else
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 ac_c99_stdlib=no
3846 rm -f conftest*
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <stdlib.h>
3851 int main() {
3852 llabs(10);
3853 ; return 0; }
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 else
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -rf conftest*
3861 ac_c99_stdlib=no
3863 rm -f conftest*
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <stdlib.h>
3868 int main() {
3869 lldiv(10,1);
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 else
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3877 rm -rf conftest*
3878 ac_c99_stdlib=no
3880 rm -f conftest*
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #include <stdlib.h>
3885 int main() {
3886 atoll("10");
3887 ; return 0; }
3889 if { (eval echo configure:3890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3891 else
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3894 rm -rf conftest*
3895 ac_c99_stdlib=no
3897 rm -f conftest*
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 #include <stdlib.h>
3902 int main() {
3903 _Exit(0);
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
3912 ac_c99_stdlib=no
3914 rm -f conftest*
3915 if test x"$ac_c99_lldiv_t" = x"no"; then
3916 ac_c99_stdlib=no;
3918 echo "$ac_t""$ac_c99_stdlib" 1>&6
3920 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3921 # XXX the wchar.h checks should be rolled into the general C99 bits.
3922 ac_c99_wchar=yes;
3923 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3924 echo "configure:3925: checking for additional ISO C99 support in <wchar.h>" >&5
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 #include <wchar.h>
3929 int main() {
3930 wcstold(L"10.0", NULL);
3931 ; return 0; }
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3935 else
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 ac_c99_wchar=no
3941 rm -f conftest*
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 #include <wchar.h>
3946 int main() {
3947 wcstoll(L"10", NULL, 10);
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 else
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -rf conftest*
3956 ac_c99_wchar=no
3958 rm -f conftest*
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 #include <wchar.h>
3963 int main() {
3964 wcstoull(L"10", NULL, 10);
3965 ; return 0; }
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 ac_c99_wchar=no
3975 rm -f conftest*
3976 echo "$ac_t""$ac_c99_wchar" 1>&6
3978 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3979 echo "configure:3980: checking for enabled ISO C99 support" >&5
3980 if test x"$ac_c99_math" = x"no" ||
3981 test x"$ac_c99_stdio" = x"no" ||
3982 test x"$ac_c99_stdlib" = x"no" ||
3983 test x"$ac_c99_wchar" = x"no"; then
3984 enable_c99=no;
3986 echo "$ac_t""$enable_c99" 1>&6
3988 # Option parsed, now set things appropriately
3989 if test x"$enable_c99" = x"yes"; then
3990 cat >> confdefs.h <<\EOF
3991 #define _GLIBCXX_USE_C99 1
3996 ac_ext=c
3997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4001 cross_compiling=$ac_cv_prog_cc_cross
4005 # Check whether --enable-long-long or --disable-long-long was given.
4006 if test "${enable_long_long+set}" = set; then
4007 enableval="$enable_long_long"
4008 case "$enableval" in
4009 yes) enable_long_long=yes ;;
4010 no) enable_long_long=no ;;
4011 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4012 esac
4013 else
4014 enable_long_long=yes
4018 ac_ext=C
4019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4020 ac_cpp='$CXXCPP $CPPFLAGS'
4021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4023 cross_compiling=$ac_cv_prog_cxx_cross
4026 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4027 echo "configure:4028: checking for enabled long long I/O support" >&5
4028 # iostreams require strtoll, strtoull to compile
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 #include <stdlib.h>
4033 int main() {
4034 char* tmp; strtoll("gnu", &tmp, 10);
4035 ; return 0; }
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 else
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4042 rm -rf conftest*
4043 enable_long_long=no
4045 rm -f conftest*
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <stdlib.h>
4050 int main() {
4051 char* tmp; strtoull("gnu", &tmp, 10);
4052 ; return 0; }
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 else
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4059 rm -rf conftest*
4060 enable_long_long=no
4062 rm -f conftest*
4064 # Option parsed, now set things appropriately
4065 if test x"$enable_long_long" = xyes; then
4066 cat >> confdefs.h <<\EOF
4067 #define _GLIBCXX_USE_LONG_LONG 1
4071 echo "$ac_t""$enable_long_long" 1>&6
4073 ac_ext=c
4074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4078 cross_compiling=$ac_cv_prog_cc_cross
4082 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4083 echo "configure:4084: checking for thread model used by GCC" >&5
4084 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4085 echo "$ac_t""$target_thread_file" 1>&6
4087 if test $target_thread_file != single; then
4088 cat >> confdefs.h <<\EOF
4089 #define HAVE_GTHR_DEFAULT 1
4092 cat >> confdefs.h <<\EOF
4093 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
4098 glibcxx_thread_h=gthr-$target_thread_file.h
4101 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4102 if test "${enable_concept_checks+set}" = set; then
4103 enableval="$enable_concept_checks"
4104 case "$enableval" in
4105 yes) enable_concept_checks=yes ;;
4106 no) enable_concept_checks=no ;;
4107 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4108 esac
4109 else
4110 enable_concept_checks=no
4112 if test x"$enable_concept_checks" = xyes; then
4113 cat >> confdefs.h <<\EOF
4114 #define _GLIBCXX_CONCEPT_CHECKS 1
4119 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4120 echo "configure:4121: checking for extra compiler flags for building" >&5
4121 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4122 if test "${enable_cxx_flags+set}" = set; then
4123 enableval="$enable_cxx_flags"
4124 case "x$enable_cxx_flags" in
4125 xyes)
4126 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4127 xno | xnone | x)
4128 enable_cxx_flags='' ;;
4130 enable_cxx_flags="$enableval" ;;
4131 esac
4132 else
4133 enable_cxx_flags=
4137 if test -n "$enable_cxx_flags"; then
4138 for f in $enable_cxx_flags; do
4139 case "$f" in
4140 -fhonor-std) ;;
4141 -*) ;;
4142 *) # and we're trying to pass /what/ exactly?
4143 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4144 esac
4145 done
4147 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4148 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4151 # Check whether --enable-libstdcxx_debug or --disable-libstdcxx_debug was given.
4152 if test "${enable_libstdcxx_debug+set}" = set; then
4153 enableval="$enable_libstdcxx_debug"
4154 case "${enableval}" in
4155 yes) enable_libstdcxx_debug=yes ;;
4156 no) enable_libstdcxx_debug=no ;;
4157 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4158 esac
4159 else
4160 enable_libstdcxx_debug=no
4162 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4163 echo "configure:4164: checking for additional debug build" >&5
4164 echo "$ac_t""$enable_libstdcxx_debug" 1>&6
4167 if test "$enable_libstdcxx_debug" = yes; then
4168 GLIBCXX_BUILD_DEBUG_TRUE=
4169 GLIBCXX_BUILD_DEBUG_FALSE='#'
4170 else
4171 GLIBCXX_BUILD_DEBUG_TRUE='#'
4172 GLIBCXX_BUILD_DEBUG_FALSE=
4175 # Check whether --enable-libstdcxx_debug_flags or --disable-libstdcxx_debug_flags was given.
4176 if test "${enable_libstdcxx_debug_flags+set}" = set; then
4177 enableval="$enable_libstdcxx_debug_flags"
4178 case "${enableval}" in
4179 none) ;;
4180 -*) enable_libstdcxx_debug_flags="${enableval}" ;;
4181 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4182 esac
4183 else
4184 enable_libstdcxx_debug_flags=none
4187 case x"$enable_libstdcxx_debug" in
4188 xyes)
4189 case "$enable_libstdcxx_debug_flags" in
4190 none)
4191 DEBUG_FLAGS="-g3 -O0";;
4192 -*) #valid input
4193 DEBUG_FLAGS="${enableval}"
4194 esac
4196 xno)
4197 DEBUG_FLAGS=""
4199 esac
4202 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4203 echo "configure:4204: checking for debug build flags" >&5
4204 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4207 # No surprises, no surprises...
4208 if test $ATOMICITYH = cpu/generic ; then
4209 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4210 if test $target_thread_file = single; then
4211 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4212 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4213 else
4214 echo "configure: warning: They will be faked using a mutex." 1>&2
4215 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4220 if test x"$build" != x"$host"; then
4222 # We are being configured with some form of cross compiler.
4223 GLIBCXX_IS_CROSS_COMPILING=true
4225 # This lets us hard-code the functionality we know we'll have in the cross
4226 # target environment. "Let" is a sugar-coated word placed on an especially
4227 # dull and tedious hack, actually.
4229 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
4230 # that involve linking, can't be used:
4231 # "cannot open sim-crt0.o"
4232 # "cannot open crt0.o"
4233 # etc. All this is because there currently exists no unified, consistent
4234 # way for top level CC information to be passed down to target directories:
4235 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4236 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4237 # crosses can be removed.
4239 # If Canadian cross, then don't pick up tools from the build directory.
4240 # Used in GLIBCXX_EXPORT_INCLUDES (and nowhere else?).
4241 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4242 && test x"$build" != x"$target"; then
4243 CANADIAN=yes
4244 else
4245 CANADIAN=no
4248 # Construct crosses by hand, eliminating bits that need ld...
4249 # GLIBCXX_CHECK_COMPILER_FEATURES
4250 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
4251 # GLIBCXX_CHECK_MATH_SUPPORT
4253 case "${host}" in
4254 *-freebsd*)
4255 os_include_dir="os/bsd/freebsd"
4256 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4257 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4258 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4259 sys/time.h unistd.h
4261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_hdr" >&5
4264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #include <$ac_hdr>
4272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4273 { (eval echo configure:4274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4275 if test -z "$ac_err"; then
4276 rm -rf conftest*
4277 eval "ac_cv_header_$ac_safe=yes"
4278 else
4279 echo "$ac_err" >&5
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 rm -rf conftest*
4283 eval "ac_cv_header_$ac_safe=no"
4285 rm -f conftest*
4287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4290 cat >> confdefs.h <<EOF
4291 #define $ac_tr_hdr 1
4294 else
4295 echo "$ac_t""no" 1>&6
4297 done
4299 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4302 # If we're not using GNU ld, then there's no point in even trying these
4303 # tests. Check for that first. We should have already tested for gld
4304 # by now (in libtool), but require it now just to be safe...
4305 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4306 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4309 # The name set by libtool depends on the version of libtool. Shame on us
4310 # for depending on an impl detail, but c'est la vie. Older versions used
4311 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4312 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4313 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4314 # set (hence we're using an older libtool), then set it.
4315 if test x${with_gnu_ld+set} != xset; then
4316 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4317 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4318 with_gnu_ld=no
4319 else
4320 with_gnu_ld=$ac_cv_prog_gnu_ld
4324 # Start by getting the version number. I think the libtool test already
4325 # does some of this, but throws away the result.
4327 ldver=`$LD --version 2>/dev/null | head -1 | \
4328 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4330 glibcxx_gnu_ld_version=`echo $ldver | \
4331 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4333 # Set --gc-sections.
4334 if test "$with_gnu_ld" = "notbroken"; then
4335 # GNU ld it is! Joy and bunny rabbits!
4337 # All these tests are for C++; save the language and the compiler flags.
4338 # Need to do this so that g++ won't try to link in libstdc++
4339 ac_test_CFLAGS="${CFLAGS+set}"
4340 ac_save_CFLAGS="$CFLAGS"
4341 CFLAGS='-x c++ -Wl,--gc-sections'
4343 # Check for -Wl,--gc-sections
4344 # XXX This test is broken at the moment, as symbols required for
4345 # linking are now in libsupc++ (not built yet.....). In addition,
4346 # this test has cored on solaris in the past. In addition,
4347 # --gc-sections doesn't really work at the moment (keeps on discarding
4348 # used sections, first .eh_frame and now some of the glibc sections for
4349 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4350 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4351 echo "configure:4352: checking for ld that supports -Wl,--gc-sections" >&5
4352 if test "$cross_compiling" = yes; then
4353 ac_sectionLDflags=yes
4354 else
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4359 int main(void)
4361 try { throw 1; }
4362 catch (...) { };
4363 return 0;
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4368 then
4369 ac_sectionLDflags=yes
4370 else
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4373 rm -fr conftest*
4374 ac_sectionLDflags=no
4376 rm -fr conftest*
4379 if test "$ac_test_CFLAGS" = set; then
4380 CFLAGS="$ac_save_CFLAGS"
4381 else
4382 # this is the suspicious part
4383 CFLAGS=''
4385 if test "$ac_sectionLDflags" = "yes"; then
4386 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4388 echo "$ac_t""$ac_sectionLDflags" 1>&6
4391 # Set linker optimization flags.
4392 if test x"$with_gnu_ld" = x"yes"; then
4393 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4400 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4401 echo "configure:4402: checking for main in -lm" >&5
4402 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 ac_save_LIBS="$LIBS"
4407 LIBS="-lm $LIBS"
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4412 int main() {
4413 main()
4414 ; return 0; }
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417 rm -rf conftest*
4418 eval "ac_cv_lib_$ac_lib_var=yes"
4419 else
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=no"
4425 rm -f conftest*
4426 LIBS="$ac_save_LIBS"
4429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_lib 1
4437 LIBS="-lm $LIBS"
4439 else
4440 echo "$ac_t""no" 1>&6
4443 for ac_func in nan copysignf
4445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_func" >&5
4447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func(); below. */
4455 #include <assert.h>
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4459 char $ac_func();
4461 int main() {
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467 choke me
4468 #else
4469 $ac_func();
4470 #endif
4472 ; return 0; }
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 rm -rf conftest*
4476 eval "ac_cv_func_$ac_func=yes"
4477 else
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4480 rm -rf conftest*
4481 eval "ac_cv_func_$ac_func=no"
4483 rm -f conftest*
4486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_func 1
4493 else
4494 echo "$ac_t""no" 1>&6
4495 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4497 done
4500 for ac_func in __signbit
4502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_func" >&5
4504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511 which can conflict with char $ac_func(); below. */
4512 #include <assert.h>
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4516 char $ac_func();
4518 int main() {
4520 /* The GNU C library defines this for functions which it implements
4521 to always fail with ENOSYS. Some functions are actually named
4522 something starting with __ and the normal name is an alias. */
4523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4524 choke me
4525 #else
4526 $ac_func();
4527 #endif
4529 ; return 0; }
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532 rm -rf conftest*
4533 eval "ac_cv_func_$ac_func=yes"
4534 else
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4537 rm -rf conftest*
4538 eval "ac_cv_func_$ac_func=no"
4540 rm -f conftest*
4543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4546 cat >> confdefs.h <<EOF
4547 #define $ac_tr_func 1
4550 else
4551 echo "$ac_t""no" 1>&6
4552 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4554 done
4556 for ac_func in __signbitf
4558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4559 echo "configure:4560: checking for $ac_func" >&5
4560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4562 else
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 /* System header to define __stub macros and hopefully few prototypes,
4567 which can conflict with char $ac_func(); below. */
4568 #include <assert.h>
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4572 char $ac_func();
4574 int main() {
4576 /* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4580 choke me
4581 #else
4582 $ac_func();
4583 #endif
4585 ; return 0; }
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4588 rm -rf conftest*
4589 eval "ac_cv_func_$ac_func=yes"
4590 else
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -rf conftest*
4594 eval "ac_cv_func_$ac_func=no"
4596 rm -f conftest*
4599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4602 cat >> confdefs.h <<EOF
4603 #define $ac_tr_func 1
4606 else
4607 echo "$ac_t""no" 1>&6
4608 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4610 done
4613 if test x$ac_cv_func_copysignl = x"yes"; then
4614 for ac_func in __signbitl
4616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_func" >&5
4618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620 else
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func(); below. */
4626 #include <assert.h>
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char $ac_func();
4632 int main() {
4634 /* The GNU C library defines this for functions which it implements
4635 to always fail with ENOSYS. Some functions are actually named
4636 something starting with __ and the normal name is an alias. */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 choke me
4639 #else
4640 $ac_func();
4641 #endif
4643 ; return 0; }
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 rm -rf conftest*
4647 eval "ac_cv_func_$ac_func=yes"
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 eval "ac_cv_func_$ac_func=no"
4654 rm -f conftest*
4657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_func 1
4664 else
4665 echo "$ac_t""no" 1>&6
4666 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4668 done
4672 if test -n "$LIBMATHOBJS"; then
4673 need_libmath=yes
4679 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4680 echo "configure:4681: checking for mbstate_t" >&5
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 #include <wchar.h>
4685 int main() {
4686 mbstate_t teststate;
4687 ; return 0; }
4689 if { (eval echo configure:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 rm -rf conftest*
4691 have_mbstate_t=yes
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 have_mbstate_t=no
4698 rm -f conftest*
4699 echo "$ac_t""$have_mbstate_t" 1>&6
4700 if test x"$have_mbstate_t" = xyes; then
4701 cat >> confdefs.h <<\EOF
4702 #define HAVE_MBSTATE_T 1
4707 for ac_hdr in wchar.h
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <$ac_hdr>
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4724 rm -rf conftest*
4725 eval "ac_cv_header_$ac_safe=yes"
4726 else
4727 echo "$ac_err" >&5
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_header_$ac_safe=no"
4733 rm -f conftest*
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4741 ac_has_wchar_h=yes
4742 else
4743 echo "$ac_t""no" 1>&6
4744 ac_has_wchar_h=no
4746 done
4748 for ac_hdr in wctype.h
4750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4752 echo "configure:4753: checking for $ac_hdr" >&5
4753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <$ac_hdr>
4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4764 if test -z "$ac_err"; then
4765 rm -rf conftest*
4766 eval "ac_cv_header_$ac_safe=yes"
4767 else
4768 echo "$ac_err" >&5
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 rm -rf conftest*
4772 eval "ac_cv_header_$ac_safe=no"
4774 rm -f conftest*
4776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_hdr 1
4782 ac_has_wctype_h=yes
4783 else
4784 echo "$ac_t""no" 1>&6
4785 ac_has_wctype_h=no
4787 done
4790 if test x"$ac_has_wchar_h" = xyes &&
4791 test x"$ac_has_wctype_h" = xyes &&
4792 test x"$enable_c_mbchar" != xno; then
4794 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4795 echo "configure:4796: checking for WCHAR_MIN and WCHAR_MAX" >&5
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 #include <wchar.h>
4800 int main() {
4801 int i = WCHAR_MIN; int j = WCHAR_MAX;
4802 ; return 0; }
4804 if { (eval echo configure:4805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 rm -rf conftest*
4806 has_wchar_minmax=yes
4807 else
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 has_wchar_minmax=no
4813 rm -f conftest*
4814 echo "$ac_t""$has_wchar_minmax" 1>&6
4816 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4817 echo "configure:4818: checking for WEOF" >&5
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4822 #include <wchar.h>
4823 #include <stddef.h>
4824 int main() {
4825 wint_t i = WEOF;
4826 ; return 0; }
4828 if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 rm -rf conftest*
4830 has_weof=yes
4831 else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 has_weof=no
4837 rm -f conftest*
4838 echo "$ac_t""$has_weof" 1>&6
4840 ac_wfuncs=yes
4841 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_func" >&5
4845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4847 else
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char $ac_func(); below. */
4853 #include <assert.h>
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char $ac_func();
4859 int main() {
4861 /* The GNU C library defines this for functions which it implements
4862 to always fail with ENOSYS. Some functions are actually named
4863 something starting with __ and the normal name is an alias. */
4864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 choke me
4866 #else
4867 $ac_func();
4868 #endif
4870 ; return 0; }
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 rm -rf conftest*
4874 eval "ac_cv_func_$ac_func=yes"
4875 else
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 rm -rf conftest*
4879 eval "ac_cv_func_$ac_func=no"
4881 rm -f conftest*
4884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4887 cat >> confdefs.h <<EOF
4888 #define $ac_tr_func 1
4891 else
4892 echo "$ac_t""no" 1>&6
4894 ac_wfuncs=no
4896 done
4899 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4900 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4901 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4902 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4903 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4904 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_func" >&5
4908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* System header to define __stub macros and hopefully few prototypes,
4915 which can conflict with char $ac_func(); below. */
4916 #include <assert.h>
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4920 char $ac_func();
4922 int main() {
4924 /* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4928 choke me
4929 #else
4930 $ac_func();
4931 #endif
4933 ; return 0; }
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=yes"
4938 else
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 rm -rf conftest*
4942 eval "ac_cv_func_$ac_func=no"
4944 rm -f conftest*
4947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950 cat >> confdefs.h <<EOF
4951 #define $ac_tr_func 1
4954 else
4955 echo "$ac_t""no" 1>&6
4957 ac_wfuncs=no
4959 done
4962 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4963 echo "configure:4964: checking for ISO C99 wchar_t support" >&5
4964 if test x"$has_weof" = xyes &&
4965 test x"$has_wchar_minmax" = xyes &&
4966 test x"$ac_wfuncs" = xyes; then
4967 ac_isoC99_wchar_t=yes
4968 else
4969 ac_isoC99_wchar_t=no
4971 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4973 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4974 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4975 echo "configure:4976: checking for iconv.h" >&5
4976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4978 else
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 #include <iconv.h>
4984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4985 { (eval echo configure:4986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4987 if test -z "$ac_err"; then
4988 rm -rf conftest*
4989 eval "ac_cv_header_$ac_safe=yes"
4990 else
4991 echo "$ac_err" >&5
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -rf conftest*
4995 eval "ac_cv_header_$ac_safe=no"
4997 rm -f conftest*
4999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5000 echo "$ac_t""yes" 1>&6
5001 ac_has_iconv_h=yes
5002 else
5003 echo "$ac_t""no" 1>&6
5004 ac_has_iconv_h=no
5007 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5008 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5009 echo "configure:5010: checking for langinfo.h" >&5
5010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5012 else
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5016 #include <langinfo.h>
5018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5019 { (eval echo configure:5020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5021 if test -z "$ac_err"; then
5022 rm -rf conftest*
5023 eval "ac_cv_header_$ac_safe=yes"
5024 else
5025 echo "$ac_err" >&5
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 rm -rf conftest*
5029 eval "ac_cv_header_$ac_safe=no"
5031 rm -f conftest*
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_has_langinfo_h=yes
5036 else
5037 echo "$ac_t""no" 1>&6
5038 ac_has_langinfo_h=no
5042 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5043 echo "configure:5044: checking for iconv in -liconv" >&5
5044 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048 ac_save_LIBS="$LIBS"
5049 LIBS="-liconv $LIBS"
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5056 char iconv();
5058 int main() {
5059 iconv()
5060 ; return 0; }
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 eval "ac_cv_lib_$ac_lib_var=yes"
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_lib_$ac_lib_var=no"
5071 rm -f conftest*
5072 LIBS="$ac_save_LIBS"
5075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 libiconv="-liconv"
5078 else
5079 echo "$ac_t""no" 1>&6
5082 ac_save_LIBS="$LIBS"
5083 LIBS="$LIBS $libiconv"
5085 for ac_func in iconv_open iconv_close iconv nl_langinfo
5087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5088 echo "configure:5089: checking for $ac_func" >&5
5089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5091 else
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* System header to define __stub macros and hopefully few prototypes,
5096 which can conflict with char $ac_func(); below. */
5097 #include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5101 char $ac_func();
5103 int main() {
5105 /* The GNU C library defines this for functions which it implements
5106 to always fail with ENOSYS. Some functions are actually named
5107 something starting with __ and the normal name is an alias. */
5108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5109 choke me
5110 #else
5111 $ac_func();
5112 #endif
5114 ; return 0; }
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 rm -rf conftest*
5118 eval "ac_cv_func_$ac_func=yes"
5119 else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -rf conftest*
5123 eval "ac_cv_func_$ac_func=no"
5125 rm -f conftest*
5128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5131 cat >> confdefs.h <<EOF
5132 #define $ac_tr_func 1
5135 ac_XPG2funcs=yes
5136 else
5137 echo "$ac_t""no" 1>&6
5138 ac_XPG2funcs=no
5140 done
5143 LIBS="$ac_save_LIBS"
5145 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5146 echo "configure:5147: checking for XPG2 wchar_t support" >&5
5147 if test x"$ac_has_iconv_h" = xyes &&
5148 test x"$ac_has_langinfo_h" = xyes &&
5149 test x"$ac_XPG2funcs" = xyes; then
5150 ac_XPG2_wchar_t=yes
5151 else
5152 ac_XPG2_wchar_t=no
5154 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5156 if test x"$ac_isoC99_wchar_t" = xyes &&
5157 test x"$ac_XPG2_wchar_t" = xyes; then
5158 cat >> confdefs.h <<\EOF
5159 #define _GLIBCXX_USE_WCHAR_T 1
5162 enable_wchar_t=yes
5165 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5166 echo "configure:5167: checking for enabled wchar_t specializations" >&5
5167 echo "$ac_t""$enable_wchar_t" 1>&6
5169 cat >> confdefs.h <<\EOF
5170 #define HAVE_LC_MESSAGES 1
5173 cat >> confdefs.h <<\EOF
5174 #define HAVE_DRAND48 1
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_GETPAGESIZE 1
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_SETENV 1
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_SIGSETJMP 1
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_COPYSIGN 1
5193 cat >> confdefs.h <<\EOF
5194 #define HAVE_COPYSIGNF 1
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_FINITEF 1
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_FINITE 1
5205 cat >> confdefs.h <<\EOF
5206 #define HAVE_FREXPF 1
5209 cat >> confdefs.h <<\EOF
5210 #define HAVE_HYPOT 1
5213 cat >> confdefs.h <<\EOF
5214 #define HAVE_HYPOTF 1
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_ISINF 1
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_ISNAN 1
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_ISNANF 1
5230 cat >> confdefs.h <<\EOF
5231 #define HAVE_MMAP 1
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_ACOSF 1
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_ASINF 1
5242 cat >> confdefs.h <<\EOF
5243 #define HAVE_ATAN2F 1
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_ATANF 1
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_CEILF 1
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE_COPYSIGN 1
5258 cat >> confdefs.h <<\EOF
5259 #define HAVE_COPYSIGNF 1
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_COSF 1
5266 cat >> confdefs.h <<\EOF
5267 #define HAVE_COSHF 1
5270 cat >> confdefs.h <<\EOF
5271 #define HAVE_EXPF 1
5274 cat >> confdefs.h <<\EOF
5275 #define HAVE_FABSF 1
5278 cat >> confdefs.h <<\EOF
5279 #define HAVE_FLOORF 1
5282 cat >> confdefs.h <<\EOF
5283 #define HAVE_FMODF 1
5286 cat >> confdefs.h <<\EOF
5287 #define HAVE_FREXPF 1
5290 cat >> confdefs.h <<\EOF
5291 #define HAVE_LDEXPF 1
5294 cat >> confdefs.h <<\EOF
5295 #define HAVE_LOG10F 1
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_LOGF 1
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_MODFF 1
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_POWF 1
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_SINF 1
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_SINHF 1
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_SQRTF 1
5322 cat >> confdefs.h <<\EOF
5323 #define HAVE_TANF 1
5326 cat >> confdefs.h <<\EOF
5327 #define HAVE_TANHF 1
5330 if test x"long_double_math_on_this_cpu" = x"yes"; then
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_FINITEL 1
5335 cat >> confdefs.h <<\EOF
5336 #define HAVE_ISINFL 1
5339 cat >> confdefs.h <<\EOF
5340 #define HAVE_ISNANL 1
5345 *-hpux*)
5346 os_include_dir="os/hpux"
5347 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5348 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5349 fp.h locale.h float.h inttypes.h
5351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5353 echo "configure:5354: checking for $ac_hdr" >&5
5354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5356 else
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #include <$ac_hdr>
5362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5363 { (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5365 if test -z "$ac_err"; then
5366 rm -rf conftest*
5367 eval "ac_cv_header_$ac_safe=yes"
5368 else
5369 echo "$ac_err" >&5
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_header_$ac_safe=no"
5375 rm -f conftest*
5377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5380 cat >> confdefs.h <<EOF
5381 #define $ac_tr_hdr 1
5384 else
5385 echo "$ac_t""no" 1>&6
5387 done
5389 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5392 # If we're not using GNU ld, then there's no point in even trying these
5393 # tests. Check for that first. We should have already tested for gld
5394 # by now (in libtool), but require it now just to be safe...
5395 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5396 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5399 # The name set by libtool depends on the version of libtool. Shame on us
5400 # for depending on an impl detail, but c'est la vie. Older versions used
5401 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5402 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5403 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5404 # set (hence we're using an older libtool), then set it.
5405 if test x${with_gnu_ld+set} != xset; then
5406 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5407 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5408 with_gnu_ld=no
5409 else
5410 with_gnu_ld=$ac_cv_prog_gnu_ld
5414 # Start by getting the version number. I think the libtool test already
5415 # does some of this, but throws away the result.
5417 ldver=`$LD --version 2>/dev/null | head -1 | \
5418 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5420 glibcxx_gnu_ld_version=`echo $ldver | \
5421 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5423 # Set --gc-sections.
5424 if test "$with_gnu_ld" = "notbroken"; then
5425 # GNU ld it is! Joy and bunny rabbits!
5427 # All these tests are for C++; save the language and the compiler flags.
5428 # Need to do this so that g++ won't try to link in libstdc++
5429 ac_test_CFLAGS="${CFLAGS+set}"
5430 ac_save_CFLAGS="$CFLAGS"
5431 CFLAGS='-x c++ -Wl,--gc-sections'
5433 # Check for -Wl,--gc-sections
5434 # XXX This test is broken at the moment, as symbols required for
5435 # linking are now in libsupc++ (not built yet.....). In addition,
5436 # this test has cored on solaris in the past. In addition,
5437 # --gc-sections doesn't really work at the moment (keeps on discarding
5438 # used sections, first .eh_frame and now some of the glibc sections for
5439 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5440 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5441 echo "configure:5442: checking for ld that supports -Wl,--gc-sections" >&5
5442 if test "$cross_compiling" = yes; then
5443 ac_sectionLDflags=yes
5444 else
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5449 int main(void)
5451 try { throw 1; }
5452 catch (...) { };
5453 return 0;
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5458 then
5459 ac_sectionLDflags=yes
5460 else
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 rm -fr conftest*
5464 ac_sectionLDflags=no
5466 rm -fr conftest*
5469 if test "$ac_test_CFLAGS" = set; then
5470 CFLAGS="$ac_save_CFLAGS"
5471 else
5472 # this is the suspicious part
5473 CFLAGS=''
5475 if test "$ac_sectionLDflags" = "yes"; then
5476 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5478 echo "$ac_t""$ac_sectionLDflags" 1>&6
5481 # Set linker optimization flags.
5482 if test x"$with_gnu_ld" = x"yes"; then
5483 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5490 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5491 echo "configure:5492: checking for main in -lm" >&5
5492 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5495 else
5496 ac_save_LIBS="$LIBS"
5497 LIBS="-lm $LIBS"
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5502 int main() {
5503 main()
5504 ; return 0; }
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 rm -rf conftest*
5508 eval "ac_cv_lib_$ac_lib_var=yes"
5509 else
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 rm -rf conftest*
5513 eval "ac_cv_lib_$ac_lib_var=no"
5515 rm -f conftest*
5516 LIBS="$ac_save_LIBS"
5519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5523 cat >> confdefs.h <<EOF
5524 #define $ac_tr_lib 1
5527 LIBS="-lm $LIBS"
5529 else
5530 echo "$ac_t""no" 1>&6
5533 for ac_func in nan copysignf
5535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_func" >&5
5537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* System header to define __stub macros and hopefully few prototypes,
5544 which can conflict with char $ac_func(); below. */
5545 #include <assert.h>
5546 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5549 char $ac_func();
5551 int main() {
5553 /* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 choke me
5558 #else
5559 $ac_func();
5560 #endif
5562 ; return 0; }
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 rm -rf conftest*
5566 eval "ac_cv_func_$ac_func=yes"
5567 else
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=no"
5573 rm -f conftest*
5576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5579 cat >> confdefs.h <<EOF
5580 #define $ac_tr_func 1
5583 else
5584 echo "$ac_t""no" 1>&6
5585 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5587 done
5590 for ac_func in __signbit
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5602 #include <assert.h>
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char $ac_func();
5608 int main() {
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614 choke me
5615 #else
5616 $ac_func();
5617 #endif
5619 ; return 0; }
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 rm -rf conftest*
5623 eval "ac_cv_func_$ac_func=yes"
5624 else
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=no"
5630 rm -f conftest*
5633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_func 1
5640 else
5641 echo "$ac_t""no" 1>&6
5642 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5644 done
5646 for ac_func in __signbitf
5648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_func" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5652 else
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char $ac_func(); below. */
5658 #include <assert.h>
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662 char $ac_func();
5664 int main() {
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5670 choke me
5671 #else
5672 $ac_func();
5673 #endif
5675 ; return 0; }
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 rm -rf conftest*
5679 eval "ac_cv_func_$ac_func=yes"
5680 else
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=no"
5686 rm -f conftest*
5689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_func 1
5696 else
5697 echo "$ac_t""no" 1>&6
5698 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5700 done
5703 if test x$ac_cv_func_copysignl = x"yes"; then
5704 for ac_func in __signbitl
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_func" >&5
5708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func(); below. */
5716 #include <assert.h>
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5720 char $ac_func();
5722 int main() {
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 choke me
5729 #else
5730 $ac_func();
5731 #endif
5733 ; return 0; }
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=yes"
5738 else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=no"
5744 rm -f conftest*
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5754 else
5755 echo "$ac_t""no" 1>&6
5756 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5758 done
5762 if test -n "$LIBMATHOBJS"; then
5763 need_libmath=yes
5769 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5770 echo "configure:5771: checking for mbstate_t" >&5
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <wchar.h>
5775 int main() {
5776 mbstate_t teststate;
5777 ; return 0; }
5779 if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5780 rm -rf conftest*
5781 have_mbstate_t=yes
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 have_mbstate_t=no
5788 rm -f conftest*
5789 echo "$ac_t""$have_mbstate_t" 1>&6
5790 if test x"$have_mbstate_t" = xyes; then
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_MBSTATE_T 1
5797 for ac_hdr in wchar.h
5799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_hdr" >&5
5802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5804 else
5805 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 #include <$ac_hdr>
5810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5811 { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5813 if test -z "$ac_err"; then
5814 rm -rf conftest*
5815 eval "ac_cv_header_$ac_safe=yes"
5816 else
5817 echo "$ac_err" >&5
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5820 rm -rf conftest*
5821 eval "ac_cv_header_$ac_safe=no"
5823 rm -f conftest*
5825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5828 cat >> confdefs.h <<EOF
5829 #define $ac_tr_hdr 1
5831 ac_has_wchar_h=yes
5832 else
5833 echo "$ac_t""no" 1>&6
5834 ac_has_wchar_h=no
5836 done
5838 for ac_hdr in wctype.h
5840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5842 echo "configure:5843: checking for $ac_hdr" >&5
5843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845 else
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5849 #include <$ac_hdr>
5851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5852 { (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854 if test -z "$ac_err"; then
5855 rm -rf conftest*
5856 eval "ac_cv_header_$ac_safe=yes"
5857 else
5858 echo "$ac_err" >&5
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 eval "ac_cv_header_$ac_safe=no"
5864 rm -f conftest*
5866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5869 cat >> confdefs.h <<EOF
5870 #define $ac_tr_hdr 1
5872 ac_has_wctype_h=yes
5873 else
5874 echo "$ac_t""no" 1>&6
5875 ac_has_wctype_h=no
5877 done
5880 if test x"$ac_has_wchar_h" = xyes &&
5881 test x"$ac_has_wctype_h" = xyes &&
5882 test x"$enable_c_mbchar" != xno; then
5884 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5885 echo "configure:5886: checking for WCHAR_MIN and WCHAR_MAX" >&5
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 #include <wchar.h>
5890 int main() {
5891 int i = WCHAR_MIN; int j = WCHAR_MAX;
5892 ; return 0; }
5894 if { (eval echo configure:5895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5895 rm -rf conftest*
5896 has_wchar_minmax=yes
5897 else
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 rm -rf conftest*
5901 has_wchar_minmax=no
5903 rm -f conftest*
5904 echo "$ac_t""$has_wchar_minmax" 1>&6
5906 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5907 echo "configure:5908: checking for WEOF" >&5
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5912 #include <wchar.h>
5913 #include <stddef.h>
5914 int main() {
5915 wint_t i = WEOF;
5916 ; return 0; }
5918 if { (eval echo configure:5919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5919 rm -rf conftest*
5920 has_weof=yes
5921 else
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 rm -rf conftest*
5925 has_weof=no
5927 rm -f conftest*
5928 echo "$ac_t""$has_weof" 1>&6
5930 ac_wfuncs=yes
5931 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_func" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char $ac_func(); below. */
5943 #include <assert.h>
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5947 char $ac_func();
5949 int main() {
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5955 choke me
5956 #else
5957 $ac_func();
5958 #endif
5960 ; return 0; }
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 rm -rf conftest*
5964 eval "ac_cv_func_$ac_func=yes"
5965 else
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 rm -rf conftest*
5969 eval "ac_cv_func_$ac_func=no"
5971 rm -f conftest*
5974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >> confdefs.h <<EOF
5978 #define $ac_tr_func 1
5981 else
5982 echo "$ac_t""no" 1>&6
5984 ac_wfuncs=no
5986 done
5989 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5990 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5991 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5992 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5993 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5994 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6000 else
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6006 #include <assert.h>
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char $ac_func();
6012 int main() {
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6018 choke me
6019 #else
6020 $ac_func();
6021 #endif
6023 ; return 0; }
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 rm -rf conftest*
6027 eval "ac_cv_func_$ac_func=yes"
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -rf conftest*
6032 eval "ac_cv_func_$ac_func=no"
6034 rm -f conftest*
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6044 else
6045 echo "$ac_t""no" 1>&6
6047 ac_wfuncs=no
6049 done
6052 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6053 echo "configure:6054: checking for ISO C99 wchar_t support" >&5
6054 if test x"$has_weof" = xyes &&
6055 test x"$has_wchar_minmax" = xyes &&
6056 test x"$ac_wfuncs" = xyes; then
6057 ac_isoC99_wchar_t=yes
6058 else
6059 ac_isoC99_wchar_t=no
6061 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6063 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6065 echo "configure:6066: checking for iconv.h" >&5
6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <iconv.h>
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then
6078 rm -rf conftest*
6079 eval "ac_cv_header_$ac_safe=yes"
6080 else
6081 echo "$ac_err" >&5
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6084 rm -rf conftest*
6085 eval "ac_cv_header_$ac_safe=no"
6087 rm -f conftest*
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_has_iconv_h=yes
6092 else
6093 echo "$ac_t""no" 1>&6
6094 ac_has_iconv_h=no
6097 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for langinfo.h" >&5
6100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6102 else
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 #include <langinfo.h>
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6112 rm -rf conftest*
6113 eval "ac_cv_header_$ac_safe=yes"
6114 else
6115 echo "$ac_err" >&5
6116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6118 rm -rf conftest*
6119 eval "ac_cv_header_$ac_safe=no"
6121 rm -f conftest*
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_has_langinfo_h=yes
6126 else
6127 echo "$ac_t""no" 1>&6
6128 ac_has_langinfo_h=no
6132 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6133 echo "configure:6134: checking for iconv in -liconv" >&5
6134 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6137 else
6138 ac_save_LIBS="$LIBS"
6139 LIBS="-liconv $LIBS"
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146 char iconv();
6148 int main() {
6149 iconv()
6150 ; return 0; }
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6153 rm -rf conftest*
6154 eval "ac_cv_lib_$ac_lib_var=yes"
6155 else
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 rm -rf conftest*
6159 eval "ac_cv_lib_$ac_lib_var=no"
6161 rm -f conftest*
6162 LIBS="$ac_save_LIBS"
6165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 libiconv="-liconv"
6168 else
6169 echo "$ac_t""no" 1>&6
6172 ac_save_LIBS="$LIBS"
6173 LIBS="$LIBS $libiconv"
6175 for ac_func in iconv_open iconv_close iconv nl_langinfo
6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_func" >&5
6179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181 else
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 /* System header to define __stub macros and hopefully few prototypes,
6186 which can conflict with char $ac_func(); below. */
6187 #include <assert.h>
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6191 char $ac_func();
6193 int main() {
6195 /* The GNU C library defines this for functions which it implements
6196 to always fail with ENOSYS. Some functions are actually named
6197 something starting with __ and the normal name is an alias. */
6198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6199 choke me
6200 #else
6201 $ac_func();
6202 #endif
6204 ; return 0; }
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207 rm -rf conftest*
6208 eval "ac_cv_func_$ac_func=yes"
6209 else
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 eval "ac_cv_func_$ac_func=no"
6215 rm -f conftest*
6218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6221 cat >> confdefs.h <<EOF
6222 #define $ac_tr_func 1
6225 ac_XPG2funcs=yes
6226 else
6227 echo "$ac_t""no" 1>&6
6228 ac_XPG2funcs=no
6230 done
6233 LIBS="$ac_save_LIBS"
6235 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6236 echo "configure:6237: checking for XPG2 wchar_t support" >&5
6237 if test x"$ac_has_iconv_h" = xyes &&
6238 test x"$ac_has_langinfo_h" = xyes &&
6239 test x"$ac_XPG2funcs" = xyes; then
6240 ac_XPG2_wchar_t=yes
6241 else
6242 ac_XPG2_wchar_t=no
6244 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6246 if test x"$ac_isoC99_wchar_t" = xyes &&
6247 test x"$ac_XPG2_wchar_t" = xyes; then
6248 cat >> confdefs.h <<\EOF
6249 #define _GLIBCXX_USE_WCHAR_T 1
6252 enable_wchar_t=yes
6255 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6256 echo "configure:6257: checking for enabled wchar_t specializations" >&5
6257 echo "$ac_t""$enable_wchar_t" 1>&6
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE_COPYSIGN 1
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_COPYSIGNF 1
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_FREXPF 1
6271 cat >> confdefs.h <<\EOF
6272 #define HAVE_HYPOT 1
6275 case "$target" in
6276 *-hpux10*)
6277 cat >> confdefs.h <<\EOF
6278 #define HAVE_FINITE 1
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_FINITEF 1
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_ISINF 1
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_ISINFF 1
6293 cat >> confdefs.h <<\EOF
6294 #define HAVE_ISNAN 1
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_ISNANF 1
6302 esac
6304 *-linux*)
6305 os_include_dir="os/gnu-linux"
6306 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6307 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6308 fp.h locale.h float.h inttypes.h
6310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6312 echo "configure:6313: checking for $ac_hdr" >&5
6313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 #include <$ac_hdr>
6321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6322 { (eval echo configure:6323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6324 if test -z "$ac_err"; then
6325 rm -rf conftest*
6326 eval "ac_cv_header_$ac_safe=yes"
6327 else
6328 echo "$ac_err" >&5
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 rm -rf conftest*
6332 eval "ac_cv_header_$ac_safe=no"
6334 rm -f conftest*
6336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6339 cat >> confdefs.h <<EOF
6340 #define $ac_tr_hdr 1
6343 else
6344 echo "$ac_t""no" 1>&6
6346 done
6348 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6351 # If we're not using GNU ld, then there's no point in even trying these
6352 # tests. Check for that first. We should have already tested for gld
6353 # by now (in libtool), but require it now just to be safe...
6354 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6355 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6358 # The name set by libtool depends on the version of libtool. Shame on us
6359 # for depending on an impl detail, but c'est la vie. Older versions used
6360 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6361 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6362 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6363 # set (hence we're using an older libtool), then set it.
6364 if test x${with_gnu_ld+set} != xset; then
6365 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6366 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6367 with_gnu_ld=no
6368 else
6369 with_gnu_ld=$ac_cv_prog_gnu_ld
6373 # Start by getting the version number. I think the libtool test already
6374 # does some of this, but throws away the result.
6376 ldver=`$LD --version 2>/dev/null | head -1 | \
6377 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6379 glibcxx_gnu_ld_version=`echo $ldver | \
6380 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6382 # Set --gc-sections.
6383 if test "$with_gnu_ld" = "notbroken"; then
6384 # GNU ld it is! Joy and bunny rabbits!
6386 # All these tests are for C++; save the language and the compiler flags.
6387 # Need to do this so that g++ won't try to link in libstdc++
6388 ac_test_CFLAGS="${CFLAGS+set}"
6389 ac_save_CFLAGS="$CFLAGS"
6390 CFLAGS='-x c++ -Wl,--gc-sections'
6392 # Check for -Wl,--gc-sections
6393 # XXX This test is broken at the moment, as symbols required for
6394 # linking are now in libsupc++ (not built yet.....). In addition,
6395 # this test has cored on solaris in the past. In addition,
6396 # --gc-sections doesn't really work at the moment (keeps on discarding
6397 # used sections, first .eh_frame and now some of the glibc sections for
6398 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6399 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6400 echo "configure:6401: checking for ld that supports -Wl,--gc-sections" >&5
6401 if test "$cross_compiling" = yes; then
6402 ac_sectionLDflags=yes
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6408 int main(void)
6410 try { throw 1; }
6411 catch (...) { };
6412 return 0;
6416 if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6417 then
6418 ac_sectionLDflags=yes
6419 else
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 rm -fr conftest*
6423 ac_sectionLDflags=no
6425 rm -fr conftest*
6428 if test "$ac_test_CFLAGS" = set; then
6429 CFLAGS="$ac_save_CFLAGS"
6430 else
6431 # this is the suspicious part
6432 CFLAGS=''
6434 if test "$ac_sectionLDflags" = "yes"; then
6435 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6437 echo "$ac_t""$ac_sectionLDflags" 1>&6
6440 # Set linker optimization flags.
6441 if test x"$with_gnu_ld" = x"yes"; then
6442 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6449 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6450 echo "configure:6451: checking for main in -lm" >&5
6451 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6455 ac_save_LIBS="$LIBS"
6456 LIBS="-lm $LIBS"
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6461 int main() {
6462 main()
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_lib_$ac_lib_var=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_lib_$ac_lib_var=no"
6474 rm -f conftest*
6475 LIBS="$ac_save_LIBS"
6478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6482 cat >> confdefs.h <<EOF
6483 #define $ac_tr_lib 1
6486 LIBS="-lm $LIBS"
6488 else
6489 echo "$ac_t""no" 1>&6
6492 for ac_func in nan copysignf
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498 else
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6504 #include <assert.h>
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char $ac_func();
6510 int main() {
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6516 choke me
6517 #else
6518 $ac_func();
6519 #endif
6521 ; return 0; }
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 rm -rf conftest*
6525 eval "ac_cv_func_$ac_func=yes"
6526 else
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 rm -rf conftest*
6530 eval "ac_cv_func_$ac_func=no"
6532 rm -f conftest*
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6542 else
6543 echo "$ac_t""no" 1>&6
6544 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6546 done
6549 for ac_func in __signbit
6551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6552 echo "configure:6553: checking for $ac_func" >&5
6553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6555 else
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 /* System header to define __stub macros and hopefully few prototypes,
6560 which can conflict with char $ac_func(); below. */
6561 #include <assert.h>
6562 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6565 char $ac_func();
6567 int main() {
6569 /* The GNU C library defines this for functions which it implements
6570 to always fail with ENOSYS. Some functions are actually named
6571 something starting with __ and the normal name is an alias. */
6572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6573 choke me
6574 #else
6575 $ac_func();
6576 #endif
6578 ; return 0; }
6580 if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 rm -rf conftest*
6582 eval "ac_cv_func_$ac_func=yes"
6583 else
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6586 rm -rf conftest*
6587 eval "ac_cv_func_$ac_func=no"
6589 rm -f conftest*
6592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6595 cat >> confdefs.h <<EOF
6596 #define $ac_tr_func 1
6599 else
6600 echo "$ac_t""no" 1>&6
6601 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6603 done
6605 for ac_func in __signbitf
6607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6608 echo "configure:6609: checking for $ac_func" >&5
6609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611 else
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616 which can conflict with char $ac_func(); below. */
6617 #include <assert.h>
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char $ac_func();
6623 int main() {
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629 choke me
6630 #else
6631 $ac_func();
6632 #endif
6634 ; return 0; }
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 rm -rf conftest*
6638 eval "ac_cv_func_$ac_func=yes"
6639 else
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 rm -rf conftest*
6643 eval "ac_cv_func_$ac_func=no"
6645 rm -f conftest*
6648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6651 cat >> confdefs.h <<EOF
6652 #define $ac_tr_func 1
6655 else
6656 echo "$ac_t""no" 1>&6
6657 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6659 done
6662 if test x$ac_cv_func_copysignl = x"yes"; then
6663 for ac_func in __signbitl
6665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_func" >&5
6667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6669 else
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* System header to define __stub macros and hopefully few prototypes,
6674 which can conflict with char $ac_func(); below. */
6675 #include <assert.h>
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char $ac_func();
6681 int main() {
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 choke me
6688 #else
6689 $ac_func();
6690 #endif
6692 ; return 0; }
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 rm -rf conftest*
6696 eval "ac_cv_func_$ac_func=yes"
6697 else
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 eval "ac_cv_func_$ac_func=no"
6703 rm -f conftest*
6706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6709 cat >> confdefs.h <<EOF
6710 #define $ac_tr_func 1
6713 else
6714 echo "$ac_t""no" 1>&6
6715 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6717 done
6721 if test -n "$LIBMATHOBJS"; then
6722 need_libmath=yes
6728 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6729 echo "configure:6730: checking for mbstate_t" >&5
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <wchar.h>
6734 int main() {
6735 mbstate_t teststate;
6736 ; return 0; }
6738 if { (eval echo configure:6739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6739 rm -rf conftest*
6740 have_mbstate_t=yes
6741 else
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6744 rm -rf conftest*
6745 have_mbstate_t=no
6747 rm -f conftest*
6748 echo "$ac_t""$have_mbstate_t" 1>&6
6749 if test x"$have_mbstate_t" = xyes; then
6750 cat >> confdefs.h <<\EOF
6751 #define HAVE_MBSTATE_T 1
6756 for ac_hdr in wchar.h
6758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_hdr" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <$ac_hdr>
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6773 rm -rf conftest*
6774 eval "ac_cv_header_$ac_safe=yes"
6775 else
6776 echo "$ac_err" >&5
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6779 rm -rf conftest*
6780 eval "ac_cv_header_$ac_safe=no"
6782 rm -f conftest*
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_hdr 1
6790 ac_has_wchar_h=yes
6791 else
6792 echo "$ac_t""no" 1>&6
6793 ac_has_wchar_h=no
6795 done
6797 for ac_hdr in wctype.h
6799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_hdr" >&5
6802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6804 else
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 #include <$ac_hdr>
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6813 if test -z "$ac_err"; then
6814 rm -rf conftest*
6815 eval "ac_cv_header_$ac_safe=yes"
6816 else
6817 echo "$ac_err" >&5
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6820 rm -rf conftest*
6821 eval "ac_cv_header_$ac_safe=no"
6823 rm -f conftest*
6825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_hdr 1
6831 ac_has_wctype_h=yes
6832 else
6833 echo "$ac_t""no" 1>&6
6834 ac_has_wctype_h=no
6836 done
6839 if test x"$ac_has_wchar_h" = xyes &&
6840 test x"$ac_has_wctype_h" = xyes &&
6841 test x"$enable_c_mbchar" != xno; then
6843 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6844 echo "configure:6845: checking for WCHAR_MIN and WCHAR_MAX" >&5
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 #include <wchar.h>
6849 int main() {
6850 int i = WCHAR_MIN; int j = WCHAR_MAX;
6851 ; return 0; }
6853 if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6854 rm -rf conftest*
6855 has_wchar_minmax=yes
6856 else
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 rm -rf conftest*
6860 has_wchar_minmax=no
6862 rm -f conftest*
6863 echo "$ac_t""$has_wchar_minmax" 1>&6
6865 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6866 echo "configure:6867: checking for WEOF" >&5
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6871 #include <wchar.h>
6872 #include <stddef.h>
6873 int main() {
6874 wint_t i = WEOF;
6875 ; return 0; }
6877 if { (eval echo configure:6878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6878 rm -rf conftest*
6879 has_weof=yes
6880 else
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 rm -rf conftest*
6884 has_weof=no
6886 rm -f conftest*
6887 echo "$ac_t""$has_weof" 1>&6
6889 ac_wfuncs=yes
6890 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6893 echo "configure:6894: checking for $ac_func" >&5
6894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6896 else
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 /* System header to define __stub macros and hopefully few prototypes,
6901 which can conflict with char $ac_func(); below. */
6902 #include <assert.h>
6903 /* Override any gcc2 internal prototype to avoid an error. */
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906 char $ac_func();
6908 int main() {
6910 /* The GNU C library defines this for functions which it implements
6911 to always fail with ENOSYS. Some functions are actually named
6912 something starting with __ and the normal name is an alias. */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 choke me
6915 #else
6916 $ac_func();
6917 #endif
6919 ; return 0; }
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6922 rm -rf conftest*
6923 eval "ac_cv_func_$ac_func=yes"
6924 else
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 rm -rf conftest*
6928 eval "ac_cv_func_$ac_func=no"
6930 rm -f conftest*
6933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6934 echo "$ac_t""yes" 1>&6
6935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6936 cat >> confdefs.h <<EOF
6937 #define $ac_tr_func 1
6940 else
6941 echo "$ac_t""no" 1>&6
6943 ac_wfuncs=no
6945 done
6948 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6949 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6950 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6951 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6952 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6953 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6956 echo "configure:6957: checking for $ac_func" >&5
6957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6959 else
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964 which can conflict with char $ac_func(); below. */
6965 #include <assert.h>
6966 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6969 char $ac_func();
6971 int main() {
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6977 choke me
6978 #else
6979 $ac_func();
6980 #endif
6982 ; return 0; }
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 rm -rf conftest*
6986 eval "ac_cv_func_$ac_func=yes"
6987 else
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 rm -rf conftest*
6991 eval "ac_cv_func_$ac_func=no"
6993 rm -f conftest*
6996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_func 1
7003 else
7004 echo "$ac_t""no" 1>&6
7006 ac_wfuncs=no
7008 done
7011 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7012 echo "configure:7013: checking for ISO C99 wchar_t support" >&5
7013 if test x"$has_weof" = xyes &&
7014 test x"$has_wchar_minmax" = xyes &&
7015 test x"$ac_wfuncs" = xyes; then
7016 ac_isoC99_wchar_t=yes
7017 else
7018 ac_isoC99_wchar_t=no
7020 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7022 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7023 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7024 echo "configure:7025: checking for iconv.h" >&5
7025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 #include <iconv.h>
7033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7034 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7036 if test -z "$ac_err"; then
7037 rm -rf conftest*
7038 eval "ac_cv_header_$ac_safe=yes"
7039 else
7040 echo "$ac_err" >&5
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 rm -rf conftest*
7044 eval "ac_cv_header_$ac_safe=no"
7046 rm -f conftest*
7048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_has_iconv_h=yes
7051 else
7052 echo "$ac_t""no" 1>&6
7053 ac_has_iconv_h=no
7056 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7057 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7058 echo "configure:7059: checking for langinfo.h" >&5
7059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7061 else
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7065 #include <langinfo.h>
7067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7068 { (eval echo configure:7069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7070 if test -z "$ac_err"; then
7071 rm -rf conftest*
7072 eval "ac_cv_header_$ac_safe=yes"
7073 else
7074 echo "$ac_err" >&5
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=no"
7080 rm -f conftest*
7082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ac_has_langinfo_h=yes
7085 else
7086 echo "$ac_t""no" 1>&6
7087 ac_has_langinfo_h=no
7091 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7092 echo "configure:7093: checking for iconv in -liconv" >&5
7093 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096 else
7097 ac_save_LIBS="$LIBS"
7098 LIBS="-liconv $LIBS"
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char iconv();
7107 int main() {
7108 iconv()
7109 ; return 0; }
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest*
7113 eval "ac_cv_lib_$ac_lib_var=yes"
7114 else
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=no"
7120 rm -f conftest*
7121 LIBS="$ac_save_LIBS"
7124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 libiconv="-liconv"
7127 else
7128 echo "$ac_t""no" 1>&6
7131 ac_save_LIBS="$LIBS"
7132 LIBS="$LIBS $libiconv"
7134 for ac_func in iconv_open iconv_close iconv nl_langinfo
7136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7137 echo "configure:7138: checking for $ac_func" >&5
7138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7140 else
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 /* System header to define __stub macros and hopefully few prototypes,
7145 which can conflict with char $ac_func(); below. */
7146 #include <assert.h>
7147 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7150 char $ac_func();
7152 int main() {
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7158 choke me
7159 #else
7160 $ac_func();
7161 #endif
7163 ; return 0; }
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7166 rm -rf conftest*
7167 eval "ac_cv_func_$ac_func=yes"
7168 else
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7171 rm -rf conftest*
7172 eval "ac_cv_func_$ac_func=no"
7174 rm -f conftest*
7177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7180 cat >> confdefs.h <<EOF
7181 #define $ac_tr_func 1
7184 ac_XPG2funcs=yes
7185 else
7186 echo "$ac_t""no" 1>&6
7187 ac_XPG2funcs=no
7189 done
7192 LIBS="$ac_save_LIBS"
7194 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7195 echo "configure:7196: checking for XPG2 wchar_t support" >&5
7196 if test x"$ac_has_iconv_h" = xyes &&
7197 test x"$ac_has_langinfo_h" = xyes &&
7198 test x"$ac_XPG2funcs" = xyes; then
7199 ac_XPG2_wchar_t=yes
7200 else
7201 ac_XPG2_wchar_t=no
7203 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7205 if test x"$ac_isoC99_wchar_t" = xyes &&
7206 test x"$ac_XPG2_wchar_t" = xyes; then
7207 cat >> confdefs.h <<\EOF
7208 #define _GLIBCXX_USE_WCHAR_T 1
7211 enable_wchar_t=yes
7214 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7215 echo "configure:7216: checking for enabled wchar_t specializations" >&5
7216 echo "$ac_t""$enable_wchar_t" 1>&6
7218 cat >> confdefs.h <<\EOF
7219 #define HAVE_COPYSIGN 1
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_COPYSIGNF 1
7226 cat >> confdefs.h <<\EOF
7227 #define HAVE_FINITE 1
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_FINITEF 1
7234 cat >> confdefs.h <<\EOF
7235 #define HAVE_FREXPF 1
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_HYPOTF 1
7242 cat >> confdefs.h <<\EOF
7243 #define HAVE_ISINF 1
7246 cat >> confdefs.h <<\EOF
7247 #define HAVE_ISINFF 1
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_ISNAN 1
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_ISNANF 1
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_SINCOS 1
7262 cat >> confdefs.h <<\EOF
7263 #define HAVE_SINCOSF 1
7266 if test x"long_double_math_on_this_cpu" = x"yes"; then
7267 cat >> confdefs.h <<\EOF
7268 #define HAVE_FINITEL 1
7271 cat >> confdefs.h <<\EOF
7272 #define HAVE_HYPOTL 1
7275 cat >> confdefs.h <<\EOF
7276 #define HAVE_ISINFL 1
7279 cat >> confdefs.h <<\EOF
7280 #define HAVE_ISNANL 1
7285 *-mingw32*)
7286 os_include_dir="os/mingw32"
7287 for ac_hdr in sys/types.h locale.h float.h
7289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_hdr" >&5
7292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7294 else
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 #include <$ac_hdr>
7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7303 if test -z "$ac_err"; then
7304 rm -rf conftest*
7305 eval "ac_cv_header_$ac_safe=yes"
7306 else
7307 echo "$ac_err" >&5
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 rm -rf conftest*
7311 eval "ac_cv_header_$ac_safe=no"
7313 rm -f conftest*
7315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7316 echo "$ac_t""yes" 1>&6
7317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7318 cat >> confdefs.h <<EOF
7319 #define $ac_tr_hdr 1
7322 else
7323 echo "$ac_t""no" 1>&6
7325 done
7328 # If we're not using GNU ld, then there's no point in even trying these
7329 # tests. Check for that first. We should have already tested for gld
7330 # by now (in libtool), but require it now just to be safe...
7331 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7332 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7335 # The name set by libtool depends on the version of libtool. Shame on us
7336 # for depending on an impl detail, but c'est la vie. Older versions used
7337 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7338 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7339 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7340 # set (hence we're using an older libtool), then set it.
7341 if test x${with_gnu_ld+set} != xset; then
7342 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7343 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7344 with_gnu_ld=no
7345 else
7346 with_gnu_ld=$ac_cv_prog_gnu_ld
7350 # Start by getting the version number. I think the libtool test already
7351 # does some of this, but throws away the result.
7353 ldver=`$LD --version 2>/dev/null | head -1 | \
7354 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7356 glibcxx_gnu_ld_version=`echo $ldver | \
7357 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7359 # Set --gc-sections.
7360 if test "$with_gnu_ld" = "notbroken"; then
7361 # GNU ld it is! Joy and bunny rabbits!
7363 # All these tests are for C++; save the language and the compiler flags.
7364 # Need to do this so that g++ won't try to link in libstdc++
7365 ac_test_CFLAGS="${CFLAGS+set}"
7366 ac_save_CFLAGS="$CFLAGS"
7367 CFLAGS='-x c++ -Wl,--gc-sections'
7369 # Check for -Wl,--gc-sections
7370 # XXX This test is broken at the moment, as symbols required for
7371 # linking are now in libsupc++ (not built yet.....). In addition,
7372 # this test has cored on solaris in the past. In addition,
7373 # --gc-sections doesn't really work at the moment (keeps on discarding
7374 # used sections, first .eh_frame and now some of the glibc sections for
7375 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7376 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7377 echo "configure:7378: checking for ld that supports -Wl,--gc-sections" >&5
7378 if test "$cross_compiling" = yes; then
7379 ac_sectionLDflags=yes
7380 else
7381 cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7385 int main(void)
7387 try { throw 1; }
7388 catch (...) { };
7389 return 0;
7393 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7394 then
7395 ac_sectionLDflags=yes
7396 else
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7399 rm -fr conftest*
7400 ac_sectionLDflags=no
7402 rm -fr conftest*
7405 if test "$ac_test_CFLAGS" = set; then
7406 CFLAGS="$ac_save_CFLAGS"
7407 else
7408 # this is the suspicious part
7409 CFLAGS=''
7411 if test "$ac_sectionLDflags" = "yes"; then
7412 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7414 echo "$ac_t""$ac_sectionLDflags" 1>&6
7417 # Set linker optimization flags.
7418 if test x"$with_gnu_ld" = x"yes"; then
7419 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7426 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7427 echo "configure:7428: checking for main in -lm" >&5
7428 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432 ac_save_LIBS="$LIBS"
7433 LIBS="-lm $LIBS"
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7438 int main() {
7439 main()
7440 ; return 0; }
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 rm -rf conftest*
7444 eval "ac_cv_lib_$ac_lib_var=yes"
7445 else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=no"
7451 rm -f conftest*
7452 LIBS="$ac_save_LIBS"
7455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7459 cat >> confdefs.h <<EOF
7460 #define $ac_tr_lib 1
7463 LIBS="-lm $LIBS"
7465 else
7466 echo "$ac_t""no" 1>&6
7469 for ac_func in nan copysignf
7471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7472 echo "configure:7473: checking for $ac_func" >&5
7473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7475 else
7476 cat > conftest.$ac_ext <<EOF
7477 #line 7478 "configure"
7478 #include "confdefs.h"
7479 /* System header to define __stub macros and hopefully few prototypes,
7480 which can conflict with char $ac_func(); below. */
7481 #include <assert.h>
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char $ac_func();
7487 int main() {
7489 /* The GNU C library defines this for functions which it implements
7490 to always fail with ENOSYS. Some functions are actually named
7491 something starting with __ and the normal name is an alias. */
7492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 choke me
7494 #else
7495 $ac_func();
7496 #endif
7498 ; return 0; }
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 rm -rf conftest*
7502 eval "ac_cv_func_$ac_func=yes"
7503 else
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 rm -rf conftest*
7507 eval "ac_cv_func_$ac_func=no"
7509 rm -f conftest*
7512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7513 echo "$ac_t""yes" 1>&6
7514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7515 cat >> confdefs.h <<EOF
7516 #define $ac_tr_func 1
7519 else
7520 echo "$ac_t""no" 1>&6
7521 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7523 done
7526 for ac_func in __signbit
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7532 else
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7538 #include <assert.h>
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542 char $ac_func();
7544 int main() {
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 choke me
7551 #else
7552 $ac_func();
7553 #endif
7555 ; return 0; }
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 rm -rf conftest*
7559 eval "ac_cv_func_$ac_func=yes"
7560 else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_func_$ac_func=no"
7566 rm -f conftest*
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h <<EOF
7573 #define $ac_tr_func 1
7576 else
7577 echo "$ac_t""no" 1>&6
7578 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7580 done
7582 for ac_func in __signbitf
7584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_func" >&5
7586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7588 else
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func(); below. */
7594 #include <assert.h>
7595 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func();
7600 int main() {
7602 /* The GNU C library defines this for functions which it implements
7603 to always fail with ENOSYS. Some functions are actually named
7604 something starting with __ and the normal name is an alias. */
7605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7606 choke me
7607 #else
7608 $ac_func();
7609 #endif
7611 ; return 0; }
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 rm -rf conftest*
7615 eval "ac_cv_func_$ac_func=yes"
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 eval "ac_cv_func_$ac_func=no"
7622 rm -f conftest*
7625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_func 1
7632 else
7633 echo "$ac_t""no" 1>&6
7634 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7636 done
7639 if test x$ac_cv_func_copysignl = x"yes"; then
7640 for ac_func in __signbitl
7642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7643 echo "configure:7644: checking for $ac_func" >&5
7644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */
7652 #include <assert.h>
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char $ac_func();
7658 int main() {
7660 /* The GNU C library defines this for functions which it implements
7661 to always fail with ENOSYS. Some functions are actually named
7662 something starting with __ and the normal name is an alias. */
7663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7664 choke me
7665 #else
7666 $ac_func();
7667 #endif
7669 ; return 0; }
7671 if { (eval echo configure:7672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672 rm -rf conftest*
7673 eval "ac_cv_func_$ac_func=yes"
7674 else
7675 echo "configure: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 rm -rf conftest*
7678 eval "ac_cv_func_$ac_func=no"
7680 rm -f conftest*
7683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7684 echo "$ac_t""yes" 1>&6
7685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7686 cat >> confdefs.h <<EOF
7687 #define $ac_tr_func 1
7690 else
7691 echo "$ac_t""no" 1>&6
7692 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7694 done
7698 if test -n "$LIBMATHOBJS"; then
7699 need_libmath=yes
7705 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7706 echo "configure:7707: checking for mbstate_t" >&5
7707 cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 #include <wchar.h>
7711 int main() {
7712 mbstate_t teststate;
7713 ; return 0; }
7715 if { (eval echo configure:7716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7716 rm -rf conftest*
7717 have_mbstate_t=yes
7718 else
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 have_mbstate_t=no
7724 rm -f conftest*
7725 echo "$ac_t""$have_mbstate_t" 1>&6
7726 if test x"$have_mbstate_t" = xyes; then
7727 cat >> confdefs.h <<\EOF
7728 #define HAVE_MBSTATE_T 1
7733 for ac_hdr in wchar.h
7735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_hdr" >&5
7738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 #include <$ac_hdr>
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7750 rm -rf conftest*
7751 eval "ac_cv_header_$ac_safe=yes"
7752 else
7753 echo "$ac_err" >&5
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 rm -rf conftest*
7757 eval "ac_cv_header_$ac_safe=no"
7759 rm -f conftest*
7761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7764 cat >> confdefs.h <<EOF
7765 #define $ac_tr_hdr 1
7767 ac_has_wchar_h=yes
7768 else
7769 echo "$ac_t""no" 1>&6
7770 ac_has_wchar_h=no
7772 done
7774 for ac_hdr in wctype.h
7776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_hdr" >&5
7779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 #include <$ac_hdr>
7787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7788 { (eval echo configure:7789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7790 if test -z "$ac_err"; then
7791 rm -rf conftest*
7792 eval "ac_cv_header_$ac_safe=yes"
7793 else
7794 echo "$ac_err" >&5
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 rm -rf conftest*
7798 eval "ac_cv_header_$ac_safe=no"
7800 rm -f conftest*
7802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7805 cat >> confdefs.h <<EOF
7806 #define $ac_tr_hdr 1
7808 ac_has_wctype_h=yes
7809 else
7810 echo "$ac_t""no" 1>&6
7811 ac_has_wctype_h=no
7813 done
7816 if test x"$ac_has_wchar_h" = xyes &&
7817 test x"$ac_has_wctype_h" = xyes &&
7818 test x"$enable_c_mbchar" != xno; then
7820 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7821 echo "configure:7822: checking for WCHAR_MIN and WCHAR_MAX" >&5
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 #include <wchar.h>
7826 int main() {
7827 int i = WCHAR_MIN; int j = WCHAR_MAX;
7828 ; return 0; }
7830 if { (eval echo configure:7831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7831 rm -rf conftest*
7832 has_wchar_minmax=yes
7833 else
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 rm -rf conftest*
7837 has_wchar_minmax=no
7839 rm -f conftest*
7840 echo "$ac_t""$has_wchar_minmax" 1>&6
7842 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7843 echo "configure:7844: checking for WEOF" >&5
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7848 #include <wchar.h>
7849 #include <stddef.h>
7850 int main() {
7851 wint_t i = WEOF;
7852 ; return 0; }
7854 if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 rm -rf conftest*
7856 has_weof=yes
7857 else
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 rm -rf conftest*
7861 has_weof=no
7863 rm -f conftest*
7864 echo "$ac_t""$has_weof" 1>&6
7866 ac_wfuncs=yes
7867 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5
7871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char $ac_func(); below. */
7879 #include <assert.h>
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char $ac_func();
7885 int main() {
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 $ac_func();
7894 #endif
7896 ; return 0; }
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 rm -rf conftest*
7900 eval "ac_cv_func_$ac_func=yes"
7901 else
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 rm -rf conftest*
7905 eval "ac_cv_func_$ac_func=no"
7907 rm -f conftest*
7910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7913 cat >> confdefs.h <<EOF
7914 #define $ac_tr_func 1
7917 else
7918 echo "$ac_t""no" 1>&6
7920 ac_wfuncs=no
7922 done
7925 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7926 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7927 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7928 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7929 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7930 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7933 echo "configure:7934: checking for $ac_func" >&5
7934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7935 echo $ac_n "(cached) $ac_c" 1>&6
7936 else
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 /* System header to define __stub macros and hopefully few prototypes,
7941 which can conflict with char $ac_func(); below. */
7942 #include <assert.h>
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946 char $ac_func();
7948 int main() {
7950 /* The GNU C library defines this for functions which it implements
7951 to always fail with ENOSYS. Some functions are actually named
7952 something starting with __ and the normal name is an alias. */
7953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7954 choke me
7955 #else
7956 $ac_func();
7957 #endif
7959 ; return 0; }
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 rm -rf conftest*
7963 eval "ac_cv_func_$ac_func=yes"
7964 else
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 rm -rf conftest*
7968 eval "ac_cv_func_$ac_func=no"
7970 rm -f conftest*
7973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7976 cat >> confdefs.h <<EOF
7977 #define $ac_tr_func 1
7980 else
7981 echo "$ac_t""no" 1>&6
7983 ac_wfuncs=no
7985 done
7988 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7989 echo "configure:7990: checking for ISO C99 wchar_t support" >&5
7990 if test x"$has_weof" = xyes &&
7991 test x"$has_wchar_minmax" = xyes &&
7992 test x"$ac_wfuncs" = xyes; then
7993 ac_isoC99_wchar_t=yes
7994 else
7995 ac_isoC99_wchar_t=no
7997 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7999 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8000 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8001 echo "configure:8002: checking for iconv.h" >&5
8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8004 else
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 #include <iconv.h>
8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8013 if test -z "$ac_err"; then
8014 rm -rf conftest*
8015 eval "ac_cv_header_$ac_safe=yes"
8016 else
8017 echo "$ac_err" >&5
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_header_$ac_safe=no"
8023 rm -f conftest*
8025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_has_iconv_h=yes
8028 else
8029 echo "$ac_t""no" 1>&6
8030 ac_has_iconv_h=no
8033 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8034 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8035 echo "configure:8036: checking for langinfo.h" >&5
8036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8038 else
8039 cat > conftest.$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8042 #include <langinfo.h>
8044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8045 { (eval echo configure:8046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8047 if test -z "$ac_err"; then
8048 rm -rf conftest*
8049 eval "ac_cv_header_$ac_safe=yes"
8050 else
8051 echo "$ac_err" >&5
8052 echo "configure: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 rm -rf conftest*
8055 eval "ac_cv_header_$ac_safe=no"
8057 rm -f conftest*
8059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_has_langinfo_h=yes
8062 else
8063 echo "$ac_t""no" 1>&6
8064 ac_has_langinfo_h=no
8068 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8069 echo "configure:8070: checking for iconv in -liconv" >&5
8070 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8072 echo $ac_n "(cached) $ac_c" 1>&6
8073 else
8074 ac_save_LIBS="$LIBS"
8075 LIBS="-liconv $LIBS"
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082 char iconv();
8084 int main() {
8085 iconv()
8086 ; return 0; }
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 rm -rf conftest*
8090 eval "ac_cv_lib_$ac_lib_var=yes"
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -rf conftest*
8095 eval "ac_cv_lib_$ac_lib_var=no"
8097 rm -f conftest*
8098 LIBS="$ac_save_LIBS"
8101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8102 echo "$ac_t""yes" 1>&6
8103 libiconv="-liconv"
8104 else
8105 echo "$ac_t""no" 1>&6
8108 ac_save_LIBS="$LIBS"
8109 LIBS="$LIBS $libiconv"
8111 for ac_func in iconv_open iconv_close iconv nl_langinfo
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char $ac_func();
8129 int main() {
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 choke me
8136 #else
8137 $ac_func();
8138 #endif
8140 ; return 0; }
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=yes"
8145 else
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=no"
8151 rm -f conftest*
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8161 ac_XPG2funcs=yes
8162 else
8163 echo "$ac_t""no" 1>&6
8164 ac_XPG2funcs=no
8166 done
8169 LIBS="$ac_save_LIBS"
8171 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8172 echo "configure:8173: checking for XPG2 wchar_t support" >&5
8173 if test x"$ac_has_iconv_h" = xyes &&
8174 test x"$ac_has_langinfo_h" = xyes &&
8175 test x"$ac_XPG2funcs" = xyes; then
8176 ac_XPG2_wchar_t=yes
8177 else
8178 ac_XPG2_wchar_t=no
8180 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8182 if test x"$ac_isoC99_wchar_t" = xyes &&
8183 test x"$ac_XPG2_wchar_t" = xyes; then
8184 cat >> confdefs.h <<\EOF
8185 #define _GLIBCXX_USE_WCHAR_T 1
8188 enable_wchar_t=yes
8191 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8192 echo "configure:8193: checking for enabled wchar_t specializations" >&5
8193 echo "$ac_t""$enable_wchar_t" 1>&6
8196 *-netbsd*)
8197 os_include_dir="os/bsd/netbsd"
8198 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8199 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8200 fp.h locale.h float.h inttypes.h
8202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_hdr" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <$ac_hdr>
8213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8217 rm -rf conftest*
8218 eval "ac_cv_header_$ac_safe=yes"
8219 else
8220 echo "$ac_err" >&5
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 rm -rf conftest*
8224 eval "ac_cv_header_$ac_safe=no"
8226 rm -f conftest*
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8231 cat >> confdefs.h <<EOF
8232 #define $ac_tr_hdr 1
8235 else
8236 echo "$ac_t""no" 1>&6
8238 done
8240 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8243 # If we're not using GNU ld, then there's no point in even trying these
8244 # tests. Check for that first. We should have already tested for gld
8245 # by now (in libtool), but require it now just to be safe...
8246 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8247 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8250 # The name set by libtool depends on the version of libtool. Shame on us
8251 # for depending on an impl detail, but c'est la vie. Older versions used
8252 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8253 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8254 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8255 # set (hence we're using an older libtool), then set it.
8256 if test x${with_gnu_ld+set} != xset; then
8257 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8258 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8259 with_gnu_ld=no
8260 else
8261 with_gnu_ld=$ac_cv_prog_gnu_ld
8265 # Start by getting the version number. I think the libtool test already
8266 # does some of this, but throws away the result.
8268 ldver=`$LD --version 2>/dev/null | head -1 | \
8269 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8271 glibcxx_gnu_ld_version=`echo $ldver | \
8272 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8274 # Set --gc-sections.
8275 if test "$with_gnu_ld" = "notbroken"; then
8276 # GNU ld it is! Joy and bunny rabbits!
8278 # All these tests are for C++; save the language and the compiler flags.
8279 # Need to do this so that g++ won't try to link in libstdc++
8280 ac_test_CFLAGS="${CFLAGS+set}"
8281 ac_save_CFLAGS="$CFLAGS"
8282 CFLAGS='-x c++ -Wl,--gc-sections'
8284 # Check for -Wl,--gc-sections
8285 # XXX This test is broken at the moment, as symbols required for
8286 # linking are now in libsupc++ (not built yet.....). In addition,
8287 # this test has cored on solaris in the past. In addition,
8288 # --gc-sections doesn't really work at the moment (keeps on discarding
8289 # used sections, first .eh_frame and now some of the glibc sections for
8290 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8291 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8292 echo "configure:8293: checking for ld that supports -Wl,--gc-sections" >&5
8293 if test "$cross_compiling" = yes; then
8294 ac_sectionLDflags=yes
8295 else
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8300 int main(void)
8302 try { throw 1; }
8303 catch (...) { };
8304 return 0;
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8309 then
8310 ac_sectionLDflags=yes
8311 else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -fr conftest*
8315 ac_sectionLDflags=no
8317 rm -fr conftest*
8320 if test "$ac_test_CFLAGS" = set; then
8321 CFLAGS="$ac_save_CFLAGS"
8322 else
8323 # this is the suspicious part
8324 CFLAGS=''
8326 if test "$ac_sectionLDflags" = "yes"; then
8327 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8329 echo "$ac_t""$ac_sectionLDflags" 1>&6
8332 # Set linker optimization flags.
8333 if test x"$with_gnu_ld" = x"yes"; then
8334 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8341 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8342 echo "configure:8343: checking for main in -lm" >&5
8343 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8347 ac_save_LIBS="$LIBS"
8348 LIBS="-lm $LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8353 int main() {
8354 main()
8355 ; return 0; }
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8358 rm -rf conftest*
8359 eval "ac_cv_lib_$ac_lib_var=yes"
8360 else
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 rm -rf conftest*
8364 eval "ac_cv_lib_$ac_lib_var=no"
8366 rm -f conftest*
8367 LIBS="$ac_save_LIBS"
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8372 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8374 cat >> confdefs.h <<EOF
8375 #define $ac_tr_lib 1
8378 LIBS="-lm $LIBS"
8380 else
8381 echo "$ac_t""no" 1>&6
8384 for ac_func in nan copysignf
8386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8387 echo "configure:8388: checking for $ac_func" >&5
8388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390 else
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 /* System header to define __stub macros and hopefully few prototypes,
8395 which can conflict with char $ac_func(); below. */
8396 #include <assert.h>
8397 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char $ac_func();
8402 int main() {
8404 /* The GNU C library defines this for functions which it implements
8405 to always fail with ENOSYS. Some functions are actually named
8406 something starting with __ and the normal name is an alias. */
8407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8408 choke me
8409 #else
8410 $ac_func();
8411 #endif
8413 ; return 0; }
8415 if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8416 rm -rf conftest*
8417 eval "ac_cv_func_$ac_func=yes"
8418 else
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 rm -rf conftest*
8422 eval "ac_cv_func_$ac_func=no"
8424 rm -f conftest*
8427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8428 echo "$ac_t""yes" 1>&6
8429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8430 cat >> confdefs.h <<EOF
8431 #define $ac_tr_func 1
8434 else
8435 echo "$ac_t""no" 1>&6
8436 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8438 done
8441 for ac_func in __signbit
8443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8444 echo "configure:8445: checking for $ac_func" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char $ac_func(); below. */
8453 #include <assert.h>
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8457 char $ac_func();
8459 int main() {
8461 /* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 choke me
8466 #else
8467 $ac_func();
8468 #endif
8470 ; return 0; }
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473 rm -rf conftest*
8474 eval "ac_cv_func_$ac_func=yes"
8475 else
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8478 rm -rf conftest*
8479 eval "ac_cv_func_$ac_func=no"
8481 rm -f conftest*
8484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8487 cat >> confdefs.h <<EOF
8488 #define $ac_tr_func 1
8491 else
8492 echo "$ac_t""no" 1>&6
8493 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8495 done
8497 for ac_func in __signbitf
8499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8500 echo "configure:8501: checking for $ac_func" >&5
8501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8503 else
8504 cat > conftest.$ac_ext <<EOF
8505 #line 8506 "configure"
8506 #include "confdefs.h"
8507 /* System header to define __stub macros and hopefully few prototypes,
8508 which can conflict with char $ac_func(); below. */
8509 #include <assert.h>
8510 /* Override any gcc2 internal prototype to avoid an error. */
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513 char $ac_func();
8515 int main() {
8517 /* The GNU C library defines this for functions which it implements
8518 to always fail with ENOSYS. Some functions are actually named
8519 something starting with __ and the normal name is an alias. */
8520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8521 choke me
8522 #else
8523 $ac_func();
8524 #endif
8526 ; return 0; }
8528 if { (eval echo configure:8529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8529 rm -rf conftest*
8530 eval "ac_cv_func_$ac_func=yes"
8531 else
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 rm -rf conftest*
8535 eval "ac_cv_func_$ac_func=no"
8537 rm -f conftest*
8540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8541 echo "$ac_t""yes" 1>&6
8542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8543 cat >> confdefs.h <<EOF
8544 #define $ac_tr_func 1
8547 else
8548 echo "$ac_t""no" 1>&6
8549 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8551 done
8554 if test x$ac_cv_func_copysignl = x"yes"; then
8555 for ac_func in __signbitl
8557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8558 echo "configure:8559: checking for $ac_func" >&5
8559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 /* System header to define __stub macros and hopefully few prototypes,
8566 which can conflict with char $ac_func(); below. */
8567 #include <assert.h>
8568 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8571 char $ac_func();
8573 int main() {
8575 /* The GNU C library defines this for functions which it implements
8576 to always fail with ENOSYS. Some functions are actually named
8577 something starting with __ and the normal name is an alias. */
8578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8579 choke me
8580 #else
8581 $ac_func();
8582 #endif
8584 ; return 0; }
8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8587 rm -rf conftest*
8588 eval "ac_cv_func_$ac_func=yes"
8589 else
8590 echo "configure: failed program was:" >&5
8591 cat conftest.$ac_ext >&5
8592 rm -rf conftest*
8593 eval "ac_cv_func_$ac_func=no"
8595 rm -f conftest*
8598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8599 echo "$ac_t""yes" 1>&6
8600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8601 cat >> confdefs.h <<EOF
8602 #define $ac_tr_func 1
8605 else
8606 echo "$ac_t""no" 1>&6
8607 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8609 done
8613 if test -n "$LIBMATHOBJS"; then
8614 need_libmath=yes
8620 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8621 echo "configure:8622: checking for mbstate_t" >&5
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 #include <wchar.h>
8626 int main() {
8627 mbstate_t teststate;
8628 ; return 0; }
8630 if { (eval echo configure:8631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8631 rm -rf conftest*
8632 have_mbstate_t=yes
8633 else
8634 echo "configure: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8636 rm -rf conftest*
8637 have_mbstate_t=no
8639 rm -f conftest*
8640 echo "$ac_t""$have_mbstate_t" 1>&6
8641 if test x"$have_mbstate_t" = xyes; then
8642 cat >> confdefs.h <<\EOF
8643 #define HAVE_MBSTATE_T 1
8648 for ac_hdr in wchar.h
8650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8652 echo "configure:8653: checking for $ac_hdr" >&5
8653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655 else
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 #include <$ac_hdr>
8661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8662 { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8664 if test -z "$ac_err"; then
8665 rm -rf conftest*
8666 eval "ac_cv_header_$ac_safe=yes"
8667 else
8668 echo "$ac_err" >&5
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 rm -rf conftest*
8672 eval "ac_cv_header_$ac_safe=no"
8674 rm -f conftest*
8676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8679 cat >> confdefs.h <<EOF
8680 #define $ac_tr_hdr 1
8682 ac_has_wchar_h=yes
8683 else
8684 echo "$ac_t""no" 1>&6
8685 ac_has_wchar_h=no
8687 done
8689 for ac_hdr in wctype.h
8691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_hdr" >&5
8694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8696 else
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 #include <$ac_hdr>
8702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8703 { (eval echo configure:8704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8705 if test -z "$ac_err"; then
8706 rm -rf conftest*
8707 eval "ac_cv_header_$ac_safe=yes"
8708 else
8709 echo "$ac_err" >&5
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 rm -rf conftest*
8713 eval "ac_cv_header_$ac_safe=no"
8715 rm -f conftest*
8717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8720 cat >> confdefs.h <<EOF
8721 #define $ac_tr_hdr 1
8723 ac_has_wctype_h=yes
8724 else
8725 echo "$ac_t""no" 1>&6
8726 ac_has_wctype_h=no
8728 done
8731 if test x"$ac_has_wchar_h" = xyes &&
8732 test x"$ac_has_wctype_h" = xyes &&
8733 test x"$enable_c_mbchar" != xno; then
8735 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8736 echo "configure:8737: checking for WCHAR_MIN and WCHAR_MAX" >&5
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <wchar.h>
8741 int main() {
8742 int i = WCHAR_MIN; int j = WCHAR_MAX;
8743 ; return 0; }
8745 if { (eval echo configure:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8746 rm -rf conftest*
8747 has_wchar_minmax=yes
8748 else
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8751 rm -rf conftest*
8752 has_wchar_minmax=no
8754 rm -f conftest*
8755 echo "$ac_t""$has_wchar_minmax" 1>&6
8757 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8758 echo "configure:8759: checking for WEOF" >&5
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8763 #include <wchar.h>
8764 #include <stddef.h>
8765 int main() {
8766 wint_t i = WEOF;
8767 ; return 0; }
8769 if { (eval echo configure:8770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770 rm -rf conftest*
8771 has_weof=yes
8772 else
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 rm -rf conftest*
8776 has_weof=no
8778 rm -f conftest*
8779 echo "$ac_t""$has_weof" 1>&6
8781 ac_wfuncs=yes
8782 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8785 echo "configure:8786: checking for $ac_func" >&5
8786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788 else
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8792 /* System header to define __stub macros and hopefully few prototypes,
8793 which can conflict with char $ac_func(); below. */
8794 #include <assert.h>
8795 /* Override any gcc2 internal prototype to avoid an error. */
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8798 char $ac_func();
8800 int main() {
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8806 choke me
8807 #else
8808 $ac_func();
8809 #endif
8811 ; return 0; }
8813 if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814 rm -rf conftest*
8815 eval "ac_cv_func_$ac_func=yes"
8816 else
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 rm -rf conftest*
8820 eval "ac_cv_func_$ac_func=no"
8822 rm -f conftest*
8825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8828 cat >> confdefs.h <<EOF
8829 #define $ac_tr_func 1
8832 else
8833 echo "$ac_t""no" 1>&6
8835 ac_wfuncs=no
8837 done
8840 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8841 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8842 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8843 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8844 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8845 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8848 echo "configure:8849: checking for $ac_func" >&5
8849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8851 else
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* System header to define __stub macros and hopefully few prototypes,
8856 which can conflict with char $ac_func(); below. */
8857 #include <assert.h>
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861 char $ac_func();
8863 int main() {
8865 /* The GNU C library defines this for functions which it implements
8866 to always fail with ENOSYS. Some functions are actually named
8867 something starting with __ and the normal name is an alias. */
8868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8869 choke me
8870 #else
8871 $ac_func();
8872 #endif
8874 ; return 0; }
8876 if { (eval echo configure:8877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8877 rm -rf conftest*
8878 eval "ac_cv_func_$ac_func=yes"
8879 else
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8882 rm -rf conftest*
8883 eval "ac_cv_func_$ac_func=no"
8885 rm -f conftest*
8888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8889 echo "$ac_t""yes" 1>&6
8890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8891 cat >> confdefs.h <<EOF
8892 #define $ac_tr_func 1
8895 else
8896 echo "$ac_t""no" 1>&6
8898 ac_wfuncs=no
8900 done
8903 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8904 echo "configure:8905: checking for ISO C99 wchar_t support" >&5
8905 if test x"$has_weof" = xyes &&
8906 test x"$has_wchar_minmax" = xyes &&
8907 test x"$ac_wfuncs" = xyes; then
8908 ac_isoC99_wchar_t=yes
8909 else
8910 ac_isoC99_wchar_t=no
8912 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8914 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8915 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8916 echo "configure:8917: checking for iconv.h" >&5
8917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8919 else
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8923 #include <iconv.h>
8925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8926 { (eval echo configure:8927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8928 if test -z "$ac_err"; then
8929 rm -rf conftest*
8930 eval "ac_cv_header_$ac_safe=yes"
8931 else
8932 echo "$ac_err" >&5
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_header_$ac_safe=no"
8938 rm -f conftest*
8940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8941 echo "$ac_t""yes" 1>&6
8942 ac_has_iconv_h=yes
8943 else
8944 echo "$ac_t""no" 1>&6
8945 ac_has_iconv_h=no
8948 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8949 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8950 echo "configure:8951: checking for langinfo.h" >&5
8951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 #include <langinfo.h>
8959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8960 { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8962 if test -z "$ac_err"; then
8963 rm -rf conftest*
8964 eval "ac_cv_header_$ac_safe=yes"
8965 else
8966 echo "$ac_err" >&5
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 eval "ac_cv_header_$ac_safe=no"
8972 rm -f conftest*
8974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8975 echo "$ac_t""yes" 1>&6
8976 ac_has_langinfo_h=yes
8977 else
8978 echo "$ac_t""no" 1>&6
8979 ac_has_langinfo_h=no
8983 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8984 echo "configure:8985: checking for iconv in -liconv" >&5
8985 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988 else
8989 ac_save_LIBS="$LIBS"
8990 LIBS="-liconv $LIBS"
8991 cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8994 /* Override any gcc2 internal prototype to avoid an error. */
8995 /* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8997 char iconv();
8999 int main() {
9000 iconv()
9001 ; return 0; }
9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9004 rm -rf conftest*
9005 eval "ac_cv_lib_$ac_lib_var=yes"
9006 else
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -rf conftest*
9010 eval "ac_cv_lib_$ac_lib_var=no"
9012 rm -f conftest*
9013 LIBS="$ac_save_LIBS"
9016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9017 echo "$ac_t""yes" 1>&6
9018 libiconv="-liconv"
9019 else
9020 echo "$ac_t""no" 1>&6
9023 ac_save_LIBS="$LIBS"
9024 LIBS="$LIBS $libiconv"
9026 for ac_func in iconv_open iconv_close iconv nl_langinfo
9028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9029 echo "configure:9030: checking for $ac_func" >&5
9030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032 else
9033 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure"
9035 #include "confdefs.h"
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func(); below. */
9038 #include <assert.h>
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char $ac_func();
9044 int main() {
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050 choke me
9051 #else
9052 $ac_func();
9053 #endif
9055 ; return 0; }
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 rm -rf conftest*
9059 eval "ac_cv_func_$ac_func=yes"
9060 else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -rf conftest*
9064 eval "ac_cv_func_$ac_func=no"
9066 rm -f conftest*
9069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9072 cat >> confdefs.h <<EOF
9073 #define $ac_tr_func 1
9076 ac_XPG2funcs=yes
9077 else
9078 echo "$ac_t""no" 1>&6
9079 ac_XPG2funcs=no
9081 done
9084 LIBS="$ac_save_LIBS"
9086 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9087 echo "configure:9088: checking for XPG2 wchar_t support" >&5
9088 if test x"$ac_has_iconv_h" = xyes &&
9089 test x"$ac_has_langinfo_h" = xyes &&
9090 test x"$ac_XPG2funcs" = xyes; then
9091 ac_XPG2_wchar_t=yes
9092 else
9093 ac_XPG2_wchar_t=no
9095 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9097 if test x"$ac_isoC99_wchar_t" = xyes &&
9098 test x"$ac_XPG2_wchar_t" = xyes; then
9099 cat >> confdefs.h <<\EOF
9100 #define _GLIBCXX_USE_WCHAR_T 1
9103 enable_wchar_t=yes
9106 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9107 echo "configure:9108: checking for enabled wchar_t specializations" >&5
9108 echo "$ac_t""$enable_wchar_t" 1>&6
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_COPYSIGN 1
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_COPYSIGNF 1
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_FINITEF 1
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_FINITE 1
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_FREXPF 1
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_HYPOTF 1
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_ISINF 1
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_ISINFF 1
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_ISNAN 1
9146 cat >> confdefs.h <<\EOF
9147 #define HAVE_ISNANF 1
9150 if test x"long_double_math_on_this_cpu" = x"yes"; then
9151 cat >> confdefs.h <<\EOF
9152 #define HAVE_FINITEL 1
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_ISINFL 1
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_ISNANL 1
9165 *-qnx6.1* | *-qnx6.2*)
9166 os_include_dir="os/qnx/qnx6.1"
9167 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9170 # If we're not using GNU ld, then there's no point in even trying these
9171 # tests. Check for that first. We should have already tested for gld
9172 # by now (in libtool), but require it now just to be safe...
9173 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9174 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9177 # The name set by libtool depends on the version of libtool. Shame on us
9178 # for depending on an impl detail, but c'est la vie. Older versions used
9179 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9180 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9181 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9182 # set (hence we're using an older libtool), then set it.
9183 if test x${with_gnu_ld+set} != xset; then
9184 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9185 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9186 with_gnu_ld=no
9187 else
9188 with_gnu_ld=$ac_cv_prog_gnu_ld
9192 # Start by getting the version number. I think the libtool test already
9193 # does some of this, but throws away the result.
9195 ldver=`$LD --version 2>/dev/null | head -1 | \
9196 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9198 glibcxx_gnu_ld_version=`echo $ldver | \
9199 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9201 # Set --gc-sections.
9202 if test "$with_gnu_ld" = "notbroken"; then
9203 # GNU ld it is! Joy and bunny rabbits!
9205 # All these tests are for C++; save the language and the compiler flags.
9206 # Need to do this so that g++ won't try to link in libstdc++
9207 ac_test_CFLAGS="${CFLAGS+set}"
9208 ac_save_CFLAGS="$CFLAGS"
9209 CFLAGS='-x c++ -Wl,--gc-sections'
9211 # Check for -Wl,--gc-sections
9212 # XXX This test is broken at the moment, as symbols required for
9213 # linking are now in libsupc++ (not built yet.....). In addition,
9214 # this test has cored on solaris in the past. In addition,
9215 # --gc-sections doesn't really work at the moment (keeps on discarding
9216 # used sections, first .eh_frame and now some of the glibc sections for
9217 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9218 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9219 echo "configure:9220: checking for ld that supports -Wl,--gc-sections" >&5
9220 if test "$cross_compiling" = yes; then
9221 ac_sectionLDflags=yes
9222 else
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9227 int main(void)
9229 try { throw 1; }
9230 catch (...) { };
9231 return 0;
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9236 then
9237 ac_sectionLDflags=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -fr conftest*
9242 ac_sectionLDflags=no
9244 rm -fr conftest*
9247 if test "$ac_test_CFLAGS" = set; then
9248 CFLAGS="$ac_save_CFLAGS"
9249 else
9250 # this is the suspicious part
9251 CFLAGS=''
9253 if test "$ac_sectionLDflags" = "yes"; then
9254 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9256 echo "$ac_t""$ac_sectionLDflags" 1>&6
9259 # Set linker optimization flags.
9260 if test x"$with_gnu_ld" = x"yes"; then
9261 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9268 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9269 echo "configure:9270: checking for main in -lm" >&5
9270 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9273 else
9274 ac_save_LIBS="$LIBS"
9275 LIBS="-lm $LIBS"
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9280 int main() {
9281 main()
9282 ; return 0; }
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9285 rm -rf conftest*
9286 eval "ac_cv_lib_$ac_lib_var=yes"
9287 else
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9290 rm -rf conftest*
9291 eval "ac_cv_lib_$ac_lib_var=no"
9293 rm -f conftest*
9294 LIBS="$ac_save_LIBS"
9297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9298 echo "$ac_t""yes" 1>&6
9299 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9300 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9301 cat >> confdefs.h <<EOF
9302 #define $ac_tr_lib 1
9305 LIBS="-lm $LIBS"
9307 else
9308 echo "$ac_t""no" 1>&6
9311 for ac_func in nan copysignf
9313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9314 echo "configure:9315: checking for $ac_func" >&5
9315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9317 else
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 /* System header to define __stub macros and hopefully few prototypes,
9322 which can conflict with char $ac_func(); below. */
9323 #include <assert.h>
9324 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char $ac_func();
9329 int main() {
9331 /* The GNU C library defines this for functions which it implements
9332 to always fail with ENOSYS. Some functions are actually named
9333 something starting with __ and the normal name is an alias. */
9334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9335 choke me
9336 #else
9337 $ac_func();
9338 #endif
9340 ; return 0; }
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9343 rm -rf conftest*
9344 eval "ac_cv_func_$ac_func=yes"
9345 else
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9348 rm -rf conftest*
9349 eval "ac_cv_func_$ac_func=no"
9351 rm -f conftest*
9354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9357 cat >> confdefs.h <<EOF
9358 #define $ac_tr_func 1
9361 else
9362 echo "$ac_t""no" 1>&6
9363 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9365 done
9368 for ac_func in __signbit
9370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_func" >&5
9372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* System header to define __stub macros and hopefully few prototypes,
9379 which can conflict with char $ac_func(); below. */
9380 #include <assert.h>
9381 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384 char $ac_func();
9386 int main() {
9388 /* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 choke me
9393 #else
9394 $ac_func();
9395 #endif
9397 ; return 0; }
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9400 rm -rf conftest*
9401 eval "ac_cv_func_$ac_func=yes"
9402 else
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 rm -rf conftest*
9406 eval "ac_cv_func_$ac_func=no"
9408 rm -f conftest*
9411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9412 echo "$ac_t""yes" 1>&6
9413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9414 cat >> confdefs.h <<EOF
9415 #define $ac_tr_func 1
9418 else
9419 echo "$ac_t""no" 1>&6
9420 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9422 done
9424 for ac_func in __signbitf
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
9476 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9478 done
9481 if test x$ac_cv_func_copysignl = x"yes"; then
9482 for ac_func in __signbitl
9484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9485 echo "configure:9486: checking for $ac_func" >&5
9486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9488 else
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char $ac_func(); below. */
9494 #include <assert.h>
9495 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char $ac_func();
9500 int main() {
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9506 choke me
9507 #else
9508 $ac_func();
9509 #endif
9511 ; return 0; }
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514 rm -rf conftest*
9515 eval "ac_cv_func_$ac_func=yes"
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 eval "ac_cv_func_$ac_func=no"
9522 rm -f conftest*
9525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9526 echo "$ac_t""yes" 1>&6
9527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_func 1
9532 else
9533 echo "$ac_t""no" 1>&6
9534 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9536 done
9540 if test -n "$LIBMATHOBJS"; then
9541 need_libmath=yes
9547 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9548 echo "configure:9549: checking for mbstate_t" >&5
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include <wchar.h>
9553 int main() {
9554 mbstate_t teststate;
9555 ; return 0; }
9557 if { (eval echo configure:9558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9558 rm -rf conftest*
9559 have_mbstate_t=yes
9560 else
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -rf conftest*
9564 have_mbstate_t=no
9566 rm -f conftest*
9567 echo "$ac_t""$have_mbstate_t" 1>&6
9568 if test x"$have_mbstate_t" = xyes; then
9569 cat >> confdefs.h <<\EOF
9570 #define HAVE_MBSTATE_T 1
9575 for ac_hdr in wchar.h
9577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9579 echo "configure:9580: checking for $ac_hdr" >&5
9580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9583 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 #include <$ac_hdr>
9588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9589 { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591 if test -z "$ac_err"; then
9592 rm -rf conftest*
9593 eval "ac_cv_header_$ac_safe=yes"
9594 else
9595 echo "$ac_err" >&5
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -rf conftest*
9599 eval "ac_cv_header_$ac_safe=no"
9601 rm -f conftest*
9603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9606 cat >> confdefs.h <<EOF
9607 #define $ac_tr_hdr 1
9609 ac_has_wchar_h=yes
9610 else
9611 echo "$ac_t""no" 1>&6
9612 ac_has_wchar_h=no
9614 done
9616 for ac_hdr in wctype.h
9618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9620 echo "configure:9621: checking for $ac_hdr" >&5
9621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <$ac_hdr>
9629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9630 { (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632 if test -z "$ac_err"; then
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=yes"
9635 else
9636 echo "$ac_err" >&5
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=no"
9642 rm -f conftest*
9644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647 cat >> confdefs.h <<EOF
9648 #define $ac_tr_hdr 1
9650 ac_has_wctype_h=yes
9651 else
9652 echo "$ac_t""no" 1>&6
9653 ac_has_wctype_h=no
9655 done
9658 if test x"$ac_has_wchar_h" = xyes &&
9659 test x"$ac_has_wctype_h" = xyes &&
9660 test x"$enable_c_mbchar" != xno; then
9662 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9663 echo "configure:9664: checking for WCHAR_MIN and WCHAR_MAX" >&5
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 #include <wchar.h>
9668 int main() {
9669 int i = WCHAR_MIN; int j = WCHAR_MAX;
9670 ; return 0; }
9672 if { (eval echo configure:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 rm -rf conftest*
9674 has_wchar_minmax=yes
9675 else
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 rm -rf conftest*
9679 has_wchar_minmax=no
9681 rm -f conftest*
9682 echo "$ac_t""$has_wchar_minmax" 1>&6
9684 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9685 echo "configure:9686: checking for WEOF" >&5
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9690 #include <wchar.h>
9691 #include <stddef.h>
9692 int main() {
9693 wint_t i = WEOF;
9694 ; return 0; }
9696 if { (eval echo configure:9697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9697 rm -rf conftest*
9698 has_weof=yes
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 has_weof=no
9705 rm -f conftest*
9706 echo "$ac_t""$has_weof" 1>&6
9708 ac_wfuncs=yes
9709 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9712 echo "configure:9713: checking for $ac_func" >&5
9713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715 else
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char $ac_func(); below. */
9721 #include <assert.h>
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725 char $ac_func();
9727 int main() {
9729 /* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733 choke me
9734 #else
9735 $ac_func();
9736 #endif
9738 ; return 0; }
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 rm -rf conftest*
9742 eval "ac_cv_func_$ac_func=yes"
9743 else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_$ac_func=no"
9749 rm -f conftest*
9752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9755 cat >> confdefs.h <<EOF
9756 #define $ac_tr_func 1
9759 else
9760 echo "$ac_t""no" 1>&6
9762 ac_wfuncs=no
9764 done
9767 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9768 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9769 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9770 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9771 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9772 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9775 echo "configure:9776: checking for $ac_func" >&5
9776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char $ac_func(); below. */
9784 #include <assert.h>
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char $ac_func();
9790 int main() {
9792 /* The GNU C library defines this for functions which it implements
9793 to always fail with ENOSYS. Some functions are actually named
9794 something starting with __ and the normal name is an alias. */
9795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 choke me
9797 #else
9798 $ac_func();
9799 #endif
9801 ; return 0; }
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9804 rm -rf conftest*
9805 eval "ac_cv_func_$ac_func=yes"
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_func_$ac_func=no"
9812 rm -f conftest*
9815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9816 echo "$ac_t""yes" 1>&6
9817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9818 cat >> confdefs.h <<EOF
9819 #define $ac_tr_func 1
9822 else
9823 echo "$ac_t""no" 1>&6
9825 ac_wfuncs=no
9827 done
9830 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9831 echo "configure:9832: checking for ISO C99 wchar_t support" >&5
9832 if test x"$has_weof" = xyes &&
9833 test x"$has_wchar_minmax" = xyes &&
9834 test x"$ac_wfuncs" = xyes; then
9835 ac_isoC99_wchar_t=yes
9836 else
9837 ac_isoC99_wchar_t=no
9839 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9841 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9842 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9843 echo "configure:9844: checking for iconv.h" >&5
9844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9846 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <iconv.h>
9852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9853 { (eval echo configure:9854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9855 if test -z "$ac_err"; then
9856 rm -rf conftest*
9857 eval "ac_cv_header_$ac_safe=yes"
9858 else
9859 echo "$ac_err" >&5
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9862 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=no"
9865 rm -f conftest*
9867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 ac_has_iconv_h=yes
9870 else
9871 echo "$ac_t""no" 1>&6
9872 ac_has_iconv_h=no
9875 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9876 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9877 echo "configure:9878: checking for langinfo.h" >&5
9878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 #include <langinfo.h>
9886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9887 { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9889 if test -z "$ac_err"; then
9890 rm -rf conftest*
9891 eval "ac_cv_header_$ac_safe=yes"
9892 else
9893 echo "$ac_err" >&5
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 rm -rf conftest*
9897 eval "ac_cv_header_$ac_safe=no"
9899 rm -f conftest*
9901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9902 echo "$ac_t""yes" 1>&6
9903 ac_has_langinfo_h=yes
9904 else
9905 echo "$ac_t""no" 1>&6
9906 ac_has_langinfo_h=no
9910 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9911 echo "configure:9912: checking for iconv in -liconv" >&5
9912 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9915 else
9916 ac_save_LIBS="$LIBS"
9917 LIBS="-liconv $LIBS"
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9924 char iconv();
9926 int main() {
9927 iconv()
9928 ; return 0; }
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 rm -rf conftest*
9932 eval "ac_cv_lib_$ac_lib_var=yes"
9933 else
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 rm -rf conftest*
9937 eval "ac_cv_lib_$ac_lib_var=no"
9939 rm -f conftest*
9940 LIBS="$ac_save_LIBS"
9943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 libiconv="-liconv"
9946 else
9947 echo "$ac_t""no" 1>&6
9950 ac_save_LIBS="$LIBS"
9951 LIBS="$LIBS $libiconv"
9953 for ac_func in iconv_open iconv_close iconv nl_langinfo
9955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9956 echo "configure:9957: checking for $ac_func" >&5
9957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9959 else
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func(); below. */
9965 #include <assert.h>
9966 /* Override any gcc2 internal prototype to avoid an error. */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969 char $ac_func();
9971 int main() {
9973 /* The GNU C library defines this for functions which it implements
9974 to always fail with ENOSYS. Some functions are actually named
9975 something starting with __ and the normal name is an alias. */
9976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9977 choke me
9978 #else
9979 $ac_func();
9980 #endif
9982 ; return 0; }
9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9985 rm -rf conftest*
9986 eval "ac_cv_func_$ac_func=yes"
9987 else
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 eval "ac_cv_func_$ac_func=no"
9993 rm -f conftest*
9996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9999 cat >> confdefs.h <<EOF
10000 #define $ac_tr_func 1
10003 ac_XPG2funcs=yes
10004 else
10005 echo "$ac_t""no" 1>&6
10006 ac_XPG2funcs=no
10008 done
10011 LIBS="$ac_save_LIBS"
10013 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10014 echo "configure:10015: checking for XPG2 wchar_t support" >&5
10015 if test x"$ac_has_iconv_h" = xyes &&
10016 test x"$ac_has_langinfo_h" = xyes &&
10017 test x"$ac_XPG2funcs" = xyes; then
10018 ac_XPG2_wchar_t=yes
10019 else
10020 ac_XPG2_wchar_t=no
10022 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10024 if test x"$ac_isoC99_wchar_t" = xyes &&
10025 test x"$ac_XPG2_wchar_t" = xyes; then
10026 cat >> confdefs.h <<\EOF
10027 #define _GLIBCXX_USE_WCHAR_T 1
10030 enable_wchar_t=yes
10033 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10034 echo "configure:10035: checking for enabled wchar_t specializations" >&5
10035 echo "$ac_t""$enable_wchar_t" 1>&6
10037 cat >> confdefs.h <<\EOF
10038 #define HAVE_COSF 1
10041 cat >> confdefs.h <<\EOF
10042 #define HAVE_COSL 1
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_COSHF 1
10049 cat >> confdefs.h <<\EOF
10050 #define HAVE_COSHL 1
10053 cat >> confdefs.h <<\EOF
10054 #define HAVE_LOGF 1
10057 cat >> confdefs.h <<\EOF
10058 #define HAVE_LOGL 1
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_LOG10F 1
10065 cat >> confdefs.h <<\EOF
10066 #define HAVE_LOG10L 1
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_SINF 1
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_SINL 1
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_SINHF 1
10081 cat >> confdefs.h <<\EOF
10082 #define HAVE_SINHL 1
10086 *-solaris*)
10087 case "$target" in
10088 *-solaris2.5)
10089 os_include_dir="os/solaris/solaris2.5"
10091 *-solaris2.6)
10092 os_include_dir="os/solaris/solaris2.6"
10094 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10095 os_include_dir="os/solaris/solaris2.7"
10097 esac
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_STRTOF 1
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_STRTOLD 1
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_MMAP 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_COPYSIGN 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_ISNAN 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_ISNANF 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_MODFF 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_HYPOT 1
10131 *-windiss*)
10132 os_include_dir="os/windiss"
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_ACOSF 1
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_ASINF 1
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_ATAN2F 1
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_ATANF 1
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_CEILF 1
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_COPYSIGN 1
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_COPYSIGNF 1
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COSF 1
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHF 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_EXPF 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_FABSF 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_FLOORF 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_FMODF 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_FREXPF 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_LDEXPF 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_LOG10F 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_LOGF 1
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_MODFF 1
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_POWF 1
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_SINF 1
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_SINHF 1
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_SQRTF 1
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_TANF 1
10225 cat >> confdefs.h <<\EOF
10226 #define HAVE_TANHF 1
10231 if test "x${with_newlib}" = "xyes"; then
10232 os_include_dir="os/newlib"
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_HYPOT 1
10238 # GLIBCXX_CHECK_STDLIB_SUPPORT
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_STRTOF 1
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_STRTOLD 1
10247 # AC_FUNC_MMAP
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_MMAP 1
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_ACOSF 1
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_ASINF 1
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_ATAN2F 1
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_ATANF 1
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_CEILF 1
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_COPYSIGN 1
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_COPYSIGNF 1
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_COSF 1
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_COSHF 1
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_EXPF 1
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_FABSF 1
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_FLOORF 1
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_FMODF 1
10305 cat >> confdefs.h <<\EOF
10306 #define HAVE_FREXPF 1
10309 cat >> confdefs.h <<\EOF
10310 #define HAVE_LDEXPF 1
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_LOG10F 1
10317 cat >> confdefs.h <<\EOF
10318 #define HAVE_LOGF 1
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_MODFF 1
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_POWF 1
10329 cat >> confdefs.h <<\EOF
10330 #define HAVE_SINF 1
10333 cat >> confdefs.h <<\EOF
10334 #define HAVE_SINHF 1
10337 cat >> confdefs.h <<\EOF
10338 #define HAVE_SQRTF 1
10341 cat >> confdefs.h <<\EOF
10342 #define HAVE_TANF 1
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_TANHF 1
10349 else
10350 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10353 esac
10355 # At some point, we should differentiate between architectures
10356 # like x86, which have long double versions, and alpha/powerpc/etc.,
10357 # which don't. For the time being, punt.
10358 if test x"long_double_math_on_this_cpu" = x"yes"; then
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_ACOSL 1
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_ASINL 1
10367 cat >> confdefs.h <<\EOF
10368 #define HAVE_ATAN2L 1
10371 cat >> confdefs.h <<\EOF
10372 #define HAVE_ATANL 1
10375 cat >> confdefs.h <<\EOF
10376 #define HAVE_CEILL 1
10379 cat >> confdefs.h <<\EOF
10380 #define HAVE_COPYSIGNL 1
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_COSL 1
10387 cat >> confdefs.h <<\EOF
10388 #define HAVE_COSHL 1
10391 cat >> confdefs.h <<\EOF
10392 #define HAVE_EXPL 1
10395 cat >> confdefs.h <<\EOF
10396 #define HAVE_FABSL 1
10399 cat >> confdefs.h <<\EOF
10400 #define HAVE_FLOORL 1
10403 cat >> confdefs.h <<\EOF
10404 #define HAVE_FMODL 1
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_FREXPL 1
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_LDEXPL 1
10415 cat >> confdefs.h <<\EOF
10416 #define HAVE_LOG10L 1
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_LOGL 1
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_MODFL 1
10427 cat >> confdefs.h <<\EOF
10428 #define HAVE_POWL 1
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_SINCOSL 1
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_SINL 1
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_SINHL 1
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_SQRTL 1
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_TANL 1
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_TANHL 1
10457 else
10459 # We are being configured natively. We can do more elaborate tests
10460 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10461 # working.
10462 GLIBCXX_IS_CROSS_COMPILING=false
10463 CANADIAN=no
10465 # Check for available headers.
10466 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10467 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10468 sys/types.h
10470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10472 echo "configure:10473: checking for $ac_hdr" >&5
10473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10475 else
10476 cat > conftest.$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10479 #include <$ac_hdr>
10481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10482 { (eval echo configure:10483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10484 if test -z "$ac_err"; then
10485 rm -rf conftest*
10486 eval "ac_cv_header_$ac_safe=yes"
10487 else
10488 echo "$ac_err" >&5
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 rm -rf conftest*
10492 eval "ac_cv_header_$ac_safe=no"
10494 rm -f conftest*
10496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10497 echo "$ac_t""yes" 1>&6
10498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10499 cat >> confdefs.h <<EOF
10500 #define $ac_tr_hdr 1
10503 else
10504 echo "$ac_t""no" 1>&6
10506 done
10510 # All these tests are for C++; save the language and the compiler flags.
10511 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10512 # found in GLIBCXX_CONFIGURE.
10514 ac_ext=C
10515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10516 ac_cpp='$CXXCPP $CPPFLAGS'
10517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10519 cross_compiling=$ac_cv_prog_cxx_cross
10521 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10522 ac_save_CXXFLAGS="$CXXFLAGS"
10524 # Check for maintainer-mode bits.
10525 if test x"$USE_MAINTAINER_MODE" = xno; then
10526 WERROR=''
10527 else
10528 WERROR='-Werror'
10531 # Check for -ffunction-sections -fdata-sections
10532 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10533 echo "configure:10534: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10534 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10539 int main() {
10540 int foo;
10542 ; return 0; }
10544 if { (eval echo configure:10545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10545 rm -rf conftest*
10546 ac_fdsections=yes
10547 else
10548 echo "configure: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 rm -rf conftest*
10551 ac_fdsections=no
10553 rm -f conftest*
10554 if test "$ac_test_CXXFLAGS" = set; then
10555 CXXFLAGS="$ac_save_CXXFLAGS"
10556 else
10557 # this is the suspicious part
10558 CXXFLAGS=''
10560 if test x"$ac_fdsections" = x"yes"; then
10561 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10563 echo "$ac_t""$ac_fdsections" 1>&6
10565 ac_ext=c
10566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10567 ac_cpp='$CPP $CPPFLAGS'
10568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10570 cross_compiling=$ac_cv_prog_cc_cross
10576 # If we're not using GNU ld, then there's no point in even trying these
10577 # tests. Check for that first. We should have already tested for gld
10578 # by now (in libtool), but require it now just to be safe...
10579 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10580 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10583 # The name set by libtool depends on the version of libtool. Shame on us
10584 # for depending on an impl detail, but c'est la vie. Older versions used
10585 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10586 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10587 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10588 # set (hence we're using an older libtool), then set it.
10589 if test x${with_gnu_ld+set} != xset; then
10590 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10591 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10592 with_gnu_ld=no
10593 else
10594 with_gnu_ld=$ac_cv_prog_gnu_ld
10598 # Start by getting the version number. I think the libtool test already
10599 # does some of this, but throws away the result.
10601 ldver=`$LD --version 2>/dev/null | head -1 | \
10602 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10604 glibcxx_gnu_ld_version=`echo $ldver | \
10605 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10607 # Set --gc-sections.
10608 if test "$with_gnu_ld" = "notbroken"; then
10609 # GNU ld it is! Joy and bunny rabbits!
10611 # All these tests are for C++; save the language and the compiler flags.
10612 # Need to do this so that g++ won't try to link in libstdc++
10613 ac_test_CFLAGS="${CFLAGS+set}"
10614 ac_save_CFLAGS="$CFLAGS"
10615 CFLAGS='-x c++ -Wl,--gc-sections'
10617 # Check for -Wl,--gc-sections
10618 # XXX This test is broken at the moment, as symbols required for
10619 # linking are now in libsupc++ (not built yet.....). In addition,
10620 # this test has cored on solaris in the past. In addition,
10621 # --gc-sections doesn't really work at the moment (keeps on discarding
10622 # used sections, first .eh_frame and now some of the glibc sections for
10623 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10624 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10625 echo "configure:10626: checking for ld that supports -Wl,--gc-sections" >&5
10626 if test "$cross_compiling" = yes; then
10627 ac_sectionLDflags=yes
10628 else
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10633 int main(void)
10635 try { throw 1; }
10636 catch (...) { };
10637 return 0;
10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10642 then
10643 ac_sectionLDflags=yes
10644 else
10645 echo "configure: failed program was:" >&5
10646 cat conftest.$ac_ext >&5
10647 rm -fr conftest*
10648 ac_sectionLDflags=no
10650 rm -fr conftest*
10653 if test "$ac_test_CFLAGS" = set; then
10654 CFLAGS="$ac_save_CFLAGS"
10655 else
10656 # this is the suspicious part
10657 CFLAGS=''
10659 if test "$ac_sectionLDflags" = "yes"; then
10660 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10662 echo "$ac_t""$ac_sectionLDflags" 1>&6
10665 # Set linker optimization flags.
10666 if test x"$with_gnu_ld" = x"yes"; then
10667 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10674 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10675 ac_save_CXXFLAGS="$CXXFLAGS"
10676 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
10678 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10679 echo "configure:10680: checking for sin in -lm" >&5
10680 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10683 else
10684 ac_save_LIBS="$LIBS"
10685 LIBS="-lm $LIBS"
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 /* Override any gcc2 internal prototype to avoid an error. */
10690 /* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10692 char sin();
10694 int main() {
10695 sin()
10696 ; return 0; }
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=yes"
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -rf conftest*
10705 eval "ac_cv_lib_$ac_lib_var=no"
10707 rm -f conftest*
10708 LIBS="$ac_save_LIBS"
10711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713 libm="-lm"
10714 else
10715 echo "$ac_t""no" 1>&6
10718 ac_save_LIBS="$LIBS"
10719 LIBS="$LIBS $libm"
10723 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10724 echo "configure:10725: checking for isinf declaration" >&5
10725 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
10726 if eval "test \"`echo '$''{'glibcxx_cv_func_isinf_use'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728 else
10731 ac_ext=C
10732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10733 ac_cpp='$CXXCPP $CPPFLAGS'
10734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10736 cross_compiling=$ac_cv_prog_cxx_cross
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 #include <math.h>
10742 #ifdef HAVE_IEEEFP_H
10743 #include <ieeefp.h>
10744 #endif
10746 int main() {
10747 isinf(0);
10748 ; return 0; }
10750 if { (eval echo configure:10751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10751 rm -rf conftest*
10752 glibcxx_cv_func_isinf_use=yes
10753 else
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10756 rm -rf conftest*
10757 glibcxx_cv_func_isinf_use=no
10759 rm -f conftest*
10760 ac_ext=c
10761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10762 ac_cpp='$CPP $CPPFLAGS'
10763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10765 cross_compiling=$ac_cv_prog_cc_cross
10771 echo "$ac_t""$glibcxx_cv_func_isinf_use" 1>&6
10773 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
10774 for ac_func in isinf
10776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10777 echo "configure:10778: checking for $ac_func" >&5
10778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10780 else
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char $ac_func(); below. */
10786 #include <assert.h>
10787 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char $ac_func();
10792 int main() {
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798 choke me
10799 #else
10800 $ac_func();
10801 #endif
10803 ; return 0; }
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10806 rm -rf conftest*
10807 eval "ac_cv_func_$ac_func=yes"
10808 else
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 rm -rf conftest*
10812 eval "ac_cv_func_$ac_func=no"
10814 rm -f conftest*
10817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
10819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10820 cat >> confdefs.h <<EOF
10821 #define $ac_tr_func 1
10824 else
10825 echo "$ac_t""no" 1>&6
10827 done
10829 else
10831 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10832 echo "configure:10833: checking for _isinf declaration" >&5
10833 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
10834 if eval "test \"`echo '$''{'glibcxx_cv_func__isinf_use'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10836 else
10839 ac_ext=C
10840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10841 ac_cpp='$CXXCPP $CPPFLAGS'
10842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10844 cross_compiling=$ac_cv_prog_cxx_cross
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10848 "configure"
10848 #include "confdefs.h"
10849 #include <math.h>
10850 #ifdef HAVE_IEEEFP_H
10851 #include <ieeefp.h>
10852 #endif
10854 int main() {
10855 _isinf(0);
10856 ; return 0; }
10858 if { (eval echo configure:10859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10859 rm -rf conftest*
10860 glibcxx_cv_func__isinf_use=yes
10861 else
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10864 rm -rf conftest*
10865 glibcxx_cv_func__isinf_use=no
10867 rm -f conftest*
10868 ac_ext=c
10869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10870 ac_cpp='$CPP $CPPFLAGS'
10871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10873 cross_compiling=$ac_cv_prog_cc_cross
10879 echo "$ac_t""$glibcxx_cv_func__isinf_use" 1>&6
10881 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
10882 for ac_func in _isinf
10884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10885 echo "configure:10886: checking for $ac_func" >&5
10886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10888 else
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char $ac_func(); below. */
10894 #include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char $ac_func();
10900 int main() {
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906 choke me
10907 #else
10908 $ac_func();
10909 #endif
10911 ; return 0; }
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 rm -rf conftest*
10915 eval "ac_cv_func_$ac_func=yes"
10916 else
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10919 rm -rf conftest*
10920 eval "ac_cv_func_$ac_func=no"
10922 rm -f conftest*
10925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10928 cat >> confdefs.h <<EOF
10929 #define $ac_tr_func 1
10932 else
10933 echo "$ac_t""no" 1>&6
10935 done
10942 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10943 echo "configure:10944: checking for isnan declaration" >&5
10944 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
10945 if eval "test \"`echo '$''{'glibcxx_cv_func_isnan_use'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10950 ac_ext=C
10951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10952 ac_cpp='$CXXCPP $CPPFLAGS'
10953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10955 cross_compiling=$ac_cv_prog_cxx_cross
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 #include <math.h>
10961 #ifdef HAVE_IEEEFP_H
10962 #include <ieeefp.h>
10963 #endif
10965 int main() {
10966 isnan(0);
10967 ; return 0; }
10969 if { (eval echo configure:10970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10970 rm -rf conftest*
10971 glibcxx_cv_func_isnan_use=yes
10972 else
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 rm -rf conftest*
10976 glibcxx_cv_func_isnan_use=no
10978 rm -f conftest*
10979 ac_ext=c
10980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10984 cross_compiling=$ac_cv_prog_cc_cross
10990 echo "$ac_t""$glibcxx_cv_func_isnan_use" 1>&6
10992 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
10993 for ac_func in isnan
10995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10996 echo "configure:10997: checking for $ac_func" >&5
10997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char $ac_func(); below. */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */
11007 /* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009 char $ac_func();
11011 int main() {
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 choke me
11018 #else
11019 $ac_func();
11020 #endif
11022 ; return 0; }
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11025 rm -rf conftest*
11026 eval "ac_cv_func_$ac_func=yes"
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031 eval "ac_cv_func_$ac_func=no"
11033 rm -f conftest*
11036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11039 cat >> confdefs.h <<EOF
11040 #define $ac_tr_func 1
11043 else
11044 echo "$ac_t""no" 1>&6
11046 done
11048 else
11050 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11051 echo "configure:11052: checking for _isnan declaration" >&5
11052 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
11053 if eval "test \"`echo '$''{'glibcxx_cv_func__isnan_use'+set}'`\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11055 else
11058 ac_ext=C
11059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cxx_cross
11065 cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure"
11067 #include "confdefs.h"
11068 #include <math.h>
11069 #ifdef HAVE_IEEEFP_H
11070 #include <ieeefp.h>
11071 #endif
11073 int main() {
11074 _isnan(0);
11075 ; return 0; }
11077 if { (eval echo configure:11078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11078 rm -rf conftest*
11079 glibcxx_cv_func__isnan_use=yes
11080 else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -rf conftest*
11084 glibcxx_cv_func__isnan_use=no
11086 rm -f conftest*
11087 ac_ext=c
11088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11092 cross_compiling=$ac_cv_prog_cc_cross
11098 echo "$ac_t""$glibcxx_cv_func__isnan_use" 1>&6
11100 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
11101 for ac_func in _isnan
11103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11104 echo "configure:11105: checking for $ac_func" >&5
11105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11107 else
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func(); below. */
11113 #include <assert.h>
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char $ac_func();
11119 int main() {
11121 /* The GNU C library defines this for functions which it implements
11122 to always fail with ENOSYS. Some functions are actually named
11123 something starting with __ and the normal name is an alias. */
11124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11125 choke me
11126 #else
11127 $ac_func();
11128 #endif
11130 ; return 0; }
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11133 rm -rf conftest*
11134 eval "ac_cv_func_$ac_func=yes"
11135 else
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 rm -rf conftest*
11139 eval "ac_cv_func_$ac_func=no"
11141 rm -f conftest*
11144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11145 echo "$ac_t""yes" 1>&6
11146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11147 cat >> confdefs.h <<EOF
11148 #define $ac_tr_func 1
11151 else
11152 echo "$ac_t""no" 1>&6
11154 done
11161 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11162 echo "configure:11163: checking for finite declaration" >&5
11163 if test x${glibcxx_cv_func_finite_use+set} != xset; then
11164 if eval "test \"`echo '$''{'glibcxx_cv_func_finite_use'+set}'`\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11166 else
11169 ac_ext=C
11170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11171 ac_cpp='$CXXCPP $CPPFLAGS'
11172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11174 cross_compiling=$ac_cv_prog_cxx_cross
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 #include <math.h>
11180 #ifdef HAVE_IEEEFP_H
11181 #include <ieeefp.h>
11182 #endif
11184 int main() {
11185 finite(0);
11186 ; return 0; }
11188 if { (eval echo configure:11189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11189 rm -rf conftest*
11190 glibcxx_cv_func_finite_use=yes
11191 else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 glibcxx_cv_func_finite_use=no
11197 rm -f conftest*
11198 ac_ext=c
11199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11200 ac_cpp='$CPP $CPPFLAGS'
11201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11203 cross_compiling=$ac_cv_prog_cc_cross
11209 echo "$ac_t""$glibcxx_cv_func_finite_use" 1>&6
11211 if test x$glibcxx_cv_func_finite_use = x"yes"; then
11212 for ac_func in finite
11214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11215 echo "configure:11216: checking for $ac_func" >&5
11216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11218 else
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11222 /* System header to define __stub macros and hopefully few prototypes,
11223 which can conflict with char $ac_func(); below. */
11224 #include <assert.h>
11225 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228 char $ac_func();
11230 int main() {
11232 /* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 choke me
11237 #else
11238 $ac_func();
11239 #endif
11241 ; return 0; }
11243 if { (eval echo configure:11244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11244 rm -rf conftest*
11245 eval "ac_cv_func_$ac_func=yes"
11246 else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 eval "ac_cv_func_$ac_func=no"
11252 rm -f conftest*
11255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11256 echo "$ac_t""yes" 1>&6
11257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11258 cat >> confdefs.h <<EOF
11259 #define $ac_tr_func 1
11262 else
11263 echo "$ac_t""no" 1>&6
11265 done
11267 else
11269 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11270 echo "configure:11271: checking for _finite declaration" >&5
11271 if test x${glibcxx_cv_func__finite_use+set} != xset; then
11272 if eval "test \"`echo '$''{'glibcxx_cv_func__finite_use'+set}'`\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11274 else
11277 ac_ext=C
11278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11279 ac_cpp='$CXXCPP $CPPFLAGS'
11280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11282 cross_compiling=$ac_cv_prog_cxx_cross
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 #include <math.h>
11288 #ifdef HAVE_IEEEFP_H
11289 #include <ieeefp.h>
11290 #endif
11292 int main() {
11293 _finite(0);
11294 ; return 0; }
11296 if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11297 rm -rf conftest*
11298 glibcxx_cv_func__finite_use=yes
11299 else
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 rm -rf conftest*
11303 glibcxx_cv_func__finite_use=no
11305 rm -f conftest*
11306 ac_ext=c
11307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11308 ac_cpp='$CPP $CPPFLAGS'
11309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11311 cross_compiling=$ac_cv_prog_cc_cross
11317 echo "$ac_t""$glibcxx_cv_func__finite_use" 1>&6
11319 if test x$glibcxx_cv_func__finite_use = x"yes"; then
11320 for ac_func in _finite
11322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11323 echo "configure:11324: checking for $ac_func" >&5
11324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11326 else
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func(); below. */
11332 #include <assert.h>
11333 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11336 char $ac_func();
11338 int main() {
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11344 choke me
11345 #else
11346 $ac_func();
11347 #endif
11349 ; return 0; }
11351 if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11352 rm -rf conftest*
11353 eval "ac_cv_func_$ac_func=yes"
11354 else
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 rm -rf conftest*
11358 eval "ac_cv_func_$ac_func=no"
11360 rm -f conftest*
11363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11364 echo "$ac_t""yes" 1>&6
11365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11366 cat >> confdefs.h <<EOF
11367 #define $ac_tr_func 1
11370 else
11371 echo "$ac_t""no" 1>&6
11373 done
11380 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11381 echo "configure:11382: checking for copysign declaration" >&5
11382 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
11383 if eval "test \"`echo '$''{'glibcxx_cv_func_copysign_use'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11385 else
11388 ac_ext=C
11389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11390 ac_cpp='$CXXCPP $CPPFLAGS'
11391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11393 cross_compiling=$ac_cv_prog_cxx_cross
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 #include <math.h>
11399 int main() {
11400 copysign(0, 0);
11401 ; return 0; }
11403 if { (eval echo configure:11404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11404 rm -rf conftest*
11405 glibcxx_cv_func_copysign_use=yes
11406 else
11407 echo "configure: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 rm -rf conftest*
11410 glibcxx_cv_func_copysign_use=no
11412 rm -f conftest*
11413 ac_ext=c
11414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CPP $CPPFLAGS'
11416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cc_cross
11424 echo "$ac_t""$glibcxx_cv_func_copysign_use" 1>&6
11426 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
11427 for ac_func in copysign
11429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11430 echo "configure:11431: checking for $ac_func" >&5
11431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func(); below. */
11439 #include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */
11443 char $ac_func();
11445 int main() {
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11451 choke me
11452 #else
11453 $ac_func();
11454 #endif
11456 ; return 0; }
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11459 rm -rf conftest*
11460 eval "ac_cv_func_$ac_func=yes"
11461 else
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -rf conftest*
11465 eval "ac_cv_func_$ac_func=no"
11467 rm -f conftest*
11470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11471 echo "$ac_t""yes" 1>&6
11472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11473 cat >> confdefs.h <<EOF
11474 #define $ac_tr_func 1
11477 else
11478 echo "$ac_t""no" 1>&6
11480 done
11482 else
11484 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11485 echo "configure:11486: checking for _copysign declaration" >&5
11486 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
11487 if eval "test \"`echo '$''{'glibcxx_cv_func__copysign_use'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11492 ac_ext=C
11493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11494 ac_cpp='$CXXCPP $CPPFLAGS'
11495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11497 cross_compiling=$ac_cv_prog_cxx_cross
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 #include <math.h>
11503 int main() {
11504 _copysign(0, 0);
11505 ; return 0; }
11507 if { (eval echo configure:11508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11508 rm -rf conftest*
11509 glibcxx_cv_func__copysign_use=yes
11510 else
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 rm -rf conftest*
11514 glibcxx_cv_func__copysign_use=no
11516 rm -f conftest*
11517 ac_ext=c
11518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11522 cross_compiling=$ac_cv_prog_cc_cross
11528 echo "$ac_t""$glibcxx_cv_func__copysign_use" 1>&6
11530 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
11531 for ac_func in _copysign
11533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11534 echo "configure:11535: checking for $ac_func" >&5
11535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func(); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11547 char $ac_func();
11549 int main() {
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11555 choke me
11556 #else
11557 $ac_func();
11558 #endif
11560 ; return 0; }
11562 if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563 rm -rf conftest*
11564 eval "ac_cv_func_$ac_func=yes"
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=no"
11571 rm -f conftest*
11574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11577 cat >> confdefs.h <<EOF
11578 #define $ac_tr_func 1
11581 else
11582 echo "$ac_t""no" 1>&6
11584 done
11591 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11592 echo "configure:11593: checking for sincos declaration" >&5
11593 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
11594 if eval "test \"`echo '$''{'glibcxx_cv_func_sincos_use'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11599 ac_ext=C
11600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11601 ac_cpp='$CXXCPP $CPPFLAGS'
11602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11604 cross_compiling=$ac_cv_prog_cxx_cross
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <math.h>
11610 int main() {
11611 sincos(0, 0, 0);
11612 ; return 0; }
11614 if { (eval echo configure:11615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11615 rm -rf conftest*
11616 glibcxx_cv_func_sincos_use=yes
11617 else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 glibcxx_cv_func_sincos_use=no
11623 rm -f conftest*
11624 ac_ext=c
11625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11629 cross_compiling=$ac_cv_prog_cc_cross
11635 echo "$ac_t""$glibcxx_cv_func_sincos_use" 1>&6
11637 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
11638 for ac_func in sincos
11640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11641 echo "configure:11642: checking for $ac_func" >&5
11642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11644 else
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char $ac_func(); below. */
11650 #include <assert.h>
11651 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11654 char $ac_func();
11656 int main() {
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11662 choke me
11663 #else
11664 $ac_func();
11665 #endif
11667 ; return 0; }
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11670 rm -rf conftest*
11671 eval "ac_cv_func_$ac_func=yes"
11672 else
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -rf conftest*
11676 eval "ac_cv_func_$ac_func=no"
11678 rm -f conftest*
11681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11682 echo "$ac_t""yes" 1>&6
11683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11684 cat >> confdefs.h <<EOF
11685 #define $ac_tr_func 1
11688 else
11689 echo "$ac_t""no" 1>&6
11691 done
11693 else
11695 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11696 echo "configure:11697: checking for _sincos declaration" >&5
11697 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
11698 if eval "test \"`echo '$''{'glibcxx_cv_func__sincos_use'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11700 else
11703 ac_ext=C
11704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11705 ac_cpp='$CXXCPP $CPPFLAGS'
11706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11708 cross_compiling=$ac_cv_prog_cxx_cross
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <math.h>
11714 int main() {
11715 _sincos(0, 0, 0);
11716 ; return 0; }
11718 if { (eval echo configure:11719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11719 rm -rf conftest*
11720 glibcxx_cv_func__sincos_use=yes
11721 else
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 glibcxx_cv_func__sincos_use=no
11727 rm -f conftest*
11728 ac_ext=c
11729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11733 cross_compiling=$ac_cv_prog_cc_cross
11739 echo "$ac_t""$glibcxx_cv_func__sincos_use" 1>&6
11741 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
11742 for ac_func in _sincos
11744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11745 echo "configure:11746: checking for $ac_func" >&5
11746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11748 else
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752 /* System header to define __stub macros and hopefully few prototypes,
11753 which can conflict with char $ac_func(); below. */
11754 #include <assert.h>
11755 /* Override any gcc2 internal prototype to avoid an error. */
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11758 char $ac_func();
11760 int main() {
11762 /* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11766 choke me
11767 #else
11768 $ac_func();
11769 #endif
11771 ; return 0; }
11773 if { (eval echo configure:11774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11774 rm -rf conftest*
11775 eval "ac_cv_func_$ac_func=yes"
11776 else
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 rm -rf conftest*
11780 eval "ac_cv_func_$ac_func=no"
11782 rm -f conftest*
11785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11786 echo "$ac_t""yes" 1>&6
11787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11788 cat >> confdefs.h <<EOF
11789 #define $ac_tr_func 1
11792 else
11793 echo "$ac_t""no" 1>&6
11795 done
11802 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11803 echo "configure:11804: checking for fpclass declaration" >&5
11804 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
11805 if eval "test \"`echo '$''{'glibcxx_cv_func_fpclass_use'+set}'`\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11807 else
11810 ac_ext=C
11811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11812 ac_cpp='$CXXCPP $CPPFLAGS'
11813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11815 cross_compiling=$ac_cv_prog_cxx_cross
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 #include <math.h>
11821 #ifdef HAVE_IEEEFP_H
11822 #include <ieeefp.h>
11823 #endif
11825 int main() {
11826 fpclass(0);
11827 ; return 0; }
11829 if { (eval echo configure:11830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11830 rm -rf conftest*
11831 glibcxx_cv_func_fpclass_use=yes
11832 else
11833 echo "configure: failed program was:" >&5
11834 cat conftest.$ac_ext >&5
11835 rm -rf conftest*
11836 glibcxx_cv_func_fpclass_use=no
11838 rm -f conftest*
11839 ac_ext=c
11840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11841 ac_cpp='$CPP $CPPFLAGS'
11842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11844 cross_compiling=$ac_cv_prog_cc_cross
11850 echo "$ac_t""$glibcxx_cv_func_fpclass_use" 1>&6
11852 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
11853 for ac_func in fpclass
11855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11856 echo "configure:11857: checking for $ac_func" >&5
11857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859 else
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func(); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869 char $ac_func();
11871 int main() {
11873 /* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11877 choke me
11878 #else
11879 $ac_func();
11880 #endif
11882 ; return 0; }
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11885 rm -rf conftest*
11886 eval "ac_cv_func_$ac_func=yes"
11887 else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_func_$ac_func=no"
11893 rm -f conftest*
11896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11897 echo "$ac_t""yes" 1>&6
11898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11899 cat >> confdefs.h <<EOF
11900 #define $ac_tr_func 1
11903 else
11904 echo "$ac_t""no" 1>&6
11906 done
11908 else
11910 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11911 echo "configure:11912: checking for _fpclass declaration" >&5
11912 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
11913 if eval "test \"`echo '$''{'glibcxx_cv_func__fpclass_use'+set}'`\" = set"; then
11914 echo $ac_n "(cached) $ac_c" 1>&6
11915 else
11918 ac_ext=C
11919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11920 ac_cpp='$CXXCPP $CPPFLAGS'
11921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11923 cross_compiling=$ac_cv_prog_cxx_cross
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 #include <math.h>
11929 #ifdef HAVE_IEEEFP_H
11930 #include <ieeefp.h>
11931 #endif
11933 int main() {
11934 _fpclass(0);
11935 ; return 0; }
11937 if { (eval echo configure:11938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11938 rm -rf conftest*
11939 glibcxx_cv_func__fpclass_use=yes
11940 else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 glibcxx_cv_func__fpclass_use=no
11946 rm -f conftest*
11947 ac_ext=c
11948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11952 cross_compiling=$ac_cv_prog_cc_cross
11958 echo "$ac_t""$glibcxx_cv_func__fpclass_use" 1>&6
11960 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
11961 for ac_func in _fpclass
11963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11964 echo "configure:11965: checking for $ac_func" >&5
11965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11967 else
11968 cat > conftest.$ac_ext <<EOF
11969 #line 11970 "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func(); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11977 char $ac_func();
11979 int main() {
11981 /* The GNU C library defines this for functions which it implements
11982 to always fail with ENOSYS. Some functions are actually named
11983 something starting with __ and the normal name is an alias. */
11984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11985 choke me
11986 #else
11987 $ac_func();
11988 #endif
11990 ; return 0; }
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 rm -rf conftest*
11994 eval "ac_cv_func_$ac_func=yes"
11995 else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999 eval "ac_cv_func_$ac_func=no"
12001 rm -f conftest*
12004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6
12006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12007 cat >> confdefs.h <<EOF
12008 #define $ac_tr_func 1
12011 else
12012 echo "$ac_t""no" 1>&6
12014 done
12021 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12022 echo "configure:12023: checking for qfpclass declaration" >&5
12023 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
12024 if eval "test \"`echo '$''{'glibcxx_cv_func_qfpclass_use'+set}'`\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12026 else
12029 ac_ext=C
12030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12034 cross_compiling=$ac_cv_prog_cxx_cross
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <math.h>
12040 #ifdef HAVE_IEEEFP_H
12041 #include <ieeefp.h>
12042 #endif
12044 int main() {
12045 qfpclass(0);
12046 ; return 0; }
12048 if { (eval echo configure:12049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12049 rm -rf conftest*
12050 glibcxx_cv_func_qfpclass_use=yes
12051 else
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 rm -rf conftest*
12055 glibcxx_cv_func_qfpclass_use=no
12057 rm -f conftest*
12058 ac_ext=c
12059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12060 ac_cpp='$CPP $CPPFLAGS'
12061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12063 cross_compiling=$ac_cv_prog_cc_cross
12069 echo "$ac_t""$glibcxx_cv_func_qfpclass_use" 1>&6
12071 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
12072 for ac_func in qfpclass
12074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12075 echo "configure:12076: checking for $ac_func" >&5
12076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12077 echo $ac_n "(cached) $ac_c" 1>&6
12078 else
12079 cat > conftest.$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func(); below. */
12084 #include <assert.h>
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12088 char $ac_func();
12090 int main() {
12092 /* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12096 choke me
12097 #else
12098 $ac_func();
12099 #endif
12101 ; return 0; }
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 rm -rf conftest*
12105 eval "ac_cv_func_$ac_func=yes"
12106 else
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 rm -rf conftest*
12110 eval "ac_cv_func_$ac_func=no"
12112 rm -f conftest*
12115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12118 cat >> confdefs.h <<EOF
12119 #define $ac_tr_func 1
12122 else
12123 echo "$ac_t""no" 1>&6
12125 done
12127 else
12129 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12130 echo "configure:12131: checking for _qfpclass declaration" >&5
12131 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
12132 if eval "test \"`echo '$''{'glibcxx_cv_func__qfpclass_use'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134 else
12137 ac_ext=C
12138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12139 ac_cpp='$CXXCPP $CPPFLAGS'
12140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12142 cross_compiling=$ac_cv_prog_cxx_cross
12144 cat > conftest.$ac_ext <<EOF
12145 #line 12146 "configure"
12146 #include "confdefs.h"
12147 #include <math.h>
12148 #ifdef HAVE_IEEEFP_H
12149 #include <ieeefp.h>
12150 #endif
12152 int main() {
12153 _qfpclass(0);
12154 ; return 0; }
12156 if { (eval echo configure:12157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12157 rm -rf conftest*
12158 glibcxx_cv_func__qfpclass_use=yes
12159 else
12160 echo "configure: failed program was:" >&5
12161 cat conftest.$ac_ext >&5
12162 rm -rf conftest*
12163 glibcxx_cv_func__qfpclass_use=no
12165 rm -f conftest*
12166 ac_ext=c
12167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12171 cross_compiling=$ac_cv_prog_cc_cross
12177 echo "$ac_t""$glibcxx_cv_func__qfpclass_use" 1>&6
12179 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
12180 for ac_func in _qfpclass
12182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12183 echo "configure:12184: checking for $ac_func" >&5
12184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12186 else
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 /* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char $ac_func(); below. */
12192 #include <assert.h>
12193 /* Override any gcc2 internal prototype to avoid an error. */
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196 char $ac_func();
12198 int main() {
12200 /* The GNU C library defines this for functions which it implements
12201 to always fail with ENOSYS. Some functions are actually named
12202 something starting with __ and the normal name is an alias. */
12203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12204 choke me
12205 #else
12206 $ac_func();
12207 #endif
12209 ; return 0; }
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12212 rm -rf conftest*
12213 eval "ac_cv_func_$ac_func=yes"
12214 else
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 rm -rf conftest*
12218 eval "ac_cv_func_$ac_func=no"
12220 rm -f conftest*
12223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12226 cat >> confdefs.h <<EOF
12227 #define $ac_tr_func 1
12230 else
12231 echo "$ac_t""no" 1>&6
12233 done
12240 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12241 echo "configure:12242: checking for hypot declaration" >&5
12242 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
12243 if eval "test \"`echo '$''{'glibcxx_cv_func_hypot_use'+set}'`\" = set"; then
12244 echo $ac_n "(cached) $ac_c" 1>&6
12245 else
12248 ac_ext=C
12249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12250 ac_cpp='$CXXCPP $CPPFLAGS'
12251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12253 cross_compiling=$ac_cv_prog_cxx_cross
12255 cat > conftest.$ac_ext <<EOF
12256 #line 12257 "configure"
12257 #include "confdefs.h"
12258 #include <math.h>
12259 int main() {
12260 hypot(0, 0);
12261 ; return 0; }
12263 if { (eval echo configure:12264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12264 rm -rf conftest*
12265 glibcxx_cv_func_hypot_use=yes
12266 else
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12269 rm -rf conftest*
12270 glibcxx_cv_func_hypot_use=no
12272 rm -f conftest*
12273 ac_ext=c
12274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12275 ac_cpp='$CPP $CPPFLAGS'
12276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278 cross_compiling=$ac_cv_prog_cc_cross
12284 echo "$ac_t""$glibcxx_cv_func_hypot_use" 1>&6
12286 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
12287 for ac_func in hypot
12289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12290 echo "configure:12291: checking for $ac_func" >&5
12291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12293 else
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func(); below. */
12299 #include <assert.h>
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303 char $ac_func();
12305 int main() {
12307 /* The GNU C library defines this for functions which it implements
12308 to always fail with ENOSYS. Some functions are actually named
12309 something starting with __ and the normal name is an alias. */
12310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12311 choke me
12312 #else
12313 $ac_func();
12314 #endif
12316 ; return 0; }
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 eval "ac_cv_func_$ac_func=yes"
12321 else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 eval "ac_cv_func_$ac_func=no"
12327 rm -f conftest*
12330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12331 echo "$ac_t""yes" 1>&6
12332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12333 cat >> confdefs.h <<EOF
12334 #define $ac_tr_func 1
12337 else
12338 echo "$ac_t""no" 1>&6
12340 done
12342 else
12344 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12345 echo "configure:12346: checking for _hypot declaration" >&5
12346 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
12347 if eval "test \"`echo '$''{'glibcxx_cv_func__hypot_use'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12352 ac_ext=C
12353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12354 ac_cpp='$CXXCPP $CPPFLAGS'
12355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12357 cross_compiling=$ac_cv_prog_cxx_cross
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 #include <math.h>
12363 int main() {
12364 _hypot(0, 0);
12365 ; return 0; }
12367 if { (eval echo configure:12368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12368 rm -rf conftest*
12369 glibcxx_cv_func__hypot_use=yes
12370 else
12371 echo "configure: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 rm -rf conftest*
12374 glibcxx_cv_func__hypot_use=no
12376 rm -f conftest*
12377 ac_ext=c
12378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12379 ac_cpp='$CPP $CPPFLAGS'
12380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12382 cross_compiling=$ac_cv_prog_cc_cross
12388 echo "$ac_t""$glibcxx_cv_func__hypot_use" 1>&6
12390 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
12391 for ac_func in _hypot
12393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12394 echo "configure:12395: checking for $ac_func" >&5
12395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12396 echo $ac_n "(cached) $ac_c" 1>&6
12397 else
12398 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char $ac_func(); below. */
12403 #include <assert.h>
12404 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12407 char $ac_func();
12409 int main() {
12411 /* The GNU C library defines this for functions which it implements
12412 to always fail with ENOSYS. Some functions are actually named
12413 something starting with __ and the normal name is an alias. */
12414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12415 choke me
12416 #else
12417 $ac_func();
12418 #endif
12420 ; return 0; }
12422 if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12423 rm -rf conftest*
12424 eval "ac_cv_func_$ac_func=yes"
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429 eval "ac_cv_func_$ac_func=no"
12431 rm -f conftest*
12434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12435 echo "$ac_t""yes" 1>&6
12436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12437 cat >> confdefs.h <<EOF
12438 #define $ac_tr_func 1
12441 else
12442 echo "$ac_t""no" 1>&6
12444 done
12451 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12452 echo "configure:12453: checking for float trig functions" >&5
12453 if eval "test \"`echo '$''{'glibcxx_cv_func_float_trig_use'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12455 else
12458 ac_ext=C
12459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12463 cross_compiling=$ac_cv_prog_cxx_cross
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 #include <math.h>
12469 int main() {
12470 `for x in acosf asinf atanf \
12471 cosf sinf tanf \
12472 coshf sinhf tanhf; do echo "$x (0);"; done`
12473 ; return 0; }
12475 if { (eval echo configure:12476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12476 rm -rf conftest*
12477 glibcxx_cv_func_float_trig_use=yes
12478 else
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 rm -rf conftest*
12482 glibcxx_cv_func_float_trig_use=no
12484 rm -f conftest*
12485 ac_ext=c
12486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12490 cross_compiling=$ac_cv_prog_cc_cross
12494 echo "$ac_t""$glibcxx_cv_func_float_trig_use" 1>&6
12495 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
12496 for ac_func in acosf asinf atanf \
12497 cosf sinf tanf \
12498 coshf sinhf tanhf
12500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12501 echo "configure:12502: checking for $ac_func" >&5
12502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504 else
12505 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure"
12507 #include "confdefs.h"
12508 /* System header to define __stub macros and hopefully few prototypes,
12509 which can conflict with char $ac_func(); below. */
12510 #include <assert.h>
12511 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char $ac_func();
12516 int main() {
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522 choke me
12523 #else
12524 $ac_func();
12525 #endif
12527 ; return 0; }
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 rm -rf conftest*
12531 eval "ac_cv_func_$ac_func=yes"
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=no"
12538 rm -f conftest*
12541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12542 echo "$ac_t""yes" 1>&6
12543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12544 cat >> confdefs.h <<EOF
12545 #define $ac_tr_func 1
12548 else
12549 echo "$ac_t""no" 1>&6
12551 done
12556 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12557 echo "configure:12558: checking for float round functions" >&5
12558 if eval "test \"`echo '$''{'glibcxx_cv_func_float_round_use'+set}'`\" = set"; then
12559 echo $ac_n "(cached) $ac_c" 1>&6
12560 else
12563 ac_ext=C
12564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12565 ac_cpp='$CXXCPP $CPPFLAGS'
12566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12568 cross_compiling=$ac_cv_prog_cxx_cross
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 #include <math.h>
12574 int main() {
12575 `for x in ceilf floorf; do echo "$x (0);"; done`
12576 ; return 0; }
12578 if { (eval echo configure:12579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12579 rm -rf conftest*
12580 glibcxx_cv_func_float_round_use=yes
12581 else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -rf conftest*
12585 glibcxx_cv_func_float_round_use=no
12587 rm -f conftest*
12588 ac_ext=c
12589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12590 ac_cpp='$CPP $CPPFLAGS'
12591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12593 cross_compiling=$ac_cv_prog_cc_cross
12597 echo "$ac_t""$glibcxx_cv_func_float_round_use" 1>&6
12598 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
12599 for ac_func in ceilf floorf
12601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12602 echo "configure:12603: checking for $ac_func" >&5
12603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12605 else
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure"
12608 #include "confdefs.h"
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func(); below. */
12611 #include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12615 char $ac_func();
12617 int main() {
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12623 choke me
12624 #else
12625 $ac_func();
12626 #endif
12628 ; return 0; }
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 rm -rf conftest*
12632 eval "ac_cv_func_$ac_func=yes"
12633 else
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 rm -rf conftest*
12637 eval "ac_cv_func_$ac_func=no"
12639 rm -f conftest*
12642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12643 echo "$ac_t""yes" 1>&6
12644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12645 cat >> confdefs.h <<EOF
12646 #define $ac_tr_func 1
12649 else
12650 echo "$ac_t""no" 1>&6
12652 done
12658 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12659 echo "configure:12660: checking for expf declaration" >&5
12660 if test x${glibcxx_cv_func_expf_use+set} != xset; then
12661 if eval "test \"`echo '$''{'glibcxx_cv_func_expf_use'+set}'`\" = set"; then
12662 echo $ac_n "(cached) $ac_c" 1>&6
12663 else
12666 ac_ext=C
12667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12668 ac_cpp='$CXXCPP $CPPFLAGS'
12669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12671 cross_compiling=$ac_cv_prog_cxx_cross
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12676 #include <math.h>
12677 #ifdef HAVE_IEEEFP_H
12678 #include <ieeefp.h>
12679 #endif
12681 int main() {
12682 expf(0);
12683 ; return 0; }
12685 if { (eval echo configure:12686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12686 rm -rf conftest*
12687 glibcxx_cv_func_expf_use=yes
12688 else
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -rf conftest*
12692 glibcxx_cv_func_expf_use=no
12694 rm -f conftest*
12695 ac_ext=c
12696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12700 cross_compiling=$ac_cv_prog_cc_cross
12706 echo "$ac_t""$glibcxx_cv_func_expf_use" 1>&6
12708 if test x$glibcxx_cv_func_expf_use = x"yes"; then
12709 for ac_func in expf
12711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12712 echo "configure:12713: checking for $ac_func" >&5
12713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func(); below. */
12721 #include <assert.h>
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char $ac_func();
12727 int main() {
12729 /* The GNU C library defines this for functions which it implements
12730 to always fail with ENOSYS. Some functions are actually named
12731 something starting with __ and the normal name is an alias. */
12732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733 choke me
12734 #else
12735 $ac_func();
12736 #endif
12738 ; return 0; }
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=yes"
12743 else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=no"
12749 rm -f conftest*
12752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12755 cat >> confdefs.h <<EOF
12756 #define $ac_tr_func 1
12759 else
12760 echo "$ac_t""no" 1>&6
12762 done
12764 else
12766 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12767 echo "configure:12768: checking for _expf declaration" >&5
12768 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12769 if eval "test \"`echo '$''{'glibcxx_cv_func__expf_use'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771 else
12774 ac_ext=C
12775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12776 ac_cpp='$CXXCPP $CPPFLAGS'
12777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12779 cross_compiling=$ac_cv_prog_cxx_cross
12781 cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 #include <math.h>
12785 #ifdef HAVE_IEEEFP_H
12786 #include <ieeefp.h>
12787 #endif
12789 int main() {
12790 _expf(0);
12791 ; return 0; }
12793 if { (eval echo configure:12794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12794 rm -rf conftest*
12795 glibcxx_cv_func__expf_use=yes
12796 else
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12799 rm -rf conftest*
12800 glibcxx_cv_func__expf_use=no
12802 rm -f conftest*
12803 ac_ext=c
12804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12808 cross_compiling=$ac_cv_prog_cc_cross
12814 echo "$ac_t""$glibcxx_cv_func__expf_use" 1>&6
12816 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12817 for ac_func in _expf
12819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12820 echo "configure:12821: checking for $ac_func" >&5
12821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12823 else
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 /* System header to define __stub macros and hopefully few prototypes,
12828 which can conflict with char $ac_func(); below. */
12829 #include <assert.h>
12830 /* Override any gcc2 internal prototype to avoid an error. */
12831 /* We use char because int might match the return type of a gcc2
12832 builtin and then its argument prototype would still apply. */
12833 char $ac_func();
12835 int main() {
12837 /* The GNU C library defines this for functions which it implements
12838 to always fail with ENOSYS. Some functions are actually named
12839 something starting with __ and the normal name is an alias. */
12840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12841 choke me
12842 #else
12843 $ac_func();
12844 #endif
12846 ; return 0; }
12848 if { (eval echo configure:12849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12849 rm -rf conftest*
12850 eval "ac_cv_func_$ac_func=yes"
12851 else
12852 echo "configure: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 rm -rf conftest*
12855 eval "ac_cv_func_$ac_func=no"
12857 rm -f conftest*
12860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12861 echo "$ac_t""yes" 1>&6
12862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12863 cat >> confdefs.h <<EOF
12864 #define $ac_tr_func 1
12867 else
12868 echo "$ac_t""no" 1>&6
12870 done
12877 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12878 echo "configure:12879: checking for isnanf declaration" >&5
12879 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12880 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanf_use'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12882 else
12885 ac_ext=C
12886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12887 ac_cpp='$CXXCPP $CPPFLAGS'
12888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12890 cross_compiling=$ac_cv_prog_cxx_cross
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <math.h>
12896 #ifdef HAVE_IEEEFP_H
12897 #include <ieeefp.h>
12898 #endif
12900 int main() {
12901 isnanf(0);
12902 ; return 0; }
12904 if { (eval echo configure:12905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12905 rm -rf conftest*
12906 glibcxx_cv_func_isnanf_use=yes
12907 else
12908 echo "configure: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 rm -rf conftest*
12911 glibcxx_cv_func_isnanf_use=no
12913 rm -f conftest*
12914 ac_ext=c
12915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12919 cross_compiling=$ac_cv_prog_cc_cross
12925 echo "$ac_t""$glibcxx_cv_func_isnanf_use" 1>&6
12927 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12928 for ac_func in isnanf
12930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12931 echo "configure:12932: checking for $ac_func" >&5
12932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12934 else
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 /* System header to define __stub macros and hopefully few prototypes,
12939 which can conflict with char $ac_func(); below. */
12940 #include <assert.h>
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12944 char $ac_func();
12946 int main() {
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12952 choke me
12953 #else
12954 $ac_func();
12955 #endif
12957 ; return 0; }
12959 if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12960 rm -rf conftest*
12961 eval "ac_cv_func_$ac_func=yes"
12962 else
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12965 rm -rf conftest*
12966 eval "ac_cv_func_$ac_func=no"
12968 rm -f conftest*
12971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12972 echo "$ac_t""yes" 1>&6
12973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12974 cat >> confdefs.h <<EOF
12975 #define $ac_tr_func 1
12978 else
12979 echo "$ac_t""no" 1>&6
12981 done
12983 else
12985 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12986 echo "configure:12987: checking for _isnanf declaration" >&5
12987 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12988 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanf_use'+set}'`\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12990 else
12993 ac_ext=C
12994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12995 ac_cpp='$CXXCPP $CPPFLAGS'
12996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12998 cross_compiling=$ac_cv_prog_cxx_cross
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 #include <math.h>
13004 #ifdef HAVE_IEEEFP_H
13005 #include <ieeefp.h>
13006 #endif
13008 int main() {
13009 _isnanf(0);
13010 ; return 0; }
13012 if { (eval echo configure:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13013 rm -rf conftest*
13014 glibcxx_cv_func__isnanf_use=yes
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 glibcxx_cv_func__isnanf_use=no
13021 rm -f conftest*
13022 ac_ext=c
13023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027 cross_compiling=$ac_cv_prog_cc_cross
13033 echo "$ac_t""$glibcxx_cv_func__isnanf_use" 1>&6
13035 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
13036 for ac_func in _isnanf
13038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13039 echo "configure:13040: checking for $ac_func" >&5
13040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func(); below. */
13048 #include <assert.h>
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char $ac_func();
13054 int main() {
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13060 choke me
13061 #else
13062 $ac_func();
13063 #endif
13065 ; return 0; }
13067 if { (eval echo configure:13068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13068 rm -rf conftest*
13069 eval "ac_cv_func_$ac_func=yes"
13070 else
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 rm -rf conftest*
13074 eval "ac_cv_func_$ac_func=no"
13076 rm -f conftest*
13079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13080 echo "$ac_t""yes" 1>&6
13081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13082 cat >> confdefs.h <<EOF
13083 #define $ac_tr_func 1
13086 else
13087 echo "$ac_t""no" 1>&6
13089 done
13096 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13097 echo "configure:13098: checking for isinff declaration" >&5
13098 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
13099 if eval "test \"`echo '$''{'glibcxx_cv_func_isinff_use'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101 else
13104 ac_ext=C
13105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13106 ac_cpp='$CXXCPP $CPPFLAGS'
13107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13109 cross_compiling=$ac_cv_prog_cxx_cross
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 #include <math.h>
13115 #ifdef HAVE_IEEEFP_H
13116 #include <ieeefp.h>
13117 #endif
13119 int main() {
13120 isinff(0);
13121 ; return 0; }
13123 if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13124 rm -rf conftest*
13125 glibcxx_cv_func_isinff_use=yes
13126 else
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 glibcxx_cv_func_isinff_use=no
13132 rm -f conftest*
13133 ac_ext=c
13134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13138 cross_compiling=$ac_cv_prog_cc_cross
13144 echo "$ac_t""$glibcxx_cv_func_isinff_use" 1>&6
13146 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
13147 for ac_func in isinff
13149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13150 echo "configure:13151: checking for $ac_func" >&5
13151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153 else
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 /* System header to define __stub macros and hopefully few prototypes,
13158 which can conflict with char $ac_func(); below. */
13159 #include <assert.h>
13160 /* Override any gcc2 internal prototype to avoid an error. */
13161 /* We use char because int might match the return type of a gcc2
13162 builtin and then its argument prototype would still apply. */
13163 char $ac_func();
13165 int main() {
13167 /* The GNU C library defines this for functions which it implements
13168 to always fail with ENOSYS. Some functions are actually named
13169 something starting with __ and the normal name is an alias. */
13170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13171 choke me
13172 #else
13173 $ac_func();
13174 #endif
13176 ; return 0; }
13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13179 rm -rf conftest*
13180 eval "ac_cv_func_$ac_func=yes"
13181 else
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 eval "ac_cv_func_$ac_func=no"
13187 rm -f conftest*
13190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13193 cat >> confdefs.h <<EOF
13194 #define $ac_tr_func 1
13197 else
13198 echo "$ac_t""no" 1>&6
13200 done
13202 else
13204 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13205 echo "configure:13206: checking for _isinff declaration" >&5
13206 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
13207 if eval "test \"`echo '$''{'glibcxx_cv_func__isinff_use'+set}'`\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13209 else
13212 ac_ext=C
13213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13214 ac_cpp='$CXXCPP $CPPFLAGS'
13215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13217 cross_compiling=$ac_cv_prog_cxx_cross
13219 cat > conftest.$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 #include <math.h>
13223 #ifdef HAVE_IEEEFP_H
13224 #include <ieeefp.h>
13225 #endif
13227 int main() {
13228 _isinff(0);
13229 ; return 0; }
13231 if { (eval echo configure:13232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13232 rm -rf conftest*
13233 glibcxx_cv_func__isinff_use=yes
13234 else
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13237 rm -rf conftest*
13238 glibcxx_cv_func__isinff_use=no
13240 rm -f conftest*
13241 ac_ext=c
13242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13243 ac_cpp='$CPP $CPPFLAGS'
13244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13246 cross_compiling=$ac_cv_prog_cc_cross
13252 echo "$ac_t""$glibcxx_cv_func__isinff_use" 1>&6
13254 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
13255 for ac_func in _isinff
13257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13258 echo "configure:13259: checking for $ac_func" >&5
13259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261 else
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func(); below. */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func();
13273 int main() {
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 choke me
13280 #else
13281 $ac_func();
13282 #endif
13284 ; return 0; }
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 rm -rf conftest*
13288 eval "ac_cv_func_$ac_func=yes"
13289 else
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 rm -rf conftest*
13293 eval "ac_cv_func_$ac_func=no"
13295 rm -f conftest*
13298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13301 cat >> confdefs.h <<EOF
13302 #define $ac_tr_func 1
13305 else
13306 echo "$ac_t""no" 1>&6
13308 done
13315 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13316 echo "configure:13317: checking for atan2f declaration" >&5
13317 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
13318 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2f_use'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320 else
13323 ac_ext=C
13324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13325 ac_cpp='$CXXCPP $CPPFLAGS'
13326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13328 cross_compiling=$ac_cv_prog_cxx_cross
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 #include <math.h>
13334 int main() {
13335 atan2f(0, 0);
13336 ; return 0; }
13338 if { (eval echo configure:13339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13339 rm -rf conftest*
13340 glibcxx_cv_func_atan2f_use=yes
13341 else
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13344 rm -rf conftest*
13345 glibcxx_cv_func_atan2f_use=no
13347 rm -f conftest*
13348 ac_ext=c
13349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13353 cross_compiling=$ac_cv_prog_cc_cross
13359 echo "$ac_t""$glibcxx_cv_func_atan2f_use" 1>&6
13361 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13362 for ac_func in atan2f
13364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13365 echo "configure:13366: checking for $ac_func" >&5
13366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13368 else
13369 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure"
13371 #include "confdefs.h"
13372 /* System header to define __stub macros and hopefully few prototypes,
13373 which can conflict with char $ac_func(); below. */
13374 #include <assert.h>
13375 /* Override any gcc2 internal prototype to avoid an error. */
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13378 char $ac_func();
13380 int main() {
13382 /* The GNU C library defines this for functions which it implements
13383 to always fail with ENOSYS. Some functions are actually named
13384 something starting with __ and the normal name is an alias. */
13385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13386 choke me
13387 #else
13388 $ac_func();
13389 #endif
13391 ; return 0; }
13393 if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13394 rm -rf conftest*
13395 eval "ac_cv_func_$ac_func=yes"
13396 else
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13399 rm -rf conftest*
13400 eval "ac_cv_func_$ac_func=no"
13402 rm -f conftest*
13405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13406 echo "$ac_t""yes" 1>&6
13407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13408 cat >> confdefs.h <<EOF
13409 #define $ac_tr_func 1
13412 else
13413 echo "$ac_t""no" 1>&6
13415 done
13417 else
13419 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13420 echo "configure:13421: checking for _atan2f declaration" >&5
13421 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13422 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2f_use'+set}'`\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13424 else
13427 ac_ext=C
13428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13429 ac_cpp='$CXXCPP $CPPFLAGS'
13430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13432 cross_compiling=$ac_cv_prog_cxx_cross
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 #include <math.h>
13438 int main() {
13439 _atan2f(0, 0);
13440 ; return 0; }
13442 if { (eval echo configure:13443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13443 rm -rf conftest*
13444 glibcxx_cv_func__atan2f_use=yes
13445 else
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 glibcxx_cv_func__atan2f_use=no
13451 rm -f conftest*
13452 ac_ext=c
13453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13454 ac_cpp='$CPP $CPPFLAGS'
13455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13457 cross_compiling=$ac_cv_prog_cc_cross
13463 echo "$ac_t""$glibcxx_cv_func__atan2f_use" 1>&6
13465 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13466 for ac_func in _atan2f
13468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13469 echo "configure:13470: checking for $ac_func" >&5
13470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13472 else
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func(); below. */
13478 #include <assert.h>
13479 /* Override any gcc2 internal prototype to avoid an error. */
13480 /* We use char because int might match the return type of a gcc2
13481 builtin and then its argument prototype would still apply. */
13482 char $ac_func();
13484 int main() {
13486 /* The GNU C library defines this for functions which it implements
13487 to always fail with ENOSYS. Some functions are actually named
13488 something starting with __ and the normal name is an alias. */
13489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13490 choke me
13491 #else
13492 $ac_func();
13493 #endif
13495 ; return 0; }
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 rm -rf conftest*
13499 eval "ac_cv_func_$ac_func=yes"
13500 else
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=no"
13506 rm -f conftest*
13509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13510 echo "$ac_t""yes" 1>&6
13511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13512 cat >> confdefs.h <<EOF
13513 #define $ac_tr_func 1
13516 else
13517 echo "$ac_t""no" 1>&6
13519 done
13526 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13527 echo "configure:13528: checking for fabsf declaration" >&5
13528 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13529 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsf_use'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13531 else
13534 ac_ext=C
13535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13539 cross_compiling=$ac_cv_prog_cxx_cross
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 #include <math.h>
13545 #ifdef HAVE_IEEEFP_H
13546 #include <ieeefp.h>
13547 #endif
13549 int main() {
13550 fabsf(0);
13551 ; return 0; }
13553 if { (eval echo configure:13554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13554 rm -rf conftest*
13555 glibcxx_cv_func_fabsf_use=yes
13556 else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 glibcxx_cv_func_fabsf_use=no
13562 rm -f conftest*
13563 ac_ext=c
13564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13568 cross_compiling=$ac_cv_prog_cc_cross
13574 echo "$ac_t""$glibcxx_cv_func_fabsf_use" 1>&6
13576 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13577 for ac_func in fabsf
13579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13580 echo "configure:13581: checking for $ac_func" >&5
13581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583 else
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 /* System header to define __stub macros and hopefully few prototypes,
13588 which can conflict with char $ac_func(); below. */
13589 #include <assert.h>
13590 /* Override any gcc2 internal prototype to avoid an error. */
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13593 char $ac_func();
13595 int main() {
13597 /* The GNU C library defines this for functions which it implements
13598 to always fail with ENOSYS. Some functions are actually named
13599 something starting with __ and the normal name is an alias. */
13600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13601 choke me
13602 #else
13603 $ac_func();
13604 #endif
13606 ; return 0; }
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13609 rm -rf conftest*
13610 eval "ac_cv_func_$ac_func=yes"
13611 else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615 eval "ac_cv_func_$ac_func=no"
13617 rm -f conftest*
13620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13621 echo "$ac_t""yes" 1>&6
13622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13623 cat >> confdefs.h <<EOF
13624 #define $ac_tr_func 1
13627 else
13628 echo "$ac_t""no" 1>&6
13630 done
13632 else
13634 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13635 echo "configure:13636: checking for _fabsf declaration" >&5
13636 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13637 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsf_use'+set}'`\" = set"; then
13638 echo $ac_n "(cached) $ac_c" 1>&6
13639 else
13642 ac_ext=C
13643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13644 ac_cpp='$CXXCPP $CPPFLAGS'
13645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13647 cross_compiling=$ac_cv_prog_cxx_cross
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652 #include <math.h>
13653 #ifdef HAVE_IEEEFP_H
13654 #include <ieeefp.h>
13655 #endif
13657 int main() {
13658 _fabsf(0);
13659 ; return 0; }
13661 if { (eval echo configure:13662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13662 rm -rf conftest*
13663 glibcxx_cv_func__fabsf_use=yes
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 glibcxx_cv_func__fabsf_use=no
13670 rm -f conftest*
13671 ac_ext=c
13672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13676 cross_compiling=$ac_cv_prog_cc_cross
13682 echo "$ac_t""$glibcxx_cv_func__fabsf_use" 1>&6
13684 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13685 for ac_func in _fabsf
13687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13688 echo "configure:13689: checking for $ac_func" >&5
13689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char $ac_func(); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char $ac_func();
13703 int main() {
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13709 choke me
13710 #else
13711 $ac_func();
13712 #endif
13714 ; return 0; }
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_func_$ac_func=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_func_$ac_func=no"
13725 rm -f conftest*
13728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13731 cat >> confdefs.h <<EOF
13732 #define $ac_tr_func 1
13735 else
13736 echo "$ac_t""no" 1>&6
13738 done
13745 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13746 echo "configure:13747: checking for fmodf declaration" >&5
13747 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13748 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodf_use'+set}'`\" = set"; then
13749 echo $ac_n "(cached) $ac_c" 1>&6
13750 else
13753 ac_ext=C
13754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13755 ac_cpp='$CXXCPP $CPPFLAGS'
13756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13758 cross_compiling=$ac_cv_prog_cxx_cross
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 #include <math.h>
13764 int main() {
13765 fmodf(0, 0);
13766 ; return 0; }
13768 if { (eval echo configure:13769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13769 rm -rf conftest*
13770 glibcxx_cv_func_fmodf_use=yes
13771 else
13772 echo "configure: failed program was:" >&5
13773 cat conftest.$ac_ext >&5
13774 rm -rf conftest*
13775 glibcxx_cv_func_fmodf_use=no
13777 rm -f conftest*
13778 ac_ext=c
13779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13780 ac_cpp='$CPP $CPPFLAGS'
13781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13783 cross_compiling=$ac_cv_prog_cc_cross
13789 echo "$ac_t""$glibcxx_cv_func_fmodf_use" 1>&6
13791 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13792 for ac_func in fmodf
13794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13795 echo "configure:13796: checking for $ac_func" >&5
13796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13798 else
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* System header to define __stub macros and hopefully few prototypes,
13803 which can conflict with char $ac_func(); below. */
13804 #include <assert.h>
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 /* We use char because int might match the return type of a gcc2
13807 builtin and then its argument prototype would still apply. */
13808 char $ac_func();
13810 int main() {
13812 /* The GNU C library defines this for functions which it implements
13813 to always fail with ENOSYS. Some functions are actually named
13814 something starting with __ and the normal name is an alias. */
13815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13816 choke me
13817 #else
13818 $ac_func();
13819 #endif
13821 ; return 0; }
13823 if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13824 rm -rf conftest*
13825 eval "ac_cv_func_$ac_func=yes"
13826 else
13827 echo "configure: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 rm -rf conftest*
13830 eval "ac_cv_func_$ac_func=no"
13832 rm -f conftest*
13835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13838 cat >> confdefs.h <<EOF
13839 #define $ac_tr_func 1
13842 else
13843 echo "$ac_t""no" 1>&6
13845 done
13847 else
13849 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13850 echo "configure:13851: checking for _fmodf declaration" >&5
13851 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13852 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodf_use'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13857 ac_ext=C
13858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13859 ac_cpp='$CXXCPP $CPPFLAGS'
13860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13862 cross_compiling=$ac_cv_prog_cxx_cross
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 #include <math.h>
13868 int main() {
13869 _fmodf(0, 0);
13870 ; return 0; }
13872 if { (eval echo configure:13873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13873 rm -rf conftest*
13874 glibcxx_cv_func__fmodf_use=yes
13875 else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 glibcxx_cv_func__fmodf_use=no
13881 rm -f conftest*
13882 ac_ext=c
13883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13887 cross_compiling=$ac_cv_prog_cc_cross
13893 echo "$ac_t""$glibcxx_cv_func__fmodf_use" 1>&6
13895 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13896 for ac_func in _fmodf
13898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13899 echo "configure:13900: checking for $ac_func" >&5
13900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902 else
13903 cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 /* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char $ac_func(); below. */
13908 #include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char $ac_func();
13914 int main() {
13916 /* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13920 choke me
13921 #else
13922 $ac_func();
13923 #endif
13925 ; return 0; }
13927 if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928 rm -rf conftest*
13929 eval "ac_cv_func_$ac_func=yes"
13930 else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
13934 eval "ac_cv_func_$ac_func=no"
13936 rm -f conftest*
13939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13942 cat >> confdefs.h <<EOF
13943 #define $ac_tr_func 1
13946 else
13947 echo "$ac_t""no" 1>&6
13949 done
13956 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13957 echo "configure:13958: checking for frexpf declaration" >&5
13958 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13959 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpf_use'+set}'`\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13961 else
13964 ac_ext=C
13965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13966 ac_cpp='$CXXCPP $CPPFLAGS'
13967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13969 cross_compiling=$ac_cv_prog_cxx_cross
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 #include <math.h>
13975 int main() {
13976 frexpf(0, 0);
13977 ; return 0; }
13979 if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13980 rm -rf conftest*
13981 glibcxx_cv_func_frexpf_use=yes
13982 else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 glibcxx_cv_func_frexpf_use=no
13988 rm -f conftest*
13989 ac_ext=c
13990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13991 ac_cpp='$CPP $CPPFLAGS'
13992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13994 cross_compiling=$ac_cv_prog_cc_cross
14000 echo "$ac_t""$glibcxx_cv_func_frexpf_use" 1>&6
14002 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14003 for ac_func in frexpf
14005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14006 echo "configure:14007: checking for $ac_func" >&5
14007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* System header to define __stub macros and hopefully few prototypes,
14014 which can conflict with char $ac_func(); below. */
14015 #include <assert.h>
14016 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char $ac_func();
14021 int main() {
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14027 choke me
14028 #else
14029 $ac_func();
14030 #endif
14032 ; return 0; }
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=yes"
14037 else
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041 eval "ac_cv_func_$ac_func=no"
14043 rm -f conftest*
14046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14047 echo "$ac_t""yes" 1>&6
14048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14049 cat >> confdefs.h <<EOF
14050 #define $ac_tr_func 1
14053 else
14054 echo "$ac_t""no" 1>&6
14056 done
14058 else
14060 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14061 echo "configure:14062: checking for _frexpf declaration" >&5
14062 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14063 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpf_use'+set}'`\" = set"; then
14064 echo $ac_n "(cached) $ac_c" 1>&6
14065 else
14068 ac_ext=C
14069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14073 cross_compiling=$ac_cv_prog_cxx_cross
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 #include <math.h>
14079 int main() {
14080 _frexpf(0, 0);
14081 ; return 0; }
14083 if { (eval echo configure:14084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14084 rm -rf conftest*
14085 glibcxx_cv_func__frexpf_use=yes
14086 else
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 glibcxx_cv_func__frexpf_use=no
14092 rm -f conftest*
14093 ac_ext=c
14094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14095 ac_cpp='$CPP $CPPFLAGS'
14096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14098 cross_compiling=$ac_cv_prog_cc_cross
14104 echo "$ac_t""$glibcxx_cv_func__frexpf_use" 1>&6
14106 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14107 for ac_func in _frexpf
14109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14110 echo "configure:14111: checking for $ac_func" >&5
14111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113 else
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 /* System header to define __stub macros and hopefully few prototypes,
14118 which can conflict with char $ac_func(); below. */
14119 #include <assert.h>
14120 /* Override any gcc2 internal prototype to avoid an error. */
14121 /* We use char because int might match the return type of a gcc2
14122 builtin and then its argument prototype would still apply. */
14123 char $ac_func();
14125 int main() {
14127 /* The GNU C library defines this for functions which it implements
14128 to always fail with ENOSYS. Some functions are actually named
14129 something starting with __ and the normal name is an alias. */
14130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14131 choke me
14132 #else
14133 $ac_func();
14134 #endif
14136 ; return 0; }
14138 if { (eval echo configure:14139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14139 rm -rf conftest*
14140 eval "ac_cv_func_$ac_func=yes"
14141 else
14142 echo "configure: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14144 rm -rf conftest*
14145 eval "ac_cv_func_$ac_func=no"
14147 rm -f conftest*
14150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14151 echo "$ac_t""yes" 1>&6
14152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14153 cat >> confdefs.h <<EOF
14154 #define $ac_tr_func 1
14157 else
14158 echo "$ac_t""no" 1>&6
14160 done
14167 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14168 echo "configure:14169: checking for hypotf declaration" >&5
14169 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14170 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotf_use'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
14172 else
14175 ac_ext=C
14176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14177 ac_cpp='$CXXCPP $CPPFLAGS'
14178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14180 cross_compiling=$ac_cv_prog_cxx_cross
14182 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure"
14184 #include "confdefs.h"
14185 #include <math.h>
14186 int main() {
14187 hypotf(0, 0);
14188 ; return 0; }
14190 if { (eval echo configure:14191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14191 rm -rf conftest*
14192 glibcxx_cv_func_hypotf_use=yes
14193 else
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 rm -rf conftest*
14197 glibcxx_cv_func_hypotf_use=no
14199 rm -f conftest*
14200 ac_ext=c
14201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205 cross_compiling=$ac_cv_prog_cc_cross
14211 echo "$ac_t""$glibcxx_cv_func_hypotf_use" 1>&6
14213 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14214 for ac_func in hypotf
14216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14217 echo "configure:14218: checking for $ac_func" >&5
14218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220 else
14221 cat > conftest.$ac_ext <<EOF
14222 #line 14223 "configure"
14223 #include "confdefs.h"
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func(); below. */
14226 #include <assert.h>
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 /* We use char because int might match the return type of a gcc2
14229 builtin and then its argument prototype would still apply. */
14230 char $ac_func();
14232 int main() {
14234 /* The GNU C library defines this for functions which it implements
14235 to always fail with ENOSYS. Some functions are actually named
14236 something starting with __ and the normal name is an alias. */
14237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14238 choke me
14239 #else
14240 $ac_func();
14241 #endif
14243 ; return 0; }
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14246 rm -rf conftest*
14247 eval "ac_cv_func_$ac_func=yes"
14248 else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 rm -rf conftest*
14252 eval "ac_cv_func_$ac_func=no"
14254 rm -f conftest*
14257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14258 echo "$ac_t""yes" 1>&6
14259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14260 cat >> confdefs.h <<EOF
14261 #define $ac_tr_func 1
14264 else
14265 echo "$ac_t""no" 1>&6
14267 done
14269 else
14271 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14272 echo "configure:14273: checking for _hypotf declaration" >&5
14273 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14274 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotf_use'+set}'`\" = set"; then
14275 echo $ac_n "(cached) $ac_c" 1>&6
14276 else
14279 ac_ext=C
14280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14281 ac_cpp='$CXXCPP $CPPFLAGS'
14282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14284 cross_compiling=$ac_cv_prog_cxx_cross
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 #include <math.h>
14290 int main() {
14291 _hypotf(0, 0);
14292 ; return 0; }
14294 if { (eval echo configure:14295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14295 rm -rf conftest*
14296 glibcxx_cv_func__hypotf_use=yes
14297 else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301 glibcxx_cv_func__hypotf_use=no
14303 rm -f conftest*
14304 ac_ext=c
14305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14306 ac_cpp='$CPP $CPPFLAGS'
14307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14309 cross_compiling=$ac_cv_prog_cc_cross
14315 echo "$ac_t""$glibcxx_cv_func__hypotf_use" 1>&6
14317 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14318 for ac_func in _hypotf
14320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14321 echo "configure:14322: checking for $ac_func" >&5
14322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324 else
14325 cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 /* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char $ac_func(); below. */
14330 #include <assert.h>
14331 /* Override any gcc2 internal prototype to avoid an error. */
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char $ac_func();
14336 int main() {
14338 /* The GNU C library defines this for functions which it implements
14339 to always fail with ENOSYS. Some functions are actually named
14340 something starting with __ and the normal name is an alias. */
14341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14342 choke me
14343 #else
14344 $ac_func();
14345 #endif
14347 ; return 0; }
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_func_$ac_func=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_func_$ac_func=no"
14358 rm -f conftest*
14361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14362 echo "$ac_t""yes" 1>&6
14363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14364 cat >> confdefs.h <<EOF
14365 #define $ac_tr_func 1
14368 else
14369 echo "$ac_t""no" 1>&6
14371 done
14378 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14379 echo "configure:14380: checking for ldexpf declaration" >&5
14380 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14381 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpf_use'+set}'`\" = set"; then
14382 echo $ac_n "(cached) $ac_c" 1>&6
14383 else
14386 ac_ext=C
14387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14388 ac_cpp='$CXXCPP $CPPFLAGS'
14389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14391 cross_compiling=$ac_cv_prog_cxx_cross
14393 cat > conftest.$ac_ext <<EOF
14394 #line 14395 "configure"
14395 #include "confdefs.h"
14396 #include <math.h>
14397 int main() {
14398 ldexpf(0, 0);
14399 ; return 0; }
14401 if { (eval echo configure:14402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14402 rm -rf conftest*
14403 glibcxx_cv_func_ldexpf_use=yes
14404 else
14405 echo "configure: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14407 rm -rf conftest*
14408 glibcxx_cv_func_ldexpf_use=no
14410 rm -f conftest*
14411 ac_ext=c
14412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14413 ac_cpp='$CPP $CPPFLAGS'
14414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14416 cross_compiling=$ac_cv_prog_cc_cross
14422 echo "$ac_t""$glibcxx_cv_func_ldexpf_use" 1>&6
14424 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14425 for ac_func in ldexpf
14427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14428 echo "configure:14429: checking for $ac_func" >&5
14429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14431 else
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 /* System header to define __stub macros and hopefully few prototypes,
14436 which can conflict with char $ac_func(); below. */
14437 #include <assert.h>
14438 /* Override any gcc2 internal prototype to avoid an error. */
14439 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14441 char $ac_func();
14443 int main() {
14445 /* The GNU C library defines this for functions which it implements
14446 to always fail with ENOSYS. Some functions are actually named
14447 something starting with __ and the normal name is an alias. */
14448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14449 choke me
14450 #else
14451 $ac_func();
14452 #endif
14454 ; return 0; }
14456 if { (eval echo configure:14457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14457 rm -rf conftest*
14458 eval "ac_cv_func_$ac_func=yes"
14459 else
14460 echo "configure: failed program was:" >&5
14461 cat conftest.$ac_ext >&5
14462 rm -rf conftest*
14463 eval "ac_cv_func_$ac_func=no"
14465 rm -f conftest*
14468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14469 echo "$ac_t""yes" 1>&6
14470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14471 cat >> confdefs.h <<EOF
14472 #define $ac_tr_func 1
14475 else
14476 echo "$ac_t""no" 1>&6
14478 done
14480 else
14482 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14483 echo "configure:14484: checking for _ldexpf declaration" >&5
14484 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14485 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpf_use'+set}'`\" = set"; then
14486 echo $ac_n "(cached) $ac_c" 1>&6
14487 else
14490 ac_ext=C
14491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14492 ac_cpp='$CXXCPP $CPPFLAGS'
14493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14495 cross_compiling=$ac_cv_prog_cxx_cross
14497 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure"
14499 #include "confdefs.h"
14500 #include <math.h>
14501 int main() {
14502 _ldexpf(0, 0);
14503 ; return 0; }
14505 if { (eval echo configure:14506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14506 rm -rf conftest*
14507 glibcxx_cv_func__ldexpf_use=yes
14508 else
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
14512 glibcxx_cv_func__ldexpf_use=no
14514 rm -f conftest*
14515 ac_ext=c
14516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14517 ac_cpp='$CPP $CPPFLAGS'
14518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14520 cross_compiling=$ac_cv_prog_cc_cross
14526 echo "$ac_t""$glibcxx_cv_func__ldexpf_use" 1>&6
14528 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14529 for ac_func in _ldexpf
14531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14532 echo "configure:14533: checking for $ac_func" >&5
14533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14534 echo $ac_n "(cached) $ac_c" 1>&6
14535 else
14536 cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure"
14538 #include "confdefs.h"
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func(); below. */
14541 #include <assert.h>
14542 /* Override any gcc2 internal prototype to avoid an error. */
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14545 char $ac_func();
14547 int main() {
14549 /* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14553 choke me
14554 #else
14555 $ac_func();
14556 #endif
14558 ; return 0; }
14560 if { (eval echo configure:14561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14561 rm -rf conftest*
14562 eval "ac_cv_func_$ac_func=yes"
14563 else
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14566 rm -rf conftest*
14567 eval "ac_cv_func_$ac_func=no"
14569 rm -f conftest*
14572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14573 echo "$ac_t""yes" 1>&6
14574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14575 cat >> confdefs.h <<EOF
14576 #define $ac_tr_func 1
14579 else
14580 echo "$ac_t""no" 1>&6
14582 done
14589 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14590 echo "configure:14591: checking for logf declaration" >&5
14591 if test x${glibcxx_cv_func_logf_use+set} != xset; then
14592 if eval "test \"`echo '$''{'glibcxx_cv_func_logf_use'+set}'`\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14594 else
14597 ac_ext=C
14598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14599 ac_cpp='$CXXCPP $CPPFLAGS'
14600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14602 cross_compiling=$ac_cv_prog_cxx_cross
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14607 #include <math.h>
14608 #ifdef HAVE_IEEEFP_H
14609 #include <ieeefp.h>
14610 #endif
14612 int main() {
14613 logf(0);
14614 ; return 0; }
14616 if { (eval echo configure:14617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14617 rm -rf conftest*
14618 glibcxx_cv_func_logf_use=yes
14619 else
14620 echo "configure: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 rm -rf conftest*
14623 glibcxx_cv_func_logf_use=no
14625 rm -f conftest*
14626 ac_ext=c
14627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14631 cross_compiling=$ac_cv_prog_cc_cross
14637 echo "$ac_t""$glibcxx_cv_func_logf_use" 1>&6
14639 if test x$glibcxx_cv_func_logf_use = x"yes"; then
14640 for ac_func in logf
14642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14643 echo "configure:14644: checking for $ac_func" >&5
14644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14646 else
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char $ac_func(); below. */
14652 #include <assert.h>
14653 /* Override any gcc2 internal prototype to avoid an error. */
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656 char $ac_func();
14658 int main() {
14660 /* The GNU C library defines this for functions which it implements
14661 to always fail with ENOSYS. Some functions are actually named
14662 something starting with __ and the normal name is an alias. */
14663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14664 choke me
14665 #else
14666 $ac_func();
14667 #endif
14669 ; return 0; }
14671 if { (eval echo configure:14672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14672 rm -rf conftest*
14673 eval "ac_cv_func_$ac_func=yes"
14674 else
14675 echo "configure: failed program was:" >&5
14676 cat conftest.$ac_ext >&5
14677 rm -rf conftest*
14678 eval "ac_cv_func_$ac_func=no"
14680 rm -f conftest*
14683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14684 echo "$ac_t""yes" 1>&6
14685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14686 cat >> confdefs.h <<EOF
14687 #define $ac_tr_func 1
14690 else
14691 echo "$ac_t""no" 1>&6
14693 done
14695 else
14697 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14698 echo "configure:14699: checking for _logf declaration" >&5
14699 if test x${glibcxx_cv_func__logf_use+set} != xset; then
14700 if eval "test \"`echo '$''{'glibcxx_cv_func__logf_use'+set}'`\" = set"; then
14701 echo $ac_n "(cached) $ac_c" 1>&6
14702 else
14705 ac_ext=C
14706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14707 ac_cpp='$CXXCPP $CPPFLAGS'
14708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14710 cross_compiling=$ac_cv_prog_cxx_cross
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14715 #include <math.h>
14716 #ifdef HAVE_IEEEFP_H
14717 #include <ieeefp.h>
14718 #endif
14720 int main() {
14721 _logf(0);
14722 ; return 0; }
14724 if { (eval echo configure:14725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14725 rm -rf conftest*
14726 glibcxx_cv_func__logf_use=yes
14727 else
14728 echo "configure: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14730 rm -rf conftest*
14731 glibcxx_cv_func__logf_use=no
14733 rm -f conftest*
14734 ac_ext=c
14735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14736 ac_cpp='$CPP $CPPFLAGS'
14737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14739 cross_compiling=$ac_cv_prog_cc_cross
14745 echo "$ac_t""$glibcxx_cv_func__logf_use" 1>&6
14747 if test x$glibcxx_cv_func__logf_use = x"yes"; then
14748 for ac_func in _logf
14750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14751 echo "configure:14752: checking for $ac_func" >&5
14752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14753 echo $ac_n "(cached) $ac_c" 1>&6
14754 else
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 /* System header to define __stub macros and hopefully few prototypes,
14759 which can conflict with char $ac_func(); below. */
14760 #include <assert.h>
14761 /* Override any gcc2 internal prototype to avoid an error. */
14762 /* We use char because int might match the return type of a gcc2
14763 builtin and then its argument prototype would still apply. */
14764 char $ac_func();
14766 int main() {
14768 /* The GNU C library defines this for functions which it implements
14769 to always fail with ENOSYS. Some functions are actually named
14770 something starting with __ and the normal name is an alias. */
14771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14772 choke me
14773 #else
14774 $ac_func();
14775 #endif
14777 ; return 0; }
14779 if { (eval echo configure:14780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14780 rm -rf conftest*
14781 eval "ac_cv_func_$ac_func=yes"
14782 else
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14785 rm -rf conftest*
14786 eval "ac_cv_func_$ac_func=no"
14788 rm -f conftest*
14791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14792 echo "$ac_t""yes" 1>&6
14793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14794 cat >> confdefs.h <<EOF
14795 #define $ac_tr_func 1
14798 else
14799 echo "$ac_t""no" 1>&6
14801 done
14808 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14809 echo "configure:14810: checking for log10f declaration" >&5
14810 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
14811 if eval "test \"`echo '$''{'glibcxx_cv_func_log10f_use'+set}'`\" = set"; then
14812 echo $ac_n "(cached) $ac_c" 1>&6
14813 else
14816 ac_ext=C
14817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14818 ac_cpp='$CXXCPP $CPPFLAGS'
14819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14821 cross_compiling=$ac_cv_prog_cxx_cross
14823 cat > conftest.$ac_ext <<EOF
14824 #line 14825 "configure"
14825 #include "confdefs.h"
14826 #include <math.h>
14827 #ifdef HAVE_IEEEFP_H
14828 #include <ieeefp.h>
14829 #endif
14831 int main() {
14832 log10f(0);
14833 ; return 0; }
14835 if { (eval echo configure:14836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14836 rm -rf conftest*
14837 glibcxx_cv_func_log10f_use=yes
14838 else
14839 echo "configure: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14841 rm -rf conftest*
14842 glibcxx_cv_func_log10f_use=no
14844 rm -f conftest*
14845 ac_ext=c
14846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14847 ac_cpp='$CPP $CPPFLAGS'
14848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14850 cross_compiling=$ac_cv_prog_cc_cross
14856 echo "$ac_t""$glibcxx_cv_func_log10f_use" 1>&6
14858 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14859 for ac_func in log10f
14861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14862 echo "configure:14863: checking for $ac_func" >&5
14863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14865 else
14866 cat > conftest.$ac_ext <<EOF
14867 #line 14868 "configure"
14868 #include "confdefs.h"
14869 /* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func(); below. */
14871 #include <assert.h>
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14875 char $ac_func();
14877 int main() {
14879 /* The GNU C library defines this for functions which it implements
14880 to always fail with ENOSYS. Some functions are actually named
14881 something starting with __ and the normal name is an alias. */
14882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14883 choke me
14884 #else
14885 $ac_func();
14886 #endif
14888 ; return 0; }
14890 if { (eval echo configure:14891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 rm -rf conftest*
14892 eval "ac_cv_func_$ac_func=yes"
14893 else
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14896 rm -rf conftest*
14897 eval "ac_cv_func_$ac_func=no"
14899 rm -f conftest*
14902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14903 echo "$ac_t""yes" 1>&6
14904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14905 cat >> confdefs.h <<EOF
14906 #define $ac_tr_func 1
14909 else
14910 echo "$ac_t""no" 1>&6
14912 done
14914 else
14916 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14917 echo "configure:14918: checking for _log10f declaration" >&5
14918 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14919 if eval "test \"`echo '$''{'glibcxx_cv_func__log10f_use'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921 else
14924 ac_ext=C
14925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CXXCPP $CPPFLAGS'
14927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cxx_cross
14931 cat > conftest.$ac_ext <<EOF
14932 #line 14933 "configure"
14933 #include "confdefs.h"
14934 #include <math.h>
14935 #ifdef HAVE_IEEEFP_H
14936 #include <ieeefp.h>
14937 #endif
14939 int main() {
14940 _log10f(0);
14941 ; return 0; }
14943 if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14944 rm -rf conftest*
14945 glibcxx_cv_func__log10f_use=yes
14946 else
14947 echo "configure: failed program was:" >&5
14948 cat conftest.$ac_ext >&5
14949 rm -rf conftest*
14950 glibcxx_cv_func__log10f_use=no
14952 rm -f conftest*
14953 ac_ext=c
14954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14955 ac_cpp='$CPP $CPPFLAGS'
14956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14958 cross_compiling=$ac_cv_prog_cc_cross
14964 echo "$ac_t""$glibcxx_cv_func__log10f_use" 1>&6
14966 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14967 for ac_func in _log10f
14969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14970 echo "configure:14971: checking for $ac_func" >&5
14971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974 cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char $ac_func(); below. */
14979 #include <assert.h>
14980 /* Override any gcc2 internal prototype to avoid an error. */
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char $ac_func();
14985 int main() {
14987 /* The GNU C library defines this for functions which it implements
14988 to always fail with ENOSYS. Some functions are actually named
14989 something starting with __ and the normal name is an alias. */
14990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14991 choke me
14992 #else
14993 $ac_func();
14994 #endif
14996 ; return 0; }
14998 if { (eval echo configure:14999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 rm -rf conftest*
15000 eval "ac_cv_func_$ac_func=yes"
15001 else
15002 echo "configure: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15004 rm -rf conftest*
15005 eval "ac_cv_func_$ac_func=no"
15007 rm -f conftest*
15010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
15012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15013 cat >> confdefs.h <<EOF
15014 #define $ac_tr_func 1
15017 else
15018 echo "$ac_t""no" 1>&6
15020 done
15027 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15028 echo "configure:15029: checking for modff declaration" >&5
15029 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15030 if eval "test \"`echo '$''{'glibcxx_cv_func_modff_use'+set}'`\" = set"; then
15031 echo $ac_n "(cached) $ac_c" 1>&6
15032 else
15035 ac_ext=C
15036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15037 ac_cpp='$CXXCPP $CPPFLAGS'
15038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15040 cross_compiling=$ac_cv_prog_cxx_cross
15042 cat > conftest.$ac_ext <<EOF
15043 #line 15044 "configure"
15044 #include "confdefs.h"
15045 #include <math.h>
15046 int main() {
15047 modff(0, 0);
15048 ; return 0; }
15050 if { (eval echo configure:15051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15051 rm -rf conftest*
15052 glibcxx_cv_func_modff_use=yes
15053 else
15054 echo "configure: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 rm -rf conftest*
15057 glibcxx_cv_func_modff_use=no
15059 rm -f conftest*
15060 ac_ext=c
15061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15062 ac_cpp='$CPP $CPPFLAGS'
15063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15065 cross_compiling=$ac_cv_prog_cc_cross
15071 echo "$ac_t""$glibcxx_cv_func_modff_use" 1>&6
15073 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15074 for ac_func in modff
15076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15077 echo "configure:15078: checking for $ac_func" >&5
15078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15080 else
15081 cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15084 /* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char $ac_func(); below. */
15086 #include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15088 /* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15090 char $ac_func();
15092 int main() {
15094 /* The GNU C library defines this for functions which it implements
15095 to always fail with ENOSYS. Some functions are actually named
15096 something starting with __ and the normal name is an alias. */
15097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15098 choke me
15099 #else
15100 $ac_func();
15101 #endif
15103 ; return 0; }
15105 if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15106 rm -rf conftest*
15107 eval "ac_cv_func_$ac_func=yes"
15108 else
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15111 rm -rf conftest*
15112 eval "ac_cv_func_$ac_func=no"
15114 rm -f conftest*
15117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15120 cat >> confdefs.h <<EOF
15121 #define $ac_tr_func 1
15124 else
15125 echo "$ac_t""no" 1>&6
15127 done
15129 else
15131 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15132 echo "configure:15133: checking for _modff declaration" >&5
15133 if test x${glibcxx_cv_func__modff_use+set} != xset; then
15134 if eval "test \"`echo '$''{'glibcxx_cv_func__modff_use'+set}'`\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15136 else
15139 ac_ext=C
15140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15141 ac_cpp='$CXXCPP $CPPFLAGS'
15142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15144 cross_compiling=$ac_cv_prog_cxx_cross
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15149 #include <math.h>
15150 int main() {
15151 _modff(0, 0);
15152 ; return 0; }
15154 if { (eval echo configure:15155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15155 rm -rf conftest*
15156 glibcxx_cv_func__modff_use=yes
15157 else
15158 echo "configure: failed program was:" >&5
15159 cat conftest.$ac_ext >&5
15160 rm -rf conftest*
15161 glibcxx_cv_func__modff_use=no
15163 rm -f conftest*
15164 ac_ext=c
15165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15166 ac_cpp='$CPP $CPPFLAGS'
15167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15169 cross_compiling=$ac_cv_prog_cc_cross
15175 echo "$ac_t""$glibcxx_cv_func__modff_use" 1>&6
15177 if test x$glibcxx_cv_func__modff_use = x"yes"; then
15178 for ac_func in _modff
15180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15181 echo "configure:15182: checking for $ac_func" >&5
15182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15183 echo $ac_n "(cached) $ac_c" 1>&6
15184 else
15185 cat > conftest.$ac_ext <<EOF
15186 #line 15187 "configure"
15187 #include "confdefs.h"
15188 /* System header to define __stub macros and hopefully few prototypes,
15189 which can conflict with char $ac_func(); below. */
15190 #include <assert.h>
15191 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char $ac_func();
15196 int main() {
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15202 choke me
15203 #else
15204 $ac_func();
15205 #endif
15207 ; return 0; }
15209 if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15210 rm -rf conftest*
15211 eval "ac_cv_func_$ac_func=yes"
15212 else
15213 echo "configure: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 rm -rf conftest*
15216 eval "ac_cv_func_$ac_func=no"
15218 rm -f conftest*
15221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15222 echo "$ac_t""yes" 1>&6
15223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15224 cat >> confdefs.h <<EOF
15225 #define $ac_tr_func 1
15228 else
15229 echo "$ac_t""no" 1>&6
15231 done
15238 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15239 echo "configure:15240: checking for powf declaration" >&5
15240 if test x${glibcxx_cv_func_powf_use+set} != xset; then
15241 if eval "test \"`echo '$''{'glibcxx_cv_func_powf_use'+set}'`\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15243 else
15246 ac_ext=C
15247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15248 ac_cpp='$CXXCPP $CPPFLAGS'
15249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15251 cross_compiling=$ac_cv_prog_cxx_cross
15253 cat > conftest.$ac_ext <<EOF
15254 #line 15255 "configure"
15255 #include "confdefs.h"
15256 #include <math.h>
15257 int main() {
15258 powf(0, 0);
15259 ; return 0; }
15261 if { (eval echo configure:15262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15262 rm -rf conftest*
15263 glibcxx_cv_func_powf_use=yes
15264 else
15265 echo "configure: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 rm -rf conftest*
15268 glibcxx_cv_func_powf_use=no
15270 rm -f conftest*
15271 ac_ext=c
15272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15273 ac_cpp='$CPP $CPPFLAGS'
15274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15276 cross_compiling=$ac_cv_prog_cc_cross
15282 echo "$ac_t""$glibcxx_cv_func_powf_use" 1>&6
15284 if test x$glibcxx_cv_func_powf_use = x"yes"; then
15285 for ac_func in powf
15287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15288 echo "configure:15289: checking for $ac_func" >&5
15289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15290 echo $ac_n "(cached) $ac_c" 1>&6
15291 else
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func(); below. */
15297 #include <assert.h>
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char $ac_func();
15303 int main() {
15305 /* The GNU C library defines this for functions which it implements
15306 to always fail with ENOSYS. Some functions are actually named
15307 something starting with __ and the normal name is an alias. */
15308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15309 choke me
15310 #else
15311 $ac_func();
15312 #endif
15314 ; return 0; }
15316 if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=yes"
15319 else
15320 echo "configure: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=no"
15325 rm -f conftest*
15328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15329 echo "$ac_t""yes" 1>&6
15330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15331 cat >> confdefs.h <<EOF
15332 #define $ac_tr_func 1
15335 else
15336 echo "$ac_t""no" 1>&6
15338 done
15340 else
15342 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15343 echo "configure:15344: checking for _powf declaration" >&5
15344 if test x${glibcxx_cv_func__powf_use+set} != xset; then
15345 if eval "test \"`echo '$''{'glibcxx_cv_func__powf_use'+set}'`\" = set"; then
15346 echo $ac_n "(cached) $ac_c" 1>&6
15347 else
15350 ac_ext=C
15351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15352 ac_cpp='$CXXCPP $CPPFLAGS'
15353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15355 cross_compiling=$ac_cv_prog_cxx_cross
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 #include <math.h>
15361 int main() {
15362 _powf(0, 0);
15363 ; return 0; }
15365 if { (eval echo configure:15366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15366 rm -rf conftest*
15367 glibcxx_cv_func__powf_use=yes
15368 else
15369 echo "configure: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15371 rm -rf conftest*
15372 glibcxx_cv_func__powf_use=no
15374 rm -f conftest*
15375 ac_ext=c
15376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15377 ac_cpp='$CPP $CPPFLAGS'
15378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15380 cross_compiling=$ac_cv_prog_cc_cross
15386 echo "$ac_t""$glibcxx_cv_func__powf_use" 1>&6
15388 if test x$glibcxx_cv_func__powf_use = x"yes"; then
15389 for ac_func in _powf
15391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15392 echo "configure:15393: checking for $ac_func" >&5
15393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15395 else
15396 cat > conftest.$ac_ext <<EOF
15397 #line 15398 "configure"
15398 #include "confdefs.h"
15399 /* System header to define __stub macros and hopefully few prototypes,
15400 which can conflict with char $ac_func(); below. */
15401 #include <assert.h>
15402 /* Override any gcc2 internal prototype to avoid an error. */
15403 /* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15405 char $ac_func();
15407 int main() {
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 choke me
15414 #else
15415 $ac_func();
15416 #endif
15418 ; return 0; }
15420 if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 rm -rf conftest*
15422 eval "ac_cv_func_$ac_func=yes"
15423 else
15424 echo "configure: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 rm -rf conftest*
15427 eval "ac_cv_func_$ac_func=no"
15429 rm -f conftest*
15432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15435 cat >> confdefs.h <<EOF
15436 #define $ac_tr_func 1
15439 else
15440 echo "$ac_t""no" 1>&6
15442 done
15449 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15450 echo "configure:15451: checking for sqrtf declaration" >&5
15451 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
15452 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtf_use'+set}'`\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15454 else
15457 ac_ext=C
15458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15459 ac_cpp='$CXXCPP $CPPFLAGS'
15460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15462 cross_compiling=$ac_cv_prog_cxx_cross
15464 cat > conftest.$ac_ext <<EOF
15465 #line 15466 "configure"
15466 #include "confdefs.h"
15467 #include <math.h>
15468 #ifdef HAVE_IEEEFP_H
15469 #include <ieeefp.h>
15470 #endif
15472 int main() {
15473 sqrtf(0);
15474 ; return 0; }
15476 if { (eval echo configure:15477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15477 rm -rf conftest*
15478 glibcxx_cv_func_sqrtf_use=yes
15479 else
15480 echo "configure: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 rm -rf conftest*
15483 glibcxx_cv_func_sqrtf_use=no
15485 rm -f conftest*
15486 ac_ext=c
15487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15488 ac_cpp='$CPP $CPPFLAGS'
15489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15491 cross_compiling=$ac_cv_prog_cc_cross
15497 echo "$ac_t""$glibcxx_cv_func_sqrtf_use" 1>&6
15499 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
15500 for ac_func in sqrtf
15502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_func" >&5
15504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15506 else
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func(); below. */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15516 char $ac_func();
15518 int main() {
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15524 choke me
15525 #else
15526 $ac_func();
15527 #endif
15529 ; return 0; }
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532 rm -rf conftest*
15533 eval "ac_cv_func_$ac_func=yes"
15534 else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 eval "ac_cv_func_$ac_func=no"
15540 rm -f conftest*
15543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15546 cat >> confdefs.h <<EOF
15547 #define $ac_tr_func 1
15550 else
15551 echo "$ac_t""no" 1>&6
15553 done
15555 else
15557 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15558 echo "configure:15559: checking for _sqrtf declaration" >&5
15559 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15560 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtf_use'+set}'`\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15562 else
15565 ac_ext=C
15566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15567 ac_cpp='$CXXCPP $CPPFLAGS'
15568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15570 cross_compiling=$ac_cv_prog_cxx_cross
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15575 #include <math.h>
15576 #ifdef HAVE_IEEEFP_H
15577 #include <ieeefp.h>
15578 #endif
15580 int main() {
15581 _sqrtf(0);
15582 ; return 0; }
15584 if { (eval echo configure:15585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15585 rm -rf conftest*
15586 glibcxx_cv_func__sqrtf_use=yes
15587 else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591 glibcxx_cv_func__sqrtf_use=no
15593 rm -f conftest*
15594 ac_ext=c
15595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15596 ac_cpp='$CPP $CPPFLAGS'
15597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15599 cross_compiling=$ac_cv_prog_cc_cross
15605 echo "$ac_t""$glibcxx_cv_func__sqrtf_use" 1>&6
15607 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15608 for ac_func in _sqrtf
15610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15611 echo "configure:15612: checking for $ac_func" >&5
15612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15613 echo $ac_n "(cached) $ac_c" 1>&6
15614 else
15615 cat > conftest.$ac_ext <<EOF
15616 #line 15617 "configure"
15617 #include "confdefs.h"
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func(); below. */
15620 #include <assert.h>
15621 /* Override any gcc2 internal prototype to avoid an error. */
15622 /* We use char because int might match the return type of a gcc2
15623 builtin and then its argument prototype would still apply. */
15624 char $ac_func();
15626 int main() {
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 choke me
15633 #else
15634 $ac_func();
15635 #endif
15637 ; return 0; }
15639 if { (eval echo configure:15640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15640 rm -rf conftest*
15641 eval "ac_cv_func_$ac_func=yes"
15642 else
15643 echo "configure: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15645 rm -rf conftest*
15646 eval "ac_cv_func_$ac_func=no"
15648 rm -f conftest*
15651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15652 echo "$ac_t""yes" 1>&6
15653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15654 cat >> confdefs.h <<EOF
15655 #define $ac_tr_func 1
15658 else
15659 echo "$ac_t""no" 1>&6
15661 done
15668 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15669 echo "configure:15670: checking for sincosf declaration" >&5
15670 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15671 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosf_use'+set}'`\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15673 else
15676 ac_ext=C
15677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15678 ac_cpp='$CXXCPP $CPPFLAGS'
15679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15681 cross_compiling=$ac_cv_prog_cxx_cross
15683 cat > conftest.$ac_ext <<EOF
15684 #line 15685 "configure"
15685 #include "confdefs.h"
15686 #include <math.h>
15687 int main() {
15688 sincosf(0, 0, 0);
15689 ; return 0; }
15691 if { (eval echo configure:15692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15692 rm -rf conftest*
15693 glibcxx_cv_func_sincosf_use=yes
15694 else
15695 echo "configure: failed program was:" >&5
15696 cat conftest.$ac_ext >&5
15697 rm -rf conftest*
15698 glibcxx_cv_func_sincosf_use=no
15700 rm -f conftest*
15701 ac_ext=c
15702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15703 ac_cpp='$CPP $CPPFLAGS'
15704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15706 cross_compiling=$ac_cv_prog_cc_cross
15712 echo "$ac_t""$glibcxx_cv_func_sincosf_use" 1>&6
15714 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15715 for ac_func in sincosf
15717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15718 echo "configure:15719: checking for $ac_func" >&5
15719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15720 echo $ac_n "(cached) $ac_c" 1>&6
15721 else
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* System header to define __stub macros and hopefully few prototypes,
15726 which can conflict with char $ac_func(); below. */
15727 #include <assert.h>
15728 /* Override any gcc2 internal prototype to avoid an error. */
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15731 char $ac_func();
15733 int main() {
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15739 choke me
15740 #else
15741 $ac_func();
15742 #endif
15744 ; return 0; }
15746 if { (eval echo configure:15747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15747 rm -rf conftest*
15748 eval "ac_cv_func_$ac_func=yes"
15749 else
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 eval "ac_cv_func_$ac_func=no"
15755 rm -f conftest*
15758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15759 echo "$ac_t""yes" 1>&6
15760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15761 cat >> confdefs.h <<EOF
15762 #define $ac_tr_func 1
15765 else
15766 echo "$ac_t""no" 1>&6
15768 done
15770 else
15772 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15773 echo "configure:15774: checking for _sincosf declaration" >&5
15774 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15775 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosf_use'+set}'`\" = set"; then
15776 echo $ac_n "(cached) $ac_c" 1>&6
15777 else
15780 ac_ext=C
15781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15782 ac_cpp='$CXXCPP $CPPFLAGS'
15783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15785 cross_compiling=$ac_cv_prog_cxx_cross
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 #include <math.h>
15791 int main() {
15792 _sincosf(0, 0, 0);
15793 ; return 0; }
15795 if { (eval echo configure:15796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15796 rm -rf conftest*
15797 glibcxx_cv_func__sincosf_use=yes
15798 else
15799 echo "configure: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15801 rm -rf conftest*
15802 glibcxx_cv_func__sincosf_use=no
15804 rm -f conftest*
15805 ac_ext=c
15806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15807 ac_cpp='$CPP $CPPFLAGS'
15808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15810 cross_compiling=$ac_cv_prog_cc_cross
15816 echo "$ac_t""$glibcxx_cv_func__sincosf_use" 1>&6
15818 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15819 for ac_func in _sincosf
15821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15822 echo "configure:15823: checking for $ac_func" >&5
15823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825 else
15826 cat > conftest.$ac_ext <<EOF
15827 #line 15828 "configure"
15828 #include "confdefs.h"
15829 /* System header to define __stub macros and hopefully few prototypes,
15830 which can conflict with char $ac_func(); below. */
15831 #include <assert.h>
15832 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char $ac_func();
15837 int main() {
15839 /* The GNU C library defines this for functions which it implements
15840 to always fail with ENOSYS. Some functions are actually named
15841 something starting with __ and the normal name is an alias. */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15843 choke me
15844 #else
15845 $ac_func();
15846 #endif
15848 ; return 0; }
15850 if { (eval echo configure:15851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15851 rm -rf conftest*
15852 eval "ac_cv_func_$ac_func=yes"
15853 else
15854 echo "configure: failed program was:" >&5
15855 cat conftest.$ac_ext >&5
15856 rm -rf conftest*
15857 eval "ac_cv_func_$ac_func=no"
15859 rm -f conftest*
15862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15863 echo "$ac_t""yes" 1>&6
15864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15865 cat >> confdefs.h <<EOF
15866 #define $ac_tr_func 1
15869 else
15870 echo "$ac_t""no" 1>&6
15872 done
15879 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15880 echo "configure:15881: checking for finitef declaration" >&5
15881 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15882 if eval "test \"`echo '$''{'glibcxx_cv_func_finitef_use'+set}'`\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15884 else
15887 ac_ext=C
15888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889 ac_cpp='$CXXCPP $CPPFLAGS'
15890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892 cross_compiling=$ac_cv_prog_cxx_cross
15894 cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15897 #include <math.h>
15898 #ifdef HAVE_IEEEFP_H
15899 #include <ieeefp.h>
15900 #endif
15902 int main() {
15903 finitef(0);
15904 ; return 0; }
15906 if { (eval echo configure:15907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15907 rm -rf conftest*
15908 glibcxx_cv_func_finitef_use=yes
15909 else
15910 echo "configure: failed program was:" >&5
15911 cat conftest.$ac_ext >&5
15912 rm -rf conftest*
15913 glibcxx_cv_func_finitef_use=no
15915 rm -f conftest*
15916 ac_ext=c
15917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15918 ac_cpp='$CPP $CPPFLAGS'
15919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15921 cross_compiling=$ac_cv_prog_cc_cross
15927 echo "$ac_t""$glibcxx_cv_func_finitef_use" 1>&6
15929 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15930 for ac_func in finitef
15932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15933 echo "configure:15934: checking for $ac_func" >&5
15934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15935 echo $ac_n "(cached) $ac_c" 1>&6
15936 else
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char $ac_func(); below. */
15942 #include <assert.h>
15943 /* Override any gcc2 internal prototype to avoid an error. */
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15946 char $ac_func();
15948 int main() {
15950 /* The GNU C library defines this for functions which it implements
15951 to always fail with ENOSYS. Some functions are actually named
15952 something starting with __ and the normal name is an alias. */
15953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15954 choke me
15955 #else
15956 $ac_func();
15957 #endif
15959 ; return 0; }
15961 if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15962 rm -rf conftest*
15963 eval "ac_cv_func_$ac_func=yes"
15964 else
15965 echo "configure: failed program was:" >&5
15966 cat conftest.$ac_ext >&5
15967 rm -rf conftest*
15968 eval "ac_cv_func_$ac_func=no"
15970 rm -f conftest*
15973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15974 echo "$ac_t""yes" 1>&6
15975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15976 cat >> confdefs.h <<EOF
15977 #define $ac_tr_func 1
15980 else
15981 echo "$ac_t""no" 1>&6
15983 done
15985 else
15987 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15988 echo "configure:15989: checking for _finitef declaration" >&5
15989 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15990 if eval "test \"`echo '$''{'glibcxx_cv_func__finitef_use'+set}'`\" = set"; then
15991 echo $ac_n "(cached) $ac_c" 1>&6
15992 else
15995 ac_ext=C
15996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15997 ac_cpp='$CXXCPP $CPPFLAGS'
15998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16000 cross_compiling=$ac_cv_prog_cxx_cross
16002 cat > conftest.$ac_ext <<EOF
16003 #line 16004 "configure"
16004 #include "confdefs.h"
16005 #include <math.h>
16006 #ifdef HAVE_IEEEFP_H
16007 #include <ieeefp.h>
16008 #endif
16010 int main() {
16011 _finitef(0);
16012 ; return 0; }
16014 if { (eval echo configure:16015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16015 rm -rf conftest*
16016 glibcxx_cv_func__finitef_use=yes
16017 else
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 rm -rf conftest*
16021 glibcxx_cv_func__finitef_use=no
16023 rm -f conftest*
16024 ac_ext=c
16025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16026 ac_cpp='$CPP $CPPFLAGS'
16027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16029 cross_compiling=$ac_cv_prog_cc_cross
16035 echo "$ac_t""$glibcxx_cv_func__finitef_use" 1>&6
16037 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
16038 for ac_func in _finitef
16040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16041 echo "configure:16042: checking for $ac_func" >&5
16042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16043 echo $ac_n "(cached) $ac_c" 1>&6
16044 else
16045 cat > conftest.$ac_ext <<EOF
16046 #line 16047 "configure"
16047 #include "confdefs.h"
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func(); below. */
16050 #include <assert.h>
16051 /* Override any gcc2 internal prototype to avoid an error. */
16052 /* We use char because int might match the return type of a gcc2
16053 builtin and then its argument prototype would still apply. */
16054 char $ac_func();
16056 int main() {
16058 /* The GNU C library defines this for functions which it implements
16059 to always fail with ENOSYS. Some functions are actually named
16060 something starting with __ and the normal name is an alias. */
16061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16062 choke me
16063 #else
16064 $ac_func();
16065 #endif
16067 ; return 0; }
16069 if { (eval echo configure:16070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16070 rm -rf conftest*
16071 eval "ac_cv_func_$ac_func=yes"
16072 else
16073 echo "configure: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 rm -rf conftest*
16076 eval "ac_cv_func_$ac_func=no"
16078 rm -f conftest*
16081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_func 1
16088 else
16089 echo "$ac_t""no" 1>&6
16091 done
16098 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16099 echo "configure:16100: checking for long double trig functions" >&5
16100 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_trig_use'+set}'`\" = set"; then
16101 echo $ac_n "(cached) $ac_c" 1>&6
16102 else
16105 ac_ext=C
16106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16110 cross_compiling=$ac_cv_prog_cxx_cross
16112 cat > conftest.$ac_ext <<EOF
16113 #line 16114 "configure"
16114 #include "confdefs.h"
16115 #include <math.h>
16116 int main() {
16117 `for x in acosl asinl atanl \
16118 cosl sinl tanl \
16119 coshl sinhl tanhl; do echo "$x (0);"; done`
16120 ; return 0; }
16122 if { (eval echo configure:16123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16123 rm -rf conftest*
16124 glibcxx_cv_func_long_double_trig_use=yes
16125 else
16126 echo "configure: failed program was:" >&5
16127 cat conftest.$ac_ext >&5
16128 rm -rf conftest*
16129 glibcxx_cv_func_long_double_trig_use=no
16131 rm -f conftest*
16132 ac_ext=c
16133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137 cross_compiling=$ac_cv_prog_cc_cross
16141 echo "$ac_t""$glibcxx_cv_func_long_double_trig_use" 1>&6
16142 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
16143 for ac_func in acosl asinl atanl \
16144 cosl sinl tanl \
16145 coshl sinhl tanhl
16147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16148 echo "configure:16149: checking for $ac_func" >&5
16149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16150 echo $ac_n "(cached) $ac_c" 1>&6
16151 else
16152 cat > conftest.$ac_ext <<EOF
16153 #line 16154 "configure"
16154 #include "confdefs.h"
16155 /* System header to define __stub macros and hopefully few prototypes,
16156 which can conflict with char $ac_func(); below. */
16157 #include <assert.h>
16158 /* Override any gcc2 internal prototype to avoid an error. */
16159 /* We use char because int might match the return type of a gcc2
16160 builtin and then its argument prototype would still apply. */
16161 char $ac_func();
16163 int main() {
16165 /* The GNU C library defines this for functions which it implements
16166 to always fail with ENOSYS. Some functions are actually named
16167 something starting with __ and the normal name is an alias. */
16168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16169 choke me
16170 #else
16171 $ac_func();
16172 #endif
16174 ; return 0; }
16176 if { (eval echo configure:16177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16177 rm -rf conftest*
16178 eval "ac_cv_func_$ac_func=yes"
16179 else
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16182 rm -rf conftest*
16183 eval "ac_cv_func_$ac_func=no"
16185 rm -f conftest*
16188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16189 echo "$ac_t""yes" 1>&6
16190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16191 cat >> confdefs.h <<EOF
16192 #define $ac_tr_func 1
16195 else
16196 echo "$ac_t""no" 1>&6
16198 done
16203 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16204 echo "configure:16205: checking for long double round functions" >&5
16205 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_round_use'+set}'`\" = set"; then
16206 echo $ac_n "(cached) $ac_c" 1>&6
16207 else
16210 ac_ext=C
16211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16212 ac_cpp='$CXXCPP $CPPFLAGS'
16213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16215 cross_compiling=$ac_cv_prog_cxx_cross
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16219 "configure"
16219 #include "confdefs.h"
16220 #include <math.h>
16221 int main() {
16222 `for x in ceill floorl; do echo "$x (0);"; done`
16223 ; return 0; }
16225 if { (eval echo configure:16226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16226 rm -rf conftest*
16227 glibcxx_cv_func_long_double_round_use=yes
16228 else
16229 echo "configure: failed program was:" >&5
16230 cat conftest.$ac_ext >&5
16231 rm -rf conftest*
16232 glibcxx_cv_func_long_double_round_use=no
16234 rm -f conftest*
16235 ac_ext=c
16236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16237 ac_cpp='$CPP $CPPFLAGS'
16238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16240 cross_compiling=$ac_cv_prog_cc_cross
16244 echo "$ac_t""$glibcxx_cv_func_long_double_round_use" 1>&6
16245 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16246 for ac_func in ceill floorl
16248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16249 echo "configure:16250: checking for $ac_func" >&5
16250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16252 else
16253 cat > conftest.$ac_ext <<EOF
16254 #line 16255 "configure"
16255 #include "confdefs.h"
16256 /* System header to define __stub macros and hopefully few prototypes,
16257 which can conflict with char $ac_func(); below. */
16258 #include <assert.h>
16259 /* Override any gcc2 internal prototype to avoid an error. */
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16262 char $ac_func();
16264 int main() {
16266 /* The GNU C library defines this for functions which it implements
16267 to always fail with ENOSYS. Some functions are actually named
16268 something starting with __ and the normal name is an alias. */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 $ac_func();
16273 #endif
16275 ; return 0; }
16277 if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16278 rm -rf conftest*
16279 eval "ac_cv_func_$ac_func=yes"
16280 else
16281 echo "configure: failed program was:" >&5
16282 cat conftest.$ac_ext >&5
16283 rm -rf conftest*
16284 eval "ac_cv_func_$ac_func=no"
16286 rm -f conftest*
16289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16290 echo "$ac_t""yes" 1>&6
16291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16292 cat >> confdefs.h <<EOF
16293 #define $ac_tr_func 1
16296 else
16297 echo "$ac_t""no" 1>&6
16299 done
16305 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16306 echo "configure:16307: checking for isnanl declaration" >&5
16307 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16308 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanl_use'+set}'`\" = set"; then
16309 echo $ac_n "(cached) $ac_c" 1>&6
16310 else
16313 ac_ext=C
16314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16315 ac_cpp='$CXXCPP $CPPFLAGS'
16316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16318 cross_compiling=$ac_cv_prog_cxx_cross
16320 cat > conftest.$ac_ext <<EOF
16321 #line 16322 "configure"
16322 #include "confdefs.h"
16323 #include <math.h>
16324 #ifdef HAVE_IEEEFP_H
16325 #include <ieeefp.h>
16326 #endif
16328 int main() {
16329 isnanl(0);
16330 ; return 0; }
16332 if { (eval echo configure:16333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16333 rm -rf conftest*
16334 glibcxx_cv_func_isnanl_use=yes
16335 else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 glibcxx_cv_func_isnanl_use=no
16341 rm -f conftest*
16342 ac_ext=c
16343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16347 cross_compiling=$ac_cv_prog_cc_cross
16353 echo "$ac_t""$glibcxx_cv_func_isnanl_use" 1>&6
16355 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16356 for ac_func in isnanl
16358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16359 echo "configure:16360: checking for $ac_func" >&5
16360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16361 echo $ac_n "(cached) $ac_c" 1>&6
16362 else
16363 cat > conftest.$ac_ext <<EOF
16364 #line 16365 "configure"
16365 #include "confdefs.h"
16366 /* System header to define __stub macros and hopefully few prototypes,
16367 which can conflict with char $ac_func(); below. */
16368 #include <assert.h>
16369 /* Override any gcc2 internal prototype to avoid an error. */
16370 /* We use char because int might match the return type of a gcc2
16371 builtin and then its argument prototype would still apply. */
16372 char $ac_func();
16374 int main() {
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 choke me
16381 #else
16382 $ac_func();
16383 #endif
16385 ; return 0; }
16387 if { (eval echo configure:16388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16388 rm -rf conftest*
16389 eval "ac_cv_func_$ac_func=yes"
16390 else
16391 echo "configure: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=no"
16396 rm -f conftest*
16399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16400 echo "$ac_t""yes" 1>&6
16401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16402 cat >> confdefs.h <<EOF
16403 #define $ac_tr_func 1
16406 else
16407 echo "$ac_t""no" 1>&6
16409 done
16411 else
16413 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16414 echo "configure:16415: checking for _isnanl declaration" >&5
16415 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16416 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanl_use'+set}'`\" = set"; then
16417 echo $ac_n "(cached) $ac_c" 1>&6
16418 else
16421 ac_ext=C
16422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16423 ac_cpp='$CXXCPP $CPPFLAGS'
16424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16426 cross_compiling=$ac_cv_prog_cxx_cross
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 #include <math.h>
16432 #ifdef HAVE_IEEEFP_H
16433 #include <ieeefp.h>
16434 #endif
16436 int main() {
16437 _isnanl(0);
16438 ; return 0; }
16440 if { (eval echo configure:16441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16441 rm -rf conftest*
16442 glibcxx_cv_func__isnanl_use=yes
16443 else
16444 echo "configure: failed program was:" >&5
16445 cat conftest.$ac_ext >&5
16446 rm -rf conftest*
16447 glibcxx_cv_func__isnanl_use=no
16449 rm -f conftest*
16450 ac_ext=c
16451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16452 ac_cpp='$CPP $CPPFLAGS'
16453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16455 cross_compiling=$ac_cv_prog_cc_cross
16461 echo "$ac_t""$glibcxx_cv_func__isnanl_use" 1>&6
16463 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16464 for ac_func in _isnanl
16466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16467 echo "configure:16468: checking for $ac_func" >&5
16468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16469 echo $ac_n "(cached) $ac_c" 1>&6
16470 else
16471 cat > conftest.$ac_ext <<EOF
16472 #line 16473 "configure"
16473 #include "confdefs.h"
16474 /* System header to define __stub macros and hopefully few prototypes,
16475 which can conflict with char $ac_func(); below. */
16476 #include <assert.h>
16477 /* Override any gcc2 internal prototype to avoid an error. */
16478 /* We use char because int might match the return type of a gcc2
16479 builtin and then its argument prototype would still apply. */
16480 char $ac_func();
16482 int main() {
16484 /* The GNU C library defines this for functions which it implements
16485 to always fail with ENOSYS. Some functions are actually named
16486 something starting with __ and the normal name is an alias. */
16487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16488 choke me
16489 #else
16490 $ac_func();
16491 #endif
16493 ; return 0; }
16495 if { (eval echo configure:16496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16496 rm -rf conftest*
16497 eval "ac_cv_func_$ac_func=yes"
16498 else
16499 echo "configure: failed program was:" >&5
16500 cat conftest.$ac_ext >&5
16501 rm -rf conftest*
16502 eval "ac_cv_func_$ac_func=no"
16504 rm -f conftest*
16507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16508 echo "$ac_t""yes" 1>&6
16509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16510 cat >> confdefs.h <<EOF
16511 #define $ac_tr_func 1
16514 else
16515 echo "$ac_t""no" 1>&6
16517 done
16524 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16525 echo "configure:16526: checking for isinfl declaration" >&5
16526 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16527 if eval "test \"`echo '$''{'glibcxx_cv_func_isinfl_use'+set}'`\" = set"; then
16528 echo $ac_n "(cached) $ac_c" 1>&6
16529 else
16532 ac_ext=C
16533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16534 ac_cpp='$CXXCPP $CPPFLAGS'
16535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16537 cross_compiling=$ac_cv_prog_cxx_cross
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16542 #include <math.h>
16543 #ifdef HAVE_IEEEFP_H
16544 #include <ieeefp.h>
16545 #endif
16547 int main() {
16548 isinfl(0);
16549 ; return 0; }
16551 if { (eval echo configure:16552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16552 rm -rf conftest*
16553 glibcxx_cv_func_isinfl_use=yes
16554 else
16555 echo "configure: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16557 rm -rf conftest*
16558 glibcxx_cv_func_isinfl_use=no
16560 rm -f conftest*
16561 ac_ext=c
16562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16563 ac_cpp='$CPP $CPPFLAGS'
16564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16566 cross_compiling=$ac_cv_prog_cc_cross
16572 echo "$ac_t""$glibcxx_cv_func_isinfl_use" 1>&6
16574 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16575 for ac_func in isinfl
16577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16578 echo "configure:16579: checking for $ac_func" >&5
16579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
16581 else
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16584 "configure"
16584 #include "confdefs.h"
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char $ac_func(); below. */
16587 #include <assert.h>
16588 /* Override any gcc2 internal prototype to avoid an error. */
16589 /* We use char because int might match the return type of a gcc2
16590 builtin and then its argument prototype would still apply. */
16591 char $ac_func();
16593 int main() {
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16599 choke me
16600 #else
16601 $ac_func();
16602 #endif
16604 ; return 0; }
16606 if { (eval echo configure:16607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16607 rm -rf conftest*
16608 eval "ac_cv_func_$ac_func=yes"
16609 else
16610 echo "configure: failed program was:" >&5
16611 cat conftest.$ac_ext >&5
16612 rm -rf conftest*
16613 eval "ac_cv_func_$ac_func=no"
16615 rm -f conftest*
16618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16619 echo "$ac_t""yes" 1>&6
16620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16621 cat >> confdefs.h <<EOF
16622 #define $ac_tr_func 1
16625 else
16626 echo "$ac_t""no" 1>&6
16628 done
16630 else
16632 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16633 echo "configure:16634: checking for _isinfl declaration" >&5
16634 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16635 if eval "test \"`echo '$''{'glibcxx_cv_func__isinfl_use'+set}'`\" = set"; then
16636 echo $ac_n "(cached) $ac_c" 1>&6
16637 else
16640 ac_ext=C
16641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16642 ac_cpp='$CXXCPP $CPPFLAGS'
16643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16645 cross_compiling=$ac_cv_prog_cxx_cross
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16650 #include <math.h>
16651 #ifdef HAVE_IEEEFP_H
16652 #include <ieeefp.h>
16653 #endif
16655 int main() {
16656 _isinfl(0);
16657 ; return 0; }
16659 if { (eval echo configure:16660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16660 rm -rf conftest*
16661 glibcxx_cv_func__isinfl_use=yes
16662 else
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 rm -rf conftest*
16666 glibcxx_cv_func__isinfl_use=no
16668 rm -f conftest*
16669 ac_ext=c
16670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16671 ac_cpp='$CPP $CPPFLAGS'
16672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16674 cross_compiling=$ac_cv_prog_cc_cross
16680 echo "$ac_t""$glibcxx_cv_func__isinfl_use" 1>&6
16682 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16683 for ac_func in _isinfl
16685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16686 echo "configure:16687: checking for $ac_func" >&5
16687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16688 echo $ac_n "(cached) $ac_c" 1>&6
16689 else
16690 cat > conftest.$ac_ext <<EOF
16691 #line 16692 "configure"
16692 #include "confdefs.h"
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func(); below. */
16695 #include <assert.h>
16696 /* Override any gcc2 internal prototype to avoid an error. */
16697 /* We use char because int might match the return type of a gcc2
16698 builtin and then its argument prototype would still apply. */
16699 char $ac_func();
16701 int main() {
16703 /* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
16706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16707 choke me
16708 #else
16709 $ac_func();
16710 #endif
16712 ; return 0; }
16714 if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16715 rm -rf conftest*
16716 eval "ac_cv_func_$ac_func=yes"
16717 else
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 rm -rf conftest*
16721 eval "ac_cv_func_$ac_func=no"
16723 rm -f conftest*
16726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16727 echo "$ac_t""yes" 1>&6
16728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16729 cat >> confdefs.h <<EOF
16730 #define $ac_tr_func 1
16733 else
16734 echo "$ac_t""no" 1>&6
16736 done
16743 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16744 echo "configure:16745: checking for copysignl declaration" >&5
16745 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16746 if eval "test \"`echo '$''{'glibcxx_cv_func_copysignl_use'+set}'`\" = set"; then
16747 echo $ac_n "(cached) $ac_c" 1>&6
16748 else
16751 ac_ext=C
16752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16753 ac_cpp='$CXXCPP $CPPFLAGS'
16754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16756 cross_compiling=$ac_cv_prog_cxx_cross
16758 cat > conftest.$ac_ext <<EOF
16759 #line 16760 "configure"
16760 #include "confdefs.h"
16761 #include <math.h>
16762 int main() {
16763 copysignl(0, 0);
16764 ; return 0; }
16766 if { (eval echo configure:16767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16767 rm -rf conftest*
16768 glibcxx_cv_func_copysignl_use=yes
16769 else
16770 echo "configure: failed program was:" >&5
16771 cat conftest.$ac_ext >&5
16772 rm -rf conftest*
16773 glibcxx_cv_func_copysignl_use=no
16775 rm -f conftest*
16776 ac_ext=c
16777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16778 ac_cpp='$CPP $CPPFLAGS'
16779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16781 cross_compiling=$ac_cv_prog_cc_cross
16787 echo "$ac_t""$glibcxx_cv_func_copysignl_use" 1>&6
16789 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16790 for ac_func in copysignl
16792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16793 echo "configure:16794: checking for $ac_func" >&5
16794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796 else
16797 cat > conftest.$ac_ext <<EOF
16798 #line 16799 "configure"
16799 #include "confdefs.h"
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func(); below. */
16802 #include <assert.h>
16803 /* Override any gcc2 internal prototype to avoid an error. */
16804 /* We use char because int might match the return type of a gcc2
16805 builtin and then its argument prototype would still apply. */
16806 char $ac_func();
16808 int main() {
16810 /* The GNU C library defines this for functions which it implements
16811 to always fail with ENOSYS. Some functions are actually named
16812 something starting with __ and the normal name is an alias. */
16813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16814 choke me
16815 #else
16816 $ac_func();
16817 #endif
16819 ; return 0; }
16821 if { (eval echo configure:16822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16822 rm -rf conftest*
16823 eval "ac_cv_func_$ac_func=yes"
16824 else
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 rm -rf conftest*
16828 eval "ac_cv_func_$ac_func=no"
16830 rm -f conftest*
16833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16834 echo "$ac_t""yes" 1>&6
16835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16836 cat >> confdefs.h <<EOF
16837 #define $ac_tr_func 1
16840 else
16841 echo "$ac_t""no" 1>&6
16843 done
16845 else
16847 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16848 echo "configure:16849: checking for _copysignl declaration" >&5
16849 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
16850 if eval "test \"`echo '$''{'glibcxx_cv_func__copysignl_use'+set}'`\" = set"; then
16851 echo $ac_n "(cached) $ac_c" 1>&6
16852 else
16855 ac_ext=C
16856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16857 ac_cpp='$CXXCPP $CPPFLAGS'
16858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16860 cross_compiling=$ac_cv_prog_cxx_cross
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16865 #include <math.h>
16866 int main() {
16867 _copysignl(0, 0);
16868 ; return 0; }
16870 if { (eval echo configure:16871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16871 rm -rf conftest*
16872 glibcxx_cv_func__copysignl_use=yes
16873 else
16874 echo "configure: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16876 rm -rf conftest*
16877 glibcxx_cv_func__copysignl_use=no
16879 rm -f conftest*
16880 ac_ext=c
16881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16882 ac_cpp='$CPP $CPPFLAGS'
16883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16885 cross_compiling=$ac_cv_prog_cc_cross
16891 echo "$ac_t""$glibcxx_cv_func__copysignl_use" 1>&6
16893 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
16894 for ac_func in _copysignl
16896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16897 echo "configure:16898: checking for $ac_func" >&5
16898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16899 echo $ac_n "(cached) $ac_c" 1>&6
16900 else
16901 cat > conftest.$ac_ext <<EOF
16902 #line 16903 "configure"
16903 #include "confdefs.h"
16904 /* System header to define __stub macros and hopefully few prototypes,
16905 which can conflict with char $ac_func(); below. */
16906 #include <assert.h>
16907 /* Override any gcc2 internal prototype to avoid an error. */
16908 /* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16910 char $ac_func();
16912 int main() {
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16918 choke me
16919 #else
16920 $ac_func();
16921 #endif
16923 ; return 0; }
16925 if { (eval echo configure:16926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16926 rm -rf conftest*
16927 eval "ac_cv_func_$ac_func=yes"
16928 else
16929 echo "configure: failed program was:" >&5
16930 cat conftest.$ac_ext >&5
16931 rm -rf conftest*
16932 eval "ac_cv_func_$ac_func=no"
16934 rm -f conftest*
16937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16938 echo "$ac_t""yes" 1>&6
16939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16940 cat >> confdefs.h <<EOF
16941 #define $ac_tr_func 1
16944 else
16945 echo "$ac_t""no" 1>&6
16947 done
16954 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16955 echo "configure:16956: checking for atan2l declaration" >&5
16956 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
16957 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2l_use'+set}'`\" = set"; then
16958 echo $ac_n "(cached) $ac_c" 1>&6
16959 else
16962 ac_ext=C
16963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16964 ac_cpp='$CXXCPP $CPPFLAGS'
16965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16967 cross_compiling=$ac_cv_prog_cxx_cross
16969 cat > conftest.$ac_ext <<EOF
16970 #line 16971 "configure"
16971 #include "confdefs.h"
16972 #include <math.h>
16973 int main() {
16974 atan2l(0, 0);
16975 ; return 0; }
16977 if { (eval echo configure:16978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16978 rm -rf conftest*
16979 glibcxx_cv_func_atan2l_use=yes
16980 else
16981 echo "configure: failed program was:" >&5
16982 cat conftest.$ac_ext >&5
16983 rm -rf conftest*
16984 glibcxx_cv_func_atan2l_use=no
16986 rm -f conftest*
16987 ac_ext=c
16988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16989 ac_cpp='$CPP $CPPFLAGS'
16990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16992 cross_compiling=$ac_cv_prog_cc_cross
16998 echo "$ac_t""$glibcxx_cv_func_atan2l_use" 1>&6
17000 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17001 for ac_func in atan2l
17003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17004 echo "configure:17005: checking for $ac_func" >&5
17005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17006 echo $ac_n "(cached) $ac_c" 1>&6
17007 else
17008 cat > conftest.$ac_ext <<EOF
17009 #line 17010 "configure"
17010 #include "confdefs.h"
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func(); below. */
17013 #include <assert.h>
17014 /* Override any gcc2 internal prototype to avoid an error. */
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17017 char $ac_func();
17019 int main() {
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17025 choke me
17026 #else
17027 $ac_func();
17028 #endif
17030 ; return 0; }
17032 if { (eval echo configure:17033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 rm -rf conftest*
17034 eval "ac_cv_func_$ac_func=yes"
17035 else
17036 echo "configure: failed program was:" >&5
17037 cat conftest.$ac_ext >&5
17038 rm -rf conftest*
17039 eval "ac_cv_func_$ac_func=no"
17041 rm -f conftest*
17044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17045 echo "$ac_t""yes" 1>&6
17046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17047 cat >> confdefs.h <<EOF
17048 #define $ac_tr_func 1
17051 else
17052 echo "$ac_t""no" 1>&6
17054 done
17056 else
17058 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17059 echo "configure:17060: checking for _atan2l declaration" >&5
17060 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17061 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2l_use'+set}'`\" = set"; then
17062 echo $ac_n "(cached) $ac_c" 1>&6
17063 else
17066 ac_ext=C
17067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17068 ac_cpp='$CXXCPP $CPPFLAGS'
17069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17071 cross_compiling=$ac_cv_prog_cxx_cross
17073 cat > conftest.$ac_ext <<EOF
17074 #line 17075 "configure"
17075 #include "confdefs.h"
17076 #include <math.h>
17077 int main() {
17078 _atan2l(0, 0);
17079 ; return 0; }
17081 if { (eval echo configure:17082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17082 rm -rf conftest*
17083 glibcxx_cv_func__atan2l_use=yes
17084 else
17085 echo "configure: failed program was:" >&5
17086 cat conftest.$ac_ext >&5
17087 rm -rf conftest*
17088 glibcxx_cv_func__atan2l_use=no
17090 rm -f conftest*
17091 ac_ext=c
17092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17093 ac_cpp='$CPP $CPPFLAGS'
17094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17096 cross_compiling=$ac_cv_prog_cc_cross
17102 echo "$ac_t""$glibcxx_cv_func__atan2l_use" 1>&6
17104 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17105 for ac_func in _atan2l
17107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17108 echo "configure:17109: checking for $ac_func" >&5
17109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17110 echo $ac_n "(cached) $ac_c" 1>&6
17111 else
17112 cat > conftest.$ac_ext <<EOF
17113 #line 17114 "configure"
17114 #include "confdefs.h"
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char $ac_func(); below. */
17117 #include <assert.h>
17118 /* Override any gcc2 internal prototype to avoid an error. */
17119 /* We use char because int might match the return type of a gcc2
17120 builtin and then its argument prototype would still apply. */
17121 char $ac_func();
17123 int main() {
17125 /* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17129 choke me
17130 #else
17131 $ac_func();
17132 #endif
17134 ; return 0; }
17136 if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17137 rm -rf conftest*
17138 eval "ac_cv_func_$ac_func=yes"
17139 else
17140 echo "configure: failed program was:" >&5
17141 cat conftest.$ac_ext >&5
17142 rm -rf conftest*
17143 eval "ac_cv_func_$ac_func=no"
17145 rm -f conftest*
17148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17149 echo "$ac_t""yes" 1>&6
17150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17151 cat >> confdefs.h <<EOF
17152 #define $ac_tr_func 1
17155 else
17156 echo "$ac_t""no" 1>&6
17158 done
17165 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17166 echo "configure:17167: checking for expl declaration" >&5
17167 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17168 if eval "test \"`echo '$''{'glibcxx_cv_func_expl_use'+set}'`\" = set"; then
17169 echo $ac_n "(cached) $ac_c" 1>&6
17170 else
17173 ac_ext=C
17174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17175 ac_cpp='$CXXCPP $CPPFLAGS'
17176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17178 cross_compiling=$ac_cv_prog_cxx_cross
17180 cat > conftest.$ac_ext <<EOF
17181 #line 17182 "configure"
17182 #include "confdefs.h"
17183 #include <math.h>
17184 #ifdef HAVE_IEEEFP_H
17185 #include <ieeefp.h>
17186 #endif
17188 int main() {
17189 expl(0);
17190 ; return 0; }
17192 if { (eval echo configure:17193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17193 rm -rf conftest*
17194 glibcxx_cv_func_expl_use=yes
17195 else
17196 echo "configure: failed program was:" >&5
17197 cat conftest.$ac_ext >&5
17198 rm -rf conftest*
17199 glibcxx_cv_func_expl_use=no
17201 rm -f conftest*
17202 ac_ext=c
17203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17204 ac_cpp='$CPP $CPPFLAGS'
17205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17207 cross_compiling=$ac_cv_prog_cc_cross
17213 echo "$ac_t""$glibcxx_cv_func_expl_use" 1>&6
17215 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17216 for ac_func in expl
17218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17219 echo "configure:17220: checking for $ac_func" >&5
17220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17221 echo $ac_n "(cached) $ac_c" 1>&6
17222 else
17223 cat > conftest.$ac_ext <<EOF
17224 #line 17225 "configure"
17225 #include "confdefs.h"
17226 /* System header to define __stub macros and hopefully few prototypes,
17227 which can conflict with char $ac_func(); below. */
17228 #include <assert.h>
17229 /* Override any gcc2 internal prototype to avoid an error. */
17230 /* We use char because int might match the return type of a gcc2
17231 builtin and then its argument prototype would still apply. */
17232 char $ac_func();
17234 int main() {
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17240 choke me
17241 #else
17242 $ac_func();
17243 #endif
17245 ; return 0; }
17247 if { (eval echo configure:17248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17248 rm -rf conftest*
17249 eval "ac_cv_func_$ac_func=yes"
17250 else
17251 echo "configure: failed program was:" >&5
17252 cat conftest.$ac_ext >&5
17253 rm -rf conftest*
17254 eval "ac_cv_func_$ac_func=no"
17256 rm -f conftest*
17259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17260 echo "$ac_t""yes" 1>&6
17261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17262 cat >> confdefs.h <<EOF
17263 #define $ac_tr_func 1
17266 else
17267 echo "$ac_t""no" 1>&6
17269 done
17271 else
17273 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17274 echo "configure:17275: checking for _expl declaration" >&5
17275 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17276 if eval "test \"`echo '$''{'glibcxx_cv_func__expl_use'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278 else
17281 ac_ext=C
17282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17283 ac_cpp='$CXXCPP $CPPFLAGS'
17284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17286 cross_compiling=$ac_cv_prog_cxx_cross
17288 cat > conftest.$ac_ext <<EOF
17289 #line 17290 "configure"
17290 #include "confdefs.h"
17291 #include <math.h>
17292 #ifdef HAVE_IEEEFP_H
17293 #include <ieeefp.h>
17294 #endif
17296 int main() {
17297 _expl(0);
17298 ; return 0; }
17300 if { (eval echo configure:17301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17301 rm -rf conftest*
17302 glibcxx_cv_func__expl_use=yes
17303 else
17304 echo "configure: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 rm -rf conftest*
17307 glibcxx_cv_func__expl_use=no
17309 rm -f conftest*
17310 ac_ext=c
17311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17312 ac_cpp='$CPP $CPPFLAGS'
17313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17315 cross_compiling=$ac_cv_prog_cc_cross
17321 echo "$ac_t""$glibcxx_cv_func__expl_use" 1>&6
17323 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17324 for ac_func in _expl
17326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17327 echo "configure:17328: checking for $ac_func" >&5
17328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17329 echo $ac_n "(cached) $ac_c" 1>&6
17330 else
17331 cat > conftest.$ac_ext <<EOF
17332 #line 17333 "configure"
17333 #include "confdefs.h"
17334 /* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func(); below. */
17336 #include <assert.h>
17337 /* Override any gcc2 internal prototype to avoid an error. */
17338 /* We use char because int might match the return type of a gcc2
17339 builtin and then its argument prototype would still apply. */
17340 char $ac_func();
17342 int main() {
17344 /* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17348 choke me
17349 #else
17350 $ac_func();
17351 #endif
17353 ; return 0; }
17355 if { (eval echo configure:17356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17356 rm -rf conftest*
17357 eval "ac_cv_func_$ac_func=yes"
17358 else
17359 echo "configure: failed program was:" >&5
17360 cat conftest.$ac_ext >&5
17361 rm -rf conftest*
17362 eval "ac_cv_func_$ac_func=no"
17364 rm -f conftest*
17367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17368 echo "$ac_t""yes" 1>&6
17369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17370 cat >> confdefs.h <<EOF
17371 #define $ac_tr_func 1
17374 else
17375 echo "$ac_t""no" 1>&6
17377 done
17384 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17385 echo "configure:17386: checking for fabsl declaration" >&5
17386 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17387 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsl_use'+set}'`\" = set"; then
17388 echo $ac_n "(cached) $ac_c" 1>&6
17389 else
17392 ac_ext=C
17393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17394 ac_cpp='$CXXCPP $CPPFLAGS'
17395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17397 cross_compiling=$ac_cv_prog_cxx_cross
17399 cat > conftest.$ac_ext <<EOF
17400 #line 17401 "configure"
17401 #include "confdefs.h"
17402 #include <math.h>
17403 #ifdef HAVE_IEEEFP_H
17404 #include <ieeefp.h>
17405 #endif
17407 int main() {
17408 fabsl(0);
17409 ; return 0; }
17411 if { (eval echo configure:17412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17412 rm -rf conftest*
17413 glibcxx_cv_func_fabsl_use=yes
17414 else
17415 echo "configure: failed program was:" >&5
17416 cat conftest.$ac_ext >&5
17417 rm -rf conftest*
17418 glibcxx_cv_func_fabsl_use=no
17420 rm -f conftest*
17421 ac_ext=c
17422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17423 ac_cpp='$CPP $CPPFLAGS'
17424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17426 cross_compiling=$ac_cv_prog_cc_cross
17432 echo "$ac_t""$glibcxx_cv_func_fabsl_use" 1>&6
17434 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17435 for ac_func in fabsl
17437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17438 echo "configure:17439: checking for $ac_func" >&5
17439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
17441 else
17442 cat > conftest.$ac_ext <<EOF
17443 #line 17444 "configure"
17444 #include "confdefs.h"
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func(); below. */
17447 #include <assert.h>
17448 /* Override any gcc2 internal prototype to avoid an error. */
17449 /* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17451 char $ac_func();
17453 int main() {
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17459 choke me
17460 #else
17461 $ac_func();
17462 #endif
17464 ; return 0; }
17466 if { (eval echo configure:17467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17467 rm -rf conftest*
17468 eval "ac_cv_func_$ac_func=yes"
17469 else
17470 echo "configure: failed program was:" >&5
17471 cat conftest.$ac_ext >&5
17472 rm -rf conftest*
17473 eval "ac_cv_func_$ac_func=no"
17475 rm -f conftest*
17478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17479 echo "$ac_t""yes" 1>&6
17480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17481 cat >> confdefs.h <<EOF
17482 #define $ac_tr_func 1
17485 else
17486 echo "$ac_t""no" 1>&6
17488 done
17490 else
17492 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17493 echo "configure:17494: checking for _fabsl declaration" >&5
17494 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17495 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsl_use'+set}'`\" = set"; then
17496 echo $ac_n "(cached) $ac_c" 1>&6
17497 else
17500 ac_ext=C
17501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17502 ac_cpp='$CXXCPP $CPPFLAGS'
17503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17505 cross_compiling=$ac_cv_prog_cxx_cross
17507 cat > conftest.$ac_ext <<EOF
17508 #line 17509 "configure"
17509 #include "confdefs.h"
17510 #include <math.h>
17511 #ifdef HAVE_IEEEFP_H
17512 #include <ieeefp.h>
17513 #endif
17515 int main() {
17516 _fabsl(0);
17517 ; return 0; }
17519 if { (eval echo configure:17520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17520 rm -rf conftest*
17521 glibcxx_cv_func__fabsl_use=yes
17522 else
17523 echo "configure: failed program was:" >&5
17524 cat conftest.$ac_ext >&5
17525 rm -rf conftest*
17526 glibcxx_cv_func__fabsl_use=no
17528 rm -f conftest*
17529 ac_ext=c
17530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17531 ac_cpp='$CPP $CPPFLAGS'
17532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17534 cross_compiling=$ac_cv_prog_cc_cross
17540 echo "$ac_t""$glibcxx_cv_func__fabsl_use" 1>&6
17542 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
17543 for ac_func in _fabsl
17545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17546 echo "configure:17547: checking for $ac_func" >&5
17547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17548 echo $ac_n "(cached) $ac_c" 1>&6
17549 else
17550 cat > conftest.$ac_ext <<EOF
17551 #line 17552 "configure"
17552 #include "confdefs.h"
17553 /* System header to define __stub macros and hopefully few prototypes,
17554 which can conflict with char $ac_func(); below. */
17555 #include <assert.h>
17556 /* Override any gcc2 internal prototype to avoid an error. */
17557 /* We use char because int might match the return type of a gcc2
17558 builtin and then its argument prototype would still apply. */
17559 char $ac_func();
17561 int main() {
17563 /* The GNU C library defines this for functions which it implements
17564 to always fail with ENOSYS. Some functions are actually named
17565 something starting with __ and the normal name is an alias. */
17566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17567 choke me
17568 #else
17569 $ac_func();
17570 #endif
17572 ; return 0; }
17574 if { (eval echo configure:17575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17575 rm -rf conftest*
17576 eval "ac_cv_func_$ac_func=yes"
17577 else
17578 echo "configure: failed program was:" >&5
17579 cat conftest.$ac_ext >&5
17580 rm -rf conftest*
17581 eval "ac_cv_func_$ac_func=no"
17583 rm -f conftest*
17586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17587 echo "$ac_t""yes" 1>&6
17588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17589 cat >> confdefs.h <<EOF
17590 #define $ac_tr_func 1
17593 else
17594 echo "$ac_t""no" 1>&6
17596 done
17603 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17604 echo "configure:17605: checking for fmodl declaration" >&5
17605 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
17606 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodl_use'+set}'`\" = set"; then
17607 echo $ac_n "(cached) $ac_c" 1>&6
17608 else
17611 ac_ext=C
17612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17613 ac_cpp='$CXXCPP $CPPFLAGS'
17614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17616 cross_compiling=$ac_cv_prog_cxx_cross
17618 cat > conftest.$ac_ext <<EOF
17619 #line 17620 "configure"
17620 #include "confdefs.h"
17621 #include <math.h>
17622 int main() {
17623 fmodl(0, 0);
17624 ; return 0; }
17626 if { (eval echo configure:17627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17627 rm -rf conftest*
17628 glibcxx_cv_func_fmodl_use=yes
17629 else
17630 echo "configure: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17632 rm -rf conftest*
17633 glibcxx_cv_func_fmodl_use=no
17635 rm -f conftest*
17636 ac_ext=c
17637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17641 cross_compiling=$ac_cv_prog_cc_cross
17647 echo "$ac_t""$glibcxx_cv_func_fmodl_use" 1>&6
17649 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
17650 for ac_func in fmodl
17652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17653 echo "configure:17654: checking for $ac_func" >&5
17654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17655 echo $ac_n "(cached) $ac_c" 1>&6
17656 else
17657 cat > conftest.$ac_ext <<EOF
17658 #line 17659 "configure"
17659 #include "confdefs.h"
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char $ac_func(); below. */
17662 #include <assert.h>
17663 /* Override any gcc2 internal prototype to avoid an error. */
17664 /* We use char because int might match the return type of a gcc2
17665 builtin and then its argument prototype would still apply. */
17666 char $ac_func();
17668 int main() {
17670 /* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17674 choke me
17675 #else
17676 $ac_func();
17677 #endif
17679 ; return 0; }
17681 if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17682 rm -rf conftest*
17683 eval "ac_cv_func_$ac_func=yes"
17684 else
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
17688 eval "ac_cv_func_$ac_func=no"
17690 rm -f conftest*
17693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17694 echo "$ac_t""yes" 1>&6
17695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17696 cat >> confdefs.h <<EOF
17697 #define $ac_tr_func 1
17700 else
17701 echo "$ac_t""no" 1>&6
17703 done
17705 else
17707 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17708 echo "configure:17709: checking for _fmodl declaration" >&5
17709 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
17710 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodl_use'+set}'`\" = set"; then
17711 echo $ac_n "(cached) $ac_c" 1>&6
17712 else
17715 ac_ext=C
17716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17720 cross_compiling=$ac_cv_prog_cxx_cross
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17725 #include <math.h>
17726 int main() {
17727 _fmodl(0, 0);
17728 ; return 0; }
17730 if { (eval echo configure:17731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17731 rm -rf conftest*
17732 glibcxx_cv_func__fmodl_use=yes
17733 else
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17736 rm -rf conftest*
17737 glibcxx_cv_func__fmodl_use=no
17739 rm -f conftest*
17740 ac_ext=c
17741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17742 ac_cpp='$CPP $CPPFLAGS'
17743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17745 cross_compiling=$ac_cv_prog_cc_cross
17751 echo "$ac_t""$glibcxx_cv_func__fmodl_use" 1>&6
17753 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
17754 for ac_func in _fmodl
17756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17757 echo "configure:17758: checking for $ac_func" >&5
17758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17759 echo $ac_n "(cached) $ac_c" 1>&6
17760 else
17761 cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func(); below. */
17766 #include <assert.h>
17767 /* Override any gcc2 internal prototype to avoid an error. */
17768 /* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17770 char $ac_func();
17772 int main() {
17774 /* The GNU C library defines this for functions which it implements
17775 to always fail with ENOSYS. Some functions are actually named
17776 something starting with __ and the normal name is an alias. */
17777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17778 choke me
17779 #else
17780 $ac_func();
17781 #endif
17783 ; return 0; }
17785 if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786 rm -rf conftest*
17787 eval "ac_cv_func_$ac_func=yes"
17788 else
17789 echo "configure: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 rm -rf conftest*
17792 eval "ac_cv_func_$ac_func=no"
17794 rm -f conftest*
17797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17798 echo "$ac_t""yes" 1>&6
17799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17800 cat >> confdefs.h <<EOF
17801 #define $ac_tr_func 1
17804 else
17805 echo "$ac_t""no" 1>&6
17807 done
17814 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17815 echo "configure:17816: checking for frexpl declaration" >&5
17816 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
17817 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpl_use'+set}'`\" = set"; then
17818 echo $ac_n "(cached) $ac_c" 1>&6
17819 else
17822 ac_ext=C
17823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17824 ac_cpp='$CXXCPP $CPPFLAGS'
17825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17827 cross_compiling=$ac_cv_prog_cxx_cross
17829 cat > conftest.$ac_ext <<EOF
17830 #line 17831 "configure"
17831 #include "confdefs.h"
17832 #include <math.h>
17833 int main() {
17834 frexpl(0, 0);
17835 ; return 0; }
17837 if { (eval echo configure:17838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17838 rm -rf conftest*
17839 glibcxx_cv_func_frexpl_use=yes
17840 else
17841 echo "configure: failed program was:" >&5
17842 cat conftest.$ac_ext >&5
17843 rm -rf conftest*
17844 glibcxx_cv_func_frexpl_use=no
17846 rm -f conftest*
17847 ac_ext=c
17848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17849 ac_cpp='$CPP $CPPFLAGS'
17850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17852 cross_compiling=$ac_cv_prog_cc_cross
17858 echo "$ac_t""$glibcxx_cv_func_frexpl_use" 1>&6
17860 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
17861 for ac_func in frexpl
17863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17864 echo "configure:17865: checking for $ac_func" >&5
17865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17866 echo $ac_n "(cached) $ac_c" 1>&6
17867 else
17868 cat > conftest.$ac_ext <<EOF
17869 #line 17870 "configure"
17870 #include "confdefs.h"
17871 /* System header to define __stub macros and hopefully few prototypes,
17872 which can conflict with char $ac_func(); below. */
17873 #include <assert.h>
17874 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17877 char $ac_func();
17879 int main() {
17881 /* The GNU C library defines this for functions which it implements
17882 to always fail with ENOSYS. Some functions are actually named
17883 something starting with __ and the normal name is an alias. */
17884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17885 choke me
17886 #else
17887 $ac_func();
17888 #endif
17890 ; return 0; }
17892 if { (eval echo configure:17893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17893 rm -rf conftest*
17894 eval "ac_cv_func_$ac_func=yes"
17895 else
17896 echo "configure: failed program was:" >&5
17897 cat conftest.$ac_ext >&5
17898 rm -rf conftest*
17899 eval "ac_cv_func_$ac_func=no"
17901 rm -f conftest*
17904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17905 echo "$ac_t""yes" 1>&6
17906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17907 cat >> confdefs.h <<EOF
17908 #define $ac_tr_func 1
17911 else
17912 echo "$ac_t""no" 1>&6
17914 done
17916 else
17918 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17919 echo "configure:17920: checking for _frexpl declaration" >&5
17920 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
17921 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpl_use'+set}'`\" = set"; then
17922 echo $ac_n "(cached) $ac_c" 1>&6
17923 else
17926 ac_ext=C
17927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17928 ac_cpp='$CXXCPP $CPPFLAGS'
17929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17931 cross_compiling=$ac_cv_prog_cxx_cross
17933 cat > conftest.$ac_ext <<EOF
17934 #line 17935 "configure"
17935 #include "confdefs.h"
17936 #include <math.h>
17937 int main() {
17938 _frexpl(0, 0);
17939 ; return 0; }
17941 if { (eval echo configure:17942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17942 rm -rf conftest*
17943 glibcxx_cv_func__frexpl_use=yes
17944 else
17945 echo "configure: failed program was:" >&5
17946 cat conftest.$ac_ext >&5
17947 rm -rf conftest*
17948 glibcxx_cv_func__frexpl_use=no
17950 rm -f conftest*
17951 ac_ext=c
17952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17956 cross_compiling=$ac_cv_prog_cc_cross
17962 echo "$ac_t""$glibcxx_cv_func__frexpl_use" 1>&6
17964 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
17965 for ac_func in _frexpl
17967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17968 echo "configure:17969: checking for $ac_func" >&5
17969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17970 echo $ac_n "(cached) $ac_c" 1>&6
17971 else
17972 cat > conftest.$ac_ext <<EOF
17973 #line 17974 "configure"
17974 #include "confdefs.h"
17975 /* System header to define __stub macros and hopefully few prototypes,
17976 which can conflict with char $ac_func(); below. */
17977 #include <assert.h>
17978 /* Override any gcc2 internal prototype to avoid an error. */
17979 /* We use char because int might match the return type of a gcc2
17980 builtin and then its argument prototype would still apply. */
17981 char $ac_func();
17983 int main() {
17985 /* The GNU C library defines this for functions which it implements
17986 to always fail with ENOSYS. Some functions are actually named
17987 something starting with __ and the normal name is an alias. */
17988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17989 choke me
17990 #else
17991 $ac_func();
17992 #endif
17994 ; return 0; }
17996 if { (eval echo configure:17997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17997 rm -rf conftest*
17998 eval "ac_cv_func_$ac_func=yes"
17999 else
18000 echo "configure: failed program was:" >&5
18001 cat conftest.$ac_ext >&5
18002 rm -rf conftest*
18003 eval "ac_cv_func_$ac_func=no"
18005 rm -f conftest*
18008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18009 echo "$ac_t""yes" 1>&6
18010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18011 cat >> confdefs.h <<EOF
18012 #define $ac_tr_func 1
18015 else
18016 echo "$ac_t""no" 1>&6
18018 done
18025 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18026 echo "configure:18027: checking for hypotl declaration" >&5
18027 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18028 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotl_use'+set}'`\" = set"; then
18029 echo $ac_n "(cached) $ac_c" 1>&6
18030 else
18033 ac_ext=C
18034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18035 ac_cpp='$CXXCPP $CPPFLAGS'
18036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18038 cross_compiling=$ac_cv_prog_cxx_cross
18040 cat > conftest.$ac_ext <<EOF
18041 #line 18042 "configure"
18042 #include "confdefs.h"
18043 #include <math.h>
18044 int main() {
18045 hypotl(0, 0);
18046 ; return 0; }
18048 if { (eval echo configure:18049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18049 rm -rf conftest*
18050 glibcxx_cv_func_hypotl_use=yes
18051 else
18052 echo "configure: failed program was:" >&5
18053 cat conftest.$ac_ext >&5
18054 rm -rf conftest*
18055 glibcxx_cv_func_hypotl_use=no
18057 rm -f conftest*
18058 ac_ext=c
18059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18060 ac_cpp='$CPP $CPPFLAGS'
18061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18063 cross_compiling=$ac_cv_prog_cc_cross
18069 echo "$ac_t""$glibcxx_cv_func_hypotl_use" 1>&6
18071 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18072 for ac_func in hypotl
18074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18075 echo "configure:18076: checking for $ac_func" >&5
18076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18077 echo $ac_n "(cached) $ac_c" 1>&6
18078 else
18079 cat > conftest.$ac_ext <<EOF
18080 #line 18081 "configure"
18081 #include "confdefs.h"
18082 /* System header to define __stub macros and hopefully few prototypes,
18083 which can conflict with char $ac_func(); below. */
18084 #include <assert.h>
18085 /* Override any gcc2 internal prototype to avoid an error. */
18086 /* We use char because int might match the return type of a gcc2
18087 builtin and then its argument prototype would still apply. */
18088 char $ac_func();
18090 int main() {
18092 /* The GNU C library defines this for functions which it implements
18093 to always fail with ENOSYS. Some functions are actually named
18094 something starting with __ and the normal name is an alias. */
18095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18096 choke me
18097 #else
18098 $ac_func();
18099 #endif
18101 ; return 0; }
18103 if { (eval echo configure:18104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18104 rm -rf conftest*
18105 eval "ac_cv_func_$ac_func=yes"
18106 else
18107 echo "configure: failed program was:" >&5
18108 cat conftest.$ac_ext >&5
18109 rm -rf conftest*
18110 eval "ac_cv_func_$ac_func=no"
18112 rm -f conftest*
18115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18116 echo "$ac_t""yes" 1>&6
18117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18118 cat >> confdefs.h <<EOF
18119 #define $ac_tr_func 1
18122 else
18123 echo "$ac_t""no" 1>&6
18125 done
18127 else
18129 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18130 echo "configure:18131: checking for _hypotl declaration" >&5
18131 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18132 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotl_use'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18137 ac_ext=C
18138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18139 ac_cpp='$CXXCPP $CPPFLAGS'
18140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18142 cross_compiling=$ac_cv_prog_cxx_cross
18144 cat > conftest.$ac_ext <<EOF
18145 #line 18146 "configure"
18146 #include "confdefs.h"
18147 #include <math.h>
18148 int main() {
18149 _hypotl(0, 0);
18150 ; return 0; }
18152 if { (eval echo configure:18153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18153 rm -rf conftest*
18154 glibcxx_cv_func__hypotl_use=yes
18155 else
18156 echo "configure: failed program was:" >&5
18157 cat conftest.$ac_ext >&5
18158 rm -rf conftest*
18159 glibcxx_cv_func__hypotl_use=no
18161 rm -f conftest*
18162 ac_ext=c
18163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18164 ac_cpp='$CPP $CPPFLAGS'
18165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18167 cross_compiling=$ac_cv_prog_cc_cross
18173 echo "$ac_t""$glibcxx_cv_func__hypotl_use" 1>&6
18175 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18176 for ac_func in _hypotl
18178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18179 echo "configure:18180: checking for $ac_func" >&5
18180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18181 echo $ac_n "(cached) $ac_c" 1>&6
18182 else
18183 cat > conftest.$ac_ext <<EOF
18184 #line 18185 "configure"
18185 #include "confdefs.h"
18186 /* System header to define __stub macros and hopefully few prototypes,
18187 which can conflict with char $ac_func(); below. */
18188 #include <assert.h>
18189 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18192 char $ac_func();
18194 int main() {
18196 /* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 choke me
18201 #else
18202 $ac_func();
18203 #endif
18205 ; return 0; }
18207 if { (eval echo configure:18208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18208 rm -rf conftest*
18209 eval "ac_cv_func_$ac_func=yes"
18210 else
18211 echo "configure: failed program was:" >&5
18212 cat conftest.$ac_ext >&5
18213 rm -rf conftest*
18214 eval "ac_cv_func_$ac_func=no"
18216 rm -f conftest*
18219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18220 echo "$ac_t""yes" 1>&6
18221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18222 cat >> confdefs.h <<EOF
18223 #define $ac_tr_func 1
18226 else
18227 echo "$ac_t""no" 1>&6
18229 done
18236 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18237 echo "configure:18238: checking for ldexpl declaration" >&5
18238 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
18239 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpl_use'+set}'`\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18241 else
18244 ac_ext=C
18245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18246 ac_cpp='$CXXCPP $CPPFLAGS'
18247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18249 cross_compiling=$ac_cv_prog_cxx_cross
18251 cat > conftest.$ac_ext <<EOF
18252 #line 18253 "configure"
18253 #include "confdefs.h"
18254 #include <math.h>
18255 int main() {
18256 ldexpl(0, 0);
18257 ; return 0; }
18259 if { (eval echo configure:18260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18260 rm -rf conftest*
18261 glibcxx_cv_func_ldexpl_use=yes
18262 else
18263 echo "configure: failed program was:" >&5
18264 cat conftest.$ac_ext >&5
18265 rm -rf conftest*
18266 glibcxx_cv_func_ldexpl_use=no
18268 rm -f conftest*
18269 ac_ext=c
18270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18271 ac_cpp='$CPP $CPPFLAGS'
18272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18274 cross_compiling=$ac_cv_prog_cc_cross
18280 echo "$ac_t""$glibcxx_cv_func_ldexpl_use" 1>&6
18282 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
18283 for ac_func in ldexpl
18285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18286 echo "configure:18287: checking for $ac_func" >&5
18287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18288 echo $ac_n "(cached) $ac_c" 1>&6
18289 else
18290 cat > conftest.$ac_ext <<EOF
18291 #line 18292 "configure"
18292 #include "confdefs.h"
18293 /* System header to define __stub macros and hopefully few prototypes,
18294 which can conflict with char $ac_func(); below. */
18295 #include <assert.h>
18296 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299 char $ac_func();
18301 int main() {
18303 /* The GNU C library defines this for functions which it implements
18304 to always fail with ENOSYS. Some functions are actually named
18305 something starting with __ and the normal name is an alias. */
18306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18307 choke me
18308 #else
18309 $ac_func();
18310 #endif
18312 ; return 0; }
18314 if { (eval echo configure:18315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18315 rm -rf conftest*
18316 eval "ac_cv_func_$ac_func=yes"
18317 else
18318 echo "configure: failed program was:" >&5
18319 cat conftest.$ac_ext >&5
18320 rm -rf conftest*
18321 eval "ac_cv_func_$ac_func=no"
18323 rm -f conftest*
18326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18327 echo "$ac_t""yes" 1>&6
18328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18329 cat >> confdefs.h <<EOF
18330 #define $ac_tr_func 1
18333 else
18334 echo "$ac_t""no" 1>&6
18336 done
18338 else
18340 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18341 echo "configure:18342: checking for _ldexpl declaration" >&5
18342 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
18343 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpl_use'+set}'`\" = set"; then
18344 echo $ac_n "(cached) $ac_c" 1>&6
18345 else
18348 ac_ext=C
18349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18350 ac_cpp='$CXXCPP $CPPFLAGS'
18351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18353 cross_compiling=$ac_cv_prog_cxx_cross
18355 cat > conftest.$ac_ext <<EOF
18356 #line 18357 "configure"
18357 #include "confdefs.h"
18358 #include <math.h>
18359 int main() {
18360 _ldexpl(0, 0);
18361 ; return 0; }
18363 if { (eval echo configure:18364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18364 rm -rf conftest*
18365 glibcxx_cv_func__ldexpl_use=yes
18366 else
18367 echo "configure: failed program was:" >&5
18368 cat conftest.$ac_ext >&5
18369 rm -rf conftest*
18370 glibcxx_cv_func__ldexpl_use=no
18372 rm -f conftest*
18373 ac_ext=c
18374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18375 ac_cpp='$CPP $CPPFLAGS'
18376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18378 cross_compiling=$ac_cv_prog_cc_cross
18384 echo "$ac_t""$glibcxx_cv_func__ldexpl_use" 1>&6
18386 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
18387 for ac_func in _ldexpl
18389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18390 echo "configure:18391: checking for $ac_func" >&5
18391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18392 echo $ac_n "(cached) $ac_c" 1>&6
18393 else
18394 cat > conftest.$ac_ext <<EOF
18395 #line 18396 "configure"
18396 #include "confdefs.h"
18397 /* System header to define __stub macros and hopefully few prototypes,
18398 which can conflict with char $ac_func(); below. */
18399 #include <assert.h>
18400 /* Override any gcc2 internal prototype to avoid an error. */
18401 /* We use char because int might match the return type of a gcc2
18402 builtin and then its argument prototype would still apply. */
18403 char $ac_func();
18405 int main() {
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18411 choke me
18412 #else
18413 $ac_func();
18414 #endif
18416 ; return 0; }
18418 if { (eval echo configure:18419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18419 rm -rf conftest*
18420 eval "ac_cv_func_$ac_func=yes"
18421 else
18422 echo "configure: failed program was:" >&5
18423 cat conftest.$ac_ext >&5
18424 rm -rf conftest*
18425 eval "ac_cv_func_$ac_func=no"
18427 rm -f conftest*
18430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18431 echo "$ac_t""yes" 1>&6
18432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18433 cat >> confdefs.h <<EOF
18434 #define $ac_tr_func 1
18437 else
18438 echo "$ac_t""no" 1>&6
18440 done
18447 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18448 echo "configure:18449: checking for logl declaration" >&5
18449 if test x${glibcxx_cv_func_logl_use+set} != xset; then
18450 if eval "test \"`echo '$''{'glibcxx_cv_func_logl_use'+set}'`\" = set"; then
18451 echo $ac_n "(cached) $ac_c" 1>&6
18452 else
18455 ac_ext=C
18456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18460 cross_compiling=$ac_cv_prog_cxx_cross
18462 cat > conftest.$ac_ext <<EOF
18463 #line 18464 "configure"
18464 #include "confdefs.h"
18465 #include <math.h>
18466 #ifdef HAVE_IEEEFP_H
18467 #include <ieeefp.h>
18468 #endif
18470 int main() {
18471 logl(0);
18472 ; return 0; }
18474 if { (eval echo configure:18475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18475 rm -rf conftest*
18476 glibcxx_cv_func_logl_use=yes
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 glibcxx_cv_func_logl_use=no
18483 rm -f conftest*
18484 ac_ext=c
18485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18486 ac_cpp='$CPP $CPPFLAGS'
18487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18489 cross_compiling=$ac_cv_prog_cc_cross
18495 echo "$ac_t""$glibcxx_cv_func_logl_use" 1>&6
18497 if test x$glibcxx_cv_func_logl_use = x"yes"; then
18498 for ac_func in logl
18500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18501 echo "configure:18502: checking for $ac_func" >&5
18502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18503 echo $ac_n "(cached) $ac_c" 1>&6
18504 else
18505 cat > conftest.$ac_ext <<EOF
18506 #line 18507 "configure"
18507 #include "confdefs.h"
18508 /* System header to define __stub macros and hopefully few prototypes,
18509 which can conflict with char $ac_func(); below. */
18510 #include <assert.h>
18511 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18514 char $ac_func();
18516 int main() {
18518 /* The GNU C library defines this for functions which it implements
18519 to always fail with ENOSYS. Some functions are actually named
18520 something starting with __ and the normal name is an alias. */
18521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18522 choke me
18523 #else
18524 $ac_func();
18525 #endif
18527 ; return 0; }
18529 if { (eval echo configure:18530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18530 rm -rf conftest*
18531 eval "ac_cv_func_$ac_func=yes"
18532 else
18533 echo "configure: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18535 rm -rf conftest*
18536 eval "ac_cv_func_$ac_func=no"
18538 rm -f conftest*
18541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18542 echo "$ac_t""yes" 1>&6
18543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18544 cat >> confdefs.h <<EOF
18545 #define $ac_tr_func 1
18548 else
18549 echo "$ac_t""no" 1>&6
18551 done
18553 else
18555 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18556 echo "configure:18557: checking for _logl declaration" >&5
18557 if test x${glibcxx_cv_func__logl_use+set} != xset; then
18558 if eval "test \"`echo '$''{'glibcxx_cv_func__logl_use'+set}'`\" = set"; then
18559 echo $ac_n "(cached) $ac_c" 1>&6
18560 else
18563 ac_ext=C
18564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18565 ac_cpp='$CXXCPP $CPPFLAGS'
18566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18568 cross_compiling=$ac_cv_prog_cxx_cross
18570 cat > conftest.$ac_ext <<EOF
18571 #line 18572 "configure"
18572 #include "confdefs.h"
18573 #include <math.h>
18574 #ifdef HAVE_IEEEFP_H
18575 #include <ieeefp.h>
18576 #endif
18578 int main() {
18579 _logl(0);
18580 ; return 0; }
18582 if { (eval echo configure:18583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18583 rm -rf conftest*
18584 glibcxx_cv_func__logl_use=yes
18585 else
18586 echo "configure: failed program was:" >&5
18587 cat conftest.$ac_ext >&5
18588 rm -rf conftest*
18589 glibcxx_cv_func__logl_use=no
18591 rm -f conftest*
18592 ac_ext=c
18593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18597 cross_compiling=$ac_cv_prog_cc_cross
18603 echo "$ac_t""$glibcxx_cv_func__logl_use" 1>&6
18605 if test x$glibcxx_cv_func__logl_use = x"yes"; then
18606 for ac_func in _logl
18608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18609 echo "configure:18610: checking for $ac_func" >&5
18610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18612 else
18613 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616 /* System header to define __stub macros and hopefully few prototypes,
18617 which can conflict with char $ac_func(); below. */
18618 #include <assert.h>
18619 /* Override any gcc2 internal prototype to avoid an error. */
18620 /* We use char because int might match the return type of a gcc2
18621 builtin and then its argument prototype would still apply. */
18622 char $ac_func();
18624 int main() {
18626 /* The GNU C library defines this for functions which it implements
18627 to always fail with ENOSYS. Some functions are actually named
18628 something starting with __ and the normal name is an alias. */
18629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18630 choke me
18631 #else
18632 $ac_func();
18633 #endif
18635 ; return 0; }
18637 if { (eval echo configure:18638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18638 rm -rf conftest*
18639 eval "ac_cv_func_$ac_func=yes"
18640 else
18641 echo "configure: failed program was:" >&5
18642 cat conftest.$ac_ext >&5
18643 rm -rf conftest*
18644 eval "ac_cv_func_$ac_func=no"
18646 rm -f conftest*
18649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18650 echo "$ac_t""yes" 1>&6
18651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18652 cat >> confdefs.h <<EOF
18653 #define $ac_tr_func 1
18656 else
18657 echo "$ac_t""no" 1>&6
18659 done
18666 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18667 echo "configure:18668: checking for log10l declaration" >&5
18668 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
18669 if eval "test \"`echo '$''{'glibcxx_cv_func_log10l_use'+set}'`\" = set"; then
18670 echo $ac_n "(cached) $ac_c" 1>&6
18671 else
18674 ac_ext=C
18675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18676 ac_cpp='$CXXCPP $CPPFLAGS'
18677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18679 cross_compiling=$ac_cv_prog_cxx_cross
18681 cat > conftest.$ac_ext <<EOF
18682 #line 18683 "configure"
18683 #include "confdefs.h"
18684 #include <math.h>
18685 #ifdef HAVE_IEEEFP_H
18686 #include <ieeefp.h>
18687 #endif
18689 int main() {
18690 log10l(0);
18691 ; return 0; }
18693 if { (eval echo configure:18694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18694 rm -rf conftest*
18695 glibcxx_cv_func_log10l_use=yes
18696 else
18697 echo "configure: failed program was:" >&5
18698 cat conftest.$ac_ext >&5
18699 rm -rf conftest*
18700 glibcxx_cv_func_log10l_use=no
18702 rm -f conftest*
18703 ac_ext=c
18704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18705 ac_cpp='$CPP $CPPFLAGS'
18706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18708 cross_compiling=$ac_cv_prog_cc_cross
18714 echo "$ac_t""$glibcxx_cv_func_log10l_use" 1>&6
18716 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
18717 for ac_func in log10l
18719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18720 echo "configure:18721: checking for $ac_func" >&5
18721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18722 echo $ac_n "(cached) $ac_c" 1>&6
18723 else
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func(); below. */
18729 #include <assert.h>
18730 /* Override any gcc2 internal prototype to avoid an error. */
18731 /* We use char because int might match the return type of a gcc2
18732 builtin and then its argument prototype would still apply. */
18733 char $ac_func();
18735 int main() {
18737 /* The GNU C library defines this for functions which it implements
18738 to always fail with ENOSYS. Some functions are actually named
18739 something starting with __ and the normal name is an alias. */
18740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18741 choke me
18742 #else
18743 $ac_func();
18744 #endif
18746 ; return 0; }
18748 if { (eval echo configure:18749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18749 rm -rf conftest*
18750 eval "ac_cv_func_$ac_func=yes"
18751 else
18752 echo "configure: failed program was:" >&5
18753 cat conftest.$ac_ext >&5
18754 rm -rf conftest*
18755 eval "ac_cv_func_$ac_func=no"
18757 rm -f conftest*
18760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18761 echo "$ac_t""yes" 1>&6
18762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18763 cat >> confdefs.h <<EOF
18764 #define $ac_tr_func 1
18767 else
18768 echo "$ac_t""no" 1>&6
18770 done
18772 else
18774 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18775 echo "configure:18776: checking for _log10l declaration" >&5
18776 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
18777 if eval "test \"`echo '$''{'glibcxx_cv_func__log10l_use'+set}'`\" = set"; then
18778 echo $ac_n "(cached) $ac_c" 1>&6
18779 else
18782 ac_ext=C
18783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18784 ac_cpp='$CXXCPP $CPPFLAGS'
18785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18787 cross_compiling=$ac_cv_prog_cxx_cross
18789 cat > conftest.$ac_ext <<EOF
18790 #line 18791 "configure"
18791 #include "confdefs.h"
18792 #include <math.h>
18793 #ifdef HAVE_IEEEFP_H
18794 #include <ieeefp.h>
18795 #endif
18797 int main() {
18798 _log10l(0);
18799 ; return 0; }
18801 if { (eval echo configure:18802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18802 rm -rf conftest*
18803 glibcxx_cv_func__log10l_use=yes
18804 else
18805 echo "configure: failed program was:" >&5
18806 cat conftest.$ac_ext >&5
18807 rm -rf conftest*
18808 glibcxx_cv_func__log10l_use=no
18810 rm -f conftest*
18811 ac_ext=c
18812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18813 ac_cpp='$CPP $CPPFLAGS'
18814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18816 cross_compiling=$ac_cv_prog_cc_cross
18822 echo "$ac_t""$glibcxx_cv_func__log10l_use" 1>&6
18824 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
18825 for ac_func in _log10l
18827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18828 echo "configure:18829: checking for $ac_func" >&5
18829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18830 echo $ac_n "(cached) $ac_c" 1>&6
18831 else
18832 cat > conftest.$ac_ext <<EOF
18833 #line 18834 "configure"
18834 #include "confdefs.h"
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char $ac_func(); below. */
18837 #include <assert.h>
18838 /* Override any gcc2 internal prototype to avoid an error. */
18839 /* We use char because int might match the return type of a gcc2
18840 builtin and then its argument prototype would still apply. */
18841 char $ac_func();
18843 int main() {
18845 /* The GNU C library defines this for functions which it implements
18846 to always fail with ENOSYS. Some functions are actually named
18847 something starting with __ and the normal name is an alias. */
18848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18849 choke me
18850 #else
18851 $ac_func();
18852 #endif
18854 ; return 0; }
18856 if { (eval echo configure:18857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18857 rm -rf conftest*
18858 eval "ac_cv_func_$ac_func=yes"
18859 else
18860 echo "configure: failed program was:" >&5
18861 cat conftest.$ac_ext >&5
18862 rm -rf conftest*
18863 eval "ac_cv_func_$ac_func=no"
18865 rm -f conftest*
18868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18869 echo "$ac_t""yes" 1>&6
18870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18871 cat >> confdefs.h <<EOF
18872 #define $ac_tr_func 1
18875 else
18876 echo "$ac_t""no" 1>&6
18878 done
18885 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18886 echo "configure:18887: checking for modfl declaration" >&5
18887 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
18888 if eval "test \"`echo '$''{'glibcxx_cv_func_modfl_use'+set}'`\" = set"; then
18889 echo $ac_n "(cached) $ac_c" 1>&6
18890 else
18893 ac_ext=C
18894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18895 ac_cpp='$CXXCPP $CPPFLAGS'
18896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18898 cross_compiling=$ac_cv_prog_cxx_cross
18900 cat > conftest.$ac_ext <<EOF
18901 #line 18902 "configure"
18902 #include "confdefs.h"
18903 #include <math.h>
18904 int main() {
18905 modfl(0, 0);
18906 ; return 0; }
18908 if { (eval echo configure:18909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18909 rm -rf conftest*
18910 glibcxx_cv_func_modfl_use=yes
18911 else
18912 echo "configure: failed program was:" >&5
18913 cat conftest.$ac_ext >&5
18914 rm -rf conftest*
18915 glibcxx_cv_func_modfl_use=no
18917 rm -f conftest*
18918 ac_ext=c
18919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18920 ac_cpp='$CPP $CPPFLAGS'
18921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18923 cross_compiling=$ac_cv_prog_cc_cross
18929 echo "$ac_t""$glibcxx_cv_func_modfl_use" 1>&6
18931 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
18932 for ac_func in modfl
18934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18935 echo "configure:18936: checking for $ac_func" >&5
18936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18937 echo $ac_n "(cached) $ac_c" 1>&6
18938 else
18939 cat > conftest.$ac_ext <<EOF
18940 #line 18941 "configure"
18941 #include "confdefs.h"
18942 /* System header to define __stub macros and hopefully few prototypes,
18943 which can conflict with char $ac_func(); below. */
18944 #include <assert.h>
18945 /* Override any gcc2 internal prototype to avoid an error. */
18946 /* We use char because int might match the return type of a gcc2
18947 builtin and then its argument prototype would still apply. */
18948 char $ac_func();
18950 int main() {
18952 /* The GNU C library defines this for functions which it implements
18953 to always fail with ENOSYS. Some functions are actually named
18954 something starting with __ and the normal name is an alias. */
18955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18956 choke me
18957 #else
18958 $ac_func();
18959 #endif
18961 ; return 0; }
18963 if { (eval echo configure:18964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18964 rm -rf conftest*
18965 eval "ac_cv_func_$ac_func=yes"
18966 else
18967 echo "configure: failed program was:" >&5
18968 cat conftest.$ac_ext >&5
18969 rm -rf conftest*
18970 eval "ac_cv_func_$ac_func=no"
18972 rm -f conftest*
18975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18976 echo "$ac_t""yes" 1>&6
18977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18978 cat >> confdefs.h <<EOF
18979 #define $ac_tr_func 1
18982 else
18983 echo "$ac_t""no" 1>&6
18985 done
18987 else
18989 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18990 echo "configure:18991: checking for _modfl declaration" >&5
18991 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
18992 if eval "test \"`echo '$''{'glibcxx_cv_func__modfl_use'+set}'`\" = set"; then
18993 echo $ac_n "(cached) $ac_c" 1>&6
18994 else
18997 ac_ext=C
18998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18999 ac_cpp='$CXXCPP $CPPFLAGS'
19000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19002 cross_compiling=$ac_cv_prog_cxx_cross
19004 cat > conftest.$ac_ext <<EOF
19005 #line 19006 "configure"
19006 #include "confdefs.h"
19007 #include <math.h>
19008 int main() {
19009 _modfl(0, 0);
19010 ; return 0; }
19012 if { (eval echo configure:19013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19013 rm -rf conftest*
19014 glibcxx_cv_func__modfl_use=yes
19015 else
19016 echo "configure: failed program was:" >&5
19017 cat conftest.$ac_ext >&5
19018 rm -rf conftest*
19019 glibcxx_cv_func__modfl_use=no
19021 rm -f conftest*
19022 ac_ext=c
19023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19027 cross_compiling=$ac_cv_prog_cc_cross
19033 echo "$ac_t""$glibcxx_cv_func__modfl_use" 1>&6
19035 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
19036 for ac_func in _modfl
19038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19039 echo "configure:19040: checking for $ac_func" >&5
19040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19041 echo $ac_n "(cached) $ac_c" 1>&6
19042 else
19043 cat > conftest.$ac_ext <<EOF
19044 #line 19045 "configure"
19045 #include "confdefs.h"
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func(); below. */
19048 #include <assert.h>
19049 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char $ac_func();
19054 int main() {
19056 /* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19060 choke me
19061 #else
19062 $ac_func();
19063 #endif
19065 ; return 0; }
19067 if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19068 rm -rf conftest*
19069 eval "ac_cv_func_$ac_func=yes"
19070 else
19071 echo "configure: failed program was:" >&5
19072 cat conftest.$ac_ext >&5
19073 rm -rf conftest*
19074 eval "ac_cv_func_$ac_func=no"
19076 rm -f conftest*
19079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19080 echo "$ac_t""yes" 1>&6
19081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19082 cat >> confdefs.h <<EOF
19083 #define $ac_tr_func 1
19086 else
19087 echo "$ac_t""no" 1>&6
19089 done
19096 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19097 echo "configure:19098: checking for powl declaration" >&5
19098 if test x${glibcxx_cv_func_powl_use+set} != xset; then
19099 if eval "test \"`echo '$''{'glibcxx_cv_func_powl_use'+set}'`\" = set"; then
19100 echo $ac_n "(cached) $ac_c" 1>&6
19101 else
19104 ac_ext=C
19105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19106 ac_cpp='$CXXCPP $CPPFLAGS'
19107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19109 cross_compiling=$ac_cv_prog_cxx_cross
19111 cat > conftest.$ac_ext <<EOF
19112 #line 19113 "configure"
19113 #include "confdefs.h"
19114 #include <math.h>
19115 int main() {
19116 powl(0, 0);
19117 ; return 0; }
19119 if { (eval echo configure:19120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19120 rm -rf conftest*
19121 glibcxx_cv_func_powl_use=yes
19122 else
19123 echo "configure: failed program was:" >&5
19124 cat conftest.$ac_ext >&5
19125 rm -rf conftest*
19126 glibcxx_cv_func_powl_use=no
19128 rm -f conftest*
19129 ac_ext=c
19130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19134 cross_compiling=$ac_cv_prog_cc_cross
19140 echo "$ac_t""$glibcxx_cv_func_powl_use" 1>&6
19142 if test x$glibcxx_cv_func_powl_use = x"yes"; then
19143 for ac_func in powl
19145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19146 echo "configure:19147: checking for $ac_func" >&5
19147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19148 echo $ac_n "(cached) $ac_c" 1>&6
19149 else
19150 cat > conftest.$ac_ext <<EOF
19151 #line 19152 "configure"
19152 #include "confdefs.h"
19153 /* System header to define __stub macros and hopefully few prototypes,
19154 which can conflict with char $ac_func(); below. */
19155 #include <assert.h>
19156 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19159 char $ac_func();
19161 int main() {
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19167 choke me
19168 #else
19169 $ac_func();
19170 #endif
19172 ; return 0; }
19174 if { (eval echo configure:19175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19175 rm -rf conftest*
19176 eval "ac_cv_func_$ac_func=yes"
19177 else
19178 echo "configure: failed program was:" >&5
19179 cat conftest.$ac_ext >&5
19180 rm -rf conftest*
19181 eval "ac_cv_func_$ac_func=no"
19183 rm -f conftest*
19186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19187 echo "$ac_t""yes" 1>&6
19188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19189 cat >> confdefs.h <<EOF
19190 #define $ac_tr_func 1
19193 else
19194 echo "$ac_t""no" 1>&6
19196 done
19198 else
19200 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19201 echo "configure:19202: checking for _powl declaration" >&5
19202 if test x${glibcxx_cv_func__powl_use+set} != xset; then
19203 if eval "test \"`echo '$''{'glibcxx_cv_func__powl_use'+set}'`\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19205 else
19208 ac_ext=C
19209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19210 ac_cpp='$CXXCPP $CPPFLAGS'
19211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19213 cross_compiling=$ac_cv_prog_cxx_cross
19215 cat > conftest.$ac_ext <<EOF
19216 #line 19217 "configure"
19217 #include "confdefs.h"
19218 #include <math.h>
19219 int main() {
19220 _powl(0, 0);
19221 ; return 0; }
19223 if { (eval echo configure:19224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19224 rm -rf conftest*
19225 glibcxx_cv_func__powl_use=yes
19226 else
19227 echo "configure: failed program was:" >&5
19228 cat conftest.$ac_ext >&5
19229 rm -rf conftest*
19230 glibcxx_cv_func__powl_use=no
19232 rm -f conftest*
19233 ac_ext=c
19234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19235 ac_cpp='$CPP $CPPFLAGS'
19236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19238 cross_compiling=$ac_cv_prog_cc_cross
19244 echo "$ac_t""$glibcxx_cv_func__powl_use" 1>&6
19246 if test x$glibcxx_cv_func__powl_use = x"yes"; then
19247 for ac_func in _powl
19249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19250 echo "configure:19251: checking for $ac_func" >&5
19251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19252 echo $ac_n "(cached) $ac_c" 1>&6
19253 else
19254 cat > conftest.$ac_ext <<EOF
19255 #line 19256 "configure"
19256 #include "confdefs.h"
19257 /* System header to define __stub macros and hopefully few prototypes,
19258 which can conflict with char $ac_func(); below. */
19259 #include <assert.h>
19260 /* Override any gcc2 internal prototype to avoid an error. */
19261 /* We use char because int might match the return type of a gcc2
19262 builtin and then its argument prototype would still apply. */
19263 char $ac_func();
19265 int main() {
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19271 choke me
19272 #else
19273 $ac_func();
19274 #endif
19276 ; return 0; }
19278 if { (eval echo configure:19279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19279 rm -rf conftest*
19280 eval "ac_cv_func_$ac_func=yes"
19281 else
19282 echo "configure: failed program was:" >&5
19283 cat conftest.$ac_ext >&5
19284 rm -rf conftest*
19285 eval "ac_cv_func_$ac_func=no"
19287 rm -f conftest*
19290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19291 echo "$ac_t""yes" 1>&6
19292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19293 cat >> confdefs.h <<EOF
19294 #define $ac_tr_func 1
19297 else
19298 echo "$ac_t""no" 1>&6
19300 done
19307 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19308 echo "configure:19309: checking for sqrtl declaration" >&5
19309 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
19310 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtl_use'+set}'`\" = set"; then
19311 echo $ac_n "(cached) $ac_c" 1>&6
19312 else
19315 ac_ext=C
19316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19317 ac_cpp='$CXXCPP $CPPFLAGS'
19318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19320 cross_compiling=$ac_cv_prog_cxx_cross
19322 cat > conftest.$ac_ext <<EOF
19323 #line 19324 "configure"
19324 #include "confdefs.h"
19325 #include <math.h>
19326 #ifdef HAVE_IEEEFP_H
19327 #include <ieeefp.h>
19328 #endif
19330 int main() {
19331 sqrtl(0);
19332 ; return 0; }
19334 if { (eval echo configure:19335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19335 rm -rf conftest*
19336 glibcxx_cv_func_sqrtl_use=yes
19337 else
19338 echo "configure: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 rm -rf conftest*
19341 glibcxx_cv_func_sqrtl_use=no
19343 rm -f conftest*
19344 ac_ext=c
19345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19346 ac_cpp='$CPP $CPPFLAGS'
19347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19349 cross_compiling=$ac_cv_prog_cc_cross
19355 echo "$ac_t""$glibcxx_cv_func_sqrtl_use" 1>&6
19357 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
19358 for ac_func in sqrtl
19360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19361 echo "configure:19362: checking for $ac_func" >&5
19362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19363 echo $ac_n "(cached) $ac_c" 1>&6
19364 else
19365 cat > conftest.$ac_ext <<EOF
19366 #line 19367 "configure"
19367 #include "confdefs.h"
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func(); below. */
19370 #include <assert.h>
19371 /* Override any gcc2 internal prototype to avoid an error. */
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19374 char $ac_func();
19376 int main() {
19378 /* The GNU C library defines this for functions which it implements
19379 to always fail with ENOSYS. Some functions are actually named
19380 something starting with __ and the normal name is an alias. */
19381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19382 choke me
19383 #else
19384 $ac_func();
19385 #endif
19387 ; return 0; }
19389 if { (eval echo configure:19390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19390 rm -rf conftest*
19391 eval "ac_cv_func_$ac_func=yes"
19392 else
19393 echo "configure: failed program was:" >&5
19394 cat conftest.$ac_ext >&5
19395 rm -rf conftest*
19396 eval "ac_cv_func_$ac_func=no"
19398 rm -f conftest*
19401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19402 echo "$ac_t""yes" 1>&6
19403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19404 cat >> confdefs.h <<EOF
19405 #define $ac_tr_func 1
19408 else
19409 echo "$ac_t""no" 1>&6
19411 done
19413 else
19415 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19416 echo "configure:19417: checking for _sqrtl declaration" >&5
19417 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
19418 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtl_use'+set}'`\" = set"; then
19419 echo $ac_n "(cached) $ac_c" 1>&6
19420 else
19423 ac_ext=C
19424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19428 cross_compiling=$ac_cv_prog_cxx_cross
19430 cat > conftest.$ac_ext <<EOF
19431 #line 19432 "configure"
19432 #include "confdefs.h"
19433 #include <math.h>
19434 #ifdef HAVE_IEEEFP_H
19435 #include <ieeefp.h>
19436 #endif
19438 int main() {
19439 _sqrtl(0);
19440 ; return 0; }
19442 if { (eval echo configure:19443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19443 rm -rf conftest*
19444 glibcxx_cv_func__sqrtl_use=yes
19445 else
19446 echo "configure: failed program was:" >&5
19447 cat conftest.$ac_ext >&5
19448 rm -rf conftest*
19449 glibcxx_cv_func__sqrtl_use=no
19451 rm -f conftest*
19452 ac_ext=c
19453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19457 cross_compiling=$ac_cv_prog_cc_cross
19463 echo "$ac_t""$glibcxx_cv_func__sqrtl_use" 1>&6
19465 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
19466 for ac_func in _sqrtl
19468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19469 echo "configure:19470: checking for $ac_func" >&5
19470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19471 echo $ac_n "(cached) $ac_c" 1>&6
19472 else
19473 cat > conftest.$ac_ext <<EOF
19474 #line 19475 "configure"
19475 #include "confdefs.h"
19476 /* System header to define __stub macros and hopefully few prototypes,
19477 which can conflict with char $ac_func(); below. */
19478 #include <assert.h>
19479 /* Override any gcc2 internal prototype to avoid an error. */
19480 /* We use char because int might match the return type of a gcc2
19481 builtin and then its argument prototype would still apply. */
19482 char $ac_func();
19484 int main() {
19486 /* The GNU C library defines this for functions which it implements
19487 to always fail with ENOSYS. Some functions are actually named
19488 something starting with __ and the normal name is an alias. */
19489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19490 choke me
19491 #else
19492 $ac_func();
19493 #endif
19495 ; return 0; }
19497 if { (eval echo configure:19498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19498 rm -rf conftest*
19499 eval "ac_cv_func_$ac_func=yes"
19500 else
19501 echo "configure: failed program was:" >&5
19502 cat conftest.$ac_ext >&5
19503 rm -rf conftest*
19504 eval "ac_cv_func_$ac_func=no"
19506 rm -f conftest*
19509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19510 echo "$ac_t""yes" 1>&6
19511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19512 cat >> confdefs.h <<EOF
19513 #define $ac_tr_func 1
19516 else
19517 echo "$ac_t""no" 1>&6
19519 done
19526 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19527 echo "configure:19528: checking for sincosl declaration" >&5
19528 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
19529 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosl_use'+set}'`\" = set"; then
19530 echo $ac_n "(cached) $ac_c" 1>&6
19531 else
19534 ac_ext=C
19535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19536 ac_cpp='$CXXCPP $CPPFLAGS'
19537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19539 cross_compiling=$ac_cv_prog_cxx_cross
19541 cat > conftest.$ac_ext <<EOF
19542 #line 19543 "configure"
19543 #include "confdefs.h"
19544 #include <math.h>
19545 int main() {
19546 sincosl(0, 0, 0);
19547 ; return 0; }
19549 if { (eval echo configure:19550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19550 rm -rf conftest*
19551 glibcxx_cv_func_sincosl_use=yes
19552 else
19553 echo "configure: failed program was:" >&5
19554 cat conftest.$ac_ext >&5
19555 rm -rf conftest*
19556 glibcxx_cv_func_sincosl_use=no
19558 rm -f conftest*
19559 ac_ext=c
19560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19561 ac_cpp='$CPP $CPPFLAGS'
19562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19564 cross_compiling=$ac_cv_prog_cc_cross
19570 echo "$ac_t""$glibcxx_cv_func_sincosl_use" 1>&6
19572 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
19573 for ac_func in sincosl
19575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19576 echo "configure:19577: checking for $ac_func" >&5
19577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19578 echo $ac_n "(cached) $ac_c" 1>&6
19579 else
19580 cat > conftest.$ac_ext <<EOF
19581 #line 19582 "configure"
19582 #include "confdefs.h"
19583 /* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char $ac_func(); below. */
19585 #include <assert.h>
19586 /* Override any gcc2 internal prototype to avoid an error. */
19587 /* We use char because int might match the return type of a gcc2
19588 builtin and then its argument prototype would still apply. */
19589 char $ac_func();
19591 int main() {
19593 /* The GNU C library defines this for functions which it implements
19594 to always fail with ENOSYS. Some functions are actually named
19595 something starting with __ and the normal name is an alias. */
19596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19597 choke me
19598 #else
19599 $ac_func();
19600 #endif
19602 ; return 0; }
19604 if { (eval echo configure:19605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19605 rm -rf conftest*
19606 eval "ac_cv_func_$ac_func=yes"
19607 else
19608 echo "configure: failed program was:" >&5
19609 cat conftest.$ac_ext >&5
19610 rm -rf conftest*
19611 eval "ac_cv_func_$ac_func=no"
19613 rm -f conftest*
19616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19617 echo "$ac_t""yes" 1>&6
19618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19619 cat >> confdefs.h <<EOF
19620 #define $ac_tr_func 1
19623 else
19624 echo "$ac_t""no" 1>&6
19626 done
19628 else
19630 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19631 echo "configure:19632: checking for _sincosl declaration" >&5
19632 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
19633 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosl_use'+set}'`\" = set"; then
19634 echo $ac_n "(cached) $ac_c" 1>&6
19635 else
19638 ac_ext=C
19639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19643 cross_compiling=$ac_cv_prog_cxx_cross
19645 cat > conftest.$ac_ext <<EOF
19646 #line 19647 "configure"
19647 #include "confdefs.h"
19648 #include <math.h>
19649 int main() {
19650 _sincosl(0, 0, 0);
19651 ; return 0; }
19653 if { (eval echo configure:19654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19654 rm -rf conftest*
19655 glibcxx_cv_func__sincosl_use=yes
19656 else
19657 echo "configure: failed program was:" >&5
19658 cat conftest.$ac_ext >&5
19659 rm -rf conftest*
19660 glibcxx_cv_func__sincosl_use=no
19662 rm -f conftest*
19663 ac_ext=c
19664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19668 cross_compiling=$ac_cv_prog_cc_cross
19674 echo "$ac_t""$glibcxx_cv_func__sincosl_use" 1>&6
19676 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
19677 for ac_func in _sincosl
19679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19680 echo "configure:19681: checking for $ac_func" >&5
19681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19682 echo $ac_n "(cached) $ac_c" 1>&6
19683 else
19684 cat > conftest.$ac_ext <<EOF
19685 #line 19686 "configure"
19686 #include "confdefs.h"
19687 /* System header to define __stub macros and hopefully few prototypes,
19688 which can conflict with char $ac_func(); below. */
19689 #include <assert.h>
19690 /* Override any gcc2 internal prototype to avoid an error. */
19691 /* We use char because int might match the return type of a gcc2
19692 builtin and then its argument prototype would still apply. */
19693 char $ac_func();
19695 int main() {
19697 /* The GNU C library defines this for functions which it implements
19698 to always fail with ENOSYS. Some functions are actually named
19699 something starting with __ and the normal name is an alias. */
19700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19701 choke me
19702 #else
19703 $ac_func();
19704 #endif
19706 ; return 0; }
19708 if { (eval echo configure:19709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19709 rm -rf conftest*
19710 eval "ac_cv_func_$ac_func=yes"
19711 else
19712 echo "configure: failed program was:" >&5
19713 cat conftest.$ac_ext >&5
19714 rm -rf conftest*
19715 eval "ac_cv_func_$ac_func=no"
19717 rm -f conftest*
19720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19721 echo "$ac_t""yes" 1>&6
19722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19723 cat >> confdefs.h <<EOF
19724 #define $ac_tr_func 1
19727 else
19728 echo "$ac_t""no" 1>&6
19730 done
19737 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19738 echo "configure:19739: checking for finitel declaration" >&5
19739 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
19740 if eval "test \"`echo '$''{'glibcxx_cv_func_finitel_use'+set}'`\" = set"; then
19741 echo $ac_n "(cached) $ac_c" 1>&6
19742 else
19745 ac_ext=C
19746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19747 ac_cpp='$CXXCPP $CPPFLAGS'
19748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19750 cross_compiling=$ac_cv_prog_cxx_cross
19752 cat > conftest.$ac_ext <<EOF
19753 #line 19754 "configure"
19754 #include "confdefs.h"
19755 #include <math.h>
19756 #ifdef HAVE_IEEEFP_H
19757 #include <ieeefp.h>
19758 #endif
19760 int main() {
19761 finitel(0);
19762 ; return 0; }
19764 if { (eval echo configure:19765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19765 rm -rf conftest*
19766 glibcxx_cv_func_finitel_use=yes
19767 else
19768 echo "configure: failed program was:" >&5
19769 cat conftest.$ac_ext >&5
19770 rm -rf conftest*
19771 glibcxx_cv_func_finitel_use=no
19773 rm -f conftest*
19774 ac_ext=c
19775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19779 cross_compiling=$ac_cv_prog_cc_cross
19785 echo "$ac_t""$glibcxx_cv_func_finitel_use" 1>&6
19787 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
19788 for ac_func in finitel
19790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19791 echo "configure:19792: checking for $ac_func" >&5
19792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19793 echo $ac_n "(cached) $ac_c" 1>&6
19794 else
19795 cat > conftest.$ac_ext <<EOF
19796 #line 19797 "configure"
19797 #include "confdefs.h"
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func(); below. */
19800 #include <assert.h>
19801 /* Override any gcc2 internal prototype to avoid an error. */
19802 /* We use char because int might match the return type of a gcc2
19803 builtin and then its argument prototype would still apply. */
19804 char $ac_func();
19806 int main() {
19808 /* The GNU C library defines this for functions which it implements
19809 to always fail with ENOSYS. Some functions are actually named
19810 something starting with __ and the normal name is an alias. */
19811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19812 choke me
19813 #else
19814 $ac_func();
19815 #endif
19817 ; return 0; }
19819 if { (eval echo configure:19820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19820 rm -rf conftest*
19821 eval "ac_cv_func_$ac_func=yes"
19822 else
19823 echo "configure: failed program was:" >&5
19824 cat conftest.$ac_ext >&5
19825 rm -rf conftest*
19826 eval "ac_cv_func_$ac_func=no"
19828 rm -f conftest*
19831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19832 echo "$ac_t""yes" 1>&6
19833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19834 cat >> confdefs.h <<EOF
19835 #define $ac_tr_func 1
19838 else
19839 echo "$ac_t""no" 1>&6
19841 done
19843 else
19845 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19846 echo "configure:19847: checking for _finitel declaration" >&5
19847 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
19848 if eval "test \"`echo '$''{'glibcxx_cv_func__finitel_use'+set}'`\" = set"; then
19849 echo $ac_n "(cached) $ac_c" 1>&6
19850 else
19853 ac_ext=C
19854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19858 cross_compiling=$ac_cv_prog_cxx_cross
19860 cat > conftest.$ac_ext <<EOF
19861 #line 19862 "configure"
19862 #include "confdefs.h"
19863 #include <math.h>
19864 #ifdef HAVE_IEEEFP_H
19865 #include <ieeefp.h>
19866 #endif
19868 int main() {
19869 _finitel(0);
19870 ; return 0; }
19872 if { (eval echo configure:19873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19873 rm -rf conftest*
19874 glibcxx_cv_func__finitel_use=yes
19875 else
19876 echo "configure: failed program was:" >&5
19877 cat conftest.$ac_ext >&5
19878 rm -rf conftest*
19879 glibcxx_cv_func__finitel_use=no
19881 rm -f conftest*
19882 ac_ext=c
19883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19884 ac_cpp='$CPP $CPPFLAGS'
19885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19887 cross_compiling=$ac_cv_prog_cc_cross
19893 echo "$ac_t""$glibcxx_cv_func__finitel_use" 1>&6
19895 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
19896 for ac_func in _finitel
19898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19899 echo "configure:19900: checking for $ac_func" >&5
19900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19901 echo $ac_n "(cached) $ac_c" 1>&6
19902 else
19903 cat > conftest.$ac_ext <<EOF
19904 #line 19905 "configure"
19905 #include "confdefs.h"
19906 /* System header to define __stub macros and hopefully few prototypes,
19907 which can conflict with char $ac_func(); below. */
19908 #include <assert.h>
19909 /* Override any gcc2 internal prototype to avoid an error. */
19910 /* We use char because int might match the return type of a gcc2
19911 builtin and then its argument prototype would still apply. */
19912 char $ac_func();
19914 int main() {
19916 /* The GNU C library defines this for functions which it implements
19917 to always fail with ENOSYS. Some functions are actually named
19918 something starting with __ and the normal name is an alias. */
19919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19920 choke me
19921 #else
19922 $ac_func();
19923 #endif
19925 ; return 0; }
19927 if { (eval echo configure:19928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19928 rm -rf conftest*
19929 eval "ac_cv_func_$ac_func=yes"
19930 else
19931 echo "configure: failed program was:" >&5
19932 cat conftest.$ac_ext >&5
19933 rm -rf conftest*
19934 eval "ac_cv_func_$ac_func=no"
19936 rm -f conftest*
19939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19940 echo "$ac_t""yes" 1>&6
19941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19942 cat >> confdefs.h <<EOF
19943 #define $ac_tr_func 1
19946 else
19947 echo "$ac_t""no" 1>&6
19949 done
19957 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19958 echo "configure:19959: checking for _float trig functions" >&5
19959 if eval "test \"`echo '$''{'glibcxx_cv_func__float_trig_use'+set}'`\" = set"; then
19960 echo $ac_n "(cached) $ac_c" 1>&6
19961 else
19964 ac_ext=C
19965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19966 ac_cpp='$CXXCPP $CPPFLAGS'
19967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19969 cross_compiling=$ac_cv_prog_cxx_cross
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19974 #include <math.h>
19975 int main() {
19976 `for x in _acosf _asinf _atanf \
19977 _cosf _sinf _tanf \
19978 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19979 ; return 0; }
19981 if { (eval echo configure:19982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19982 rm -rf conftest*
19983 glibcxx_cv_func__float_trig_use=yes
19984 else
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19987 rm -rf conftest*
19988 glibcxx_cv_func__float_trig_use=no
19990 rm -f conftest*
19991 ac_ext=c
19992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19996 cross_compiling=$ac_cv_prog_cc_cross
20000 echo "$ac_t""$glibcxx_cv_func__float_trig_use" 1>&6
20001 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
20002 for ac_func in _acosf _asinf _atanf \
20003 _cosf _sinf _tanf \
20004 _coshf _sinhf _tanhf
20006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20007 echo "configure:20008: checking for $ac_func" >&5
20008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20010 else
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 /* System header to define __stub macros and hopefully few prototypes,
20015 which can conflict with char $ac_func(); below. */
20016 #include <assert.h>
20017 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20020 char $ac_func();
20022 int main() {
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028 choke me
20029 #else
20030 $ac_func();
20031 #endif
20033 ; return 0; }
20035 if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 rm -rf conftest*
20037 eval "ac_cv_func_$ac_func=yes"
20038 else
20039 echo "configure: failed program was:" >&5
20040 cat conftest.$ac_ext >&5
20041 rm -rf conftest*
20042 eval "ac_cv_func_$ac_func=no"
20044 rm -f conftest*
20047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050 cat >> confdefs.h <<EOF
20051 #define $ac_tr_func 1
20054 else
20055 echo "$ac_t""no" 1>&6
20057 done
20062 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20063 echo "configure:20064: checking for _float round functions" >&5
20064 if eval "test \"`echo '$''{'glibcxx_cv_func__float_round_use'+set}'`\" = set"; then
20065 echo $ac_n "(cached) $ac_c" 1>&6
20066 else
20069 ac_ext=C
20070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20074 cross_compiling=$ac_cv_prog_cxx_cross
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <math.h>
20080 int main() {
20081 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20082 ; return 0; }
20084 if { (eval echo configure:20085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20085 rm -rf conftest*
20086 glibcxx_cv_func__float_round_use=yes
20087 else
20088 echo "configure: failed program was:" >&5
20089 cat conftest.$ac_ext >&5
20090 rm -rf conftest*
20091 glibcxx_cv_func__float_round_use=no
20093 rm -f conftest*
20094 ac_ext=c
20095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20099 cross_compiling=$ac_cv_prog_cc_cross
20103 echo "$ac_t""$glibcxx_cv_func__float_round_use" 1>&6
20104 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
20105 for ac_func in _ceilf _floorf
20107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20108 echo "configure:20109: checking for $ac_func" >&5
20109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20111 else
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func(); below. */
20117 #include <assert.h>
20118 /* Override any gcc2 internal prototype to avoid an error. */
20119 /* We use char because int might match the return type of a gcc2
20120 builtin and then its argument prototype would still apply. */
20121 char $ac_func();
20123 int main() {
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129 choke me
20130 #else
20131 $ac_func();
20132 #endif
20134 ; return 0; }
20136 if { (eval echo configure:20137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20137 rm -rf conftest*
20138 eval "ac_cv_func_$ac_func=yes"
20139 else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 eval "ac_cv_func_$ac_func=no"
20145 rm -f conftest*
20148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20149 echo "$ac_t""yes" 1>&6
20150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20151 cat >> confdefs.h <<EOF
20152 #define $ac_tr_func 1
20155 else
20156 echo "$ac_t""no" 1>&6
20158 done
20164 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20165 echo "configure:20166: checking for _long double trig functions" >&5
20166 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_trig_use'+set}'`\" = set"; then
20167 echo $ac_n "(cached) $ac_c" 1>&6
20168 else
20171 ac_ext=C
20172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20176 cross_compiling=$ac_cv_prog_cxx_cross
20178 cat > conftest.$ac_ext <<EOF
20179 #line 20180 "configure"
20180 #include "confdefs.h"
20181 #include <math.h>
20182 int main() {
20183 `for x in _acosl _asinl _atanl \
20184 _cosl _sinl _tanl \
20185 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20186 ; return 0; }
20188 if { (eval echo configure:20189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20189 rm -rf conftest*
20190 glibcxx_cv_func__long_double_trig_use=yes
20191 else
20192 echo "configure: failed program was:" >&5
20193 cat conftest.$ac_ext >&5
20194 rm -rf conftest*
20195 glibcxx_cv_func__long_double_trig_use=no
20197 rm -f conftest*
20198 ac_ext=c
20199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20200 ac_cpp='$CPP $CPPFLAGS'
20201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20203 cross_compiling=$ac_cv_prog_cc_cross
20207 echo "$ac_t""$glibcxx_cv_func__long_double_trig_use" 1>&6
20208 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
20209 for ac_func in _acosl _asinl _atanl \
20210 _cosl _sinl _tanl \
20211 _coshl _sinhl _tanhl
20213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20214 echo "configure:20215: checking for $ac_func" >&5
20215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20216 echo $ac_n "(cached) $ac_c" 1>&6
20217 else
20218 cat > conftest.$ac_ext <<EOF
20219 #line 20220 "configure"
20220 #include "confdefs.h"
20221 /* System header to define __stub macros and hopefully few prototypes,
20222 which can conflict with char $ac_func(); below. */
20223 #include <assert.h>
20224 /* Override any gcc2 internal prototype to avoid an error. */
20225 /* We use char because int might match the return type of a gcc2
20226 builtin and then its argument prototype would still apply. */
20227 char $ac_func();
20229 int main() {
20231 /* The GNU C library defines this for functions which it implements
20232 to always fail with ENOSYS. Some functions are actually named
20233 something starting with __ and the normal name is an alias. */
20234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20235 choke me
20236 #else
20237 $ac_func();
20238 #endif
20240 ; return 0; }
20242 if { (eval echo configure:20243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20243 rm -rf conftest*
20244 eval "ac_cv_func_$ac_func=yes"
20245 else
20246 echo "configure: failed program was:" >&5
20247 cat conftest.$ac_ext >&5
20248 rm -rf conftest*
20249 eval "ac_cv_func_$ac_func=no"
20251 rm -f conftest*
20254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20255 echo "$ac_t""yes" 1>&6
20256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20257 cat >> confdefs.h <<EOF
20258 #define $ac_tr_func 1
20261 else
20262 echo "$ac_t""no" 1>&6
20264 done
20269 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20270 echo "configure:20271: checking for _long double round functions" >&5
20271 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_round_use'+set}'`\" = set"; then
20272 echo $ac_n "(cached) $ac_c" 1>&6
20273 else
20276 ac_ext=C
20277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20278 ac_cpp='$CXXCPP $CPPFLAGS'
20279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20281 cross_compiling=$ac_cv_prog_cxx_cross
20283 cat > conftest.$ac_ext <<EOF
20284 #line 20285 "configure"
20285 #include "confdefs.h"
20286 #include <math.h>
20287 int main() {
20288 `for x in _ceill _floorl; do echo "$x (0);"; done`
20289 ; return 0; }
20291 if { (eval echo configure:20292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20292 rm -rf conftest*
20293 glibcxx_cv_func__long_double_round_use=yes
20294 else
20295 echo "configure: failed program was:" >&5
20296 cat conftest.$ac_ext >&5
20297 rm -rf conftest*
20298 glibcxx_cv_func__long_double_round_use=no
20300 rm -f conftest*
20301 ac_ext=c
20302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20303 ac_cpp='$CPP $CPPFLAGS'
20304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20306 cross_compiling=$ac_cv_prog_cc_cross
20310 echo "$ac_t""$glibcxx_cv_func__long_double_round_use" 1>&6
20311 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
20312 for ac_func in _ceill _floorl
20314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20315 echo "configure:20316: checking for $ac_func" >&5
20316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20318 else
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 /* System header to define __stub macros and hopefully few prototypes,
20323 which can conflict with char $ac_func(); below. */
20324 #include <assert.h>
20325 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20328 char $ac_func();
20330 int main() {
20332 /* The GNU C library defines this for functions which it implements
20333 to always fail with ENOSYS. Some functions are actually named
20334 something starting with __ and the normal name is an alias. */
20335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20336 choke me
20337 #else
20338 $ac_func();
20339 #endif
20341 ; return 0; }
20343 if { (eval echo configure:20344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20344 rm -rf conftest*
20345 eval "ac_cv_func_$ac_func=yes"
20346 else
20347 echo "configure: failed program was:" >&5
20348 cat conftest.$ac_ext >&5
20349 rm -rf conftest*
20350 eval "ac_cv_func_$ac_func=no"
20352 rm -f conftest*
20355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20356 echo "$ac_t""yes" 1>&6
20357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20358 cat >> confdefs.h <<EOF
20359 #define $ac_tr_func 1
20362 else
20363 echo "$ac_t""no" 1>&6
20365 done
20370 LIBS="$ac_save_LIBS"
20371 CXXFLAGS="$ac_save_CXXFLAGS"
20375 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20376 echo "configure:20377: checking for __builtin_abs declaration" >&5
20377 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
20378 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_use'+set}'`\" = set"; then
20379 echo $ac_n "(cached) $ac_c" 1>&6
20380 else
20383 ac_ext=C
20384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20388 cross_compiling=$ac_cv_prog_cxx_cross
20390 cat > conftest.$ac_ext <<EOF
20391 #line 20392 "configure"
20392 #include "confdefs.h"
20393 #include <math.h>
20394 int main() {
20395 __builtin_abs(0);
20396 ; return 0; }
20398 if { (eval echo configure:20399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20399 rm -rf conftest*
20400 glibcxx_cv_func___builtin_abs_use=yes
20401 else
20402 echo "configure: failed program was:" >&5
20403 cat conftest.$ac_ext >&5
20404 rm -rf conftest*
20405 glibcxx_cv_func___builtin_abs_use=no
20407 rm -f conftest*
20408 ac_ext=c
20409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20410 ac_cpp='$CPP $CPPFLAGS'
20411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20413 cross_compiling=$ac_cv_prog_cc_cross
20419 echo "$ac_t""$glibcxx_cv_func___builtin_abs_use" 1>&6
20420 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
20421 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20422 echo "configure:20423: checking for __builtin_abs linkage" >&5
20423 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
20424 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_link'+set}'`\" = set"; then
20425 echo $ac_n "(cached) $ac_c" 1>&6
20426 else
20428 cat > conftest.$ac_ext <<EOF
20429 #line 20430 "configure"
20430 #include "confdefs.h"
20431 #include <math.h>
20432 int main() {
20433 __builtin_abs(0);
20434 ; return 0; }
20436 if { (eval echo configure:20437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20437 rm -rf conftest*
20438 glibcxx_cv_func___builtin_abs_link=yes
20439 else
20440 echo "configure: failed program was:" >&5
20441 cat conftest.$ac_ext >&5
20442 rm -rf conftest*
20443 glibcxx_cv_func___builtin_abs_link=no
20445 rm -f conftest*
20450 echo "$ac_t""$glibcxx_cv_func___builtin_abs_link" 1>&6
20451 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
20452 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20453 cat >> confdefs.h <<EOF
20454 #define ${ac_tr_func} 1
20461 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20462 echo "configure:20463: checking for __builtin_fabsf declaration" >&5
20463 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
20464 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20465 echo $ac_n "(cached) $ac_c" 1>&6
20466 else
20469 ac_ext=C
20470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20474 cross_compiling=$ac_cv_prog_cxx_cross
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20478 "configure"
20478 #include "confdefs.h"
20479 #include <math.h>
20480 int main() {
20481 __builtin_fabsf(0);
20482 ; return 0; }
20484 if { (eval echo configure:20485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20485 rm -rf conftest*
20486 glibcxx_cv_func___builtin_fabsf_use=yes
20487 else
20488 echo "configure: failed program was:" >&5
20489 cat conftest.$ac_ext >&5
20490 rm -rf conftest*
20491 glibcxx_cv_func___builtin_fabsf_use=no
20493 rm -f conftest*
20494 ac_ext=c
20495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20496 ac_cpp='$CPP $CPPFLAGS'
20497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20499 cross_compiling=$ac_cv_prog_cc_cross
20505 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_use" 1>&6
20506 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
20507 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20508 echo "configure:20509: checking for __builtin_fabsf linkage" >&5
20509 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
20510 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20511 echo $ac_n "(cached) $ac_c" 1>&6
20512 else
20514 cat > conftest.$ac_ext <<EOF
20515 #line 20516 "configure"
20516 #include "confdefs.h"
20517 #include <math.h>
20518 int main() {
20519 __builtin_fabsf(0);
20520 ; return 0; }
20522 if { (eval echo configure:20523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20523 rm -rf conftest*
20524 glibcxx_cv_func___builtin_fabsf_link=yes
20525 else
20526 echo "configure: failed program was:" >&5
20527 cat conftest.$ac_ext >&5
20528 rm -rf conftest*
20529 glibcxx_cv_func___builtin_fabsf_link=no
20531 rm -f conftest*
20536 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_link" 1>&6
20537 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
20538 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20539 cat >> confdefs.h <<EOF
20540 #define ${ac_tr_func} 1
20547 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20548 echo "configure:20549: checking for __builtin_fabs declaration" >&5
20549 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
20550 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20551 echo $ac_n "(cached) $ac_c" 1>&6
20552 else
20555 ac_ext=C
20556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20557 ac_cpp='$CXXCPP $CPPFLAGS'
20558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20560 cross_compiling=$ac_cv_prog_cxx_cross
20562 cat > conftest.$ac_ext <<EOF
20563 #line 20564 "configure"
20564 #include "confdefs.h"
20565 #include <math.h>
20566 int main() {
20567 __builtin_fabs(0);
20568 ; return 0; }
20570 if { (eval echo configure:20571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20571 rm -rf conftest*
20572 glibcxx_cv_func___builtin_fabs_use=yes
20573 else
20574 echo "configure: failed program was:" >&5
20575 cat conftest.$ac_ext >&5
20576 rm -rf conftest*
20577 glibcxx_cv_func___builtin_fabs_use=no
20579 rm -f conftest*
20580 ac_ext=c
20581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20582 ac_cpp='$CPP $CPPFLAGS'
20583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20585 cross_compiling=$ac_cv_prog_cc_cross
20591 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_use" 1>&6
20592 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
20593 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20594 echo "configure:20595: checking for __builtin_fabs linkage" >&5
20595 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
20596 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20597 echo $ac_n "(cached) $ac_c" 1>&6
20598 else
20600 cat > conftest.$ac_ext <<EOF
20601 #line 20602 "configure"
20602 #include "confdefs.h"
20603 #include <math.h>
20604 int main() {
20605 __builtin_fabs(0);
20606 ; return 0; }
20608 if { (eval echo configure:20609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20609 rm -rf conftest*
20610 glibcxx_cv_func___builtin_fabs_link=yes
20611 else
20612 echo "configure: failed program was:" >&5
20613 cat conftest.$ac_ext >&5
20614 rm -rf conftest*
20615 glibcxx_cv_func___builtin_fabs_link=no
20617 rm -f conftest*
20622 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_link" 1>&6
20623 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
20624 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20625 cat >> confdefs.h <<EOF
20626 #define ${ac_tr_func} 1
20633 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20634 echo "configure:20635: checking for __builtin_fabsl declaration" >&5
20635 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
20636 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20637 echo $ac_n "(cached) $ac_c" 1>&6
20638 else
20641 ac_ext=C
20642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20643 ac_cpp='$CXXCPP $CPPFLAGS'
20644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20646 cross_compiling=$ac_cv_prog_cxx_cross
20648 cat > conftest.$ac_ext <<EOF
20649 #line 20650 "configure"
20650 #include "confdefs.h"
20651 #include <math.h>
20652 int main() {
20653 __builtin_fabsl(0);
20654 ; return 0; }
20656 if { (eval echo configure:20657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20657 rm -rf conftest*
20658 glibcxx_cv_func___builtin_fabsl_use=yes
20659 else
20660 echo "configure: failed program was:" >&5
20661 cat conftest.$ac_ext >&5
20662 rm -rf conftest*
20663 glibcxx_cv_func___builtin_fabsl_use=no
20665 rm -f conftest*
20666 ac_ext=c
20667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20668 ac_cpp='$CPP $CPPFLAGS'
20669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20671 cross_compiling=$ac_cv_prog_cc_cross
20677 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_use" 1>&6
20678 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
20679 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20680 echo "configure:20681: checking for __builtin_fabsl linkage" >&5
20681 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
20682 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20683 echo $ac_n "(cached) $ac_c" 1>&6
20684 else
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20688 "configure"
20688 #include "confdefs.h"
20689 #include <math.h>
20690 int main() {
20691 __builtin_fabsl(0);
20692 ; return 0; }
20694 if { (eval echo configure:20695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20695 rm -rf conftest*
20696 glibcxx_cv_func___builtin_fabsl_link=yes
20697 else
20698 echo "configure: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20700 rm -rf conftest*
20701 glibcxx_cv_func___builtin_fabsl_link=no
20703 rm -f conftest*
20708 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_link" 1>&6
20709 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
20710 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20711 cat >> confdefs.h <<EOF
20712 #define ${ac_tr_func} 1
20719 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20720 echo "configure:20721: checking for __builtin_labs declaration" >&5
20721 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
20722 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_use'+set}'`\" = set"; then
20723 echo $ac_n "(cached) $ac_c" 1>&6
20724 else
20727 ac_ext=C
20728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20729 ac_cpp='$CXXCPP $CPPFLAGS'
20730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20732 cross_compiling=$ac_cv_prog_cxx_cross
20734 cat > conftest.$ac_ext <<EOF
20735 #line 20736 "configure"
20736 #include "confdefs.h"
20737 #include <math.h>
20738 int main() {
20739 __builtin_labs(0);
20740 ; return 0; }
20742 if { (eval echo configure:20743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20743 rm -rf conftest*
20744 glibcxx_cv_func___builtin_labs_use=yes
20745 else
20746 echo "configure: failed program was:" >&5
20747 cat conftest.$ac_ext >&5
20748 rm -rf conftest*
20749 glibcxx_cv_func___builtin_labs_use=no
20751 rm -f conftest*
20752 ac_ext=c
20753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20754 ac_cpp='$CPP $CPPFLAGS'
20755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20757 cross_compiling=$ac_cv_prog_cc_cross
20763 echo "$ac_t""$glibcxx_cv_func___builtin_labs_use" 1>&6
20764 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
20765 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20766 echo "configure:20767: checking for __builtin_labs linkage" >&5
20767 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
20768 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_link'+set}'`\" = set"; then
20769 echo $ac_n "(cached) $ac_c" 1>&6
20770 else
20772 cat > conftest.$ac_ext <<EOF
20773 #line 20774 "configure"
20774 #include "confdefs.h"
20775 #include <math.h>
20776 int main() {
20777 __builtin_labs(0);
20778 ; return 0; }
20780 if { (eval echo configure:20781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20781 rm -rf conftest*
20782 glibcxx_cv_func___builtin_labs_link=yes
20783 else
20784 echo "configure: failed program was:" >&5
20785 cat conftest.$ac_ext >&5
20786 rm -rf conftest*
20787 glibcxx_cv_func___builtin_labs_link=no
20789 rm -f conftest*
20794 echo "$ac_t""$glibcxx_cv_func___builtin_labs_link" 1>&6
20795 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
20796 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20797 cat >> confdefs.h <<EOF
20798 #define ${ac_tr_func} 1
20806 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20807 echo "configure:20808: checking for __builtin_sqrtf declaration" >&5
20808 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
20809 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20810 echo $ac_n "(cached) $ac_c" 1>&6
20811 else
20814 ac_ext=C
20815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20816 ac_cpp='$CXXCPP $CPPFLAGS'
20817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20819 cross_compiling=$ac_cv_prog_cxx_cross
20821 cat > conftest.$ac_ext <<EOF
20822 #line 20823 "configure"
20823 #include "confdefs.h"
20824 #include <math.h>
20825 int main() {
20826 __builtin_sqrtf(0);
20827 ; return 0; }
20829 if { (eval echo configure:20830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20830 rm -rf conftest*
20831 glibcxx_cv_func___builtin_sqrtf_use=yes
20832 else
20833 echo "configure: failed program was:" >&5
20834 cat conftest.$ac_ext >&5
20835 rm -rf conftest*
20836 glibcxx_cv_func___builtin_sqrtf_use=no
20838 rm -f conftest*
20839 ac_ext=c
20840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20844 cross_compiling=$ac_cv_prog_cc_cross
20850 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_use" 1>&6
20851 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
20852 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20853 echo "configure:20854: checking for __builtin_sqrtf linkage" >&5
20854 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
20855 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20856 echo $ac_n "(cached) $ac_c" 1>&6
20857 else
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20862 #include <math.h>
20863 int main() {
20864 __builtin_sqrtf(0);
20865 ; return 0; }
20867 if { (eval echo configure:20868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20868 rm -rf conftest*
20869 glibcxx_cv_func___builtin_sqrtf_link=yes
20870 else
20871 echo "configure: failed program was:" >&5
20872 cat conftest.$ac_ext >&5
20873 rm -rf conftest*
20874 glibcxx_cv_func___builtin_sqrtf_link=no
20876 rm -f conftest*
20881 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_link" 1>&6
20882 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
20883 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20884 cat >> confdefs.h <<EOF
20885 #define ${ac_tr_func} 1
20892 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20893 echo "configure:20894: checking for __builtin_sqrt declaration" >&5
20894 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
20895 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20896 echo $ac_n "(cached) $ac_c" 1>&6
20897 else
20900 ac_ext=C
20901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20902 ac_cpp='$CXXCPP $CPPFLAGS'
20903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20905 cross_compiling=$ac_cv_prog_cxx_cross
20907 cat > conftest.$ac_ext <<EOF
20908 #line 20909 "configure"
20909 #include "confdefs.h"
20910 #include <math.h>
20911 int main() {
20912 __builtin_sqrt(0);
20913 ; return 0; }
20915 if { (eval echo configure:20916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20916 rm -rf conftest*
20917 glibcxx_cv_func___builtin_sqrt_use=yes
20918 else
20919 echo "configure: failed program was:" >&5
20920 cat conftest.$ac_ext >&5
20921 rm -rf conftest*
20922 glibcxx_cv_func___builtin_sqrt_use=no
20924 rm -f conftest*
20925 ac_ext=c
20926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20927 ac_cpp='$CPP $CPPFLAGS'
20928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20930 cross_compiling=$ac_cv_prog_cc_cross
20936 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_use" 1>&6
20937 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
20938 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20939 echo "configure:20940: checking for __builtin_sqrt linkage" >&5
20940 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
20941 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20942 echo $ac_n "(cached) $ac_c" 1>&6
20943 else
20945 cat > conftest.$ac_ext <<EOF
20946 #line 20947 "configure"
20947 #include "confdefs.h"
20948 #include <math.h>
20949 int main() {
20950 __builtin_sqrt(0);
20951 ; return 0; }
20953 if { (eval echo configure:20954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20954 rm -rf conftest*
20955 glibcxx_cv_func___builtin_sqrt_link=yes
20956 else
20957 echo "configure: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20959 rm -rf conftest*
20960 glibcxx_cv_func___builtin_sqrt_link=no
20962 rm -f conftest*
20967 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_link" 1>&6
20968 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
20969 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20970 cat >> confdefs.h <<EOF
20971 #define ${ac_tr_func} 1
20978 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20979 echo "configure:20980: checking for __builtin_sqrtl declaration" >&5
20980 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
20981 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20982 echo $ac_n "(cached) $ac_c" 1>&6
20983 else
20986 ac_ext=C
20987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20988 ac_cpp='$CXXCPP $CPPFLAGS'
20989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20991 cross_compiling=$ac_cv_prog_cxx_cross
20993 cat > conftest.$ac_ext <<EOF
20994 #line 20995 "configure"
20995 #include "confdefs.h"
20996 #include <math.h>
20997 int main() {
20998 __builtin_sqrtl(0);
20999 ; return 0; }
21001 if { (eval echo configure:21002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21002 rm -rf conftest*
21003 glibcxx_cv_func___builtin_sqrtl_use=yes
21004 else
21005 echo "configure: failed program was:" >&5
21006 cat conftest.$ac_ext >&5
21007 rm -rf conftest*
21008 glibcxx_cv_func___builtin_sqrtl_use=no
21010 rm -f conftest*
21011 ac_ext=c
21012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21016 cross_compiling=$ac_cv_prog_cc_cross
21022 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_use" 1>&6
21023 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
21024 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21025 echo "configure:21026: checking for __builtin_sqrtl linkage" >&5
21026 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
21027 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21028 echo $ac_n "(cached) $ac_c" 1>&6
21029 else
21031 cat > conftest.$ac_ext <<EOF
21032 #line 21033 "configure"
21033 #include "confdefs.h"
21034 #include <math.h>
21035 int main() {
21036 __builtin_sqrtl(0);
21037 ; return 0; }
21039 if { (eval echo configure:21040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21040 rm -rf conftest*
21041 glibcxx_cv_func___builtin_sqrtl_link=yes
21042 else
21043 echo "configure: failed program was:" >&5
21044 cat conftest.$ac_ext >&5
21045 rm -rf conftest*
21046 glibcxx_cv_func___builtin_sqrtl_link=no
21048 rm -f conftest*
21053 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_link" 1>&6
21054 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
21055 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21056 cat >> confdefs.h <<EOF
21057 #define ${ac_tr_func} 1
21065 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21066 echo "configure:21067: checking for __builtin_sinf declaration" >&5
21067 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
21068 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21069 echo $ac_n "(cached) $ac_c" 1>&6
21070 else
21073 ac_ext=C
21074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21075 ac_cpp='$CXXCPP $CPPFLAGS'
21076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21078 cross_compiling=$ac_cv_prog_cxx_cross
21080 cat > conftest.$ac_ext <<EOF
21081 #line 21082 "configure"
21082 #include "confdefs.h"
21083 #include <math.h>
21084 int main() {
21085 __builtin_sinf(0);
21086 ; return 0; }
21088 if { (eval echo configure:21089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21089 rm -rf conftest*
21090 glibcxx_cv_func___builtin_sinf_use=yes
21091 else
21092 echo "configure: failed program was:" >&5
21093 cat conftest.$ac_ext >&5
21094 rm -rf conftest*
21095 glibcxx_cv_func___builtin_sinf_use=no
21097 rm -f conftest*
21098 ac_ext=c
21099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21100 ac_cpp='$CPP $CPPFLAGS'
21101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21103 cross_compiling=$ac_cv_prog_cc_cross
21109 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_use" 1>&6
21110 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
21111 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21112 echo "configure:21113: checking for __builtin_sinf linkage" >&5
21113 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
21114 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21115 echo $ac_n "(cached) $ac_c" 1>&6
21116 else
21118 cat > conftest.$ac_ext <<EOF
21119 #line 21120 "configure"
21120 #include "confdefs.h"
21121 #include <math.h>
21122 int main() {
21123 __builtin_sinf(0);
21124 ; return 0; }
21126 if { (eval echo configure:21127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21127 rm -rf conftest*
21128 glibcxx_cv_func___builtin_sinf_link=yes
21129 else
21130 echo "configure: failed program was:" >&5
21131 cat conftest.$ac_ext >&5
21132 rm -rf conftest*
21133 glibcxx_cv_func___builtin_sinf_link=no
21135 rm -f conftest*
21140 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_link" 1>&6
21141 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
21142 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21143 cat >> confdefs.h <<EOF
21144 #define ${ac_tr_func} 1
21151 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21152 echo "configure:21153: checking for __builtin_sin declaration" >&5
21153 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
21154 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_use'+set}'`\" = set"; then
21155 echo $ac_n "(cached) $ac_c" 1>&6
21156 else
21159 ac_ext=C
21160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21161 ac_cpp='$CXXCPP $CPPFLAGS'
21162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21164 cross_compiling=$ac_cv_prog_cxx_cross
21166 cat > conftest.$ac_ext <<EOF
21167 #line 21168 "configure"
21168 #include "confdefs.h"
21169 #include <math.h>
21170 int main() {
21171 __builtin_sin(0);
21172 ; return 0; }
21174 if { (eval echo configure:21175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21175 rm -rf conftest*
21176 glibcxx_cv_func___builtin_sin_use=yes
21177 else
21178 echo "configure: failed program was:" >&5
21179 cat conftest.$ac_ext >&5
21180 rm -rf conftest*
21181 glibcxx_cv_func___builtin_sin_use=no
21183 rm -f conftest*
21184 ac_ext=c
21185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21186 ac_cpp='$CPP $CPPFLAGS'
21187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21189 cross_compiling=$ac_cv_prog_cc_cross
21195 echo "$ac_t""$glibcxx_cv_func___builtin_sin_use" 1>&6
21196 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
21197 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21198 echo "configure:21199: checking for __builtin_sin linkage" >&5
21199 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
21200 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_link'+set}'`\" = set"; then
21201 echo $ac_n "(cached) $ac_c" 1>&6
21202 else
21204 cat > conftest.$ac_ext <<EOF
21205 #line 21206 "configure"
21206 #include "confdefs.h"
21207 #include <math.h>
21208 int main() {
21209 __builtin_sin(0);
21210 ; return 0; }
21212 if { (eval echo configure:21213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21213 rm -rf conftest*
21214 glibcxx_cv_func___builtin_sin_link=yes
21215 else
21216 echo "configure: failed program was:" >&5
21217 cat conftest.$ac_ext >&5
21218 rm -rf conftest*
21219 glibcxx_cv_func___builtin_sin_link=no
21221 rm -f conftest*
21226 echo "$ac_t""$glibcxx_cv_func___builtin_sin_link" 1>&6
21227 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
21228 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21229 cat >> confdefs.h <<EOF
21230 #define ${ac_tr_func} 1
21237 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21238 echo "configure:21239: checking for __builtin_sinl declaration" >&5
21239 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
21240 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21241 echo $ac_n "(cached) $ac_c" 1>&6
21242 else
21245 ac_ext=C
21246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21247 ac_cpp='$CXXCPP $CPPFLAGS'
21248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21250 cross_compiling=$ac_cv_prog_cxx_cross
21252 cat > conftest.$ac_ext <<EOF
21253 #line 21254 "configure"
21254 #include "confdefs.h"
21255 #include <math.h>
21256 int main() {
21257 __builtin_sinl(0);
21258 ; return 0; }
21260 if { (eval echo configure:21261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21261 rm -rf conftest*
21262 glibcxx_cv_func___builtin_sinl_use=yes
21263 else
21264 echo "configure: failed program was:" >&5
21265 cat conftest.$ac_ext >&5
21266 rm -rf conftest*
21267 glibcxx_cv_func___builtin_sinl_use=no
21269 rm -f conftest*
21270 ac_ext=c
21271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21272 ac_cpp='$CPP $CPPFLAGS'
21273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21275 cross_compiling=$ac_cv_prog_cc_cross
21281 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_use" 1>&6
21282 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
21283 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21284 echo "configure:21285: checking for __builtin_sinl linkage" >&5
21285 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
21286 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21287 echo $ac_n "(cached) $ac_c" 1>&6
21288 else
21290 cat > conftest.$ac_ext <<EOF
21291 #line 21292 "configure"
21292 #include "confdefs.h"
21293 #include <math.h>
21294 int main() {
21295 __builtin_sinl(0);
21296 ; return 0; }
21298 if { (eval echo configure:21299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21299 rm -rf conftest*
21300 glibcxx_cv_func___builtin_sinl_link=yes
21301 else
21302 echo "configure: failed program was:" >&5
21303 cat conftest.$ac_ext >&5
21304 rm -rf conftest*
21305 glibcxx_cv_func___builtin_sinl_link=no
21307 rm -f conftest*
21312 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_link" 1>&6
21313 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
21314 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21315 cat >> confdefs.h <<EOF
21316 #define ${ac_tr_func} 1
21324 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21325 echo "configure:21326: checking for __builtin_cosf declaration" >&5
21326 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
21327 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21328 echo $ac_n "(cached) $ac_c" 1>&6
21329 else
21332 ac_ext=C
21333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21334 ac_cpp='$CXXCPP $CPPFLAGS'
21335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21337 cross_compiling=$ac_cv_prog_cxx_cross
21339 cat > conftest.$ac_ext <<EOF
21340 #line 21341 "configure"
21341 #include "confdefs.h"
21342 #include <math.h>
21343 int main() {
21344 __builtin_cosf(0);
21345 ; return 0; }
21347 if { (eval echo configure:21348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21348 rm -rf conftest*
21349 glibcxx_cv_func___builtin_cosf_use=yes
21350 else
21351 echo "configure: failed program was:" >&5
21352 cat conftest.$ac_ext >&5
21353 rm -rf conftest*
21354 glibcxx_cv_func___builtin_cosf_use=no
21356 rm -f conftest*
21357 ac_ext=c
21358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21362 cross_compiling=$ac_cv_prog_cc_cross
21368 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_use" 1>&6
21369 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
21370 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21371 echo "configure:21372: checking for __builtin_cosf linkage" >&5
21372 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
21373 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21374 echo $ac_n "(cached) $ac_c" 1>&6
21375 else
21377 cat > conftest.$ac_ext <<EOF
21378 #line 21379 "configure"
21379 #include "confdefs.h"
21380 #include <math.h>
21381 int main() {
21382 __builtin_cosf(0);
21383 ; return 0; }
21385 if { (eval echo configure:21386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21386 rm -rf conftest*
21387 glibcxx_cv_func___builtin_cosf_link=yes
21388 else
21389 echo "configure: failed program was:" >&5
21390 cat conftest.$ac_ext >&5
21391 rm -rf conftest*
21392 glibcxx_cv_func___builtin_cosf_link=no
21394 rm -f conftest*
21399 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_link" 1>&6
21400 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
21401 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21402 cat >> confdefs.h <<EOF
21403 #define ${ac_tr_func} 1
21410 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21411 echo "configure:21412: checking for __builtin_cos declaration" >&5
21412 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
21413 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_use'+set}'`\" = set"; then
21414 echo $ac_n "(cached) $ac_c" 1>&6
21415 else
21418 ac_ext=C
21419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21420 ac_cpp='$CXXCPP $CPPFLAGS'
21421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21423 cross_compiling=$ac_cv_prog_cxx_cross
21425 cat > conftest.$ac_ext <<EOF
21426 #line 21427 "configure"
21427 #include "confdefs.h"
21428 #include <math.h>
21429 int main() {
21430 __builtin_cos(0);
21431 ; return 0; }
21433 if { (eval echo configure:21434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21434 rm -rf conftest*
21435 glibcxx_cv_func___builtin_cos_use=yes
21436 else
21437 echo "configure: failed program was:" >&5
21438 cat conftest.$ac_ext >&5
21439 rm -rf conftest*
21440 glibcxx_cv_func___builtin_cos_use=no
21442 rm -f conftest*
21443 ac_ext=c
21444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21445 ac_cpp='$CPP $CPPFLAGS'
21446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21448 cross_compiling=$ac_cv_prog_cc_cross
21454 echo "$ac_t""$glibcxx_cv_func___builtin_cos_use" 1>&6
21455 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
21456 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21457 echo "configure:21458: checking for __builtin_cos linkage" >&5
21458 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
21459 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_link'+set}'`\" = set"; then
21460 echo $ac_n "(cached) $ac_c" 1>&6
21461 else
21463 cat > conftest.$ac_ext <<EOF
21464 #line 21465 "configure"
21465 #include "confdefs.h"
21466 #include <math.h>
21467 int main() {
21468 __builtin_cos(0);
21469 ; return 0; }
21471 if { (eval echo configure:21472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21472 rm -rf conftest*
21473 glibcxx_cv_func___builtin_cos_link=yes
21474 else
21475 echo "configure: failed program was:" >&5
21476 cat conftest.$ac_ext >&5
21477 rm -rf conftest*
21478 glibcxx_cv_func___builtin_cos_link=no
21480 rm -f conftest*
21485 echo "$ac_t""$glibcxx_cv_func___builtin_cos_link" 1>&6
21486 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
21487 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21488 cat >> confdefs.h <<EOF
21489 #define ${ac_tr_func} 1
21496 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21497 echo "configure:21498: checking for __builtin_cosl declaration" >&5
21498 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
21499 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21500 echo $ac_n "(cached) $ac_c" 1>&6
21501 else
21504 ac_ext=C
21505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21506 ac_cpp='$CXXCPP $CPPFLAGS'
21507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21509 cross_compiling=$ac_cv_prog_cxx_cross
21511 cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21514 #include <math.h>
21515 int main() {
21516 __builtin_cosl(0);
21517 ; return 0; }
21519 if { (eval echo configure:21520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21520 rm -rf conftest*
21521 glibcxx_cv_func___builtin_cosl_use=yes
21522 else
21523 echo "configure: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21525 rm -rf conftest*
21526 glibcxx_cv_func___builtin_cosl_use=no
21528 rm -f conftest*
21529 ac_ext=c
21530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21531 ac_cpp='$CPP $CPPFLAGS'
21532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21534 cross_compiling=$ac_cv_prog_cc_cross
21540 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_use" 1>&6
21541 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
21542 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21543 echo "configure:21544: checking for __builtin_cosl linkage" >&5
21544 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
21545 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21546 echo $ac_n "(cached) $ac_c" 1>&6
21547 else
21549 cat > conftest.$ac_ext <<EOF
21550 #line 21551 "configure"
21551 #include "confdefs.h"
21552 #include <math.h>
21553 int main() {
21554 __builtin_cosl(0);
21555 ; return 0; }
21557 if { (eval echo configure:21558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21558 rm -rf conftest*
21559 glibcxx_cv_func___builtin_cosl_link=yes
21560 else
21561 echo "configure: failed program was:" >&5
21562 cat conftest.$ac_ext >&5
21563 rm -rf conftest*
21564 glibcxx_cv_func___builtin_cosl_link=no
21566 rm -f conftest*
21571 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_link" 1>&6
21572 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
21573 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21574 cat >> confdefs.h <<EOF
21575 #define ${ac_tr_func} 1
21582 dummyvar=no
21583 if test x$dummyvar = x"yes"; then
21584 cat >> confdefs.h <<\EOF
21585 #define HAVE___BUILTIN_ABS 1
21588 cat >> confdefs.h <<\EOF
21589 #define HAVE___BUILTIN_LABS 1
21592 cat >> confdefs.h <<\EOF
21593 #define HAVE___BUILTIN_COS 1
21596 cat >> confdefs.h <<\EOF
21597 #define HAVE___BUILTIN_COSF 1
21600 cat >> confdefs.h <<\EOF
21601 #define HAVE___BUILTIN_COSL 1
21604 cat >> confdefs.h <<\EOF
21605 #define HAVE___BUILTIN_FABS 1
21608 cat >> confdefs.h <<\EOF
21609 #define HAVE___BUILTIN_FABSF 1
21612 cat >> confdefs.h <<\EOF
21613 #define HAVE___BUILTIN_FABSL 1
21616 cat >> confdefs.h <<\EOF
21617 #define HAVE___BUILTIN_SIN 1
21620 cat >> confdefs.h <<\EOF
21621 #define HAVE___BUILTIN_SINF 1
21624 cat >> confdefs.h <<\EOF
21625 #define HAVE___BUILTIN_SINL 1
21628 cat >> confdefs.h <<\EOF
21629 #define HAVE___BUILTIN_SQRT 1
21632 cat >> confdefs.h <<\EOF
21633 #define HAVE___BUILTIN_SQRTF 1
21636 cat >> confdefs.h <<\EOF
21637 #define HAVE___BUILTIN_SQRTL 1
21643 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21644 echo "configure:21645: checking for main in -lm" >&5
21645 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21647 echo $ac_n "(cached) $ac_c" 1>&6
21648 else
21649 ac_save_LIBS="$LIBS"
21650 LIBS="-lm $LIBS"
21651 cat > conftest.$ac_ext <<EOF
21652 #line 21653 "configure"
21653 #include "confdefs.h"
21655 int main() {
21656 main()
21657 ; return 0; }
21659 if { (eval echo configure:21660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21660 rm -rf conftest*
21661 eval "ac_cv_lib_$ac_lib_var=yes"
21662 else
21663 echo "configure: failed program was:" >&5
21664 cat conftest.$ac_ext >&5
21665 rm -rf conftest*
21666 eval "ac_cv_lib_$ac_lib_var=no"
21668 rm -f conftest*
21669 LIBS="$ac_save_LIBS"
21672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21673 echo "$ac_t""yes" 1>&6
21674 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21676 cat >> confdefs.h <<EOF
21677 #define $ac_tr_lib 1
21680 LIBS="-lm $LIBS"
21682 else
21683 echo "$ac_t""no" 1>&6
21686 for ac_func in nan copysignf
21688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21689 echo "configure:21690: checking for $ac_func" >&5
21690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21691 echo $ac_n "(cached) $ac_c" 1>&6
21692 else
21693 cat > conftest.$ac_ext <<EOF
21694 #line 21695 "configure"
21695 #include "confdefs.h"
21696 /* System header to define __stub macros and hopefully few prototypes,
21697 which can conflict with char $ac_func(); below. */
21698 #include <assert.h>
21699 /* Override any gcc2 internal prototype to avoid an error. */
21700 /* We use char because int might match the return type of a gcc2
21701 builtin and then its argument prototype would still apply. */
21702 char $ac_func();
21704 int main() {
21706 /* The GNU C library defines this for functions which it implements
21707 to always fail with ENOSYS. Some functions are actually named
21708 something starting with __ and the normal name is an alias. */
21709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21710 choke me
21711 #else
21712 $ac_func();
21713 #endif
21715 ; return 0; }
21717 if { (eval echo configure:21718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21718 rm -rf conftest*
21719 eval "ac_cv_func_$ac_func=yes"
21720 else
21721 echo "configure: failed program was:" >&5
21722 cat conftest.$ac_ext >&5
21723 rm -rf conftest*
21724 eval "ac_cv_func_$ac_func=no"
21726 rm -f conftest*
21729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21730 echo "$ac_t""yes" 1>&6
21731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21732 cat >> confdefs.h <<EOF
21733 #define $ac_tr_func 1
21736 else
21737 echo "$ac_t""no" 1>&6
21738 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21740 done
21743 for ac_func in __signbit
21745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21746 echo "configure:21747: checking for $ac_func" >&5
21747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21748 echo $ac_n "(cached) $ac_c" 1>&6
21749 else
21750 cat > conftest.$ac_ext <<EOF
21751 #line 21752 "configure"
21752 #include "confdefs.h"
21753 /* System header to define __stub macros and hopefully few prototypes,
21754 which can conflict with char $ac_func(); below. */
21755 #include <assert.h>
21756 /* Override any gcc2 internal prototype to avoid an error. */
21757 /* We use char because int might match the return type of a gcc2
21758 builtin and then its argument prototype would still apply. */
21759 char $ac_func();
21761 int main() {
21763 /* The GNU C library defines this for functions which it implements
21764 to always fail with ENOSYS. Some functions are actually named
21765 something starting with __ and the normal name is an alias. */
21766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21767 choke me
21768 #else
21769 $ac_func();
21770 #endif
21772 ; return 0; }
21774 if { (eval echo configure:21775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21775 rm -rf conftest*
21776 eval "ac_cv_func_$ac_func=yes"
21777 else
21778 echo "configure: failed program was:" >&5
21779 cat conftest.$ac_ext >&5
21780 rm -rf conftest*
21781 eval "ac_cv_func_$ac_func=no"
21783 rm -f conftest*
21786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21787 echo "$ac_t""yes" 1>&6
21788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21789 cat >> confdefs.h <<EOF
21790 #define $ac_tr_func 1
21793 else
21794 echo "$ac_t""no" 1>&6
21795 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21797 done
21799 for ac_func in __signbitf
21801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21802 echo "configure:21803: checking for $ac_func" >&5
21803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21804 echo $ac_n "(cached) $ac_c" 1>&6
21805 else
21806 cat > conftest.$ac_ext <<EOF
21807 #line 21808 "configure"
21808 #include "confdefs.h"
21809 /* System header to define __stub macros and hopefully few prototypes,
21810 which can conflict with char $ac_func(); below. */
21811 #include <assert.h>
21812 /* Override any gcc2 internal prototype to avoid an error. */
21813 /* We use char because int might match the return type of a gcc2
21814 builtin and then its argument prototype would still apply. */
21815 char $ac_func();
21817 int main() {
21819 /* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21823 choke me
21824 #else
21825 $ac_func();
21826 #endif
21828 ; return 0; }
21830 if { (eval echo configure:21831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 rm -rf conftest*
21832 eval "ac_cv_func_$ac_func=yes"
21833 else
21834 echo "configure: failed program was:" >&5
21835 cat conftest.$ac_ext >&5
21836 rm -rf conftest*
21837 eval "ac_cv_func_$ac_func=no"
21839 rm -f conftest*
21842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21843 echo "$ac_t""yes" 1>&6
21844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21845 cat >> confdefs.h <<EOF
21846 #define $ac_tr_func 1
21849 else
21850 echo "$ac_t""no" 1>&6
21851 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21853 done
21856 if test x$ac_cv_func_copysignl = x"yes"; then
21857 for ac_func in __signbitl
21859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21860 echo "configure:21861: checking for $ac_func" >&5
21861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21862 echo $ac_n "(cached) $ac_c" 1>&6
21863 else
21864 cat > conftest.$ac_ext <<EOF
21865 #line 21866 "configure"
21866 #include "confdefs.h"
21867 /* System header to define __stub macros and hopefully few prototypes,
21868 which can conflict with char $ac_func(); below. */
21869 #include <assert.h>
21870 /* Override any gcc2 internal prototype to avoid an error. */
21871 /* We use char because int might match the return type of a gcc2
21872 builtin and then its argument prototype would still apply. */
21873 char $ac_func();
21875 int main() {
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21881 choke me
21882 #else
21883 $ac_func();
21884 #endif
21886 ; return 0; }
21888 if { (eval echo configure:21889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21889 rm -rf conftest*
21890 eval "ac_cv_func_$ac_func=yes"
21891 else
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21894 rm -rf conftest*
21895 eval "ac_cv_func_$ac_func=no"
21897 rm -f conftest*
21900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21901 echo "$ac_t""yes" 1>&6
21902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21903 cat >> confdefs.h <<EOF
21904 #define $ac_tr_func 1
21907 else
21908 echo "$ac_t""no" 1>&6
21909 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21911 done
21915 if test -n "$LIBMATHOBJS"; then
21916 need_libmath=yes
21922 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21923 echo "configure:21924: checking for mbstate_t" >&5
21924 cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21927 #include <wchar.h>
21928 int main() {
21929 mbstate_t teststate;
21930 ; return 0; }
21932 if { (eval echo configure:21933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21933 rm -rf conftest*
21934 have_mbstate_t=yes
21935 else
21936 echo "configure: failed program was:" >&5
21937 cat conftest.$ac_ext >&5
21938 rm -rf conftest*
21939 have_mbstate_t=no
21941 rm -f conftest*
21942 echo "$ac_t""$have_mbstate_t" 1>&6
21943 if test x"$have_mbstate_t" = xyes; then
21944 cat >> confdefs.h <<\EOF
21945 #define HAVE_MBSTATE_T 1
21950 for ac_hdr in wchar.h
21952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21954 echo "configure:21955: checking for $ac_hdr" >&5
21955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21956 echo $ac_n "(cached) $ac_c" 1>&6
21957 else
21958 cat > conftest.$ac_ext <<EOF
21959 #line 21960 "configure"
21960 #include "confdefs.h"
21961 #include <$ac_hdr>
21963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21964 { (eval echo configure:21965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21966 if test -z "$ac_err"; then
21967 rm -rf conftest*
21968 eval "ac_cv_header_$ac_safe=yes"
21969 else
21970 echo "$ac_err" >&5
21971 echo "configure: failed program was:" >&5
21972 cat conftest.$ac_ext >&5
21973 rm -rf conftest*
21974 eval "ac_cv_header_$ac_safe=no"
21976 rm -f conftest*
21978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21979 echo "$ac_t""yes" 1>&6
21980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21981 cat >> confdefs.h <<EOF
21982 #define $ac_tr_hdr 1
21984 ac_has_wchar_h=yes
21985 else
21986 echo "$ac_t""no" 1>&6
21987 ac_has_wchar_h=no
21989 done
21991 for ac_hdr in wctype.h
21993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21995 echo "configure:21996: checking for $ac_hdr" >&5
21996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21997 echo $ac_n "(cached) $ac_c" 1>&6
21998 else
21999 cat > conftest.$ac_ext <<EOF
22000 #line 22001 "configure"
22001 #include "confdefs.h"
22002 #include <$ac_hdr>
22004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22005 { (eval echo configure:22006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22007 if test -z "$ac_err"; then
22008 rm -rf conftest*
22009 eval "ac_cv_header_$ac_safe=yes"
22010 else
22011 echo "$ac_err" >&5
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22014 rm -rf conftest*
22015 eval "ac_cv_header_$ac_safe=no"
22017 rm -f conftest*
22019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22020 echo "$ac_t""yes" 1>&6
22021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22022 cat >> confdefs.h <<EOF
22023 #define $ac_tr_hdr 1
22025 ac_has_wctype_h=yes
22026 else
22027 echo "$ac_t""no" 1>&6
22028 ac_has_wctype_h=no
22030 done
22033 if test x"$ac_has_wchar_h" = xyes &&
22034 test x"$ac_has_wctype_h" = xyes &&
22035 test x"$enable_c_mbchar" != xno; then
22037 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22038 echo "configure:22039: checking for WCHAR_MIN and WCHAR_MAX" >&5
22039 cat > conftest.$ac_ext <<EOF
22040 #line 22041 "configure"
22041 #include "confdefs.h"
22042 #include <wchar.h>
22043 int main() {
22044 int i = WCHAR_MIN; int j = WCHAR_MAX;
22045 ; return 0; }
22047 if { (eval echo configure:22048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22048 rm -rf conftest*
22049 has_wchar_minmax=yes
22050 else
22051 echo "configure: failed program was:" >&5
22052 cat conftest.$ac_ext >&5
22053 rm -rf conftest*
22054 has_wchar_minmax=no
22056 rm -f conftest*
22057 echo "$ac_t""$has_wchar_minmax" 1>&6
22059 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22060 echo "configure:22061: checking for WEOF" >&5
22061 cat > conftest.$ac_ext <<EOF
22062 #line 22063 "configure"
22063 #include "confdefs.h"
22065 #include <wchar.h>
22066 #include <stddef.h>
22067 int main() {
22068 wint_t i = WEOF;
22069 ; return 0; }
22071 if { (eval echo configure:22072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22072 rm -rf conftest*
22073 has_weof=yes
22074 else
22075 echo "configure: failed program was:" >&5
22076 cat conftest.$ac_ext >&5
22077 rm -rf conftest*
22078 has_weof=no
22080 rm -f conftest*
22081 echo "$ac_t""$has_weof" 1>&6
22083 ac_wfuncs=yes
22084 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22087 echo "configure:22088: checking for $ac_func" >&5
22088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22089 echo $ac_n "(cached) $ac_c" 1>&6
22090 else
22091 cat > conftest.$ac_ext <<EOF
22092 #line 22093 "configure"
22093 #include "confdefs.h"
22094 /* System header to define __stub macros and hopefully few prototypes,
22095 which can conflict with char $ac_func(); below. */
22096 #include <assert.h>
22097 /* Override any gcc2 internal prototype to avoid an error. */
22098 /* We use char because int might match the return type of a gcc2
22099 builtin and then its argument prototype would still apply. */
22100 char $ac_func();
22102 int main() {
22104 /* The GNU C library defines this for functions which it implements
22105 to always fail with ENOSYS. Some functions are actually named
22106 something starting with __ and the normal name is an alias. */
22107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22108 choke me
22109 #else
22110 $ac_func();
22111 #endif
22113 ; return 0; }
22115 if { (eval echo configure:22116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22116 rm -rf conftest*
22117 eval "ac_cv_func_$ac_func=yes"
22118 else
22119 echo "configure: failed program was:" >&5
22120 cat conftest.$ac_ext >&5
22121 rm -rf conftest*
22122 eval "ac_cv_func_$ac_func=no"
22124 rm -f conftest*
22127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22128 echo "$ac_t""yes" 1>&6
22129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22130 cat >> confdefs.h <<EOF
22131 #define $ac_tr_func 1
22134 else
22135 echo "$ac_t""no" 1>&6
22137 ac_wfuncs=no
22139 done
22142 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22143 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22144 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22145 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22146 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22147 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22150 echo "configure:22151: checking for $ac_func" >&5
22151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22152 echo $ac_n "(cached) $ac_c" 1>&6
22153 else
22154 cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func(); below. */
22159 #include <assert.h>
22160 /* Override any gcc2 internal prototype to avoid an error. */
22161 /* We use char because int might match the return type of a gcc2
22162 builtin and then its argument prototype would still apply. */
22163 char $ac_func();
22165 int main() {
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22171 choke me
22172 #else
22173 $ac_func();
22174 #endif
22176 ; return 0; }
22178 if { (eval echo configure:22179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22179 rm -rf conftest*
22180 eval "ac_cv_func_$ac_func=yes"
22181 else
22182 echo "configure: failed program was:" >&5
22183 cat conftest.$ac_ext >&5
22184 rm -rf conftest*
22185 eval "ac_cv_func_$ac_func=no"
22187 rm -f conftest*
22190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22191 echo "$ac_t""yes" 1>&6
22192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22193 cat >> confdefs.h <<EOF
22194 #define $ac_tr_func 1
22197 else
22198 echo "$ac_t""no" 1>&6
22200 ac_wfuncs=no
22202 done
22205 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22206 echo "configure:22207: checking for ISO C99 wchar_t support" >&5
22207 if test x"$has_weof" = xyes &&
22208 test x"$has_wchar_minmax" = xyes &&
22209 test x"$ac_wfuncs" = xyes; then
22210 ac_isoC99_wchar_t=yes
22211 else
22212 ac_isoC99_wchar_t=no
22214 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22216 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22217 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22218 echo "configure:22219: checking for iconv.h" >&5
22219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22220 echo $ac_n "(cached) $ac_c" 1>&6
22221 else
22222 cat > conftest.$ac_ext <<EOF
22223 #line 22224 "configure"
22224 #include "confdefs.h"
22225 #include <iconv.h>
22227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22228 { (eval echo configure:22229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22230 if test -z "$ac_err"; then
22231 rm -rf conftest*
22232 eval "ac_cv_header_$ac_safe=yes"
22233 else
22234 echo "$ac_err" >&5
22235 echo "configure: failed program was:" >&5
22236 cat conftest.$ac_ext >&5
22237 rm -rf conftest*
22238 eval "ac_cv_header_$ac_safe=no"
22240 rm -f conftest*
22242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22243 echo "$ac_t""yes" 1>&6
22244 ac_has_iconv_h=yes
22245 else
22246 echo "$ac_t""no" 1>&6
22247 ac_has_iconv_h=no
22250 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22251 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22252 echo "configure:22253: checking for langinfo.h" >&5
22253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22254 echo $ac_n "(cached) $ac_c" 1>&6
22255 else
22256 cat > conftest.$ac_ext <<EOF
22257 #line 22258 "configure"
22258 #include "confdefs.h"
22259 #include <langinfo.h>
22261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22262 { (eval echo configure:22263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22264 if test -z "$ac_err"; then
22265 rm -rf conftest*
22266 eval "ac_cv_header_$ac_safe=yes"
22267 else
22268 echo "$ac_err" >&5
22269 echo "configure: failed program was:" >&5
22270 cat conftest.$ac_ext >&5
22271 rm -rf conftest*
22272 eval "ac_cv_header_$ac_safe=no"
22274 rm -f conftest*
22276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22277 echo "$ac_t""yes" 1>&6
22278 ac_has_langinfo_h=yes
22279 else
22280 echo "$ac_t""no" 1>&6
22281 ac_has_langinfo_h=no
22285 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22286 echo "configure:22287: checking for iconv in -liconv" >&5
22287 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22289 echo $ac_n "(cached) $ac_c" 1>&6
22290 else
22291 ac_save_LIBS="$LIBS"
22292 LIBS="-liconv $LIBS"
22293 cat > conftest.$ac_ext <<EOF
22294 #line 22295 "configure"
22295 #include "confdefs.h"
22296 /* Override any gcc2 internal prototype to avoid an error. */
22297 /* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299 char iconv();
22301 int main() {
22302 iconv()
22303 ; return 0; }
22305 if { (eval echo configure:22306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22306 rm -rf conftest*
22307 eval "ac_cv_lib_$ac_lib_var=yes"
22308 else
22309 echo "configure: failed program was:" >&5
22310 cat conftest.$ac_ext >&5
22311 rm -rf conftest*
22312 eval "ac_cv_lib_$ac_lib_var=no"
22314 rm -f conftest*
22315 LIBS="$ac_save_LIBS"
22318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22319 echo "$ac_t""yes" 1>&6
22320 libiconv="-liconv"
22321 else
22322 echo "$ac_t""no" 1>&6
22325 ac_save_LIBS="$LIBS"
22326 LIBS="$LIBS $libiconv"
22328 for ac_func in iconv_open iconv_close iconv nl_langinfo
22330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22331 echo "configure:22332: checking for $ac_func" >&5
22332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22333 echo $ac_n "(cached) $ac_c" 1>&6
22334 else
22335 cat > conftest.$ac_ext <<EOF
22336 #line 22337 "configure"
22337 #include "confdefs.h"
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char $ac_func(); below. */
22340 #include <assert.h>
22341 /* Override any gcc2 internal prototype to avoid an error. */
22342 /* We use char because int might match the return type of a gcc2
22343 builtin and then its argument prototype would still apply. */
22344 char $ac_func();
22346 int main() {
22348 /* The GNU C library defines this for functions which it implements
22349 to always fail with ENOSYS. Some functions are actually named
22350 something starting with __ and the normal name is an alias. */
22351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22352 choke me
22353 #else
22354 $ac_func();
22355 #endif
22357 ; return 0; }
22359 if { (eval echo configure:22360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22360 rm -rf conftest*
22361 eval "ac_cv_func_$ac_func=yes"
22362 else
22363 echo "configure: failed program was:" >&5
22364 cat conftest.$ac_ext >&5
22365 rm -rf conftest*
22366 eval "ac_cv_func_$ac_func=no"
22368 rm -f conftest*
22371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22372 echo "$ac_t""yes" 1>&6
22373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22374 cat >> confdefs.h <<EOF
22375 #define $ac_tr_func 1
22378 ac_XPG2funcs=yes
22379 else
22380 echo "$ac_t""no" 1>&6
22381 ac_XPG2funcs=no
22383 done
22386 LIBS="$ac_save_LIBS"
22388 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22389 echo "configure:22390: checking for XPG2 wchar_t support" >&5
22390 if test x"$ac_has_iconv_h" = xyes &&
22391 test x"$ac_has_langinfo_h" = xyes &&
22392 test x"$ac_XPG2funcs" = xyes; then
22393 ac_XPG2_wchar_t=yes
22394 else
22395 ac_XPG2_wchar_t=no
22397 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22399 if test x"$ac_isoC99_wchar_t" = xyes &&
22400 test x"$ac_XPG2_wchar_t" = xyes; then
22401 cat >> confdefs.h <<\EOF
22402 #define _GLIBCXX_USE_WCHAR_T 1
22405 enable_wchar_t=yes
22408 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22409 echo "configure:22410: checking for enabled wchar_t specializations" >&5
22410 echo "$ac_t""$enable_wchar_t" 1>&6
22413 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22414 ac_save_CXXFLAGS="$CXXFLAGS"
22415 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22418 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22419 echo "configure:22420: checking for strtold declaration" >&5
22420 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
22421 if eval "test \"`echo '$''{'glibcxx_cv_func_strtold_use'+set}'`\" = set"; then
22422 echo $ac_n "(cached) $ac_c" 1>&6
22423 else
22426 ac_ext=C
22427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22428 ac_cpp='$CXXCPP $CPPFLAGS'
22429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22431 cross_compiling=$ac_cv_prog_cxx_cross
22433 cat > conftest.$ac_ext <<EOF
22434 #line 22435 "configure"
22435 #include "confdefs.h"
22436 #include <stdlib.h>
22437 int main() {
22438 strtold(0, 0);
22439 ; return 0; }
22441 if { (eval echo configure:22442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22442 rm -rf conftest*
22443 glibcxx_cv_func_strtold_use=yes
22444 else
22445 echo "configure: failed program was:" >&5
22446 cat conftest.$ac_ext >&5
22447 rm -rf conftest*
22448 glibcxx_cv_func_strtold_use=no
22450 rm -f conftest*
22451 ac_ext=c
22452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22453 ac_cpp='$CPP $CPPFLAGS'
22454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22456 cross_compiling=$ac_cv_prog_cc_cross
22462 echo "$ac_t""$glibcxx_cv_func_strtold_use" 1>&6
22463 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
22464 for ac_func in strtold
22466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22467 echo "configure:22468: checking for $ac_func" >&5
22468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22469 echo $ac_n "(cached) $ac_c" 1>&6
22470 else
22471 cat > conftest.$ac_ext <<EOF
22472 #line 22473 "configure"
22473 #include "confdefs.h"
22474 /* System header to define __stub macros and hopefully few prototypes,
22475 which can conflict with char $ac_func(); below. */
22476 #include <assert.h>
22477 /* Override any gcc2 internal prototype to avoid an error. */
22478 /* We use char because int might match the return type of a gcc2
22479 builtin and then its argument prototype would still apply. */
22480 char $ac_func();
22482 int main() {
22484 /* The GNU C library defines this for functions which it implements
22485 to always fail with ENOSYS. Some functions are actually named
22486 something starting with __ and the normal name is an alias. */
22487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22488 choke me
22489 #else
22490 $ac_func();
22491 #endif
22493 ; return 0; }
22495 if { (eval echo configure:22496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22496 rm -rf conftest*
22497 eval "ac_cv_func_$ac_func=yes"
22498 else
22499 echo "configure: failed program was:" >&5
22500 cat conftest.$ac_ext >&5
22501 rm -rf conftest*
22502 eval "ac_cv_func_$ac_func=no"
22504 rm -f conftest*
22507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22508 echo "$ac_t""yes" 1>&6
22509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22510 cat >> confdefs.h <<EOF
22511 #define $ac_tr_func 1
22514 else
22515 echo "$ac_t""no" 1>&6
22517 done
22522 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22523 echo "configure:22524: checking for strtof declaration" >&5
22524 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
22525 if eval "test \"`echo '$''{'glibcxx_cv_func_strtof_use'+set}'`\" = set"; then
22526 echo $ac_n "(cached) $ac_c" 1>&6
22527 else
22530 ac_ext=C
22531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22532 ac_cpp='$CXXCPP $CPPFLAGS'
22533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22535 cross_compiling=$ac_cv_prog_cxx_cross
22537 cat > conftest.$ac_ext <<EOF
22538 #line 22539 "configure"
22539 #include "confdefs.h"
22540 #include <stdlib.h>
22541 int main() {
22542 strtof(0, 0);
22543 ; return 0; }
22545 if { (eval echo configure:22546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22546 rm -rf conftest*
22547 glibcxx_cv_func_strtof_use=yes
22548 else
22549 echo "configure: failed program was:" >&5
22550 cat conftest.$ac_ext >&5
22551 rm -rf conftest*
22552 glibcxx_cv_func_strtof_use=no
22554 rm -f conftest*
22555 ac_ext=c
22556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22557 ac_cpp='$CPP $CPPFLAGS'
22558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22560 cross_compiling=$ac_cv_prog_cc_cross
22566 echo "$ac_t""$glibcxx_cv_func_strtof_use" 1>&6
22567 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
22568 for ac_func in strtof
22570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22571 echo "configure:22572: checking for $ac_func" >&5
22572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22573 echo $ac_n "(cached) $ac_c" 1>&6
22574 else
22575 cat > conftest.$ac_ext <<EOF
22576 #line 22577 "configure"
22577 #include "confdefs.h"
22578 /* System header to define __stub macros and hopefully few prototypes,
22579 which can conflict with char $ac_func(); below. */
22580 #include <assert.h>
22581 /* Override any gcc2 internal prototype to avoid an error. */
22582 /* We use char because int might match the return type of a gcc2
22583 builtin and then its argument prototype would still apply. */
22584 char $ac_func();
22586 int main() {
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22592 choke me
22593 #else
22594 $ac_func();
22595 #endif
22597 ; return 0; }
22599 if { (eval echo configure:22600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22600 rm -rf conftest*
22601 eval "ac_cv_func_$ac_func=yes"
22602 else
22603 echo "configure: failed program was:" >&5
22604 cat conftest.$ac_ext >&5
22605 rm -rf conftest*
22606 eval "ac_cv_func_$ac_func=no"
22608 rm -f conftest*
22611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22612 echo "$ac_t""yes" 1>&6
22613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22614 cat >> confdefs.h <<EOF
22615 #define $ac_tr_func 1
22618 else
22619 echo "$ac_t""no" 1>&6
22621 done
22625 for ac_func in drand48
22627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22628 echo "configure:22629: checking for $ac_func" >&5
22629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22630 echo $ac_n "(cached) $ac_c" 1>&6
22631 else
22632 cat > conftest.$ac_ext <<EOF
22633 #line 22634 "configure"
22634 #include "confdefs.h"
22635 /* System header to define __stub macros and hopefully few prototypes,
22636 which can conflict with char $ac_func(); below. */
22637 #include <assert.h>
22638 /* Override any gcc2 internal prototype to avoid an error. */
22639 /* We use char because int might match the return type of a gcc2
22640 builtin and then its argument prototype would still apply. */
22641 char $ac_func();
22643 int main() {
22645 /* The GNU C library defines this for functions which it implements
22646 to always fail with ENOSYS. Some functions are actually named
22647 something starting with __ and the normal name is an alias. */
22648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22649 choke me
22650 #else
22651 $ac_func();
22652 #endif
22654 ; return 0; }
22656 if { (eval echo configure:22657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22657 rm -rf conftest*
22658 eval "ac_cv_func_$ac_func=yes"
22659 else
22660 echo "configure: failed program was:" >&5
22661 cat conftest.$ac_ext >&5
22662 rm -rf conftest*
22663 eval "ac_cv_func_$ac_func=no"
22665 rm -f conftest*
22668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22669 echo "$ac_t""yes" 1>&6
22670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22671 cat >> confdefs.h <<EOF
22672 #define $ac_tr_func 1
22675 else
22676 echo "$ac_t""no" 1>&6
22678 done
22681 CXXFLAGS="$ac_save_CXXFLAGS"
22684 # For showmanyc_helper().
22685 for ac_hdr in sys/ioctl.h sys/filio.h
22687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22689 echo "configure:22690: checking for $ac_hdr" >&5
22690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22691 echo $ac_n "(cached) $ac_c" 1>&6
22692 else
22693 cat > conftest.$ac_ext <<EOF
22694 #line 22695 "configure"
22695 #include "confdefs.h"
22696 #include <$ac_hdr>
22698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22699 { (eval echo configure:22700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22701 if test -z "$ac_err"; then
22702 rm -rf conftest*
22703 eval "ac_cv_header_$ac_safe=yes"
22704 else
22705 echo "$ac_err" >&5
22706 echo "configure: failed program was:" >&5
22707 cat conftest.$ac_ext >&5
22708 rm -rf conftest*
22709 eval "ac_cv_header_$ac_safe=no"
22711 rm -f conftest*
22713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22714 echo "$ac_t""yes" 1>&6
22715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22716 cat >> confdefs.h <<EOF
22717 #define $ac_tr_hdr 1
22720 else
22721 echo "$ac_t""no" 1>&6
22723 done
22726 if eval "test \"`echo '$''{'glibcxx_cv_POLL'+set}'`\" = set"; then
22727 echo $ac_n "(cached) $ac_c" 1>&6
22728 else
22730 cat > conftest.$ac_ext <<EOF
22731 #line 22732 "configure"
22732 #include "confdefs.h"
22733 #include <poll.h>
22734 int main() {
22735 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22736 ; return 0; }
22738 if { (eval echo configure:22739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22739 rm -rf conftest*
22740 glibcxx_cv_POLL=yes
22741 else
22742 echo "configure: failed program was:" >&5
22743 cat conftest.$ac_ext >&5
22744 rm -rf conftest*
22745 glibcxx_cv_POLL=no
22747 rm -f conftest*
22751 if test x$glibcxx_cv_POLL = xyes; then
22752 cat >> confdefs.h <<\EOF
22753 #define HAVE_POLL 1
22759 if eval "test \"`echo '$''{'glibcxx_cv_S_ISREG'+set}'`\" = set"; then
22760 echo $ac_n "(cached) $ac_c" 1>&6
22761 else
22763 cat > conftest.$ac_ext <<EOF
22764 #line 22765 "configure"
22765 #include "confdefs.h"
22766 #include <sys/stat.h>
22767 int main() {
22768 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22769 ; return 0; }
22771 if { (eval echo configure:22772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22772 rm -rf conftest*
22773 glibcxx_cv_S_ISREG=yes
22774 else
22775 echo "configure: failed program was:" >&5
22776 cat conftest.$ac_ext >&5
22777 rm -rf conftest*
22778 glibcxx_cv_S_ISREG=no
22780 rm -f conftest*
22784 if eval "test \"`echo '$''{'glibcxx_cv_S_IFREG'+set}'`\" = set"; then
22785 echo $ac_n "(cached) $ac_c" 1>&6
22786 else
22788 cat > conftest.$ac_ext <<EOF
22789 #line 22790 "configure"
22790 #include "confdefs.h"
22791 #include <sys/stat.h>
22792 int main() {
22793 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22794 ; return 0; }
22796 if { (eval echo configure:22797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22797 rm -rf conftest*
22798 glibcxx_cv_S_IFREG=yes
22799 else
22800 echo "configure: failed program was:" >&5
22801 cat conftest.$ac_ext >&5
22802 rm -rf conftest*
22803 glibcxx_cv_S_IFREG=no
22805 rm -f conftest*
22809 if test x$glibcxx_cv_S_ISREG = xyes; then
22810 cat >> confdefs.h <<\EOF
22811 #define HAVE_S_ISREG 1
22814 elif test x$glibcxx_cv_S_IFREG = xyes; then
22815 cat >> confdefs.h <<\EOF
22816 #define HAVE_S_IFREG 1
22823 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22824 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22825 echo "configure:22826: checking for locale.h" >&5
22826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22827 echo $ac_n "(cached) $ac_c" 1>&6
22828 else
22829 cat > conftest.$ac_ext <<EOF
22830 #line 22831 "configure"
22831 #include "confdefs.h"
22832 #include <locale.h>
22834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22835 { (eval echo configure:22836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22837 if test -z "$ac_err"; then
22838 rm -rf conftest*
22839 eval "ac_cv_header_$ac_safe=yes"
22840 else
22841 echo "$ac_err" >&5
22842 echo "configure: failed program was:" >&5
22843 cat conftest.$ac_ext >&5
22844 rm -rf conftest*
22845 eval "ac_cv_header_$ac_safe=no"
22847 rm -f conftest*
22849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22850 echo "$ac_t""yes" 1>&6
22852 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22853 echo "configure:22854: checking for LC_MESSAGES" >&5
22854 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22856 else
22857 cat > conftest.$ac_ext <<EOF
22858 #line 22859 "configure"
22859 #include "confdefs.h"
22860 #include <locale.h>
22861 int main() {
22862 return LC_MESSAGES
22863 ; return 0; }
22865 if { (eval echo configure:22866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22866 rm -rf conftest*
22867 ac_cv_val_LC_MESSAGES=yes
22868 else
22869 echo "configure: failed program was:" >&5
22870 cat conftest.$ac_ext >&5
22871 rm -rf conftest*
22872 ac_cv_val_LC_MESSAGES=no
22874 rm -f conftest*
22877 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22878 if test $ac_cv_val_LC_MESSAGES = yes; then
22879 cat >> confdefs.h <<\EOF
22880 #define HAVE_LC_MESSAGES 1
22885 else
22886 echo "$ac_t""no" 1>&6
22891 cat > conftest.$ac_ext <<EOF
22892 #line 22893 "configure"
22893 #include "confdefs.h"
22895 #include <setjmp.h>
22897 int main() {
22898 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22899 ; return 0; }
22901 if { (eval echo configure:22902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22902 rm -rf conftest*
22903 cat >> confdefs.h <<\EOF
22904 #define HAVE_SIGSETJMP 1
22908 else
22909 echo "configure: failed program was:" >&5
22910 cat conftest.$ac_ext >&5
22912 rm -f conftest*
22914 for ac_hdr in unistd.h
22916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22918 echo "configure:22919: checking for $ac_hdr" >&5
22919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22920 echo $ac_n "(cached) $ac_c" 1>&6
22921 else
22922 cat > conftest.$ac_ext <<EOF
22923 #line 22924 "configure"
22924 #include "confdefs.h"
22925 #include <$ac_hdr>
22927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22928 { (eval echo configure:22929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22930 if test -z "$ac_err"; then
22931 rm -rf conftest*
22932 eval "ac_cv_header_$ac_safe=yes"
22933 else
22934 echo "$ac_err" >&5
22935 echo "configure: failed program was:" >&5
22936 cat conftest.$ac_ext >&5
22937 rm -rf conftest*
22938 eval "ac_cv_header_$ac_safe=no"
22940 rm -f conftest*
22942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22943 echo "$ac_t""yes" 1>&6
22944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22945 cat >> confdefs.h <<EOF
22946 #define $ac_tr_hdr 1
22949 else
22950 echo "$ac_t""no" 1>&6
22952 done
22954 for ac_func in getpagesize
22956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22957 echo "configure:22958: checking for $ac_func" >&5
22958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22959 echo $ac_n "(cached) $ac_c" 1>&6
22960 else
22961 cat > conftest.$ac_ext <<EOF
22962 #line 22963 "configure"
22963 #include "confdefs.h"
22964 /* System header to define __stub macros and hopefully few prototypes,
22965 which can conflict with char $ac_func(); below. */
22966 #include <assert.h>
22967 /* Override any gcc2 internal prototype to avoid an error. */
22968 /* We use char because int might match the return type of a gcc2
22969 builtin and then its argument prototype would still apply. */
22970 char $ac_func();
22972 int main() {
22974 /* The GNU C library defines this for functions which it implements
22975 to always fail with ENOSYS. Some functions are actually named
22976 something starting with __ and the normal name is an alias. */
22977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22978 choke me
22979 #else
22980 $ac_func();
22981 #endif
22983 ; return 0; }
22985 if { (eval echo configure:22986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22986 rm -rf conftest*
22987 eval "ac_cv_func_$ac_func=yes"
22988 else
22989 echo "configure: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22991 rm -rf conftest*
22992 eval "ac_cv_func_$ac_func=no"
22994 rm -f conftest*
22997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22998 echo "$ac_t""yes" 1>&6
22999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23000 cat >> confdefs.h <<EOF
23001 #define $ac_tr_func 1
23004 else
23005 echo "$ac_t""no" 1>&6
23007 done
23009 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23010 echo "configure:23011: checking for working mmap" >&5
23011 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23012 echo $ac_n "(cached) $ac_c" 1>&6
23013 else
23014 if test "$cross_compiling" = yes; then
23015 ac_cv_func_mmap_fixed_mapped=no
23016 else
23017 cat > conftest.$ac_ext <<EOF
23018 #line 23019 "configure"
23019 #include "confdefs.h"
23021 /* Thanks to Mike Haertel and Jim Avera for this test.
23022 Here is a matrix of mmap possibilities:
23023 mmap private not fixed
23024 mmap private fixed at somewhere currently unmapped
23025 mmap private fixed at somewhere already mapped
23026 mmap shared not fixed
23027 mmap shared fixed at somewhere currently unmapped
23028 mmap shared fixed at somewhere already mapped
23029 For private mappings, we should verify that changes cannot be read()
23030 back from the file, nor mmap's back from the file at a different
23031 address. (There have been systems where private was not correctly
23032 implemented like the infamous i386 svr4.0, and systems where the
23033 VM page cache was not coherent with the filesystem buffer cache
23034 like early versions of FreeBSD and possibly contemporary NetBSD.)
23035 For shared mappings, we should conversely verify that changes get
23036 propogated back to all the places they're supposed to be.
23038 Grep wants private fixed already mapped.
23039 The main things grep needs to know about mmap are:
23040 * does it exist and is it safe to write into the mmap'd area
23041 * how to use it (BSD variants) */
23042 #include <sys/types.h>
23043 #include <fcntl.h>
23044 #include <sys/mman.h>
23046 /* This mess was copied from the GNU getpagesize.h. */
23047 #ifndef HAVE_GETPAGESIZE
23048 # ifdef HAVE_UNISTD_H
23049 # include <unistd.h>
23050 # endif
23052 /* Assume that all systems that can run configure have sys/param.h. */
23053 # ifndef HAVE_SYS_PARAM_H
23054 # define HAVE_SYS_PARAM_H 1
23055 # endif
23057 # ifdef _SC_PAGESIZE
23058 # define getpagesize() sysconf(_SC_PAGESIZE)
23059 # else /* no _SC_PAGESIZE */
23060 # ifdef HAVE_SYS_PARAM_H
23061 # include <sys/param.h>
23062 # ifdef EXEC_PAGESIZE
23063 # define getpagesize() EXEC_PAGESIZE
23064 # else /* no EXEC_PAGESIZE */
23065 # ifdef NBPG
23066 # define getpagesize() NBPG * CLSIZE
23067 # ifndef CLSIZE
23068 # define CLSIZE 1
23069 # endif /* no CLSIZE */
23070 # else /* no NBPG */
23071 # ifdef NBPC
23072 # define getpagesize() NBPC
23073 # else /* no NBPC */
23074 # ifdef PAGESIZE
23075 # define getpagesize() PAGESIZE
23076 # endif /* PAGESIZE */
23077 # endif /* no NBPC */
23078 # endif /* no NBPG */
23079 # endif /* no EXEC_PAGESIZE */
23080 # else /* no HAVE_SYS_PARAM_H */
23081 # define getpagesize() 8192 /* punt totally */
23082 # endif /* no HAVE_SYS_PARAM_H */
23083 # endif /* no _SC_PAGESIZE */
23085 #endif /* no HAVE_GETPAGESIZE */
23087 #ifdef __cplusplus
23088 extern "C" { void *malloc(unsigned); }
23089 #else
23090 char *malloc();
23091 #endif
23094 main()
23096 char *data, *data2, *data3;
23097 int i, pagesize;
23098 int fd;
23100 pagesize = getpagesize();
23103 * First, make a file with some known garbage in it.
23105 data = malloc(pagesize);
23106 if (!data)
23107 exit(1);
23108 for (i = 0; i < pagesize; ++i)
23109 *(data + i) = rand();
23110 umask(0);
23111 fd = creat("conftestmmap", 0600);
23112 if (fd < 0)
23113 exit(1);
23114 if (write(fd, data, pagesize) != pagesize)
23115 exit(1);
23116 close(fd);
23119 * Next, try to mmap the file at a fixed address which
23120 * already has something else allocated at it. If we can,
23121 * also make sure that we see the same garbage.
23123 fd = open("conftestmmap", O_RDWR);
23124 if (fd < 0)
23125 exit(1);
23126 data2 = malloc(2 * pagesize);
23127 if (!data2)
23128 exit(1);
23129 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23130 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23131 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23132 exit(1);
23133 for (i = 0; i < pagesize; ++i)
23134 if (*(data + i) != *(data2 + i))
23135 exit(1);
23138 * Finally, make sure that changes to the mapped area
23139 * do not percolate back to the file as seen by read().
23140 * (This is a bug on some variants of i386 svr4.0.)
23142 for (i = 0; i < pagesize; ++i)
23143 *(data2 + i) = *(data2 + i) + 1;
23144 data3 = malloc(pagesize);
23145 if (!data3)
23146 exit(1);
23147 if (read(fd, data3, pagesize) != pagesize)
23148 exit(1);
23149 for (i = 0; i < pagesize; ++i)
23150 if (*(data + i) != *(data3 + i))
23151 exit(1);
23152 close(fd);
23153 unlink("conftestmmap");
23154 exit(0);
23158 if { (eval echo configure:23159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23159 then
23160 ac_cv_func_mmap_fixed_mapped=yes
23161 else
23162 echo "configure: failed program was:" >&5
23163 cat conftest.$ac_ext >&5
23164 rm -fr conftest*
23165 ac_cv_func_mmap_fixed_mapped=no
23167 rm -fr conftest*
23172 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23173 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23174 cat >> confdefs.h <<\EOF
23175 #define HAVE_MMAP 1
23182 # This depends on GLIBCXX_CHECK_LINKER_FEATURES, but without it assumes no.
23183 # Check whether --enable-symvers or --disable-symvers was given.
23184 if test "${enable_symvers+set}" = set; then
23185 enableval="$enable_symvers"
23186 case "$enableval" in
23187 yes) enable_symvers=yes ;;
23188 no) enable_symvers=no ;;
23189 # other names here, just as sanity checks
23190 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23191 gnu) enable_symvers=$enableval ;;
23192 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23193 esac
23194 else
23195 enable_symvers=yes
23198 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
23199 # don't know enough about $LD to do tricks...
23200 if test x$enable_shared = xno ||
23201 test "x$LD" = x ||
23202 test x$glibcxx_gnu_ld_version = x; then
23203 enable_symvers=no
23206 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23207 if test $enable_symvers != no; then
23208 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23209 echo "configure:23210: checking for shared libgcc" >&5
23210 ac_save_CFLAGS="$CFLAGS"
23211 CFLAGS=' -lgcc_s'
23212 cat > conftest.$ac_ext <<EOF
23213 #line 23214 "configure"
23214 #include "confdefs.h"
23216 int main() {
23217 return 0
23218 ; return 0; }
23220 if { (eval echo configure:23221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23221 rm -rf conftest*
23222 glibcxx_shared_libgcc=yes
23223 else
23224 echo "configure: failed program was:" >&5
23225 cat conftest.$ac_ext >&5
23226 rm -rf conftest*
23227 glibcxx_shared_libgcc=no
23229 rm -f conftest*
23230 CFLAGS="$ac_save_CFLAGS"
23231 echo "$ac_t""$glibcxx_shared_libgcc" 1>&6
23234 # For GNU ld, we need at least this version. The format is described in
23235 # GLIBCXX_CHECK_LINKER_FEATURES above.
23236 glibcxx_min_gnu_ld_version=21400
23238 # Check to see if unspecified "yes" value can win, given results above.
23239 # Change "yes" into either "no" or a style name.
23240 if test $enable_symvers = yes ; then
23241 if test $with_gnu_ld = yes &&
23242 test $glibcxx_shared_libgcc = yes ;
23243 then
23244 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
23245 enable_symvers=gnu
23246 else
23247 # The right tools, the right setup, but too old. Fallbacks?
23248 echo "configure: warning: === Linker version $glibcxx_gnu_ld_version is too old for" 1>&2
23249 echo "configure: warning: === full symbol versioning support in this release of GCC." 1>&2
23250 echo "configure: warning: === You would need to upgrade your binutils to version" 1>&2
23251 echo "configure: warning: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." 1>&2
23252 echo "configure: warning: === Symbol versioning will be disabled." 1>&2
23253 enable_symvers=no
23255 else
23256 # just fail for now
23257 echo "configure: warning: === You have requested some kind of symbol versioning, but" 1>&2
23258 echo "configure: warning: === either you are not using a supported linker, or you are" 1>&2
23259 echo "configure: warning: === not building a shared libgcc_s (which is required)." 1>&2
23260 echo "configure: warning: === Symbol versioning will be disabled." 1>&2
23261 enable_symvers=no
23265 case $enable_symvers in
23267 SYMVER_MAP=config/linker-map.dummy
23269 gnu)
23270 SYMVER_MAP=config/linker-map.gnu
23271 cat >> confdefs.h <<\EOF
23272 #define _GLIBCXX_SYMVER 1
23276 esac
23282 if test $enable_symvers != no; then
23283 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
23284 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
23285 else
23286 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
23287 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
23289 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23290 echo "configure:23291: checking versioning on shared library symbols" >&5
23291 echo "$ac_t""$enable_symvers" 1>&6
23294 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_CROSS_COMPILING.
23297 if test x"$GLIBCXX_IS_CROSS_COMPILING" = xfalse; then
23298 # Do checks for memory limit functions.
23300 setrlimit_have_headers=yes
23301 for ac_hdr in unistd.h sys/time.h sys/resource.h
23303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23305 echo "configure:23306: checking for $ac_hdr" >&5
23306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23307 echo $ac_n "(cached) $ac_c" 1>&6
23308 else
23309 cat > conftest.$ac_ext <<EOF
23310 #line 23311 "configure"
23311 #include "confdefs.h"
23312 #include <$ac_hdr>
23314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23315 { (eval echo configure:23316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23317 if test -z "$ac_err"; then
23318 rm -rf conftest*
23319 eval "ac_cv_header_$ac_safe=yes"
23320 else
23321 echo "$ac_err" >&5
23322 echo "configure: failed program was:" >&5
23323 cat conftest.$ac_ext >&5
23324 rm -rf conftest*
23325 eval "ac_cv_header_$ac_safe=no"
23327 rm -f conftest*
23329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23330 echo "$ac_t""yes" 1>&6
23331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23332 cat >> confdefs.h <<EOF
23333 #define $ac_tr_hdr 1
23336 else
23337 echo "$ac_t""no" 1>&6
23338 setrlimit_have_headers=no
23340 done
23342 # If don't have the headers, then we can't run the tests now, and we
23343 # won't be seeing any of these during testsuite compilation.
23344 if test $setrlimit_have_headers = yes; then
23345 # Can't do these in a loop, else the resulting syntax is wrong.
23347 cat > conftest.$ac_ext <<EOF
23348 #line 23349 "configure"
23349 #include "confdefs.h"
23350 #include <unistd.h>
23351 #include <sys/time.h>
23352 #include <sys/resource.h>
23354 int main() {
23355 int f = RLIMIT_DATA ;
23356 ; return 0; }
23358 if { (eval echo configure:23359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23359 rm -rf conftest*
23360 glibcxx_mresult=1
23361 else
23362 echo "configure: failed program was:" >&5
23363 cat conftest.$ac_ext >&5
23364 rm -rf conftest*
23365 glibcxx_mresult=0
23367 rm -f conftest*
23368 cat >> confdefs.h <<EOF
23369 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
23374 cat > conftest.$ac_ext <<EOF
23375 #line 23376 "configure"
23376 #include "confdefs.h"
23377 #include <unistd.h>
23378 #include <sys/time.h>
23379 #include <sys/resource.h>
23381 int main() {
23382 int f = RLIMIT_RSS ;
23383 ; return 0; }
23385 if { (eval echo configure:23386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23386 rm -rf conftest*
23387 glibcxx_mresult=1
23388 else
23389 echo "configure: failed program was:" >&5
23390 cat conftest.$ac_ext >&5
23391 rm -rf conftest*
23392 glibcxx_mresult=0
23394 rm -f conftest*
23395 cat >> confdefs.h <<EOF
23396 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
23401 cat > conftest.$ac_ext <<EOF
23402 #line 23403 "configure"
23403 #include "confdefs.h"
23404 #include <unistd.h>
23405 #include <sys/time.h>
23406 #include <sys/resource.h>
23408 int main() {
23409 int f = RLIMIT_VMEM ;
23410 ; return 0; }
23412 if { (eval echo configure:23413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23413 rm -rf conftest*
23414 glibcxx_mresult=1
23415 else
23416 echo "configure: failed program was:" >&5
23417 cat conftest.$ac_ext >&5
23418 rm -rf conftest*
23419 glibcxx_mresult=0
23421 rm -f conftest*
23422 cat >> confdefs.h <<EOF
23423 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
23428 cat > conftest.$ac_ext <<EOF
23429 #line 23430 "configure"
23430 #include "confdefs.h"
23431 #include <unistd.h>
23432 #include <sys/time.h>
23433 #include <sys/resource.h>
23435 int main() {
23436 int f = RLIMIT_AS ;
23437 ; return 0; }
23439 if { (eval echo configure:23440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23440 rm -rf conftest*
23441 glibcxx_mresult=1
23442 else
23443 echo "configure: failed program was:" >&5
23444 cat conftest.$ac_ext >&5
23445 rm -rf conftest*
23446 glibcxx_mresult=0
23448 rm -f conftest*
23449 cat >> confdefs.h <<EOF
23450 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
23455 # Check for rlimit, setrlimit.
23456 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23457 echo $ac_n "(cached) $ac_c" 1>&6
23458 else
23460 cat > conftest.$ac_ext <<EOF
23461 #line 23462 "configure"
23462 #include "confdefs.h"
23463 #include <unistd.h>
23464 #include <sys/time.h>
23465 #include <sys/resource.h>
23467 int main() {
23468 struct rlimit r; setrlimit(0, &r);
23469 ; return 0; }
23471 if { (eval echo configure:23472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23472 rm -rf conftest*
23473 ac_setrlimit=yes
23474 else
23475 echo "configure: failed program was:" >&5
23476 cat conftest.$ac_ext >&5
23477 rm -rf conftest*
23478 ac_setrlimit=no
23480 rm -f conftest*
23486 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23487 echo "configure:23488: checking for testsuite memory limit support" >&5
23488 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23489 ac_mem_limits=yes
23490 cat >> confdefs.h <<\EOF
23491 #define _GLIBCXX_MEM_LIMITS 1
23494 else
23495 ac_mem_limits=no
23497 echo "$ac_t""$ac_mem_limits" 1>&6
23500 # Look for setenv, so that extended locale tests can be performed.
23502 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23503 echo "configure:23504: checking for setenv declaration" >&5
23504 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
23505 if eval "test \"`echo '$''{'glibcxx_cv_func_setenv_use'+set}'`\" = set"; then
23506 echo $ac_n "(cached) $ac_c" 1>&6
23507 else
23510 ac_ext=C
23511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23512 ac_cpp='$CXXCPP $CPPFLAGS'
23513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23515 cross_compiling=$ac_cv_prog_cxx_cross
23517 cat > conftest.$ac_ext <<EOF
23518 #line 23519 "configure"
23519 #include "confdefs.h"
23520 #include <stdlib.h>
23521 int main() {
23522 setenv(0, 0, 0);
23523 ; return 0; }
23525 if { (eval echo configure:23526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23526 rm -rf conftest*
23527 glibcxx_cv_func_setenv_use=yes
23528 else
23529 echo "configure: failed program was:" >&5
23530 cat conftest.$ac_ext >&5
23531 rm -rf conftest*
23532 glibcxx_cv_func_setenv_use=no
23534 rm -f conftest*
23535 ac_ext=c
23536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23537 ac_cpp='$CPP $CPPFLAGS'
23538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23540 cross_compiling=$ac_cv_prog_cc_cross
23546 echo "$ac_t""$glibcxx_cv_func_setenv_use" 1>&6
23547 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
23548 for ac_func in setenv
23550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23551 echo "configure:23552: checking for $ac_func" >&5
23552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23553 echo $ac_n "(cached) $ac_c" 1>&6
23554 else
23555 cat > conftest.$ac_ext <<EOF
23556 #line 23557 "configure"
23557 #include "confdefs.h"
23558 /* System header to define __stub macros and hopefully few prototypes,
23559 which can conflict with char $ac_func(); below. */
23560 #include <assert.h>
23561 /* Override any gcc2 internal prototype to avoid an error. */
23562 /* We use char because int might match the return type of a gcc2
23563 builtin and then its argument prototype would still apply. */
23564 char $ac_func();
23566 int main() {
23568 /* The GNU C library defines this for functions which it implements
23569 to always fail with ENOSYS. Some functions are actually named
23570 something starting with __ and the normal name is an alias. */
23571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23572 choke me
23573 #else
23574 $ac_func();
23575 #endif
23577 ; return 0; }
23579 if { (eval echo configure:23580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23580 rm -rf conftest*
23581 eval "ac_cv_func_$ac_func=yes"
23582 else
23583 echo "configure: failed program was:" >&5
23584 cat conftest.$ac_ext >&5
23585 rm -rf conftest*
23586 eval "ac_cv_func_$ac_func=no"
23588 rm -f conftest*
23591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23592 echo "$ac_t""yes" 1>&6
23593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23594 cat >> confdefs.h <<EOF
23595 #define $ac_tr_func 1
23598 else
23599 echo "$ac_t""no" 1>&6
23601 done
23607 # Export file names for ABI checking.
23608 baseline_dir="${glibcxx_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23611 # Determine if checking the ABI is desirable.
23612 if test x$enable_symvers = xno; then
23613 enable_abi_check=no
23614 else
23615 case "$host" in
23616 *-*-cygwin*)
23617 enable_abi_check=no ;;
23619 enable_abi_check=yes ;;
23620 esac
23625 if test "$enable_wchar_t" = yes; then
23626 GLIBCXX_TEST_WCHAR_T_TRUE=
23627 GLIBCXX_TEST_WCHAR_T_FALSE='#'
23628 else
23629 GLIBCXX_TEST_WCHAR_T_TRUE='#'
23630 GLIBCXX_TEST_WCHAR_T_FALSE=
23634 if test "$enable_abi_check" = yes; then
23635 GLIBCXX_TEST_ABI_TRUE=
23636 GLIBCXX_TEST_ABI_FALSE='#'
23637 else
23638 GLIBCXX_TEST_ABI_TRUE='#'
23639 GLIBCXX_TEST_ABI_FALSE=
23643 # Propagate the target-specific source directories through the build chain.
23644 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23645 # uses it, and it only gets used in this file.)
23646 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23647 OS_INC_SRCDIR=config/${os_include_dir}
23648 FPOS_INC_SRCDIR=config/${fpos_include_dir}
23654 # Determine cross-compile flags and all AM_CONDITIONALs.
23658 if test "$CANADIAN" = yes; then
23659 CANADIAN_TRUE=
23660 CANADIAN_FALSE='#'
23661 else
23662 CANADIAN_TRUE='#'
23663 CANADIAN_FALSE=
23667 if test "$need_libmath" = yes; then
23668 GLIBCXX_BUILD_LIBMATH_TRUE=
23669 GLIBCXX_BUILD_LIBMATH_FALSE='#'
23670 else
23671 GLIBCXX_BUILD_LIBMATH_TRUE='#'
23672 GLIBCXX_BUILD_LIBMATH_FALSE=
23675 cat > confcache <<\EOF
23676 # This file is a shell script that caches the results of configure
23677 # tests run on this system so they can be shared between configure
23678 # scripts and configure runs. It is not useful on other systems.
23679 # If it contains results you don't want to keep, you may remove or edit it.
23681 # By default, configure uses ./config.cache as the cache file,
23682 # creating it if it does not exist already. You can give configure
23683 # the --cache-file=FILE option to use a different cache file; that is
23684 # what configure does when it calls configure scripts in
23685 # subdirectories, so they share the cache.
23686 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23687 # config.status only pays attention to the cache file if you give it the
23688 # --recheck option to rerun configure.
23691 # The following way of writing the cache mishandles newlines in values,
23692 # but we know of no workaround that is simple, portable, and efficient.
23693 # So, don't put newlines in cache variables' values.
23694 # Ultrix sh set writes to stderr and can't be redirected directly,
23695 # and sets the high bit in the cache file unless we assign to the vars.
23696 (set) 2>&1 |
23697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23698 *ac_space=\ *)
23699 # `set' does not quote correctly, so add quotes (double-quote substitution
23700 # turns \\\\ into \\, and sed turns \\ into \).
23701 sed -n \
23702 -e "s/'/'\\\\''/g" \
23703 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23706 # `set' quotes correctly as required by POSIX, so do not add quotes.
23707 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23709 esac >> confcache
23710 if cmp -s $cache_file confcache; then
23712 else
23713 if test -w $cache_file; then
23714 echo "updating cache $cache_file"
23715 cat confcache > $cache_file
23716 else
23717 echo "not updating unwritable cache $cache_file"
23720 rm -f confcache
23723 if test "${multilib}" = "yes"; then
23724 multilib_arg="--enable-multilib"
23725 else
23726 multilib_arg=
23729 # Export all the install information
23731 # Assumes glibcxx_builddir, glibcxx_srcdir are alreay set up and
23732 # exported correctly in GLIBCXX_CONFIGURE.
23733 glibcxx_toolexecdir=no
23734 glibcxx_toolexeclibdir=no
23735 glibcxx_prefixdir=${prefix}
23737 # Process the option --with-gxx-include-dir=<path to include-files directory>
23738 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23739 echo "configure:23740: checking for --with-gxx-include-dir" >&5
23740 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23741 if test "${with_gxx_include_dir+set}" = set; then
23742 withval="$with_gxx_include_dir"
23743 case "${withval}" in
23744 yes)
23745 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23746 gxx_include_dir=no
23749 gxx_include_dir=no
23752 gxx_include_dir=${withval}
23754 esac
23755 else
23756 gxx_include_dir=no
23759 echo "$ac_t""$gxx_include_dir" 1>&6
23761 # Process the option "--enable-version-specific-runtime-libs"
23762 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23763 echo "configure:23764: checking for --enable-version-specific-runtime-libs" >&5
23764 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23765 if test "${enable_version_specific_runtime_libs+set}" = set; then
23766 enableval="$enable_version_specific_runtime_libs"
23767 case "$enableval" in
23768 yes) version_specific_libs=yes ;;
23769 no) version_specific_libs=no ;;
23770 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23771 esac
23772 else
23773 version_specific_libs=no
23775 # Option set, now we can test it.
23776 echo "$ac_t""$version_specific_libs" 1>&6
23778 # Default case for install directory for include files.
23779 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23780 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23783 # Version-specific runtime libs processing.
23784 if test $version_specific_libs = yes; then
23785 # Need the gcc compiler version to know where to install libraries
23786 # and header files if --enable-version-specific-runtime-libs option
23787 # is selected.
23788 if test x"$gxx_include_dir" = x"no"; then
23789 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23791 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23792 glibcxx_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23795 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
23796 # Install a library built with a cross compiler in tooldir, not libdir.
23797 if test x"$glibcxx_toolexecdir" = x"no"; then
23798 if test -n "$with_cross_host" &&
23799 test x"$with_cross_host" != x"no"; then
23800 glibcxx_toolexecdir='$(exec_prefix)/$(target_alias)'
23801 glibcxx_toolexeclibdir='$(toolexecdir)/lib'
23802 else
23803 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23804 glibcxx_toolexeclibdir='$(libdir)'
23806 multi_os_directory=`$CC -print-multi-os-directory`
23807 case $multi_os_directory in
23808 .) ;; # Avoid trailing /.
23809 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
23810 esac
23813 echo $ac_n "checking for install location""... $ac_c" 1>&6
23814 echo "configure:23815: checking for install location" >&5
23815 echo "$ac_t""$gxx_include_dir" 1>&6
23823 # Export all the include and flag information to Makefiles.
23825 # Root level of the build directory include sources.
23826 GLIBCXX_INCLUDES="-I${glibcxx_builddir}/include/${target_alias} -I${glibcxx_builddir}/include"
23828 # Passed down for canadian crosses.
23829 if test x"$CANADIAN" = xyes; then
23830 TOPLEVEL_INCLUDES='-I$(includedir)'
23833 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23835 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23837 # Now, export this to all the little Makefiles....
23844 # Optimization flags that are probably a good idea for thrill-seekers. Just
23845 # uncomment the lines below and make, everything else is ready to go...
23846 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23847 OPTIMIZE_CXXFLAGS=
23850 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23854 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23855 grep "enable shared" > /dev/null; then
23856 LIBSUPCXX_PICFLAGS=-prefer-pic
23857 else
23858 LIBSUPCXX_PICFLAGS=
23862 # Generate the various Makefiles, include files, and scripts.
23863 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am,
23864 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
23865 # will end up installed in the correct place. To work around this not being
23866 # passed # down from config-ml.in -> top_srcdir/Makefile.am ->
23867 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23868 trap '' 1 2 15
23869 cat > confcache <<\EOF
23870 # This file is a shell script that caches the results of configure
23871 # tests run on this system so they can be shared between configure
23872 # scripts and configure runs. It is not useful on other systems.
23873 # If it contains results you don't want to keep, you may remove or edit it.
23875 # By default, configure uses ./config.cache as the cache file,
23876 # creating it if it does not exist already. You can give configure
23877 # the --cache-file=FILE option to use a different cache file; that is
23878 # what configure does when it calls configure scripts in
23879 # subdirectories, so they share the cache.
23880 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23881 # config.status only pays attention to the cache file if you give it the
23882 # --recheck option to rerun configure.
23885 # The following way of writing the cache mishandles newlines in values,
23886 # but we know of no workaround that is simple, portable, and efficient.
23887 # So, don't put newlines in cache variables' values.
23888 # Ultrix sh set writes to stderr and can't be redirected directly,
23889 # and sets the high bit in the cache file unless we assign to the vars.
23890 (set) 2>&1 |
23891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23892 *ac_space=\ *)
23893 # `set' does not quote correctly, so add quotes (double-quote substitution
23894 # turns \\\\ into \\, and sed turns \\ into \).
23895 sed -n \
23896 -e "s/'/'\\\\''/g" \
23897 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23900 # `set' quotes correctly as required by POSIX, so do not add quotes.
23901 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23903 esac >> confcache
23904 if cmp -s $cache_file confcache; then
23906 else
23907 if test -w $cache_file; then
23908 echo "updating cache $cache_file"
23909 cat confcache > $cache_file
23910 else
23911 echo "not updating unwritable cache $cache_file"
23914 rm -f confcache
23916 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23919 # Let make expand exec_prefix.
23920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23922 # Any assignment to VPATH causes Sun make to only execute
23923 # the first set of double-colon rules, so remove it if not needed.
23924 # If there is a colon in the path, we need to keep it.
23925 if test "x$srcdir" = x.; then
23926 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23929 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23931 DEFS=-DHAVE_CONFIG_H
23933 # Without the "./", some shells look in PATH for config.status.
23934 : ${CONFIG_STATUS=./config.status}
23936 echo creating $CONFIG_STATUS
23937 rm -f $CONFIG_STATUS
23938 cat > $CONFIG_STATUS <<EOF
23939 #! /bin/sh
23940 # Generated automatically by configure.
23941 # Run this file to recreate the current configuration.
23942 # This directory was configured as follows,
23943 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23945 # $0 $ac_configure_args
23947 # Compiler output produced by configure, useful for debugging
23948 # configure, is in ./config.log if it exists.
23950 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23951 for ac_option
23953 case "\$ac_option" in
23954 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23955 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23956 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23957 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23958 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23959 exit 0 ;;
23960 -help | --help | --hel | --he | --h)
23961 echo "\$ac_cs_usage"; exit 0 ;;
23962 *) echo "\$ac_cs_usage"; exit 1 ;;
23963 esac
23964 done
23966 ac_given_srcdir=$srcdir
23967 ac_given_INSTALL="$INSTALL"
23969 trap 'rm -fr `echo "Makefile \
23970 include/Makefile src/Makefile \
23971 libmath/Makefile libsupc++/Makefile \
23972 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23974 cat >> $CONFIG_STATUS <<EOF
23976 # Protect against being on the right side of a sed subst in config.status.
23977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23979 $ac_vpsub
23980 $extrasub
23981 s%@SHELL@%$SHELL%g
23982 s%@CFLAGS@%$CFLAGS%g
23983 s%@CPPFLAGS@%$CPPFLAGS%g
23984 s%@CXXFLAGS@%$CXXFLAGS%g
23985 s%@FFLAGS@%$FFLAGS%g
23986 s%@DEFS@%$DEFS%g
23987 s%@LDFLAGS@%$LDFLAGS%g
23988 s%@LIBS@%$LIBS%g
23989 s%@exec_prefix@%$exec_prefix%g
23990 s%@prefix@%$prefix%g
23991 s%@program_transform_name@%$program_transform_name%g
23992 s%@bindir@%$bindir%g
23993 s%@sbindir@%$sbindir%g
23994 s%@libexecdir@%$libexecdir%g
23995 s%@datadir@%$datadir%g
23996 s%@sysconfdir@%$sysconfdir%g
23997 s%@sharedstatedir@%$sharedstatedir%g
23998 s%@localstatedir@%$localstatedir%g
23999 s%@libdir@%$libdir%g
24000 s%@includedir@%$includedir%g
24001 s%@oldincludedir@%$oldincludedir%g
24002 s%@infodir@%$infodir%g
24003 s%@mandir@%$mandir%g
24004 s%@PACKAGE@%$PACKAGE%g
24005 s%@libtool_VERSION@%$libtool_VERSION%g
24006 s%@toplevel_srcdir@%$toplevel_srcdir%g
24007 s%@host@%$host%g
24008 s%@host_alias@%$host_alias%g
24009 s%@host_cpu@%$host_cpu%g
24010 s%@host_vendor@%$host_vendor%g
24011 s%@host_os@%$host_os%g
24012 s%@target@%$target%g
24013 s%@target_alias@%$target_alias%g
24014 s%@target_cpu@%$target_cpu%g
24015 s%@target_vendor@%$target_vendor%g
24016 s%@target_os@%$target_os%g
24017 s%@build@%$build%g
24018 s%@build_alias@%$build_alias%g
24019 s%@build_cpu@%$build_cpu%g
24020 s%@build_vendor@%$build_vendor%g
24021 s%@build_os@%$build_os%g
24022 s%@glibcxx_builddir@%$glibcxx_builddir%g
24023 s%@glibcxx_srcdir@%$glibcxx_srcdir%g
24024 s%@AWK@%$AWK%g
24025 s%@LN_S@%$LN_S%g
24026 s%@glibcxx_basedir@%$glibcxx_basedir%g
24027 s%@CC@%$CC%g
24028 s%@glibcxx_CXX@%$glibcxx_CXX%g
24029 s%@AS@%$AS%g
24030 s%@AR@%$AR%g
24031 s%@RANLIB@%$RANLIB%g
24032 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24033 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24034 s%@INSTALL_DATA@%$INSTALL_DATA%g
24035 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24036 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24037 s%@MAINT@%$MAINT%g
24038 s%@EXEEXT@%$EXEEXT%g
24039 s%@VERSION@%$VERSION%g
24040 s%@ACLOCAL@%$ACLOCAL%g
24041 s%@AUTOCONF@%$AUTOCONF%g
24042 s%@AUTOMAKE@%$AUTOMAKE%g
24043 s%@AUTOHEADER@%$AUTOHEADER%g
24044 s%@MAKEINFO@%$MAKEINFO%g
24045 s%@SET_MAKE@%$SET_MAKE%g
24046 s%@OBJEXT@%$OBJEXT%g
24047 s%@STRIP@%$STRIP%g
24048 s%@LIBTOOL@%$LIBTOOL%g
24049 s%@CXXCPP@%$CXXCPP%g
24050 s%@enable_shared@%$enable_shared%g
24051 s%@enable_static@%$enable_static%g
24052 s%@ifGNUmake@%$ifGNUmake%g
24053 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24054 s%@GLIBCXX_BUILD_PCH_TRUE@%$GLIBCXX_BUILD_PCH_TRUE%g
24055 s%@GLIBCXX_BUILD_PCH_FALSE@%$GLIBCXX_BUILD_PCH_FALSE%g
24056 s%@glibcxx_PCHFLAGS@%$glibcxx_PCHFLAGS%g
24057 s%@CSTDIO_H@%$CSTDIO_H%g
24058 s%@FPOS_H@%$FPOS_H%g
24059 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24060 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24061 s%@CPP@%$CPP%g
24062 s%@check_msgfmt@%$check_msgfmt%g
24063 s%@glibcxx_MOFILES@%$glibcxx_MOFILES%g
24064 s%@glibcxx_POFILES@%$glibcxx_POFILES%g
24065 s%@glibcxx_localedir@%$glibcxx_localedir%g
24066 s%@USE_NLS@%$USE_NLS%g
24067 s%@CLOCALE_H@%$CLOCALE_H%g
24068 s%@CCODECVT_H@%$CCODECVT_H%g
24069 s%@CMESSAGES_H@%$CMESSAGES_H%g
24070 s%@CCODECVT_CC@%$CCODECVT_CC%g
24071 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24072 s%@CCTYPE_CC@%$CCTYPE_CC%g
24073 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24074 s%@CMONEY_CC@%$CMONEY_CC%g
24075 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24076 s%@CTIME_H@%$CTIME_H%g
24077 s%@CTIME_CC@%$CTIME_CC%g
24078 s%@CLOCALE_CC@%$CLOCALE_CC%g
24079 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24080 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24081 s%@GLIBCXX_C_HEADERS_C_TRUE@%$GLIBCXX_C_HEADERS_C_TRUE%g
24082 s%@GLIBCXX_C_HEADERS_C_FALSE@%$GLIBCXX_C_HEADERS_C_FALSE%g
24083 s%@GLIBCXX_C_HEADERS_C_STD_TRUE@%$GLIBCXX_C_HEADERS_C_STD_TRUE%g
24084 s%@GLIBCXX_C_HEADERS_C_STD_FALSE@%$GLIBCXX_C_HEADERS_C_STD_FALSE%g
24085 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE%g
24086 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE%g
24087 s%@glibcxx_thread_h@%$glibcxx_thread_h%g
24088 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24089 s%@GLIBCXX_BUILD_DEBUG_TRUE@%$GLIBCXX_BUILD_DEBUG_TRUE%g
24090 s%@GLIBCXX_BUILD_DEBUG_FALSE@%$GLIBCXX_BUILD_DEBUG_FALSE%g
24091 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24092 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24093 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24094 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24095 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24096 s%@WERROR@%$WERROR%g
24097 s%@SYMVER_MAP@%$SYMVER_MAP%g
24098 s%@port_specific_symbol_files@%$port_specific_symbol_files%g
24099 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE%g
24100 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE%g
24101 s%@baseline_dir@%$baseline_dir%g
24102 s%@GLIBCXX_TEST_WCHAR_T_TRUE@%$GLIBCXX_TEST_WCHAR_T_TRUE%g
24103 s%@GLIBCXX_TEST_WCHAR_T_FALSE@%$GLIBCXX_TEST_WCHAR_T_FALSE%g
24104 s%@GLIBCXX_TEST_ABI_TRUE@%$GLIBCXX_TEST_ABI_TRUE%g
24105 s%@GLIBCXX_TEST_ABI_FALSE@%$GLIBCXX_TEST_ABI_FALSE%g
24106 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24107 s%@FPOS_INC_SRCDIR@%$FPOS_INC_SRCDIR%g
24108 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24109 s%@GLIBCXX_IS_CROSS_COMPILING@%$GLIBCXX_IS_CROSS_COMPILING%g
24110 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24111 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24112 s%@GLIBCXX_BUILD_LIBMATH_TRUE@%$GLIBCXX_BUILD_LIBMATH_TRUE%g
24113 s%@GLIBCXX_BUILD_LIBMATH_FALSE@%$GLIBCXX_BUILD_LIBMATH_FALSE%g
24114 s%@glibcxx_prefixdir@%$glibcxx_prefixdir%g
24115 s%@gxx_include_dir@%$gxx_include_dir%g
24116 s%@glibcxx_toolexecdir@%$glibcxx_toolexecdir%g
24117 s%@glibcxx_toolexeclibdir@%$glibcxx_toolexeclibdir%g
24118 s%@GLIBCXX_INCLUDES@%$GLIBCXX_INCLUDES%g
24119 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24120 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24121 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24122 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24123 s%@WARN_FLAGS@%$WARN_FLAGS%g
24124 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24126 CEOF
24129 cat >> $CONFIG_STATUS <<\EOF
24131 # Split the substitutions into bite-sized pieces for seds with
24132 # small command number limits, like on Digital OSF/1 and HP-UX.
24133 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24134 ac_file=1 # Number of current file.
24135 ac_beg=1 # First line for current file.
24136 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24137 ac_more_lines=:
24138 ac_sed_cmds=""
24139 while $ac_more_lines; do
24140 if test $ac_beg -gt 1; then
24141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24142 else
24143 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24145 if test ! -s conftest.s$ac_file; then
24146 ac_more_lines=false
24147 rm -f conftest.s$ac_file
24148 else
24149 if test -z "$ac_sed_cmds"; then
24150 ac_sed_cmds="sed -f conftest.s$ac_file"
24151 else
24152 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24154 ac_file=`expr $ac_file + 1`
24155 ac_beg=$ac_end
24156 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24158 done
24159 if test -z "$ac_sed_cmds"; then
24160 ac_sed_cmds=cat
24164 cat >> $CONFIG_STATUS <<EOF
24166 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24167 include/Makefile src/Makefile \
24168 libmath/Makefile libsupc++/Makefile \
24169 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24171 cat >> $CONFIG_STATUS <<\EOF
24172 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24174 case "$ac_file" in
24175 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24176 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24177 *) ac_file_in="${ac_file}.in" ;;
24178 esac
24180 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24182 # Remove last slash and all that follows it. Not all systems have dirname.
24183 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24184 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24185 # The file is in a subdirectory.
24186 test ! -d "$ac_dir" && mkdir "$ac_dir"
24187 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24188 # A "../" for each directory in $ac_dir_suffix.
24189 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24190 else
24191 ac_dir_suffix= ac_dots=
24194 case "$ac_given_srcdir" in
24195 .) srcdir=.
24196 if test -z "$ac_dots"; then top_srcdir=.
24197 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24198 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24199 *) # Relative path.
24200 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24201 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24202 esac
24204 case "$ac_given_INSTALL" in
24205 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24206 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24207 esac
24209 echo creating "$ac_file"
24210 rm -f "$ac_file"
24211 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24212 case "$ac_file" in
24213 *Makefile*) ac_comsub="1i\\
24214 # $configure_input" ;;
24215 *) ac_comsub= ;;
24216 esac
24218 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24219 sed -e "$ac_comsub
24220 s%@configure_input@%$configure_input%g
24221 s%@srcdir@%$srcdir%g
24222 s%@top_srcdir@%$top_srcdir%g
24223 s%@INSTALL@%$INSTALL%g
24224 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24225 fi; done
24226 rm -f conftest.s*
24228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24231 # ac_d sets the value in "#define NAME VALUE" lines.
24232 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24233 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24234 ac_dC='\3'
24235 ac_dD='%g'
24236 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24237 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24238 ac_uB='\([ ]\)%\1#\2define\3'
24239 ac_uC=' '
24240 ac_uD='\4%g'
24241 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24242 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24243 ac_eB='$%\1#\2define\3'
24244 ac_eC=' '
24245 ac_eD='%g'
24247 if test "${CONFIG_HEADERS+set}" != set; then
24249 cat >> $CONFIG_STATUS <<EOF
24250 CONFIG_HEADERS="config.h"
24252 cat >> $CONFIG_STATUS <<\EOF
24254 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24256 case "$ac_file" in
24257 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24258 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24259 *) ac_file_in="${ac_file}.in" ;;
24260 esac
24262 echo creating $ac_file
24264 rm -f conftest.frag conftest.in conftest.out
24265 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24266 cat $ac_file_inputs > conftest.in
24270 # Transform confdefs.h into a sed script conftest.vals that substitutes
24271 # the proper values into config.h.in to produce config.h. And first:
24272 # Protect against being on the right side of a sed subst in config.status.
24273 # Protect against being in an unquoted here document in config.status.
24274 rm -f conftest.vals
24275 cat > conftest.hdr <<\EOF
24276 s/[\\&%]/\\&/g
24277 s%[\\$`]%\\&%g
24278 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24279 s%ac_d%ac_u%gp
24280 s%ac_u%ac_e%gp
24282 sed -n -f conftest.hdr confdefs.h > conftest.vals
24283 rm -f conftest.hdr
24285 # This sed command replaces #undef with comments. This is necessary, for
24286 # example, in the case of _POSIX_SOURCE, which is predefined and required
24287 # on some systems where configure will not decide to define it.
24288 cat >> conftest.vals <<\EOF
24289 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24292 # Break up conftest.vals because some shells have a limit on
24293 # the size of here documents, and old seds have small limits too.
24295 rm -f conftest.tail
24296 while :
24298 ac_lines=`grep -c . conftest.vals`
24299 # grep -c gives empty output for an empty file on some AIX systems.
24300 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24301 # Write a limited-size here document to conftest.frag.
24302 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24303 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24304 echo 'CEOF
24305 sed -f conftest.frag conftest.in > conftest.out
24306 rm -f conftest.in
24307 mv conftest.out conftest.in
24308 ' >> $CONFIG_STATUS
24309 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24310 rm -f conftest.vals
24311 mv conftest.tail conftest.vals
24312 done
24313 rm -f conftest.vals
24315 cat >> $CONFIG_STATUS <<\EOF
24316 rm -f conftest.frag conftest.h
24317 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24318 cat conftest.in >> conftest.h
24319 rm -f conftest.in
24320 if cmp -s $ac_file conftest.h 2>/dev/null; then
24321 echo "$ac_file is unchanged"
24322 rm -f conftest.h
24323 else
24324 # Remove last slash and all that follows it. Not all systems have dirname.
24325 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24326 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24327 # The file is in a subdirectory.
24328 test ! -d "$ac_dir" && mkdir "$ac_dir"
24330 rm -f $ac_file
24331 mv conftest.h $ac_file
24333 fi; done
24336 cat >> $CONFIG_STATUS <<EOF
24338 srcdir=${srcdir}
24339 host=${host}
24340 target=${target}
24341 with_target_subdir=${with_target_subdir}
24342 with_build_subdir=${with_build_subdir}
24343 with_multisubdir=${with_multisubdir}
24344 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24345 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24346 glibcxx_basedir=${glibcxx_basedir}
24347 CC="${CC}"
24348 CXX="${CXX}"
24349 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24352 cat >> $CONFIG_STATUS <<\EOF
24353 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24354 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24355 if test -n "$CONFIG_FILES"; then
24356 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24357 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24358 # Ony modify Makefiles that are just being created.
24359 case " $CONFIG_FILES" in
24360 *" Makefile"*)
24361 ac_file=Makefile . ${glibcxx_basedir}/../config-ml.in
24363 esac
24364 case $CONFIG_FILES in
24365 *src/Makefile*)
24366 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24368 esac
24369 case $CONFIG_FILES in
24370 *libsupc++/Makefile*)
24371 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24373 esac
24374 case $CONFIG_FILES in
24375 *testsuite/Makefile*)
24376 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24378 esac
24381 chmod +x scripts/check_survey
24382 chmod +x scripts/testsuite_flags
24383 exit 0
24385 chmod +x $CONFIG_STATUS
24386 rm -fr confdefs* $ac_clean_files
24387 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24391 # Sanity checking & User-visible messages.
24392 # Checks down here, otherwise they get scrolled off before
24393 # the user will notice.
24395 # Trying to get more people to read documentation. Possibly remove
24396 # check and warn all the time. There is no "informational" AC_MSG_
24397 # macro, so these are going to be printed even when --quiet/--silent
24398 # is given.
24399 if test ! -f stamp-sanity-warned; then
24400 touch stamp-sanity-warned
24401 echo ""
24402 echo "Please make certain that you read the installation information here:"
24403 echo " faster => ${srcdir}/docs/html/install.html"
24404 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24405 echo ""
24406 echo "and the configuration information here:"
24407 echo " faster => ${srcdir}/docs/html/configopts.html"
24408 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24409 echo ""
24410 echo "before proceeding with ${_cv_gnu_make_command}."
24411 echo ""