* xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
[official-gcc.git] / libstdc++-v3 / configure
blobd07776b3da992ea4c11ed69af0c020498e896d34
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 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62 --with-gxx-include-dir the installation directory for include files"
63 ac_help="$ac_help
64 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
107 ac_prev=
108 for ac_option
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
114 ac_prev=
115 continue
118 case "$ac_option" in
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 *) ac_optarg= ;;
121 esac
123 # Accept the important Cygnus configure options, so we can diagnose typos.
125 case "$ac_option" in
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 ac_prev=bindir ;;
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
133 ac_prev=build ;;
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 ac_prev=datadir ;;
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 | --da=*)
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 case "$ac_option" in
167 *=*) ;;
168 *) ac_optarg=yes ;;
169 esac
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
183 with_gas=yes ;;
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
188 cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
199 [$ac_default_prefix]
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 [same as prefix]
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
206 [PREFIX/share]
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 [PREFIX/com]
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
222 cat << EOF
223 Host type:
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
238 exit 0 ;;
240 -host | --host | --hos | --ho)
241 ac_prev=host ;;
242 -host=* | --host=* | --hos=* | --ho=*)
243 host="$ac_optarg" ;;
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 ac_prev=infodir ;;
254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255 infodir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
258 ac_prev=libdir ;;
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 ac_prev=mandir ;;
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
283 -nfp | --nfp | --nf)
284 # Obsolete; use --without-fp.
285 with_fp=no ;;
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 | --no-cr | --no-c)
289 no_create=yes ;;
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 no_recursion=yes ;;
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 ac_prev=prefix ;;
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
342 silent=yes ;;
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 ac_prev=sbindir ;;
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 | --sbi=* | --sb=*)
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
353 | --sha | --sh)
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 | --sha=* | --sh=*)
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
362 ac_prev=site ;;
363 -site=* | --site=* | --sit=*)
364 site="$ac_optarg" ;;
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 ac_prev=srcdir ;;
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
378 -target | --target | --targe | --targ | --tar | --ta | --t)
379 ac_prev=target ;;
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 verbose=yes ;;
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
388 exit 0 ;;
390 -with-* | --with-*)
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 case "$ac_option" in
398 *=*) ;;
399 *) ac_optarg=yes ;;
400 esac
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
412 --x)
413 # Obsolete; use --with-x.
414 with_x=yes ;;
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 nonopt="$ac_option"
443 esac
444 done
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461 exec 6>/dev/null
462 else
463 exec 6>&1
465 exec 5>./config.log
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
477 case "$ac_arg" in
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 esac
486 done
488 # NLS nuisances.
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/ios.cc
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
511 ac_prog=$0
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 srcdir=$ac_confdir
515 if test ! -r $srcdir/$ac_unique_file; then
516 srcdir=..
518 else
519 ac_srcdir_defaulted=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 else
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 else
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
541 . "$ac_site_file"
543 done
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
547 . $cache_file
548 else
549 echo "creating cache $cache_file"
550 > $cache_file
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='
566 ' ac_t=' '
567 else
568 ac_n=-n ac_c= ac_t=
570 else
571 ac_n= ac_c='\c' ac_t=
576 PACKAGE=libstdc++
578 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
579 release_VERSION=3.1.0
581 # For libtool versioning info, format is CURRENT:REVISION:AGE
582 libtool_VERSION=4:0:0
585 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
586 # AC 2.50 sets target_alias iff the user specified --target, but we use it
587 # everywhere, so we set it here just to be sure.
588 ac_aux_dir=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install-sh -c"
593 break
594 elif test -f $ac_dir/install.sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install.sh -c"
597 break
599 done
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # Do some error checking and defaulting for the host and target type.
609 # The inputs are:
610 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
612 # The rules are:
613 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 # same time.
615 # 2. Host defaults to nonopt.
616 # 3. If nonopt is not specified, then host defaults to the current host,
617 # as determined by config.guess.
618 # 4. Target and build default to nonopt.
619 # 5. If nonopt is not specified, then target and build default to host.
621 # The aliases save the names the user supplied, while $host etc.
622 # will get canonicalized.
623 case $host---$target---$nonopt in
624 NONE---*---* | *---NONE---* | *---*---NONE) ;;
625 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 esac
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
637 host_alias=$host
638 case "$host_alias" in
639 NONE)
640 case $nonopt in
641 NONE)
642 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 fi ;;
645 *) host_alias=$nonopt ;;
646 esac ;;
647 esac
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
655 echo $ac_n "checking target system type""... $ac_c" 1>&6
656 echo "configure:657: checking target system type" >&5
658 target_alias=$target
659 case "$target_alias" in
660 NONE)
661 case $nonopt in
662 NONE) target_alias=$host_alias ;;
663 *) target_alias=$nonopt ;;
664 esac ;;
665 esac
667 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$target" 1>&6
673 echo $ac_n "checking build system type""... $ac_c" 1>&6
674 echo "configure:675: checking build system type" >&5
676 build_alias=$build
677 case "$build_alias" in
678 NONE)
679 case $nonopt in
680 NONE) build_alias=$host_alias ;;
681 *) build_alias=$nonopt ;;
682 esac ;;
683 esac
685 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$build" 1>&6
691 test "$host_alias" != "$target_alias" &&
692 test "$program_prefix$program_suffix$program_transform_name" = \
693 NONENONEs,x,x, &&
694 program_prefix=${target_alias}-
696 target_alias=${target_alias-$target}
699 # Find a good install program. We prefer a C program (faster),
700 # so one script is as good as another. But avoid the broken or
701 # incompatible versions:
702 # SysV /etc/install, /usr/sbin/install
703 # SunOS /usr/etc/install
704 # IRIX /sbin/install
705 # AIX /bin/install
706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709 # ./install, which can be erroneously created by make from ./install.sh.
710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711 echo "configure:712: checking for a BSD compatible install" >&5
712 if test -z "$INSTALL"; then
713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
715 else
716 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
717 for ac_dir in $PATH; do
718 # Account for people who put trailing slashes in PATH elements.
719 case "$ac_dir/" in
720 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
722 # OSF1 and SCO ODT 3.0 have their own names for install.
723 # Don't use installbsd from OSF since it installs stuff as root
724 # by default.
725 for ac_prog in ginstall scoinst install; do
726 if test -f $ac_dir/$ac_prog; then
727 if test $ac_prog = install &&
728 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729 # AIX install. It has an incompatible calling convention.
731 else
732 ac_cv_path_install="$ac_dir/$ac_prog -c"
733 break 2
736 done
738 esac
739 done
740 IFS="$ac_save_IFS"
743 if test "${ac_cv_path_install+set}" = set; then
744 INSTALL="$ac_cv_path_install"
745 else
746 # As a last resort, use the slow shell script. We don't cache a
747 # path for INSTALL within a source directory, because that will
748 # break other packages using the cache if that directory is
749 # removed, or if the path is relative.
750 INSTALL="$ac_install_sh"
753 echo "$ac_t""$INSTALL" 1>&6
755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756 # It thinks the first close brace ends the variable substitution.
757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
763 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764 echo "configure:765: checking whether build environment is sane" >&5
765 # Just in case
766 sleep 1
767 echo timestamp > conftestfile
768 # Do `set' in a subshell so we don't clobber the current shell's
769 # arguments. Must try -L first in case configure is actually a
770 # symlink; some systems play weird games with the mod time of symlinks
771 # (eg FreeBSD returns the mod time of the symlink's containing
772 # directory).
773 if (
774 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775 if test "$*" = "X"; then
776 # -L didn't work.
777 set X `ls -t $srcdir/configure conftestfile`
779 if test "$*" != "X $srcdir/configure conftestfile" \
780 && test "$*" != "X conftestfile $srcdir/configure"; then
782 # If neither matched, then we have a broken ls. This can happen
783 # if, for instance, CONFIG_SHELL is bash and it inherits a
784 # broken ls alias from the environment. This has actually
785 # happened. Such a system could not be considered "sane".
786 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
787 alias in your environment" 1>&2; exit 1; }
790 test "$2" = conftestfile
792 then
793 # Ok.
795 else
796 { echo "configure: error: newly created file is older than distributed files!
797 Check your system clock" 1>&2; exit 1; }
799 rm -f conftest*
800 echo "$ac_t""yes" 1>&6
801 if test "$program_transform_name" = s,x,x,; then
802 program_transform_name=
803 else
804 # Double any \ or $. echo might interpret backslashes.
805 cat <<\EOF_SED > conftestsed
806 s,\\,\\\\,g; s,\$,$$,g
807 EOF_SED
808 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809 rm -f conftestsed
811 test "$program_prefix" != NONE &&
812 program_transform_name="s,^,${program_prefix},; $program_transform_name"
813 # Use a double $ so make ignores it.
814 test "$program_suffix" != NONE &&
815 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
817 # sed with no file args requires a program.
818 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
820 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 cat > conftestmake <<\EOF
827 all:
828 @echo 'ac_maketemp="${MAKE}"'
830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832 if test -n "$ac_maketemp"; then
833 eval ac_cv_prog_make_${ac_make}_set=yes
834 else
835 eval ac_cv_prog_make_${ac_make}_set=no
837 rm -f conftestmake
839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840 echo "$ac_t""yes" 1>&6
841 SET_MAKE=
842 else
843 echo "$ac_t""no" 1>&6
844 SET_MAKE="MAKE=${MAKE-make}"
848 PACKAGE=$PACKAGE
850 VERSION=$release_VERSION
852 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
855 cat >> confdefs.h <<EOF
856 #define PACKAGE "$PACKAGE"
859 cat >> confdefs.h <<EOF
860 #define VERSION "$VERSION"
865 missing_dir=`cd $ac_aux_dir && pwd`
866 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
867 echo "configure:868: checking for working aclocal" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf. Sigh.
871 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
872 ACLOCAL=aclocal
873 echo "$ac_t""found" 1>&6
874 else
875 ACLOCAL="$missing_dir/missing aclocal"
876 echo "$ac_t""missing" 1>&6
879 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
880 echo "configure:881: checking for working autoconf" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf. Sigh.
884 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
885 AUTOCONF=autoconf
886 echo "$ac_t""found" 1>&6
887 else
888 AUTOCONF="$missing_dir/missing autoconf"
889 echo "$ac_t""missing" 1>&6
892 echo $ac_n "checking for working automake""... $ac_c" 1>&6
893 echo "configure:894: checking for working automake" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf. Sigh.
897 if (automake --version) < /dev/null > /dev/null 2>&1; then
898 AUTOMAKE=automake
899 echo "$ac_t""found" 1>&6
900 else
901 AUTOMAKE="$missing_dir/missing automake"
902 echo "$ac_t""missing" 1>&6
905 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
906 echo "configure:907: checking for working autoheader" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf. Sigh.
910 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
911 AUTOHEADER=autoheader
912 echo "$ac_t""found" 1>&6
913 else
914 AUTOHEADER="$missing_dir/missing autoheader"
915 echo "$ac_t""missing" 1>&6
918 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
919 echo "configure:920: checking for working makeinfo" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf. Sigh.
923 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
924 MAKEINFO=makeinfo
925 echo "$ac_t""found" 1>&6
926 else
927 MAKEINFO="$missing_dir/missing makeinfo"
928 echo "$ac_t""missing" 1>&6
936 # Runs configure.host and configure.target, as well as finds CC, CXX
937 # and assorted other critical bits. Have to run this before the
938 # GLIBCPP_ENABLE_* macros below.
939 if test $host != $build; then
940 ac_tool_prefix=${host_alias}-
941 else
942 ac_tool_prefix=
945 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
946 echo "configure:947: checking for Cygwin environment" >&5
947 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
954 int main() {
956 #ifndef __CYGWIN__
957 #define __CYGWIN__ __CYGWIN32__
958 #endif
959 return __CYGWIN__;
960 ; return 0; }
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963 rm -rf conftest*
964 ac_cv_cygwin=yes
965 else
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
968 rm -rf conftest*
969 ac_cv_cygwin=no
971 rm -f conftest*
972 rm -f conftest*
975 echo "$ac_t""$ac_cv_cygwin" 1>&6
976 CYGWIN=
977 test "$ac_cv_cygwin" = yes && CYGWIN=yes
978 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
979 echo "configure:980: checking for mingw32 environment" >&5
980 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982 else
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
987 int main() {
988 return __MINGW32__;
989 ; return 0; }
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992 rm -rf conftest*
993 ac_cv_mingw32=yes
994 else
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
997 rm -rf conftest*
998 ac_cv_mingw32=no
1000 rm -f conftest*
1001 rm -f conftest*
1004 echo "$ac_t""$ac_cv_mingw32" 1>&6
1005 MINGW32=
1006 test "$ac_cv_mingw32" = yes && MINGW32=yes
1008 # Check whether --enable-multilib or --disable-multilib was given.
1009 if test "${enable_multilib+set}" = set; then
1010 enableval="$enable_multilib"
1011 case "${enableval}" in
1012 yes) multilib=yes ;;
1013 no) multilib=no ;;
1014 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1015 esac
1016 else
1017 multilib=yes
1020 # When building with srcdir == objdir, links to the source files will
1021 # be created in directories within the target_subdir. We have to
1022 # adjust toplevel_srcdir accordingly, so that configure finds
1023 # install-sh and other auxiliary files that live in the top-level
1024 # source directory.
1025 if test "${srcdir}" = "."; then
1026 if test -z "${with_target_subdir}"; then
1027 toprel=".."
1028 else
1029 if test "${with_target_subdir}" != "."; then
1030 toprel="${with_multisrctop}../.."
1031 else
1032 toprel="${with_multisrctop}.."
1035 else
1036 toprel=".."
1038 ac_aux_dir=
1039 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1040 if test -f $ac_dir/install-sh; then
1041 ac_aux_dir=$ac_dir
1042 ac_install_sh="$ac_aux_dir/install-sh -c"
1043 break
1044 elif test -f $ac_dir/install.sh; then
1045 ac_aux_dir=$ac_dir
1046 ac_install_sh="$ac_aux_dir/install.sh -c"
1047 break
1049 done
1050 if test -z "$ac_aux_dir"; then
1051 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1057 toplevel_srcdir=\${top_srcdir}/$toprel
1060 # Export build and source directories.
1061 # These need to be absolute paths, yet at the same time need to
1062 # canonicalize only relative paths, because then amd will not unmount
1063 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1064 glibcpp_builddir=`pwd`
1065 case $srcdir in
1066 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1067 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1068 esac
1074 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1075 # be 'cp -p' if linking isn't available.
1076 #ac_cv_prog_LN_S='cp -p'
1077 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ln -s works" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082 rm -f conftestdata
1083 if ln -s X conftestdata 2>/dev/null
1084 then
1085 rm -f conftestdata
1086 ac_cv_prog_LN_S="ln -s"
1087 else
1088 ac_cv_prog_LN_S=ln
1091 LN_S="$ac_cv_prog_LN_S"
1092 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1093 echo "$ac_t""yes" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1099 # We use these options to decide which functions to include.
1100 # Check whether --with-target-subdir or --without-target-subdir was given.
1101 if test "${with_target_subdir+set}" = set; then
1102 withval="$with_target_subdir"
1106 # Check whether --with-cross-host or --without-cross-host was given.
1107 if test "${with_cross_host+set}" = set; then
1108 withval="$with_cross_host"
1113 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1116 # Never versions of autoconf add an underscore to these functions.
1117 # Prevent future problems ...
1123 # AC_PROG_CC
1125 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1126 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1127 # are probably using a cross compiler, which will not be able to fully
1128 # link an executable. This should really be fixed in autoconf
1129 # itself.
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 ac_dummy="$PATH"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_CC="gcc"
1150 break
1152 done
1153 IFS="$ac_save_ifs"
1156 CC="$ac_cv_prog_CC"
1157 if test -n "$CC"; then
1158 echo "$ac_t""$CC" 1>&6
1159 else
1160 echo "$ac_t""no" 1>&6
1163 if test -z "$CC"; then
1164 # Extract the first word of "cc", so it can be a program name with args.
1165 set dummy cc; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_prog_rejected=no
1176 ac_dummy="$PATH"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1181 ac_prog_rejected=yes
1182 continue
1184 ac_cv_prog_CC="cc"
1185 break
1187 done
1188 IFS="$ac_save_ifs"
1189 if test $ac_prog_rejected = yes; then
1190 # We found a bogon in the path, so make sure we never use it.
1191 set dummy $ac_cv_prog_CC
1192 shift
1193 if test $# -gt 0; then
1194 # We chose a different compiler from the bogus one.
1195 # However, it has the same basename, so the bogon will be chosen
1196 # first if we set CC to just the basename; use the full file name.
1197 shift
1198 set dummy "$ac_dir/$ac_word" "$@"
1199 shift
1200 ac_cv_prog_CC="$@"
1205 CC="$ac_cv_prog_CC"
1206 if test -n "$CC"; then
1207 echo "$ac_t""$CC" 1>&6
1208 else
1209 echo "$ac_t""no" 1>&6
1212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1215 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 cat > conftest.c <<EOF
1221 #ifdef __GNUC__
1222 yes;
1223 #endif
1225 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226 ac_cv_prog_gcc=yes
1227 else
1228 ac_cv_prog_gcc=no
1232 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1234 if test $ac_cv_prog_gcc = yes; then
1235 GCC=yes
1236 ac_test_CFLAGS="${CFLAGS+set}"
1237 ac_save_CFLAGS="$CFLAGS"
1238 CFLAGS=
1239 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244 echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246 ac_cv_prog_cc_g=yes
1247 else
1248 ac_cv_prog_cc_g=no
1250 rm -f conftest*
1254 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255 if test "$ac_test_CFLAGS" = set; then
1256 CFLAGS="$ac_save_CFLAGS"
1257 elif test $ac_cv_prog_cc_g = yes; then
1258 CFLAGS="-g -O2"
1259 else
1260 CFLAGS="-O2"
1262 else
1263 GCC=
1264 test "${CFLAGS+set}" = set || CFLAGS="-g"
1268 # Can't just call these here as g++ requires libstc++ to be built....
1269 # AC_PROG_CXX
1271 # Likewise for AC_PROG_CXX.
1275 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1276 # flags that come in CXX while configuring libstdc++. They're different
1277 # from those used for all other target libraries. If CXX is set in
1278 # the environment, respect that here.
1279 glibcpp_CXX=$CXX
1280 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 if test -n "$glibcpp_CXX"; then
1290 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1291 else
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_glibcpp_CXX="$ac_prog"
1298 break
1300 done
1301 IFS="$ac_save_ifs"
1304 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1305 if test -n "$glibcpp_CXX"; then
1306 echo "$ac_t""$glibcpp_CXX" 1>&6
1307 else
1308 echo "$ac_t""no" 1>&6
1311 test -n "$glibcpp_CXX" && break
1312 done
1313 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1316 CXX=$glibcpp_CXX
1317 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1319 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C++" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 cat > conftest.C <<EOF
1325 #ifdef __GNUC__
1326 yes;
1327 #endif
1329 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330 ac_cv_prog_gxx=yes
1331 else
1332 ac_cv_prog_gxx=no
1336 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1338 if test $ac_cv_prog_gxx = yes; then
1339 GXX=yes
1340 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1341 ac_save_CXXFLAGS="$CXXFLAGS"
1342 CXXFLAGS=
1343 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CXX-g++} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 echo 'void f(){}' > conftest.cc
1349 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1350 ac_cv_prog_cxx_g=yes
1351 else
1352 ac_cv_prog_cxx_g=no
1354 rm -f conftest*
1358 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1359 if test "$ac_test_CXXFLAGS" = set; then
1360 CXXFLAGS="$ac_save_CXXFLAGS"
1361 elif test $ac_cv_prog_cxx_g = yes; then
1362 CXXFLAGS="-g -O2"
1363 else
1364 CXXFLAGS="-O2"
1366 else
1367 GXX=
1368 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1372 # For some reason, gettext needs this.
1374 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error. */
1386 /* We use char because int might match the return type of a gcc2
1387 builtin and then its argument prototype would still apply. */
1388 char strerror();
1390 int main() {
1391 strerror()
1392 ; return 0; }
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 rm -rf conftest*
1396 eval "ac_cv_lib_$ac_lib_var=yes"
1397 else
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1400 rm -rf conftest*
1401 eval "ac_cv_lib_$ac_lib_var=no"
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408 echo "$ac_t""yes" 1>&6
1409 LIBS="$LIBS -lcposix"
1410 else
1411 echo "$ac_t""no" 1>&6
1417 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}as; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 if test -n "$AS"; then
1425 ac_cv_prog_AS="$AS" # Let the user override the test.
1426 else
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 ac_dummy="$PATH"
1429 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 ac_cv_prog_AS="${ac_tool_prefix}as"
1433 break
1435 done
1436 IFS="$ac_save_ifs"
1437 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1440 AS="$ac_cv_prog_AS"
1441 if test -n "$AS"; then
1442 echo "$ac_t""$AS" 1>&6
1443 else
1444 echo "$ac_t""no" 1>&6
1449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ar; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 if test -n "$AR"; then
1457 ac_cv_prog_AR="$AR" # Let the user override the test.
1458 else
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1460 ac_dummy="$PATH"
1461 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_AR="${ac_tool_prefix}ar"
1465 break
1467 done
1468 IFS="$ac_save_ifs"
1469 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1472 AR="$ac_cv_prog_AR"
1473 if test -n "$AR"; then
1474 echo "$ac_t""$AR" 1>&6
1475 else
1476 echo "$ac_t""no" 1>&6
1481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1487 else
1488 if test -n "$RANLIB"; then
1489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1490 else
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1492 ac_dummy="$PATH"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1497 break
1499 done
1500 IFS="$ac_save_ifs"
1503 RANLIB="$ac_cv_prog_RANLIB"
1504 if test -n "$RANLIB"; then
1505 echo "$ac_t""$RANLIB" 1>&6
1506 else
1507 echo "$ac_t""no" 1>&6
1511 if test -z "$ac_cv_prog_RANLIB"; then
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "ranlib", so it can be a program name with args.
1514 set dummy ranlib; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5
1517 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520 if test -n "$RANLIB"; then
1521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1522 else
1523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 ac_dummy="$PATH"
1525 for ac_dir in $ac_dummy; do
1526 test -z "$ac_dir" && ac_dir=.
1527 if test -f $ac_dir/$ac_word; then
1528 ac_cv_prog_RANLIB="ranlib"
1529 break
1531 done
1532 IFS="$ac_save_ifs"
1533 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1536 RANLIB="$ac_cv_prog_RANLIB"
1537 if test -n "$RANLIB"; then
1538 echo "$ac_t""$RANLIB" 1>&6
1539 else
1540 echo "$ac_t""no" 1>&6
1543 else
1544 RANLIB="ranlib-not-found-in-path-error"
1548 # Find a good install program. We prefer a C program (faster),
1549 # so one script is as good as another. But avoid the broken or
1550 # incompatible versions:
1551 # SysV /etc/install, /usr/sbin/install
1552 # SunOS /usr/etc/install
1553 # IRIX /sbin/install
1554 # AIX /bin/install
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1560 echo "configure:1561: checking for a BSD compatible install" >&5
1561 if test -z "$INSTALL"; then
1562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1566 for ac_dir in $PATH; do
1567 # Account for people who put trailing slashes in PATH elements.
1568 case "$ac_dir/" in
1569 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1571 # OSF1 and SCO ODT 3.0 have their own names for install.
1572 # Don't use installbsd from OSF since it installs stuff as root
1573 # by default.
1574 for ac_prog in ginstall scoinst install; do
1575 if test -f $ac_dir/$ac_prog; then
1576 if test $ac_prog = install &&
1577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1578 # AIX install. It has an incompatible calling convention.
1580 else
1581 ac_cv_path_install="$ac_dir/$ac_prog -c"
1582 break 2
1585 done
1587 esac
1588 done
1589 IFS="$ac_save_IFS"
1592 if test "${ac_cv_path_install+set}" = set; then
1593 INSTALL="$ac_cv_path_install"
1594 else
1595 # As a last resort, use the slow shell script. We don't cache a
1596 # path for INSTALL within a source directory, because that will
1597 # break other packages using the cache if that directory is
1598 # removed, or if the path is relative.
1599 INSTALL="$ac_install_sh"
1602 echo "$ac_t""$INSTALL" 1>&6
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether to enable maintainer-specific portions of Makefiles" >&5
1615 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616 if test "${enable_maintainer_mode+set}" = set; then
1617 enableval="$enable_maintainer_mode"
1618 USE_MAINTAINER_MODE=$enableval
1619 else
1620 USE_MAINTAINER_MODE=no
1623 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1626 if test $USE_MAINTAINER_MODE = yes; then
1627 MAINTAINER_MODE_TRUE=
1628 MAINTAINER_MODE_FALSE='#'
1629 else
1630 MAINTAINER_MODE_TRUE='#'
1631 MAINTAINER_MODE_FALSE=
1633 MAINT=$MAINTAINER_MODE_TRUE
1637 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1638 # at least currently, we never actually build a program, so we never
1639 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1640 # fails, because we are probably configuring with a cross compiler
1641 # which can't create executables. So we include AC_EXEEXT to keep
1642 # automake happy, but we don't execute it, since we don't care about
1643 # the result.
1644 if false; then
1645 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1646 # to nothing, so nothing would remain between `then' and `fi' if it
1647 # were not for the `:' below.
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1657 ac_cv_exeext=.exe
1658 else
1659 rm -f conftest*
1660 echo 'int main () { return 0; }' > conftest.$ac_ext
1661 ac_cv_exeext=
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663 for file in conftest.*; do
1664 case $file in
1665 *.c | *.o | *.obj) ;;
1666 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1667 esac
1668 done
1669 else
1670 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1672 rm -f conftest*
1673 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1677 EXEEXT=""
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1680 ac_exeext=$EXEEXT
1684 . ${glibcpp_basedir}/configure.host
1686 case ${glibcpp_basedir} in
1687 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1688 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1689 esac
1691 # This does for the target what configure.host does for the host. In
1692 # addition to possibly modifying the same flags, it also sets up symlinks.
1694 . ${glibcpp_basedir}/configure.target
1695 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1696 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1703 # Check whether --enable-shared or --disable-shared was given.
1704 if test "${enable_shared+set}" = set; then
1705 enableval="$enable_shared"
1706 p=${PACKAGE-default}
1707 case $enableval in
1708 yes) enable_shared=yes ;;
1709 no) enable_shared=no ;;
1711 enable_shared=no
1712 # Look at the argument we got. We use all the common list separators.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714 for pkg in $enableval; do
1715 if test "X$pkg" = "X$p"; then
1716 enable_shared=yes
1718 done
1719 IFS="$ac_save_ifs"
1721 esac
1722 else
1723 enable_shared=yes
1726 # Check whether --enable-static or --disable-static was given.
1727 if test "${enable_static+set}" = set; then
1728 enableval="$enable_static"
1729 p=${PACKAGE-default}
1730 case $enableval in
1731 yes) enable_static=yes ;;
1732 no) enable_static=no ;;
1734 enable_static=no
1735 # Look at the argument we got. We use all the common list separators.
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1737 for pkg in $enableval; do
1738 if test "X$pkg" = "X$p"; then
1739 enable_static=yes
1741 done
1742 IFS="$ac_save_ifs"
1744 esac
1745 else
1746 enable_static=yes
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751 enableval="$enable_fast_install"
1752 p=${PACKAGE-default}
1753 case $enableval in
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1757 enable_fast_install=no
1758 # Look at the argument we got. We use all the common list separators.
1759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760 for pkg in $enableval; do
1761 if test "X$pkg" = "X$p"; then
1762 enable_fast_install=yes
1764 done
1765 IFS="$ac_save_ifs"
1767 esac
1768 else
1769 enable_fast_install=yes
1772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1773 if test "${with_gnu_ld+set}" = set; then
1774 withval="$with_gnu_ld"
1775 test "$withval" = no || with_gnu_ld=yes
1776 else
1777 with_gnu_ld=no
1780 ac_prog=ld
1781 if test "$GCC" = yes; then
1782 # Check if gcc -print-prog-name=ld gives a path.
1783 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1784 echo "configure:1785: checking for ld used by GCC" >&5
1785 case $host in
1786 *-*-mingw*)
1787 # gcc leaves a trailing carriage return which upsets mingw
1788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1791 esac
1792 case $ac_prog in
1793 # Accept absolute paths.
1794 [\\/]* | [A-Za-z]:[\\/]*)
1795 re_direlt='/[^/][^/]*/\.\./'
1796 # Canonicalize the path of ld
1797 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1799 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1800 done
1801 test -z "$LD" && LD="$ac_prog"
1804 # If it fails, then pretend we aren't using GCC.
1805 ac_prog=ld
1808 # If it is relative, then search for the first ld in PATH.
1809 with_gnu_ld=unknown
1811 esac
1812 elif test "$with_gnu_ld" = yes; then
1813 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for GNU ld" >&5
1815 else
1816 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1817 echo "configure:1818: checking for non-GNU ld" >&5
1819 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 if test -z "$LD"; then
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1824 for ac_dir in $PATH; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1827 lt_cv_path_LD="$ac_dir/$ac_prog"
1828 # Check to see if the program is GNU ld. I'd rather use --version,
1829 # but apparently some GNU ld's only accept -v.
1830 # Break only if it was the GNU/non-GNU ld that we prefer.
1831 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1832 test "$with_gnu_ld" != no && break
1833 else
1834 test "$with_gnu_ld" != yes && break
1837 done
1838 IFS="$ac_save_ifs"
1839 else
1840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1844 LD="$lt_cv_path_LD"
1845 if test -n "$LD"; then
1846 echo "$ac_t""$LD" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1850 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1852 echo "configure:1853: checking if the linker ($LD) is GNU ld" >&5
1853 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1857 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1858 lt_cv_prog_gnu_ld=yes
1859 else
1860 lt_cv_prog_gnu_ld=no
1864 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1865 with_gnu_ld=$lt_cv_prog_gnu_ld
1868 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $LD option to reload object files" >&5
1870 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873 lt_cv_ld_reload_flag='-r'
1876 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1877 reload_flag=$lt_cv_ld_reload_flag
1878 test -n "$reload_flag" && reload_flag=" $reload_flag"
1880 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1881 echo "configure:1882: checking for BSD-compatible nm" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 if test -n "$NM"; then
1886 # Let the user override the test.
1887 lt_cv_path_NM="$NM"
1888 else
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1890 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1891 test -z "$ac_dir" && ac_dir=.
1892 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1893 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1894 # Check to see if the nm accepts a BSD-compat flag.
1895 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1896 # nm: unknown option "B" ignored
1897 # Tru64's nm complains that /dev/null is an invalid object file
1898 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1899 lt_cv_path_NM="$tmp_nm -B"
1900 break
1901 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1902 lt_cv_path_NM="$tmp_nm -p"
1903 break
1904 else
1905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1906 continue # so that we can try to find one that supports BSD flags
1909 done
1910 IFS="$ac_save_ifs"
1911 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1915 NM="$lt_cv_path_NM"
1916 echo "$ac_t""$NM" 1>&6
1918 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1919 echo "configure:1920: checking how to recognise dependant libraries" >&5
1920 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923 lt_cv_file_magic_cmd='$MAGIC_CMD'
1924 lt_cv_file_magic_test_file=
1925 lt_cv_deplibs_check_method='unknown'
1926 # Need to set the preceding variable on all platforms that support
1927 # interlibrary dependencies.
1928 # 'none' -- dependencies not supported.
1929 # `unknown' -- same as none, but documents that we really don't know.
1930 # 'pass_all' -- all dependencies passed with no checks.
1931 # 'test_compile' -- check by making test program.
1932 # 'file_magic [regex]' -- check by looking for files in library path
1933 # which responds to the $file_magic_cmd with a given egrep regex.
1934 # If you have `file' or equivalent on your system and you're not sure
1935 # whether `pass_all' will *always* work, you probably want this one.
1937 case $host_os in
1938 aix*)
1939 lt_cv_deplibs_check_method=pass_all
1942 beos*)
1943 lt_cv_deplibs_check_method=pass_all
1946 bsdi4*)
1947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1948 lt_cv_file_magic_cmd='/usr/bin/file -L'
1949 lt_cv_file_magic_test_file=/shlib/libc.so
1952 cygwin* | mingw* |pw32*)
1953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1954 lt_cv_file_magic_cmd='$OBJDUMP -f'
1957 darwin* | rhapsody*)
1958 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1959 lt_cv_file_magic_cmd='/usr/bin/file -L'
1960 case "$host_os" in
1961 rhapsody* | darwin1.012)
1962 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1964 *) # Darwin 1.3 on
1965 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1967 esac
1970 freebsd* )
1971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1972 case $host_cpu in
1973 i*86 )
1974 # Not sure whether the presence of OpenBSD here was a mistake.
1975 # Let's accept both of them until this is cleared up.
1976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1977 lt_cv_file_magic_cmd=/usr/bin/file
1978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1980 esac
1981 else
1982 lt_cv_deplibs_check_method=pass_all
1986 gnu*)
1987 lt_cv_deplibs_check_method=pass_all
1990 hpux10.20*|hpux11*)
1991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992 lt_cv_file_magic_cmd=/usr/bin/file
1993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1996 irix5* | irix6*)
1997 case $host_os in
1998 irix5*)
1999 # this will be overridden with pass_all, but let us keep it just in case
2000 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2003 case $LD in
2004 *-32|*"-32 ") libmagic=32-bit;;
2005 *-n32|*"-n32 ") libmagic=N32;;
2006 *-64|*"-64 ") libmagic=64-bit;;
2007 *) libmagic=never-match;;
2008 esac
2009 # this will be overridden with pass_all, but let us keep it just in case
2010 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2012 esac
2013 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2014 lt_cv_deplibs_check_method=pass_all
2017 # This must be Linux ELF.
2018 linux-gnu*)
2019 case $host_cpu in
2020 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2021 lt_cv_deplibs_check_method=pass_all ;;
2023 # glibc up to 2.1.1 does not perform some relocations on ARM
2024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2025 esac
2026 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2029 netbsd*)
2030 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2031 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2032 else
2033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2037 newsos6)
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2039 lt_cv_file_magic_cmd=/usr/bin/file
2040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2043 osf3* | osf4* | osf5*)
2044 # this will be overridden with pass_all, but let us keep it just in case
2045 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2046 lt_cv_file_magic_test_file=/shlib/libc.so
2047 lt_cv_deplibs_check_method=pass_all
2050 sco3.2v5*)
2051 lt_cv_deplibs_check_method=pass_all
2054 solaris*)
2055 lt_cv_deplibs_check_method=pass_all
2056 lt_cv_file_magic_test_file=/lib/libc.so
2059 sysv5uw[78]* | sysv4*uw2*)
2060 lt_cv_deplibs_check_method=pass_all
2063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2064 case $host_vendor in
2065 ncr)
2066 lt_cv_deplibs_check_method=pass_all
2068 motorola)
2069 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]'
2070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2072 esac
2074 esac
2078 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2079 file_magic_cmd=$lt_cv_file_magic_cmd
2080 deplibs_check_method=$lt_cv_deplibs_check_method
2082 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2083 echo "configure:2084: checking for object suffix" >&5
2084 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 rm -f conftest*
2088 echo 'int i = 1;' > conftest.$ac_ext
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 for ac_file in conftest.*; do
2091 case $ac_file in
2092 *.c) ;;
2093 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094 esac
2095 done
2096 else
2097 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2099 rm -f conftest*
2102 echo "$ac_t""$ac_cv_objext" 1>&6
2103 OBJEXT=$ac_cv_objext
2104 ac_objext=$ac_cv_objext
2106 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2108 # Only perform the check for file, if the check method requires it
2109 case $deplibs_check_method in
2110 file_magic*)
2111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2112 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ${ac_tool_prefix}file" >&5
2114 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117 case $MAGIC_CMD in
2119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2121 ?:/*)
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2125 ac_save_MAGIC_CMD="$MAGIC_CMD"
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 ac_dummy="/usr/bin:$PATH"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/${ac_tool_prefix}file; then
2131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2132 if test -n "$file_magic_test_file"; then
2133 case $deplibs_check_method in
2134 "file_magic "*)
2135 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2138 egrep "$file_magic_regex" > /dev/null; then
2140 else
2141 cat <<EOF 1>&2
2143 *** Warning: the command libtool uses to detect shared libraries,
2144 *** $file_magic_cmd, produces output that libtool cannot recognize.
2145 *** The result is that libtool may fail to recognize shared libraries
2146 *** as such. This will affect the creation of libtool libraries that
2147 *** depend on shared libraries, but programs linked with such libtool
2148 *** libraries will work regardless of this problem. Nevertheless, you
2149 *** may want to report the problem to your system manager and/or to
2150 *** bug-libtool@gnu.org
2153 fi ;;
2154 esac
2156 break
2158 done
2159 IFS="$ac_save_ifs"
2160 MAGIC_CMD="$ac_save_MAGIC_CMD"
2162 esac
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if test -n "$MAGIC_CMD"; then
2167 echo "$ac_t""$MAGIC_CMD" 1>&6
2168 else
2169 echo "$ac_t""no" 1>&6
2172 if test -z "$lt_cv_path_MAGIC_CMD"; then
2173 if test -n "$ac_tool_prefix"; then
2174 echo $ac_n "checking for file""... $ac_c" 1>&6
2175 echo "configure:2176: checking for file" >&5
2176 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 case $MAGIC_CMD in
2181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2183 ?:/*)
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187 ac_save_MAGIC_CMD="$MAGIC_CMD"
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2189 ac_dummy="/usr/bin:$PATH"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/file; then
2193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2194 if test -n "$file_magic_test_file"; then
2195 case $deplibs_check_method in
2196 "file_magic "*)
2197 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200 egrep "$file_magic_regex" > /dev/null; then
2202 else
2203 cat <<EOF 1>&2
2205 *** Warning: the command libtool uses to detect shared libraries,
2206 *** $file_magic_cmd, produces output that libtool cannot recognize.
2207 *** The result is that libtool may fail to recognize shared libraries
2208 *** as such. This will affect the creation of libtool libraries that
2209 *** depend on shared libraries, but programs linked with such libtool
2210 *** libraries will work regardless of this problem. Nevertheless, you
2211 *** may want to report the problem to your system manager and/or to
2212 *** bug-libtool@gnu.org
2215 fi ;;
2216 esac
2218 break
2220 done
2221 IFS="$ac_save_ifs"
2222 MAGIC_CMD="$ac_save_MAGIC_CMD"
2224 esac
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if test -n "$MAGIC_CMD"; then
2229 echo "$ac_t""$MAGIC_CMD" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2234 else
2235 MAGIC_CMD=:
2241 esac
2243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test -n "$RANLIB"; then
2251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2252 else
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259 break
2261 done
2262 IFS="$ac_save_ifs"
2265 RANLIB="$ac_cv_prog_RANLIB"
2266 if test -n "$RANLIB"; then
2267 echo "$ac_t""$RANLIB" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2273 if test -z "$ac_cv_prog_RANLIB"; then
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "ranlib", so it can be a program name with args.
2276 set dummy ranlib; ac_word=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 if test -n "$RANLIB"; then
2283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2284 else
2285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2286 ac_dummy="$PATH"
2287 for ac_dir in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir=.
2289 if test -f $ac_dir/$ac_word; then
2290 ac_cv_prog_RANLIB="ranlib"
2291 break
2293 done
2294 IFS="$ac_save_ifs"
2295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300 echo "$ac_t""$RANLIB" 1>&6
2301 else
2302 echo "$ac_t""no" 1>&6
2305 else
2306 RANLIB=":"
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 if test -n "$STRIP"; then
2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="$PATH"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 break
2328 done
2329 IFS="$ac_save_ifs"
2332 STRIP="$ac_cv_prog_STRIP"
2333 if test -n "$STRIP"; then
2334 echo "$ac_t""$STRIP" 1>&6
2335 else
2336 echo "$ac_t""no" 1>&6
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349 if test -n "$STRIP"; then
2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351 else
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2353 ac_dummy="$PATH"
2354 for ac_dir in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir=.
2356 if test -f $ac_dir/$ac_word; then
2357 ac_cv_prog_STRIP="strip"
2358 break
2360 done
2361 IFS="$ac_save_ifs"
2362 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367 echo "$ac_t""$STRIP" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2372 else
2373 STRIP=":"
2378 # Check for any special flags to pass to ltconfig.
2379 libtool_flags="--cache-file=$cache_file"
2380 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2381 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2382 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2383 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2384 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2385 libtool_flags="$libtool_flags --enable-dlopen"
2387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2388 if test "${enable_libtool_lock+set}" = set; then
2389 enableval="$enable_libtool_lock"
2393 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2394 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2396 # Check whether --with-pic or --without-pic was given.
2397 if test "${with_pic+set}" = set; then
2398 withval="$with_pic"
2399 pic_mode="$withval"
2400 else
2401 pic_mode=default
2404 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2405 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2407 # Some flags need to be propagated to the compiler or linker for good
2408 # libtool support.
2409 case $host in
2410 *-*-irix6*)
2411 # Find out which ABI we are using.
2412 echo '#line 2413 "configure"' > conftest.$ac_ext
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 case `/usr/bin/file conftest.$ac_objext` in
2415 *32-bit*)
2416 LD="${LD-ld} -32"
2418 *N32*)
2419 LD="${LD-ld} -n32"
2421 *64-bit*)
2422 LD="${LD-ld} -64"
2424 esac
2426 rm -rf conftest*
2429 *-*-sco3.2v5*)
2430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2431 SAVE_CFLAGS="$CFLAGS"
2432 CFLAGS="$CFLAGS -belf"
2433 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether the C compiler needs -belf" >&5
2435 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2439 ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2450 int main() {
2452 ; return 0; }
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 lt_cv_cc_needs_belf=yes
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 lt_cv_cc_needs_belf=no
2463 rm -f conftest*
2464 ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2476 CFLAGS="$SAVE_CFLAGS"
2481 esac
2483 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2484 echo "configure:2485: checking how to run the C++ preprocessor" >&5
2485 if test -z "$CXXCPP"; then
2486 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 ac_ext=C
2490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cxx_cross
2495 CXXCPP="${CXX-g++} -E"
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <stdlib.h>
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 CXXCPP=/lib/cpp
2513 rm -f conftest*
2514 ac_cv_prog_CXXCPP="$CXXCPP"
2515 ac_ext=c
2516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cc_cross
2523 CXXCPP="$ac_cv_prog_CXXCPP"
2524 echo "$ac_t""$CXXCPP" 1>&6
2527 # Save cache, so that ltconfig can load it
2528 cat > confcache <<\EOF
2529 # This file is a shell script that caches the results of configure
2530 # tests run on this system so they can be shared between configure
2531 # scripts and configure runs. It is not useful on other systems.
2532 # If it contains results you don't want to keep, you may remove or edit it.
2534 # By default, configure uses ./config.cache as the cache file,
2535 # creating it if it does not exist already. You can give configure
2536 # the --cache-file=FILE option to use a different cache file; that is
2537 # what configure does when it calls configure scripts in
2538 # subdirectories, so they share the cache.
2539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2540 # config.status only pays attention to the cache file if you give it the
2541 # --recheck option to rerun configure.
2544 # The following way of writing the cache mishandles newlines in values,
2545 # but we know of no workaround that is simple, portable, and efficient.
2546 # So, don't put newlines in cache variables' values.
2547 # Ultrix sh set writes to stderr and can't be redirected directly,
2548 # and sets the high bit in the cache file unless we assign to the vars.
2549 (set) 2>&1 |
2550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2551 *ac_space=\ *)
2552 # `set' does not quote correctly, so add quotes (double-quote substitution
2553 # turns \\\\ into \\, and sed turns \\ into \).
2554 sed -n \
2555 -e "s/'/'\\\\''/g" \
2556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2559 # `set' quotes correctly as required by POSIX, so do not add quotes.
2560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2562 esac >> confcache
2563 if cmp -s $cache_file confcache; then
2565 else
2566 if test -w $cache_file; then
2567 echo "updating cache $cache_file"
2568 cat confcache > $cache_file
2569 else
2570 echo "not updating unwritable cache $cache_file"
2573 rm -f confcache
2576 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2577 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2578 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2579 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2580 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2581 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2582 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2584 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2587 # Reload cache, that may have been modified by ltconfig
2588 if test -r "$cache_file"; then
2589 echo "loading cache $cache_file"
2590 . $cache_file
2591 else
2592 echo "creating cache $cache_file"
2593 > $cache_file
2597 # This can be used to rebuild libtool when needed
2598 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2600 # Always use our own libtool.
2601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2609 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2610 lt_save_CC="$CC"
2611 lt_save_CFLAGS="$CFLAGS"
2612 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" \
2618 file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2620 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2621 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2622 CC="$lt_save_CC"
2623 CFLAGS="$lt_save_CFLAGS"
2625 # Redirect the config.log output again, so that the ltconfig log is not
2626 # clobbered by the next message.
2627 exec 5>>./config.log
2637 # Check for c++ or library specific bits that don't require linking.
2638 #GLIBCPP_CHECK_COMPILER_VERSION
2639 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2640 echo "configure:2641: checking for GNU make" >&5
2641 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 _cv_gnu_make_command='' ;
2645 for a in "${MAKE-make}" make gmake gnumake ; do
2646 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2647 then
2648 _cv_gnu_make_command=$a ;
2649 break;
2651 done ;
2655 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2656 if test "x$_cv_gnu_make_command" != "x" ; then
2657 ifGNUmake='' ;
2658 else
2659 ifGNUmake='#' ;
2664 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2665 # Check whether --enable-debug or --disable-debug was given.
2666 if test "${enable_debug+set}" = set; then
2667 enableval="$enable_debug"
2668 case "${enableval}" in
2669 yes) enable_debug=yes ;;
2670 no) enable_debug=no ;;
2671 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2672 esac
2673 else
2674 enable_debug=no
2677 case "${enable_debug}" in
2678 yes)
2679 DEBUG_FLAGS='-O0 -ggdb3'
2681 no)
2682 DEBUG_FLAGS='-g'
2684 esac
2687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2688 echo "configure:2689: checking how to run the C preprocessor" >&5
2689 # On Suns, sometimes $CPP names a directory.
2690 if test -n "$CPP" && test -d "$CPP"; then
2691 CPP=
2693 if test -z "$CPP"; then
2694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 # This must be in double quotes, not single quotes, because CPP may get
2698 # substituted into the Makefile and "${CC-cc}" will confuse make.
2699 CPP="${CC-cc} -E"
2700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp.
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 else
2714 echo "$ac_err" >&5
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 CPP="${CC-cc} -E -traditional-cpp"
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <assert.h>
2723 Syntax Error
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2730 else
2731 echo "$ac_err" >&5
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 CPP="${CC-cc} -nologo -E"
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP=/lib/cpp
2754 rm -f conftest*
2756 rm -f conftest*
2758 rm -f conftest*
2759 ac_cv_prog_CPP="$CPP"
2761 CPP="$ac_cv_prog_CPP"
2762 else
2763 ac_cv_prog_CPP="$CPP"
2765 echo "$ac_t""$CPP" 1>&6
2768 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2769 echo "configure:2770: checking for cstdio to use" >&5
2770 # Check whether --enable-cstdio or --disable-cstdio was given.
2771 if test "${enable_cstdio+set}" = set; then
2772 enableval="$enable_cstdio"
2773 if test x$enable_cstdio = xno; then
2774 enable_cstdio=stdio
2776 else
2777 enable_cstdio=stdio
2781 enable_cstdio_flag=$enable_cstdio
2783 case x${enable_cstdio_flag} in
2784 xlibio)
2785 CSTDIO_H=config/io/c_io_libio.h
2786 BASIC_FILE_H=config/io/basic_file_libio.h
2787 BASIC_FILE_CC=config/io/basic_file_libio.cc
2788 echo "$ac_t""libio" 1>&6
2790 # see if we are on a system with libio native (ie, linux)
2791 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for libio.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <libio.h>
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806 rm -rf conftest*
2807 eval "ac_cv_header_$ac_safe=yes"
2808 else
2809 echo "$ac_err" >&5
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_header_$ac_safe=no"
2815 rm -f conftest*
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 has_libio=yes
2820 else
2821 echo "$ac_t""no" 1>&6
2822 has_libio=no
2826 # Need to check and see what version of glibc is being used. If
2827 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2828 # compile most of libio for linux systems.
2829 if test x$has_libio = x"yes"; then
2830 case "$target" in
2831 *-*-linux*)
2832 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2833 echo "configure:2834: checking for glibc version >= 2.2" >&5
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2838 #include <features.h>
2839 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2841 #endif
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "ok" >/dev/null 2>&1; then
2846 rm -rf conftest*
2847 glibc_satisfactory=yes
2848 else
2849 rm -rf conftest*
2850 glibc_satisfactory=no
2852 rm -f conftest*
2854 echo "$ac_t""$glibc_satisfactory" 1>&6
2856 esac
2858 # XXX at the moment, admit defeat and force the recompilation
2859 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2860 glibc_satisfactory=no
2862 if test x$glibc_satisfactory = x"yes"; then
2863 need_libio=no
2864 need_wlibio=no
2865 else
2866 need_libio=yes
2867 # bkoz XXX need to add checks to enable this
2868 # pme XXX here's a first pass at such a check
2869 if test x$enable_c_mbchar != xno; then
2870 need_wlibio=yes
2871 else
2872 need_wlibio=no
2876 else
2877 # Using libio, but <libio.h> doesn't exist on the target system. . .
2878 need_libio=yes
2879 # bkoz XXX need to add checks to enable this
2880 # pme XXX here's a first pass at such a check
2881 if test x$enable_c_mbchar != xno; then
2882 need_wlibio=yes
2883 else
2884 need_wlibio=no
2888 xstdio | x | xno | xnone | xyes)
2889 # default
2890 CSTDIO_H=config/io/c_io_stdio.h
2891 BASIC_FILE_H=config/io/basic_file_stdio.h
2892 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2893 echo "$ac_t""stdio" 1>&6
2895 # We're not using stdio.
2896 need_libio=no
2897 need_wlibio=no
2900 echo "$enable_cstdio is an unknown io package" 1>&2
2901 exit 1
2903 esac
2908 # 2000-08-04 bkoz hack
2909 CCODECVT_C=config/io/c_io_libio_codecvt.c
2911 # 2000-08-04 bkoz hack
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916 GLIBCPP_BUILD_LIBIO_TRUE=
2917 GLIBCPP_BUILD_LIBIO_FALSE='#'
2918 else
2919 GLIBCPP_BUILD_LIBIO_TRUE='#'
2920 GLIBCPP_BUILD_LIBIO_FALSE=
2924 if test "$need_libio" = yes; then
2925 GLIBCPP_NEED_LIBIO_TRUE=
2926 GLIBCPP_NEED_LIBIO_FALSE='#'
2927 else
2928 GLIBCPP_NEED_LIBIO_TRUE='#'
2929 GLIBCPP_NEED_LIBIO_FALSE=
2933 if test "$need_wlibio" = yes; then
2934 GLIBCPP_NEED_WLIBIO_TRUE=
2935 GLIBCPP_NEED_WLIBIO_FALSE='#'
2936 else
2937 GLIBCPP_NEED_WLIBIO_TRUE='#'
2938 GLIBCPP_NEED_WLIBIO_FALSE=
2940 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941 libio_la=../libio/libio.la
2942 else
2943 libio_la=
2948 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2949 echo "configure:2950: checking for clocale to use" >&5
2950 # Check whether --enable-clocale or --disable-clocale was given.
2951 if test "${enable_clocale+set}" = set; then
2952 enableval="$enable_clocale"
2953 if test x$enable_clocale = xno; then
2954 enable_clocale=no
2956 else
2957 enable_clocale=no
2961 enable_clocale_flag=$enable_clocale
2963 if test x$enable_clocale_flag = xno; then
2964 case x${target_os} in
2965 xlinux* | xgnu*)
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2970 #include <features.h>
2971 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2972 _GLIBCPP_ok
2973 #endif
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2978 rm -rf conftest*
2979 enable_clocale_flag=gnu
2980 else
2981 rm -rf conftest*
2982 enable_clocale_flag=generic
2984 rm -f conftest*
2987 # Test for bugs early in glibc-2.2.x series
2988 if test x$enable_clocale_flag = xgnu; then
2989 if test "$cross_compiling" = yes; then
2990 enable_clocale_flag=generic
2991 else
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2996 #define _GNU_SOURCE 1
2997 #include <locale.h>
2998 int main()
3000 const char __one[] = "Äuglein Augmen";
3001 const char __two[] = "Äuglein";
3002 int i;
3003 int j;
3004 __locale_t loc;
3005 __locale_t loc_dup;
3006 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3007 loc_dup = __duplocale(loc);
3008 i = __strcoll_l(__one, __two, loc);
3009 j = __strcoll_l(__one, __two, loc_dup);
3010 return 0;
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3015 then
3016 enable_clocale_flag=gnu
3017 else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -fr conftest*
3021 enable_clocale_flag=generic
3023 rm -fr conftest*
3028 # ... at some point put __strxfrm_l tests in as well.
3031 enable_clocale_flag=generic
3033 esac
3036 case x${enable_clocale_flag} in
3037 xgeneric)
3038 echo "$ac_t""generic" 1>&6
3040 # Don't use gettext.
3041 USE_NLS=no
3043 CLOCALE_H=config/locale/c_locale_generic.h
3044 CLOCALE_CC=config/locale/c_locale_generic.cc
3045 CCODECVT_H=config/locale/codecvt_specializations_generic.h
3046 CCOLLATE_CC=config/locale/collate_members_generic.cc
3047 CCTYPE_CC=config/locale/ctype_members_generic.cc
3048 CMESSAGES_H=config/locale/messages_members_generic.h
3049 CMESSAGES_CC=config/locale/messages_members_generic.cc
3050 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3051 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3052 CTIME_CC=config/locale/time_members_generic.cc
3054 xgnu)
3055 echo "$ac_t""gnu" 1>&6
3057 # Declare intention to use gettext, and add support for specific
3058 # languages.
3059 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3060 ALL_LINGUAS="de fr"
3061 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3062 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3063 USE_NLS=yes
3065 # Export the build objects.
3066 for ling in $ALL_LINGUAS; do \
3067 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3068 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3069 done
3073 CLOCALE_H=config/locale/c_locale_gnu.h
3074 CLOCALE_CC=config/locale/c_locale_gnu.cc
3075 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3076 CCOLLATE_CC=config/locale/collate_members_gnu.cc
3077 CCTYPE_CC=config/locale/ctype_members_gnu.cc
3078 CMESSAGES_H=config/locale/messages_members_gnu.h
3079 CMESSAGES_CC=config/locale/messages_members_gnu.cc
3080 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3081 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3082 CTIME_CC=config/locale/time_members_gnu.cc
3084 xieee_1003.1)
3085 echo "$ac_t""generic" 1>&6
3087 # Don't use gettext.
3088 USE_NLS=no
3090 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3091 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3092 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3093 CCOLLATE_CC=config/locale/collate_members_generic.cc
3094 CCTYPE_CC=config/locale/ctype_members_generic.cc
3095 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3096 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3097 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3098 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3099 CTIME_CC=config/locale/time_members_generic.cc
3102 echo "$enable_clocale is an unknown locale package" 1>&2
3103 exit 1
3105 esac
3107 # This is where the testsuite looks for locale catalogs, using the
3108 # -DLOCALEDIR define during testsuite compilation.
3109 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3124 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3125 if test "${enable_c_mbchar+set}" = set; then
3126 enableval="$enable_c_mbchar"
3127 case "$enableval" in
3128 yes) enable_c_mbchar=yes ;;
3129 no) enable_c_mbchar=no ;;
3130 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3131 esac
3132 else
3133 enable_c_mbchar=yes
3137 # Check whether --enable-c99 or --disable-c99 was given.
3138 if test "${enable_c99+set}" = set; then
3139 enableval="$enable_c99"
3140 case "$enableval" in
3141 yes) enable_c99=yes ;;
3142 no) enable_c99=no ;;
3143 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3144 esac
3145 else
3146 enable_c99=yes
3150 ac_ext=C
3151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3152 ac_cpp='$CXXCPP $CPPFLAGS'
3153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3155 cross_compiling=$ac_cv_prog_cxx_cross
3158 # Check for the existence of <math.h> functions used if C99 is enabled.
3159 ac_c99_math=yes;
3160 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3161 echo "configure:3162: checking for ISO C99 support in <math.h>" >&5
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 fpclassify(0.0);
3168 ; return 0; }
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_c99_math=no
3178 rm -f conftest*
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <math.h>
3183 int main() {
3184 isfinite(0.0);
3185 ; return 0; }
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -rf conftest*
3193 ac_c99_math=no
3195 rm -f conftest*
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <math.h>
3200 int main() {
3201 isinf(0.0);
3202 ; return 0; }
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 ac_c99_math=no
3212 rm -f conftest*
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 isnan(0.0);
3219 ; return 0; }
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 ac_c99_math=no
3229 rm -f conftest*
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 isnormal(0.0);
3236 ; return 0; }
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3240 else
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 rm -rf conftest*
3244 ac_c99_math=no
3246 rm -f conftest*
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 signbit(0.0);
3253 ; return 0; }
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 else
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 ac_c99_math=no
3263 rm -f conftest*
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <math.h>
3268 int main() {
3269 isgreater(0.0,0.0);
3270 ; return 0; }
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 rm -rf conftest*
3278 ac_c99_math=no
3280 rm -f conftest*
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <math.h>
3285 int main() {
3286 isgreaterequal(0.0,0.0);
3287 ; return 0; }
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3291 else
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 rm -rf conftest*
3295 ac_c99_math=no
3297 rm -f conftest*
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <math.h>
3302 int main() {
3303 isless(0.0,0.0);
3304 ; return 0; }
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3311 rm -rf conftest*
3312 ac_c99_math=no
3314 rm -f conftest*
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <math.h>
3319 int main() {
3320 islessequal(0.0,0.0);
3321 ; return 0; }
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 ac_c99_math=no
3331 rm -f conftest*
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <math.h>
3336 int main() {
3337 islessgreater(0.0,0.0);
3338 ; return 0; }
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342 else
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 ac_c99_math=no
3348 rm -f conftest*
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <math.h>
3353 int main() {
3354 isunordered(0.0,0.0);
3355 ; return 0; }
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359 else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 ac_c99_math=no
3365 rm -f conftest*
3366 echo "$ac_t""$ac_c99_math" 1>&6
3368 # Check for the existence in <stdio.h> of vscanf, et. al.
3369 ac_c99_stdio=yes;
3370 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3371 echo "configure:3372: checking for ISO C99 support in <stdio.h>" >&5
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdio.h>
3376 int main() {
3377 snprintf("12", 0, "%i");
3378 ; return 0; }
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 ac_c99_stdio=no
3388 rm -f conftest*
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdio.h>
3393 #include <stdarg.h>
3394 void foo(char* fmt, ...)
3395 {va_list args; va_start(args, fmt);
3396 vfscanf(stderr, "%i", args);}
3397 int main() {
3399 ; return 0; }
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 else
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 rm -rf conftest*
3407 ac_c99_stdio=no
3409 rm -f conftest*
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <stdio.h>
3414 #include <stdarg.h>
3415 void foo(char* fmt, ...)
3416 {va_list args; va_start(args, fmt);
3417 vscanf("%i", args);}
3418 int main() {
3420 ; return 0; }
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424 else
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 rm -rf conftest*
3428 ac_c99_stdio=no
3430 rm -f conftest*
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <stdio.h>
3435 #include <stdarg.h>
3436 void foo(char* fmt, ...)
3437 {va_list args; va_start(args, fmt);
3438 vsnprintf(fmt, 0, "%i", args);}
3439 int main() {
3441 ; return 0; }
3443 if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 ac_c99_stdio=no
3451 rm -f conftest*
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <stdio.h>
3456 #include <stdarg.h>
3457 void foo(char* fmt, ...)
3458 {va_list args; va_start(args, fmt);
3459 vsscanf(fmt, "%i", args);}
3460 int main() {
3462 ; return 0; }
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 ac_c99_stdio=no
3472 rm -f conftest*
3473 echo "$ac_t""$ac_c99_stdio" 1>&6
3475 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3476 ac_c99_stdlib=yes;
3477 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3478 echo "configure:3479: checking for lldiv_t declaration" >&5
3479 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <stdlib.h>
3487 int main() {
3488 lldiv_t mydivt;
3489 ; return 0; }
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 rm -rf conftest*
3493 ac_c99_lldiv_t=yes
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_lldiv_t=no
3500 rm -f conftest*
3504 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3506 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3507 echo "configure:3508: checking for ISO C99 support in <stdlib.h>" >&5
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdlib.h>
3512 int main() {
3513 char* tmp; strtof("gnu", &tmp);
3514 ; return 0; }
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 else
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 rm -rf conftest*
3522 ac_c99_stdlib=no
3524 rm -f conftest*
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529 int main() {
3530 char* tmp; strtold("gnu", &tmp);
3531 ; return 0; }
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_c99_stdlib=no
3541 rm -f conftest*
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <stdlib.h>
3546 int main() {
3547 llabs(10);
3548 ; return 0; }
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 else
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 rm -rf conftest*
3556 ac_c99_stdlib=no
3558 rm -f conftest*
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int main() {
3564 lldiv(10,1);
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 ac_c99_stdlib=no
3575 rm -f conftest*
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <stdlib.h>
3580 int main() {
3581 atoll("10");
3582 ; return 0; }
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 ac_c99_stdlib=no
3592 rm -f conftest*
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdlib.h>
3597 int main() {
3598 _Exit(0);
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 ac_c99_stdlib=no
3609 rm -f conftest*
3610 if test x"$ac_c99_lldiv_t" = x"no"; then
3611 ac_c99_stdlib=no;
3612 fi;
3613 echo "$ac_t""$ac_c99_stdlib" 1>&6
3615 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3616 # XXX the wchar.h checks should be rolled into the general C99 bits.
3617 ac_c99_wchar=yes;
3618 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3619 echo "configure:3620: checking for additional ISO C99 support in <wchar.h>" >&5
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <wchar.h>
3624 int main() {
3625 wcstold(L"10.0", NULL);
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_wchar=no
3636 rm -f conftest*
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <wchar.h>
3641 int main() {
3642 wcstoll(L"10", NULL, 10);
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_wchar=no
3653 rm -f conftest*
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <wchar.h>
3658 int main() {
3659 wcstoull(L"10", NULL, 10);
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_wchar=no
3670 rm -f conftest*
3671 echo "$ac_t""$ac_c99_wchar" 1>&6
3673 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3674 echo "configure:3675: checking for enabled ISO C99 support" >&5
3675 if test x"$ac_c99_math" = x"no" ||
3676 test x"$ac_c99_stdio" = x"no" ||
3677 test x"$ac_c99_stdlib" = x"no" ||
3678 test x"$ac_c99_wchar" = x"no"; then
3679 enable_c99=no;
3680 fi;
3681 echo "$ac_t""$enable_c99" 1>&6
3683 # Option parsed, now set things appropriately
3684 if test x"$enable_c99" = x"yes"; then
3685 cat >> confdefs.h <<\EOF
3686 #define _GLIBCPP_USE_C99 1
3691 ac_ext=c
3692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cc_cross
3700 # Check whether --enable-long-long or --disable-long-long was given.
3701 if test "${enable_long_long+set}" = set; then
3702 enableval="$enable_long_long"
3703 case "$enableval" in
3704 yes) enable_long_long=yes ;;
3705 no) enable_long_long=no ;;
3706 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3707 esac
3708 else
3709 enable_long_long=yes
3713 ac_ext=C
3714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3715 ac_cpp='$CXXCPP $CPPFLAGS'
3716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3718 cross_compiling=$ac_cv_prog_cxx_cross
3721 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3722 echo "configure:3723: checking for enabled long long I/O support" >&5
3723 # iostreams require strtoll, strtoull to compile
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <stdlib.h>
3728 int main() {
3729 char* tmp; strtoll("gnu", &tmp, 10);
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 else
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 rm -rf conftest*
3738 enable_long_long=no
3740 rm -f conftest*
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <stdlib.h>
3745 int main() {
3746 char* tmp; strtoull("gnu", &tmp, 10);
3747 ; return 0; }
3749 if { (eval echo configure:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 enable_long_long=no
3757 rm -f conftest*
3759 # Option parsed, now set things appropriately
3760 if test x"$enable_long_long" = xyes; then
3761 cat >> confdefs.h <<\EOF
3762 #define _GLIBCPP_USE_LONG_LONG 1
3766 echo "$ac_t""$enable_long_long" 1>&6
3768 ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3776 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3777 echo "configure:3778: checking for c header strategy to use" >&5
3778 # Check whether --enable-cheaders or --disable-cheaders was given.
3779 if test "${enable_cheaders+set}" = set; then
3780 enableval="$enable_cheaders"
3782 case "$enableval" in
3784 enable_cheaders=c
3786 c_std)
3787 enable_cheaders=c_std
3789 c_shadow)
3790 enable_cheaders=c_shadow
3792 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3794 esac
3795 else
3796 enable_cheaders=c_std
3799 echo "$ac_t""$enable_cheaders" 1>&6
3801 case "$enable_cheaders" in
3802 c_shadow)
3803 CSHADOW_FLAGS="-fno-builtin"
3804 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3805 cat >> confdefs.h <<\EOF
3806 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3810 c_std)
3811 CSHADOW_FLAGS=""
3812 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3815 CSHADOW_FLAGS=""
3816 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3818 esac
3824 if test "$enable_cheaders" = c_shadow; then
3825 GLIBCPP_USE_CSHADOW_TRUE=
3826 GLIBCPP_USE_CSHADOW_FALSE='#'
3827 else
3828 GLIBCPP_USE_CSHADOW_TRUE='#'
3829 GLIBCPP_USE_CSHADOW_FALSE=
3833 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3834 echo "configure:3835: checking for thread model used by GCC" >&5
3835 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3836 echo "$ac_t""$target_thread_file" 1>&6
3838 if test $target_thread_file != single; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_GTHR_DEFAULT 1
3843 cat >> confdefs.h <<\EOF
3844 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3849 glibcpp_thread_h=gthr-$target_thread_file.h
3852 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3853 if test "${enable_cxx_flags+set}" = set; then
3854 enableval="$enable_cxx_flags"
3855 case "x$enableval" in
3856 xyes)
3857 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3858 xno|x)
3859 enable_cxx_flags='' ;;
3861 enable_cxx_flags="$enableval" ;;
3862 esac
3863 else
3864 enable_cxx_flags='none'
3868 if test "$enable_cxx_flags" = "none"; then
3869 enable_cxx_flags='';
3872 if test -n "$enable_cxx_flags"; then
3873 for f in $enable_cxx_flags; do
3874 case "$f" in
3875 -fhonor-std) ;;
3876 -*) ;;
3877 *) # and we're trying to pass /what/ exactly?
3878 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3879 esac
3880 done
3882 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3886 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3887 echo "configure:3888: checking for exception model to use" >&5
3889 ac_ext=C
3890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3891 ac_cpp='$CXXCPP $CPPFLAGS'
3892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3894 cross_compiling=$ac_cv_prog_cxx_cross
3896 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3897 if test "${enable_sjlj_exceptions+set}" = set; then
3898 enableval="$enable_sjlj_exceptions"
3900 else
3901 cat > conftest.$ac_ext << EOF
3902 #line 3903 "configure"
3903 struct S { ~S(); };
3904 void bar();
3905 void foo()
3907 S s;
3908 bar();
3911 old_CXXFLAGS="$CXXFLAGS"
3912 CXXFLAGS=-S
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3915 enable_sjlj_exceptions=yes
3916 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3917 enable_sjlj_exceptions=no
3920 CXXFLAGS="$old_CXXFLAGS"
3921 rm -f conftest*
3924 if test x$enable_sjlj_exceptions = xyes; then
3925 cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3929 ac_exception_model_name=sjlj
3930 elif test x$enable_sjlj_exceptions = xno; then
3931 ac_exception_model_name="call frame"
3932 else
3933 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3935 ac_ext=c
3936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3940 cross_compiling=$ac_cv_prog_cc_cross
3942 echo "$ac_t""$ac_exception_model_name" 1>&6
3944 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3945 if test "${enable_concept_checks+set}" = set; then
3946 enableval="$enable_concept_checks"
3947 case "$enableval" in
3948 yes) enable_concept_checks=yes ;;
3949 no) enable_concept_checks=no ;;
3950 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3951 esac
3952 else
3953 enable_concept_checks=no
3955 if test x"$enable_concept_checks" = xyes; then
3956 cat >> confdefs.h <<\EOF
3957 #define _GLIBCPP_CONCEPT_CHECKS 1
3964 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3966 # This lets us hard-code the functionality we know
3967 # we'll have in the cross target environment. "Let" is a
3968 # sugar-coated word placed on an especially dull and tedious hack, actually.
3969 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3970 # that involve linking can't be used:
3971 # "cannot open sim-crt0.o"
3972 # "cannot open crt0.o"
3973 # etc. All this is because there currently exists no unified,
3974 # consistent way for top level CC information to be passed down
3975 # to target directories: newlib includes, newlib linking info,
3976 # libgloss versus newlib crt0.o, etc. When all of this is done, all
3977 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3979 # We are being configured with some form of cross compiler.
3980 GLIBCPP_IS_CROSS_COMPILING=1
3982 # If Canadian cross, then don't pick up tools from the build
3983 # directory.
3984 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3985 CANADIAN=yes
3986 else
3987 CANADIAN=no
3990 # Construct crosses by hand, eliminating bits that need ld...
3991 # GLIBCPP_CHECK_COMPILER_FEATURES
3992 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3993 # GLIBCPP_CHECK_MATH_SUPPORT
3995 case "$target_alias" in
3996 *-linux*)
3997 # Check for available headers.
3998 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3999 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4000 fp.h locale.h float.h inttypes.h
4002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <$ac_hdr>
4013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4014 { (eval echo configure:4015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4016 if test -z "$ac_err"; then
4017 rm -rf conftest*
4018 eval "ac_cv_header_$ac_safe=yes"
4019 else
4020 echo "$ac_err" >&5
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 eval "ac_cv_header_$ac_safe=no"
4026 rm -f conftest*
4028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_hdr 1
4035 else
4036 echo "$ac_t""no" 1>&6
4038 done
4040 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4043 # If we're not using GNU ld, then there's no point in even trying these
4044 # tests. Check for that first. We should have already tested for gld
4045 # by now (in libtool), but require it now just to be safe...
4046 SECTION_LDFLAGS=''
4047 OPT_LDFLAGS=''
4050 # Set --gc-sections.
4051 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4052 # GNU ld it is! Joy and bunny rabbits!
4054 # All these tests are for C++; save the language and the compiler flags.
4055 # Need to do this so that g++ won't try to link in libstdc++
4056 ac_test_CFLAGS="${CFLAGS+set}"
4057 ac_save_CFLAGS="$CFLAGS"
4058 CFLAGS='-x c++ -Wl,--gc-sections'
4060 # Check for -Wl,--gc-sections
4061 # XXX This test is broken at the moment, as symbols required for
4062 # linking are now in libsupc++ (not built yet.....). In addition,
4063 # this test has cored on solaris in the past. In addition,
4064 # --gc-sections doesn't really work at the moment (keeps on discarding
4065 # used sections, first .eh_frame and now some of the glibc sections for
4066 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4067 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4068 echo "configure:4069: checking for ld that supports -Wl,--gc-sections" >&5
4069 if test "$cross_compiling" = yes; then
4070 ac_sectionLDflags=yes
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4076 int main(void)
4078 try { throw 1; }
4079 catch (...) { };
4080 return 0;
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4085 then
4086 ac_sectionLDflags=yes
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -fr conftest*
4091 ac_sectionLFflags=no
4093 rm -fr conftest*
4096 if test "$ac_test_CFLAGS" = set; then
4097 CFLAGS="$ac_save_CFLAGS"
4098 else
4099 # this is the suspicious part
4100 CFLAGS=''
4102 if test "$ac_sectionLDflags" = "yes"; then
4103 SECTION_LDFLAGS='-Wl,--gc-sections'
4105 echo "$ac_t""$ac_sectionLDflags" 1>&6
4108 # Set linker optimization flags.
4109 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4110 test x"$enable_debug" = x"no"; then
4111 OPT_LDFLAGS='-Wl,-O1'
4118 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4119 echo "configure:4120: checking for main in -lm" >&5
4120 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124 ac_save_LIBS="$LIBS"
4125 LIBS="-lm $LIBS"
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4130 int main() {
4131 main()
4132 ; return 0; }
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 rm -rf conftest*
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4137 else
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 rm -rf conftest*
4141 eval "ac_cv_lib_$ac_lib_var=no"
4143 rm -f conftest*
4144 LIBS="$ac_save_LIBS"
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4151 cat >> confdefs.h <<EOF
4152 #define $ac_tr_lib 1
4155 LIBS="-lm $LIBS"
4157 else
4158 echo "$ac_t""no" 1>&6
4161 for ac_func in nan copysignf
4163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_func" >&5
4165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172 which can conflict with char $ac_func(); below. */
4173 #include <assert.h>
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177 char $ac_func();
4179 int main() {
4181 /* The GNU C library defines this for functions which it implements
4182 to always fail with ENOSYS. Some functions are actually named
4183 something starting with __ and the normal name is an alias. */
4184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185 choke me
4186 #else
4187 $ac_func();
4188 #endif
4190 ; return 0; }
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 rm -rf conftest*
4194 eval "ac_cv_func_$ac_func=yes"
4195 else
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 rm -rf conftest*
4199 eval "ac_cv_func_$ac_func=no"
4201 rm -f conftest*
4204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4207 cat >> confdefs.h <<EOF
4208 #define $ac_tr_func 1
4211 else
4212 echo "$ac_t""no" 1>&6
4213 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4215 done
4219 USE_COMPLEX_LONG_DOUBLE=no
4220 if test x$ac_cv_func_copysignl = x"yes"; then
4221 USE_COMPLEX_LONG_DOUBLE=yes
4222 for ac_func in signbitl
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4228 else
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func(); below. */
4234 #include <assert.h>
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4238 char $ac_func();
4240 int main() {
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4246 choke me
4247 #else
4248 $ac_func();
4249 #endif
4251 ; return 0; }
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254 rm -rf conftest*
4255 eval "ac_cv_func_$ac_func=yes"
4256 else
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 rm -rf conftest*
4260 eval "ac_cv_func_$ac_func=no"
4262 rm -f conftest*
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4268 cat >> confdefs.h <<EOF
4269 #define $ac_tr_func 1
4272 else
4273 echo "$ac_t""no" 1>&6
4274 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4276 done
4285 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4286 echo "configure:4287: checking for mbstate_t" >&5
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <wchar.h>
4291 int main() {
4292 mbstate_t teststate;
4293 ; return 0; }
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 rm -rf conftest*
4297 have_mbstate_t=yes
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 have_mbstate_t=no
4304 rm -f conftest*
4305 echo "$ac_t""$have_mbstate_t" 1>&6
4306 if test x"$have_mbstate_t" = xyes; then
4307 cat >> confdefs.h <<\EOF
4308 #define HAVE_MBSTATE_T 1
4313 for ac_hdr in wchar.h
4315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4320 else
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <$ac_hdr>
4326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4330 rm -rf conftest*
4331 eval "ac_cv_header_$ac_safe=yes"
4332 else
4333 echo "$ac_err" >&5
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 eval "ac_cv_header_$ac_safe=no"
4339 rm -f conftest*
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_hdr 1
4347 ac_has_wchar_h=yes
4348 else
4349 echo "$ac_t""no" 1>&6
4350 ac_has_wchar_h=no
4352 done
4354 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for wctype.h" >&5
4357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359 else
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <wctype.h>
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4369 rm -rf conftest*
4370 eval "ac_cv_header_$ac_safe=yes"
4371 else
4372 echo "$ac_err" >&5
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
4376 eval "ac_cv_header_$ac_safe=no"
4378 rm -f conftest*
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_has_wctype_h=yes
4383 else
4384 echo "$ac_t""no" 1>&6
4385 ac_has_wctype_h=no
4389 if test x"$ac_has_wchar_h" = xyes &&
4390 test x"$ac_has_wctype_h" = xyes &&
4391 test x"$enable_c_mbchar" != xno; then
4393 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4394 echo "configure:4395: checking for WCHAR_MIN and WCHAR_MAX" >&5
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <wchar.h>
4399 int main() {
4400 int i = WCHAR_MIN; int j = WCHAR_MAX;
4401 ; return 0; }
4403 if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 rm -rf conftest*
4405 has_wchar_minmax=yes
4406 else
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 rm -rf conftest*
4410 has_wchar_minmax=no
4412 rm -f conftest*
4413 echo "$ac_t""$has_wchar_minmax" 1>&6
4415 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4416 echo "configure:4417: checking for WEOF" >&5
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4421 #include <wchar.h>
4422 #include <stddef.h>
4423 int main() {
4424 wint_t i = WEOF;
4425 ; return 0; }
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 rm -rf conftest*
4429 has_weof=yes
4430 else
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 rm -rf conftest*
4434 has_weof=no
4436 rm -f conftest*
4437 echo "$ac_t""$has_weof" 1>&6
4439 ac_wfuncs=yes
4440 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char $ac_func();
4458 int main() {
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4469 ; return 0; }
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 rm -rf conftest*
4473 eval "ac_cv_func_$ac_func=yes"
4474 else
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 rm -rf conftest*
4478 eval "ac_cv_func_$ac_func=no"
4480 rm -f conftest*
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4490 else
4491 echo "$ac_t""no" 1>&6
4493 ac_wfuncs=no
4495 done
4498 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4499 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4500 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4501 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4502 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4503 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_func" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func(); below. */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char $ac_func();
4521 int main() {
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 choke me
4528 #else
4529 $ac_func();
4530 #endif
4532 ; return 0; }
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 rm -rf conftest*
4536 eval "ac_cv_func_$ac_func=yes"
4537 else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_func_$ac_func=no"
4543 rm -f conftest*
4546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4549 cat >> confdefs.h <<EOF
4550 #define $ac_tr_func 1
4553 else
4554 echo "$ac_t""no" 1>&6
4556 ac_wfuncs=no
4558 done
4561 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4562 echo "configure:4563: checking for ISO C99 wchar_t support" >&5
4563 if test x"$has_weof" = xyes &&
4564 test x"$has_wchar_minmax" = xyes &&
4565 test x"$ac_wfuncs" = xyes; then
4566 ac_isoC99_wchar_t=yes
4567 else
4568 ac_isoC99_wchar_t=no
4570 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4572 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4574 echo "configure:4575: checking for iconv.h" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <iconv.h>
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4587 rm -rf conftest*
4588 eval "ac_cv_header_$ac_safe=yes"
4589 else
4590 echo "$ac_err" >&5
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -rf conftest*
4594 eval "ac_cv_header_$ac_safe=no"
4596 rm -f conftest*
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_has_iconv_h=yes
4601 else
4602 echo "$ac_t""no" 1>&6
4603 ac_has_iconv_h=no
4606 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4607 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4608 echo "configure:4609: checking for langinfo.h" >&5
4609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <langinfo.h>
4617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4618 { (eval echo configure:4619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4620 if test -z "$ac_err"; then
4621 rm -rf conftest*
4622 eval "ac_cv_header_$ac_safe=yes"
4623 else
4624 echo "$ac_err" >&5
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_header_$ac_safe=no"
4630 rm -f conftest*
4632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_has_langinfo_h=yes
4635 else
4636 echo "$ac_t""no" 1>&6
4637 ac_has_langinfo_h=no
4641 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4642 echo "configure:4643: checking for iconv in -liconv" >&5
4643 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4646 else
4647 ac_save_LIBS="$LIBS"
4648 LIBS="-liconv $LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4655 char iconv();
4657 int main() {
4658 iconv()
4659 ; return 0; }
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 rm -rf conftest*
4663 eval "ac_cv_lib_$ac_lib_var=yes"
4664 else
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 rm -rf conftest*
4668 eval "ac_cv_lib_$ac_lib_var=no"
4670 rm -f conftest*
4671 LIBS="$ac_save_LIBS"
4674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 libiconv="-liconv"
4677 else
4678 echo "$ac_t""no" 1>&6
4681 ac_save_LIBS="$LIBS"
4682 LIBS="$LIBS $libiconv"
4684 for ac_func in iconv_open iconv_close iconv nl_langinfo
4686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_func" >&5
4688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4690 else
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char $ac_func(); below. */
4696 #include <assert.h>
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700 char $ac_func();
4702 int main() {
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 choke me
4709 #else
4710 $ac_func();
4711 #endif
4713 ; return 0; }
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 rm -rf conftest*
4717 eval "ac_cv_func_$ac_func=yes"
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 eval "ac_cv_func_$ac_func=no"
4724 rm -f conftest*
4727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4730 cat >> confdefs.h <<EOF
4731 #define $ac_tr_func 1
4734 ac_XPG2funcs=yes
4735 else
4736 echo "$ac_t""no" 1>&6
4737 ac_XPG2funcs=no
4739 done
4742 LIBS="$ac_save_LIBS"
4744 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4745 echo "configure:4746: checking for XPG2 wchar_t support" >&5
4746 if test x"$ac_has_iconv_h" = xyes &&
4747 test x"$ac_has_langinfo_h" = xyes &&
4748 test x"$ac_XPG2funcs" = xyes; then
4749 ac_XPG2_wchar_t=yes
4750 else
4751 ac_XPG2_wchar_t=no
4753 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4755 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4756 echo "configure:4757: checking for enabled wchar_t specializations" >&5
4757 if test x"$ac_isoC99_wchar_t" = xyes &&
4758 test x"$ac_XPG2_wchar_t" = xyes; then
4759 cat >> confdefs.h <<\EOF
4760 #define _GLIBCPP_USE_WCHAR_T 1
4763 echo "$ac_t"""yes"" 1>&6
4764 else
4765 echo "$ac_t"""no"" 1>&6
4767 else
4768 echo "configure: warning: wchar_t support disabled." 1>&2
4771 os_include_dir="config/os/gnu-linux"
4772 cat >> confdefs.h <<\EOF
4773 #define HAVE_COPYSIGN 1
4776 cat >> confdefs.h <<\EOF
4777 #define HAVE_COPYSIGNF 1
4780 cat >> confdefs.h <<\EOF
4781 #define HAVE_FINITEF 1
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_FREXPF 1
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_HYPOTF 1
4792 cat >> confdefs.h <<\EOF
4793 #define HAVE_SINCOS 1
4796 cat >> confdefs.h <<\EOF
4797 #define HAVE_SINCOSF 1
4800 if test x"long_double_math_on_this_cpu" = x"yes"; then
4801 cat >> confdefs.h <<\EOF
4802 #define HAVE_HYPOTL 1
4807 *-hpux*)
4808 # Check for available headers.
4809 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4810 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4811 fp.h locale.h float.h inttypes.h
4813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_hdr" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <$ac_hdr>
4824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4825 { (eval echo configure:4826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4827 if test -z "$ac_err"; then
4828 rm -rf conftest*
4829 eval "ac_cv_header_$ac_safe=yes"
4830 else
4831 echo "$ac_err" >&5
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 eval "ac_cv_header_$ac_safe=no"
4837 rm -f conftest*
4839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4842 cat >> confdefs.h <<EOF
4843 #define $ac_tr_hdr 1
4846 else
4847 echo "$ac_t""no" 1>&6
4849 done
4851 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4854 # If we're not using GNU ld, then there's no point in even trying these
4855 # tests. Check for that first. We should have already tested for gld
4856 # by now (in libtool), but require it now just to be safe...
4857 SECTION_LDFLAGS=''
4858 OPT_LDFLAGS=''
4861 # Set --gc-sections.
4862 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4863 # GNU ld it is! Joy and bunny rabbits!
4865 # All these tests are for C++; save the language and the compiler flags.
4866 # Need to do this so that g++ won't try to link in libstdc++
4867 ac_test_CFLAGS="${CFLAGS+set}"
4868 ac_save_CFLAGS="$CFLAGS"
4869 CFLAGS='-x c++ -Wl,--gc-sections'
4871 # Check for -Wl,--gc-sections
4872 # XXX This test is broken at the moment, as symbols required for
4873 # linking are now in libsupc++ (not built yet.....). In addition,
4874 # this test has cored on solaris in the past. In addition,
4875 # --gc-sections doesn't really work at the moment (keeps on discarding
4876 # used sections, first .eh_frame and now some of the glibc sections for
4877 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4878 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4879 echo "configure:4880: checking for ld that supports -Wl,--gc-sections" >&5
4880 if test "$cross_compiling" = yes; then
4881 ac_sectionLDflags=yes
4882 else
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4887 int main(void)
4889 try { throw 1; }
4890 catch (...) { };
4891 return 0;
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4896 then
4897 ac_sectionLDflags=yes
4898 else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -fr conftest*
4902 ac_sectionLFflags=no
4904 rm -fr conftest*
4907 if test "$ac_test_CFLAGS" = set; then
4908 CFLAGS="$ac_save_CFLAGS"
4909 else
4910 # this is the suspicious part
4911 CFLAGS=''
4913 if test "$ac_sectionLDflags" = "yes"; then
4914 SECTION_LDFLAGS='-Wl,--gc-sections'
4916 echo "$ac_t""$ac_sectionLDflags" 1>&6
4919 # Set linker optimization flags.
4920 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4921 test x"$enable_debug" = x"no"; then
4922 OPT_LDFLAGS='-Wl,-O1'
4929 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4930 echo "configure:4931: checking for main in -lm" >&5
4931 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4934 else
4935 ac_save_LIBS="$LIBS"
4936 LIBS="-lm $LIBS"
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4941 int main() {
4942 main()
4943 ; return 0; }
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946 rm -rf conftest*
4947 eval "ac_cv_lib_$ac_lib_var=yes"
4948 else
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4951 rm -rf conftest*
4952 eval "ac_cv_lib_$ac_lib_var=no"
4954 rm -f conftest*
4955 LIBS="$ac_save_LIBS"
4958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4962 cat >> confdefs.h <<EOF
4963 #define $ac_tr_lib 1
4966 LIBS="-lm $LIBS"
4968 else
4969 echo "$ac_t""no" 1>&6
4972 for ac_func in nan copysignf
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4988 char $ac_func();
4990 int main() {
4992 /* The GNU C library defines this for functions which it implements
4993 to always fail with ENOSYS. Some functions are actually named
4994 something starting with __ and the normal name is an alias. */
4995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4996 choke me
4997 #else
4998 $ac_func();
4999 #endif
5001 ; return 0; }
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 rm -rf conftest*
5005 eval "ac_cv_func_$ac_func=yes"
5006 else
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5009 rm -rf conftest*
5010 eval "ac_cv_func_$ac_func=no"
5012 rm -f conftest*
5015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5018 cat >> confdefs.h <<EOF
5019 #define $ac_tr_func 1
5022 else
5023 echo "$ac_t""no" 1>&6
5024 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5026 done
5030 USE_COMPLEX_LONG_DOUBLE=no
5031 if test x$ac_cv_func_copysignl = x"yes"; then
5032 USE_COMPLEX_LONG_DOUBLE=yes
5033 for ac_func in signbitl
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char $ac_func(); below. */
5045 #include <assert.h>
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5049 char $ac_func();
5051 int main() {
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 $ac_func();
5060 #endif
5062 ; return 0; }
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 rm -rf conftest*
5066 eval "ac_cv_func_$ac_func=yes"
5067 else
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 rm -rf conftest*
5071 eval "ac_cv_func_$ac_func=no"
5073 rm -f conftest*
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5079 cat >> confdefs.h <<EOF
5080 #define $ac_tr_func 1
5083 else
5084 echo "$ac_t""no" 1>&6
5085 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5087 done
5096 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5097 echo "configure:5098: checking for mbstate_t" >&5
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #include <wchar.h>
5102 int main() {
5103 mbstate_t teststate;
5104 ; return 0; }
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107 rm -rf conftest*
5108 have_mbstate_t=yes
5109 else
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 rm -rf conftest*
5113 have_mbstate_t=no
5115 rm -f conftest*
5116 echo "$ac_t""$have_mbstate_t" 1>&6
5117 if test x"$have_mbstate_t" = xyes; then
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_MBSTATE_T 1
5124 for ac_hdr in wchar.h
5126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_hdr" >&5
5129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <$ac_hdr>
5137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5138 { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5140 if test -z "$ac_err"; then
5141 rm -rf conftest*
5142 eval "ac_cv_header_$ac_safe=yes"
5143 else
5144 echo "$ac_err" >&5
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_header_$ac_safe=no"
5150 rm -f conftest*
5152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5155 cat >> confdefs.h <<EOF
5156 #define $ac_tr_hdr 1
5158 ac_has_wchar_h=yes
5159 else
5160 echo "$ac_t""no" 1>&6
5161 ac_has_wchar_h=no
5163 done
5165 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5166 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5167 echo "configure:5168: checking for wctype.h" >&5
5168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5170 else
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 #include <wctype.h>
5176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5177 { (eval echo configure:5178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5179 if test -z "$ac_err"; then
5180 rm -rf conftest*
5181 eval "ac_cv_header_$ac_safe=yes"
5182 else
5183 echo "$ac_err" >&5
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5186 rm -rf conftest*
5187 eval "ac_cv_header_$ac_safe=no"
5189 rm -f conftest*
5191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5192 echo "$ac_t""yes" 1>&6
5193 ac_has_wctype_h=yes
5194 else
5195 echo "$ac_t""no" 1>&6
5196 ac_has_wctype_h=no
5200 if test x"$ac_has_wchar_h" = xyes &&
5201 test x"$ac_has_wctype_h" = xyes &&
5202 test x"$enable_c_mbchar" != xno; then
5204 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5205 echo "configure:5206: checking for WCHAR_MIN and WCHAR_MAX" >&5
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <wchar.h>
5210 int main() {
5211 int i = WCHAR_MIN; int j = WCHAR_MAX;
5212 ; return 0; }
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 rm -rf conftest*
5216 has_wchar_minmax=yes
5217 else
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 rm -rf conftest*
5221 has_wchar_minmax=no
5223 rm -f conftest*
5224 echo "$ac_t""$has_wchar_minmax" 1>&6
5226 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5227 echo "configure:5228: checking for WEOF" >&5
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5232 #include <wchar.h>
5233 #include <stddef.h>
5234 int main() {
5235 wint_t i = WEOF;
5236 ; return 0; }
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 rm -rf conftest*
5240 has_weof=yes
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5245 has_weof=no
5247 rm -f conftest*
5248 echo "$ac_t""$has_weof" 1>&6
5250 ac_wfuncs=yes
5251 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5254 echo "configure:5255: checking for $ac_func" >&5
5255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5257 else
5258 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func(); below. */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5267 char $ac_func();
5269 int main() {
5271 /* The GNU C library defines this for functions which it implements
5272 to always fail with ENOSYS. Some functions are actually named
5273 something starting with __ and the normal name is an alias. */
5274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 choke me
5276 #else
5277 $ac_func();
5278 #endif
5280 ; return 0; }
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283 rm -rf conftest*
5284 eval "ac_cv_func_$ac_func=yes"
5285 else
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 rm -rf conftest*
5289 eval "ac_cv_func_$ac_func=no"
5291 rm -f conftest*
5294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5297 cat >> confdefs.h <<EOF
5298 #define $ac_tr_func 1
5301 else
5302 echo "$ac_t""no" 1>&6
5304 ac_wfuncs=no
5306 done
5309 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5310 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5311 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5312 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5313 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5314 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5317 echo "configure:5318: checking for $ac_func" >&5
5318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5320 else
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char $ac_func(); below. */
5326 #include <assert.h>
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330 char $ac_func();
5332 int main() {
5334 /* The GNU C library defines this for functions which it implements
5335 to always fail with ENOSYS. Some functions are actually named
5336 something starting with __ and the normal name is an alias. */
5337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5338 choke me
5339 #else
5340 $ac_func();
5341 #endif
5343 ; return 0; }
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346 rm -rf conftest*
5347 eval "ac_cv_func_$ac_func=yes"
5348 else
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 rm -rf conftest*
5352 eval "ac_cv_func_$ac_func=no"
5354 rm -f conftest*
5357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5360 cat >> confdefs.h <<EOF
5361 #define $ac_tr_func 1
5364 else
5365 echo "$ac_t""no" 1>&6
5367 ac_wfuncs=no
5369 done
5372 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5373 echo "configure:5374: checking for ISO C99 wchar_t support" >&5
5374 if test x"$has_weof" = xyes &&
5375 test x"$has_wchar_minmax" = xyes &&
5376 test x"$ac_wfuncs" = xyes; then
5377 ac_isoC99_wchar_t=yes
5378 else
5379 ac_isoC99_wchar_t=no
5381 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5383 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5384 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5385 echo "configure:5386: checking for iconv.h" >&5
5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <iconv.h>
5394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5395 { (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5397 if test -z "$ac_err"; then
5398 rm -rf conftest*
5399 eval "ac_cv_header_$ac_safe=yes"
5400 else
5401 echo "$ac_err" >&5
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 rm -rf conftest*
5405 eval "ac_cv_header_$ac_safe=no"
5407 rm -f conftest*
5409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_has_iconv_h=yes
5412 else
5413 echo "$ac_t""no" 1>&6
5414 ac_has_iconv_h=no
5417 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5418 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5419 echo "configure:5420: checking for langinfo.h" >&5
5420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5422 else
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <langinfo.h>
5428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5429 { (eval echo configure:5430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5431 if test -z "$ac_err"; then
5432 rm -rf conftest*
5433 eval "ac_cv_header_$ac_safe=yes"
5434 else
5435 echo "$ac_err" >&5
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -rf conftest*
5439 eval "ac_cv_header_$ac_safe=no"
5441 rm -f conftest*
5443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5444 echo "$ac_t""yes" 1>&6
5445 ac_has_langinfo_h=yes
5446 else
5447 echo "$ac_t""no" 1>&6
5448 ac_has_langinfo_h=no
5452 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5453 echo "configure:5454: checking for iconv in -liconv" >&5
5454 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458 ac_save_LIBS="$LIBS"
5459 LIBS="-liconv $LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5466 char iconv();
5468 int main() {
5469 iconv()
5470 ; return 0; }
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 rm -rf conftest*
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5475 else
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 rm -rf conftest*
5479 eval "ac_cv_lib_$ac_lib_var=no"
5481 rm -f conftest*
5482 LIBS="$ac_save_LIBS"
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 libiconv="-liconv"
5488 else
5489 echo "$ac_t""no" 1>&6
5492 ac_save_LIBS="$LIBS"
5493 LIBS="$LIBS $libiconv"
5495 for ac_func in iconv_open iconv_close iconv nl_langinfo
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5511 char $ac_func();
5513 int main() {
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5524 ; return 0; }
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 rm -rf conftest*
5528 eval "ac_cv_func_$ac_func=yes"
5529 else
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=no"
5535 rm -f conftest*
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5545 ac_XPG2funcs=yes
5546 else
5547 echo "$ac_t""no" 1>&6
5548 ac_XPG2funcs=no
5550 done
5553 LIBS="$ac_save_LIBS"
5555 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5556 echo "configure:5557: checking for XPG2 wchar_t support" >&5
5557 if test x"$ac_has_iconv_h" = xyes &&
5558 test x"$ac_has_langinfo_h" = xyes &&
5559 test x"$ac_XPG2funcs" = xyes; then
5560 ac_XPG2_wchar_t=yes
5561 else
5562 ac_XPG2_wchar_t=no
5564 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5566 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5567 echo "configure:5568: checking for enabled wchar_t specializations" >&5
5568 if test x"$ac_isoC99_wchar_t" = xyes &&
5569 test x"$ac_XPG2_wchar_t" = xyes; then
5570 cat >> confdefs.h <<\EOF
5571 #define _GLIBCPP_USE_WCHAR_T 1
5574 echo "$ac_t"""yes"" 1>&6
5575 else
5576 echo "$ac_t"""no"" 1>&6
5578 else
5579 echo "configure: warning: wchar_t support disabled." 1>&2
5582 os_include_dir="config/os/hpux"
5583 cat >> confdefs.h <<\EOF
5584 #define HAVE_COPYSIGN 1
5587 cat >> confdefs.h <<\EOF
5588 #define HAVE_COPYSIGNF 1
5591 cat >> confdefs.h <<\EOF
5592 #define HAVE_FINITEF 1
5595 cat >> confdefs.h <<\EOF
5596 #define HAVE_FREXPF 1
5599 cat >> confdefs.h <<\EOF
5600 #define HAVE_HYPOT 1
5603 cat >> confdefs.h <<\EOF
5604 #define HAVE_SINCOS 1
5607 cat >> confdefs.h <<\EOF
5608 #define HAVE_SINCOSF 1
5612 *-netbsd*)
5613 # Check for available headers.
5614 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5615 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5616 fp.h locale.h float.h inttypes.h
5618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_hdr" >&5
5621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 #include <$ac_hdr>
5629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5630 { (eval echo configure:5631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5632 if test -z "$ac_err"; then
5633 rm -rf conftest*
5634 eval "ac_cv_header_$ac_safe=yes"
5635 else
5636 echo "$ac_err" >&5
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 rm -rf conftest*
5640 eval "ac_cv_header_$ac_safe=no"
5642 rm -f conftest*
5644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_hdr 1
5651 else
5652 echo "$ac_t""no" 1>&6
5654 done
5656 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5659 # If we're not using GNU ld, then there's no point in even trying these
5660 # tests. Check for that first. We should have already tested for gld
5661 # by now (in libtool), but require it now just to be safe...
5662 SECTION_LDFLAGS=''
5663 OPT_LDFLAGS=''
5666 # Set --gc-sections.
5667 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5668 # GNU ld it is! Joy and bunny rabbits!
5670 # All these tests are for C++; save the language and the compiler flags.
5671 # Need to do this so that g++ won't try to link in libstdc++
5672 ac_test_CFLAGS="${CFLAGS+set}"
5673 ac_save_CFLAGS="$CFLAGS"
5674 CFLAGS='-x c++ -Wl,--gc-sections'
5676 # Check for -Wl,--gc-sections
5677 # XXX This test is broken at the moment, as symbols required for
5678 # linking are now in libsupc++ (not built yet.....). In addition,
5679 # this test has cored on solaris in the past. In addition,
5680 # --gc-sections doesn't really work at the moment (keeps on discarding
5681 # used sections, first .eh_frame and now some of the glibc sections for
5682 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5683 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5684 echo "configure:5685: checking for ld that supports -Wl,--gc-sections" >&5
5685 if test "$cross_compiling" = yes; then
5686 ac_sectionLDflags=yes
5687 else
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5692 int main(void)
5694 try { throw 1; }
5695 catch (...) { };
5696 return 0;
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5701 then
5702 ac_sectionLDflags=yes
5703 else
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5706 rm -fr conftest*
5707 ac_sectionLFflags=no
5709 rm -fr conftest*
5712 if test "$ac_test_CFLAGS" = set; then
5713 CFLAGS="$ac_save_CFLAGS"
5714 else
5715 # this is the suspicious part
5716 CFLAGS=''
5718 if test "$ac_sectionLDflags" = "yes"; then
5719 SECTION_LDFLAGS='-Wl,--gc-sections'
5721 echo "$ac_t""$ac_sectionLDflags" 1>&6
5724 # Set linker optimization flags.
5725 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5726 test x"$enable_debug" = x"no"; then
5727 OPT_LDFLAGS='-Wl,-O1'
5734 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5735 echo "configure:5736: checking for main in -lm" >&5
5736 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5739 else
5740 ac_save_LIBS="$LIBS"
5741 LIBS="-lm $LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5746 int main() {
5747 main()
5748 ; return 0; }
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 rm -rf conftest*
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5753 else
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 rm -rf conftest*
5757 eval "ac_cv_lib_$ac_lib_var=no"
5759 rm -f conftest*
5760 LIBS="$ac_save_LIBS"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_lib 1
5771 LIBS="-lm $LIBS"
5773 else
5774 echo "$ac_t""no" 1>&6
5777 for ac_func in nan copysignf
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5789 #include <assert.h>
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5793 char $ac_func();
5795 int main() {
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 choke me
5802 #else
5803 $ac_func();
5804 #endif
5806 ; return 0; }
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 rm -rf conftest*
5810 eval "ac_cv_func_$ac_func=yes"
5811 else
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 rm -rf conftest*
5815 eval "ac_cv_func_$ac_func=no"
5817 rm -f conftest*
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h <<EOF
5824 #define $ac_tr_func 1
5827 else
5828 echo "$ac_t""no" 1>&6
5829 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5831 done
5835 USE_COMPLEX_LONG_DOUBLE=no
5836 if test x$ac_cv_func_copysignl = x"yes"; then
5837 USE_COMPLEX_LONG_DOUBLE=yes
5838 for ac_func in signbitl
5840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_func" >&5
5842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5844 else
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 /* System header to define __stub macros and hopefully few prototypes,
5849 which can conflict with char $ac_func(); below. */
5850 #include <assert.h>
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char $ac_func();
5856 int main() {
5858 /* The GNU C library defines this for functions which it implements
5859 to always fail with ENOSYS. Some functions are actually named
5860 something starting with __ and the normal name is an alias. */
5861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5862 choke me
5863 #else
5864 $ac_func();
5865 #endif
5867 ; return 0; }
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5870 rm -rf conftest*
5871 eval "ac_cv_func_$ac_func=yes"
5872 else
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 rm -rf conftest*
5876 eval "ac_cv_func_$ac_func=no"
5878 rm -f conftest*
5881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5884 cat >> confdefs.h <<EOF
5885 #define $ac_tr_func 1
5888 else
5889 echo "$ac_t""no" 1>&6
5890 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5892 done
5901 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5902 echo "configure:5903: checking for mbstate_t" >&5
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 #include <wchar.h>
5907 int main() {
5908 mbstate_t teststate;
5909 ; return 0; }
5911 if { (eval echo configure:5912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5912 rm -rf conftest*
5913 have_mbstate_t=yes
5914 else
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5917 rm -rf conftest*
5918 have_mbstate_t=no
5920 rm -f conftest*
5921 echo "$ac_t""$have_mbstate_t" 1>&6
5922 if test x"$have_mbstate_t" = xyes; then
5923 cat >> confdefs.h <<\EOF
5924 #define HAVE_MBSTATE_T 1
5929 for ac_hdr in wchar.h
5931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5933 echo "configure:5934: checking for $ac_hdr" >&5
5934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 #include <$ac_hdr>
5942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5943 { (eval echo configure:5944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5945 if test -z "$ac_err"; then
5946 rm -rf conftest*
5947 eval "ac_cv_header_$ac_safe=yes"
5948 else
5949 echo "$ac_err" >&5
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 eval "ac_cv_header_$ac_safe=no"
5955 rm -f conftest*
5957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5958 echo "$ac_t""yes" 1>&6
5959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5960 cat >> confdefs.h <<EOF
5961 #define $ac_tr_hdr 1
5963 ac_has_wchar_h=yes
5964 else
5965 echo "$ac_t""no" 1>&6
5966 ac_has_wchar_h=no
5968 done
5970 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5971 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5972 echo "configure:5973: checking for wctype.h" >&5
5973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 #include <wctype.h>
5981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5982 { (eval echo configure:5983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5984 if test -z "$ac_err"; then
5985 rm -rf conftest*
5986 eval "ac_cv_header_$ac_safe=yes"
5987 else
5988 echo "$ac_err" >&5
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 rm -rf conftest*
5992 eval "ac_cv_header_$ac_safe=no"
5994 rm -f conftest*
5996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5997 echo "$ac_t""yes" 1>&6
5998 ac_has_wctype_h=yes
5999 else
6000 echo "$ac_t""no" 1>&6
6001 ac_has_wctype_h=no
6005 if test x"$ac_has_wchar_h" = xyes &&
6006 test x"$ac_has_wctype_h" = xyes &&
6007 test x"$enable_c_mbchar" != xno; then
6009 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6010 echo "configure:6011: checking for WCHAR_MIN and WCHAR_MAX" >&5
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <wchar.h>
6015 int main() {
6016 int i = WCHAR_MIN; int j = WCHAR_MAX;
6017 ; return 0; }
6019 if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6020 rm -rf conftest*
6021 has_wchar_minmax=yes
6022 else
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 rm -rf conftest*
6026 has_wchar_minmax=no
6028 rm -f conftest*
6029 echo "$ac_t""$has_wchar_minmax" 1>&6
6031 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6032 echo "configure:6033: checking for WEOF" >&5
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6037 #include <wchar.h>
6038 #include <stddef.h>
6039 int main() {
6040 wint_t i = WEOF;
6041 ; return 0; }
6043 if { (eval echo configure:6044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044 rm -rf conftest*
6045 has_weof=yes
6046 else
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 rm -rf conftest*
6050 has_weof=no
6052 rm -f conftest*
6053 echo "$ac_t""$has_weof" 1>&6
6055 ac_wfuncs=yes
6056 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6062 else
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char $ac_func(); below. */
6068 #include <assert.h>
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6072 char $ac_func();
6074 int main() {
6076 /* The GNU C library defines this for functions which it implements
6077 to always fail with ENOSYS. Some functions are actually named
6078 something starting with __ and the normal name is an alias. */
6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 choke me
6081 #else
6082 $ac_func();
6083 #endif
6085 ; return 0; }
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 rm -rf conftest*
6089 eval "ac_cv_func_$ac_func=yes"
6090 else
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 rm -rf conftest*
6094 eval "ac_cv_func_$ac_func=no"
6096 rm -f conftest*
6099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_func 1
6106 else
6107 echo "$ac_t""no" 1>&6
6109 ac_wfuncs=no
6111 done
6114 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6115 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6116 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6117 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6118 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6119 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_func" >&5
6123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6125 else
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func(); below. */
6131 #include <assert.h>
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6135 char $ac_func();
6137 int main() {
6139 /* The GNU C library defines this for functions which it implements
6140 to always fail with ENOSYS. Some functions are actually named
6141 something starting with __ and the normal name is an alias. */
6142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6143 choke me
6144 #else
6145 $ac_func();
6146 #endif
6148 ; return 0; }
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 rm -rf conftest*
6152 eval "ac_cv_func_$ac_func=yes"
6153 else
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 rm -rf conftest*
6157 eval "ac_cv_func_$ac_func=no"
6159 rm -f conftest*
6162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6163 echo "$ac_t""yes" 1>&6
6164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6165 cat >> confdefs.h <<EOF
6166 #define $ac_tr_func 1
6169 else
6170 echo "$ac_t""no" 1>&6
6172 ac_wfuncs=no
6174 done
6177 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6178 echo "configure:6179: checking for ISO C99 wchar_t support" >&5
6179 if test x"$has_weof" = xyes &&
6180 test x"$has_wchar_minmax" = xyes &&
6181 test x"$ac_wfuncs" = xyes; then
6182 ac_isoC99_wchar_t=yes
6183 else
6184 ac_isoC99_wchar_t=no
6186 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6188 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6190 echo "configure:6191: checking for iconv.h" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <iconv.h>
6199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6200 { (eval echo configure:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6202 if test -z "$ac_err"; then
6203 rm -rf conftest*
6204 eval "ac_cv_header_$ac_safe=yes"
6205 else
6206 echo "$ac_err" >&5
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 rm -rf conftest*
6210 eval "ac_cv_header_$ac_safe=no"
6212 rm -f conftest*
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 ac_has_iconv_h=yes
6217 else
6218 echo "$ac_t""no" 1>&6
6219 ac_has_iconv_h=no
6222 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6223 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6224 echo "configure:6225: checking for langinfo.h" >&5
6225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6227 else
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <langinfo.h>
6233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6234 { (eval echo configure:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6236 if test -z "$ac_err"; then
6237 rm -rf conftest*
6238 eval "ac_cv_header_$ac_safe=yes"
6239 else
6240 echo "$ac_err" >&5
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 rm -rf conftest*
6244 eval "ac_cv_header_$ac_safe=no"
6246 rm -f conftest*
6248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_has_langinfo_h=yes
6251 else
6252 echo "$ac_t""no" 1>&6
6253 ac_has_langinfo_h=no
6257 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6258 echo "configure:6259: checking for iconv in -liconv" >&5
6259 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6262 else
6263 ac_save_LIBS="$LIBS"
6264 LIBS="-liconv $LIBS"
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char iconv();
6273 int main() {
6274 iconv()
6275 ; return 0; }
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6278 rm -rf conftest*
6279 eval "ac_cv_lib_$ac_lib_var=yes"
6280 else
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 rm -rf conftest*
6284 eval "ac_cv_lib_$ac_lib_var=no"
6286 rm -f conftest*
6287 LIBS="$ac_save_LIBS"
6290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 libiconv="-liconv"
6293 else
6294 echo "$ac_t""no" 1>&6
6297 ac_save_LIBS="$LIBS"
6298 LIBS="$LIBS $libiconv"
6300 for ac_func in iconv_open iconv_close iconv nl_langinfo
6302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6303 echo "configure:6304: checking for $ac_func" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6306 else
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311 which can conflict with char $ac_func(); below. */
6312 #include <assert.h>
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6316 char $ac_func();
6318 int main() {
6320 /* The GNU C library defines this for functions which it implements
6321 to always fail with ENOSYS. Some functions are actually named
6322 something starting with __ and the normal name is an alias. */
6323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6324 choke me
6325 #else
6326 $ac_func();
6327 #endif
6329 ; return 0; }
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 rm -rf conftest*
6333 eval "ac_cv_func_$ac_func=yes"
6334 else
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 rm -rf conftest*
6338 eval "ac_cv_func_$ac_func=no"
6340 rm -f conftest*
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 cat >> confdefs.h <<EOF
6347 #define $ac_tr_func 1
6350 ac_XPG2funcs=yes
6351 else
6352 echo "$ac_t""no" 1>&6
6353 ac_XPG2funcs=no
6355 done
6358 LIBS="$ac_save_LIBS"
6360 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6361 echo "configure:6362: checking for XPG2 wchar_t support" >&5
6362 if test x"$ac_has_iconv_h" = xyes &&
6363 test x"$ac_has_langinfo_h" = xyes &&
6364 test x"$ac_XPG2funcs" = xyes; then
6365 ac_XPG2_wchar_t=yes
6366 else
6367 ac_XPG2_wchar_t=no
6369 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6371 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6372 echo "configure:6373: checking for enabled wchar_t specializations" >&5
6373 if test x"$ac_isoC99_wchar_t" = xyes &&
6374 test x"$ac_XPG2_wchar_t" = xyes; then
6375 cat >> confdefs.h <<\EOF
6376 #define _GLIBCPP_USE_WCHAR_T 1
6379 echo "$ac_t"""yes"" 1>&6
6380 else
6381 echo "$ac_t"""no"" 1>&6
6383 else
6384 echo "configure: warning: wchar_t support disabled." 1>&2
6387 os_include_dir="config/os/bsd/netbsd"
6388 cat >> confdefs.h <<\EOF
6389 #define HAVE_COPYSIGN 1
6392 cat >> confdefs.h <<\EOF
6393 #define HAVE_COPYSIGNF 1
6396 cat >> confdefs.h <<\EOF
6397 #define HAVE_FINITEF 1
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_FREXPF 1
6404 cat >> confdefs.h <<\EOF
6405 #define HAVE_HYPOTF 1
6410 os_include_dir="config/os/newlib"
6411 cat >> confdefs.h <<\EOF
6412 #define HAVE_HYPOT 1
6416 esac
6418 # GLIBCPP_CHECK_STDLIB_SUPPORT
6419 cat >> confdefs.h <<\EOF
6420 #define HAVE_STRTOF 1
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_STRTOLD 1
6427 # AC_FUNC_MMAP
6428 cat >> confdefs.h <<\EOF
6429 #define HAVE_MMAP 1
6433 cat >> confdefs.h <<\EOF
6434 #define HAVE_ACOSF 1
6437 cat >> confdefs.h <<\EOF
6438 #define HAVE_ASINF 1
6441 cat >> confdefs.h <<\EOF
6442 #define HAVE_ATAN2F 1
6445 cat >> confdefs.h <<\EOF
6446 #define HAVE_ATANF 1
6449 cat >> confdefs.h <<\EOF
6450 #define HAVE_CEILF 1
6453 cat >> confdefs.h <<\EOF
6454 #define HAVE_COPYSIGN 1
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_COPYSIGNF 1
6461 cat >> confdefs.h <<\EOF
6462 #define HAVE_COSF 1
6465 cat >> confdefs.h <<\EOF
6466 #define HAVE_COSHF 1
6469 cat >> confdefs.h <<\EOF
6470 #define HAVE_EXPF 1
6473 cat >> confdefs.h <<\EOF
6474 #define HAVE_FABSF 1
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_FINITE 1
6481 cat >> confdefs.h <<\EOF
6482 #define HAVE_FINITEF 1
6485 cat >> confdefs.h <<\EOF
6486 #define HAVE_FLOORF 1
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_FMODF 1
6493 cat >> confdefs.h <<\EOF
6494 #define HAVE_FREXPF 1
6497 cat >> confdefs.h <<\EOF
6498 #define HAVE_ISINF 1
6501 cat >> confdefs.h <<\EOF
6502 #define HAVE_ISINFF 1
6505 cat >> confdefs.h <<\EOF
6506 #define HAVE_ISNAN 1
6509 cat >> confdefs.h <<\EOF
6510 #define HAVE_ISNANF 1
6513 cat >> confdefs.h <<\EOF
6514 #define HAVE_LDEXPF 1
6517 cat >> confdefs.h <<\EOF
6518 #define HAVE_LOG10F 1
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_LOGF 1
6525 cat >> confdefs.h <<\EOF
6526 #define HAVE_MODFF 1
6529 cat >> confdefs.h <<\EOF
6530 #define HAVE_POWF 1
6533 cat >> confdefs.h <<\EOF
6534 #define HAVE_SINF 1
6537 cat >> confdefs.h <<\EOF
6538 #define HAVE_SINHF 1
6541 cat >> confdefs.h <<\EOF
6542 #define HAVE_SQRTF 1
6545 cat >> confdefs.h <<\EOF
6546 #define HAVE_TANF 1
6549 cat >> confdefs.h <<\EOF
6550 #define HAVE_TANHF 1
6554 # At some point, we should differentiate between architectures
6555 # like x86, which have long double versions, and alpha/powerpc/etc.,
6556 # which don't. For the time being, punt.
6557 if test x"long_double_math_on_this_cpu" = x"yes"; then
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_ACOSL 1
6562 cat >> confdefs.h <<\EOF
6563 #define HAVE_ASINL 1
6566 cat >> confdefs.h <<\EOF
6567 #define HAVE_ATAN2L 1
6570 cat >> confdefs.h <<\EOF
6571 #define HAVE_ATANL 1
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_CEILL 1
6578 cat >> confdefs.h <<\EOF
6579 #define HAVE_COPYSIGNL 1
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE_COSL 1
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE_COSHL 1
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_EXPL 1
6594 cat >> confdefs.h <<\EOF
6595 #define HAVE_FABSL 1
6598 cat >> confdefs.h <<\EOF
6599 #define HAVE_FINITEL 1
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_FLOORL 1
6606 cat >> confdefs.h <<\EOF
6607 #define HAVE_FMODL 1
6610 cat >> confdefs.h <<\EOF
6611 #define HAVE_FREXPL 1
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE_ISINFL 1
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_ISNANL 1
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE_LDEXPL 1
6626 cat >> confdefs.h <<\EOF
6627 #define HAVE_LOG10L 1
6630 cat >> confdefs.h <<\EOF
6631 #define HAVE_LOGL 1
6634 cat >> confdefs.h <<\EOF
6635 #define HAVE_MODFL 1
6638 cat >> confdefs.h <<\EOF
6639 #define HAVE_POWL 1
6642 cat >> confdefs.h <<\EOF
6643 #define HAVE_SINCOSL 1
6646 cat >> confdefs.h <<\EOF
6647 #define HAVE_SINL 1
6650 cat >> confdefs.h <<\EOF
6651 #define HAVE_SINHL 1
6654 cat >> confdefs.h <<\EOF
6655 #define HAVE_SQRTL 1
6658 cat >> confdefs.h <<\EOF
6659 #define HAVE_TANL 1
6662 cat >> confdefs.h <<\EOF
6663 #define HAVE_TANHL 1
6667 else
6669 # We are being configured natively. We can do more elaborate tests
6670 # that include AC_TRY_COMPILE now, as the linker is assumed to be
6671 # working.
6672 GLIBCPP_IS_CROSS_COMPILING=0
6673 CANADIAN=no
6675 # Check for available headers.
6676 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6677 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_hdr" >&5
6682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <$ac_hdr>
6690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6691 { (eval echo configure:6692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6693 if test -z "$ac_err"; then
6694 rm -rf conftest*
6695 eval "ac_cv_header_$ac_safe=yes"
6696 else
6697 echo "$ac_err" >&5
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 eval "ac_cv_header_$ac_safe=no"
6703 rm -f conftest*
6705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_hdr 1
6712 else
6713 echo "$ac_t""no" 1>&6
6715 done
6719 # All these tests are for C++; save the language and the compiler flags.
6720 # The CXXFLAGS thing is suspicious, but based on similar bits previously
6721 # found in GLIBCPP_CONFIGURE.
6723 ac_ext=C
6724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6725 ac_cpp='$CXXCPP $CPPFLAGS'
6726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6728 cross_compiling=$ac_cv_prog_cxx_cross
6730 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6731 ac_save_CXXFLAGS="$CXXFLAGS"
6733 # Check for maintainer-mode bits.
6734 if test x"$USE_MAINTAINER_MODE" = xno; then
6735 WERROR=''
6736 else
6737 WERROR='-Werror'
6740 # Check for -ffunction-sections -fdata-sections
6741 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6742 echo "configure:6743: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6743 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6748 int main() {
6749 int foo;
6751 ; return 0; }
6753 if { (eval echo configure:6754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 rm -rf conftest*
6755 ac_fdsections=yes
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 ac_fdsections=no
6762 rm -f conftest*
6763 if test "$ac_test_CXXFLAGS" = set; then
6764 CXXFLAGS="$ac_save_CXXFLAGS"
6765 else
6766 # this is the suspicious part
6767 CXXFLAGS=''
6769 if test x"$ac_fdsections" = x"yes" &&
6770 test x"$enable_debug" = x"no"; then
6771 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6773 echo "$ac_t""$ac_fdsections" 1>&6
6775 ac_ext=c
6776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6777 ac_cpp='$CPP $CPPFLAGS'
6778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6780 cross_compiling=$ac_cv_prog_cc_cross
6786 # If we're not using GNU ld, then there's no point in even trying these
6787 # tests. Check for that first. We should have already tested for gld
6788 # by now (in libtool), but require it now just to be safe...
6789 SECTION_LDFLAGS=''
6790 OPT_LDFLAGS=''
6793 # Set --gc-sections.
6794 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
6795 # GNU ld it is! Joy and bunny rabbits!
6797 # All these tests are for C++; save the language and the compiler flags.
6798 # Need to do this so that g++ won't try to link in libstdc++
6799 ac_test_CFLAGS="${CFLAGS+set}"
6800 ac_save_CFLAGS="$CFLAGS"
6801 CFLAGS='-x c++ -Wl,--gc-sections'
6803 # Check for -Wl,--gc-sections
6804 # XXX This test is broken at the moment, as symbols required for
6805 # linking are now in libsupc++ (not built yet.....). In addition,
6806 # this test has cored on solaris in the past. In addition,
6807 # --gc-sections doesn't really work at the moment (keeps on discarding
6808 # used sections, first .eh_frame and now some of the glibc sections for
6809 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6810 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6811 echo "configure:6812: checking for ld that supports -Wl,--gc-sections" >&5
6812 if test "$cross_compiling" = yes; then
6813 ac_sectionLDflags=yes
6814 else
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6819 int main(void)
6821 try { throw 1; }
6822 catch (...) { };
6823 return 0;
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6828 then
6829 ac_sectionLDflags=yes
6830 else
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6833 rm -fr conftest*
6834 ac_sectionLFflags=no
6836 rm -fr conftest*
6839 if test "$ac_test_CFLAGS" = set; then
6840 CFLAGS="$ac_save_CFLAGS"
6841 else
6842 # this is the suspicious part
6843 CFLAGS=''
6845 if test "$ac_sectionLDflags" = "yes"; then
6846 SECTION_LDFLAGS='-Wl,--gc-sections'
6848 echo "$ac_t""$ac_sectionLDflags" 1>&6
6851 # Set linker optimization flags.
6852 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6853 test x"$enable_debug" = x"no"; then
6854 OPT_LDFLAGS='-Wl,-O1'
6862 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6863 echo "configure:6864: checking for __builtin_abs declaration" >&5
6864 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6865 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6870 ac_ext=C
6871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6875 cross_compiling=$ac_cv_prog_cxx_cross
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6880 #include <math.h>
6881 int main() {
6882 __builtin_abs(0);
6883 ; return 0; }
6885 if { (eval echo configure:6886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6886 rm -rf conftest*
6887 glibcpp_cv_func___builtin_abs_use=yes
6888 else
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 rm -rf conftest*
6892 glibcpp_cv_func___builtin_abs_use=no
6894 rm -f conftest*
6895 ac_ext=c
6896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6900 cross_compiling=$ac_cv_prog_cc_cross
6906 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6907 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6908 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6909 echo "configure:6910: checking for __builtin_abs linkage" >&5
6910 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6911 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 #include <math.h>
6919 int main() {
6920 __builtin_abs(0);
6921 ; return 0; }
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6924 rm -rf conftest*
6925 glibcpp_cv_func___builtin_abs_link=yes
6926 else
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 rm -rf conftest*
6930 glibcpp_cv_func___builtin_abs_link=no
6932 rm -f conftest*
6937 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6938 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6939 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6940 cat >> confdefs.h <<EOF
6941 #define ${ac_tr_func} 1
6948 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6949 echo "configure:6950: checking for __builtin_fabsf declaration" >&5
6950 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6951 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6953 else
6956 ac_ext=C
6957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6958 ac_cpp='$CXXCPP $CPPFLAGS'
6959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6961 cross_compiling=$ac_cv_prog_cxx_cross
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 #include <math.h>
6967 int main() {
6968 __builtin_fabsf(0);
6969 ; return 0; }
6971 if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6972 rm -rf conftest*
6973 glibcpp_cv_func___builtin_fabsf_use=yes
6974 else
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6977 rm -rf conftest*
6978 glibcpp_cv_func___builtin_fabsf_use=no
6980 rm -f conftest*
6981 ac_ext=c
6982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6986 cross_compiling=$ac_cv_prog_cc_cross
6992 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6993 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6994 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6995 echo "configure:6996: checking for __builtin_fabsf linkage" >&5
6996 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6997 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 #include <math.h>
7005 int main() {
7006 __builtin_fabsf(0);
7007 ; return 0; }
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest*
7011 glibcpp_cv_func___builtin_fabsf_link=yes
7012 else
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 rm -rf conftest*
7016 glibcpp_cv_func___builtin_fabsf_link=no
7018 rm -f conftest*
7023 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7024 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7025 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7026 cat >> confdefs.h <<EOF
7027 #define ${ac_tr_func} 1
7034 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7035 echo "configure:7036: checking for __builtin_fabs declaration" >&5
7036 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7037 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7039 else
7042 ac_ext=C
7043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7047 cross_compiling=$ac_cv_prog_cxx_cross
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 #include <math.h>
7053 int main() {
7054 __builtin_fabs(0);
7055 ; return 0; }
7057 if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058 rm -rf conftest*
7059 glibcpp_cv_func___builtin_fabs_use=yes
7060 else
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7063 rm -rf conftest*
7064 glibcpp_cv_func___builtin_fabs_use=no
7066 rm -f conftest*
7067 ac_ext=c
7068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7072 cross_compiling=$ac_cv_prog_cc_cross
7078 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7079 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7080 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7081 echo "configure:7082: checking for __builtin_fabs linkage" >&5
7082 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7083 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7085 else
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 #include <math.h>
7091 int main() {
7092 __builtin_fabs(0);
7093 ; return 0; }
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 rm -rf conftest*
7097 glibcpp_cv_func___builtin_fabs_link=yes
7098 else
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7101 rm -rf conftest*
7102 glibcpp_cv_func___builtin_fabs_link=no
7104 rm -f conftest*
7109 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7110 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7111 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7112 cat >> confdefs.h <<EOF
7113 #define ${ac_tr_func} 1
7120 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7121 echo "configure:7122: checking for __builtin_fabsl declaration" >&5
7122 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7123 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7125 else
7128 ac_ext=C
7129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7130 ac_cpp='$CXXCPP $CPPFLAGS'
7131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7133 cross_compiling=$ac_cv_prog_cxx_cross
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 #include <math.h>
7139 int main() {
7140 __builtin_fabsl(0);
7141 ; return 0; }
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144 rm -rf conftest*
7145 glibcpp_cv_func___builtin_fabsl_use=yes
7146 else
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 rm -rf conftest*
7150 glibcpp_cv_func___builtin_fabsl_use=no
7152 rm -f conftest*
7153 ac_ext=c
7154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7158 cross_compiling=$ac_cv_prog_cc_cross
7164 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7165 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7166 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7167 echo "configure:7168: checking for __builtin_fabsl linkage" >&5
7168 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7169 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7171 else
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7176 #include <math.h>
7177 int main() {
7178 __builtin_fabsl(0);
7179 ; return 0; }
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7182 rm -rf conftest*
7183 glibcpp_cv_func___builtin_fabsl_link=yes
7184 else
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 rm -rf conftest*
7188 glibcpp_cv_func___builtin_fabsl_link=no
7190 rm -f conftest*
7195 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7196 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7197 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7198 cat >> confdefs.h <<EOF
7199 #define ${ac_tr_func} 1
7206 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7207 echo "configure:7208: checking for __builtin_labs declaration" >&5
7208 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7209 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7211 else
7214 ac_ext=C
7215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7216 ac_cpp='$CXXCPP $CPPFLAGS'
7217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7219 cross_compiling=$ac_cv_prog_cxx_cross
7221 cat > conftest.$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7224 #include <math.h>
7225 int main() {
7226 __builtin_labs(0);
7227 ; return 0; }
7229 if { (eval echo configure:7230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7230 rm -rf conftest*
7231 glibcpp_cv_func___builtin_labs_use=yes
7232 else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 glibcpp_cv_func___builtin_labs_use=no
7238 rm -f conftest*
7239 ac_ext=c
7240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7244 cross_compiling=$ac_cv_prog_cc_cross
7250 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7251 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7252 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7253 echo "configure:7254: checking for __builtin_labs linkage" >&5
7254 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7255 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7257 else
7259 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 #include <math.h>
7263 int main() {
7264 __builtin_labs(0);
7265 ; return 0; }
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7268 rm -rf conftest*
7269 glibcpp_cv_func___builtin_labs_link=yes
7270 else
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7273 rm -rf conftest*
7274 glibcpp_cv_func___builtin_labs_link=no
7276 rm -f conftest*
7281 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7282 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7283 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284 cat >> confdefs.h <<EOF
7285 #define ${ac_tr_func} 1
7293 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7294 echo "configure:7295: checking for __builtin_sqrtf declaration" >&5
7295 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7296 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7301 ac_ext=C
7302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7306 cross_compiling=$ac_cv_prog_cxx_cross
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <math.h>
7312 int main() {
7313 __builtin_sqrtf(0);
7314 ; return 0; }
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7317 rm -rf conftest*
7318 glibcpp_cv_func___builtin_sqrtf_use=yes
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 rm -rf conftest*
7323 glibcpp_cv_func___builtin_sqrtf_use=no
7325 rm -f conftest*
7326 ac_ext=c
7327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7331 cross_compiling=$ac_cv_prog_cc_cross
7337 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7338 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7339 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7340 echo "configure:7341: checking for __builtin_sqrtf linkage" >&5
7341 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7342 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7344 else
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <math.h>
7350 int main() {
7351 __builtin_sqrtf(0);
7352 ; return 0; }
7354 if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7355 rm -rf conftest*
7356 glibcpp_cv_func___builtin_sqrtf_link=yes
7357 else
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 rm -rf conftest*
7361 glibcpp_cv_func___builtin_sqrtf_link=no
7363 rm -f conftest*
7368 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7369 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7370 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7371 cat >> confdefs.h <<EOF
7372 #define ${ac_tr_func} 1
7379 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7380 echo "configure:7381: checking for __builtin_sqrt declaration" >&5
7381 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7382 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7384 else
7387 ac_ext=C
7388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7392 cross_compiling=$ac_cv_prog_cxx_cross
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <math.h>
7398 int main() {
7399 __builtin_sqrt(0);
7400 ; return 0; }
7402 if { (eval echo configure:7403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7403 rm -rf conftest*
7404 glibcpp_cv_func___builtin_sqrt_use=yes
7405 else
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 rm -rf conftest*
7409 glibcpp_cv_func___builtin_sqrt_use=no
7411 rm -f conftest*
7412 ac_ext=c
7413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7414 ac_cpp='$CPP $CPPFLAGS'
7415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7417 cross_compiling=$ac_cv_prog_cc_cross
7423 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7424 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7425 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7426 echo "configure:7427: checking for __builtin_sqrt linkage" >&5
7427 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7428 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7430 else
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <math.h>
7436 int main() {
7437 __builtin_sqrt(0);
7438 ; return 0; }
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 rm -rf conftest*
7442 glibcpp_cv_func___builtin_sqrt_link=yes
7443 else
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7446 rm -rf conftest*
7447 glibcpp_cv_func___builtin_sqrt_link=no
7449 rm -f conftest*
7454 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7455 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7456 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7457 cat >> confdefs.h <<EOF
7458 #define ${ac_tr_func} 1
7465 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7466 echo "configure:7467: checking for __builtin_sqrtl declaration" >&5
7467 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7468 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7473 ac_ext=C
7474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7478 cross_compiling=$ac_cv_prog_cxx_cross
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 #include <math.h>
7484 int main() {
7485 __builtin_sqrtl(0);
7486 ; return 0; }
7488 if { (eval echo configure:7489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7489 rm -rf conftest*
7490 glibcpp_cv_func___builtin_sqrtl_use=yes
7491 else
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 rm -rf conftest*
7495 glibcpp_cv_func___builtin_sqrtl_use=no
7497 rm -f conftest*
7498 ac_ext=c
7499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7503 cross_compiling=$ac_cv_prog_cc_cross
7509 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7510 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7511 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7512 echo "configure:7513: checking for __builtin_sqrtl linkage" >&5
7513 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7514 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7516 else
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521 #include <math.h>
7522 int main() {
7523 __builtin_sqrtl(0);
7524 ; return 0; }
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7527 rm -rf conftest*
7528 glibcpp_cv_func___builtin_sqrtl_link=yes
7529 else
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 glibcpp_cv_func___builtin_sqrtl_link=no
7535 rm -f conftest*
7540 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7541 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7542 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h <<EOF
7544 #define ${ac_tr_func} 1
7552 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7553 echo "configure:7554: checking for __builtin_sinf declaration" >&5
7554 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7555 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7560 ac_ext=C
7561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7562 ac_cpp='$CXXCPP $CPPFLAGS'
7563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7565 cross_compiling=$ac_cv_prog_cxx_cross
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 #include <math.h>
7571 int main() {
7572 __builtin_sinf(0);
7573 ; return 0; }
7575 if { (eval echo configure:7576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7576 rm -rf conftest*
7577 glibcpp_cv_func___builtin_sinf_use=yes
7578 else
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 rm -rf conftest*
7582 glibcpp_cv_func___builtin_sinf_use=no
7584 rm -f conftest*
7585 ac_ext=c
7586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7590 cross_compiling=$ac_cv_prog_cc_cross
7596 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7597 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7598 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7599 echo "configure:7600: checking for __builtin_sinf linkage" >&5
7600 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7601 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7603 else
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 #include <math.h>
7609 int main() {
7610 __builtin_sinf(0);
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 glibcpp_cv_func___builtin_sinf_link=yes
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 glibcpp_cv_func___builtin_sinf_link=no
7622 rm -f conftest*
7627 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7628 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7629 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7630 cat >> confdefs.h <<EOF
7631 #define ${ac_tr_func} 1
7638 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7639 echo "configure:7640: checking for __builtin_sin declaration" >&5
7640 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7641 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643 else
7646 ac_ext=C
7647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7651 cross_compiling=$ac_cv_prog_cxx_cross
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 #include <math.h>
7657 int main() {
7658 __builtin_sin(0);
7659 ; return 0; }
7661 if { (eval echo configure:7662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7662 rm -rf conftest*
7663 glibcpp_cv_func___builtin_sin_use=yes
7664 else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 glibcpp_cv_func___builtin_sin_use=no
7670 rm -f conftest*
7671 ac_ext=c
7672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7676 cross_compiling=$ac_cv_prog_cc_cross
7682 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7683 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7684 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7685 echo "configure:7686: checking for __builtin_sin linkage" >&5
7686 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7687 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 #include <math.h>
7695 int main() {
7696 __builtin_sin(0);
7697 ; return 0; }
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 rm -rf conftest*
7701 glibcpp_cv_func___builtin_sin_link=yes
7702 else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 glibcpp_cv_func___builtin_sin_link=no
7708 rm -f conftest*
7713 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7714 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7715 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7716 cat >> confdefs.h <<EOF
7717 #define ${ac_tr_func} 1
7724 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7725 echo "configure:7726: checking for __builtin_sinl declaration" >&5
7726 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7727 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7732 ac_ext=C
7733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7734 ac_cpp='$CXXCPP $CPPFLAGS'
7735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7737 cross_compiling=$ac_cv_prog_cxx_cross
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <math.h>
7743 int main() {
7744 __builtin_sinl(0);
7745 ; return 0; }
7747 if { (eval echo configure:7748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7748 rm -rf conftest*
7749 glibcpp_cv_func___builtin_sinl_use=yes
7750 else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -rf conftest*
7754 glibcpp_cv_func___builtin_sinl_use=no
7756 rm -f conftest*
7757 ac_ext=c
7758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762 cross_compiling=$ac_cv_prog_cc_cross
7768 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7769 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7770 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7771 echo "configure:7772: checking for __builtin_sinl linkage" >&5
7772 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7773 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7775 else
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 #include <math.h>
7781 int main() {
7782 __builtin_sinl(0);
7783 ; return 0; }
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7786 rm -rf conftest*
7787 glibcpp_cv_func___builtin_sinl_link=yes
7788 else
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 rm -rf conftest*
7792 glibcpp_cv_func___builtin_sinl_link=no
7794 rm -f conftest*
7799 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7800 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7801 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7802 cat >> confdefs.h <<EOF
7803 #define ${ac_tr_func} 1
7811 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7812 echo "configure:7813: checking for __builtin_cosf declaration" >&5
7813 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7814 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7816 else
7819 ac_ext=C
7820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7821 ac_cpp='$CXXCPP $CPPFLAGS'
7822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7824 cross_compiling=$ac_cv_prog_cxx_cross
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 #include <math.h>
7830 int main() {
7831 __builtin_cosf(0);
7832 ; return 0; }
7834 if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7835 rm -rf conftest*
7836 glibcpp_cv_func___builtin_cosf_use=yes
7837 else
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 rm -rf conftest*
7841 glibcpp_cv_func___builtin_cosf_use=no
7843 rm -f conftest*
7844 ac_ext=c
7845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7849 cross_compiling=$ac_cv_prog_cc_cross
7855 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7856 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7857 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7858 echo "configure:7859: checking for __builtin_cosf linkage" >&5
7859 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7860 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7867 #include <math.h>
7868 int main() {
7869 __builtin_cosf(0);
7870 ; return 0; }
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7873 rm -rf conftest*
7874 glibcpp_cv_func___builtin_cosf_link=yes
7875 else
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 rm -rf conftest*
7879 glibcpp_cv_func___builtin_cosf_link=no
7881 rm -f conftest*
7886 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7887 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7888 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7889 cat >> confdefs.h <<EOF
7890 #define ${ac_tr_func} 1
7897 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7898 echo "configure:7899: checking for __builtin_cos declaration" >&5
7899 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7900 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902 else
7905 ac_ext=C
7906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7907 ac_cpp='$CXXCPP $CPPFLAGS'
7908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7910 cross_compiling=$ac_cv_prog_cxx_cross
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 #include <math.h>
7916 int main() {
7917 __builtin_cos(0);
7918 ; return 0; }
7920 if { (eval echo configure:7921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7921 rm -rf conftest*
7922 glibcpp_cv_func___builtin_cos_use=yes
7923 else
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 glibcpp_cv_func___builtin_cos_use=no
7929 rm -f conftest*
7930 ac_ext=c
7931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7935 cross_compiling=$ac_cv_prog_cc_cross
7941 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7942 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7943 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7944 echo "configure:7945: checking for __builtin_cos linkage" >&5
7945 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7946 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 #include <math.h>
7954 int main() {
7955 __builtin_cos(0);
7956 ; return 0; }
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 rm -rf conftest*
7960 glibcpp_cv_func___builtin_cos_link=yes
7961 else
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 rm -rf conftest*
7965 glibcpp_cv_func___builtin_cos_link=no
7967 rm -f conftest*
7972 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7973 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7974 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h <<EOF
7976 #define ${ac_tr_func} 1
7983 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7984 echo "configure:7985: checking for __builtin_cosl declaration" >&5
7985 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7986 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7991 ac_ext=C
7992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7993 ac_cpp='$CXXCPP $CPPFLAGS'
7994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7996 cross_compiling=$ac_cv_prog_cxx_cross
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 #include <math.h>
8002 int main() {
8003 __builtin_cosl(0);
8004 ; return 0; }
8006 if { (eval echo configure:8007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8007 rm -rf conftest*
8008 glibcpp_cv_func___builtin_cosl_use=yes
8009 else
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 rm -rf conftest*
8013 glibcpp_cv_func___builtin_cosl_use=no
8015 rm -f conftest*
8016 ac_ext=c
8017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8021 cross_compiling=$ac_cv_prog_cc_cross
8027 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8028 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8029 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8030 echo "configure:8031: checking for __builtin_cosl linkage" >&5
8031 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8032 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8034 else
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 #include <math.h>
8040 int main() {
8041 __builtin_cosl(0);
8042 ; return 0; }
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 rm -rf conftest*
8046 glibcpp_cv_func___builtin_cosl_link=yes
8047 else
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8050 rm -rf conftest*
8051 glibcpp_cv_func___builtin_cosl_link=no
8053 rm -f conftest*
8058 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8059 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8060 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8061 cat >> confdefs.h <<EOF
8062 #define ${ac_tr_func} 1
8069 dummyvar=no
8070 if test x$dummyvar = x"yes"; then
8071 cat >> confdefs.h <<\EOF
8072 #define HAVE___BUILTIN_ABS 1
8075 cat >> confdefs.h <<\EOF
8076 #define HAVE___BUILTIN_LABS 1
8079 cat >> confdefs.h <<\EOF
8080 #define HAVE___BUILTIN_COS 1
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE___BUILTIN_COSF 1
8087 cat >> confdefs.h <<\EOF
8088 #define HAVE___BUILTIN_COSL 1
8091 cat >> confdefs.h <<\EOF
8092 #define HAVE___BUILTIN_FABS 1
8095 cat >> confdefs.h <<\EOF
8096 #define HAVE___BUILTIN_FABSF 1
8099 cat >> confdefs.h <<\EOF
8100 #define HAVE___BUILTIN_FABSL 1
8103 cat >> confdefs.h <<\EOF
8104 #define HAVE___BUILTIN_SIN 1
8107 cat >> confdefs.h <<\EOF
8108 #define HAVE___BUILTIN_SINF 1
8111 cat >> confdefs.h <<\EOF
8112 #define HAVE___BUILTIN_SINL 1
8115 cat >> confdefs.h <<\EOF
8116 #define HAVE___BUILTIN_SQRT 1
8119 cat >> confdefs.h <<\EOF
8120 #define HAVE___BUILTIN_SQRTF 1
8123 cat >> confdefs.h <<\EOF
8124 #define HAVE___BUILTIN_SQRTL 1
8130 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8131 ac_save_CXXFLAGS="$CXXFLAGS"
8132 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8134 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8135 echo "configure:8136: checking for sin in -lm" >&5
8136 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139 else
8140 ac_save_LIBS="$LIBS"
8141 LIBS="-lm $LIBS"
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148 char sin();
8150 int main() {
8151 sin()
8152 ; return 0; }
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8155 rm -rf conftest*
8156 eval "ac_cv_lib_$ac_lib_var=yes"
8157 else
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 rm -rf conftest*
8161 eval "ac_cv_lib_$ac_lib_var=no"
8163 rm -f conftest*
8164 LIBS="$ac_save_LIBS"
8167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8168 echo "$ac_t""yes" 1>&6
8169 libm="-lm"
8170 else
8171 echo "$ac_t""no" 1>&6
8174 ac_save_LIBS="$LIBS"
8175 LIBS="$LIBS $libm"
8179 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8180 echo "configure:8181: checking for isinf declaration" >&5
8181 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8182 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8184 else
8187 ac_ext=C
8188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8189 ac_cpp='$CXXCPP $CPPFLAGS'
8190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8192 cross_compiling=$ac_cv_prog_cxx_cross
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197 #include <math.h>
8198 #ifdef HAVE_IEEEFP_H
8199 #include <ieeefp.h>
8200 #endif
8202 int main() {
8203 isinf(0);
8204 ; return 0; }
8206 if { (eval echo configure:8207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8207 rm -rf conftest*
8208 glibcpp_cv_func_isinf_use=yes
8209 else
8210 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 rm -rf conftest*
8213 glibcpp_cv_func_isinf_use=no
8215 rm -f conftest*
8216 ac_ext=c
8217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218 ac_cpp='$CPP $CPPFLAGS'
8219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221 cross_compiling=$ac_cv_prog_cc_cross
8227 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8229 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8230 for ac_func in isinf
8232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8233 echo "configure:8234: checking for $ac_func" >&5
8234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8235 echo $ac_n "(cached) $ac_c" 1>&6
8236 else
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char $ac_func(); below. */
8242 #include <assert.h>
8243 /* Override any gcc2 internal prototype to avoid an error. */
8244 /* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8246 char $ac_func();
8248 int main() {
8250 /* The GNU C library defines this for functions which it implements
8251 to always fail with ENOSYS. Some functions are actually named
8252 something starting with __ and the normal name is an alias. */
8253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8254 choke me
8255 #else
8256 $ac_func();
8257 #endif
8259 ; return 0; }
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8262 rm -rf conftest*
8263 eval "ac_cv_func_$ac_func=yes"
8264 else
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 rm -rf conftest*
8268 eval "ac_cv_func_$ac_func=no"
8270 rm -f conftest*
8273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8276 cat >> confdefs.h <<EOF
8277 #define $ac_tr_func 1
8280 else
8281 echo "$ac_t""no" 1>&6
8283 done
8285 else
8287 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8288 echo "configure:8289: checking for _isinf declaration" >&5
8289 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8290 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8292 else
8295 ac_ext=C
8296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8297 ac_cpp='$CXXCPP $CPPFLAGS'
8298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8300 cross_compiling=$ac_cv_prog_cxx_cross
8302 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure"
8304 #include "confdefs.h"
8305 #include <math.h>
8306 #ifdef HAVE_IEEEFP_H
8307 #include <ieeefp.h>
8308 #endif
8310 int main() {
8311 _isinf(0);
8312 ; return 0; }
8314 if { (eval echo configure:8315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8315 rm -rf conftest*
8316 glibcpp_cv_func__isinf_use=yes
8317 else
8318 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 rm -rf conftest*
8321 glibcpp_cv_func__isinf_use=no
8323 rm -f conftest*
8324 ac_ext=c
8325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8326 ac_cpp='$CPP $CPPFLAGS'
8327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8329 cross_compiling=$ac_cv_prog_cc_cross
8335 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8337 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8338 for ac_func in _isinf
8340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8341 echo "configure:8342: checking for $ac_func" >&5
8342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8344 else
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 /* System header to define __stub macros and hopefully few prototypes,
8349 which can conflict with char $ac_func(); below. */
8350 #include <assert.h>
8351 /* Override any gcc2 internal prototype to avoid an error. */
8352 /* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354 char $ac_func();
8356 int main() {
8358 /* The GNU C library defines this for functions which it implements
8359 to always fail with ENOSYS. Some functions are actually named
8360 something starting with __ and the normal name is an alias. */
8361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8362 choke me
8363 #else
8364 $ac_func();
8365 #endif
8367 ; return 0; }
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8370 rm -rf conftest*
8371 eval "ac_cv_func_$ac_func=yes"
8372 else
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -rf conftest*
8376 eval "ac_cv_func_$ac_func=no"
8378 rm -f conftest*
8381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8384 cat >> confdefs.h <<EOF
8385 #define $ac_tr_func 1
8388 else
8389 echo "$ac_t""no" 1>&6
8391 done
8398 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8399 echo "configure:8400: checking for isnan declaration" >&5
8400 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8401 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8402 echo $ac_n "(cached) $ac_c" 1>&6
8403 else
8406 ac_ext=C
8407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8408 ac_cpp='$CXXCPP $CPPFLAGS'
8409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8411 cross_compiling=$ac_cv_prog_cxx_cross
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 #include <math.h>
8417 #ifdef HAVE_IEEEFP_H
8418 #include <ieeefp.h>
8419 #endif
8421 int main() {
8422 isnan(0);
8423 ; return 0; }
8425 if { (eval echo configure:8426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8426 rm -rf conftest*
8427 glibcpp_cv_func_isnan_use=yes
8428 else
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8431 rm -rf conftest*
8432 glibcpp_cv_func_isnan_use=no
8434 rm -f conftest*
8435 ac_ext=c
8436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8440 cross_compiling=$ac_cv_prog_cc_cross
8446 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8448 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8449 for ac_func in isnan
8451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8452 echo "configure:8453: checking for $ac_func" >&5
8453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455 else
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char $ac_func(); below. */
8461 #include <assert.h>
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8465 char $ac_func();
8467 int main() {
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8473 choke me
8474 #else
8475 $ac_func();
8476 #endif
8478 ; return 0; }
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8481 rm -rf conftest*
8482 eval "ac_cv_func_$ac_func=yes"
8483 else
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 rm -rf conftest*
8487 eval "ac_cv_func_$ac_func=no"
8489 rm -f conftest*
8492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8495 cat >> confdefs.h <<EOF
8496 #define $ac_tr_func 1
8499 else
8500 echo "$ac_t""no" 1>&6
8502 done
8504 else
8506 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8507 echo "configure:8508: checking for _isnan declaration" >&5
8508 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8509 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8511 else
8514 ac_ext=C
8515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8519 cross_compiling=$ac_cv_prog_cxx_cross
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <math.h>
8525 #ifdef HAVE_IEEEFP_H
8526 #include <ieeefp.h>
8527 #endif
8529 int main() {
8530 _isnan(0);
8531 ; return 0; }
8533 if { (eval echo configure:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8534 rm -rf conftest*
8535 glibcpp_cv_func__isnan_use=yes
8536 else
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 rm -rf conftest*
8540 glibcpp_cv_func__isnan_use=no
8542 rm -f conftest*
8543 ac_ext=c
8544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8548 cross_compiling=$ac_cv_prog_cc_cross
8554 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8556 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8557 for ac_func in _isnan
8559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8560 echo "configure:8561: checking for $ac_func" >&5
8561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563 else
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char $ac_func(); below. */
8569 #include <assert.h>
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 /* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573 char $ac_func();
8575 int main() {
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8581 choke me
8582 #else
8583 $ac_func();
8584 #endif
8586 ; return 0; }
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_func_$ac_func=yes"
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_func_$ac_func=no"
8597 rm -f conftest*
8600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8603 cat >> confdefs.h <<EOF
8604 #define $ac_tr_func 1
8607 else
8608 echo "$ac_t""no" 1>&6
8610 done
8617 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8618 echo "configure:8619: checking for finite declaration" >&5
8619 if test x${glibcpp_cv_func_finite_use+set} != xset; then
8620 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8622 else
8625 ac_ext=C
8626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8627 ac_cpp='$CXXCPP $CPPFLAGS'
8628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8630 cross_compiling=$ac_cv_prog_cxx_cross
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 #include <math.h>
8636 #ifdef HAVE_IEEEFP_H
8637 #include <ieeefp.h>
8638 #endif
8640 int main() {
8641 finite(0);
8642 ; return 0; }
8644 if { (eval echo configure:8645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8645 rm -rf conftest*
8646 glibcpp_cv_func_finite_use=yes
8647 else
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8650 rm -rf conftest*
8651 glibcpp_cv_func_finite_use=no
8653 rm -f conftest*
8654 ac_ext=c
8655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8659 cross_compiling=$ac_cv_prog_cc_cross
8665 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8667 if test x$glibcpp_cv_func_finite_use = x"yes"; then
8668 for ac_func in finite
8670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8671 echo "configure:8672: checking for $ac_func" >&5
8672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8673 echo $ac_n "(cached) $ac_c" 1>&6
8674 else
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char $ac_func(); below. */
8680 #include <assert.h>
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8684 char $ac_func();
8686 int main() {
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8692 choke me
8693 #else
8694 $ac_func();
8695 #endif
8697 ; return 0; }
8699 if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 rm -rf conftest*
8701 eval "ac_cv_func_$ac_func=yes"
8702 else
8703 echo "configure: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8705 rm -rf conftest*
8706 eval "ac_cv_func_$ac_func=no"
8708 rm -f conftest*
8711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8714 cat >> confdefs.h <<EOF
8715 #define $ac_tr_func 1
8718 else
8719 echo "$ac_t""no" 1>&6
8721 done
8723 else
8725 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8726 echo "configure:8727: checking for _finite declaration" >&5
8727 if test x${glibcpp_cv_func__finite_use+set} != xset; then
8728 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8730 else
8733 ac_ext=C
8734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8735 ac_cpp='$CXXCPP $CPPFLAGS'
8736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8738 cross_compiling=$ac_cv_prog_cxx_cross
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <math.h>
8744 #ifdef HAVE_IEEEFP_H
8745 #include <ieeefp.h>
8746 #endif
8748 int main() {
8749 _finite(0);
8750 ; return 0; }
8752 if { (eval echo configure:8753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8753 rm -rf conftest*
8754 glibcpp_cv_func__finite_use=yes
8755 else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 glibcpp_cv_func__finite_use=no
8761 rm -f conftest*
8762 ac_ext=c
8763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8767 cross_compiling=$ac_cv_prog_cc_cross
8773 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8775 if test x$glibcpp_cv_func__finite_use = x"yes"; then
8776 for ac_func in _finite
8778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779 echo "configure:8780: checking for $ac_func" >&5
8780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782 else
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func(); below. */
8788 #include <assert.h>
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8792 char $ac_func();
8794 int main() {
8796 /* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800 choke me
8801 #else
8802 $ac_func();
8803 #endif
8805 ; return 0; }
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=yes"
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 eval "ac_cv_func_$ac_func=no"
8816 rm -f conftest*
8819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8822 cat >> confdefs.h <<EOF
8823 #define $ac_tr_func 1
8826 else
8827 echo "$ac_t""no" 1>&6
8829 done
8836 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8837 echo "configure:8838: checking for copysign declaration" >&5
8838 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8839 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8844 ac_ext=C
8845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8846 ac_cpp='$CXXCPP $CPPFLAGS'
8847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8849 cross_compiling=$ac_cv_prog_cxx_cross
8851 cat > conftest.$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8854 #include <math.h>
8855 int main() {
8856 copysign(0, 0);
8857 ; return 0; }
8859 if { (eval echo configure:8860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860 rm -rf conftest*
8861 glibcpp_cv_func_copysign_use=yes
8862 else
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 glibcpp_cv_func_copysign_use=no
8868 rm -f conftest*
8869 ac_ext=c
8870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8871 ac_cpp='$CPP $CPPFLAGS'
8872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8874 cross_compiling=$ac_cv_prog_cc_cross
8880 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8882 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8883 for ac_func in copysign
8885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8886 echo "configure:8887: checking for $ac_func" >&5
8887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char $ac_func(); below. */
8895 #include <assert.h>
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899 char $ac_func();
8901 int main() {
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8907 choke me
8908 #else
8909 $ac_func();
8910 #endif
8912 ; return 0; }
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915 rm -rf conftest*
8916 eval "ac_cv_func_$ac_func=yes"
8917 else
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 rm -rf conftest*
8921 eval "ac_cv_func_$ac_func=no"
8923 rm -f conftest*
8926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8929 cat >> confdefs.h <<EOF
8930 #define $ac_tr_func 1
8933 else
8934 echo "$ac_t""no" 1>&6
8936 done
8938 else
8940 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8941 echo "configure:8942: checking for _copysign declaration" >&5
8942 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8943 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8948 ac_ext=C
8949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8950 ac_cpp='$CXXCPP $CPPFLAGS'
8951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8953 cross_compiling=$ac_cv_prog_cxx_cross
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 #include <math.h>
8959 int main() {
8960 _copysign(0, 0);
8961 ; return 0; }
8963 if { (eval echo configure:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 rm -rf conftest*
8965 glibcpp_cv_func__copysign_use=yes
8966 else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 glibcpp_cv_func__copysign_use=no
8972 rm -f conftest*
8973 ac_ext=c
8974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8975 ac_cpp='$CPP $CPPFLAGS'
8976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8978 cross_compiling=$ac_cv_prog_cc_cross
8984 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8986 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8987 for ac_func in _copysign
8989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_func" >&5
8991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char $ac_func(); below. */
8999 #include <assert.h>
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char $ac_func();
9005 int main() {
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 choke me
9012 #else
9013 $ac_func();
9014 #endif
9016 ; return 0; }
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 rm -rf conftest*
9020 eval "ac_cv_func_$ac_func=yes"
9021 else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 rm -rf conftest*
9025 eval "ac_cv_func_$ac_func=no"
9027 rm -f conftest*
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_func 1
9037 else
9038 echo "$ac_t""no" 1>&6
9040 done
9047 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9048 echo "configure:9049: checking for sincos declaration" >&5
9049 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9050 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9052 else
9055 ac_ext=C
9056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9057 ac_cpp='$CXXCPP $CPPFLAGS'
9058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9060 cross_compiling=$ac_cv_prog_cxx_cross
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <math.h>
9066 int main() {
9067 sincos(0, 0, 0);
9068 ; return 0; }
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 rm -rf conftest*
9072 glibcpp_cv_func_sincos_use=yes
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -rf conftest*
9077 glibcpp_cv_func_sincos_use=no
9079 rm -f conftest*
9080 ac_ext=c
9081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085 cross_compiling=$ac_cv_prog_cc_cross
9091 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9093 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9094 for ac_func in sincos
9096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9097 echo "configure:9098: checking for $ac_func" >&5
9098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9100 else
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 /* System header to define __stub macros and hopefully few prototypes,
9105 which can conflict with char $ac_func(); below. */
9106 #include <assert.h>
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char $ac_func();
9112 int main() {
9114 /* The GNU C library defines this for functions which it implements
9115 to always fail with ENOSYS. Some functions are actually named
9116 something starting with __ and the normal name is an alias. */
9117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9118 choke me
9119 #else
9120 $ac_func();
9121 #endif
9123 ; return 0; }
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126 rm -rf conftest*
9127 eval "ac_cv_func_$ac_func=yes"
9128 else
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132 eval "ac_cv_func_$ac_func=no"
9134 rm -f conftest*
9137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9138 echo "$ac_t""yes" 1>&6
9139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9140 cat >> confdefs.h <<EOF
9141 #define $ac_tr_func 1
9144 else
9145 echo "$ac_t""no" 1>&6
9147 done
9149 else
9151 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9152 echo "configure:9153: checking for _sincos declaration" >&5
9153 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9154 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9159 ac_ext=C
9160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9161 ac_cpp='$CXXCPP $CPPFLAGS'
9162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9164 cross_compiling=$ac_cv_prog_cxx_cross
9166 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <math.h>
9170 int main() {
9171 _sincos(0, 0, 0);
9172 ; return 0; }
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175 rm -rf conftest*
9176 glibcpp_cv_func__sincos_use=yes
9177 else
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 rm -rf conftest*
9181 glibcpp_cv_func__sincos_use=no
9183 rm -f conftest*
9184 ac_ext=c
9185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9189 cross_compiling=$ac_cv_prog_cc_cross
9195 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9197 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9198 for ac_func in _sincos
9200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_func" >&5
9202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func(); below. */
9210 #include <assert.h>
9211 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char $ac_func();
9216 int main() {
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 choke me
9223 #else
9224 $ac_func();
9225 #endif
9227 ; return 0; }
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 rm -rf conftest*
9231 eval "ac_cv_func_$ac_func=yes"
9232 else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 rm -rf conftest*
9236 eval "ac_cv_func_$ac_func=no"
9238 rm -f conftest*
9241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9244 cat >> confdefs.h <<EOF
9245 #define $ac_tr_func 1
9248 else
9249 echo "$ac_t""no" 1>&6
9251 done
9258 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9259 echo "configure:9260: checking for fpclass declaration" >&5
9260 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9261 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9263 else
9266 ac_ext=C
9267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9268 ac_cpp='$CXXCPP $CPPFLAGS'
9269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9271 cross_compiling=$ac_cv_prog_cxx_cross
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9276 #include <math.h>
9277 #ifdef HAVE_IEEEFP_H
9278 #include <ieeefp.h>
9279 #endif
9281 int main() {
9282 fpclass(0);
9283 ; return 0; }
9285 if { (eval echo configure:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 rm -rf conftest*
9287 glibcpp_cv_func_fpclass_use=yes
9288 else
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9291 rm -rf conftest*
9292 glibcpp_cv_func_fpclass_use=no
9294 rm -f conftest*
9295 ac_ext=c
9296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300 cross_compiling=$ac_cv_prog_cc_cross
9306 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9308 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9309 for ac_func in fpclass
9311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9312 echo "configure:9313: checking for $ac_func" >&5
9313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315 else
9316 cat > conftest.$ac_ext <<EOF
9317 #line 9318 "configure"
9318 #include "confdefs.h"
9319 /* System header to define __stub macros and hopefully few prototypes,
9320 which can conflict with char $ac_func(); below. */
9321 #include <assert.h>
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9325 char $ac_func();
9327 int main() {
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 choke me
9334 #else
9335 $ac_func();
9336 #endif
9338 ; return 0; }
9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 rm -rf conftest*
9342 eval "ac_cv_func_$ac_func=yes"
9343 else
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 rm -rf conftest*
9347 eval "ac_cv_func_$ac_func=no"
9349 rm -f conftest*
9352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9355 cat >> confdefs.h <<EOF
9356 #define $ac_tr_func 1
9359 else
9360 echo "$ac_t""no" 1>&6
9362 done
9364 else
9366 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9367 echo "configure:9368: checking for _fpclass declaration" >&5
9368 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9369 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9374 ac_ext=C
9375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9376 ac_cpp='$CXXCPP $CPPFLAGS'
9377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9379 cross_compiling=$ac_cv_prog_cxx_cross
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <math.h>
9385 #ifdef HAVE_IEEEFP_H
9386 #include <ieeefp.h>
9387 #endif
9389 int main() {
9390 _fpclass(0);
9391 ; return 0; }
9393 if { (eval echo configure:9394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9394 rm -rf conftest*
9395 glibcpp_cv_func__fpclass_use=yes
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -rf conftest*
9400 glibcpp_cv_func__fpclass_use=no
9402 rm -f conftest*
9403 ac_ext=c
9404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408 cross_compiling=$ac_cv_prog_cc_cross
9414 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9416 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9417 for ac_func in _fpclass
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9429 #include <assert.h>
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433 char $ac_func();
9435 int main() {
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 choke me
9442 #else
9443 $ac_func();
9444 #endif
9446 ; return 0; }
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_func_$ac_func=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_func_$ac_func=no"
9457 rm -f conftest*
9460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9463 cat >> confdefs.h <<EOF
9464 #define $ac_tr_func 1
9467 else
9468 echo "$ac_t""no" 1>&6
9470 done
9477 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9478 echo "configure:9479: checking for qfpclass declaration" >&5
9479 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9480 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9485 ac_ext=C
9486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9487 ac_cpp='$CXXCPP $CPPFLAGS'
9488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9490 cross_compiling=$ac_cv_prog_cxx_cross
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <math.h>
9496 #ifdef HAVE_IEEEFP_H
9497 #include <ieeefp.h>
9498 #endif
9500 int main() {
9501 qfpclass(0);
9502 ; return 0; }
9504 if { (eval echo configure:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505 rm -rf conftest*
9506 glibcpp_cv_func_qfpclass_use=yes
9507 else
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -rf conftest*
9511 glibcpp_cv_func_qfpclass_use=no
9513 rm -f conftest*
9514 ac_ext=c
9515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9519 cross_compiling=$ac_cv_prog_cc_cross
9525 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9527 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9528 for ac_func in qfpclass
9530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9531 echo "configure:9532: checking for $ac_func" >&5
9532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 /* System header to define __stub macros and hopefully few prototypes,
9539 which can conflict with char $ac_func(); below. */
9540 #include <assert.h>
9541 /* Override any gcc2 internal prototype to avoid an error. */
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9544 char $ac_func();
9546 int main() {
9548 /* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9552 choke me
9553 #else
9554 $ac_func();
9555 #endif
9557 ; return 0; }
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9560 rm -rf conftest*
9561 eval "ac_cv_func_$ac_func=yes"
9562 else
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -rf conftest*
9566 eval "ac_cv_func_$ac_func=no"
9568 rm -f conftest*
9571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9572 echo "$ac_t""yes" 1>&6
9573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9574 cat >> confdefs.h <<EOF
9575 #define $ac_tr_func 1
9578 else
9579 echo "$ac_t""no" 1>&6
9581 done
9583 else
9585 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9586 echo "configure:9587: checking for _qfpclass declaration" >&5
9587 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9588 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9590 else
9593 ac_ext=C
9594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9595 ac_cpp='$CXXCPP $CPPFLAGS'
9596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9598 cross_compiling=$ac_cv_prog_cxx_cross
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <math.h>
9604 #ifdef HAVE_IEEEFP_H
9605 #include <ieeefp.h>
9606 #endif
9608 int main() {
9609 _qfpclass(0);
9610 ; return 0; }
9612 if { (eval echo configure:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613 rm -rf conftest*
9614 glibcpp_cv_func__qfpclass_use=yes
9615 else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 glibcpp_cv_func__qfpclass_use=no
9621 rm -f conftest*
9622 ac_ext=c
9623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9624 ac_cpp='$CPP $CPPFLAGS'
9625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9627 cross_compiling=$ac_cv_prog_cc_cross
9633 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9635 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9636 for ac_func in _qfpclass
9638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9639 echo "configure:9640: checking for $ac_func" >&5
9640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char $ac_func(); below. */
9648 #include <assert.h>
9649 /* Override any gcc2 internal prototype to avoid an error. */
9650 /* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652 char $ac_func();
9654 int main() {
9656 /* The GNU C library defines this for functions which it implements
9657 to always fail with ENOSYS. Some functions are actually named
9658 something starting with __ and the normal name is an alias. */
9659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9660 choke me
9661 #else
9662 $ac_func();
9663 #endif
9665 ; return 0; }
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9668 rm -rf conftest*
9669 eval "ac_cv_func_$ac_func=yes"
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 eval "ac_cv_func_$ac_func=no"
9676 rm -f conftest*
9679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9680 echo "$ac_t""yes" 1>&6
9681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9682 cat >> confdefs.h <<EOF
9683 #define $ac_tr_func 1
9686 else
9687 echo "$ac_t""no" 1>&6
9689 done
9696 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9697 echo "configure:9698: checking for hypot declaration" >&5
9698 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9699 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9704 ac_ext=C
9705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9706 ac_cpp='$CXXCPP $CPPFLAGS'
9707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9709 cross_compiling=$ac_cv_prog_cxx_cross
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 #include <math.h>
9715 int main() {
9716 hypot(0, 0);
9717 ; return 0; }
9719 if { (eval echo configure:9720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9720 rm -rf conftest*
9721 glibcpp_cv_func_hypot_use=yes
9722 else
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 rm -rf conftest*
9726 glibcpp_cv_func_hypot_use=no
9728 rm -f conftest*
9729 ac_ext=c
9730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9731 ac_cpp='$CPP $CPPFLAGS'
9732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9734 cross_compiling=$ac_cv_prog_cc_cross
9740 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
9742 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9743 for ac_func in hypot
9745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_func" >&5
9747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 /* System header to define __stub macros and hopefully few prototypes,
9754 which can conflict with char $ac_func(); below. */
9755 #include <assert.h>
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759 char $ac_func();
9761 int main() {
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 $ac_func();
9770 #endif
9772 ; return 0; }
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9775 rm -rf conftest*
9776 eval "ac_cv_func_$ac_func=yes"
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781 eval "ac_cv_func_$ac_func=no"
9783 rm -f conftest*
9786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9787 echo "$ac_t""yes" 1>&6
9788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_func 1
9793 else
9794 echo "$ac_t""no" 1>&6
9796 done
9798 else
9800 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9801 echo "configure:9802: checking for _hypot declaration" >&5
9802 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9803 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9808 ac_ext=C
9809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CXXCPP $CPPFLAGS'
9811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cxx_cross
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <math.h>
9819 int main() {
9820 _hypot(0, 0);
9821 ; return 0; }
9823 if { (eval echo configure:9824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9824 rm -rf conftest*
9825 glibcpp_cv_func__hypot_use=yes
9826 else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 glibcpp_cv_func__hypot_use=no
9832 rm -f conftest*
9833 ac_ext=c
9834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9835 ac_cpp='$CPP $CPPFLAGS'
9836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9838 cross_compiling=$ac_cv_prog_cc_cross
9844 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9846 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9847 for ac_func in _hypot
9849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_func" >&5
9851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char $ac_func(); below. */
9859 #include <assert.h>
9860 /* Override any gcc2 internal prototype to avoid an error. */
9861 /* We use char because int might match the return type of a gcc2
9862 builtin and then its argument prototype would still apply. */
9863 char $ac_func();
9865 int main() {
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9871 choke me
9872 #else
9873 $ac_func();
9874 #endif
9876 ; return 0; }
9878 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 rm -rf conftest*
9880 eval "ac_cv_func_$ac_func=yes"
9881 else
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 rm -rf conftest*
9885 eval "ac_cv_func_$ac_func=no"
9887 rm -f conftest*
9890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9891 echo "$ac_t""yes" 1>&6
9892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9893 cat >> confdefs.h <<EOF
9894 #define $ac_tr_func 1
9897 else
9898 echo "$ac_t""no" 1>&6
9900 done
9907 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9908 echo "configure:9909: checking for float trig functions" >&5
9909 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9914 ac_ext=C
9915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9916 ac_cpp='$CXXCPP $CPPFLAGS'
9917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9919 cross_compiling=$ac_cv_prog_cxx_cross
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 #include <math.h>
9925 int main() {
9926 `for x in acosf asinf atanf \
9927 cosf sinf tanf \
9928 coshf sinhf tanhf; do echo "$x (0);"; done`
9929 ; return 0; }
9931 if { (eval echo configure:9932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9932 rm -rf conftest*
9933 glibcpp_cv_func_float_trig_use=yes
9934 else
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 glibcpp_cv_func_float_trig_use=no
9940 rm -f conftest*
9941 ac_ext=c
9942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9943 ac_cpp='$CPP $CPPFLAGS'
9944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9946 cross_compiling=$ac_cv_prog_cc_cross
9950 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9951 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9952 for ac_func in acosf asinf atanf \
9953 cosf sinf tanf \
9954 coshf sinhf tanhf
9956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9957 echo "configure:9958: checking for $ac_func" >&5
9958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9960 else
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 /* System header to define __stub macros and hopefully few prototypes,
9965 which can conflict with char $ac_func(); below. */
9966 #include <assert.h>
9967 /* Override any gcc2 internal prototype to avoid an error. */
9968 /* We use char because int might match the return type of a gcc2
9969 builtin and then its argument prototype would still apply. */
9970 char $ac_func();
9972 int main() {
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9978 choke me
9979 #else
9980 $ac_func();
9981 #endif
9983 ; return 0; }
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9986 rm -rf conftest*
9987 eval "ac_cv_func_$ac_func=yes"
9988 else
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 rm -rf conftest*
9992 eval "ac_cv_func_$ac_func=no"
9994 rm -f conftest*
9997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9998 echo "$ac_t""yes" 1>&6
9999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10000 cat >> confdefs.h <<EOF
10001 #define $ac_tr_func 1
10004 else
10005 echo "$ac_t""no" 1>&6
10007 done
10012 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10013 echo "configure:10014: checking for float round functions" >&5
10014 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10019 ac_ext=C
10020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10021 ac_cpp='$CXXCPP $CPPFLAGS'
10022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10024 cross_compiling=$ac_cv_prog_cxx_cross
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <math.h>
10030 int main() {
10031 `for x in ceilf floorf; do echo "$x (0);"; done`
10032 ; return 0; }
10034 if { (eval echo configure:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 rm -rf conftest*
10036 glibcpp_cv_func_float_round_use=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 glibcpp_cv_func_float_round_use=no
10043 rm -f conftest*
10044 ac_ext=c
10045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10046 ac_cpp='$CPP $CPPFLAGS'
10047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10049 cross_compiling=$ac_cv_prog_cc_cross
10053 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10054 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10055 for ac_func in ceilf floorf
10057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10058 echo "configure:10059: checking for $ac_func" >&5
10059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10061 else
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* System header to define __stub macros and hopefully few prototypes,
10066 which can conflict with char $ac_func(); below. */
10067 #include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10071 char $ac_func();
10073 int main() {
10075 /* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079 choke me
10080 #else
10081 $ac_func();
10082 #endif
10084 ; return 0; }
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 rm -rf conftest*
10088 eval "ac_cv_func_$ac_func=yes"
10089 else
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 rm -rf conftest*
10093 eval "ac_cv_func_$ac_func=no"
10095 rm -f conftest*
10098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10101 cat >> confdefs.h <<EOF
10102 #define $ac_tr_func 1
10105 else
10106 echo "$ac_t""no" 1>&6
10108 done
10114 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10115 echo "configure:10116: checking for isnanf declaration" >&5
10116 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10117 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10119 else
10122 ac_ext=C
10123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10124 ac_cpp='$CXXCPP $CPPFLAGS'
10125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10127 cross_compiling=$ac_cv_prog_cxx_cross
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #include <math.h>
10133 #ifdef HAVE_IEEEFP_H
10134 #include <ieeefp.h>
10135 #endif
10137 int main() {
10138 isnanf(0);
10139 ; return 0; }
10141 if { (eval echo configure:10142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10142 rm -rf conftest*
10143 glibcpp_cv_func_isnanf_use=yes
10144 else
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -rf conftest*
10148 glibcpp_cv_func_isnanf_use=no
10150 rm -f conftest*
10151 ac_ext=c
10152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10153 ac_cpp='$CPP $CPPFLAGS'
10154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10156 cross_compiling=$ac_cv_prog_cc_cross
10162 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10164 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10165 for ac_func in isnanf
10167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10168 echo "configure:10169: checking for $ac_func" >&5
10169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171 else
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char $ac_func(); below. */
10177 #include <assert.h>
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char $ac_func();
10183 int main() {
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10189 choke me
10190 #else
10191 $ac_func();
10192 #endif
10194 ; return 0; }
10196 if { (eval echo configure:10197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10197 rm -rf conftest*
10198 eval "ac_cv_func_$ac_func=yes"
10199 else
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 rm -rf conftest*
10203 eval "ac_cv_func_$ac_func=no"
10205 rm -f conftest*
10208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10211 cat >> confdefs.h <<EOF
10212 #define $ac_tr_func 1
10215 else
10216 echo "$ac_t""no" 1>&6
10218 done
10220 else
10222 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10223 echo "configure:10224: checking for _isnanf declaration" >&5
10224 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10225 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10230 ac_ext=C
10231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10232 ac_cpp='$CXXCPP $CPPFLAGS'
10233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10235 cross_compiling=$ac_cv_prog_cxx_cross
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 #include <math.h>
10241 #ifdef HAVE_IEEEFP_H
10242 #include <ieeefp.h>
10243 #endif
10245 int main() {
10246 _isnanf(0);
10247 ; return 0; }
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 rm -rf conftest*
10251 glibcpp_cv_func__isnanf_use=yes
10252 else
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 glibcpp_cv_func__isnanf_use=no
10258 rm -f conftest*
10259 ac_ext=c
10260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10261 ac_cpp='$CPP $CPPFLAGS'
10262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10264 cross_compiling=$ac_cv_prog_cc_cross
10270 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10272 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10273 for ac_func in _isnanf
10275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10276 echo "configure:10277: checking for $ac_func" >&5
10277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10278 echo $ac_n "(cached) $ac_c" 1>&6
10279 else
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func(); below. */
10285 #include <assert.h>
10286 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char $ac_func();
10291 int main() {
10293 /* The GNU C library defines this for functions which it implements
10294 to always fail with ENOSYS. Some functions are actually named
10295 something starting with __ and the normal name is an alias. */
10296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10297 choke me
10298 #else
10299 $ac_func();
10300 #endif
10302 ; return 0; }
10304 if { (eval echo configure:10305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305 rm -rf conftest*
10306 eval "ac_cv_func_$ac_func=yes"
10307 else
10308 echo "configure: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10310 rm -rf conftest*
10311 eval "ac_cv_func_$ac_func=no"
10313 rm -f conftest*
10316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_func 1
10323 else
10324 echo "$ac_t""no" 1>&6
10326 done
10333 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10334 echo "configure:10335: checking for isinff declaration" >&5
10335 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10336 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10341 ac_ext=C
10342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10343 ac_cpp='$CXXCPP $CPPFLAGS'
10344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10346 cross_compiling=$ac_cv_prog_cxx_cross
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 #include <math.h>
10352 #ifdef HAVE_IEEEFP_H
10353 #include <ieeefp.h>
10354 #endif
10356 int main() {
10357 isinff(0);
10358 ; return 0; }
10360 if { (eval echo configure:10361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10361 rm -rf conftest*
10362 glibcpp_cv_func_isinff_use=yes
10363 else
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 rm -rf conftest*
10367 glibcpp_cv_func_isinff_use=no
10369 rm -f conftest*
10370 ac_ext=c
10371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10375 cross_compiling=$ac_cv_prog_cc_cross
10381 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10383 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10384 for ac_func in isinff
10386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10387 echo "configure:10388: checking for $ac_func" >&5
10388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10389 echo $ac_n "(cached) $ac_c" 1>&6
10390 else
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10394 /* System header to define __stub macros and hopefully few prototypes,
10395 which can conflict with char $ac_func(); below. */
10396 #include <assert.h>
10397 /* Override any gcc2 internal prototype to avoid an error. */
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10400 char $ac_func();
10402 int main() {
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 choke me
10409 #else
10410 $ac_func();
10411 #endif
10413 ; return 0; }
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 rm -rf conftest*
10417 eval "ac_cv_func_$ac_func=yes"
10418 else
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 rm -rf conftest*
10422 eval "ac_cv_func_$ac_func=no"
10424 rm -f conftest*
10427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10430 cat >> confdefs.h <<EOF
10431 #define $ac_tr_func 1
10434 else
10435 echo "$ac_t""no" 1>&6
10437 done
10439 else
10441 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10442 echo "configure:10443: checking for _isinff declaration" >&5
10443 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10444 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10449 ac_ext=C
10450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10451 ac_cpp='$CXXCPP $CPPFLAGS'
10452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10454 cross_compiling=$ac_cv_prog_cxx_cross
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <math.h>
10460 #ifdef HAVE_IEEEFP_H
10461 #include <ieeefp.h>
10462 #endif
10464 int main() {
10465 _isinff(0);
10466 ; return 0; }
10468 if { (eval echo configure:10469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10469 rm -rf conftest*
10470 glibcpp_cv_func__isinff_use=yes
10471 else
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 rm -rf conftest*
10475 glibcpp_cv_func__isinff_use=no
10477 rm -f conftest*
10478 ac_ext=c
10479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10480 ac_cpp='$CPP $CPPFLAGS'
10481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10483 cross_compiling=$ac_cv_prog_cc_cross
10489 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10491 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10492 for ac_func in _isinff
10494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10495 echo "configure:10496: checking for $ac_func" >&5
10496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10498 else
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* System header to define __stub macros and hopefully few prototypes,
10503 which can conflict with char $ac_func(); below. */
10504 #include <assert.h>
10505 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char $ac_func();
10510 int main() {
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10516 choke me
10517 #else
10518 $ac_func();
10519 #endif
10521 ; return 0; }
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10524 rm -rf conftest*
10525 eval "ac_cv_func_$ac_func=yes"
10526 else
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 rm -rf conftest*
10530 eval "ac_cv_func_$ac_func=no"
10532 rm -f conftest*
10535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10538 cat >> confdefs.h <<EOF
10539 #define $ac_tr_func 1
10542 else
10543 echo "$ac_t""no" 1>&6
10545 done
10552 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for atan2f declaration" >&5
10554 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10555 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10560 ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572 atan2f(0, 0);
10573 ; return 0; }
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576 rm -rf conftest*
10577 glibcpp_cv_func_atan2f_use=yes
10578 else
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 rm -rf conftest*
10582 glibcpp_cv_func_atan2f_use=no
10584 rm -f conftest*
10585 ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10596 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10598 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10599 for ac_func in atan2f
10601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10602 echo "configure:10603: checking for $ac_func" >&5
10603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606 cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* System header to define __stub macros and hopefully few prototypes,
10610 which can conflict with char $ac_func(); below. */
10611 #include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error. */
10613 /* We use char because int might match the return type of a gcc2
10614 builtin and then its argument prototype would still apply. */
10615 char $ac_func();
10617 int main() {
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 $ac_func();
10626 #endif
10628 ; return 0; }
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 rm -rf conftest*
10632 eval "ac_cv_func_$ac_func=yes"
10633 else
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 rm -rf conftest*
10637 eval "ac_cv_func_$ac_func=no"
10639 rm -f conftest*
10642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10645 cat >> confdefs.h <<EOF
10646 #define $ac_tr_func 1
10649 else
10650 echo "$ac_t""no" 1>&6
10652 done
10654 else
10656 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10657 echo "configure:10658: checking for _atan2f declaration" >&5
10658 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10659 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10661 else
10664 ac_ext=C
10665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10666 ac_cpp='$CXXCPP $CPPFLAGS'
10667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10669 cross_compiling=$ac_cv_prog_cxx_cross
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10674 #include <math.h>
10675 int main() {
10676 _atan2f(0, 0);
10677 ; return 0; }
10679 if { (eval echo configure:10680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10680 rm -rf conftest*
10681 glibcpp_cv_func__atan2f_use=yes
10682 else
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 rm -rf conftest*
10686 glibcpp_cv_func__atan2f_use=no
10688 rm -f conftest*
10689 ac_ext=c
10690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691 ac_cpp='$CPP $CPPFLAGS'
10692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694 cross_compiling=$ac_cv_prog_cc_cross
10700 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10702 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10703 for ac_func in _atan2f
10705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10706 echo "configure:10707: checking for $ac_func" >&5
10707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10709 else
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char $ac_func(); below. */
10715 #include <assert.h>
10716 /* Override any gcc2 internal prototype to avoid an error. */
10717 /* We use char because int might match the return type of a gcc2
10718 builtin and then its argument prototype would still apply. */
10719 char $ac_func();
10721 int main() {
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 choke me
10728 #else
10729 $ac_func();
10730 #endif
10732 ; return 0; }
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 rm -rf conftest*
10736 eval "ac_cv_func_$ac_func=yes"
10737 else
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10740 rm -rf conftest*
10741 eval "ac_cv_func_$ac_func=no"
10743 rm -f conftest*
10746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10747 echo "$ac_t""yes" 1>&6
10748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10749 cat >> confdefs.h <<EOF
10750 #define $ac_tr_func 1
10753 else
10754 echo "$ac_t""no" 1>&6
10756 done
10763 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10764 echo "configure:10765: checking for fabsf declaration" >&5
10765 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10766 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10771 ac_ext=C
10772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10773 ac_cpp='$CXXCPP $CPPFLAGS'
10774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10776 cross_compiling=$ac_cv_prog_cxx_cross
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include <math.h>
10782 #ifdef HAVE_IEEEFP_H
10783 #include <ieeefp.h>
10784 #endif
10786 int main() {
10787 fabsf(0);
10788 ; return 0; }
10790 if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791 rm -rf conftest*
10792 glibcpp_cv_func_fabsf_use=yes
10793 else
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 rm -rf conftest*
10797 glibcpp_cv_func_fabsf_use=no
10799 rm -f conftest*
10800 ac_ext=c
10801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10802 ac_cpp='$CPP $CPPFLAGS'
10803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10805 cross_compiling=$ac_cv_prog_cc_cross
10811 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10813 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10814 for ac_func in fabsf
10816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10817 echo "configure:10818: checking for $ac_func" >&5
10818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10820 else
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 /* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func(); below. */
10826 #include <assert.h>
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char $ac_func();
10832 int main() {
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10838 choke me
10839 #else
10840 $ac_func();
10841 #endif
10843 ; return 0; }
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 rm -rf conftest*
10847 eval "ac_cv_func_$ac_func=yes"
10848 else
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10851 rm -rf conftest*
10852 eval "ac_cv_func_$ac_func=no"
10854 rm -f conftest*
10857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_func 1
10864 else
10865 echo "$ac_t""no" 1>&6
10867 done
10869 else
10871 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10872 echo "configure:10873: checking for _fabsf declaration" >&5
10873 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10874 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10876 else
10879 ac_ext=C
10880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10881 ac_cpp='$CXXCPP $CPPFLAGS'
10882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10884 cross_compiling=$ac_cv_prog_cxx_cross
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <math.h>
10890 #ifdef HAVE_IEEEFP_H
10891 #include <ieeefp.h>
10892 #endif
10894 int main() {
10895 _fabsf(0);
10896 ; return 0; }
10898 if { (eval echo configure:10899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10899 rm -rf conftest*
10900 glibcpp_cv_func__fabsf_use=yes
10901 else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -rf conftest*
10905 glibcpp_cv_func__fabsf_use=no
10907 rm -f conftest*
10908 ac_ext=c
10909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10910 ac_cpp='$CPP $CPPFLAGS'
10911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10913 cross_compiling=$ac_cv_prog_cc_cross
10919 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10921 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10922 for ac_func in _fabsf
10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10925 echo "configure:10926: checking for $ac_func" >&5
10926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928 else
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 /* System header to define __stub macros and hopefully few prototypes,
10933 which can conflict with char $ac_func(); below. */
10934 #include <assert.h>
10935 /* Override any gcc2 internal prototype to avoid an error. */
10936 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938 char $ac_func();
10940 int main() {
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10946 choke me
10947 #else
10948 $ac_func();
10949 #endif
10951 ; return 0; }
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10954 rm -rf conftest*
10955 eval "ac_cv_func_$ac_func=yes"
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 eval "ac_cv_func_$ac_func=no"
10962 rm -f conftest*
10965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10968 cat >> confdefs.h <<EOF
10969 #define $ac_tr_func 1
10972 else
10973 echo "$ac_t""no" 1>&6
10975 done
10982 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10983 echo "configure:10984: checking for fmodf declaration" >&5
10984 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10985 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10990 ac_ext=C
10991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10992 ac_cpp='$CXXCPP $CPPFLAGS'
10993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10995 cross_compiling=$ac_cv_prog_cxx_cross
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include <math.h>
11001 int main() {
11002 fmodf(0, 0);
11003 ; return 0; }
11005 if { (eval echo configure:11006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11006 rm -rf conftest*
11007 glibcpp_cv_func_fmodf_use=yes
11008 else
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11011 rm -rf conftest*
11012 glibcpp_cv_func_fmodf_use=no
11014 rm -f conftest*
11015 ac_ext=c
11016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11020 cross_compiling=$ac_cv_prog_cc_cross
11026 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11028 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11029 for ac_func in fmodf
11031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_func" >&5
11033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func(); below. */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error. */
11043 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */
11045 char $ac_func();
11047 int main() {
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 $ac_func();
11056 #endif
11058 ; return 0; }
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061 rm -rf conftest*
11062 eval "ac_cv_func_$ac_func=yes"
11063 else
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 rm -rf conftest*
11067 eval "ac_cv_func_$ac_func=no"
11069 rm -f conftest*
11072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11075 cat >> confdefs.h <<EOF
11076 #define $ac_tr_func 1
11079 else
11080 echo "$ac_t""no" 1>&6
11082 done
11084 else
11086 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11087 echo "configure:11088: checking for _fmodf declaration" >&5
11088 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11089 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11094 ac_ext=C
11095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11096 ac_cpp='$CXXCPP $CPPFLAGS'
11097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11099 cross_compiling=$ac_cv_prog_cxx_cross
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11104 #include <math.h>
11105 int main() {
11106 _fmodf(0, 0);
11107 ; return 0; }
11109 if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11110 rm -rf conftest*
11111 glibcpp_cv_func__fmodf_use=yes
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 glibcpp_cv_func__fmodf_use=no
11118 rm -f conftest*
11119 ac_ext=c
11120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cc_cross
11130 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11132 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11133 for ac_func in _fmodf
11135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11136 echo "configure:11137: checking for $ac_func" >&5
11137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func(); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149 char $ac_func();
11151 int main() {
11153 /* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11157 choke me
11158 #else
11159 $ac_func();
11160 #endif
11162 ; return 0; }
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 rm -rf conftest*
11166 eval "ac_cv_func_$ac_func=yes"
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 eval "ac_cv_func_$ac_func=no"
11173 rm -f conftest*
11176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11179 cat >> confdefs.h <<EOF
11180 #define $ac_tr_func 1
11183 else
11184 echo "$ac_t""no" 1>&6
11186 done
11193 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11194 echo "configure:11195: checking for frexpf declaration" >&5
11195 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11196 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11198 else
11201 ac_ext=C
11202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cxx_cross
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <math.h>
11212 int main() {
11213 frexpf(0, 0);
11214 ; return 0; }
11216 if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11217 rm -rf conftest*
11218 glibcpp_cv_func_frexpf_use=yes
11219 else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 glibcpp_cv_func_frexpf_use=no
11225 rm -f conftest*
11226 ac_ext=c
11227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11228 ac_cpp='$CPP $CPPFLAGS'
11229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11231 cross_compiling=$ac_cv_prog_cc_cross
11237 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11239 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11240 for ac_func in frexpf
11242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11243 echo "configure:11244: checking for $ac_func" >&5
11244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246 else
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func(); below. */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error. */
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256 char $ac_func();
11258 int main() {
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11264 choke me
11265 #else
11266 $ac_func();
11267 #endif
11269 ; return 0; }
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11272 rm -rf conftest*
11273 eval "ac_cv_func_$ac_func=yes"
11274 else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278 eval "ac_cv_func_$ac_func=no"
11280 rm -f conftest*
11283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11284 echo "$ac_t""yes" 1>&6
11285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11286 cat >> confdefs.h <<EOF
11287 #define $ac_tr_func 1
11290 else
11291 echo "$ac_t""no" 1>&6
11293 done
11295 else
11297 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11298 echo "configure:11299: checking for _frexpf declaration" >&5
11299 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11300 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11301 echo $ac_n "(cached) $ac_c" 1>&6
11302 else
11305 ac_ext=C
11306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CXXCPP $CPPFLAGS'
11308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cxx_cross
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 #include <math.h>
11316 int main() {
11317 _frexpf(0, 0);
11318 ; return 0; }
11320 if { (eval echo configure:11321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11321 rm -rf conftest*
11322 glibcpp_cv_func__frexpf_use=yes
11323 else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -rf conftest*
11327 glibcpp_cv_func__frexpf_use=no
11329 rm -f conftest*
11330 ac_ext=c
11331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11332 ac_cpp='$CPP $CPPFLAGS'
11333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11335 cross_compiling=$ac_cv_prog_cc_cross
11341 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11343 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11344 for ac_func in _frexpf
11346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11347 echo "configure:11348: checking for $ac_func" >&5
11348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11350 else
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char $ac_func();
11362 int main() {
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11368 choke me
11369 #else
11370 $ac_func();
11371 #endif
11373 ; return 0; }
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11376 rm -rf conftest*
11377 eval "ac_cv_func_$ac_func=yes"
11378 else
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 rm -rf conftest*
11382 eval "ac_cv_func_$ac_func=no"
11384 rm -f conftest*
11387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11390 cat >> confdefs.h <<EOF
11391 #define $ac_tr_func 1
11394 else
11395 echo "$ac_t""no" 1>&6
11397 done
11404 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11405 echo "configure:11406: checking for hypotf declaration" >&5
11406 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11407 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409 else
11412 ac_ext=C
11413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11414 ac_cpp='$CXXCPP $CPPFLAGS'
11415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11417 cross_compiling=$ac_cv_prog_cxx_cross
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include <math.h>
11423 int main() {
11424 hypotf(0, 0);
11425 ; return 0; }
11427 if { (eval echo configure:11428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11428 rm -rf conftest*
11429 glibcpp_cv_func_hypotf_use=yes
11430 else
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11433 rm -rf conftest*
11434 glibcpp_cv_func_hypotf_use=no
11436 rm -f conftest*
11437 ac_ext=c
11438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11439 ac_cpp='$CPP $CPPFLAGS'
11440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11442 cross_compiling=$ac_cv_prog_cc_cross
11448 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11450 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11451 for ac_func in hypotf
11453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11454 echo "configure:11455: checking for $ac_func" >&5
11455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11457 else
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char $ac_func(); below. */
11463 #include <assert.h>
11464 /* Override any gcc2 internal prototype to avoid an error. */
11465 /* We use char because int might match the return type of a gcc2
11466 builtin and then its argument prototype would still apply. */
11467 char $ac_func();
11469 int main() {
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11475 choke me
11476 #else
11477 $ac_func();
11478 #endif
11480 ; return 0; }
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11483 rm -rf conftest*
11484 eval "ac_cv_func_$ac_func=yes"
11485 else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -rf conftest*
11489 eval "ac_cv_func_$ac_func=no"
11491 rm -f conftest*
11494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11495 echo "$ac_t""yes" 1>&6
11496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11497 cat >> confdefs.h <<EOF
11498 #define $ac_tr_func 1
11501 else
11502 echo "$ac_t""no" 1>&6
11504 done
11506 else
11508 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11509 echo "configure:11510: checking for _hypotf declaration" >&5
11510 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11511 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11513 else
11516 ac_ext=C
11517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11521 cross_compiling=$ac_cv_prog_cxx_cross
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 #include <math.h>
11527 int main() {
11528 _hypotf(0, 0);
11529 ; return 0; }
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 glibcpp_cv_func__hypotf_use=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 glibcpp_cv_func__hypotf_use=no
11540 rm -f conftest*
11541 ac_ext=c
11542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11546 cross_compiling=$ac_cv_prog_cc_cross
11552 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11554 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11555 for ac_func in _hypotf
11557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11558 echo "configure:11559: checking for $ac_func" >&5
11559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func(); below. */
11567 #include <assert.h>
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char $ac_func();
11573 int main() {
11575 /* The GNU C library defines this for functions which it implements
11576 to always fail with ENOSYS. Some functions are actually named
11577 something starting with __ and the normal name is an alias. */
11578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11579 choke me
11580 #else
11581 $ac_func();
11582 #endif
11584 ; return 0; }
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 rm -rf conftest*
11588 eval "ac_cv_func_$ac_func=yes"
11589 else
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 rm -rf conftest*
11593 eval "ac_cv_func_$ac_func=no"
11595 rm -f conftest*
11598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11601 cat >> confdefs.h <<EOF
11602 #define $ac_tr_func 1
11605 else
11606 echo "$ac_t""no" 1>&6
11608 done
11615 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11616 echo "configure:11617: checking for ldexpf declaration" >&5
11617 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11618 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11619 echo $ac_n "(cached) $ac_c" 1>&6
11620 else
11623 ac_ext=C
11624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11625 ac_cpp='$CXXCPP $CPPFLAGS'
11626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11628 cross_compiling=$ac_cv_prog_cxx_cross
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <math.h>
11634 int main() {
11635 ldexpf(0, 0);
11636 ; return 0; }
11638 if { (eval echo configure:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11639 rm -rf conftest*
11640 glibcpp_cv_func_ldexpf_use=yes
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 glibcpp_cv_func_ldexpf_use=no
11647 rm -f conftest*
11648 ac_ext=c
11649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11650 ac_cpp='$CPP $CPPFLAGS'
11651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11653 cross_compiling=$ac_cv_prog_cc_cross
11659 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11661 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11662 for ac_func in ldexpf
11664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11665 echo "configure:11666: checking for $ac_func" >&5
11666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668 else
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11672 /* System header to define __stub macros and hopefully few prototypes,
11673 which can conflict with char $ac_func(); below. */
11674 #include <assert.h>
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11678 char $ac_func();
11680 int main() {
11682 /* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11686 choke me
11687 #else
11688 $ac_func();
11689 #endif
11691 ; return 0; }
11693 if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 rm -rf conftest*
11695 eval "ac_cv_func_$ac_func=yes"
11696 else
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 eval "ac_cv_func_$ac_func=no"
11702 rm -f conftest*
11705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11706 echo "$ac_t""yes" 1>&6
11707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11708 cat >> confdefs.h <<EOF
11709 #define $ac_tr_func 1
11712 else
11713 echo "$ac_t""no" 1>&6
11715 done
11717 else
11719 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11720 echo "configure:11721: checking for _ldexpf declaration" >&5
11721 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11722 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11727 ac_ext=C
11728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11729 ac_cpp='$CXXCPP $CPPFLAGS'
11730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11732 cross_compiling=$ac_cv_prog_cxx_cross
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737 #include <math.h>
11738 int main() {
11739 _ldexpf(0, 0);
11740 ; return 0; }
11742 if { (eval echo configure:11743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11743 rm -rf conftest*
11744 glibcpp_cv_func__ldexpf_use=yes
11745 else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 glibcpp_cv_func__ldexpf_use=no
11751 rm -f conftest*
11752 ac_ext=c
11753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11757 cross_compiling=$ac_cv_prog_cc_cross
11763 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11765 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11766 for ac_func in _ldexpf
11768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11769 echo "configure:11770: checking for $ac_func" >&5
11770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11772 else
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 /* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11782 char $ac_func();
11784 int main() {
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11790 choke me
11791 #else
11792 $ac_func();
11793 #endif
11795 ; return 0; }
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11798 rm -rf conftest*
11799 eval "ac_cv_func_$ac_func=yes"
11800 else
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=no"
11806 rm -f conftest*
11809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11810 echo "$ac_t""yes" 1>&6
11811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11812 cat >> confdefs.h <<EOF
11813 #define $ac_tr_func 1
11816 else
11817 echo "$ac_t""no" 1>&6
11819 done
11826 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11827 echo "configure:11828: checking for logf declaration" >&5
11828 if test x${glibcpp_cv_func_logf_use+set} != xset; then
11829 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11834 ac_ext=C
11835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11836 ac_cpp='$CXXCPP $CPPFLAGS'
11837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11839 cross_compiling=$ac_cv_prog_cxx_cross
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 #include <math.h>
11845 #ifdef HAVE_IEEEFP_H
11846 #include <ieeefp.h>
11847 #endif
11849 int main() {
11850 logf(0);
11851 ; return 0; }
11853 if { (eval echo configure:11854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11854 rm -rf conftest*
11855 glibcpp_cv_func_logf_use=yes
11856 else
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 glibcpp_cv_func_logf_use=no
11862 rm -f conftest*
11863 ac_ext=c
11864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11865 ac_cpp='$CPP $CPPFLAGS'
11866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11868 cross_compiling=$ac_cv_prog_cc_cross
11874 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11876 if test x$glibcpp_cv_func_logf_use = x"yes"; then
11877 for ac_func in logf
11879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11880 echo "configure:11881: checking for $ac_func" >&5
11881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11883 else
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 /* System header to define __stub macros and hopefully few prototypes,
11888 which can conflict with char $ac_func(); below. */
11889 #include <assert.h>
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11893 char $ac_func();
11895 int main() {
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11901 choke me
11902 #else
11903 $ac_func();
11904 #endif
11906 ; return 0; }
11908 if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11909 rm -rf conftest*
11910 eval "ac_cv_func_$ac_func=yes"
11911 else
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 eval "ac_cv_func_$ac_func=no"
11917 rm -f conftest*
11920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11921 echo "$ac_t""yes" 1>&6
11922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11923 cat >> confdefs.h <<EOF
11924 #define $ac_tr_func 1
11927 else
11928 echo "$ac_t""no" 1>&6
11930 done
11932 else
11934 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11935 echo "configure:11936: checking for _logf declaration" >&5
11936 if test x${glibcpp_cv_func__logf_use+set} != xset; then
11937 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939 else
11942 ac_ext=C
11943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11944 ac_cpp='$CXXCPP $CPPFLAGS'
11945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11947 cross_compiling=$ac_cv_prog_cxx_cross
11949 cat > conftest.$ac_ext <<EOF
11950 #line 11951 "configure"
11951 #include "confdefs.h"
11952 #include <math.h>
11953 #ifdef HAVE_IEEEFP_H
11954 #include <ieeefp.h>
11955 #endif
11957 int main() {
11958 _logf(0);
11959 ; return 0; }
11961 if { (eval echo configure:11962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11962 rm -rf conftest*
11963 glibcpp_cv_func__logf_use=yes
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 glibcpp_cv_func__logf_use=no
11970 rm -f conftest*
11971 ac_ext=c
11972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11973 ac_cpp='$CPP $CPPFLAGS'
11974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11976 cross_compiling=$ac_cv_prog_cc_cross
11982 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11984 if test x$glibcpp_cv_func__logf_use = x"yes"; then
11985 for ac_func in _logf
11987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11988 echo "configure:11989: checking for $ac_func" >&5
11989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991 else
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char $ac_func(); below. */
11997 #include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error. */
11999 /* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12001 char $ac_func();
12003 int main() {
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12009 choke me
12010 #else
12011 $ac_func();
12012 #endif
12014 ; return 0; }
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12017 rm -rf conftest*
12018 eval "ac_cv_func_$ac_func=yes"
12019 else
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 rm -rf conftest*
12023 eval "ac_cv_func_$ac_func=no"
12025 rm -f conftest*
12028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12029 echo "$ac_t""yes" 1>&6
12030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12031 cat >> confdefs.h <<EOF
12032 #define $ac_tr_func 1
12035 else
12036 echo "$ac_t""no" 1>&6
12038 done
12045 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12046 echo "configure:12047: checking for log10f declaration" >&5
12047 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12048 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050 else
12053 ac_ext=C
12054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12055 ac_cpp='$CXXCPP $CPPFLAGS'
12056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12058 cross_compiling=$ac_cv_prog_cxx_cross
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 #include <math.h>
12064 #ifdef HAVE_IEEEFP_H
12065 #include <ieeefp.h>
12066 #endif
12068 int main() {
12069 log10f(0);
12070 ; return 0; }
12072 if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12073 rm -rf conftest*
12074 glibcpp_cv_func_log10f_use=yes
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 glibcpp_cv_func_log10f_use=no
12081 rm -f conftest*
12082 ac_ext=c
12083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12084 ac_cpp='$CPP $CPPFLAGS'
12085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12087 cross_compiling=$ac_cv_prog_cc_cross
12093 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12095 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12096 for ac_func in log10f
12098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12099 echo "configure:12100: checking for $ac_func" >&5
12100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12102 else
12103 cat > conftest.$ac_ext <<EOF
12104 #line 12105 "configure"
12105 #include "confdefs.h"
12106 /* System header to define __stub macros and hopefully few prototypes,
12107 which can conflict with char $ac_func(); below. */
12108 #include <assert.h>
12109 /* Override any gcc2 internal prototype to avoid an error. */
12110 /* We use char because int might match the return type of a gcc2
12111 builtin and then its argument prototype would still apply. */
12112 char $ac_func();
12114 int main() {
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12120 choke me
12121 #else
12122 $ac_func();
12123 #endif
12125 ; return 0; }
12127 if { (eval echo configure:12128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12128 rm -rf conftest*
12129 eval "ac_cv_func_$ac_func=yes"
12130 else
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 eval "ac_cv_func_$ac_func=no"
12136 rm -f conftest*
12139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12140 echo "$ac_t""yes" 1>&6
12141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12142 cat >> confdefs.h <<EOF
12143 #define $ac_tr_func 1
12146 else
12147 echo "$ac_t""no" 1>&6
12149 done
12151 else
12153 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12154 echo "configure:12155: checking for _log10f declaration" >&5
12155 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12156 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12158 else
12161 ac_ext=C
12162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12163 ac_cpp='$CXXCPP $CPPFLAGS'
12164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12166 cross_compiling=$ac_cv_prog_cxx_cross
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12171 #include <math.h>
12172 #ifdef HAVE_IEEEFP_H
12173 #include <ieeefp.h>
12174 #endif
12176 int main() {
12177 _log10f(0);
12178 ; return 0; }
12180 if { (eval echo configure:12181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12181 rm -rf conftest*
12182 glibcpp_cv_func__log10f_use=yes
12183 else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 glibcpp_cv_func__log10f_use=no
12189 rm -f conftest*
12190 ac_ext=c
12191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12192 ac_cpp='$CPP $CPPFLAGS'
12193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12195 cross_compiling=$ac_cv_prog_cc_cross
12201 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12203 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12204 for ac_func in _log10f
12206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12207 echo "configure:12208: checking for $ac_func" >&5
12208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12210 else
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func(); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12218 /* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12220 char $ac_func();
12222 int main() {
12224 /* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 choke me
12229 #else
12230 $ac_func();
12231 #endif
12233 ; return 0; }
12235 if { (eval echo configure:12236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12236 rm -rf conftest*
12237 eval "ac_cv_func_$ac_func=yes"
12238 else
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 rm -rf conftest*
12242 eval "ac_cv_func_$ac_func=no"
12244 rm -f conftest*
12247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12248 echo "$ac_t""yes" 1>&6
12249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12250 cat >> confdefs.h <<EOF
12251 #define $ac_tr_func 1
12254 else
12255 echo "$ac_t""no" 1>&6
12257 done
12264 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12265 echo "configure:12266: checking for modff declaration" >&5
12266 if test x${glibcpp_cv_func_modff_use+set} != xset; then
12267 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12268 echo $ac_n "(cached) $ac_c" 1>&6
12269 else
12272 ac_ext=C
12273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12274 ac_cpp='$CXXCPP $CPPFLAGS'
12275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12277 cross_compiling=$ac_cv_prog_cxx_cross
12279 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure"
12281 #include "confdefs.h"
12282 #include <math.h>
12283 int main() {
12284 modff(0, 0);
12285 ; return 0; }
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288 rm -rf conftest*
12289 glibcpp_cv_func_modff_use=yes
12290 else
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 rm -rf conftest*
12294 glibcpp_cv_func_modff_use=no
12296 rm -f conftest*
12297 ac_ext=c
12298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12299 ac_cpp='$CPP $CPPFLAGS'
12300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12302 cross_compiling=$ac_cv_prog_cc_cross
12308 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12310 if test x$glibcpp_cv_func_modff_use = x"yes"; then
12311 for ac_func in modff
12313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12314 echo "configure:12315: checking for $ac_func" >&5
12315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12317 else
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 /* System header to define __stub macros and hopefully few prototypes,
12322 which can conflict with char $ac_func(); below. */
12323 #include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char $ac_func();
12329 int main() {
12331 /* The GNU C library defines this for functions which it implements
12332 to always fail with ENOSYS. Some functions are actually named
12333 something starting with __ and the normal name is an alias. */
12334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12335 choke me
12336 #else
12337 $ac_func();
12338 #endif
12340 ; return 0; }
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12343 rm -rf conftest*
12344 eval "ac_cv_func_$ac_func=yes"
12345 else
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12348 rm -rf conftest*
12349 eval "ac_cv_func_$ac_func=no"
12351 rm -f conftest*
12354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12355 echo "$ac_t""yes" 1>&6
12356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12357 cat >> confdefs.h <<EOF
12358 #define $ac_tr_func 1
12361 else
12362 echo "$ac_t""no" 1>&6
12364 done
12366 else
12368 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12369 echo "configure:12370: checking for _modff declaration" >&5
12370 if test x${glibcpp_cv_func__modff_use+set} != xset; then
12371 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373 else
12376 ac_ext=C
12377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12378 ac_cpp='$CXXCPP $CPPFLAGS'
12379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12381 cross_compiling=$ac_cv_prog_cxx_cross
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <math.h>
12387 int main() {
12388 _modff(0, 0);
12389 ; return 0; }
12391 if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12392 rm -rf conftest*
12393 glibcpp_cv_func__modff_use=yes
12394 else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398 glibcpp_cv_func__modff_use=no
12400 rm -f conftest*
12401 ac_ext=c
12402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12406 cross_compiling=$ac_cv_prog_cc_cross
12412 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12414 if test x$glibcpp_cv_func__modff_use = x"yes"; then
12415 for ac_func in _modff
12417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12418 echo "configure:12419: checking for $ac_func" >&5
12419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421 else
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func(); below. */
12427 #include <assert.h>
12428 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char $ac_func();
12433 int main() {
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 $ac_func();
12442 #endif
12444 ; return 0; }
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12447 rm -rf conftest*
12448 eval "ac_cv_func_$ac_func=yes"
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 eval "ac_cv_func_$ac_func=no"
12455 rm -f conftest*
12458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12459 echo "$ac_t""yes" 1>&6
12460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12461 cat >> confdefs.h <<EOF
12462 #define $ac_tr_func 1
12465 else
12466 echo "$ac_t""no" 1>&6
12468 done
12475 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12476 echo "configure:12477: checking for powf declaration" >&5
12477 if test x${glibcpp_cv_func_powf_use+set} != xset; then
12478 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12483 ac_ext=C
12484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CXXCPP $CPPFLAGS'
12486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cxx_cross
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <math.h>
12494 int main() {
12495 powf(0, 0);
12496 ; return 0; }
12498 if { (eval echo configure:12499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12499 rm -rf conftest*
12500 glibcpp_cv_func_powf_use=yes
12501 else
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 rm -rf conftest*
12505 glibcpp_cv_func_powf_use=no
12507 rm -f conftest*
12508 ac_ext=c
12509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12510 ac_cpp='$CPP $CPPFLAGS'
12511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12513 cross_compiling=$ac_cv_prog_cc_cross
12519 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12521 if test x$glibcpp_cv_func_powf_use = x"yes"; then
12522 for ac_func in powf
12524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12525 echo "configure:12526: checking for $ac_func" >&5
12526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533 which can conflict with char $ac_func(); below. */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char $ac_func();
12540 int main() {
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 $ac_func();
12549 #endif
12551 ; return 0; }
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554 rm -rf conftest*
12555 eval "ac_cv_func_$ac_func=yes"
12556 else
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12559 rm -rf conftest*
12560 eval "ac_cv_func_$ac_func=no"
12562 rm -f conftest*
12565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12566 echo "$ac_t""yes" 1>&6
12567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12568 cat >> confdefs.h <<EOF
12569 #define $ac_tr_func 1
12572 else
12573 echo "$ac_t""no" 1>&6
12575 done
12577 else
12579 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12580 echo "configure:12581: checking for _powf declaration" >&5
12581 if test x${glibcpp_cv_func__powf_use+set} != xset; then
12582 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584 else
12587 ac_ext=C
12588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12589 ac_cpp='$CXXCPP $CPPFLAGS'
12590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12592 cross_compiling=$ac_cv_prog_cxx_cross
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 #include <math.h>
12598 int main() {
12599 _powf(0, 0);
12600 ; return 0; }
12602 if { (eval echo configure:12603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12603 rm -rf conftest*
12604 glibcpp_cv_func__powf_use=yes
12605 else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 glibcpp_cv_func__powf_use=no
12611 rm -f conftest*
12612 ac_ext=c
12613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12614 ac_cpp='$CPP $CPPFLAGS'
12615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12617 cross_compiling=$ac_cv_prog_cc_cross
12623 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12625 if test x$glibcpp_cv_func__powf_use = x"yes"; then
12626 for ac_func in _powf
12628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12629 echo "configure:12630: checking for $ac_func" >&5
12630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632 else
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642 char $ac_func();
12644 int main() {
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 choke me
12651 #else
12652 $ac_func();
12653 #endif
12655 ; return 0; }
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_func_$ac_func=yes"
12660 else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_func_$ac_func=no"
12666 rm -f conftest*
12669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12672 cat >> confdefs.h <<EOF
12673 #define $ac_tr_func 1
12676 else
12677 echo "$ac_t""no" 1>&6
12679 done
12686 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12687 echo "configure:12688: checking for sqrtf declaration" >&5
12688 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12689 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12691 else
12694 ac_ext=C
12695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12696 ac_cpp='$CXXCPP $CPPFLAGS'
12697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12699 cross_compiling=$ac_cv_prog_cxx_cross
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <math.h>
12705 #ifdef HAVE_IEEEFP_H
12706 #include <ieeefp.h>
12707 #endif
12709 int main() {
12710 sqrtf(0);
12711 ; return 0; }
12713 if { (eval echo configure:12714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12714 rm -rf conftest*
12715 glibcpp_cv_func_sqrtf_use=yes
12716 else
12717 echo "configure: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719 rm -rf conftest*
12720 glibcpp_cv_func_sqrtf_use=no
12722 rm -f conftest*
12723 ac_ext=c
12724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12725 ac_cpp='$CPP $CPPFLAGS'
12726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12728 cross_compiling=$ac_cv_prog_cc_cross
12734 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12736 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12737 for ac_func in sqrtf
12739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12740 echo "configure:12741: checking for $ac_func" >&5
12741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743 else
12744 cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 /* System header to define __stub macros and hopefully few prototypes,
12748 which can conflict with char $ac_func(); below. */
12749 #include <assert.h>
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753 char $ac_func();
12755 int main() {
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12761 choke me
12762 #else
12763 $ac_func();
12764 #endif
12766 ; return 0; }
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12769 rm -rf conftest*
12770 eval "ac_cv_func_$ac_func=yes"
12771 else
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 rm -rf conftest*
12775 eval "ac_cv_func_$ac_func=no"
12777 rm -f conftest*
12780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12781 echo "$ac_t""yes" 1>&6
12782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12783 cat >> confdefs.h <<EOF
12784 #define $ac_tr_func 1
12787 else
12788 echo "$ac_t""no" 1>&6
12790 done
12792 else
12794 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12795 echo "configure:12796: checking for _sqrtf declaration" >&5
12796 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12797 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12798 echo $ac_n "(cached) $ac_c" 1>&6
12799 else
12802 ac_ext=C
12803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12804 ac_cpp='$CXXCPP $CPPFLAGS'
12805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12807 cross_compiling=$ac_cv_prog_cxx_cross
12809 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure"
12811 #include "confdefs.h"
12812 #include <math.h>
12813 #ifdef HAVE_IEEEFP_H
12814 #include <ieeefp.h>
12815 #endif
12817 int main() {
12818 _sqrtf(0);
12819 ; return 0; }
12821 if { (eval echo configure:12822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12822 rm -rf conftest*
12823 glibcpp_cv_func__sqrtf_use=yes
12824 else
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 rm -rf conftest*
12828 glibcpp_cv_func__sqrtf_use=no
12830 rm -f conftest*
12831 ac_ext=c
12832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12836 cross_compiling=$ac_cv_prog_cc_cross
12842 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12844 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12845 for ac_func in _sqrtf
12847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12848 echo "configure:12849: checking for $ac_func" >&5
12849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12850 echo $ac_n "(cached) $ac_c" 1>&6
12851 else
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func(); below. */
12857 #include <assert.h>
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12861 char $ac_func();
12863 int main() {
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 choke me
12870 #else
12871 $ac_func();
12872 #endif
12874 ; return 0; }
12876 if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=yes"
12879 else
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 rm -rf conftest*
12883 eval "ac_cv_func_$ac_func=no"
12885 rm -f conftest*
12888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12891 cat >> confdefs.h <<EOF
12892 #define $ac_tr_func 1
12895 else
12896 echo "$ac_t""no" 1>&6
12898 done
12905 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12906 echo "configure:12907: checking for sincosf declaration" >&5
12907 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12908 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12909 echo $ac_n "(cached) $ac_c" 1>&6
12910 else
12913 ac_ext=C
12914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12915 ac_cpp='$CXXCPP $CPPFLAGS'
12916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12918 cross_compiling=$ac_cv_prog_cxx_cross
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 #include <math.h>
12924 int main() {
12925 sincosf(0, 0, 0);
12926 ; return 0; }
12928 if { (eval echo configure:12929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12929 rm -rf conftest*
12930 glibcpp_cv_func_sincosf_use=yes
12931 else
12932 echo "configure: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12934 rm -rf conftest*
12935 glibcpp_cv_func_sincosf_use=no
12937 rm -f conftest*
12938 ac_ext=c
12939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12943 cross_compiling=$ac_cv_prog_cc_cross
12949 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12951 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12952 for ac_func in sincosf
12954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12955 echo "configure:12956: checking for $ac_func" >&5
12956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12957 echo $ac_n "(cached) $ac_c" 1>&6
12958 else
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963 which can conflict with char $ac_func(); below. */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error. */
12966 /* We use char because int might match the return type of a gcc2
12967 builtin and then its argument prototype would still apply. */
12968 char $ac_func();
12970 int main() {
12972 /* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 $ac_func();
12979 #endif
12981 ; return 0; }
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984 rm -rf conftest*
12985 eval "ac_cv_func_$ac_func=yes"
12986 else
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 eval "ac_cv_func_$ac_func=no"
12992 rm -f conftest*
12995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12996 echo "$ac_t""yes" 1>&6
12997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12998 cat >> confdefs.h <<EOF
12999 #define $ac_tr_func 1
13002 else
13003 echo "$ac_t""no" 1>&6
13005 done
13007 else
13009 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13010 echo "configure:13011: checking for _sincosf declaration" >&5
13011 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13012 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13017 ac_ext=C
13018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13022 cross_compiling=$ac_cv_prog_cxx_cross
13024 cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <math.h>
13028 int main() {
13029 _sincosf(0, 0, 0);
13030 ; return 0; }
13032 if { (eval echo configure:13033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13033 rm -rf conftest*
13034 glibcpp_cv_func__sincosf_use=yes
13035 else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039 glibcpp_cv_func__sincosf_use=no
13041 rm -f conftest*
13042 ac_ext=c
13043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13044 ac_cpp='$CPP $CPPFLAGS'
13045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13047 cross_compiling=$ac_cv_prog_cc_cross
13053 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13055 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13056 for ac_func in _sincosf
13058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13059 echo "configure:13060: checking for $ac_func" >&5
13060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13061 echo $ac_n "(cached) $ac_c" 1>&6
13062 else
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char $ac_func(); below. */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char $ac_func();
13074 int main() {
13076 /* The GNU C library defines this for functions which it implements
13077 to always fail with ENOSYS. Some functions are actually named
13078 something starting with __ and the normal name is an alias. */
13079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13080 choke me
13081 #else
13082 $ac_func();
13083 #endif
13085 ; return 0; }
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 rm -rf conftest*
13089 eval "ac_cv_func_$ac_func=yes"
13090 else
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=no"
13096 rm -f conftest*
13099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13102 cat >> confdefs.h <<EOF
13103 #define $ac_tr_func 1
13106 else
13107 echo "$ac_t""no" 1>&6
13109 done
13116 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13117 echo "configure:13118: checking for finitef declaration" >&5
13118 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13119 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13120 echo $ac_n "(cached) $ac_c" 1>&6
13121 else
13124 ac_ext=C
13125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13126 ac_cpp='$CXXCPP $CPPFLAGS'
13127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13129 cross_compiling=$ac_cv_prog_cxx_cross
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 #include <math.h>
13135 #ifdef HAVE_IEEEFP_H
13136 #include <ieeefp.h>
13137 #endif
13139 int main() {
13140 finitef(0);
13141 ; return 0; }
13143 if { (eval echo configure:13144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13144 rm -rf conftest*
13145 glibcpp_cv_func_finitef_use=yes
13146 else
13147 echo "configure: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 rm -rf conftest*
13150 glibcpp_cv_func_finitef_use=no
13152 rm -f conftest*
13153 ac_ext=c
13154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13158 cross_compiling=$ac_cv_prog_cc_cross
13164 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13166 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13167 for ac_func in finitef
13169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13170 echo "configure:13171: checking for $ac_func" >&5
13171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13173 else
13174 cat > conftest.$ac_ext <<EOF
13175 #line 13176 "configure"
13176 #include "confdefs.h"
13177 /* System header to define __stub macros and hopefully few prototypes,
13178 which can conflict with char $ac_func(); below. */
13179 #include <assert.h>
13180 /* Override any gcc2 internal prototype to avoid an error. */
13181 /* We use char because int might match the return type of a gcc2
13182 builtin and then its argument prototype would still apply. */
13183 char $ac_func();
13185 int main() {
13187 /* The GNU C library defines this for functions which it implements
13188 to always fail with ENOSYS. Some functions are actually named
13189 something starting with __ and the normal name is an alias. */
13190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13191 choke me
13192 #else
13193 $ac_func();
13194 #endif
13196 ; return 0; }
13198 if { (eval echo configure:13199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13199 rm -rf conftest*
13200 eval "ac_cv_func_$ac_func=yes"
13201 else
13202 echo "configure: failed program was:" >&5
13203 cat conftest.$ac_ext >&5
13204 rm -rf conftest*
13205 eval "ac_cv_func_$ac_func=no"
13207 rm -f conftest*
13210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13211 echo "$ac_t""yes" 1>&6
13212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13213 cat >> confdefs.h <<EOF
13214 #define $ac_tr_func 1
13217 else
13218 echo "$ac_t""no" 1>&6
13220 done
13222 else
13224 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13225 echo "configure:13226: checking for _finitef declaration" >&5
13226 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13227 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229 else
13232 ac_ext=C
13233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13234 ac_cpp='$CXXCPP $CPPFLAGS'
13235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13237 cross_compiling=$ac_cv_prog_cxx_cross
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <math.h>
13243 #ifdef HAVE_IEEEFP_H
13244 #include <ieeefp.h>
13245 #endif
13247 int main() {
13248 _finitef(0);
13249 ; return 0; }
13251 if { (eval echo configure:13252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13252 rm -rf conftest*
13253 glibcpp_cv_func__finitef_use=yes
13254 else
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13257 rm -rf conftest*
13258 glibcpp_cv_func__finitef_use=no
13260 rm -f conftest*
13261 ac_ext=c
13262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13263 ac_cpp='$CPP $CPPFLAGS'
13264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13266 cross_compiling=$ac_cv_prog_cc_cross
13272 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13274 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13275 for ac_func in _finitef
13277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13278 echo "configure:13279: checking for $ac_func" >&5
13279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13281 else
13282 cat > conftest.$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 /* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char $ac_func(); below. */
13287 #include <assert.h>
13288 /* Override any gcc2 internal prototype to avoid an error. */
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13291 char $ac_func();
13293 int main() {
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 $ac_func();
13302 #endif
13304 ; return 0; }
13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13307 rm -rf conftest*
13308 eval "ac_cv_func_$ac_func=yes"
13309 else
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=no"
13315 rm -f conftest*
13318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13319 echo "$ac_t""yes" 1>&6
13320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13321 cat >> confdefs.h <<EOF
13322 #define $ac_tr_func 1
13325 else
13326 echo "$ac_t""no" 1>&6
13328 done
13335 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13336 echo "configure:13337: checking for long double trig functions" >&5
13337 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339 else
13342 ac_ext=C
13343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13344 ac_cpp='$CXXCPP $CPPFLAGS'
13345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13347 cross_compiling=$ac_cv_prog_cxx_cross
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13352 #include <math.h>
13353 int main() {
13354 `for x in acosl asinl atanl \
13355 cosl sinl tanl \
13356 coshl sinhl tanhl; do echo "$x (0);"; done`
13357 ; return 0; }
13359 if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13360 rm -rf conftest*
13361 glibcpp_cv_func_long_double_trig_use=yes
13362 else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 glibcpp_cv_func_long_double_trig_use=no
13368 rm -f conftest*
13369 ac_ext=c
13370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13371 ac_cpp='$CPP $CPPFLAGS'
13372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13374 cross_compiling=$ac_cv_prog_cc_cross
13378 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13379 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13380 for ac_func in acosl asinl atanl \
13381 cosl sinl tanl \
13382 coshl sinhl tanhl
13384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13385 echo "configure:13386: checking for $ac_func" >&5
13386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13387 echo $ac_n "(cached) $ac_c" 1>&6
13388 else
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 /* System header to define __stub macros and hopefully few prototypes,
13393 which can conflict with char $ac_func(); below. */
13394 #include <assert.h>
13395 /* Override any gcc2 internal prototype to avoid an error. */
13396 /* We use char because int might match the return type of a gcc2
13397 builtin and then its argument prototype would still apply. */
13398 char $ac_func();
13400 int main() {
13402 /* The GNU C library defines this for functions which it implements
13403 to always fail with ENOSYS. Some functions are actually named
13404 something starting with __ and the normal name is an alias. */
13405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13406 choke me
13407 #else
13408 $ac_func();
13409 #endif
13411 ; return 0; }
13413 if { (eval echo configure:13414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13414 rm -rf conftest*
13415 eval "ac_cv_func_$ac_func=yes"
13416 else
13417 echo "configure: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13419 rm -rf conftest*
13420 eval "ac_cv_func_$ac_func=no"
13422 rm -f conftest*
13425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13426 echo "$ac_t""yes" 1>&6
13427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13428 cat >> confdefs.h <<EOF
13429 #define $ac_tr_func 1
13432 else
13433 echo "$ac_t""no" 1>&6
13435 done
13440 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13441 echo "configure:13442: checking for long double round functions" >&5
13442 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13444 else
13447 ac_ext=C
13448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13449 ac_cpp='$CXXCPP $CPPFLAGS'
13450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13452 cross_compiling=$ac_cv_prog_cxx_cross
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 #include <math.h>
13458 int main() {
13459 `for x in ceill floorl; do echo "$x (0);"; done`
13460 ; return 0; }
13462 if { (eval echo configure:13463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13463 rm -rf conftest*
13464 glibcpp_cv_func_long_double_round_use=yes
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 glibcpp_cv_func_long_double_round_use=no
13471 rm -f conftest*
13472 ac_ext=c
13473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13474 ac_cpp='$CPP $CPPFLAGS'
13475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13477 cross_compiling=$ac_cv_prog_cc_cross
13481 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13482 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13483 for ac_func in ceill floorl
13485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13486 echo "configure:13487: checking for $ac_func" >&5
13487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13489 else
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13493 /* System header to define __stub macros and hopefully few prototypes,
13494 which can conflict with char $ac_func(); below. */
13495 #include <assert.h>
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13499 char $ac_func();
13501 int main() {
13503 /* The GNU C library defines this for functions which it implements
13504 to always fail with ENOSYS. Some functions are actually named
13505 something starting with __ and the normal name is an alias. */
13506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13507 choke me
13508 #else
13509 $ac_func();
13510 #endif
13512 ; return 0; }
13514 if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13515 rm -rf conftest*
13516 eval "ac_cv_func_$ac_func=yes"
13517 else
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 rm -rf conftest*
13521 eval "ac_cv_func_$ac_func=no"
13523 rm -f conftest*
13526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13527 echo "$ac_t""yes" 1>&6
13528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13529 cat >> confdefs.h <<EOF
13530 #define $ac_tr_func 1
13533 else
13534 echo "$ac_t""no" 1>&6
13536 done
13542 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13543 echo "configure:13544: checking for isnanl declaration" >&5
13544 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13545 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13547 else
13550 ac_ext=C
13551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13552 ac_cpp='$CXXCPP $CPPFLAGS'
13553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13555 cross_compiling=$ac_cv_prog_cxx_cross
13557 cat > conftest.$ac_ext <<EOF
13558 #line 13559 "configure"
13559 #include "confdefs.h"
13560 #include <math.h>
13561 #ifdef HAVE_IEEEFP_H
13562 #include <ieeefp.h>
13563 #endif
13565 int main() {
13566 isnanl(0);
13567 ; return 0; }
13569 if { (eval echo configure:13570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13570 rm -rf conftest*
13571 glibcpp_cv_func_isnanl_use=yes
13572 else
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 glibcpp_cv_func_isnanl_use=no
13578 rm -f conftest*
13579 ac_ext=c
13580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13584 cross_compiling=$ac_cv_prog_cc_cross
13590 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13592 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13593 for ac_func in isnanl
13595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13596 echo "configure:13597: checking for $ac_func" >&5
13597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13598 echo $ac_n "(cached) $ac_c" 1>&6
13599 else
13600 cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func(); below. */
13605 #include <assert.h>
13606 /* Override any gcc2 internal prototype to avoid an error. */
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13609 char $ac_func();
13611 int main() {
13613 /* The GNU C library defines this for functions which it implements
13614 to always fail with ENOSYS. Some functions are actually named
13615 something starting with __ and the normal name is an alias. */
13616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13617 choke me
13618 #else
13619 $ac_func();
13620 #endif
13622 ; return 0; }
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13625 rm -rf conftest*
13626 eval "ac_cv_func_$ac_func=yes"
13627 else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631 eval "ac_cv_func_$ac_func=no"
13633 rm -f conftest*
13636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13637 echo "$ac_t""yes" 1>&6
13638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13639 cat >> confdefs.h <<EOF
13640 #define $ac_tr_func 1
13643 else
13644 echo "$ac_t""no" 1>&6
13646 done
13648 else
13650 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13651 echo "configure:13652: checking for _isnanl declaration" >&5
13652 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13653 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13658 ac_ext=C
13659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13660 ac_cpp='$CXXCPP $CPPFLAGS'
13661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13663 cross_compiling=$ac_cv_prog_cxx_cross
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 #include <math.h>
13669 #ifdef HAVE_IEEEFP_H
13670 #include <ieeefp.h>
13671 #endif
13673 int main() {
13674 _isnanl(0);
13675 ; return 0; }
13677 if { (eval echo configure:13678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13678 rm -rf conftest*
13679 glibcpp_cv_func__isnanl_use=yes
13680 else
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13683 rm -rf conftest*
13684 glibcpp_cv_func__isnanl_use=no
13686 rm -f conftest*
13687 ac_ext=c
13688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692 cross_compiling=$ac_cv_prog_cc_cross
13698 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13700 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13701 for ac_func in _isnanl
13703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13704 echo "configure:13705: checking for $ac_func" >&5
13705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13706 echo $ac_n "(cached) $ac_c" 1>&6
13707 else
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711 /* System header to define __stub macros and hopefully few prototypes,
13712 which can conflict with char $ac_func(); below. */
13713 #include <assert.h>
13714 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13717 char $ac_func();
13719 int main() {
13721 /* The GNU C library defines this for functions which it implements
13722 to always fail with ENOSYS. Some functions are actually named
13723 something starting with __ and the normal name is an alias. */
13724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13725 choke me
13726 #else
13727 $ac_func();
13728 #endif
13730 ; return 0; }
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13733 rm -rf conftest*
13734 eval "ac_cv_func_$ac_func=yes"
13735 else
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 rm -rf conftest*
13739 eval "ac_cv_func_$ac_func=no"
13741 rm -f conftest*
13744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13745 echo "$ac_t""yes" 1>&6
13746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13747 cat >> confdefs.h <<EOF
13748 #define $ac_tr_func 1
13751 else
13752 echo "$ac_t""no" 1>&6
13754 done
13761 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13762 echo "configure:13763: checking for isinfl declaration" >&5
13763 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13764 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766 else
13769 ac_ext=C
13770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13771 ac_cpp='$CXXCPP $CPPFLAGS'
13772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13774 cross_compiling=$ac_cv_prog_cxx_cross
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 #include <math.h>
13780 #ifdef HAVE_IEEEFP_H
13781 #include <ieeefp.h>
13782 #endif
13784 int main() {
13785 isinfl(0);
13786 ; return 0; }
13788 if { (eval echo configure:13789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13789 rm -rf conftest*
13790 glibcpp_cv_func_isinfl_use=yes
13791 else
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 rm -rf conftest*
13795 glibcpp_cv_func_isinfl_use=no
13797 rm -f conftest*
13798 ac_ext=c
13799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13800 ac_cpp='$CPP $CPPFLAGS'
13801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13803 cross_compiling=$ac_cv_prog_cc_cross
13809 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13811 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13812 for ac_func in isinfl
13814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13815 echo "configure:13816: checking for $ac_func" >&5
13816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818 else
13819 cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13822 /* System header to define __stub macros and hopefully few prototypes,
13823 which can conflict with char $ac_func(); below. */
13824 #include <assert.h>
13825 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13828 char $ac_func();
13830 int main() {
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13836 choke me
13837 #else
13838 $ac_func();
13839 #endif
13841 ; return 0; }
13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13844 rm -rf conftest*
13845 eval "ac_cv_func_$ac_func=yes"
13846 else
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 rm -rf conftest*
13850 eval "ac_cv_func_$ac_func=no"
13852 rm -f conftest*
13855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13856 echo "$ac_t""yes" 1>&6
13857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13858 cat >> confdefs.h <<EOF
13859 #define $ac_tr_func 1
13862 else
13863 echo "$ac_t""no" 1>&6
13865 done
13867 else
13869 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13870 echo "configure:13871: checking for _isinfl declaration" >&5
13871 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13872 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13874 else
13877 ac_ext=C
13878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CXXCPP $CPPFLAGS'
13880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cxx_cross
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 #include <math.h>
13888 #ifdef HAVE_IEEEFP_H
13889 #include <ieeefp.h>
13890 #endif
13892 int main() {
13893 _isinfl(0);
13894 ; return 0; }
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897 rm -rf conftest*
13898 glibcpp_cv_func__isinfl_use=yes
13899 else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 glibcpp_cv_func__isinfl_use=no
13905 rm -f conftest*
13906 ac_ext=c
13907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cc_cross
13917 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13919 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13920 for ac_func in _isinfl
13922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_func" >&5
13924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13926 else
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char $ac_func(); below. */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13936 char $ac_func();
13938 int main() {
13940 /* The GNU C library defines this for functions which it implements
13941 to always fail with ENOSYS. Some functions are actually named
13942 something starting with __ and the normal name is an alias. */
13943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 choke me
13945 #else
13946 $ac_func();
13947 #endif
13949 ; return 0; }
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 rm -rf conftest*
13953 eval "ac_cv_func_$ac_func=yes"
13954 else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_func_$ac_func=no"
13960 rm -f conftest*
13963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13964 echo "$ac_t""yes" 1>&6
13965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13966 cat >> confdefs.h <<EOF
13967 #define $ac_tr_func 1
13970 else
13971 echo "$ac_t""no" 1>&6
13973 done
13980 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13981 echo "configure:13982: checking for copysignl declaration" >&5
13982 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13983 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13988 ac_ext=C
13989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13990 ac_cpp='$CXXCPP $CPPFLAGS'
13991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13993 cross_compiling=$ac_cv_prog_cxx_cross
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
13998 #include <math.h>
13999 int main() {
14000 copysignl(0, 0);
14001 ; return 0; }
14003 if { (eval echo configure:14004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14004 rm -rf conftest*
14005 glibcpp_cv_func_copysignl_use=yes
14006 else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 glibcpp_cv_func_copysignl_use=no
14012 rm -f conftest*
14013 ac_ext=c
14014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14015 ac_cpp='$CPP $CPPFLAGS'
14016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14018 cross_compiling=$ac_cv_prog_cc_cross
14024 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14026 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14027 for ac_func in copysignl
14029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14030 echo "configure:14031: checking for $ac_func" >&5
14031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14032 echo $ac_n "(cached) $ac_c" 1>&6
14033 else
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14036 "configure"
14036 #include "confdefs.h"
14037 /* System header to define __stub macros and hopefully few prototypes,
14038 which can conflict with char $ac_func(); below. */
14039 #include <assert.h>
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14043 char $ac_func();
14045 int main() {
14047 /* The GNU C library defines this for functions which it implements
14048 to always fail with ENOSYS. Some functions are actually named
14049 something starting with __ and the normal name is an alias. */
14050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14051 choke me
14052 #else
14053 $ac_func();
14054 #endif
14056 ; return 0; }
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14059 rm -rf conftest*
14060 eval "ac_cv_func_$ac_func=yes"
14061 else
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 rm -rf conftest*
14065 eval "ac_cv_func_$ac_func=no"
14067 rm -f conftest*
14070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
14072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14073 cat >> confdefs.h <<EOF
14074 #define $ac_tr_func 1
14077 else
14078 echo "$ac_t""no" 1>&6
14080 done
14082 else
14084 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14085 echo "configure:14086: checking for _copysignl declaration" >&5
14086 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14087 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14092 ac_ext=C
14093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14094 ac_cpp='$CXXCPP $CPPFLAGS'
14095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14097 cross_compiling=$ac_cv_prog_cxx_cross
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14102 #include <math.h>
14103 int main() {
14104 _copysignl(0, 0);
14105 ; return 0; }
14107 if { (eval echo configure:14108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14108 rm -rf conftest*
14109 glibcpp_cv_func__copysignl_use=yes
14110 else
14111 echo "configure: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 rm -rf conftest*
14114 glibcpp_cv_func__copysignl_use=no
14116 rm -f conftest*
14117 ac_ext=c
14118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14122 cross_compiling=$ac_cv_prog_cc_cross
14128 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14130 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14131 for ac_func in _copysignl
14133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14134 echo "configure:14135: checking for $ac_func" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func();
14149 int main() {
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 $ac_func();
14158 #endif
14160 ; return 0; }
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14171 rm -f conftest*
14174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178 #define $ac_tr_func 1
14181 else
14182 echo "$ac_t""no" 1>&6
14184 done
14191 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14192 echo "configure:14193: checking for atan2l declaration" >&5
14193 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14194 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14195 echo $ac_n "(cached) $ac_c" 1>&6
14196 else
14199 ac_ext=C
14200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14201 ac_cpp='$CXXCPP $CPPFLAGS'
14202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14204 cross_compiling=$ac_cv_prog_cxx_cross
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 #include <math.h>
14210 int main() {
14211 atan2l(0, 0);
14212 ; return 0; }
14214 if { (eval echo configure:14215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14215 rm -rf conftest*
14216 glibcpp_cv_func_atan2l_use=yes
14217 else
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 rm -rf conftest*
14221 glibcpp_cv_func_atan2l_use=no
14223 rm -f conftest*
14224 ac_ext=c
14225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14226 ac_cpp='$CPP $CPPFLAGS'
14227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14229 cross_compiling=$ac_cv_prog_cc_cross
14235 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14237 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14238 for ac_func in atan2l
14240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14241 echo "configure:14242: checking for $ac_func" >&5
14242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14244 else
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func(); below. */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254 char $ac_func();
14256 int main() {
14258 /* The GNU C library defines this for functions which it implements
14259 to always fail with ENOSYS. Some functions are actually named
14260 something starting with __ and the normal name is an alias. */
14261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262 choke me
14263 #else
14264 $ac_func();
14265 #endif
14267 ; return 0; }
14269 if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14270 rm -rf conftest*
14271 eval "ac_cv_func_$ac_func=yes"
14272 else
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14275 rm -rf conftest*
14276 eval "ac_cv_func_$ac_func=no"
14278 rm -f conftest*
14281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14282 echo "$ac_t""yes" 1>&6
14283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14284 cat >> confdefs.h <<EOF
14285 #define $ac_tr_func 1
14288 else
14289 echo "$ac_t""no" 1>&6
14291 done
14293 else
14295 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14296 echo "configure:14297: checking for _atan2l declaration" >&5
14297 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14298 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14300 else
14303 ac_ext=C
14304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CXXCPP $CPPFLAGS'
14306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cxx_cross
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 #include <math.h>
14314 int main() {
14315 _atan2l(0, 0);
14316 ; return 0; }
14318 if { (eval echo configure:14319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 rm -rf conftest*
14320 glibcpp_cv_func__atan2l_use=yes
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 glibcpp_cv_func__atan2l_use=no
14327 rm -f conftest*
14328 ac_ext=c
14329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14330 ac_cpp='$CPP $CPPFLAGS'
14331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14333 cross_compiling=$ac_cv_prog_cc_cross
14339 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14341 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14342 for ac_func in _atan2l
14344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14345 echo "configure:14346: checking for $ac_func" >&5
14346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 /* System header to define __stub macros and hopefully few prototypes,
14353 which can conflict with char $ac_func(); below. */
14354 #include <assert.h>
14355 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358 char $ac_func();
14360 int main() {
14362 /* The GNU C library defines this for functions which it implements
14363 to always fail with ENOSYS. Some functions are actually named
14364 something starting with __ and the normal name is an alias. */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 $ac_func();
14369 #endif
14371 ; return 0; }
14373 if { (eval echo configure:14374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374 rm -rf conftest*
14375 eval "ac_cv_func_$ac_func=yes"
14376 else
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14379 rm -rf conftest*
14380 eval "ac_cv_func_$ac_func=no"
14382 rm -f conftest*
14385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14386 echo "$ac_t""yes" 1>&6
14387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14388 cat >> confdefs.h <<EOF
14389 #define $ac_tr_func 1
14392 else
14393 echo "$ac_t""no" 1>&6
14395 done
14402 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14403 echo "configure:14404: checking for expl declaration" >&5
14404 if test x${glibcpp_cv_func_expl_use+set} != xset; then
14405 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14406 echo $ac_n "(cached) $ac_c" 1>&6
14407 else
14410 ac_ext=C
14411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14412 ac_cpp='$CXXCPP $CPPFLAGS'
14413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14415 cross_compiling=$ac_cv_prog_cxx_cross
14417 cat > conftest.$ac_ext <<EOF
14418 #line 14419 "configure"
14419 #include "confdefs.h"
14420 #include <math.h>
14421 #ifdef HAVE_IEEEFP_H
14422 #include <ieeefp.h>
14423 #endif
14425 int main() {
14426 expl(0);
14427 ; return 0; }
14429 if { (eval echo configure:14430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14430 rm -rf conftest*
14431 glibcpp_cv_func_expl_use=yes
14432 else
14433 echo "configure: failed program was:" >&5
14434 cat conftest.$ac_ext >&5
14435 rm -rf conftest*
14436 glibcpp_cv_func_expl_use=no
14438 rm -f conftest*
14439 ac_ext=c
14440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14444 cross_compiling=$ac_cv_prog_cc_cross
14450 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14452 if test x$glibcpp_cv_func_expl_use = x"yes"; then
14453 for ac_func in expl
14455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14456 echo "configure:14457: checking for $ac_func" >&5
14457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14458 echo $ac_n "(cached) $ac_c" 1>&6
14459 else
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 /* System header to define __stub macros and hopefully few prototypes,
14464 which can conflict with char $ac_func(); below. */
14465 #include <assert.h>
14466 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469 char $ac_func();
14471 int main() {
14473 /* The GNU C library defines this for functions which it implements
14474 to always fail with ENOSYS. Some functions are actually named
14475 something starting with __ and the normal name is an alias. */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14477 choke me
14478 #else
14479 $ac_func();
14480 #endif
14482 ; return 0; }
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485 rm -rf conftest*
14486 eval "ac_cv_func_$ac_func=yes"
14487 else
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14490 rm -rf conftest*
14491 eval "ac_cv_func_$ac_func=no"
14493 rm -f conftest*
14496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14499 cat >> confdefs.h <<EOF
14500 #define $ac_tr_func 1
14503 else
14504 echo "$ac_t""no" 1>&6
14506 done
14508 else
14510 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14511 echo "configure:14512: checking for _expl declaration" >&5
14512 if test x${glibcpp_cv_func__expl_use+set} != xset; then
14513 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14514 echo $ac_n "(cached) $ac_c" 1>&6
14515 else
14518 ac_ext=C
14519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14520 ac_cpp='$CXXCPP $CPPFLAGS'
14521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14523 cross_compiling=$ac_cv_prog_cxx_cross
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 #include <math.h>
14529 #ifdef HAVE_IEEEFP_H
14530 #include <ieeefp.h>
14531 #endif
14533 int main() {
14534 _expl(0);
14535 ; return 0; }
14537 if { (eval echo configure:14538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14538 rm -rf conftest*
14539 glibcpp_cv_func__expl_use=yes
14540 else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544 glibcpp_cv_func__expl_use=no
14546 rm -f conftest*
14547 ac_ext=c
14548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14549 ac_cpp='$CPP $CPPFLAGS'
14550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14552 cross_compiling=$ac_cv_prog_cc_cross
14558 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14560 if test x$glibcpp_cv_func__expl_use = x"yes"; then
14561 for ac_func in _expl
14563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14564 echo "configure:14565: checking for $ac_func" >&5
14565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14566 echo $ac_n "(cached) $ac_c" 1>&6
14567 else
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 /* System header to define __stub macros and hopefully few prototypes,
14572 which can conflict with char $ac_func(); below. */
14573 #include <assert.h>
14574 /* Override any gcc2 internal prototype to avoid an error. */
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14577 char $ac_func();
14579 int main() {
14581 /* The GNU C library defines this for functions which it implements
14582 to always fail with ENOSYS. Some functions are actually named
14583 something starting with __ and the normal name is an alias. */
14584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14585 choke me
14586 #else
14587 $ac_func();
14588 #endif
14590 ; return 0; }
14592 if { (eval echo configure:14593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14593 rm -rf conftest*
14594 eval "ac_cv_func_$ac_func=yes"
14595 else
14596 echo "configure: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14598 rm -rf conftest*
14599 eval "ac_cv_func_$ac_func=no"
14601 rm -f conftest*
14604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14605 echo "$ac_t""yes" 1>&6
14606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14607 cat >> confdefs.h <<EOF
14608 #define $ac_tr_func 1
14611 else
14612 echo "$ac_t""no" 1>&6
14614 done
14621 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14622 echo "configure:14623: checking for fabsl declaration" >&5
14623 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14624 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626 else
14629 ac_ext=C
14630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14631 ac_cpp='$CXXCPP $CPPFLAGS'
14632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14634 cross_compiling=$ac_cv_prog_cxx_cross
14636 cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14639 #include <math.h>
14640 #ifdef HAVE_IEEEFP_H
14641 #include <ieeefp.h>
14642 #endif
14644 int main() {
14645 fabsl(0);
14646 ; return 0; }
14648 if { (eval echo configure:14649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14649 rm -rf conftest*
14650 glibcpp_cv_func_fabsl_use=yes
14651 else
14652 echo "configure: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 rm -rf conftest*
14655 glibcpp_cv_func_fabsl_use=no
14657 rm -f conftest*
14658 ac_ext=c
14659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14660 ac_cpp='$CPP $CPPFLAGS'
14661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14663 cross_compiling=$ac_cv_prog_cc_cross
14669 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14671 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14672 for ac_func in fabsl
14674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14675 echo "configure:14676: checking for $ac_func" >&5
14676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14677 echo $ac_n "(cached) $ac_c" 1>&6
14678 else
14679 cat > conftest.$ac_ext <<EOF
14680 #line 14681 "configure"
14681 #include "confdefs.h"
14682 /* System header to define __stub macros and hopefully few prototypes,
14683 which can conflict with char $ac_func(); below. */
14684 #include <assert.h>
14685 /* Override any gcc2 internal prototype to avoid an error. */
14686 /* We use char because int might match the return type of a gcc2
14687 builtin and then its argument prototype would still apply. */
14688 char $ac_func();
14690 int main() {
14692 /* The GNU C library defines this for functions which it implements
14693 to always fail with ENOSYS. Some functions are actually named
14694 something starting with __ and the normal name is an alias. */
14695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14696 choke me
14697 #else
14698 $ac_func();
14699 #endif
14701 ; return 0; }
14703 if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14704 rm -rf conftest*
14705 eval "ac_cv_func_$ac_func=yes"
14706 else
14707 echo "configure: failed program was:" >&5
14708 cat conftest.$ac_ext >&5
14709 rm -rf conftest*
14710 eval "ac_cv_func_$ac_func=no"
14712 rm -f conftest*
14715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14718 cat >> confdefs.h <<EOF
14719 #define $ac_tr_func 1
14722 else
14723 echo "$ac_t""no" 1>&6
14725 done
14727 else
14729 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14730 echo "configure:14731: checking for _fabsl declaration" >&5
14731 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14732 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14733 echo $ac_n "(cached) $ac_c" 1>&6
14734 else
14737 ac_ext=C
14738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14739 ac_cpp='$CXXCPP $CPPFLAGS'
14740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14742 cross_compiling=$ac_cv_prog_cxx_cross
14744 cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14747 #include <math.h>
14748 #ifdef HAVE_IEEEFP_H
14749 #include <ieeefp.h>
14750 #endif
14752 int main() {
14753 _fabsl(0);
14754 ; return 0; }
14756 if { (eval echo configure:14757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14757 rm -rf conftest*
14758 glibcpp_cv_func__fabsl_use=yes
14759 else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 glibcpp_cv_func__fabsl_use=no
14765 rm -f conftest*
14766 ac_ext=c
14767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14768 ac_cpp='$CPP $CPPFLAGS'
14769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14771 cross_compiling=$ac_cv_prog_cc_cross
14777 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14779 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14780 for ac_func in _fabsl
14782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14783 echo "configure:14784: checking for $ac_func" >&5
14784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14786 else
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14790 /* System header to define __stub macros and hopefully few prototypes,
14791 which can conflict with char $ac_func(); below. */
14792 #include <assert.h>
14793 /* Override any gcc2 internal prototype to avoid an error. */
14794 /* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14796 char $ac_func();
14798 int main() {
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804 choke me
14805 #else
14806 $ac_func();
14807 #endif
14809 ; return 0; }
14811 if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14812 rm -rf conftest*
14813 eval "ac_cv_func_$ac_func=yes"
14814 else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14817 rm -rf conftest*
14818 eval "ac_cv_func_$ac_func=no"
14820 rm -f conftest*
14823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14824 echo "$ac_t""yes" 1>&6
14825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14826 cat >> confdefs.h <<EOF
14827 #define $ac_tr_func 1
14830 else
14831 echo "$ac_t""no" 1>&6
14833 done
14840 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14841 echo "configure:14842: checking for fmodl declaration" >&5
14842 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14843 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845 else
14848 ac_ext=C
14849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14850 ac_cpp='$CXXCPP $CPPFLAGS'
14851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14853 cross_compiling=$ac_cv_prog_cxx_cross
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 #include <math.h>
14859 int main() {
14860 fmodl(0, 0);
14861 ; return 0; }
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14864 rm -rf conftest*
14865 glibcpp_cv_func_fmodl_use=yes
14866 else
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14869 rm -rf conftest*
14870 glibcpp_cv_func_fmodl_use=no
14872 rm -f conftest*
14873 ac_ext=c
14874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14875 ac_cpp='$CPP $CPPFLAGS'
14876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14878 cross_compiling=$ac_cv_prog_cc_cross
14884 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14886 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14887 for ac_func in fmodl
14889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14890 echo "configure:14891: checking for $ac_func" >&5
14891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 /* System header to define __stub macros and hopefully few prototypes,
14898 which can conflict with char $ac_func(); below. */
14899 #include <assert.h>
14900 /* Override any gcc2 internal prototype to avoid an error. */
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14903 char $ac_func();
14905 int main() {
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 choke me
14912 #else
14913 $ac_func();
14914 #endif
14916 ; return 0; }
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919 rm -rf conftest*
14920 eval "ac_cv_func_$ac_func=yes"
14921 else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_func_$ac_func=no"
14927 rm -f conftest*
14930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14933 cat >> confdefs.h <<EOF
14934 #define $ac_tr_func 1
14937 else
14938 echo "$ac_t""no" 1>&6
14940 done
14942 else
14944 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14945 echo "configure:14946: checking for _fmodl declaration" >&5
14946 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14947 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14948 echo $ac_n "(cached) $ac_c" 1>&6
14949 else
14952 ac_ext=C
14953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14954 ac_cpp='$CXXCPP $CPPFLAGS'
14955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14957 cross_compiling=$ac_cv_prog_cxx_cross
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 #include <math.h>
14963 int main() {
14964 _fmodl(0, 0);
14965 ; return 0; }
14967 if { (eval echo configure:14968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14968 rm -rf conftest*
14969 glibcpp_cv_func__fmodl_use=yes
14970 else
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14973 rm -rf conftest*
14974 glibcpp_cv_func__fmodl_use=no
14976 rm -f conftest*
14977 ac_ext=c
14978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14982 cross_compiling=$ac_cv_prog_cc_cross
14988 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14990 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14991 for ac_func in _fmodl
14993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14994 echo "configure:14995: checking for $ac_func" >&5
14995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14996 echo $ac_n "(cached) $ac_c" 1>&6
14997 else
14998 cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15001 /* System header to define __stub macros and hopefully few prototypes,
15002 which can conflict with char $ac_func(); below. */
15003 #include <assert.h>
15004 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007 char $ac_func();
15009 int main() {
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15015 choke me
15016 #else
15017 $ac_func();
15018 #endif
15020 ; return 0; }
15022 if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 rm -rf conftest*
15024 eval "ac_cv_func_$ac_func=yes"
15025 else
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15028 rm -rf conftest*
15029 eval "ac_cv_func_$ac_func=no"
15031 rm -f conftest*
15034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15037 cat >> confdefs.h <<EOF
15038 #define $ac_tr_func 1
15041 else
15042 echo "$ac_t""no" 1>&6
15044 done
15051 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15052 echo "configure:15053: checking for frexpl declaration" >&5
15053 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15054 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15056 else
15059 ac_ext=C
15060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15061 ac_cpp='$CXXCPP $CPPFLAGS'
15062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15064 cross_compiling=$ac_cv_prog_cxx_cross
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 #include <math.h>
15070 int main() {
15071 frexpl(0, 0);
15072 ; return 0; }
15074 if { (eval echo configure:15075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15075 rm -rf conftest*
15076 glibcpp_cv_func_frexpl_use=yes
15077 else
15078 echo "configure: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 rm -rf conftest*
15081 glibcpp_cv_func_frexpl_use=no
15083 rm -f conftest*
15084 ac_ext=c
15085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15086 ac_cpp='$CPP $CPPFLAGS'
15087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15089 cross_compiling=$ac_cv_prog_cc_cross
15095 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15097 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15098 for ac_func in frexpl
15100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15101 echo "configure:15102: checking for $ac_func" >&5
15102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15103 echo $ac_n "(cached) $ac_c" 1>&6
15104 else
15105 cat > conftest.$ac_ext <<EOF
15106 #line 15107 "configure"
15107 #include "confdefs.h"
15108 /* System header to define __stub macros and hopefully few prototypes,
15109 which can conflict with char $ac_func(); below. */
15110 #include <assert.h>
15111 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char $ac_func();
15116 int main() {
15118 /* The GNU C library defines this for functions which it implements
15119 to always fail with ENOSYS. Some functions are actually named
15120 something starting with __ and the normal name is an alias. */
15121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15122 choke me
15123 #else
15124 $ac_func();
15125 #endif
15127 ; return 0; }
15129 if { (eval echo configure:15130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15130 rm -rf conftest*
15131 eval "ac_cv_func_$ac_func=yes"
15132 else
15133 echo "configure: failed program was:" >&5
15134 cat conftest.$ac_ext >&5
15135 rm -rf conftest*
15136 eval "ac_cv_func_$ac_func=no"
15138 rm -f conftest*
15141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
15143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15144 cat >> confdefs.h <<EOF
15145 #define $ac_tr_func 1
15148 else
15149 echo "$ac_t""no" 1>&6
15151 done
15153 else
15155 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15156 echo "configure:15157: checking for _frexpl declaration" >&5
15157 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15158 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15159 echo $ac_n "(cached) $ac_c" 1>&6
15160 else
15163 ac_ext=C
15164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15165 ac_cpp='$CXXCPP $CPPFLAGS'
15166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15168 cross_compiling=$ac_cv_prog_cxx_cross
15170 cat > conftest.$ac_ext <<EOF
15171 #line 15172 "configure"
15172 #include "confdefs.h"
15173 #include <math.h>
15174 int main() {
15175 _frexpl(0, 0);
15176 ; return 0; }
15178 if { (eval echo configure:15179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15179 rm -rf conftest*
15180 glibcpp_cv_func__frexpl_use=yes
15181 else
15182 echo "configure: failed program was:" >&5
15183 cat conftest.$ac_ext >&5
15184 rm -rf conftest*
15185 glibcpp_cv_func__frexpl_use=no
15187 rm -f conftest*
15188 ac_ext=c
15189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190 ac_cpp='$CPP $CPPFLAGS'
15191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193 cross_compiling=$ac_cv_prog_cc_cross
15199 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15201 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15202 for ac_func in _frexpl
15204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15205 echo "configure:15206: checking for $ac_func" >&5
15206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15207 echo $ac_n "(cached) $ac_c" 1>&6
15208 else
15209 cat > conftest.$ac_ext <<EOF
15210 #line 15211 "configure"
15211 #include "confdefs.h"
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char $ac_func(); below. */
15214 #include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char $ac_func();
15220 int main() {
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15226 choke me
15227 #else
15228 $ac_func();
15229 #endif
15231 ; return 0; }
15233 if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15234 rm -rf conftest*
15235 eval "ac_cv_func_$ac_func=yes"
15236 else
15237 echo "configure: failed program was:" >&5
15238 cat conftest.$ac_ext >&5
15239 rm -rf conftest*
15240 eval "ac_cv_func_$ac_func=no"
15242 rm -f conftest*
15245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15246 echo "$ac_t""yes" 1>&6
15247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15248 cat >> confdefs.h <<EOF
15249 #define $ac_tr_func 1
15252 else
15253 echo "$ac_t""no" 1>&6
15255 done
15262 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15263 echo "configure:15264: checking for hypotl declaration" >&5
15264 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15265 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15267 else
15270 ac_ext=C
15271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272 ac_cpp='$CXXCPP $CPPFLAGS'
15273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275 cross_compiling=$ac_cv_prog_cxx_cross
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 #include <math.h>
15281 int main() {
15282 hypotl(0, 0);
15283 ; return 0; }
15285 if { (eval echo configure:15286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15286 rm -rf conftest*
15287 glibcpp_cv_func_hypotl_use=yes
15288 else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 glibcpp_cv_func_hypotl_use=no
15294 rm -f conftest*
15295 ac_ext=c
15296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15300 cross_compiling=$ac_cv_prog_cc_cross
15306 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15308 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15309 for ac_func in hypotl
15311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15312 echo "configure:15313: checking for $ac_func" >&5
15313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15315 else
15316 cat > conftest.$ac_ext <<EOF
15317 #line 15318 "configure"
15318 #include "confdefs.h"
15319 /* System header to define __stub macros and hopefully few prototypes,
15320 which can conflict with char $ac_func(); below. */
15321 #include <assert.h>
15322 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char $ac_func();
15327 int main() {
15329 /* The GNU C library defines this for functions which it implements
15330 to always fail with ENOSYS. Some functions are actually named
15331 something starting with __ and the normal name is an alias. */
15332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15333 choke me
15334 #else
15335 $ac_func();
15336 #endif
15338 ; return 0; }
15340 if { (eval echo configure:15341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15341 rm -rf conftest*
15342 eval "ac_cv_func_$ac_func=yes"
15343 else
15344 echo "configure: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 rm -rf conftest*
15347 eval "ac_cv_func_$ac_func=no"
15349 rm -f conftest*
15352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15355 cat >> confdefs.h <<EOF
15356 #define $ac_tr_func 1
15359 else
15360 echo "$ac_t""no" 1>&6
15362 done
15364 else
15366 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15367 echo "configure:15368: checking for _hypotl declaration" >&5
15368 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15369 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15370 echo $ac_n "(cached) $ac_c" 1>&6
15371 else
15374 ac_ext=C
15375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376 ac_cpp='$CXXCPP $CPPFLAGS'
15377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379 cross_compiling=$ac_cv_prog_cxx_cross
15381 cat > conftest.$ac_ext <<EOF
15382 #line 15383 "configure"
15383 #include "confdefs.h"
15384 #include <math.h>
15385 int main() {
15386 _hypotl(0, 0);
15387 ; return 0; }
15389 if { (eval echo configure:15390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15390 rm -rf conftest*
15391 glibcpp_cv_func__hypotl_use=yes
15392 else
15393 echo "configure: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15395 rm -rf conftest*
15396 glibcpp_cv_func__hypotl_use=no
15398 rm -f conftest*
15399 ac_ext=c
15400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15401 ac_cpp='$CPP $CPPFLAGS'
15402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15404 cross_compiling=$ac_cv_prog_cc_cross
15410 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15412 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15413 for ac_func in _hypotl
15415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15416 echo "configure:15417: checking for $ac_func" >&5
15417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func(); below. */
15425 #include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char $ac_func();
15431 int main() {
15433 /* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437 choke me
15438 #else
15439 $ac_func();
15440 #endif
15442 ; return 0; }
15444 if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15445 rm -rf conftest*
15446 eval "ac_cv_func_$ac_func=yes"
15447 else
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
15451 eval "ac_cv_func_$ac_func=no"
15453 rm -f conftest*
15456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15459 cat >> confdefs.h <<EOF
15460 #define $ac_tr_func 1
15463 else
15464 echo "$ac_t""no" 1>&6
15466 done
15473 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15474 echo "configure:15475: checking for ldexpl declaration" >&5
15475 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15476 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15477 echo $ac_n "(cached) $ac_c" 1>&6
15478 else
15481 ac_ext=C
15482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15483 ac_cpp='$CXXCPP $CPPFLAGS'
15484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15486 cross_compiling=$ac_cv_prog_cxx_cross
15488 cat > conftest.$ac_ext <<EOF
15489 #line 15490 "configure"
15490 #include "confdefs.h"
15491 #include <math.h>
15492 int main() {
15493 ldexpl(0, 0);
15494 ; return 0; }
15496 if { (eval echo configure:15497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497 rm -rf conftest*
15498 glibcpp_cv_func_ldexpl_use=yes
15499 else
15500 echo "configure: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 rm -rf conftest*
15503 glibcpp_cv_func_ldexpl_use=no
15505 rm -f conftest*
15506 ac_ext=c
15507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15511 cross_compiling=$ac_cv_prog_cc_cross
15517 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15519 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15520 for ac_func in ldexpl
15522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15523 echo "configure:15524: checking for $ac_func" >&5
15524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15525 echo $ac_n "(cached) $ac_c" 1>&6
15526 else
15527 cat > conftest.$ac_ext <<EOF
15528 #line 15529 "configure"
15529 #include "confdefs.h"
15530 /* System header to define __stub macros and hopefully few prototypes,
15531 which can conflict with char $ac_func(); below. */
15532 #include <assert.h>
15533 /* Override any gcc2 internal prototype to avoid an error. */
15534 /* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536 char $ac_func();
15538 int main() {
15540 /* The GNU C library defines this for functions which it implements
15541 to always fail with ENOSYS. Some functions are actually named
15542 something starting with __ and the normal name is an alias. */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 choke me
15545 #else
15546 $ac_func();
15547 #endif
15549 ; return 0; }
15551 if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15552 rm -rf conftest*
15553 eval "ac_cv_func_$ac_func=yes"
15554 else
15555 echo "configure: failed program was:" >&5
15556 cat conftest.$ac_ext >&5
15557 rm -rf conftest*
15558 eval "ac_cv_func_$ac_func=no"
15560 rm -f conftest*
15563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15564 echo "$ac_t""yes" 1>&6
15565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15566 cat >> confdefs.h <<EOF
15567 #define $ac_tr_func 1
15570 else
15571 echo "$ac_t""no" 1>&6
15573 done
15575 else
15577 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15578 echo "configure:15579: checking for _ldexpl declaration" >&5
15579 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15580 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15585 ac_ext=C
15586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15587 ac_cpp='$CXXCPP $CPPFLAGS'
15588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15590 cross_compiling=$ac_cv_prog_cxx_cross
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15595 #include <math.h>
15596 int main() {
15597 _ldexpl(0, 0);
15598 ; return 0; }
15600 if { (eval echo configure:15601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15601 rm -rf conftest*
15602 glibcpp_cv_func__ldexpl_use=yes
15603 else
15604 echo "configure: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 rm -rf conftest*
15607 glibcpp_cv_func__ldexpl_use=no
15609 rm -f conftest*
15610 ac_ext=c
15611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15615 cross_compiling=$ac_cv_prog_cc_cross
15621 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15623 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15624 for ac_func in _ldexpl
15626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15627 echo "configure:15628: checking for $ac_func" >&5
15628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15629 echo $ac_n "(cached) $ac_c" 1>&6
15630 else
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func(); below. */
15636 #include <assert.h>
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15640 char $ac_func();
15642 int main() {
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15648 choke me
15649 #else
15650 $ac_func();
15651 #endif
15653 ; return 0; }
15655 if { (eval echo configure:15656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15656 rm -rf conftest*
15657 eval "ac_cv_func_$ac_func=yes"
15658 else
15659 echo "configure: failed program was:" >&5
15660 cat conftest.$ac_ext >&5
15661 rm -rf conftest*
15662 eval "ac_cv_func_$ac_func=no"
15664 rm -f conftest*
15667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15668 echo "$ac_t""yes" 1>&6
15669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15670 cat >> confdefs.h <<EOF
15671 #define $ac_tr_func 1
15674 else
15675 echo "$ac_t""no" 1>&6
15677 done
15684 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15685 echo "configure:15686: checking for logl declaration" >&5
15686 if test x${glibcpp_cv_func_logl_use+set} != xset; then
15687 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15688 echo $ac_n "(cached) $ac_c" 1>&6
15689 else
15692 ac_ext=C
15693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15694 ac_cpp='$CXXCPP $CPPFLAGS'
15695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15697 cross_compiling=$ac_cv_prog_cxx_cross
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 #include <math.h>
15703 #ifdef HAVE_IEEEFP_H
15704 #include <ieeefp.h>
15705 #endif
15707 int main() {
15708 logl(0);
15709 ; return 0; }
15711 if { (eval echo configure:15712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15712 rm -rf conftest*
15713 glibcpp_cv_func_logl_use=yes
15714 else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718 glibcpp_cv_func_logl_use=no
15720 rm -f conftest*
15721 ac_ext=c
15722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15723 ac_cpp='$CPP $CPPFLAGS'
15724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15726 cross_compiling=$ac_cv_prog_cc_cross
15732 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15734 if test x$glibcpp_cv_func_logl_use = x"yes"; then
15735 for ac_func in logl
15737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15738 echo "configure:15739: checking for $ac_func" >&5
15739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15740 echo $ac_n "(cached) $ac_c" 1>&6
15741 else
15742 cat > conftest.$ac_ext <<EOF
15743 #line 15744 "configure"
15744 #include "confdefs.h"
15745 /* System header to define __stub macros and hopefully few prototypes,
15746 which can conflict with char $ac_func(); below. */
15747 #include <assert.h>
15748 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char $ac_func();
15753 int main() {
15755 /* The GNU C library defines this for functions which it implements
15756 to always fail with ENOSYS. Some functions are actually named
15757 something starting with __ and the normal name is an alias. */
15758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15759 choke me
15760 #else
15761 $ac_func();
15762 #endif
15764 ; return 0; }
15766 if { (eval echo configure:15767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15767 rm -rf conftest*
15768 eval "ac_cv_func_$ac_func=yes"
15769 else
15770 echo "configure: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 rm -rf conftest*
15773 eval "ac_cv_func_$ac_func=no"
15775 rm -f conftest*
15778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15779 echo "$ac_t""yes" 1>&6
15780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15781 cat >> confdefs.h <<EOF
15782 #define $ac_tr_func 1
15785 else
15786 echo "$ac_t""no" 1>&6
15788 done
15790 else
15792 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15793 echo "configure:15794: checking for _logl declaration" >&5
15794 if test x${glibcpp_cv_func__logl_use+set} != xset; then
15795 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15797 else
15800 ac_ext=C
15801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15802 ac_cpp='$CXXCPP $CPPFLAGS'
15803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15805 cross_compiling=$ac_cv_prog_cxx_cross
15807 cat > conftest.$ac_ext <<EOF
15808 #line 15809 "configure"
15809 #include "confdefs.h"
15810 #include <math.h>
15811 #ifdef HAVE_IEEEFP_H
15812 #include <ieeefp.h>
15813 #endif
15815 int main() {
15816 _logl(0);
15817 ; return 0; }
15819 if { (eval echo configure:15820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15820 rm -rf conftest*
15821 glibcpp_cv_func__logl_use=yes
15822 else
15823 echo "configure: failed program was:" >&5
15824 cat conftest.$ac_ext >&5
15825 rm -rf conftest*
15826 glibcpp_cv_func__logl_use=no
15828 rm -f conftest*
15829 ac_ext=c
15830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15831 ac_cpp='$CPP $CPPFLAGS'
15832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15834 cross_compiling=$ac_cv_prog_cc_cross
15840 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15842 if test x$glibcpp_cv_func__logl_use = x"yes"; then
15843 for ac_func in _logl
15845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15846 echo "configure:15847: checking for $ac_func" >&5
15847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15848 echo $ac_n "(cached) $ac_c" 1>&6
15849 else
15850 cat > conftest.$ac_ext <<EOF
15851 #line 15852 "configure"
15852 #include "confdefs.h"
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func(); below. */
15855 #include <assert.h>
15856 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15859 char $ac_func();
15861 int main() {
15863 /* The GNU C library defines this for functions which it implements
15864 to always fail with ENOSYS. Some functions are actually named
15865 something starting with __ and the normal name is an alias. */
15866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15867 choke me
15868 #else
15869 $ac_func();
15870 #endif
15872 ; return 0; }
15874 if { (eval echo configure:15875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15875 rm -rf conftest*
15876 eval "ac_cv_func_$ac_func=yes"
15877 else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
15881 eval "ac_cv_func_$ac_func=no"
15883 rm -f conftest*
15886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
15888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15889 cat >> confdefs.h <<EOF
15890 #define $ac_tr_func 1
15893 else
15894 echo "$ac_t""no" 1>&6
15896 done
15903 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15904 echo "configure:15905: checking for log10l declaration" >&5
15905 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15906 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15907 echo $ac_n "(cached) $ac_c" 1>&6
15908 else
15911 ac_ext=C
15912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15913 ac_cpp='$CXXCPP $CPPFLAGS'
15914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15916 cross_compiling=$ac_cv_prog_cxx_cross
15918 cat > conftest.$ac_ext <<EOF
15919 #line 15920 "configure"
15920 #include "confdefs.h"
15921 #include <math.h>
15922 #ifdef HAVE_IEEEFP_H
15923 #include <ieeefp.h>
15924 #endif
15926 int main() {
15927 log10l(0);
15928 ; return 0; }
15930 if { (eval echo configure:15931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15931 rm -rf conftest*
15932 glibcpp_cv_func_log10l_use=yes
15933 else
15934 echo "configure: failed program was:" >&5
15935 cat conftest.$ac_ext >&5
15936 rm -rf conftest*
15937 glibcpp_cv_func_log10l_use=no
15939 rm -f conftest*
15940 ac_ext=c
15941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15942 ac_cpp='$CPP $CPPFLAGS'
15943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15945 cross_compiling=$ac_cv_prog_cc_cross
15951 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15953 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15954 for ac_func in log10l
15956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15957 echo "configure:15958: checking for $ac_func" >&5
15958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15959 echo $ac_n "(cached) $ac_c" 1>&6
15960 else
15961 cat > conftest.$ac_ext <<EOF
15962 #line 15963 "configure"
15963 #include "confdefs.h"
15964 /* System header to define __stub macros and hopefully few prototypes,
15965 which can conflict with char $ac_func(); below. */
15966 #include <assert.h>
15967 /* Override any gcc2 internal prototype to avoid an error. */
15968 /* We use char because int might match the return type of a gcc2
15969 builtin and then its argument prototype would still apply. */
15970 char $ac_func();
15972 int main() {
15974 /* The GNU C library defines this for functions which it implements
15975 to always fail with ENOSYS. Some functions are actually named
15976 something starting with __ and the normal name is an alias. */
15977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15978 choke me
15979 #else
15980 $ac_func();
15981 #endif
15983 ; return 0; }
15985 if { (eval echo configure:15986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15986 rm -rf conftest*
15987 eval "ac_cv_func_$ac_func=yes"
15988 else
15989 echo "configure: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 rm -rf conftest*
15992 eval "ac_cv_func_$ac_func=no"
15994 rm -f conftest*
15997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15998 echo "$ac_t""yes" 1>&6
15999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16000 cat >> confdefs.h <<EOF
16001 #define $ac_tr_func 1
16004 else
16005 echo "$ac_t""no" 1>&6
16007 done
16009 else
16011 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16012 echo "configure:16013: checking for _log10l declaration" >&5
16013 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16014 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16015 echo $ac_n "(cached) $ac_c" 1>&6
16016 else
16019 ac_ext=C
16020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16024 cross_compiling=$ac_cv_prog_cxx_cross
16026 cat > conftest.$ac_ext <<EOF
16027 #line 16028 "configure"
16028 #include "confdefs.h"
16029 #include <math.h>
16030 #ifdef HAVE_IEEEFP_H
16031 #include <ieeefp.h>
16032 #endif
16034 int main() {
16035 _log10l(0);
16036 ; return 0; }
16038 if { (eval echo configure:16039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16039 rm -rf conftest*
16040 glibcpp_cv_func__log10l_use=yes
16041 else
16042 echo "configure: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16044 rm -rf conftest*
16045 glibcpp_cv_func__log10l_use=no
16047 rm -f conftest*
16048 ac_ext=c
16049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16050 ac_cpp='$CPP $CPPFLAGS'
16051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16053 cross_compiling=$ac_cv_prog_cc_cross
16059 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16061 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16062 for ac_func in _log10l
16064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16065 echo "configure:16066: checking for $ac_func" >&5
16066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16068 else
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 /* System header to define __stub macros and hopefully few prototypes,
16073 which can conflict with char $ac_func(); below. */
16074 #include <assert.h>
16075 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char $ac_func();
16080 int main() {
16082 /* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 choke me
16087 #else
16088 $ac_func();
16089 #endif
16091 ; return 0; }
16093 if { (eval echo configure:16094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=yes"
16096 else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 eval "ac_cv_func_$ac_func=no"
16102 rm -f conftest*
16105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16108 cat >> confdefs.h <<EOF
16109 #define $ac_tr_func 1
16112 else
16113 echo "$ac_t""no" 1>&6
16115 done
16122 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16123 echo "configure:16124: checking for modfl declaration" >&5
16124 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16125 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16126 echo $ac_n "(cached) $ac_c" 1>&6
16127 else
16130 ac_ext=C
16131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16132 ac_cpp='$CXXCPP $CPPFLAGS'
16133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16135 cross_compiling=$ac_cv_prog_cxx_cross
16137 cat > conftest.$ac_ext <<EOF
16138 #line 16139 "configure"
16139 #include "confdefs.h"
16140 #include <math.h>
16141 int main() {
16142 modfl(0, 0);
16143 ; return 0; }
16145 if { (eval echo configure:16146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16146 rm -rf conftest*
16147 glibcpp_cv_func_modfl_use=yes
16148 else
16149 echo "configure: failed program was:" >&5
16150 cat conftest.$ac_ext >&5
16151 rm -rf conftest*
16152 glibcpp_cv_func_modfl_use=no
16154 rm -f conftest*
16155 ac_ext=c
16156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16157 ac_cpp='$CPP $CPPFLAGS'
16158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16160 cross_compiling=$ac_cv_prog_cc_cross
16166 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16168 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16169 for ac_func in modfl
16171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16172 echo "configure:16173: checking for $ac_func" >&5
16173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16175 else
16176 cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 /* System header to define __stub macros and hopefully few prototypes,
16180 which can conflict with char $ac_func(); below. */
16181 #include <assert.h>
16182 /* Override any gcc2 internal prototype to avoid an error. */
16183 /* We use char because int might match the return type of a gcc2
16184 builtin and then its argument prototype would still apply. */
16185 char $ac_func();
16187 int main() {
16189 /* The GNU C library defines this for functions which it implements
16190 to always fail with ENOSYS. Some functions are actually named
16191 something starting with __ and the normal name is an alias. */
16192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16193 choke me
16194 #else
16195 $ac_func();
16196 #endif
16198 ; return 0; }
16200 if { (eval echo configure:16201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16201 rm -rf conftest*
16202 eval "ac_cv_func_$ac_func=yes"
16203 else
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16206 rm -rf conftest*
16207 eval "ac_cv_func_$ac_func=no"
16209 rm -f conftest*
16212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16213 echo "$ac_t""yes" 1>&6
16214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16215 cat >> confdefs.h <<EOF
16216 #define $ac_tr_func 1
16219 else
16220 echo "$ac_t""no" 1>&6
16222 done
16224 else
16226 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16227 echo "configure:16228: checking for _modfl declaration" >&5
16228 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16229 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16230 echo $ac_n "(cached) $ac_c" 1>&6
16231 else
16234 ac_ext=C
16235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16236 ac_cpp='$CXXCPP $CPPFLAGS'
16237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16239 cross_compiling=$ac_cv_prog_cxx_cross
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16244 #include <math.h>
16245 int main() {
16246 _modfl(0, 0);
16247 ; return 0; }
16249 if { (eval echo configure:16250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16250 rm -rf conftest*
16251 glibcpp_cv_func__modfl_use=yes
16252 else
16253 echo "configure: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16255 rm -rf conftest*
16256 glibcpp_cv_func__modfl_use=no
16258 rm -f conftest*
16259 ac_ext=c
16260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16261 ac_cpp='$CPP $CPPFLAGS'
16262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16264 cross_compiling=$ac_cv_prog_cc_cross
16270 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16272 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16273 for ac_func in _modfl
16275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16276 echo "configure:16277: checking for $ac_func" >&5
16277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279 else
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16283 /* System header to define __stub macros and hopefully few prototypes,
16284 which can conflict with char $ac_func(); below. */
16285 #include <assert.h>
16286 /* Override any gcc2 internal prototype to avoid an error. */
16287 /* We use char because int might match the return type of a gcc2
16288 builtin and then its argument prototype would still apply. */
16289 char $ac_func();
16291 int main() {
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297 choke me
16298 #else
16299 $ac_func();
16300 #endif
16302 ; return 0; }
16304 if { (eval echo configure:16305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16305 rm -rf conftest*
16306 eval "ac_cv_func_$ac_func=yes"
16307 else
16308 echo "configure: failed program was:" >&5
16309 cat conftest.$ac_ext >&5
16310 rm -rf conftest*
16311 eval "ac_cv_func_$ac_func=no"
16313 rm -f conftest*
16316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16317 echo "$ac_t""yes" 1>&6
16318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16319 cat >> confdefs.h <<EOF
16320 #define $ac_tr_func 1
16323 else
16324 echo "$ac_t""no" 1>&6
16326 done
16333 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16334 echo "configure:16335: checking for powl declaration" >&5
16335 if test x${glibcpp_cv_func_powl_use+set} != xset; then
16336 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16337 echo $ac_n "(cached) $ac_c" 1>&6
16338 else
16341 ac_ext=C
16342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16343 ac_cpp='$CXXCPP $CPPFLAGS'
16344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346 cross_compiling=$ac_cv_prog_cxx_cross
16348 cat > conftest.$ac_ext <<EOF
16349 #line 16350 "configure"
16350 #include "confdefs.h"
16351 #include <math.h>
16352 int main() {
16353 powl(0, 0);
16354 ; return 0; }
16356 if { (eval echo configure:16357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16357 rm -rf conftest*
16358 glibcpp_cv_func_powl_use=yes
16359 else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
16363 glibcpp_cv_func_powl_use=no
16365 rm -f conftest*
16366 ac_ext=c
16367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16371 cross_compiling=$ac_cv_prog_cc_cross
16377 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16379 if test x$glibcpp_cv_func_powl_use = x"yes"; then
16380 for ac_func in powl
16382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16383 echo "configure:16384: checking for $ac_func" >&5
16384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16386 else
16387 cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func(); below. */
16392 #include <assert.h>
16393 /* Override any gcc2 internal prototype to avoid an error. */
16394 /* We use char because int might match the return type of a gcc2
16395 builtin and then its argument prototype would still apply. */
16396 char $ac_func();
16398 int main() {
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 choke me
16405 #else
16406 $ac_func();
16407 #endif
16409 ; return 0; }
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16412 rm -rf conftest*
16413 eval "ac_cv_func_$ac_func=yes"
16414 else
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16417 rm -rf conftest*
16418 eval "ac_cv_func_$ac_func=no"
16420 rm -f conftest*
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426 cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16430 else
16431 echo "$ac_t""no" 1>&6
16433 done
16435 else
16437 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16438 echo "configure:16439: checking for _powl declaration" >&5
16439 if test x${glibcpp_cv_func__powl_use+set} != xset; then
16440 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16441 echo $ac_n "(cached) $ac_c" 1>&6
16442 else
16445 ac_ext=C
16446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16447 ac_cpp='$CXXCPP $CPPFLAGS'
16448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16450 cross_compiling=$ac_cv_prog_cxx_cross
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16455 #include <math.h>
16456 int main() {
16457 _powl(0, 0);
16458 ; return 0; }
16460 if { (eval echo configure:16461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16461 rm -rf conftest*
16462 glibcpp_cv_func__powl_use=yes
16463 else
16464 echo "configure: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 rm -rf conftest*
16467 glibcpp_cv_func__powl_use=no
16469 rm -f conftest*
16470 ac_ext=c
16471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16472 ac_cpp='$CPP $CPPFLAGS'
16473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16475 cross_compiling=$ac_cv_prog_cc_cross
16481 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16483 if test x$glibcpp_cv_func__powl_use = x"yes"; then
16484 for ac_func in _powl
16486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16487 echo "configure:16488: checking for $ac_func" >&5
16488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16489 echo $ac_n "(cached) $ac_c" 1>&6
16490 else
16491 cat > conftest.$ac_ext <<EOF
16492 #line 16493 "configure"
16493 #include "confdefs.h"
16494 /* System header to define __stub macros and hopefully few prototypes,
16495 which can conflict with char $ac_func(); below. */
16496 #include <assert.h>
16497 /* Override any gcc2 internal prototype to avoid an error. */
16498 /* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
16500 char $ac_func();
16502 int main() {
16504 /* The GNU C library defines this for functions which it implements
16505 to always fail with ENOSYS. Some functions are actually named
16506 something starting with __ and the normal name is an alias. */
16507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16508 choke me
16509 #else
16510 $ac_func();
16511 #endif
16513 ; return 0; }
16515 if { (eval echo configure:16516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16516 rm -rf conftest*
16517 eval "ac_cv_func_$ac_func=yes"
16518 else
16519 echo "configure: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16521 rm -rf conftest*
16522 eval "ac_cv_func_$ac_func=no"
16524 rm -f conftest*
16527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16528 echo "$ac_t""yes" 1>&6
16529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16530 cat >> confdefs.h <<EOF
16531 #define $ac_tr_func 1
16534 else
16535 echo "$ac_t""no" 1>&6
16537 done
16544 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16545 echo "configure:16546: checking for sqrtl declaration" >&5
16546 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16547 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16549 else
16552 ac_ext=C
16553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16554 ac_cpp='$CXXCPP $CPPFLAGS'
16555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16557 cross_compiling=$ac_cv_prog_cxx_cross
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16562 #include <math.h>
16563 #ifdef HAVE_IEEEFP_H
16564 #include <ieeefp.h>
16565 #endif
16567 int main() {
16568 sqrtl(0);
16569 ; return 0; }
16571 if { (eval echo configure:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16572 rm -rf conftest*
16573 glibcpp_cv_func_sqrtl_use=yes
16574 else
16575 echo "configure: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 rm -rf conftest*
16578 glibcpp_cv_func_sqrtl_use=no
16580 rm -f conftest*
16581 ac_ext=c
16582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16586 cross_compiling=$ac_cv_prog_cc_cross
16592 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16594 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16595 for ac_func in sqrtl
16597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16598 echo "configure:16599: checking for $ac_func" >&5
16599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16601 else
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 /* System header to define __stub macros and hopefully few prototypes,
16606 which can conflict with char $ac_func(); below. */
16607 #include <assert.h>
16608 /* Override any gcc2 internal prototype to avoid an error. */
16609 /* We use char because int might match the return type of a gcc2
16610 builtin and then its argument prototype would still apply. */
16611 char $ac_func();
16613 int main() {
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16619 choke me
16620 #else
16621 $ac_func();
16622 #endif
16624 ; return 0; }
16626 if { (eval echo configure:16627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16627 rm -rf conftest*
16628 eval "ac_cv_func_$ac_func=yes"
16629 else
16630 echo "configure: failed program was:" >&5
16631 cat conftest.$ac_ext >&5
16632 rm -rf conftest*
16633 eval "ac_cv_func_$ac_func=no"
16635 rm -f conftest*
16638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16639 echo "$ac_t""yes" 1>&6
16640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16641 cat >> confdefs.h <<EOF
16642 #define $ac_tr_func 1
16645 else
16646 echo "$ac_t""no" 1>&6
16648 done
16650 else
16652 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16653 echo "configure:16654: checking for _sqrtl declaration" >&5
16654 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16655 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16660 ac_ext=C
16661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16662 ac_cpp='$CXXCPP $CPPFLAGS'
16663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16665 cross_compiling=$ac_cv_prog_cxx_cross
16667 cat > conftest.$ac_ext <<EOF
16668 #line 16669 "configure"
16669 #include "confdefs.h"
16670 #include <math.h>
16671 #ifdef HAVE_IEEEFP_H
16672 #include <ieeefp.h>
16673 #endif
16675 int main() {
16676 _sqrtl(0);
16677 ; return 0; }
16679 if { (eval echo configure:16680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16680 rm -rf conftest*
16681 glibcpp_cv_func__sqrtl_use=yes
16682 else
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16685 rm -rf conftest*
16686 glibcpp_cv_func__sqrtl_use=no
16688 rm -f conftest*
16689 ac_ext=c
16690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16691 ac_cpp='$CPP $CPPFLAGS'
16692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16694 cross_compiling=$ac_cv_prog_cc_cross
16700 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16702 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16703 for ac_func in _sqrtl
16705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16706 echo "configure:16707: checking for $ac_func" >&5
16707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16708 echo $ac_n "(cached) $ac_c" 1>&6
16709 else
16710 cat > conftest.$ac_ext <<EOF
16711 #line 16712 "configure"
16712 #include "confdefs.h"
16713 /* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func(); below. */
16715 #include <assert.h>
16716 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719 char $ac_func();
16721 int main() {
16723 /* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16727 choke me
16728 #else
16729 $ac_func();
16730 #endif
16732 ; return 0; }
16734 if { (eval echo configure:16735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16735 rm -rf conftest*
16736 eval "ac_cv_func_$ac_func=yes"
16737 else
16738 echo "configure: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 rm -rf conftest*
16741 eval "ac_cv_func_$ac_func=no"
16743 rm -f conftest*
16746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16747 echo "$ac_t""yes" 1>&6
16748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16749 cat >> confdefs.h <<EOF
16750 #define $ac_tr_func 1
16753 else
16754 echo "$ac_t""no" 1>&6
16756 done
16763 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16764 echo "configure:16765: checking for sincosl declaration" >&5
16765 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16766 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16768 else
16771 ac_ext=C
16772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16773 ac_cpp='$CXXCPP $CPPFLAGS'
16774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16776 cross_compiling=$ac_cv_prog_cxx_cross
16778 cat > conftest.$ac_ext <<EOF
16779 #line 16780 "configure"
16780 #include "confdefs.h"
16781 #include <math.h>
16782 int main() {
16783 sincosl(0, 0, 0);
16784 ; return 0; }
16786 if { (eval echo configure:16787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16787 rm -rf conftest*
16788 glibcpp_cv_func_sincosl_use=yes
16789 else
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 rm -rf conftest*
16793 glibcpp_cv_func_sincosl_use=no
16795 rm -f conftest*
16796 ac_ext=c
16797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16798 ac_cpp='$CPP $CPPFLAGS'
16799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16801 cross_compiling=$ac_cv_prog_cc_cross
16807 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16809 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16810 for ac_func in sincosl
16812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16813 echo "configure:16814: checking for $ac_func" >&5
16814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16815 echo $ac_n "(cached) $ac_c" 1>&6
16816 else
16817 cat > conftest.$ac_ext <<EOF
16818 #line 16819 "configure"
16819 #include "confdefs.h"
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func(); below. */
16822 #include <assert.h>
16823 /* Override any gcc2 internal prototype to avoid an error. */
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16826 char $ac_func();
16828 int main() {
16830 /* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16834 choke me
16835 #else
16836 $ac_func();
16837 #endif
16839 ; return 0; }
16841 if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16842 rm -rf conftest*
16843 eval "ac_cv_func_$ac_func=yes"
16844 else
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 rm -rf conftest*
16848 eval "ac_cv_func_$ac_func=no"
16850 rm -f conftest*
16853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16854 echo "$ac_t""yes" 1>&6
16855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16856 cat >> confdefs.h <<EOF
16857 #define $ac_tr_func 1
16860 else
16861 echo "$ac_t""no" 1>&6
16863 done
16865 else
16867 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16868 echo "configure:16869: checking for _sincosl declaration" >&5
16869 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16870 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16871 echo $ac_n "(cached) $ac_c" 1>&6
16872 else
16875 ac_ext=C
16876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877 ac_cpp='$CXXCPP $CPPFLAGS'
16878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880 cross_compiling=$ac_cv_prog_cxx_cross
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885 #include <math.h>
16886 int main() {
16887 _sincosl(0, 0, 0);
16888 ; return 0; }
16890 if { (eval echo configure:16891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16891 rm -rf conftest*
16892 glibcpp_cv_func__sincosl_use=yes
16893 else
16894 echo "configure: failed program was:" >&5
16895 cat conftest.$ac_ext >&5
16896 rm -rf conftest*
16897 glibcpp_cv_func__sincosl_use=no
16899 rm -f conftest*
16900 ac_ext=c
16901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16902 ac_cpp='$CPP $CPPFLAGS'
16903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16905 cross_compiling=$ac_cv_prog_cc_cross
16911 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16913 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16914 for ac_func in _sincosl
16916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16917 echo "configure:16918: checking for $ac_func" >&5
16918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16919 echo $ac_n "(cached) $ac_c" 1>&6
16920 else
16921 cat > conftest.$ac_ext <<EOF
16922 #line 16923 "configure"
16923 #include "confdefs.h"
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func(); below. */
16926 #include <assert.h>
16927 /* Override any gcc2 internal prototype to avoid an error. */
16928 /* We use char because int might match the return type of a gcc2
16929 builtin and then its argument prototype would still apply. */
16930 char $ac_func();
16932 int main() {
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 choke me
16939 #else
16940 $ac_func();
16941 #endif
16943 ; return 0; }
16945 if { (eval echo configure:16946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16946 rm -rf conftest*
16947 eval "ac_cv_func_$ac_func=yes"
16948 else
16949 echo "configure: failed program was:" >&5
16950 cat conftest.$ac_ext >&5
16951 rm -rf conftest*
16952 eval "ac_cv_func_$ac_func=no"
16954 rm -f conftest*
16957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16958 echo "$ac_t""yes" 1>&6
16959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16960 cat >> confdefs.h <<EOF
16961 #define $ac_tr_func 1
16964 else
16965 echo "$ac_t""no" 1>&6
16967 done
16974 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16975 echo "configure:16976: checking for finitel declaration" >&5
16976 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16977 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16978 echo $ac_n "(cached) $ac_c" 1>&6
16979 else
16982 ac_ext=C
16983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16987 cross_compiling=$ac_cv_prog_cxx_cross
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 #include <math.h>
16993 #ifdef HAVE_IEEEFP_H
16994 #include <ieeefp.h>
16995 #endif
16997 int main() {
16998 finitel(0);
16999 ; return 0; }
17001 if { (eval echo configure:17002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17002 rm -rf conftest*
17003 glibcpp_cv_func_finitel_use=yes
17004 else
17005 echo "configure: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17007 rm -rf conftest*
17008 glibcpp_cv_func_finitel_use=no
17010 rm -f conftest*
17011 ac_ext=c
17012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17013 ac_cpp='$CPP $CPPFLAGS'
17014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17016 cross_compiling=$ac_cv_prog_cc_cross
17022 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17024 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17025 for ac_func in finitel
17027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17028 echo "configure:17029: checking for $ac_func" >&5
17029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17030 echo $ac_n "(cached) $ac_c" 1>&6
17031 else
17032 cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func(); below. */
17037 #include <assert.h>
17038 /* Override any gcc2 internal prototype to avoid an error. */
17039 /* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041 char $ac_func();
17043 int main() {
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17049 choke me
17050 #else
17051 $ac_func();
17052 #endif
17054 ; return 0; }
17056 if { (eval echo configure:17057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17057 rm -rf conftest*
17058 eval "ac_cv_func_$ac_func=yes"
17059 else
17060 echo "configure: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17062 rm -rf conftest*
17063 eval "ac_cv_func_$ac_func=no"
17065 rm -f conftest*
17068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17069 echo "$ac_t""yes" 1>&6
17070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17071 cat >> confdefs.h <<EOF
17072 #define $ac_tr_func 1
17075 else
17076 echo "$ac_t""no" 1>&6
17078 done
17080 else
17082 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17083 echo "configure:17084: checking for _finitel declaration" >&5
17084 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17085 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087 else
17090 ac_ext=C
17091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17092 ac_cpp='$CXXCPP $CPPFLAGS'
17093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17095 cross_compiling=$ac_cv_prog_cxx_cross
17097 cat > conftest.$ac_ext <<EOF
17098 #line 17099 "configure"
17099 #include "confdefs.h"
17100 #include <math.h>
17101 #ifdef HAVE_IEEEFP_H
17102 #include <ieeefp.h>
17103 #endif
17105 int main() {
17106 _finitel(0);
17107 ; return 0; }
17109 if { (eval echo configure:17110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17110 rm -rf conftest*
17111 glibcpp_cv_func__finitel_use=yes
17112 else
17113 echo "configure: failed program was:" >&5
17114 cat conftest.$ac_ext >&5
17115 rm -rf conftest*
17116 glibcpp_cv_func__finitel_use=no
17118 rm -f conftest*
17119 ac_ext=c
17120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17121 ac_cpp='$CPP $CPPFLAGS'
17122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17124 cross_compiling=$ac_cv_prog_cc_cross
17130 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17132 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17133 for ac_func in _finitel
17135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17136 echo "configure:17137: checking for $ac_func" >&5
17137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17138 echo $ac_n "(cached) $ac_c" 1>&6
17139 else
17140 cat > conftest.$ac_ext <<EOF
17141 #line 17142 "configure"
17142 #include "confdefs.h"
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char $ac_func(); below. */
17145 #include <assert.h>
17146 /* Override any gcc2 internal prototype to avoid an error. */
17147 /* We use char because int might match the return type of a gcc2
17148 builtin and then its argument prototype would still apply. */
17149 char $ac_func();
17151 int main() {
17153 /* The GNU C library defines this for functions which it implements
17154 to always fail with ENOSYS. Some functions are actually named
17155 something starting with __ and the normal name is an alias. */
17156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17157 choke me
17158 #else
17159 $ac_func();
17160 #endif
17162 ; return 0; }
17164 if { (eval echo configure:17165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17165 rm -rf conftest*
17166 eval "ac_cv_func_$ac_func=yes"
17167 else
17168 echo "configure: failed program was:" >&5
17169 cat conftest.$ac_ext >&5
17170 rm -rf conftest*
17171 eval "ac_cv_func_$ac_func=no"
17173 rm -f conftest*
17176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17177 echo "$ac_t""yes" 1>&6
17178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17179 cat >> confdefs.h <<EOF
17180 #define $ac_tr_func 1
17183 else
17184 echo "$ac_t""no" 1>&6
17186 done
17194 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17195 echo "configure:17196: checking for _float trig functions" >&5
17196 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17197 echo $ac_n "(cached) $ac_c" 1>&6
17198 else
17201 ac_ext=C
17202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17203 ac_cpp='$CXXCPP $CPPFLAGS'
17204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17206 cross_compiling=$ac_cv_prog_cxx_cross
17208 cat > conftest.$ac_ext <<EOF
17209 #line 17210 "configure"
17210 #include "confdefs.h"
17211 #include <math.h>
17212 int main() {
17213 `for x in _acosf _asinf _atanf \
17214 _cosf _sinf _tanf \
17215 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
17216 ; return 0; }
17218 if { (eval echo configure:17219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17219 rm -rf conftest*
17220 glibcpp_cv_func__float_trig_use=yes
17221 else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 glibcpp_cv_func__float_trig_use=no
17227 rm -f conftest*
17228 ac_ext=c
17229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17230 ac_cpp='$CPP $CPPFLAGS'
17231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17233 cross_compiling=$ac_cv_prog_cc_cross
17237 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17238 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17239 for ac_func in _acosf _asinf _atanf \
17240 _cosf _sinf _tanf \
17241 _coshf _sinhf _tanhf
17243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17244 echo "configure:17245: checking for $ac_func" >&5
17245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17246 echo $ac_n "(cached) $ac_c" 1>&6
17247 else
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char $ac_func(); below. */
17253 #include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error. */
17255 /* We use char because int might match the return type of a gcc2
17256 builtin and then its argument prototype would still apply. */
17257 char $ac_func();
17259 int main() {
17261 /* The GNU C library defines this for functions which it implements
17262 to always fail with ENOSYS. Some functions are actually named
17263 something starting with __ and the normal name is an alias. */
17264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17265 choke me
17266 #else
17267 $ac_func();
17268 #endif
17270 ; return 0; }
17272 if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17273 rm -rf conftest*
17274 eval "ac_cv_func_$ac_func=yes"
17275 else
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 rm -rf conftest*
17279 eval "ac_cv_func_$ac_func=no"
17281 rm -f conftest*
17284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17285 echo "$ac_t""yes" 1>&6
17286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17287 cat >> confdefs.h <<EOF
17288 #define $ac_tr_func 1
17291 else
17292 echo "$ac_t""no" 1>&6
17294 done
17299 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17300 echo "configure:17301: checking for _float round functions" >&5
17301 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17302 echo $ac_n "(cached) $ac_c" 1>&6
17303 else
17306 ac_ext=C
17307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17311 cross_compiling=$ac_cv_prog_cxx_cross
17313 cat > conftest.$ac_ext <<EOF
17314 #line 17315 "configure"
17315 #include "confdefs.h"
17316 #include <math.h>
17317 int main() {
17318 `for x in _ceilf _floorf; do echo "$x (0);"; done`
17319 ; return 0; }
17321 if { (eval echo configure:17322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17322 rm -rf conftest*
17323 glibcpp_cv_func__float_round_use=yes
17324 else
17325 echo "configure: failed program was:" >&5
17326 cat conftest.$ac_ext >&5
17327 rm -rf conftest*
17328 glibcpp_cv_func__float_round_use=no
17330 rm -f conftest*
17331 ac_ext=c
17332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17333 ac_cpp='$CPP $CPPFLAGS'
17334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17336 cross_compiling=$ac_cv_prog_cc_cross
17340 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17341 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17342 for ac_func in _ceilf _floorf
17344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17345 echo "configure:17346: checking for $ac_func" >&5
17346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17347 echo $ac_n "(cached) $ac_c" 1>&6
17348 else
17349 cat > conftest.$ac_ext <<EOF
17350 #line 17351 "configure"
17351 #include "confdefs.h"
17352 /* System header to define __stub macros and hopefully few prototypes,
17353 which can conflict with char $ac_func(); below. */
17354 #include <assert.h>
17355 /* Override any gcc2 internal prototype to avoid an error. */
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17358 char $ac_func();
17360 int main() {
17362 /* The GNU C library defines this for functions which it implements
17363 to always fail with ENOSYS. Some functions are actually named
17364 something starting with __ and the normal name is an alias. */
17365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17366 choke me
17367 #else
17368 $ac_func();
17369 #endif
17371 ; return 0; }
17373 if { (eval echo configure:17374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17374 rm -rf conftest*
17375 eval "ac_cv_func_$ac_func=yes"
17376 else
17377 echo "configure: failed program was:" >&5
17378 cat conftest.$ac_ext >&5
17379 rm -rf conftest*
17380 eval "ac_cv_func_$ac_func=no"
17382 rm -f conftest*
17385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17386 echo "$ac_t""yes" 1>&6
17387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17388 cat >> confdefs.h <<EOF
17389 #define $ac_tr_func 1
17392 else
17393 echo "$ac_t""no" 1>&6
17395 done
17401 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17402 echo "configure:17403: checking for _long double trig functions" >&5
17403 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17404 echo $ac_n "(cached) $ac_c" 1>&6
17405 else
17408 ac_ext=C
17409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17410 ac_cpp='$CXXCPP $CPPFLAGS'
17411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17413 cross_compiling=$ac_cv_prog_cxx_cross
17415 cat > conftest.$ac_ext <<EOF
17416 #line 17417 "configure"
17417 #include "confdefs.h"
17418 #include <math.h>
17419 int main() {
17420 `for x in _acosl _asinl _atanl \
17421 _cosl _sinl _tanl \
17422 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
17423 ; return 0; }
17425 if { (eval echo configure:17426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17426 rm -rf conftest*
17427 glibcpp_cv_func__long_double_trig_use=yes
17428 else
17429 echo "configure: failed program was:" >&5
17430 cat conftest.$ac_ext >&5
17431 rm -rf conftest*
17432 glibcpp_cv_func__long_double_trig_use=no
17434 rm -f conftest*
17435 ac_ext=c
17436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17440 cross_compiling=$ac_cv_prog_cc_cross
17444 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17445 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17446 for ac_func in _acosl _asinl _atanl \
17447 _cosl _sinl _tanl \
17448 _coshl _sinhl _tanhl
17450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17451 echo "configure:17452: checking for $ac_func" >&5
17452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17453 echo $ac_n "(cached) $ac_c" 1>&6
17454 else
17455 cat > conftest.$ac_ext <<EOF
17456 #line 17457 "configure"
17457 #include "confdefs.h"
17458 /* System header to define __stub macros and hopefully few prototypes,
17459 which can conflict with char $ac_func(); below. */
17460 #include <assert.h>
17461 /* Override any gcc2 internal prototype to avoid an error. */
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17464 char $ac_func();
17466 int main() {
17468 /* The GNU C library defines this for functions which it implements
17469 to always fail with ENOSYS. Some functions are actually named
17470 something starting with __ and the normal name is an alias. */
17471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17472 choke me
17473 #else
17474 $ac_func();
17475 #endif
17477 ; return 0; }
17479 if { (eval echo configure:17480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17480 rm -rf conftest*
17481 eval "ac_cv_func_$ac_func=yes"
17482 else
17483 echo "configure: failed program was:" >&5
17484 cat conftest.$ac_ext >&5
17485 rm -rf conftest*
17486 eval "ac_cv_func_$ac_func=no"
17488 rm -f conftest*
17491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17492 echo "$ac_t""yes" 1>&6
17493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17494 cat >> confdefs.h <<EOF
17495 #define $ac_tr_func 1
17498 else
17499 echo "$ac_t""no" 1>&6
17501 done
17506 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17507 echo "configure:17508: checking for _long double round functions" >&5
17508 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
17510 else
17513 ac_ext=C
17514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17515 ac_cpp='$CXXCPP $CPPFLAGS'
17516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17518 cross_compiling=$ac_cv_prog_cxx_cross
17520 cat > conftest.$ac_ext <<EOF
17521 #line 17522 "configure"
17522 #include "confdefs.h"
17523 #include <math.h>
17524 int main() {
17525 `for x in _ceill _floorl; do echo "$x (0);"; done`
17526 ; return 0; }
17528 if { (eval echo configure:17529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17529 rm -rf conftest*
17530 glibcpp_cv_func__long_double_round_use=yes
17531 else
17532 echo "configure: failed program was:" >&5
17533 cat conftest.$ac_ext >&5
17534 rm -rf conftest*
17535 glibcpp_cv_func__long_double_round_use=no
17537 rm -f conftest*
17538 ac_ext=c
17539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17540 ac_cpp='$CPP $CPPFLAGS'
17541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17543 cross_compiling=$ac_cv_prog_cc_cross
17547 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17548 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17549 for ac_func in _ceill _floorl
17551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17552 echo "configure:17553: checking for $ac_func" >&5
17553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17554 echo $ac_n "(cached) $ac_c" 1>&6
17555 else
17556 cat > conftest.$ac_ext <<EOF
17557 #line 17558 "configure"
17558 #include "confdefs.h"
17559 /* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func(); below. */
17561 #include <assert.h>
17562 /* Override any gcc2 internal prototype to avoid an error. */
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565 char $ac_func();
17567 int main() {
17569 /* The GNU C library defines this for functions which it implements
17570 to always fail with ENOSYS. Some functions are actually named
17571 something starting with __ and the normal name is an alias. */
17572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17573 choke me
17574 #else
17575 $ac_func();
17576 #endif
17578 ; return 0; }
17580 if { (eval echo configure:17581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17581 rm -rf conftest*
17582 eval "ac_cv_func_$ac_func=yes"
17583 else
17584 echo "configure: failed program was:" >&5
17585 cat conftest.$ac_ext >&5
17586 rm -rf conftest*
17587 eval "ac_cv_func_$ac_func=no"
17589 rm -f conftest*
17592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17593 echo "$ac_t""yes" 1>&6
17594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17595 cat >> confdefs.h <<EOF
17596 #define $ac_tr_func 1
17599 else
17600 echo "$ac_t""no" 1>&6
17602 done
17607 LIBS="$ac_save_LIBS"
17608 CXXFLAGS="$ac_save_CXXFLAGS"
17611 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17612 echo "configure:17613: checking for main in -lm" >&5
17613 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617 ac_save_LIBS="$LIBS"
17618 LIBS="-lm $LIBS"
17619 cat > conftest.$ac_ext <<EOF
17620 #line 17621 "configure"
17621 #include "confdefs.h"
17623 int main() {
17624 main()
17625 ; return 0; }
17627 if { (eval echo configure:17628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17628 rm -rf conftest*
17629 eval "ac_cv_lib_$ac_lib_var=yes"
17630 else
17631 echo "configure: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17633 rm -rf conftest*
17634 eval "ac_cv_lib_$ac_lib_var=no"
17636 rm -f conftest*
17637 LIBS="$ac_save_LIBS"
17640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17641 echo "$ac_t""yes" 1>&6
17642 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17644 cat >> confdefs.h <<EOF
17645 #define $ac_tr_lib 1
17648 LIBS="-lm $LIBS"
17650 else
17651 echo "$ac_t""no" 1>&6
17654 for ac_func in nan copysignf
17656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17657 echo "configure:17658: checking for $ac_func" >&5
17658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17659 echo $ac_n "(cached) $ac_c" 1>&6
17660 else
17661 cat > conftest.$ac_ext <<EOF
17662 #line 17663 "configure"
17663 #include "confdefs.h"
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func(); below. */
17666 #include <assert.h>
17667 /* Override any gcc2 internal prototype to avoid an error. */
17668 /* We use char because int might match the return type of a gcc2
17669 builtin and then its argument prototype would still apply. */
17670 char $ac_func();
17672 int main() {
17674 /* The GNU C library defines this for functions which it implements
17675 to always fail with ENOSYS. Some functions are actually named
17676 something starting with __ and the normal name is an alias. */
17677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17678 choke me
17679 #else
17680 $ac_func();
17681 #endif
17683 ; return 0; }
17685 if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17686 rm -rf conftest*
17687 eval "ac_cv_func_$ac_func=yes"
17688 else
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 rm -rf conftest*
17692 eval "ac_cv_func_$ac_func=no"
17694 rm -f conftest*
17697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17698 echo "$ac_t""yes" 1>&6
17699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17700 cat >> confdefs.h <<EOF
17701 #define $ac_tr_func 1
17704 else
17705 echo "$ac_t""no" 1>&6
17706 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17708 done
17712 USE_COMPLEX_LONG_DOUBLE=no
17713 if test x$ac_cv_func_copysignl = x"yes"; then
17714 USE_COMPLEX_LONG_DOUBLE=yes
17715 for ac_func in signbitl
17717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17718 echo "configure:17719: checking for $ac_func" >&5
17719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17720 echo $ac_n "(cached) $ac_c" 1>&6
17721 else
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func(); below. */
17727 #include <assert.h>
17728 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17731 char $ac_func();
17733 int main() {
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17739 choke me
17740 #else
17741 $ac_func();
17742 #endif
17744 ; return 0; }
17746 if { (eval echo configure:17747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17747 rm -rf conftest*
17748 eval "ac_cv_func_$ac_func=yes"
17749 else
17750 echo "configure: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17752 rm -rf conftest*
17753 eval "ac_cv_func_$ac_func=no"
17755 rm -f conftest*
17758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17759 echo "$ac_t""yes" 1>&6
17760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17761 cat >> confdefs.h <<EOF
17762 #define $ac_tr_func 1
17765 else
17766 echo "$ac_t""no" 1>&6
17767 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17769 done
17778 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17779 echo "configure:17780: checking for mbstate_t" >&5
17780 cat > conftest.$ac_ext <<EOF
17781 #line 17782 "configure"
17782 #include "confdefs.h"
17783 #include <wchar.h>
17784 int main() {
17785 mbstate_t teststate;
17786 ; return 0; }
17788 if { (eval echo configure:17789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17789 rm -rf conftest*
17790 have_mbstate_t=yes
17791 else
17792 echo "configure: failed program was:" >&5
17793 cat conftest.$ac_ext >&5
17794 rm -rf conftest*
17795 have_mbstate_t=no
17797 rm -f conftest*
17798 echo "$ac_t""$have_mbstate_t" 1>&6
17799 if test x"$have_mbstate_t" = xyes; then
17800 cat >> confdefs.h <<\EOF
17801 #define HAVE_MBSTATE_T 1
17806 for ac_hdr in wchar.h
17808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17810 echo "configure:17811: checking for $ac_hdr" >&5
17811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17812 echo $ac_n "(cached) $ac_c" 1>&6
17813 else
17814 cat > conftest.$ac_ext <<EOF
17815 #line 17816 "configure"
17816 #include "confdefs.h"
17817 #include <$ac_hdr>
17819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17820 { (eval echo configure:17821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17822 if test -z "$ac_err"; then
17823 rm -rf conftest*
17824 eval "ac_cv_header_$ac_safe=yes"
17825 else
17826 echo "$ac_err" >&5
17827 echo "configure: failed program was:" >&5
17828 cat conftest.$ac_ext >&5
17829 rm -rf conftest*
17830 eval "ac_cv_header_$ac_safe=no"
17832 rm -f conftest*
17834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17835 echo "$ac_t""yes" 1>&6
17836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17837 cat >> confdefs.h <<EOF
17838 #define $ac_tr_hdr 1
17840 ac_has_wchar_h=yes
17841 else
17842 echo "$ac_t""no" 1>&6
17843 ac_has_wchar_h=no
17845 done
17847 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17848 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17849 echo "configure:17850: checking for wctype.h" >&5
17850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17851 echo $ac_n "(cached) $ac_c" 1>&6
17852 else
17853 cat > conftest.$ac_ext <<EOF
17854 #line 17855 "configure"
17855 #include "confdefs.h"
17856 #include <wctype.h>
17858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17859 { (eval echo configure:17860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17861 if test -z "$ac_err"; then
17862 rm -rf conftest*
17863 eval "ac_cv_header_$ac_safe=yes"
17864 else
17865 echo "$ac_err" >&5
17866 echo "configure: failed program was:" >&5
17867 cat conftest.$ac_ext >&5
17868 rm -rf conftest*
17869 eval "ac_cv_header_$ac_safe=no"
17871 rm -f conftest*
17873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17874 echo "$ac_t""yes" 1>&6
17875 ac_has_wctype_h=yes
17876 else
17877 echo "$ac_t""no" 1>&6
17878 ac_has_wctype_h=no
17882 if test x"$ac_has_wchar_h" = xyes &&
17883 test x"$ac_has_wctype_h" = xyes &&
17884 test x"$enable_c_mbchar" != xno; then
17886 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17887 echo "configure:17888: checking for WCHAR_MIN and WCHAR_MAX" >&5
17888 cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 #include <wchar.h>
17892 int main() {
17893 int i = WCHAR_MIN; int j = WCHAR_MAX;
17894 ; return 0; }
17896 if { (eval echo configure:17897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17897 rm -rf conftest*
17898 has_wchar_minmax=yes
17899 else
17900 echo "configure: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 rm -rf conftest*
17903 has_wchar_minmax=no
17905 rm -f conftest*
17906 echo "$ac_t""$has_wchar_minmax" 1>&6
17908 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17909 echo "configure:17910: checking for WEOF" >&5
17910 cat > conftest.$ac_ext <<EOF
17911 #line 17912 "configure"
17912 #include "confdefs.h"
17914 #include <wchar.h>
17915 #include <stddef.h>
17916 int main() {
17917 wint_t i = WEOF;
17918 ; return 0; }
17920 if { (eval echo configure:17921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17921 rm -rf conftest*
17922 has_weof=yes
17923 else
17924 echo "configure: failed program was:" >&5
17925 cat conftest.$ac_ext >&5
17926 rm -rf conftest*
17927 has_weof=no
17929 rm -f conftest*
17930 echo "$ac_t""$has_weof" 1>&6
17932 ac_wfuncs=yes
17933 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17936 echo "configure:17937: checking for $ac_func" >&5
17937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17938 echo $ac_n "(cached) $ac_c" 1>&6
17939 else
17940 cat > conftest.$ac_ext <<EOF
17941 #line 17942 "configure"
17942 #include "confdefs.h"
17943 /* System header to define __stub macros and hopefully few prototypes,
17944 which can conflict with char $ac_func(); below. */
17945 #include <assert.h>
17946 /* Override any gcc2 internal prototype to avoid an error. */
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char $ac_func();
17951 int main() {
17953 /* The GNU C library defines this for functions which it implements
17954 to always fail with ENOSYS. Some functions are actually named
17955 something starting with __ and the normal name is an alias. */
17956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17957 choke me
17958 #else
17959 $ac_func();
17960 #endif
17962 ; return 0; }
17964 if { (eval echo configure:17965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17965 rm -rf conftest*
17966 eval "ac_cv_func_$ac_func=yes"
17967 else
17968 echo "configure: failed program was:" >&5
17969 cat conftest.$ac_ext >&5
17970 rm -rf conftest*
17971 eval "ac_cv_func_$ac_func=no"
17973 rm -f conftest*
17976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17977 echo "$ac_t""yes" 1>&6
17978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17979 cat >> confdefs.h <<EOF
17980 #define $ac_tr_func 1
17983 else
17984 echo "$ac_t""no" 1>&6
17986 ac_wfuncs=no
17988 done
17991 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17992 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17993 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17994 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17995 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17996 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17999 echo "configure:18000: checking for $ac_func" >&5
18000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18001 echo $ac_n "(cached) $ac_c" 1>&6
18002 else
18003 cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 /* System header to define __stub macros and hopefully few prototypes,
18007 which can conflict with char $ac_func(); below. */
18008 #include <assert.h>
18009 /* Override any gcc2 internal prototype to avoid an error. */
18010 /* We use char because int might match the return type of a gcc2
18011 builtin and then its argument prototype would still apply. */
18012 char $ac_func();
18014 int main() {
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18020 choke me
18021 #else
18022 $ac_func();
18023 #endif
18025 ; return 0; }
18027 if { (eval echo configure:18028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18028 rm -rf conftest*
18029 eval "ac_cv_func_$ac_func=yes"
18030 else
18031 echo "configure: failed program was:" >&5
18032 cat conftest.$ac_ext >&5
18033 rm -rf conftest*
18034 eval "ac_cv_func_$ac_func=no"
18036 rm -f conftest*
18039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18040 echo "$ac_t""yes" 1>&6
18041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18042 cat >> confdefs.h <<EOF
18043 #define $ac_tr_func 1
18046 else
18047 echo "$ac_t""no" 1>&6
18049 ac_wfuncs=no
18051 done
18054 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18055 echo "configure:18056: checking for ISO C99 wchar_t support" >&5
18056 if test x"$has_weof" = xyes &&
18057 test x"$has_wchar_minmax" = xyes &&
18058 test x"$ac_wfuncs" = xyes; then
18059 ac_isoC99_wchar_t=yes
18060 else
18061 ac_isoC99_wchar_t=no
18063 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18065 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18066 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18067 echo "configure:18068: checking for iconv.h" >&5
18068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18069 echo $ac_n "(cached) $ac_c" 1>&6
18070 else
18071 cat > conftest.$ac_ext <<EOF
18072 #line 18073 "configure"
18073 #include "confdefs.h"
18074 #include <iconv.h>
18076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18077 { (eval echo configure:18078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18079 if test -z "$ac_err"; then
18080 rm -rf conftest*
18081 eval "ac_cv_header_$ac_safe=yes"
18082 else
18083 echo "$ac_err" >&5
18084 echo "configure: failed program was:" >&5
18085 cat conftest.$ac_ext >&5
18086 rm -rf conftest*
18087 eval "ac_cv_header_$ac_safe=no"
18089 rm -f conftest*
18091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18092 echo "$ac_t""yes" 1>&6
18093 ac_has_iconv_h=yes
18094 else
18095 echo "$ac_t""no" 1>&6
18096 ac_has_iconv_h=no
18099 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18100 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18101 echo "configure:18102: checking for langinfo.h" >&5
18102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18103 echo $ac_n "(cached) $ac_c" 1>&6
18104 else
18105 cat > conftest.$ac_ext <<EOF
18106 #line 18107 "configure"
18107 #include "confdefs.h"
18108 #include <langinfo.h>
18110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18111 { (eval echo configure:18112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18113 if test -z "$ac_err"; then
18114 rm -rf conftest*
18115 eval "ac_cv_header_$ac_safe=yes"
18116 else
18117 echo "$ac_err" >&5
18118 echo "configure: failed program was:" >&5
18119 cat conftest.$ac_ext >&5
18120 rm -rf conftest*
18121 eval "ac_cv_header_$ac_safe=no"
18123 rm -f conftest*
18125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18126 echo "$ac_t""yes" 1>&6
18127 ac_has_langinfo_h=yes
18128 else
18129 echo "$ac_t""no" 1>&6
18130 ac_has_langinfo_h=no
18134 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18135 echo "configure:18136: checking for iconv in -liconv" >&5
18136 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18140 ac_save_LIBS="$LIBS"
18141 LIBS="-liconv $LIBS"
18142 cat > conftest.$ac_ext <<EOF
18143 #line 18144 "configure"
18144 #include "confdefs.h"
18145 /* Override any gcc2 internal prototype to avoid an error. */
18146 /* We use char because int might match the return type of a gcc2
18147 builtin and then its argument prototype would still apply. */
18148 char iconv();
18150 int main() {
18151 iconv()
18152 ; return 0; }
18154 if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18155 rm -rf conftest*
18156 eval "ac_cv_lib_$ac_lib_var=yes"
18157 else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_lib_$ac_lib_var=no"
18163 rm -f conftest*
18164 LIBS="$ac_save_LIBS"
18167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18168 echo "$ac_t""yes" 1>&6
18169 libiconv="-liconv"
18170 else
18171 echo "$ac_t""no" 1>&6
18174 ac_save_LIBS="$LIBS"
18175 LIBS="$LIBS $libiconv"
18177 for ac_func in iconv_open iconv_close iconv nl_langinfo
18179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18180 echo "configure:18181: checking for $ac_func" >&5
18181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18182 echo $ac_n "(cached) $ac_c" 1>&6
18183 else
18184 cat > conftest.$ac_ext <<EOF
18185 #line 18186 "configure"
18186 #include "confdefs.h"
18187 /* System header to define __stub macros and hopefully few prototypes,
18188 which can conflict with char $ac_func(); below. */
18189 #include <assert.h>
18190 /* Override any gcc2 internal prototype to avoid an error. */
18191 /* We use char because int might match the return type of a gcc2
18192 builtin and then its argument prototype would still apply. */
18193 char $ac_func();
18195 int main() {
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18201 choke me
18202 #else
18203 $ac_func();
18204 #endif
18206 ; return 0; }
18208 if { (eval echo configure:18209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209 rm -rf conftest*
18210 eval "ac_cv_func_$ac_func=yes"
18211 else
18212 echo "configure: failed program was:" >&5
18213 cat conftest.$ac_ext >&5
18214 rm -rf conftest*
18215 eval "ac_cv_func_$ac_func=no"
18217 rm -f conftest*
18220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18221 echo "$ac_t""yes" 1>&6
18222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18223 cat >> confdefs.h <<EOF
18224 #define $ac_tr_func 1
18227 ac_XPG2funcs=yes
18228 else
18229 echo "$ac_t""no" 1>&6
18230 ac_XPG2funcs=no
18232 done
18235 LIBS="$ac_save_LIBS"
18237 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18238 echo "configure:18239: checking for XPG2 wchar_t support" >&5
18239 if test x"$ac_has_iconv_h" = xyes &&
18240 test x"$ac_has_langinfo_h" = xyes &&
18241 test x"$ac_XPG2funcs" = xyes; then
18242 ac_XPG2_wchar_t=yes
18243 else
18244 ac_XPG2_wchar_t=no
18246 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18248 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18249 echo "configure:18250: checking for enabled wchar_t specializations" >&5
18250 if test x"$ac_isoC99_wchar_t" = xyes &&
18251 test x"$ac_XPG2_wchar_t" = xyes; then
18252 cat >> confdefs.h <<\EOF
18253 #define _GLIBCPP_USE_WCHAR_T 1
18256 echo "$ac_t"""yes"" 1>&6
18257 else
18258 echo "$ac_t"""no"" 1>&6
18260 else
18261 echo "configure: warning: wchar_t support disabled." 1>&2
18265 ac_test_CXXFLAGS="${CXXFLAGS+set}"
18266 ac_save_CXXFLAGS="$CXXFLAGS"
18267 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18270 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18271 echo "configure:18272: checking for strtold declaration" >&5
18272 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18273 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18274 echo $ac_n "(cached) $ac_c" 1>&6
18275 else
18278 ac_ext=C
18279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18280 ac_cpp='$CXXCPP $CPPFLAGS'
18281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18283 cross_compiling=$ac_cv_prog_cxx_cross
18285 cat > conftest.$ac_ext <<EOF
18286 #line 18287 "configure"
18287 #include "confdefs.h"
18288 #include <stdlib.h>
18289 int main() {
18290 strtold(0, 0);
18291 ; return 0; }
18293 if { (eval echo configure:18294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18294 rm -rf conftest*
18295 glibcpp_cv_func_strtold_use=yes
18296 else
18297 echo "configure: failed program was:" >&5
18298 cat conftest.$ac_ext >&5
18299 rm -rf conftest*
18300 glibcpp_cv_func_strtold_use=no
18302 rm -f conftest*
18303 ac_ext=c
18304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18308 cross_compiling=$ac_cv_prog_cc_cross
18314 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18315 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18316 for ac_func in strtold
18318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18319 echo "configure:18320: checking for $ac_func" >&5
18320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18321 echo $ac_n "(cached) $ac_c" 1>&6
18322 else
18323 cat > conftest.$ac_ext <<EOF
18324 #line 18325 "configure"
18325 #include "confdefs.h"
18326 /* System header to define __stub macros and hopefully few prototypes,
18327 which can conflict with char $ac_func(); below. */
18328 #include <assert.h>
18329 /* Override any gcc2 internal prototype to avoid an error. */
18330 /* We use char because int might match the return type of a gcc2
18331 builtin and then its argument prototype would still apply. */
18332 char $ac_func();
18334 int main() {
18336 /* The GNU C library defines this for functions which it implements
18337 to always fail with ENOSYS. Some functions are actually named
18338 something starting with __ and the normal name is an alias. */
18339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18340 choke me
18341 #else
18342 $ac_func();
18343 #endif
18345 ; return 0; }
18347 if { (eval echo configure:18348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18348 rm -rf conftest*
18349 eval "ac_cv_func_$ac_func=yes"
18350 else
18351 echo "configure: failed program was:" >&5
18352 cat conftest.$ac_ext >&5
18353 rm -rf conftest*
18354 eval "ac_cv_func_$ac_func=no"
18356 rm -f conftest*
18359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18360 echo "$ac_t""yes" 1>&6
18361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18362 cat >> confdefs.h <<EOF
18363 #define $ac_tr_func 1
18366 else
18367 echo "$ac_t""no" 1>&6
18369 done
18373 for ac_func in drand48
18375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18376 echo "configure:18377: checking for $ac_func" >&5
18377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18378 echo $ac_n "(cached) $ac_c" 1>&6
18379 else
18380 cat > conftest.$ac_ext <<EOF
18381 #line 18382 "configure"
18382 #include "confdefs.h"
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func(); below. */
18385 #include <assert.h>
18386 /* Override any gcc2 internal prototype to avoid an error. */
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char $ac_func();
18391 int main() {
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18397 choke me
18398 #else
18399 $ac_func();
18400 #endif
18402 ; return 0; }
18404 if { (eval echo configure:18405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18405 rm -rf conftest*
18406 eval "ac_cv_func_$ac_func=yes"
18407 else
18408 echo "configure: failed program was:" >&5
18409 cat conftest.$ac_ext >&5
18410 rm -rf conftest*
18411 eval "ac_cv_func_$ac_func=no"
18413 rm -f conftest*
18416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18417 echo "$ac_t""yes" 1>&6
18418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18419 cat >> confdefs.h <<EOF
18420 #define $ac_tr_func 1
18423 else
18424 echo "$ac_t""no" 1>&6
18426 done
18429 CXXFLAGS="$ac_save_CXXFLAGS"
18432 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18433 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18434 echo "configure:18435: checking for locale.h" >&5
18435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18436 echo $ac_n "(cached) $ac_c" 1>&6
18437 else
18438 cat > conftest.$ac_ext <<EOF
18439 #line 18440 "configure"
18440 #include "confdefs.h"
18441 #include <locale.h>
18443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18444 { (eval echo configure:18445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18446 if test -z "$ac_err"; then
18447 rm -rf conftest*
18448 eval "ac_cv_header_$ac_safe=yes"
18449 else
18450 echo "$ac_err" >&5
18451 echo "configure: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 rm -rf conftest*
18454 eval "ac_cv_header_$ac_safe=no"
18456 rm -f conftest*
18458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18459 echo "$ac_t""yes" 1>&6
18461 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18462 echo "configure:18463: checking for LC_MESSAGES" >&5
18463 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18464 echo $ac_n "(cached) $ac_c" 1>&6
18465 else
18466 cat > conftest.$ac_ext <<EOF
18467 #line 18468 "configure"
18468 #include "confdefs.h"
18469 #include <locale.h>
18470 int main() {
18471 return LC_MESSAGES
18472 ; return 0; }
18474 if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18475 rm -rf conftest*
18476 ac_cv_val_LC_MESSAGES=yes
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 ac_cv_val_LC_MESSAGES=no
18483 rm -f conftest*
18486 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18487 if test $ac_cv_val_LC_MESSAGES = yes; then
18488 cat >> confdefs.h <<\EOF
18489 #define HAVE_LC_MESSAGES 1
18494 else
18495 echo "$ac_t""no" 1>&6
18500 cat > conftest.$ac_ext <<EOF
18501 #line 18502 "configure"
18502 #include "confdefs.h"
18504 #include <setjmp.h>
18506 int main() {
18507 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18508 ; return 0; }
18510 if { (eval echo configure:18511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18511 rm -rf conftest*
18512 cat >> confdefs.h <<\EOF
18513 #define HAVE_SIGSETJMP 1
18517 else
18518 echo "configure: failed program was:" >&5
18519 cat conftest.$ac_ext >&5
18521 rm -f conftest*
18523 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
18525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18527 echo "configure:18528: checking for $ac_hdr" >&5
18528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18529 echo $ac_n "(cached) $ac_c" 1>&6
18530 else
18531 cat > conftest.$ac_ext <<EOF
18532 #line 18533 "configure"
18533 #include "confdefs.h"
18534 #include <$ac_hdr>
18536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18537 { (eval echo configure:18538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18539 if test -z "$ac_err"; then
18540 rm -rf conftest*
18541 eval "ac_cv_header_$ac_safe=yes"
18542 else
18543 echo "$ac_err" >&5
18544 echo "configure: failed program was:" >&5
18545 cat conftest.$ac_ext >&5
18546 rm -rf conftest*
18547 eval "ac_cv_header_$ac_safe=no"
18549 rm -f conftest*
18551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18552 echo "$ac_t""yes" 1>&6
18553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18554 cat >> confdefs.h <<EOF
18555 #define $ac_tr_hdr 1
18558 else
18559 echo "$ac_t""no" 1>&6
18561 done
18563 for ac_func in getpagesize
18565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18566 echo "configure:18567: checking for $ac_func" >&5
18567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18568 echo $ac_n "(cached) $ac_c" 1>&6
18569 else
18570 cat > conftest.$ac_ext <<EOF
18571 #line 18572 "configure"
18572 #include "confdefs.h"
18573 /* System header to define __stub macros and hopefully few prototypes,
18574 which can conflict with char $ac_func(); below. */
18575 #include <assert.h>
18576 /* Override any gcc2 internal prototype to avoid an error. */
18577 /* We use char because int might match the return type of a gcc2
18578 builtin and then its argument prototype would still apply. */
18579 char $ac_func();
18581 int main() {
18583 /* The GNU C library defines this for functions which it implements
18584 to always fail with ENOSYS. Some functions are actually named
18585 something starting with __ and the normal name is an alias. */
18586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18587 choke me
18588 #else
18589 $ac_func();
18590 #endif
18592 ; return 0; }
18594 if { (eval echo configure:18595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18595 rm -rf conftest*
18596 eval "ac_cv_func_$ac_func=yes"
18597 else
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18600 rm -rf conftest*
18601 eval "ac_cv_func_$ac_func=no"
18603 rm -f conftest*
18606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18607 echo "$ac_t""yes" 1>&6
18608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18609 cat >> confdefs.h <<EOF
18610 #define $ac_tr_func 1
18613 else
18614 echo "$ac_t""no" 1>&6
18616 done
18618 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18619 echo "configure:18620: checking for working mmap" >&5
18620 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18621 echo $ac_n "(cached) $ac_c" 1>&6
18622 else
18623 if test "$cross_compiling" = yes; then
18624 ac_cv_func_mmap_fixed_mapped=no
18625 else
18626 cat > conftest.$ac_ext <<EOF
18627 #line 18628 "configure"
18628 #include "confdefs.h"
18630 /* Thanks to Mike Haertel and Jim Avera for this test.
18631 Here is a matrix of mmap possibilities:
18632 mmap private not fixed
18633 mmap private fixed at somewhere currently unmapped
18634 mmap private fixed at somewhere already mapped
18635 mmap shared not fixed
18636 mmap shared fixed at somewhere currently unmapped
18637 mmap shared fixed at somewhere already mapped
18638 For private mappings, we should verify that changes cannot be read()
18639 back from the file, nor mmap's back from the file at a different
18640 address. (There have been systems where private was not correctly
18641 implemented like the infamous i386 svr4.0, and systems where the
18642 VM page cache was not coherent with the filesystem buffer cache
18643 like early versions of FreeBSD and possibly contemporary NetBSD.)
18644 For shared mappings, we should conversely verify that changes get
18645 propogated back to all the places they're supposed to be.
18647 Grep wants private fixed already mapped.
18648 The main things grep needs to know about mmap are:
18649 * does it exist and is it safe to write into the mmap'd area
18650 * how to use it (BSD variants) */
18651 #include <sys/types.h>
18652 #include <fcntl.h>
18653 #include <sys/mman.h>
18655 #if HAVE_SYS_TYPES_H
18656 # include <sys/types.h>
18657 #endif
18659 #if HAVE_STDLIB_H
18660 # include <stdlib.h>
18661 #endif
18663 #if HAVE_SYS_STAT_H
18664 # include <sys/stat.h>
18665 #endif
18667 #if HAVE_UNISTD_H
18668 # include <unistd.h>
18669 #endif
18671 /* This mess was copied from the GNU getpagesize.h. */
18672 #ifndef HAVE_GETPAGESIZE
18674 /* Assume that all systems that can run configure have sys/param.h. */
18675 # ifndef HAVE_SYS_PARAM_H
18676 # define HAVE_SYS_PARAM_H 1
18677 # endif
18679 # ifdef _SC_PAGESIZE
18680 # define getpagesize() sysconf(_SC_PAGESIZE)
18681 # else /* no _SC_PAGESIZE */
18682 # ifdef HAVE_SYS_PARAM_H
18683 # include <sys/param.h>
18684 # ifdef EXEC_PAGESIZE
18685 # define getpagesize() EXEC_PAGESIZE
18686 # else /* no EXEC_PAGESIZE */
18687 # ifdef NBPG
18688 # define getpagesize() NBPG * CLSIZE
18689 # ifndef CLSIZE
18690 # define CLSIZE 1
18691 # endif /* no CLSIZE */
18692 # else /* no NBPG */
18693 # ifdef NBPC
18694 # define getpagesize() NBPC
18695 # else /* no NBPC */
18696 # ifdef PAGESIZE
18697 # define getpagesize() PAGESIZE
18698 # endif /* PAGESIZE */
18699 # endif /* no NBPC */
18700 # endif /* no NBPG */
18701 # endif /* no EXEC_PAGESIZE */
18702 # else /* no HAVE_SYS_PARAM_H */
18703 # define getpagesize() 8192 /* punt totally */
18704 # endif /* no HAVE_SYS_PARAM_H */
18705 # endif /* no _SC_PAGESIZE */
18707 #endif /* no HAVE_GETPAGESIZE */
18709 #ifdef __cplusplus
18710 extern "C" { void *malloc(unsigned); }
18711 #else
18712 char *malloc();
18713 #endif
18716 main()
18718 char *data, *data2, *data3;
18719 int i, pagesize;
18720 int fd;
18722 pagesize = getpagesize();
18725 * First, make a file with some known garbage in it.
18727 data = malloc(pagesize);
18728 if (!data)
18729 exit(1);
18730 for (i = 0; i < pagesize; ++i)
18731 *(data + i) = rand();
18732 umask(0);
18733 fd = creat("conftestmmap", 0600);
18734 if (fd < 0)
18735 exit(1);
18736 if (write(fd, data, pagesize) != pagesize)
18737 exit(1);
18738 close(fd);
18741 * Next, try to mmap the file at a fixed address which
18742 * already has something else allocated at it. If we can,
18743 * also make sure that we see the same garbage.
18745 fd = open("conftestmmap", O_RDWR);
18746 if (fd < 0)
18747 exit(1);
18748 data2 = malloc(2 * pagesize);
18749 if (!data2)
18750 exit(1);
18751 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18752 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18754 exit(1);
18755 for (i = 0; i < pagesize; ++i)
18756 if (*(data + i) != *(data2 + i))
18757 exit(1);
18760 * Finally, make sure that changes to the mapped area
18761 * do not percolate back to the file as seen by read().
18762 * (This is a bug on some variants of i386 svr4.0.)
18764 for (i = 0; i < pagesize; ++i)
18765 *(data2 + i) = *(data2 + i) + 1;
18766 data3 = malloc(pagesize);
18767 if (!data3)
18768 exit(1);
18769 if (read(fd, data3, pagesize) != pagesize)
18770 exit(1);
18771 for (i = 0; i < pagesize; ++i)
18772 if (*(data + i) != *(data3 + i))
18773 exit(1);
18774 close(fd);
18775 unlink("conftestmmap");
18776 exit(0);
18780 if { (eval echo configure:18781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18781 then
18782 ac_cv_func_mmap_fixed_mapped=yes
18783 else
18784 echo "configure: failed program was:" >&5
18785 cat conftest.$ac_ext >&5
18786 rm -fr conftest*
18787 ac_cv_func_mmap_fixed_mapped=no
18789 rm -fr conftest*
18794 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
18795 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18796 cat >> confdefs.h <<\EOF
18797 #define HAVE_MMAP 1
18803 # Establish limits on memory usage during 'make check'
18806 setrlimit_have_headers=yes
18807 for ac_hdr in sys/resource.h unistd.h
18809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18811 echo "configure:18812: checking for $ac_hdr" >&5
18812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18813 echo $ac_n "(cached) $ac_c" 1>&6
18814 else
18815 cat > conftest.$ac_ext <<EOF
18816 #line 18817 "configure"
18817 #include "confdefs.h"
18818 #include <$ac_hdr>
18820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18821 { (eval echo configure:18822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18823 if test -z "$ac_err"; then
18824 rm -rf conftest*
18825 eval "ac_cv_header_$ac_safe=yes"
18826 else
18827 echo "$ac_err" >&5
18828 echo "configure: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18830 rm -rf conftest*
18831 eval "ac_cv_header_$ac_safe=no"
18833 rm -f conftest*
18835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18836 echo "$ac_t""yes" 1>&6
18837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18838 cat >> confdefs.h <<EOF
18839 #define $ac_tr_hdr 1
18842 else
18843 echo "$ac_t""no" 1>&6
18844 setrlimit_have_headers=no
18846 done
18848 # If don't have the headers, then we can't run the tests now, and we
18849 # won't be seeing any of these during testsuite compilation.
18850 if test $setrlimit_have_headers = yes; then
18851 # Can't do these in a loop, else the resulting syntax is wrong.
18853 cat > conftest.$ac_ext <<EOF
18854 #line 18855 "configure"
18855 #include "confdefs.h"
18856 #include <sys/resource.h>
18857 #include <unistd.h>
18859 int main() {
18860 int f = RLIMIT_DATA ;
18861 ; return 0; }
18863 if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18864 rm -rf conftest*
18865 glibcpp_mresult=1
18866 else
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
18870 glibcpp_mresult=0
18872 rm -f conftest*
18873 cat >> confdefs.h <<EOF
18874 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18879 cat > conftest.$ac_ext <<EOF
18880 #line 18881 "configure"
18881 #include "confdefs.h"
18882 #include <sys/resource.h>
18883 #include <unistd.h>
18885 int main() {
18886 int f = RLIMIT_RSS ;
18887 ; return 0; }
18889 if { (eval echo configure:18890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18890 rm -rf conftest*
18891 glibcpp_mresult=1
18892 else
18893 echo "configure: failed program was:" >&5
18894 cat conftest.$ac_ext >&5
18895 rm -rf conftest*
18896 glibcpp_mresult=0
18898 rm -f conftest*
18899 cat >> confdefs.h <<EOF
18900 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18905 cat > conftest.$ac_ext <<EOF
18906 #line 18907 "configure"
18907 #include "confdefs.h"
18908 #include <sys/resource.h>
18909 #include <unistd.h>
18911 int main() {
18912 int f = RLIMIT_VMEM ;
18913 ; return 0; }
18915 if { (eval echo configure:18916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18916 rm -rf conftest*
18917 glibcpp_mresult=1
18918 else
18919 echo "configure: failed program was:" >&5
18920 cat conftest.$ac_ext >&5
18921 rm -rf conftest*
18922 glibcpp_mresult=0
18924 rm -f conftest*
18925 cat >> confdefs.h <<EOF
18926 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18931 cat > conftest.$ac_ext <<EOF
18932 #line 18933 "configure"
18933 #include "confdefs.h"
18934 #include <sys/resource.h>
18935 #include <unistd.h>
18937 int main() {
18938 int f = RLIMIT_AS ;
18939 ; return 0; }
18941 if { (eval echo configure:18942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18942 rm -rf conftest*
18943 glibcpp_mresult=1
18944 else
18945 echo "configure: failed program was:" >&5
18946 cat conftest.$ac_ext >&5
18947 rm -rf conftest*
18948 glibcpp_mresult=0
18950 rm -f conftest*
18951 cat >> confdefs.h <<EOF
18952 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
18957 # Check for rlimit, setrlimit.
18958 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
18959 echo $ac_n "(cached) $ac_c" 1>&6
18960 else
18962 cat > conftest.$ac_ext <<EOF
18963 #line 18964 "configure"
18964 #include "confdefs.h"
18965 #include <sys/resource.h>
18966 #include <unistd.h>
18968 int main() {
18969 struct rlimit r; setrlimit(0, &r);
18970 ; return 0; }
18972 if { (eval echo configure:18973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18973 rm -rf conftest*
18974 ac_setrlimit=yes
18975 else
18976 echo "configure: failed program was:" >&5
18977 cat conftest.$ac_ext >&5
18978 rm -rf conftest*
18979 ac_setrlimit=no
18981 rm -f conftest*
18987 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
18988 echo "configure:18989: checking for testsuite memory limit support" >&5
18989 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
18990 ac_mem_limits=yes
18991 cat >> confdefs.h <<\EOF
18992 #define _GLIBCPP_MEM_LIMITS 1
18995 else
18996 ac_mem_limits=no
18998 echo "$ac_t""$ac_mem_limits" 1>&6
19004 # Propagate the target-specific source directories through the build chain.
19005 OS_INC_SRCDIR=$os_include_dir/bits
19006 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
19007 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
19012 # Set up cross-compile flags
19016 if test "$CANADIAN" = yes; then
19017 CANADIAN_TRUE=
19018 CANADIAN_FALSE='#'
19019 else
19020 CANADIAN_TRUE='#'
19021 CANADIAN_FALSE=
19024 cat > confcache <<\EOF
19025 # This file is a shell script that caches the results of configure
19026 # tests run on this system so they can be shared between configure
19027 # scripts and configure runs. It is not useful on other systems.
19028 # If it contains results you don't want to keep, you may remove or edit it.
19030 # By default, configure uses ./config.cache as the cache file,
19031 # creating it if it does not exist already. You can give configure
19032 # the --cache-file=FILE option to use a different cache file; that is
19033 # what configure does when it calls configure scripts in
19034 # subdirectories, so they share the cache.
19035 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19036 # config.status only pays attention to the cache file if you give it the
19037 # --recheck option to rerun configure.
19040 # The following way of writing the cache mishandles newlines in values,
19041 # but we know of no workaround that is simple, portable, and efficient.
19042 # So, don't put newlines in cache variables' values.
19043 # Ultrix sh set writes to stderr and can't be redirected directly,
19044 # and sets the high bit in the cache file unless we assign to the vars.
19045 (set) 2>&1 |
19046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19047 *ac_space=\ *)
19048 # `set' does not quote correctly, so add quotes (double-quote substitution
19049 # turns \\\\ into \\, and sed turns \\ into \).
19050 sed -n \
19051 -e "s/'/'\\\\''/g" \
19052 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19055 # `set' quotes correctly as required by POSIX, so do not add quotes.
19056 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19058 esac >> confcache
19059 if cmp -s $cache_file confcache; then
19061 else
19062 if test -w $cache_file; then
19063 echo "updating cache $cache_file"
19064 cat confcache > $cache_file
19065 else
19066 echo "not updating unwritable cache $cache_file"
19069 rm -f confcache
19072 if test "${multilib}" = "yes"; then
19073 multilib_arg="--enable-multilib"
19074 else
19075 multilib_arg=
19078 # Needed so that g++ can find the correct include subdir automatically.
19079 INTERFACE=v3
19081 # Export all the install information
19083 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19084 # exported correctly in GLIBCPP_CONFIGURE.
19085 glibcpp_toolexecdir=no
19086 glibcpp_toolexeclibdir=no
19087 glibcpp_prefixdir=${prefix}
19089 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19090 echo "configure:19091: checking for interface version number" >&5
19091 libstdcxx_interface=$INTERFACE
19092 echo "$ac_t""$libstdcxx_interface" 1>&6
19094 # Process the option --with-gxx-include-dir=<path to include-files directory>
19095 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19096 echo "configure:19097: checking for --with-gxx-include-dir" >&5
19097 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19098 if test "${with_gxx_include_dir+set}" = set; then
19099 withval="$with_gxx_include_dir"
19100 case "${withval}" in
19101 yes)
19102 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19103 gxx_include_dir=no
19106 gxx_include_dir=no
19109 gxx_include_dir=${withval}
19111 esac
19112 else
19113 gxx_include_dir=no
19116 echo "$ac_t""$gxx_include_dir" 1>&6
19118 # Process the option "--enable-version-specific-runtime-libs"
19119 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19120 echo "configure:19121: checking for --enable-version-specific-runtime-libs" >&5
19121 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19122 if test "${enable_version_specific_runtime_libs+set}" = set; then
19123 enableval="$enable_version_specific_runtime_libs"
19124 case "$enableval" in
19125 yes) version_specific_libs=yes ;;
19126 no) version_specific_libs=no ;;
19127 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19128 esac
19129 else
19130 version_specific_libs=no
19132 # Option set, now we can test it.
19133 echo "$ac_t""$version_specific_libs" 1>&6
19135 if test $version_specific_libs = yes; then
19136 # Need the gcc compiler version to know where to install libraries
19137 # and header files if --enable-version-specific-runtime-libs option
19138 # is selected.
19139 gcc_version_trigger=${srcdir}/../gcc/version.c
19140 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19141 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19142 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19143 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19144 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19147 # Default case for install directory for include files.
19148 if test $version_specific_libs = no &&
19149 test $gxx_include_dir = no; then
19150 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19153 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19154 # Install a library built with a cross compiler in tooldir, not libdir.
19155 if test x"$glibcpp_toolexecdir" = x"no"; then
19156 if test -n "$with_cross_host" &&
19157 test x"$with_cross_host" != x"no"; then
19158 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19159 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19160 else
19161 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19162 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19166 echo $ac_n "checking for install location""... $ac_c" 1>&6
19167 echo "configure:19168: checking for install location" >&5
19168 echo "$ac_t""$gxx_include_dir" 1>&6
19176 # Export all the include and flag information to makefiles.
19178 # Root level of the build directory include sources.
19179 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19181 # Passed down for canadian crosses.
19182 if test x"$CANADIAN" = xyes; then
19183 TOPLEVEL_INCLUDES='-I$(includedir)'
19186 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19188 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19190 if test x"$need_libio" = xyes; then
19191 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19195 # Now, export this to all the little Makefiles....
19202 # Optimization flags that are probably a good idea for thrill-seekers. Just
19203 # uncomment the lines below and make, everything else is ready to go...
19204 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
19205 OPTIMIZE_CXXFLAGS=
19208 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19212 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19213 grep "enable shared" > /dev/null; then
19214 LIBSUPCXX_PICFLAGS=-prefer-pic
19215 else
19216 LIBSUPCXX_PICFLAGS=
19220 # Generate the various Makefiles, include files, and scripts.
19221 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19222 # and libsupc++/Makefile.am so that multilib installs will end up
19223 # installed in the correct place. To work around this not being passed
19224 # down from config-ml.in -> top_srcdir/Makefile.am ->
19225 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19226 trap '' 1 2 15
19227 cat > confcache <<\EOF
19228 # This file is a shell script that caches the results of configure
19229 # tests run on this system so they can be shared between configure
19230 # scripts and configure runs. It is not useful on other systems.
19231 # If it contains results you don't want to keep, you may remove or edit it.
19233 # By default, configure uses ./config.cache as the cache file,
19234 # creating it if it does not exist already. You can give configure
19235 # the --cache-file=FILE option to use a different cache file; that is
19236 # what configure does when it calls configure scripts in
19237 # subdirectories, so they share the cache.
19238 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19239 # config.status only pays attention to the cache file if you give it the
19240 # --recheck option to rerun configure.
19243 # The following way of writing the cache mishandles newlines in values,
19244 # but we know of no workaround that is simple, portable, and efficient.
19245 # So, don't put newlines in cache variables' values.
19246 # Ultrix sh set writes to stderr and can't be redirected directly,
19247 # and sets the high bit in the cache file unless we assign to the vars.
19248 (set) 2>&1 |
19249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19250 *ac_space=\ *)
19251 # `set' does not quote correctly, so add quotes (double-quote substitution
19252 # turns \\\\ into \\, and sed turns \\ into \).
19253 sed -n \
19254 -e "s/'/'\\\\''/g" \
19255 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19258 # `set' quotes correctly as required by POSIX, so do not add quotes.
19259 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19261 esac >> confcache
19262 if cmp -s $cache_file confcache; then
19264 else
19265 if test -w $cache_file; then
19266 echo "updating cache $cache_file"
19267 cat confcache > $cache_file
19268 else
19269 echo "not updating unwritable cache $cache_file"
19272 rm -f confcache
19274 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19277 # Let make expand exec_prefix.
19278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19280 # Any assignment to VPATH causes Sun make to only execute
19281 # the first set of double-colon rules, so remove it if not needed.
19282 # If there is a colon in the path, we need to keep it.
19283 if test "x$srcdir" = x.; then
19284 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19287 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19289 DEFS=-DHAVE_CONFIG_H
19291 # Without the "./", some shells look in PATH for config.status.
19292 : ${CONFIG_STATUS=./config.status}
19294 echo creating $CONFIG_STATUS
19295 rm -f $CONFIG_STATUS
19296 cat > $CONFIG_STATUS <<EOF
19297 #! /bin/sh
19298 # Generated automatically by configure.
19299 # Run this file to recreate the current configuration.
19300 # This directory was configured as follows,
19301 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19303 # $0 $ac_configure_args
19305 # Compiler output produced by configure, useful for debugging
19306 # configure, is in ./config.log if it exists.
19308 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19309 for ac_option
19311 case "\$ac_option" in
19312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19313 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19314 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19315 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19316 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19317 exit 0 ;;
19318 -help | --help | --hel | --he | --h)
19319 echo "\$ac_cs_usage"; exit 0 ;;
19320 *) echo "\$ac_cs_usage"; exit 1 ;;
19321 esac
19322 done
19324 ac_given_srcdir=$srcdir
19325 ac_given_INSTALL="$INSTALL"
19327 trap 'rm -fr `echo "Makefile \
19328 include/Makefile src/Makefile \
19329 libmath/Makefile libio/Makefile libsupc++/Makefile \
19330 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19332 cat >> $CONFIG_STATUS <<EOF
19334 # Protect against being on the right side of a sed subst in config.status.
19335 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19336 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19337 $ac_vpsub
19338 $extrasub
19339 s%@SHELL@%$SHELL%g
19340 s%@CFLAGS@%$CFLAGS%g
19341 s%@CPPFLAGS@%$CPPFLAGS%g
19342 s%@CXXFLAGS@%$CXXFLAGS%g
19343 s%@FFLAGS@%$FFLAGS%g
19344 s%@DEFS@%$DEFS%g
19345 s%@LDFLAGS@%$LDFLAGS%g
19346 s%@LIBS@%$LIBS%g
19347 s%@exec_prefix@%$exec_prefix%g
19348 s%@prefix@%$prefix%g
19349 s%@program_transform_name@%$program_transform_name%g
19350 s%@bindir@%$bindir%g
19351 s%@sbindir@%$sbindir%g
19352 s%@libexecdir@%$libexecdir%g
19353 s%@datadir@%$datadir%g
19354 s%@sysconfdir@%$sysconfdir%g
19355 s%@sharedstatedir@%$sharedstatedir%g
19356 s%@localstatedir@%$localstatedir%g
19357 s%@libdir@%$libdir%g
19358 s%@includedir@%$includedir%g
19359 s%@oldincludedir@%$oldincludedir%g
19360 s%@infodir@%$infodir%g
19361 s%@mandir@%$mandir%g
19362 s%@PACKAGE@%$PACKAGE%g
19363 s%@release_VERSION@%$release_VERSION%g
19364 s%@libtool_VERSION@%$libtool_VERSION%g
19365 s%@host@%$host%g
19366 s%@host_alias@%$host_alias%g
19367 s%@host_cpu@%$host_cpu%g
19368 s%@host_vendor@%$host_vendor%g
19369 s%@host_os@%$host_os%g
19370 s%@target@%$target%g
19371 s%@target_alias@%$target_alias%g
19372 s%@target_cpu@%$target_cpu%g
19373 s%@target_vendor@%$target_vendor%g
19374 s%@target_os@%$target_os%g
19375 s%@build@%$build%g
19376 s%@build_alias@%$build_alias%g
19377 s%@build_cpu@%$build_cpu%g
19378 s%@build_vendor@%$build_vendor%g
19379 s%@build_os@%$build_os%g
19380 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19381 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19382 s%@INSTALL_DATA@%$INSTALL_DATA%g
19383 s%@VERSION@%$VERSION%g
19384 s%@ACLOCAL@%$ACLOCAL%g
19385 s%@AUTOCONF@%$AUTOCONF%g
19386 s%@AUTOMAKE@%$AUTOMAKE%g
19387 s%@AUTOHEADER@%$AUTOHEADER%g
19388 s%@MAKEINFO@%$MAKEINFO%g
19389 s%@SET_MAKE@%$SET_MAKE%g
19390 s%@toplevel_srcdir@%$toplevel_srcdir%g
19391 s%@glibcpp_builddir@%$glibcpp_builddir%g
19392 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19393 s%@LN_S@%$LN_S%g
19394 s%@glibcpp_basedir@%$glibcpp_basedir%g
19395 s%@CC@%$CC%g
19396 s%@glibcpp_CXX@%$glibcpp_CXX%g
19397 s%@AS@%$AS%g
19398 s%@AR@%$AR%g
19399 s%@RANLIB@%$RANLIB%g
19400 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19401 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19402 s%@MAINT@%$MAINT%g
19403 s%@EXEEXT@%$EXEEXT%g
19404 s%@OBJEXT@%$OBJEXT%g
19405 s%@STRIP@%$STRIP%g
19406 s%@LIBTOOL@%$LIBTOOL%g
19407 s%@CXXCPP@%$CXXCPP%g
19408 s%@enable_shared@%$enable_shared%g
19409 s%@enable_static@%$enable_static%g
19410 s%@ifGNUmake@%$ifGNUmake%g
19411 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19412 s%@CPP@%$CPP%g
19413 s%@CSTDIO_H@%$CSTDIO_H%g
19414 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19415 s%@CCODECVT_C@%$CCODECVT_C%g
19416 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19417 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19418 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19419 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19420 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19421 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19422 s%@libio_la@%$libio_la%g
19423 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19424 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19425 s%@glibcpp_localedir@%$glibcpp_localedir%g
19426 s%@USE_NLS@%$USE_NLS%g
19427 s%@CLOCALE_H@%$CLOCALE_H%g
19428 s%@CCODECVT_H@%$CCODECVT_H%g
19429 s%@CMESSAGES_H@%$CMESSAGES_H%g
19430 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19431 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19432 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19433 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19434 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19435 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19436 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19437 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19438 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19439 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19440 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19441 s%@WERROR@%$WERROR%g
19442 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19443 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19444 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19445 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19446 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19447 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19448 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19449 s%@gxx_include_dir@%$gxx_include_dir%g
19450 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19451 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19452 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19453 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19454 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19455 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19456 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19457 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19458 s%@WARN_FLAGS@%$WARN_FLAGS%g
19459 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19461 CEOF
19464 cat >> $CONFIG_STATUS <<\EOF
19466 # Split the substitutions into bite-sized pieces for seds with
19467 # small command number limits, like on Digital OSF/1 and HP-UX.
19468 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19469 ac_file=1 # Number of current file.
19470 ac_beg=1 # First line for current file.
19471 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19472 ac_more_lines=:
19473 ac_sed_cmds=""
19474 while $ac_more_lines; do
19475 if test $ac_beg -gt 1; then
19476 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19477 else
19478 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19480 if test ! -s conftest.s$ac_file; then
19481 ac_more_lines=false
19482 rm -f conftest.s$ac_file
19483 else
19484 if test -z "$ac_sed_cmds"; then
19485 ac_sed_cmds="sed -f conftest.s$ac_file"
19486 else
19487 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19489 ac_file=`expr $ac_file + 1`
19490 ac_beg=$ac_end
19491 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19493 done
19494 if test -z "$ac_sed_cmds"; then
19495 ac_sed_cmds=cat
19499 cat >> $CONFIG_STATUS <<EOF
19501 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19502 include/Makefile src/Makefile \
19503 libmath/Makefile libio/Makefile libsupc++/Makefile \
19504 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19506 cat >> $CONFIG_STATUS <<\EOF
19507 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19509 case "$ac_file" in
19510 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19511 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19512 *) ac_file_in="${ac_file}.in" ;;
19513 esac
19515 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19517 # Remove last slash and all that follows it. Not all systems have dirname.
19518 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19519 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19520 # The file is in a subdirectory.
19521 test ! -d "$ac_dir" && mkdir "$ac_dir"
19522 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19523 # A "../" for each directory in $ac_dir_suffix.
19524 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19525 else
19526 ac_dir_suffix= ac_dots=
19529 case "$ac_given_srcdir" in
19530 .) srcdir=.
19531 if test -z "$ac_dots"; then top_srcdir=.
19532 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19533 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19534 *) # Relative path.
19535 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19536 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19537 esac
19539 case "$ac_given_INSTALL" in
19540 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19541 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19542 esac
19544 echo creating "$ac_file"
19545 rm -f "$ac_file"
19546 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19547 case "$ac_file" in
19548 *Makefile*) ac_comsub="1i\\
19549 # $configure_input" ;;
19550 *) ac_comsub= ;;
19551 esac
19553 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19554 sed -e "$ac_comsub
19555 s%@configure_input@%$configure_input%g
19556 s%@srcdir@%$srcdir%g
19557 s%@top_srcdir@%$top_srcdir%g
19558 s%@INSTALL@%$INSTALL%g
19559 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19560 fi; done
19561 rm -f conftest.s*
19563 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19564 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19566 # ac_d sets the value in "#define NAME VALUE" lines.
19567 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19568 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19569 ac_dC='\3'
19570 ac_dD='%g'
19571 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19572 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19573 ac_uB='\([ ]\)%\1#\2define\3'
19574 ac_uC=' '
19575 ac_uD='\4%g'
19576 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19577 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19578 ac_eB='$%\1#\2define\3'
19579 ac_eC=' '
19580 ac_eD='%g'
19582 if test "${CONFIG_HEADERS+set}" != set; then
19584 cat >> $CONFIG_STATUS <<EOF
19585 CONFIG_HEADERS="config.h"
19587 cat >> $CONFIG_STATUS <<\EOF
19589 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19591 case "$ac_file" in
19592 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19593 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19594 *) ac_file_in="${ac_file}.in" ;;
19595 esac
19597 echo creating $ac_file
19599 rm -f conftest.frag conftest.in conftest.out
19600 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19601 cat $ac_file_inputs > conftest.in
19605 # Transform confdefs.h into a sed script conftest.vals that substitutes
19606 # the proper values into config.h.in to produce config.h. And first:
19607 # Protect against being on the right side of a sed subst in config.status.
19608 # Protect against being in an unquoted here document in config.status.
19609 rm -f conftest.vals
19610 cat > conftest.hdr <<\EOF
19611 s/[\\&%]/\\&/g
19612 s%[\\$`]%\\&%g
19613 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19614 s%ac_d%ac_u%gp
19615 s%ac_u%ac_e%gp
19617 sed -n -f conftest.hdr confdefs.h > conftest.vals
19618 rm -f conftest.hdr
19620 # This sed command replaces #undef with comments. This is necessary, for
19621 # example, in the case of _POSIX_SOURCE, which is predefined and required
19622 # on some systems where configure will not decide to define it.
19623 cat >> conftest.vals <<\EOF
19624 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19627 # Break up conftest.vals because some shells have a limit on
19628 # the size of here documents, and old seds have small limits too.
19630 rm -f conftest.tail
19631 while :
19633 ac_lines=`grep -c . conftest.vals`
19634 # grep -c gives empty output for an empty file on some AIX systems.
19635 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19636 # Write a limited-size here document to conftest.frag.
19637 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19638 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19639 echo 'CEOF
19640 sed -f conftest.frag conftest.in > conftest.out
19641 rm -f conftest.in
19642 mv conftest.out conftest.in
19643 ' >> $CONFIG_STATUS
19644 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19645 rm -f conftest.vals
19646 mv conftest.tail conftest.vals
19647 done
19648 rm -f conftest.vals
19650 cat >> $CONFIG_STATUS <<\EOF
19651 rm -f conftest.frag conftest.h
19652 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19653 cat conftest.in >> conftest.h
19654 rm -f conftest.in
19655 if cmp -s $ac_file conftest.h 2>/dev/null; then
19656 echo "$ac_file is unchanged"
19657 rm -f conftest.h
19658 else
19659 # Remove last slash and all that follows it. Not all systems have dirname.
19660 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19661 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19662 # The file is in a subdirectory.
19663 test ! -d "$ac_dir" && mkdir "$ac_dir"
19665 rm -f $ac_file
19666 mv conftest.h $ac_file
19668 fi; done
19672 cat >> $CONFIG_STATUS <<EOF
19673 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
19674 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
19677 cat >> $CONFIG_STATUS <<\EOF
19678 srcdir=$ac_given_srcdir
19679 while test -n "$ac_sources"; do
19680 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
19681 set $ac_sources; ac_source=$1; shift; ac_sources=$*
19683 echo "linking $srcdir/$ac_source to $ac_dest"
19685 if test ! -r $srcdir/$ac_source; then
19686 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
19688 rm -f $ac_dest
19690 # Make relative symlinks.
19691 # Remove last slash and all that follows it. Not all systems have dirname.
19692 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
19693 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
19694 # The dest file is in a subdirectory.
19695 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
19696 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
19697 # A "../" for each directory in $ac_dest_dir_suffix.
19698 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
19699 else
19700 ac_dest_dir_suffix= ac_dots=
19703 case "$srcdir" in
19704 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
19705 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
19706 esac
19708 # Make a symlink if possible; otherwise try a hard link.
19709 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19710 ln $srcdir/$ac_source $ac_dest; then :
19711 else
19712 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
19714 done
19716 cat >> $CONFIG_STATUS <<EOF
19718 srcdir=${srcdir}
19719 host=${host}
19720 target=${target}
19721 with_multisubdir=${with_multisubdir}
19722 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19723 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19724 glibcpp_basedir=${glibcpp_basedir}
19725 CC="${CC}"
19726 CXX="${CXX}"
19729 cat >> $CONFIG_STATUS <<\EOF
19730 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
19731 if test -n "$CONFIG_FILES"; then
19732 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
19733 grep '^MULTISUBDIR =' Makefile >> src/Makefile
19734 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
19736 chmod +x mkcheck
19737 chmod +x testsuite_flags
19739 exit 0
19741 chmod +x $CONFIG_STATUS
19742 rm -fr confdefs* $ac_clean_files
19743 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19747 # Sanity checking & User-visible messages.
19748 # Checks down here, otherwise they get scrolled off before
19749 # the user will notice.
19751 # Trying to get more people to read documentation. Possibly remove
19752 # check and warn all the time. There is no "informational" AC_MSG_
19753 # macro, so these are going to be printed even when --quiet/--silent
19754 # is given.
19755 if test ! -f stamp-sanity-warned; then
19756 touch stamp-sanity-warned
19757 echo ""
19758 echo "Please make certain that you read the installation information here:"
19759 echo " faster => ${srcdir}/docs/install.html"
19760 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
19761 echo ""
19762 echo "and the configuration information here:"
19763 echo " faster => ${srcdir}/docs/configopts.html"
19764 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
19765 echo ""
19766 echo "before proceeding with ${_cv_gnu_make_command}."
19767 echo ""