2002-08-23 Phil Edwards <pme@gcc.gnu.org>
[official-gcc.git] / libstdc++-v3 / configure
blob18e363958fcb709671948a518f99d60f52f1619c
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-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
58 [default=none]"
59 ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
63 ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68 --with-gxx-include-dir the installation directory for include files"
69 ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported. Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
595 # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597 enableval="$enable_multilib"
598 case "${enableval}" in
599 yes) multilib=yes ;;
600 no) multilib=no ;;
601 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 esac
603 else
604 multilib=yes
607 # When building with srcdir == objdir, links to the source files will
608 # be created in directories within the target_subdir. We have to
609 # adjust toplevel_srcdir accordingly, so that configure finds
610 # install-sh and other auxiliary files that live in the top-level
611 # source directory.
612 if test "${srcdir}" = "."; then
613 if test -z "${with_target_subdir}"; then
614 toprel=".."
615 else
616 if test "${with_target_subdir}" != "."; then
617 toprel="${with_multisrctop}../.."
618 else
619 toprel="${with_multisrctop}.."
622 else
623 toprel=".."
625 ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 toplevel_srcdir=\${top_srcdir}/$toprel
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
650 # You will slowly go insane if you do not grok the following fact: when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/. `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf. Therefore, 'target' and
654 # 'host' will always be the same. This makes sense both for native and
655 # cross compilers, just think about it for a little while. :-)
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure. In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 # as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696 case $nonopt in
697 NONE)
698 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 fi ;;
701 *) host_alias=$nonopt ;;
702 esac ;;
703 esac
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717 case $nonopt in
718 NONE) target_alias=$host_alias ;;
719 *) target_alias=$nonopt ;;
720 esac ;;
721 esac
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735 case $nonopt in
736 NONE) build_alias=$host_alias ;;
737 *) build_alias=$nonopt ;;
738 esac ;;
739 esac
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
747 test "$host_alias" != "$target_alias" &&
748 test "$program_prefix$program_suffix$program_transform_name" = \
749 NONENONEs,x,x, &&
750 program_prefix=${target_alias}-
752 target_alias=${target_alias-$target}
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758 ac_tool_prefix=${host_alias}-
759 else
760 ac_tool_prefix=
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 int main() {
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 rm -rf conftest*
782 ac_cv_cygwin=yes
783 else
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 ac_cv_cygwin=no
789 rm -f conftest*
790 rm -f conftest*
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 rm -rf conftest*
811 ac_cv_mingw32=yes
812 else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 rm -rf conftest*
816 ac_cv_mingw32=no
818 rm -f conftest*
819 rm -f conftest*
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
827 #possibly test for the presence of the compiler sources here?
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in mawk gawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.$ac_ext | *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftestfile`
1521 if test "$*" != "X $srcdir/configure conftestfile" \
1522 && test "$*" != "X conftestfile $srcdir/configure"; then
1524 # If neither matched, then we have a broken ls. This can happen
1525 # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 # broken ls alias from the environment. This has actually
1527 # happened. Such a system could not be considered "sane".
1528 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1532 test "$2" = conftestfile
1534 then
1535 # Ok.
1537 else
1538 { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544 program_transform_name=
1545 else
1546 # Double any \ or $. echo might interpret backslashes.
1547 cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 rm -f conftestsed
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftestmake <<\EOF
1569 all:
1570 @echo 'ac_maketemp="${MAKE}"'
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577 eval ac_cv_prog_make_${ac_make}_set=no
1579 rm -f conftestmake
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 SET_MAKE=
1584 else
1585 echo "$ac_t""no" 1>&6
1586 SET_MAKE="MAKE=${MAKE-make}"
1590 PACKAGE=$PACKAGE
1592 VERSION=$gcc_version
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf. Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614 ACLOCAL=aclocal-${am__api_version}
1615 echo "$ac_t""found" 1>&6
1616 else
1617 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618 echo "$ac_t""missing" 1>&6
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627 AUTOCONF=autoconf
1628 echo "$ac_t""found" 1>&6
1629 else
1630 AUTOCONF="$missing_dir/missing autoconf"
1631 echo "$ac_t""missing" 1>&6
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640 AUTOMAKE=automake-${am__api_version}
1641 echo "$ac_t""found" 1>&6
1642 else
1643 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644 echo "$ac_t""missing" 1>&6
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOHEADER=autoheader
1654 echo "$ac_t""found" 1>&6
1655 else
1656 AUTOHEADER="$missing_dir/missing autoheader"
1657 echo "$ac_t""missing" 1>&6
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf. Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666 MAKEINFO=makeinfo
1667 echo "$ac_t""found" 1>&6
1668 else
1669 MAKEINFO="$missing_dir/missing makeinfo"
1670 echo "$ac_t""missing" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1968 lt_cv_file_magic_cmd=/usr/bin/file
1969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 irix5* | irix6*)
1973 case $host_os in
1974 irix5*)
1975 # this will be overridden with pass_all, but let us keep it just in case
1976 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1979 case $LD in
1980 *-32|*"-32 ") libmagic=32-bit;;
1981 *-n32|*"-n32 ") libmagic=N32;;
1982 *-64|*"-64 ") libmagic=64-bit;;
1983 *) libmagic=never-match;;
1984 esac
1985 # this will be overridden with pass_all, but let us keep it just in case
1986 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1988 esac
1989 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1990 lt_cv_deplibs_check_method=pass_all
1993 # This must be Linux ELF.
1994 linux-gnu*)
1995 case $host_cpu in
1996 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1997 lt_cv_deplibs_check_method=pass_all ;;
1999 # glibc up to 2.1.1 does not perform some relocations on ARM
2000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2001 esac
2002 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2005 netbsd*)
2006 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2007 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2008 else
2009 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2013 newsos6)
2014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2015 lt_cv_file_magic_cmd=/usr/bin/file
2016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2019 osf3* | osf4* | osf5*)
2020 # this will be overridden with pass_all, but let us keep it just in case
2021 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2022 lt_cv_file_magic_test_file=/shlib/libc.so
2023 lt_cv_deplibs_check_method=pass_all
2026 sco3.2v5*)
2027 lt_cv_deplibs_check_method=pass_all
2030 solaris*)
2031 lt_cv_deplibs_check_method=pass_all
2032 lt_cv_file_magic_test_file=/lib/libc.so
2035 sysv5uw[78]* | sysv4*uw2*)
2036 lt_cv_deplibs_check_method=pass_all
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040 case $host_vendor in
2041 ncr)
2042 lt_cv_deplibs_check_method=pass_all
2044 motorola)
2045 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]'
2046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2048 esac
2050 esac
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 rm -f conftest*
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 for ac_file in conftest.*; do
2067 case $ac_file in
2068 *.c) ;;
2069 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2070 esac
2071 done
2072 else
2073 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2075 rm -f conftest*
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2086 file_magic*)
2087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 case $MAGIC_CMD in
2095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2097 ?:/*)
2098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2101 ac_save_MAGIC_CMD="$MAGIC_CMD"
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 ac_dummy="/usr/bin:$PATH"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/${ac_tool_prefix}file; then
2107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108 if test -n "$file_magic_test_file"; then
2109 case $deplibs_check_method in
2110 "file_magic "*)
2111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114 egrep "$file_magic_regex" > /dev/null; then
2116 else
2117 cat <<EOF 1>&2
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such. This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem. Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2129 fi ;;
2130 esac
2132 break
2134 done
2135 IFS="$ac_save_ifs"
2136 MAGIC_CMD="$ac_save_MAGIC_CMD"
2138 esac
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143 echo "$ac_t""$MAGIC_CMD" 1>&6
2144 else
2145 echo "$ac_t""no" 1>&6
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149 if test -n "$ac_tool_prefix"; then
2150 echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 case $MAGIC_CMD in
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2159 ?:/*)
2160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163 ac_save_MAGIC_CMD="$MAGIC_CMD"
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="/usr/bin:$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/file; then
2169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170 if test -n "$file_magic_test_file"; then
2171 case $deplibs_check_method in
2172 "file_magic "*)
2173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176 egrep "$file_magic_regex" > /dev/null; then
2178 else
2179 cat <<EOF 1>&2
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such. This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem. Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2191 fi ;;
2192 esac
2194 break
2196 done
2197 IFS="$ac_save_ifs"
2198 MAGIC_CMD="$ac_save_MAGIC_CMD"
2200 esac
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205 echo "$ac_t""$MAGIC_CMD" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2210 else
2211 MAGIC_CMD=:
2217 esac
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$RANLIB"; then
2227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2235 break
2237 done
2238 IFS="$ac_save_ifs"
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243 echo "$ac_t""$RANLIB" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 else
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 ac_dummy="$PATH"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="ranlib"
2267 break
2269 done
2270 IFS="$ac_save_ifs"
2271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276 echo "$ac_t""$RANLIB" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 else
2282 RANLIB=":"
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293 if test -n "$STRIP"; then
2294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2297 ac_dummy="$PATH"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2302 break
2304 done
2305 IFS="$ac_save_ifs"
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310 echo "$ac_t""$STRIP" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2329 ac_dummy="$PATH"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="strip"
2334 break
2336 done
2337 IFS="$ac_save_ifs"
2338 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343 echo "$ac_t""$STRIP" 1>&6
2344 else
2345 echo "$ac_t""no" 1>&6
2348 else
2349 STRIP=":"
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365 enableval="$enable_libtool_lock"
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2374 withval="$with_pic"
2375 pic_mode="$withval"
2376 else
2377 pic_mode=default
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2383 # Some flags need to be propagated to the compiler or linker for good
2384 # libtool support.
2385 case $host in
2386 *-*-irix6*)
2387 # Find out which ABI we are using.
2388 echo '#line 2389 "configure"' > conftest.$ac_ext
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 case `/usr/bin/file conftest.$ac_objext` in
2391 *32-bit*)
2392 LD="${LD-ld} -32"
2394 *N32*)
2395 LD="${LD-ld} -n32"
2397 *64-bit*)
2398 LD="${LD-ld} -64"
2400 esac
2402 rm -rf conftest*
2405 *-*-sco3.2v5*)
2406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407 SAVE_CFLAGS="$CFLAGS"
2408 CFLAGS="$CFLAGS -belf"
2409 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2415 ac_ext=c
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2426 int main() {
2428 ; return 0; }
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 rm -rf conftest*
2432 lt_cv_cc_needs_belf=yes
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 lt_cv_cc_needs_belf=no
2439 rm -f conftest*
2440 ac_ext=c
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452 CFLAGS="$SAVE_CFLAGS"
2457 esac
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 ac_ext=C
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471 CXXCPP="${CXX-g++} -E"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <stdlib.h>
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 else
2483 echo "$ac_err" >&5
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -rf conftest*
2487 CXXCPP=/lib/cpp
2489 rm -f conftest*
2490 ac_cv_prog_CXXCPP="$CXXCPP"
2491 ac_ext=c
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs. It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already. You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2525 (set) 2>&1 |
2526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527 *ac_space=\ *)
2528 # `set' does not quote correctly, so add quotes (double-quote substitution
2529 # turns \\\\ into \\, and sed turns \\ into \).
2530 sed -n \
2531 -e "s/'/'\\\\''/g" \
2532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2535 # `set' quotes correctly as required by POSIX, so do not add quotes.
2536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2538 esac >> confcache
2539 if cmp -s $cache_file confcache; then
2541 else
2542 if test -w $cache_file; then
2543 echo "updating cache $cache_file"
2544 cat confcache > $cache_file
2545 else
2546 echo "not updating unwritable cache $cache_file"
2549 rm -f confcache
2552 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565 echo "loading cache $cache_file"
2566 . $cache_file
2567 else
2568 echo "creating cache $cache_file"
2569 > $cache_file
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2586 lt_save_CC="$CC"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2598 CC="$lt_save_CC"
2599 CFLAGS="$lt_save_CFLAGS"
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2613 # Check for c++ or library specific bits that don't require linking.
2614 #GLIBCPP_CHECK_COMPILER_VERSION
2615 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2616 echo "configure:2617: checking for GNU make" >&5
2617 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 _cv_gnu_make_command='' ;
2621 for a in "${MAKE-make}" make gmake gnumake ; do
2622 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2623 then
2624 _cv_gnu_make_command=$a ;
2625 break;
2627 done ;
2631 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2632 if test "x$_cv_gnu_make_command" != "x" ; then
2633 ifGNUmake='' ;
2634 else
2635 ifGNUmake='#' ;
2640 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2641 # Check whether --enable-debug or --disable-debug was given.
2642 if test "${enable_debug+set}" = set; then
2643 enableval="$enable_debug"
2644 case "${enableval}" in
2645 yes) enable_debug=yes ;;
2646 no) enable_debug=no ;;
2647 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2648 esac
2649 else
2650 enable_debug=no
2653 case "${enable_debug}" in
2654 yes)
2655 DEBUG_FLAGS='-O0 -ggdb3'
2657 no)
2658 DEBUG_FLAGS='-g'
2660 esac
2663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2664 echo "configure:2665: checking how to run the C preprocessor" >&5
2665 # On Suns, sometimes $CPP names a directory.
2666 if test -n "$CPP" && test -d "$CPP"; then
2667 CPP=
2669 if test -z "$CPP"; then
2670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 # This must be in double quotes, not single quotes, because CPP may get
2674 # substituted into the Makefile and "${CC-cc}" will confuse make.
2675 CPP="${CC-cc} -E"
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp.
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <assert.h>
2682 Syntax Error
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 else
2690 echo "$ac_err" >&5
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 CPP="${CC-cc} -E -traditional-cpp"
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax Error
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 else
2707 echo "$ac_err" >&5
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2710 rm -rf conftest*
2711 CPP="${CC-cc} -nologo -E"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <assert.h>
2716 Syntax Error
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 else
2724 echo "$ac_err" >&5
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 CPP=/lib/cpp
2730 rm -f conftest*
2732 rm -f conftest*
2734 rm -f conftest*
2735 ac_cv_prog_CPP="$CPP"
2737 CPP="$ac_cv_prog_CPP"
2738 else
2739 ac_cv_prog_CPP="$CPP"
2741 echo "$ac_t""$CPP" 1>&6
2744 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for cstdio to use" >&5
2746 # Check whether --enable-cstdio or --disable-cstdio was given.
2747 if test "${enable_cstdio+set}" = set; then
2748 enableval="$enable_cstdio"
2749 if test x$enable_cstdio = xno; then
2750 enable_cstdio=stdio
2752 else
2753 enable_cstdio=stdio
2757 enable_cstdio_flag=$enable_cstdio
2759 case x${enable_cstdio_flag} in
2760 xlibio)
2761 CSTDIO_H=config/io/c_io_libio.h
2762 BASIC_FILE_H=config/io/basic_file_libio.h
2763 BASIC_FILE_CC=config/io/basic_file_libio.cc
2764 echo "$ac_t""libio" 1>&6
2766 # see if we are on a system with libio native (ie, linux)
2767 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for libio.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <libio.h>
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782 rm -rf conftest*
2783 eval "ac_cv_header_$ac_safe=yes"
2784 else
2785 echo "$ac_err" >&5
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=no"
2791 rm -f conftest*
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 has_libio=yes
2796 else
2797 echo "$ac_t""no" 1>&6
2798 has_libio=no
2802 # Need to check and see what version of glibc is being used. If
2803 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2804 # compile most of libio for linux systems.
2805 if test x$has_libio = x"yes"; then
2806 case "$target" in
2807 *-*-linux*)
2808 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2809 echo "configure:2810: checking for glibc version >= 2.2" >&5
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2814 #include <features.h>
2815 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2817 #endif
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 egrep "ok" >/dev/null 2>&1; then
2822 rm -rf conftest*
2823 glibc_satisfactory=yes
2824 else
2825 rm -rf conftest*
2826 glibc_satisfactory=no
2828 rm -f conftest*
2830 echo "$ac_t""$glibc_satisfactory" 1>&6
2832 esac
2834 # XXX at the moment, admit defeat and force the recompilation
2835 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2836 glibc_satisfactory=no
2838 if test x$glibc_satisfactory = x"yes"; then
2839 need_libio=no
2840 need_wlibio=no
2841 else
2842 need_libio=yes
2843 # bkoz XXX need to add checks to enable this
2844 # pme XXX here's a first pass at such a check
2845 if test x$enable_c_mbchar != xno; then
2846 need_wlibio=yes
2847 else
2848 need_wlibio=no
2852 else
2853 # Using libio, but <libio.h> doesn't exist on the target system. . .
2854 need_libio=yes
2855 # bkoz XXX need to add checks to enable this
2856 # pme XXX here's a first pass at such a check
2857 if test x$enable_c_mbchar != xno; then
2858 need_wlibio=yes
2859 else
2860 need_wlibio=no
2864 xstdio | x | xno | xnone | xyes)
2865 # default
2866 CSTDIO_H=config/io/c_io_stdio.h
2867 BASIC_FILE_H=config/io/basic_file_stdio.h
2868 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2869 echo "$ac_t""stdio" 1>&6
2871 # We're not using stdio.
2872 need_libio=no
2873 need_wlibio=no
2876 echo "$enable_cstdio is an unknown io package" 1>&2
2877 exit 1
2879 esac
2884 # 2000-08-04 bkoz hack
2885 CCODECVT_C=config/io/c_io_libio_codecvt.c
2887 # 2000-08-04 bkoz hack
2891 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2892 GLIBCPP_BUILD_LIBIO_TRUE=
2893 GLIBCPP_BUILD_LIBIO_FALSE='#'
2894 else
2895 GLIBCPP_BUILD_LIBIO_TRUE='#'
2896 GLIBCPP_BUILD_LIBIO_FALSE=
2900 if test "$need_libio" = yes; then
2901 GLIBCPP_NEED_LIBIO_TRUE=
2902 GLIBCPP_NEED_LIBIO_FALSE='#'
2903 else
2904 GLIBCPP_NEED_LIBIO_TRUE='#'
2905 GLIBCPP_NEED_LIBIO_FALSE=
2909 if test "$need_wlibio" = yes; then
2910 GLIBCPP_NEED_WLIBIO_TRUE=
2911 GLIBCPP_NEED_WLIBIO_FALSE='#'
2912 else
2913 GLIBCPP_NEED_WLIBIO_TRUE='#'
2914 GLIBCPP_NEED_WLIBIO_FALSE=
2916 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2917 libio_la=../libio/libio.la
2918 else
2919 libio_la=
2924 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2925 echo "configure:2926: checking for clocale to use" >&5
2926 # Check whether --enable-clocale or --disable-clocale was given.
2927 if test "${enable_clocale+set}" = set; then
2928 enableval="$enable_clocale"
2929 if test x$enable_clocale = xno; then
2930 enable_clocale=no
2932 else
2933 enable_clocale=no
2937 enable_clocale_flag=$enable_clocale
2939 if test x$enable_clocale_flag = xno; then
2940 case x${target_os} in
2941 xlinux* | xgnu*)
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2946 #include <features.h>
2947 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2948 _GLIBCPP_ok
2949 #endif
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2954 rm -rf conftest*
2955 enable_clocale_flag=gnu
2956 else
2957 rm -rf conftest*
2958 enable_clocale_flag=generic
2960 rm -f conftest*
2963 # Test for bugs early in glibc-2.2.x series
2964 if test x$enable_clocale_flag = xgnu; then
2965 if test "$cross_compiling" = yes; then
2966 enable_clocale_flag=generic
2967 else
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2972 #define _GNU_SOURCE 1
2973 #include <locale.h>
2974 int main()
2976 const char __one[] = "Äuglein Augmen";
2977 const char __two[] = "Äuglein";
2978 int i;
2979 int j;
2980 __locale_t loc;
2981 __locale_t loc_dup;
2982 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2983 loc_dup = __duplocale(loc);
2984 i = __strcoll_l(__one, __two, loc);
2985 j = __strcoll_l(__one, __two, loc_dup);
2986 return 0;
2990 if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2991 then
2992 enable_clocale_flag=gnu
2993 else
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2996 rm -fr conftest*
2997 enable_clocale_flag=generic
2999 rm -fr conftest*
3004 # ... at some point put __strxfrm_l tests in as well.
3007 enable_clocale_flag=generic
3009 esac
3012 # Check whether --enable-nls or --disable-nls was given.
3013 if test "${enable_nls+set}" = set; then
3014 enableval="$enable_nls"
3016 else
3017 enable_nls=yes
3020 USE_NLS=no
3022 case x${enable_clocale_flag} in
3023 xgeneric)
3024 echo "$ac_t""generic" 1>&6
3026 CLOCALE_H=config/locale/generic/c_locale.h
3027 CLOCALE_CC=config/locale/generic/c_locale.cc
3028 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3029 CCOLLATE_CC=config/locale/generic/collate_members.cc
3030 CCTYPE_CC=config/locale/generic/ctype_members.cc
3031 CMESSAGES_H=config/locale/generic/messages_members.h
3032 CMESSAGES_CC=config/locale/generic/messages_members.cc
3033 CMONEY_CC=config/locale/generic/monetary_members.cc
3034 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3035 CTIME_CC=config/locale/generic/time_members.cc
3037 xgnu)
3038 echo "$ac_t""gnu" 1>&6
3040 # Declare intention to use gettext, and add support for specific
3041 # languages.
3042 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3043 ALL_LINGUAS="de fr"
3045 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3046 # Extract the first word of "msgfmt", so it can be a program name with args.
3047 set dummy msgfmt; ac_word=$2
3048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_word" >&5
3050 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 if test -n "$check_msgfmt"; then
3054 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3055 else
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3057 ac_dummy="$PATH"
3058 for ac_dir in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f $ac_dir/$ac_word; then
3061 ac_cv_prog_check_msgfmt="yes"
3062 break
3064 done
3065 IFS="$ac_save_ifs"
3066 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3069 check_msgfmt="$ac_cv_prog_check_msgfmt"
3070 if test -n "$check_msgfmt"; then
3071 echo "$ac_t""$check_msgfmt" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3076 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3077 USE_NLS=yes
3079 # Export the build objects.
3080 for ling in $ALL_LINGUAS; do \
3081 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3082 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3083 done
3087 CLOCALE_H=config/locale/gnu/c_locale.h
3088 CLOCALE_CC=config/locale/gnu/c_locale.cc
3089 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3090 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3091 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3092 CMESSAGES_H=config/locale/gnu/messages_members.h
3093 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3094 CMONEY_CC=config/locale/gnu/monetary_members.cc
3095 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3096 CTIME_CC=config/locale/gnu/time_members.cc
3098 xieee_1003.1-2001)
3099 echo "$ac_t""generic" 1>&6
3101 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3102 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3103 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3104 CCOLLATE_CC=config/locale/generic/collate_members.cc
3105 CCTYPE_CC=config/locale/generic/ctype_members.cc
3106 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3107 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3108 CMONEY_CC=config/locale/generic/monetary_members.cc
3109 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3110 CTIME_CC=config/locale/generic/time_members.cc
3113 echo "$enable_clocale is an unknown locale package" 1>&2
3114 exit 1
3116 esac
3118 # This is where the testsuite looks for locale catalogs, using the
3119 # -DLOCALEDIR define during testsuite compilation.
3120 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3135 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3136 if test "${enable_c_mbchar+set}" = set; then
3137 enableval="$enable_c_mbchar"
3138 case "$enableval" in
3139 yes) enable_c_mbchar=yes ;;
3140 no) enable_c_mbchar=no ;;
3141 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3142 esac
3143 else
3144 enable_c_mbchar=yes
3148 # Check whether --enable-c99 or --disable-c99 was given.
3149 if test "${enable_c99+set}" = set; then
3150 enableval="$enable_c99"
3151 case "$enableval" in
3152 yes) enable_c99=yes ;;
3153 no) enable_c99=no ;;
3154 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3155 esac
3156 else
3157 enable_c99=yes
3161 ac_ext=C
3162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3163 ac_cpp='$CXXCPP $CPPFLAGS'
3164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3166 cross_compiling=$ac_cv_prog_cxx_cross
3169 # Check for the existence of <math.h> functions used if C99 is enabled.
3170 ac_c99_math=yes;
3171 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3172 echo "configure:3173: checking for ISO C99 support in <math.h>" >&5
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <math.h>
3177 int main() {
3178 fpclassify(0.0);
3179 ; return 0; }
3181 if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 rm -rf conftest*
3187 ac_c99_math=no
3189 rm -f conftest*
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <math.h>
3194 int main() {
3195 isfinite(0.0);
3196 ; return 0; }
3198 if { (eval echo configure:3199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200 else
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 rm -rf conftest*
3204 ac_c99_math=no
3206 rm -f conftest*
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <math.h>
3211 int main() {
3212 isinf(0.0);
3213 ; return 0; }
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -rf conftest*
3221 ac_c99_math=no
3223 rm -f conftest*
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <math.h>
3228 int main() {
3229 isnan(0.0);
3230 ; return 0; }
3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 else
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 rm -rf conftest*
3238 ac_c99_math=no
3240 rm -f conftest*
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 #include <math.h>
3245 int main() {
3246 isnormal(0.0);
3247 ; return 0; }
3249 if { (eval echo configure:3250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 ac_c99_math=no
3257 rm -f conftest*
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 #include <math.h>
3262 int main() {
3263 signbit(0.0);
3264 ; return 0; }
3266 if { (eval echo configure:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 else
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 rm -rf conftest*
3272 ac_c99_math=no
3274 rm -f conftest*
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <math.h>
3279 int main() {
3280 isgreater(0.0,0.0);
3281 ; return 0; }
3283 if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285 else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 rm -rf conftest*
3289 ac_c99_math=no
3291 rm -f conftest*
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <math.h>
3296 int main() {
3297 isgreaterequal(0.0,0.0);
3298 ; return 0; }
3300 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -rf conftest*
3306 ac_c99_math=no
3308 rm -f conftest*
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 #include <math.h>
3313 int main() {
3314 isless(0.0,0.0);
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_c99_math=no
3325 rm -f conftest*
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 #include <math.h>
3330 int main() {
3331 islessequal(0.0,0.0);
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 ac_c99_math=no
3342 rm -f conftest*
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <math.h>
3347 int main() {
3348 islessgreater(0.0,0.0);
3349 ; return 0; }
3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 else
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 ac_c99_math=no
3359 rm -f conftest*
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <math.h>
3364 int main() {
3365 isunordered(0.0,0.0);
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 else
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 rm -rf conftest*
3374 ac_c99_math=no
3376 rm -f conftest*
3377 echo "$ac_t""$ac_c99_math" 1>&6
3379 # Check for the existence in <stdio.h> of vscanf, et. al.
3380 ac_c99_stdio=yes;
3381 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3382 echo "configure:3383: checking for ISO C99 support in <stdio.h>" >&5
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <stdio.h>
3387 int main() {
3388 snprintf("12", 0, "%i");
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 ac_c99_stdio=no
3399 rm -f conftest*
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <stdio.h>
3404 #include <stdarg.h>
3405 void foo(char* fmt, ...)
3406 {va_list args; va_start(args, fmt);
3407 vfscanf(stderr, "%i", args);}
3408 int main() {
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 else
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 rm -rf conftest*
3418 ac_c99_stdio=no
3420 rm -f conftest*
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <stdio.h>
3425 #include <stdarg.h>
3426 void foo(char* fmt, ...)
3427 {va_list args; va_start(args, fmt);
3428 vscanf("%i", args);}
3429 int main() {
3431 ; return 0; }
3433 if { (eval echo configure:3434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435 else
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3438 rm -rf conftest*
3439 ac_c99_stdio=no
3441 rm -f conftest*
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 #include <stdio.h>
3446 #include <stdarg.h>
3447 void foo(char* fmt, ...)
3448 {va_list args; va_start(args, fmt);
3449 vsnprintf(fmt, 0, "%i", args);}
3450 int main() {
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3456 else
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 rm -rf conftest*
3460 ac_c99_stdio=no
3462 rm -f conftest*
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <stdio.h>
3467 #include <stdarg.h>
3468 void foo(char* fmt, ...)
3469 {va_list args; va_start(args, fmt);
3470 vsscanf(fmt, "%i", args);}
3471 int main() {
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_c99_stdio=no
3483 rm -f conftest*
3484 echo "$ac_t""$ac_c99_stdio" 1>&6
3486 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3487 ac_c99_stdlib=yes;
3488 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3489 echo "configure:3490: checking for lldiv_t declaration" >&5
3490 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3492 else
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 #include <stdlib.h>
3498 int main() {
3499 lldiv_t mydivt;
3500 ; return 0; }
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 rm -rf conftest*
3504 ac_c99_lldiv_t=yes
3505 else
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3508 rm -rf conftest*
3509 ac_c99_lldiv_t=no
3511 rm -f conftest*
3515 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3517 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3518 echo "configure:3519: checking for ISO C99 support in <stdlib.h>" >&5
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdlib.h>
3523 int main() {
3524 char* tmp; strtof("gnu", &tmp);
3525 ; return 0; }
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 else
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 ac_c99_stdlib=no
3535 rm -f conftest*
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <stdlib.h>
3540 int main() {
3541 char* tmp; strtold("gnu", &tmp);
3542 ; return 0; }
3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 else
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 rm -rf conftest*
3550 ac_c99_stdlib=no
3552 rm -f conftest*
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 #include <stdlib.h>
3557 int main() {
3558 llabs(10);
3559 ; return 0; }
3561 if { (eval echo configure:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563 else
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 rm -rf conftest*
3567 ac_c99_stdlib=no
3569 rm -f conftest*
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 #include <stdlib.h>
3574 int main() {
3575 lldiv(10,1);
3576 ; return 0; }
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580 else
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 rm -rf conftest*
3584 ac_c99_stdlib=no
3586 rm -f conftest*
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 #include <stdlib.h>
3591 int main() {
3592 atoll("10");
3593 ; return 0; }
3595 if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597 else
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 rm -rf conftest*
3601 ac_c99_stdlib=no
3603 rm -f conftest*
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 #include <stdlib.h>
3608 int main() {
3609 _Exit(0);
3610 ; return 0; }
3612 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 ac_c99_stdlib=no
3620 rm -f conftest*
3621 if test x"$ac_c99_lldiv_t" = x"no"; then
3622 ac_c99_stdlib=no;
3623 fi;
3624 echo "$ac_t""$ac_c99_stdlib" 1>&6
3626 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3627 # XXX the wchar.h checks should be rolled into the general C99 bits.
3628 ac_c99_wchar=yes;
3629 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3630 echo "configure:3631: checking for additional ISO C99 support in <wchar.h>" >&5
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <wchar.h>
3635 int main() {
3636 wcstold(L"10.0", NULL);
3637 ; return 0; }
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641 else
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3644 rm -rf conftest*
3645 ac_c99_wchar=no
3647 rm -f conftest*
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <wchar.h>
3652 int main() {
3653 wcstoll(L"10", NULL, 10);
3654 ; return 0; }
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658 else
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 rm -rf conftest*
3662 ac_c99_wchar=no
3664 rm -f conftest*
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <wchar.h>
3669 int main() {
3670 wcstoull(L"10", NULL, 10);
3671 ; return 0; }
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 ac_c99_wchar=no
3681 rm -f conftest*
3682 echo "$ac_t""$ac_c99_wchar" 1>&6
3684 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3685 echo "configure:3686: checking for enabled ISO C99 support" >&5
3686 if test x"$ac_c99_math" = x"no" ||
3687 test x"$ac_c99_stdio" = x"no" ||
3688 test x"$ac_c99_stdlib" = x"no" ||
3689 test x"$ac_c99_wchar" = x"no"; then
3690 enable_c99=no;
3691 fi;
3692 echo "$ac_t""$enable_c99" 1>&6
3694 # Option parsed, now set things appropriately
3695 if test x"$enable_c99" = x"yes"; then
3696 cat >> confdefs.h <<\EOF
3697 #define _GLIBCPP_USE_C99 1
3702 ac_ext=c
3703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3707 cross_compiling=$ac_cv_prog_cc_cross
3711 # Check whether --enable-long-long or --disable-long-long was given.
3712 if test "${enable_long_long+set}" = set; then
3713 enableval="$enable_long_long"
3714 case "$enableval" in
3715 yes) enable_long_long=yes ;;
3716 no) enable_long_long=no ;;
3717 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3718 esac
3719 else
3720 enable_long_long=yes
3724 ac_ext=C
3725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3726 ac_cpp='$CXXCPP $CPPFLAGS'
3727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3729 cross_compiling=$ac_cv_prog_cxx_cross
3732 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3733 echo "configure:3734: checking for enabled long long I/O support" >&5
3734 # iostreams require strtoll, strtoull to compile
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <stdlib.h>
3739 int main() {
3740 char* tmp; strtoll("gnu", &tmp, 10);
3741 ; return 0; }
3743 if { (eval echo configure:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745 else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 rm -rf conftest*
3749 enable_long_long=no
3751 rm -f conftest*
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <stdlib.h>
3756 int main() {
3757 char* tmp; strtoull("gnu", &tmp, 10);
3758 ; return 0; }
3760 if { (eval echo configure:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 else
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 rm -rf conftest*
3766 enable_long_long=no
3768 rm -f conftest*
3770 # Option parsed, now set things appropriately
3771 if test x"$enable_long_long" = xyes; then
3772 cat >> confdefs.h <<\EOF
3773 #define _GLIBCPP_USE_LONG_LONG 1
3777 echo "$ac_t""$enable_long_long" 1>&6
3779 ac_ext=c
3780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3784 cross_compiling=$ac_cv_prog_cc_cross
3787 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3788 echo "configure:3789: checking for c header strategy to use" >&5
3789 # Check whether --enable-cheaders or --disable-cheaders was given.
3790 if test "${enable_cheaders+set}" = set; then
3791 enableval="$enable_cheaders"
3793 case "$enableval" in
3795 enable_cheaders=c
3797 c_std)
3798 enable_cheaders=c_std
3800 c_shadow)
3801 enable_cheaders=c_shadow
3803 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3805 esac
3806 else
3807 enable_cheaders=c_std
3810 echo "$ac_t""$enable_cheaders" 1>&6
3812 case "$enable_cheaders" in
3813 c_shadow)
3814 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3816 c_std)
3817 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3820 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3822 esac
3827 if test "$enable_cheaders" = c; then
3828 GLIBCPP_C_HEADERS_C_TRUE=
3829 GLIBCPP_C_HEADERS_C_FALSE='#'
3830 else
3831 GLIBCPP_C_HEADERS_C_TRUE='#'
3832 GLIBCPP_C_HEADERS_C_FALSE=
3836 if test "$enable_cheaders" = c_std; then
3837 GLIBCPP_C_HEADERS_C_STD_TRUE=
3838 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3839 else
3840 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3841 GLIBCPP_C_HEADERS_C_STD_FALSE=
3845 if test "$c_compatibility" = yes; then
3846 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3847 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3848 else
3849 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3850 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3854 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3855 echo "configure:3856: checking for thread model used by GCC" >&5
3856 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3857 echo "$ac_t""$target_thread_file" 1>&6
3859 if test $target_thread_file != single; then
3860 cat >> confdefs.h <<\EOF
3861 #define HAVE_GTHR_DEFAULT 1
3864 cat >> confdefs.h <<\EOF
3865 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3870 glibcpp_thread_h=gthr-$target_thread_file.h
3873 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3874 if test "${enable_cxx_flags+set}" = set; then
3875 enableval="$enable_cxx_flags"
3876 case "x$enableval" in
3877 xyes)
3878 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3879 xno|x)
3880 enable_cxx_flags='' ;;
3882 enable_cxx_flags="$enableval" ;;
3883 esac
3884 else
3885 enable_cxx_flags='none'
3889 if test "$enable_cxx_flags" = "none"; then
3890 enable_cxx_flags='';
3893 if test -n "$enable_cxx_flags"; then
3894 for f in $enable_cxx_flags; do
3895 case "$f" in
3896 -fhonor-std) ;;
3897 -*) ;;
3898 *) # and we're trying to pass /what/ exactly?
3899 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3900 esac
3901 done
3903 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3907 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3908 echo "configure:3909: checking for exception model to use" >&5
3910 ac_ext=C
3911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3912 ac_cpp='$CXXCPP $CPPFLAGS'
3913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3915 cross_compiling=$ac_cv_prog_cxx_cross
3917 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3918 if test "${enable_sjlj_exceptions+set}" = set; then
3919 enableval="$enable_sjlj_exceptions"
3921 else
3922 cat > conftest.$ac_ext << EOF
3923 #line 3924 "configure"
3924 struct S { ~S(); };
3925 void bar();
3926 void foo()
3928 S s;
3929 bar();
3932 old_CXXFLAGS="$CXXFLAGS"
3933 CXXFLAGS=-S
3934 if { (eval echo configure:3935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3935 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3936 enable_sjlj_exceptions=yes
3937 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3938 enable_sjlj_exceptions=no
3941 CXXFLAGS="$old_CXXFLAGS"
3942 rm -f conftest*
3945 if test x$enable_sjlj_exceptions = xyes; then
3946 cat >> confdefs.h <<\EOF
3947 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3950 ac_exception_model_name=sjlj
3951 elif test x$enable_sjlj_exceptions = xno; then
3952 ac_exception_model_name="call frame"
3953 else
3954 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3956 ac_ext=c
3957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3961 cross_compiling=$ac_cv_prog_cc_cross
3963 echo "$ac_t""$ac_exception_model_name" 1>&6
3966 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3967 echo "configure:3968: checking for use of libunwind" >&5
3968 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3969 if test "${enable_libunwind_exceptions+set}" = set; then
3970 enableval="$enable_libunwind_exceptions"
3971 use_libunwind_exceptions=$enableval
3972 else
3973 use_libunwind_exceptions=no
3976 echo "$ac_t""$use_libunwind_exceptions" 1>&6
3977 if test x"$use_libunwind_exceptions" = xyes; then
3978 LIBUNWIND_FLAG="-lunwind"
3979 else
3980 LIBUNWIND_FLAG=""
3984 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3985 if test "${enable_concept_checks+set}" = set; then
3986 enableval="$enable_concept_checks"
3987 case "$enableval" in
3988 yes) enable_concept_checks=yes ;;
3989 no) enable_concept_checks=no ;;
3990 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3991 esac
3992 else
3993 enable_concept_checks=no
3995 if test x"$enable_concept_checks" = xyes; then
3996 cat >> confdefs.h <<\EOF
3997 #define _GLIBCPP_CONCEPT_CHECKS 1
4003 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4004 for ac_hdr in string.h stdlib.h
4006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4008 echo "configure:4009: checking for $ac_hdr" >&5
4009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4011 else
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <$ac_hdr>
4017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4018 { (eval echo configure:4019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4020 if test -z "$ac_err"; then
4021 rm -rf conftest*
4022 eval "ac_cv_header_$ac_safe=yes"
4023 else
4024 echo "$ac_err" >&5
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4027 rm -rf conftest*
4028 eval "ac_cv_header_$ac_safe=no"
4030 rm -f conftest*
4032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4033 echo "$ac_t""yes" 1>&6
4034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4035 cat >> confdefs.h <<EOF
4036 #define $ac_tr_hdr 1
4039 else
4040 echo "$ac_t""no" 1>&6
4042 done
4045 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4047 # We are being configured with some form of cross compiler.
4048 GLIBCPP_IS_CROSS_COMPILING=1
4050 # This lets us hard-code the functionality we know we'll have in the cross
4051 # target environment. "Let" is a sugar-coated word placed on an especially
4052 # dull and tedious hack, actually.
4054 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4055 # that involve linking, can't be used:
4056 # "cannot open sim-crt0.o"
4057 # "cannot open crt0.o"
4058 # etc. All this is because there currently exists no unified, consistent
4059 # way for top level CC information to be passed down to target directories:
4060 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4061 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4062 # crosses can be removed.
4064 # If Canadian cross, then don't pick up tools from the build directory.
4065 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4066 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4067 CANADIAN=yes
4068 else
4069 CANADIAN=no
4072 # Construct crosses by hand, eliminating bits that need ld...
4073 # GLIBCPP_CHECK_COMPILER_FEATURES
4074 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4075 # GLIBCPP_CHECK_MATH_SUPPORT
4077 case "$target_alias" in
4078 *-linux*)
4079 os_include_dir="os/gnu-linux"
4080 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4081 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4082 fp.h locale.h float.h inttypes.h
4084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_hdr" >&5
4087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4089 else
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 #include <$ac_hdr>
4095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4096 { (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4098 if test -z "$ac_err"; then
4099 rm -rf conftest*
4100 eval "ac_cv_header_$ac_safe=yes"
4101 else
4102 echo "$ac_err" >&5
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 eval "ac_cv_header_$ac_safe=no"
4108 rm -f conftest*
4110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4111 echo "$ac_t""yes" 1>&6
4112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4113 cat >> confdefs.h <<EOF
4114 #define $ac_tr_hdr 1
4117 else
4118 echo "$ac_t""no" 1>&6
4120 done
4122 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4125 # If we're not using GNU ld, then there's no point in even trying these
4126 # tests. Check for that first. We should have already tested for gld
4127 # by now (in libtool), but require it now just to be safe...
4128 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4129 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4132 # The name set by libtool depends on the version of libtool. Shame on us
4133 # for depending on an impl detail, but c'est la vie. Older versions used
4134 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4135 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4136 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4137 # set (hence we're using an older libtool), then set it.
4138 if test x${with_gnu_ld+set} != xset; then
4139 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4140 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4141 with_gnu_ld=no
4142 else
4143 with_gnu_ld=$ac_cv_prog_gnu_ld
4147 # Start by getting the version number. I think the libtool test already
4148 # does some of this, but throws away the result.
4150 ldver=`$LD --version 2>/dev/null | head -1 | \
4151 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4153 glibcpp_gnu_ld_version=`echo $ldver | \
4154 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4156 # Set --gc-sections.
4157 if test "$with_gnu_ld" = "notbroken"; then
4158 # GNU ld it is! Joy and bunny rabbits!
4160 # All these tests are for C++; save the language and the compiler flags.
4161 # Need to do this so that g++ won't try to link in libstdc++
4162 ac_test_CFLAGS="${CFLAGS+set}"
4163 ac_save_CFLAGS="$CFLAGS"
4164 CFLAGS='-x c++ -Wl,--gc-sections'
4166 # Check for -Wl,--gc-sections
4167 # XXX This test is broken at the moment, as symbols required for
4168 # linking are now in libsupc++ (not built yet.....). In addition,
4169 # this test has cored on solaris in the past. In addition,
4170 # --gc-sections doesn't really work at the moment (keeps on discarding
4171 # used sections, first .eh_frame and now some of the glibc sections for
4172 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4173 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4174 echo "configure:4175: checking for ld that supports -Wl,--gc-sections" >&5
4175 if test "$cross_compiling" = yes; then
4176 ac_sectionLDflags=yes
4177 else
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4182 int main(void)
4184 try { throw 1; }
4185 catch (...) { };
4186 return 0;
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4191 then
4192 ac_sectionLDflags=yes
4193 else
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 rm -fr conftest*
4197 ac_sectionLDflags=no
4199 rm -fr conftest*
4202 if test "$ac_test_CFLAGS" = set; then
4203 CFLAGS="$ac_save_CFLAGS"
4204 else
4205 # this is the suspicious part
4206 CFLAGS=''
4208 if test "$ac_sectionLDflags" = "yes"; then
4209 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4211 echo "$ac_t""$ac_sectionLDflags" 1>&6
4214 # Set linker optimization flags.
4215 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4216 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4223 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4224 echo "configure:4225: checking for main in -lm" >&5
4225 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4228 else
4229 ac_save_LIBS="$LIBS"
4230 LIBS="-lm $LIBS"
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4235 int main() {
4236 main()
4237 ; return 0; }
4239 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 rm -rf conftest*
4241 eval "ac_cv_lib_$ac_lib_var=yes"
4242 else
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 rm -rf conftest*
4246 eval "ac_cv_lib_$ac_lib_var=no"
4248 rm -f conftest*
4249 LIBS="$ac_save_LIBS"
4252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4256 cat >> confdefs.h <<EOF
4257 #define $ac_tr_lib 1
4260 LIBS="-lm $LIBS"
4262 else
4263 echo "$ac_t""no" 1>&6
4266 for ac_func in nan copysignf
4268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4269 echo "configure:4270: checking for $ac_func" >&5
4270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4272 else
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* System header to define __stub macros and hopefully few prototypes,
4277 which can conflict with char $ac_func(); below. */
4278 #include <assert.h>
4279 /* Override any gcc2 internal prototype to avoid an error. */
4280 /* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4282 char $ac_func();
4284 int main() {
4286 /* The GNU C library defines this for functions which it implements
4287 to always fail with ENOSYS. Some functions are actually named
4288 something starting with __ and the normal name is an alias. */
4289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4290 choke me
4291 #else
4292 $ac_func();
4293 #endif
4295 ; return 0; }
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4298 rm -rf conftest*
4299 eval "ac_cv_func_$ac_func=yes"
4300 else
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4303 rm -rf conftest*
4304 eval "ac_cv_func_$ac_func=no"
4306 rm -f conftest*
4309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4312 cat >> confdefs.h <<EOF
4313 #define $ac_tr_func 1
4316 else
4317 echo "$ac_t""no" 1>&6
4318 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4320 done
4323 for ac_func in __signbit
4325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4326 echo "configure:4327: checking for $ac_func" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char $ac_func(); below. */
4335 #include <assert.h>
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char $ac_func();
4341 int main() {
4343 /* The GNU C library defines this for functions which it implements
4344 to always fail with ENOSYS. Some functions are actually named
4345 something starting with __ and the normal name is an alias. */
4346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4347 choke me
4348 #else
4349 $ac_func();
4350 #endif
4352 ; return 0; }
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 rm -rf conftest*
4356 eval "ac_cv_func_$ac_func=yes"
4357 else
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 rm -rf conftest*
4361 eval "ac_cv_func_$ac_func=no"
4363 rm -f conftest*
4366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4369 cat >> confdefs.h <<EOF
4370 #define $ac_tr_func 1
4373 else
4374 echo "$ac_t""no" 1>&6
4375 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4377 done
4379 for ac_func in __signbitf
4381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4382 echo "configure:4383: checking for $ac_func" >&5
4383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4385 else
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* System header to define __stub macros and hopefully few prototypes,
4390 which can conflict with char $ac_func(); below. */
4391 #include <assert.h>
4392 /* Override any gcc2 internal prototype to avoid an error. */
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4395 char $ac_func();
4397 int main() {
4399 /* The GNU C library defines this for functions which it implements
4400 to always fail with ENOSYS. Some functions are actually named
4401 something starting with __ and the normal name is an alias. */
4402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4403 choke me
4404 #else
4405 $ac_func();
4406 #endif
4408 ; return 0; }
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 rm -rf conftest*
4412 eval "ac_cv_func_$ac_func=yes"
4413 else
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4416 rm -rf conftest*
4417 eval "ac_cv_func_$ac_func=no"
4419 rm -f conftest*
4422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4425 cat >> confdefs.h <<EOF
4426 #define $ac_tr_func 1
4429 else
4430 echo "$ac_t""no" 1>&6
4431 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4433 done
4436 if test x$ac_cv_func_copysignl = x"yes"; then
4437 for ac_func in __signbitl
4439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_func" >&5
4441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4443 else
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func(); below. */
4449 #include <assert.h>
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char $ac_func();
4455 int main() {
4457 /* The GNU C library defines this for functions which it implements
4458 to always fail with ENOSYS. Some functions are actually named
4459 something starting with __ and the normal name is an alias. */
4460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 choke me
4462 #else
4463 $ac_func();
4464 #endif
4466 ; return 0; }
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 rm -rf conftest*
4470 eval "ac_cv_func_$ac_func=yes"
4471 else
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 rm -rf conftest*
4475 eval "ac_cv_func_$ac_func=no"
4477 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_func 1
4487 else
4488 echo "$ac_t""no" 1>&6
4489 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4491 done
4499 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4500 echo "configure:4501: checking for mbstate_t" >&5
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <wchar.h>
4505 int main() {
4506 mbstate_t teststate;
4507 ; return 0; }
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 rm -rf conftest*
4511 have_mbstate_t=yes
4512 else
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 rm -rf conftest*
4516 have_mbstate_t=no
4518 rm -f conftest*
4519 echo "$ac_t""$have_mbstate_t" 1>&6
4520 if test x"$have_mbstate_t" = xyes; then
4521 cat >> confdefs.h <<\EOF
4522 #define HAVE_MBSTATE_T 1
4527 for ac_hdr in wchar.h
4529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_hdr" >&5
4532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4534 else
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 #include <$ac_hdr>
4540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4541 { (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4543 if test -z "$ac_err"; then
4544 rm -rf conftest*
4545 eval "ac_cv_header_$ac_safe=yes"
4546 else
4547 echo "$ac_err" >&5
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 eval "ac_cv_header_$ac_safe=no"
4553 rm -f conftest*
4555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4558 cat >> confdefs.h <<EOF
4559 #define $ac_tr_hdr 1
4561 ac_has_wchar_h=yes
4562 else
4563 echo "$ac_t""no" 1>&6
4564 ac_has_wchar_h=no
4566 done
4568 for ac_hdr in wctype.h
4570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4572 echo "configure:4573: checking for $ac_hdr" >&5
4573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4575 else
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 #include <$ac_hdr>
4581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4582 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4584 if test -z "$ac_err"; then
4585 rm -rf conftest*
4586 eval "ac_cv_header_$ac_safe=yes"
4587 else
4588 echo "$ac_err" >&5
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 rm -rf conftest*
4592 eval "ac_cv_header_$ac_safe=no"
4594 rm -f conftest*
4596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4599 cat >> confdefs.h <<EOF
4600 #define $ac_tr_hdr 1
4602 ac_has_wctype_h=yes
4603 else
4604 echo "$ac_t""no" 1>&6
4605 ac_has_wctype_h=no
4607 done
4610 if test x"$ac_has_wchar_h" = xyes &&
4611 test x"$ac_has_wctype_h" = xyes &&
4612 test x"$enable_c_mbchar" != xno; then
4614 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4615 echo "configure:4616: checking for WCHAR_MIN and WCHAR_MAX" >&5
4616 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4619 #include <wchar.h>
4620 int main() {
4621 int i = WCHAR_MIN; int j = WCHAR_MAX;
4622 ; return 0; }
4624 if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4625 rm -rf conftest*
4626 has_wchar_minmax=yes
4627 else
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 rm -rf conftest*
4631 has_wchar_minmax=no
4633 rm -f conftest*
4634 echo "$ac_t""$has_wchar_minmax" 1>&6
4636 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4637 echo "configure:4638: checking for WEOF" >&5
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4642 #include <wchar.h>
4643 #include <stddef.h>
4644 int main() {
4645 wint_t i = WEOF;
4646 ; return 0; }
4648 if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4649 rm -rf conftest*
4650 has_weof=yes
4651 else
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 rm -rf conftest*
4655 has_weof=no
4657 rm -f conftest*
4658 echo "$ac_t""$has_weof" 1>&6
4660 ac_wfuncs=yes
4661 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4673 #include <assert.h>
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char $ac_func();
4679 int main() {
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685 choke me
4686 #else
4687 $ac_func();
4688 #endif
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 eval "ac_cv_func_$ac_func=yes"
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_func_$ac_func=no"
4701 rm -f conftest*
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_func 1
4711 else
4712 echo "$ac_t""no" 1>&6
4714 ac_wfuncs=no
4716 done
4719 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4720 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4721 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4722 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4723 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4724 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_func" >&5
4728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* System header to define __stub macros and hopefully few prototypes,
4735 which can conflict with char $ac_func(); below. */
4736 #include <assert.h>
4737 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4740 char $ac_func();
4742 int main() {
4744 /* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4748 choke me
4749 #else
4750 $ac_func();
4751 #endif
4753 ; return 0; }
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 rm -rf conftest*
4757 eval "ac_cv_func_$ac_func=yes"
4758 else
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 rm -rf conftest*
4762 eval "ac_cv_func_$ac_func=no"
4764 rm -f conftest*
4767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4770 cat >> confdefs.h <<EOF
4771 #define $ac_tr_func 1
4774 else
4775 echo "$ac_t""no" 1>&6
4777 ac_wfuncs=no
4779 done
4782 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4783 echo "configure:4784: checking for ISO C99 wchar_t support" >&5
4784 if test x"$has_weof" = xyes &&
4785 test x"$has_wchar_minmax" = xyes &&
4786 test x"$ac_wfuncs" = xyes; then
4787 ac_isoC99_wchar_t=yes
4788 else
4789 ac_isoC99_wchar_t=no
4791 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4793 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4795 echo "configure:4796: checking for iconv.h" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <iconv.h>
4804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4808 rm -rf conftest*
4809 eval "ac_cv_header_$ac_safe=yes"
4810 else
4811 echo "$ac_err" >&5
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 rm -rf conftest*
4815 eval "ac_cv_header_$ac_safe=no"
4817 rm -f conftest*
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 ac_has_iconv_h=yes
4822 else
4823 echo "$ac_t""no" 1>&6
4824 ac_has_iconv_h=no
4827 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4828 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4829 echo "configure:4830: checking for langinfo.h" >&5
4830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 #include <langinfo.h>
4838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4839 { (eval echo configure:4840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4841 if test -z "$ac_err"; then
4842 rm -rf conftest*
4843 eval "ac_cv_header_$ac_safe=yes"
4844 else
4845 echo "$ac_err" >&5
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 rm -rf conftest*
4849 eval "ac_cv_header_$ac_safe=no"
4851 rm -f conftest*
4853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_has_langinfo_h=yes
4856 else
4857 echo "$ac_t""no" 1>&6
4858 ac_has_langinfo_h=no
4862 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4863 echo "configure:4864: checking for iconv in -liconv" >&5
4864 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 ac_save_LIBS="$LIBS"
4869 LIBS="-liconv $LIBS"
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char iconv();
4878 int main() {
4879 iconv()
4880 ; return 0; }
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 rm -rf conftest*
4884 eval "ac_cv_lib_$ac_lib_var=yes"
4885 else
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 rm -rf conftest*
4889 eval "ac_cv_lib_$ac_lib_var=no"
4891 rm -f conftest*
4892 LIBS="$ac_save_LIBS"
4895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 libiconv="-liconv"
4898 else
4899 echo "$ac_t""no" 1>&6
4902 ac_save_LIBS="$LIBS"
4903 LIBS="$LIBS $libiconv"
4905 for ac_func in iconv_open iconv_close iconv nl_langinfo
4907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4908 echo "configure:4909: checking for $ac_func" >&5
4909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* System header to define __stub macros and hopefully few prototypes,
4916 which can conflict with char $ac_func(); below. */
4917 #include <assert.h>
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char $ac_func();
4923 int main() {
4925 /* The GNU C library defines this for functions which it implements
4926 to always fail with ENOSYS. Some functions are actually named
4927 something starting with __ and the normal name is an alias. */
4928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929 choke me
4930 #else
4931 $ac_func();
4932 #endif
4934 ; return 0; }
4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4937 rm -rf conftest*
4938 eval "ac_cv_func_$ac_func=yes"
4939 else
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4942 rm -rf conftest*
4943 eval "ac_cv_func_$ac_func=no"
4945 rm -f conftest*
4948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4951 cat >> confdefs.h <<EOF
4952 #define $ac_tr_func 1
4955 ac_XPG2funcs=yes
4956 else
4957 echo "$ac_t""no" 1>&6
4958 ac_XPG2funcs=no
4960 done
4963 LIBS="$ac_save_LIBS"
4965 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4966 echo "configure:4967: checking for XPG2 wchar_t support" >&5
4967 if test x"$ac_has_iconv_h" = xyes &&
4968 test x"$ac_has_langinfo_h" = xyes &&
4969 test x"$ac_XPG2funcs" = xyes; then
4970 ac_XPG2_wchar_t=yes
4971 else
4972 ac_XPG2_wchar_t=no
4974 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4976 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4977 echo "configure:4978: checking for enabled wchar_t specializations" >&5
4978 if test x"$ac_isoC99_wchar_t" = xyes &&
4979 test x"$ac_XPG2_wchar_t" = xyes; then
4980 cat >> confdefs.h <<\EOF
4981 #define _GLIBCPP_USE_WCHAR_T 1
4984 echo "$ac_t"""yes"" 1>&6
4985 else
4986 echo "$ac_t"""no"" 1>&6
4988 else
4989 echo "configure: warning: wchar_t support disabled." 1>&2
4992 cat >> confdefs.h <<\EOF
4993 #define HAVE_COPYSIGN 1
4996 cat >> confdefs.h <<\EOF
4997 #define HAVE_COPYSIGNF 1
5000 cat >> confdefs.h <<\EOF
5001 #define HAVE_FINITE 1
5004 cat >> confdefs.h <<\EOF
5005 #define HAVE_FINITEF 1
5008 cat >> confdefs.h <<\EOF
5009 #define HAVE_FREXPF 1
5012 cat >> confdefs.h <<\EOF
5013 #define HAVE_HYPOTF 1
5016 cat >> confdefs.h <<\EOF
5017 #define HAVE_ISINF 1
5020 cat >> confdefs.h <<\EOF
5021 #define HAVE_ISINFF 1
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_ISNAN 1
5028 cat >> confdefs.h <<\EOF
5029 #define HAVE_ISNANF 1
5032 cat >> confdefs.h <<\EOF
5033 #define HAVE_SINCOS 1
5036 cat >> confdefs.h <<\EOF
5037 #define HAVE_SINCOSF 1
5040 if test x"long_double_math_on_this_cpu" = x"yes"; then
5041 cat >> confdefs.h <<\EOF
5042 #define HAVE_FINITEL 1
5045 cat >> confdefs.h <<\EOF
5046 #define HAVE_HYPOTL 1
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_ISINFL 1
5053 cat >> confdefs.h <<\EOF
5054 #define HAVE_ISNANL 1
5059 *-hpux*)
5060 # Check for available headers.
5061 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5062 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5063 fp.h locale.h float.h inttypes.h
5065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5067 echo "configure:5068: checking for $ac_hdr" >&5
5068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070 else
5071 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5074 #include <$ac_hdr>
5076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5077 { (eval echo configure:5078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5079 if test -z "$ac_err"; then
5080 rm -rf conftest*
5081 eval "ac_cv_header_$ac_safe=yes"
5082 else
5083 echo "$ac_err" >&5
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 rm -rf conftest*
5087 eval "ac_cv_header_$ac_safe=no"
5089 rm -f conftest*
5091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5094 cat >> confdefs.h <<EOF
5095 #define $ac_tr_hdr 1
5098 else
5099 echo "$ac_t""no" 1>&6
5101 done
5103 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5106 # If we're not using GNU ld, then there's no point in even trying these
5107 # tests. Check for that first. We should have already tested for gld
5108 # by now (in libtool), but require it now just to be safe...
5109 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5110 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5113 # The name set by libtool depends on the version of libtool. Shame on us
5114 # for depending on an impl detail, but c'est la vie. Older versions used
5115 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5116 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5117 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5118 # set (hence we're using an older libtool), then set it.
5119 if test x${with_gnu_ld+set} != xset; then
5120 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5121 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5122 with_gnu_ld=no
5123 else
5124 with_gnu_ld=$ac_cv_prog_gnu_ld
5128 # Start by getting the version number. I think the libtool test already
5129 # does some of this, but throws away the result.
5131 ldver=`$LD --version 2>/dev/null | head -1 | \
5132 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5134 glibcpp_gnu_ld_version=`echo $ldver | \
5135 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5137 # Set --gc-sections.
5138 if test "$with_gnu_ld" = "notbroken"; then
5139 # GNU ld it is! Joy and bunny rabbits!
5141 # All these tests are for C++; save the language and the compiler flags.
5142 # Need to do this so that g++ won't try to link in libstdc++
5143 ac_test_CFLAGS="${CFLAGS+set}"
5144 ac_save_CFLAGS="$CFLAGS"
5145 CFLAGS='-x c++ -Wl,--gc-sections'
5147 # Check for -Wl,--gc-sections
5148 # XXX This test is broken at the moment, as symbols required for
5149 # linking are now in libsupc++ (not built yet.....). In addition,
5150 # this test has cored on solaris in the past. In addition,
5151 # --gc-sections doesn't really work at the moment (keeps on discarding
5152 # used sections, first .eh_frame and now some of the glibc sections for
5153 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5154 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5155 echo "configure:5156: checking for ld that supports -Wl,--gc-sections" >&5
5156 if test "$cross_compiling" = yes; then
5157 ac_sectionLDflags=yes
5158 else
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5163 int main(void)
5165 try { throw 1; }
5166 catch (...) { };
5167 return 0;
5171 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5172 then
5173 ac_sectionLDflags=yes
5174 else
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 rm -fr conftest*
5178 ac_sectionLDflags=no
5180 rm -fr conftest*
5183 if test "$ac_test_CFLAGS" = set; then
5184 CFLAGS="$ac_save_CFLAGS"
5185 else
5186 # this is the suspicious part
5187 CFLAGS=''
5189 if test "$ac_sectionLDflags" = "yes"; then
5190 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5192 echo "$ac_t""$ac_sectionLDflags" 1>&6
5195 # Set linker optimization flags.
5196 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5197 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5204 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5205 echo "configure:5206: checking for main in -lm" >&5
5206 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5209 else
5210 ac_save_LIBS="$LIBS"
5211 LIBS="-lm $LIBS"
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5216 int main() {
5217 main()
5218 ; return 0; }
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5221 rm -rf conftest*
5222 eval "ac_cv_lib_$ac_lib_var=yes"
5223 else
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 rm -rf conftest*
5227 eval "ac_cv_lib_$ac_lib_var=no"
5229 rm -f conftest*
5230 LIBS="$ac_save_LIBS"
5233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5237 cat >> confdefs.h <<EOF
5238 #define $ac_tr_lib 1
5241 LIBS="-lm $LIBS"
5243 else
5244 echo "$ac_t""no" 1>&6
5247 for ac_func in nan copysignf
5249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5250 echo "configure:5251: checking for $ac_func" >&5
5251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5253 else
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 /* System header to define __stub macros and hopefully few prototypes,
5258 which can conflict with char $ac_func(); below. */
5259 #include <assert.h>
5260 /* Override any gcc2 internal prototype to avoid an error. */
5261 /* We use char because int might match the return type of a gcc2
5262 builtin and then its argument prototype would still apply. */
5263 char $ac_func();
5265 int main() {
5267 /* The GNU C library defines this for functions which it implements
5268 to always fail with ENOSYS. Some functions are actually named
5269 something starting with __ and the normal name is an alias. */
5270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5271 choke me
5272 #else
5273 $ac_func();
5274 #endif
5276 ; return 0; }
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 rm -rf conftest*
5280 eval "ac_cv_func_$ac_func=yes"
5281 else
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5284 rm -rf conftest*
5285 eval "ac_cv_func_$ac_func=no"
5287 rm -f conftest*
5290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5293 cat >> confdefs.h <<EOF
5294 #define $ac_tr_func 1
5297 else
5298 echo "$ac_t""no" 1>&6
5299 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5301 done
5304 for ac_func in __signbit
5306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_func" >&5
5308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5310 else
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func(); below. */
5316 #include <assert.h>
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5320 char $ac_func();
5322 int main() {
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5328 choke me
5329 #else
5330 $ac_func();
5331 #endif
5333 ; return 0; }
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 rm -rf conftest*
5337 eval "ac_cv_func_$ac_func=yes"
5338 else
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 rm -rf conftest*
5342 eval "ac_cv_func_$ac_func=no"
5344 rm -f conftest*
5347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_func 1
5354 else
5355 echo "$ac_t""no" 1>&6
5356 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5358 done
5360 for ac_func in __signbitf
5362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5363 echo "configure:5364: checking for $ac_func" >&5
5364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 /* System header to define __stub macros and hopefully few prototypes,
5371 which can conflict with char $ac_func(); below. */
5372 #include <assert.h>
5373 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5376 char $ac_func();
5378 int main() {
5380 /* The GNU C library defines this for functions which it implements
5381 to always fail with ENOSYS. Some functions are actually named
5382 something starting with __ and the normal name is an alias. */
5383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5384 choke me
5385 #else
5386 $ac_func();
5387 #endif
5389 ; return 0; }
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 rm -rf conftest*
5393 eval "ac_cv_func_$ac_func=yes"
5394 else
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 rm -rf conftest*
5398 eval "ac_cv_func_$ac_func=no"
5400 rm -f conftest*
5403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5406 cat >> confdefs.h <<EOF
5407 #define $ac_tr_func 1
5410 else
5411 echo "$ac_t""no" 1>&6
5412 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5414 done
5417 if test x$ac_cv_func_copysignl = x"yes"; then
5418 for ac_func in __signbitl
5420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5421 echo "configure:5422: checking for $ac_func" >&5
5422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* System header to define __stub macros and hopefully few prototypes,
5429 which can conflict with char $ac_func(); below. */
5430 #include <assert.h>
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char $ac_func();
5436 int main() {
5438 /* The GNU C library defines this for functions which it implements
5439 to always fail with ENOSYS. Some functions are actually named
5440 something starting with __ and the normal name is an alias. */
5441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5442 choke me
5443 #else
5444 $ac_func();
5445 #endif
5447 ; return 0; }
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 rm -rf conftest*
5451 eval "ac_cv_func_$ac_func=yes"
5452 else
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 rm -rf conftest*
5456 eval "ac_cv_func_$ac_func=no"
5458 rm -f conftest*
5461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5462 echo "$ac_t""yes" 1>&6
5463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464 cat >> confdefs.h <<EOF
5465 #define $ac_tr_func 1
5468 else
5469 echo "$ac_t""no" 1>&6
5470 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5472 done
5480 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5481 echo "configure:5482: checking for mbstate_t" >&5
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 #include <wchar.h>
5486 int main() {
5487 mbstate_t teststate;
5488 ; return 0; }
5490 if { (eval echo configure:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5491 rm -rf conftest*
5492 have_mbstate_t=yes
5493 else
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 rm -rf conftest*
5497 have_mbstate_t=no
5499 rm -f conftest*
5500 echo "$ac_t""$have_mbstate_t" 1>&6
5501 if test x"$have_mbstate_t" = xyes; then
5502 cat >> confdefs.h <<\EOF
5503 #define HAVE_MBSTATE_T 1
5508 for ac_hdr in wchar.h
5510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_hdr" >&5
5513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5515 else
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 #include <$ac_hdr>
5521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5522 { (eval echo configure:5523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5524 if test -z "$ac_err"; then
5525 rm -rf conftest*
5526 eval "ac_cv_header_$ac_safe=yes"
5527 else
5528 echo "$ac_err" >&5
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5531 rm -rf conftest*
5532 eval "ac_cv_header_$ac_safe=no"
5534 rm -f conftest*
5536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5537 echo "$ac_t""yes" 1>&6
5538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5539 cat >> confdefs.h <<EOF
5540 #define $ac_tr_hdr 1
5542 ac_has_wchar_h=yes
5543 else
5544 echo "$ac_t""no" 1>&6
5545 ac_has_wchar_h=no
5547 done
5549 for ac_hdr in wctype.h
5551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_hdr" >&5
5554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5556 else
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 #include <$ac_hdr>
5562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5563 { (eval echo configure:5564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5565 if test -z "$ac_err"; then
5566 rm -rf conftest*
5567 eval "ac_cv_header_$ac_safe=yes"
5568 else
5569 echo "$ac_err" >&5
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 rm -rf conftest*
5573 eval "ac_cv_header_$ac_safe=no"
5575 rm -f conftest*
5577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5580 cat >> confdefs.h <<EOF
5581 #define $ac_tr_hdr 1
5583 ac_has_wctype_h=yes
5584 else
5585 echo "$ac_t""no" 1>&6
5586 ac_has_wctype_h=no
5588 done
5591 if test x"$ac_has_wchar_h" = xyes &&
5592 test x"$ac_has_wctype_h" = xyes &&
5593 test x"$enable_c_mbchar" != xno; then
5595 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5596 echo "configure:5597: checking for WCHAR_MIN and WCHAR_MAX" >&5
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 #include <wchar.h>
5601 int main() {
5602 int i = WCHAR_MIN; int j = WCHAR_MAX;
5603 ; return 0; }
5605 if { (eval echo configure:5606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5606 rm -rf conftest*
5607 has_wchar_minmax=yes
5608 else
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -rf conftest*
5612 has_wchar_minmax=no
5614 rm -f conftest*
5615 echo "$ac_t""$has_wchar_minmax" 1>&6
5617 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5618 echo "configure:5619: checking for WEOF" >&5
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5623 #include <wchar.h>
5624 #include <stddef.h>
5625 int main() {
5626 wint_t i = WEOF;
5627 ; return 0; }
5629 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5630 rm -rf conftest*
5631 has_weof=yes
5632 else
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 rm -rf conftest*
5636 has_weof=no
5638 rm -f conftest*
5639 echo "$ac_t""$has_weof" 1>&6
5641 ac_wfuncs=yes
5642 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_func" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5648 else
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func(); below. */
5654 #include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5658 char $ac_func();
5660 int main() {
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5666 choke me
5667 #else
5668 $ac_func();
5669 #endif
5671 ; return 0; }
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 rm -rf conftest*
5675 eval "ac_cv_func_$ac_func=yes"
5676 else
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 rm -rf conftest*
5680 eval "ac_cv_func_$ac_func=no"
5682 rm -f conftest*
5685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_func 1
5692 else
5693 echo "$ac_t""no" 1>&6
5695 ac_wfuncs=no
5697 done
5700 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5701 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5702 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5703 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5704 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5705 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_func" >&5
5709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 /* System header to define __stub macros and hopefully few prototypes,
5716 which can conflict with char $ac_func(); below. */
5717 #include <assert.h>
5718 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5721 char $ac_func();
5723 int main() {
5725 /* The GNU C library defines this for functions which it implements
5726 to always fail with ENOSYS. Some functions are actually named
5727 something starting with __ and the normal name is an alias. */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 choke me
5730 #else
5731 $ac_func();
5732 #endif
5734 ; return 0; }
5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=yes"
5739 else
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5742 rm -rf conftest*
5743 eval "ac_cv_func_$ac_func=no"
5745 rm -f conftest*
5748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5749 echo "$ac_t""yes" 1>&6
5750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5751 cat >> confdefs.h <<EOF
5752 #define $ac_tr_func 1
5755 else
5756 echo "$ac_t""no" 1>&6
5758 ac_wfuncs=no
5760 done
5763 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5764 echo "configure:5765: checking for ISO C99 wchar_t support" >&5
5765 if test x"$has_weof" = xyes &&
5766 test x"$has_wchar_minmax" = xyes &&
5767 test x"$ac_wfuncs" = xyes; then
5768 ac_isoC99_wchar_t=yes
5769 else
5770 ac_isoC99_wchar_t=no
5772 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5774 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5775 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5776 echo "configure:5777: checking for iconv.h" >&5
5777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5779 else
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 #include <iconv.h>
5785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5786 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5788 if test -z "$ac_err"; then
5789 rm -rf conftest*
5790 eval "ac_cv_header_$ac_safe=yes"
5791 else
5792 echo "$ac_err" >&5
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -rf conftest*
5796 eval "ac_cv_header_$ac_safe=no"
5798 rm -f conftest*
5800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_has_iconv_h=yes
5803 else
5804 echo "$ac_t""no" 1>&6
5805 ac_has_iconv_h=no
5808 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5809 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5810 echo "configure:5811: checking for langinfo.h" >&5
5811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5813 else
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <langinfo.h>
5819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5820 { (eval echo configure:5821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5822 if test -z "$ac_err"; then
5823 rm -rf conftest*
5824 eval "ac_cv_header_$ac_safe=yes"
5825 else
5826 echo "$ac_err" >&5
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=no"
5832 rm -f conftest*
5834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5835 echo "$ac_t""yes" 1>&6
5836 ac_has_langinfo_h=yes
5837 else
5838 echo "$ac_t""no" 1>&6
5839 ac_has_langinfo_h=no
5843 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5844 echo "configure:5845: checking for iconv in -liconv" >&5
5845 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5848 else
5849 ac_save_LIBS="$LIBS"
5850 LIBS="-liconv $LIBS"
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5857 char iconv();
5859 int main() {
5860 iconv()
5861 ; return 0; }
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 rm -rf conftest*
5865 eval "ac_cv_lib_$ac_lib_var=yes"
5866 else
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5869 rm -rf conftest*
5870 eval "ac_cv_lib_$ac_lib_var=no"
5872 rm -f conftest*
5873 LIBS="$ac_save_LIBS"
5876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 libiconv="-liconv"
5879 else
5880 echo "$ac_t""no" 1>&6
5883 ac_save_LIBS="$LIBS"
5884 LIBS="$LIBS $libiconv"
5886 for ac_func in iconv_open iconv_close iconv nl_langinfo
5888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5889 echo "configure:5890: checking for $ac_func" >&5
5890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5892 else
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func(); below. */
5898 #include <assert.h>
5899 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5902 char $ac_func();
5904 int main() {
5906 /* The GNU C library defines this for functions which it implements
5907 to always fail with ENOSYS. Some functions are actually named
5908 something starting with __ and the normal name is an alias. */
5909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 choke me
5911 #else
5912 $ac_func();
5913 #endif
5915 ; return 0; }
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 rm -rf conftest*
5919 eval "ac_cv_func_$ac_func=yes"
5920 else
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 rm -rf conftest*
5924 eval "ac_cv_func_$ac_func=no"
5926 rm -f conftest*
5929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5932 cat >> confdefs.h <<EOF
5933 #define $ac_tr_func 1
5936 ac_XPG2funcs=yes
5937 else
5938 echo "$ac_t""no" 1>&6
5939 ac_XPG2funcs=no
5941 done
5944 LIBS="$ac_save_LIBS"
5946 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5947 echo "configure:5948: checking for XPG2 wchar_t support" >&5
5948 if test x"$ac_has_iconv_h" = xyes &&
5949 test x"$ac_has_langinfo_h" = xyes &&
5950 test x"$ac_XPG2funcs" = xyes; then
5951 ac_XPG2_wchar_t=yes
5952 else
5953 ac_XPG2_wchar_t=no
5955 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5957 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5958 echo "configure:5959: checking for enabled wchar_t specializations" >&5
5959 if test x"$ac_isoC99_wchar_t" = xyes &&
5960 test x"$ac_XPG2_wchar_t" = xyes; then
5961 cat >> confdefs.h <<\EOF
5962 #define _GLIBCPP_USE_WCHAR_T 1
5965 echo "$ac_t"""yes"" 1>&6
5966 else
5967 echo "$ac_t"""no"" 1>&6
5969 else
5970 echo "configure: warning: wchar_t support disabled." 1>&2
5973 os_include_dir="os/hpux"
5974 cat >> confdefs.h <<\EOF
5975 #define HAVE_COPYSIGN 1
5978 cat >> confdefs.h <<\EOF
5979 #define HAVE_COPYSIGNF 1
5982 cat >> confdefs.h <<\EOF
5983 #define HAVE_FREXPF 1
5986 cat >> confdefs.h <<\EOF
5987 #define HAVE_HYPOT 1
5990 case "$target_alias" in
5991 *-hpux10*)
5992 cat >> confdefs.h <<\EOF
5993 #define HAVE_FINITE 1
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_FINITEF 1
6000 cat >> confdefs.h <<\EOF
6001 #define HAVE_ISINF 1
6004 cat >> confdefs.h <<\EOF
6005 #define HAVE_ISINFF 1
6008 cat >> confdefs.h <<\EOF
6009 #define HAVE_ISNAN 1
6012 cat >> confdefs.h <<\EOF
6013 #define HAVE_ISNANF 1
6017 esac
6020 *-netbsd*)
6021 # Check for available headers.
6022 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6023 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6024 fp.h locale.h float.h inttypes.h
6026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_hdr" >&5
6029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 #include <$ac_hdr>
6037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6038 { (eval echo configure:6039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6040 if test -z "$ac_err"; then
6041 rm -rf conftest*
6042 eval "ac_cv_header_$ac_safe=yes"
6043 else
6044 echo "$ac_err" >&5
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 rm -rf conftest*
6048 eval "ac_cv_header_$ac_safe=no"
6050 rm -f conftest*
6052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6053 echo "$ac_t""yes" 1>&6
6054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6055 cat >> confdefs.h <<EOF
6056 #define $ac_tr_hdr 1
6059 else
6060 echo "$ac_t""no" 1>&6
6062 done
6064 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6067 # If we're not using GNU ld, then there's no point in even trying these
6068 # tests. Check for that first. We should have already tested for gld
6069 # by now (in libtool), but require it now just to be safe...
6070 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6071 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6074 # The name set by libtool depends on the version of libtool. Shame on us
6075 # for depending on an impl detail, but c'est la vie. Older versions used
6076 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6077 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6078 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6079 # set (hence we're using an older libtool), then set it.
6080 if test x${with_gnu_ld+set} != xset; then
6081 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6082 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6083 with_gnu_ld=no
6084 else
6085 with_gnu_ld=$ac_cv_prog_gnu_ld
6089 # Start by getting the version number. I think the libtool test already
6090 # does some of this, but throws away the result.
6092 ldver=`$LD --version 2>/dev/null | head -1 | \
6093 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6095 glibcpp_gnu_ld_version=`echo $ldver | \
6096 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6098 # Set --gc-sections.
6099 if test "$with_gnu_ld" = "notbroken"; then
6100 # GNU ld it is! Joy and bunny rabbits!
6102 # All these tests are for C++; save the language and the compiler flags.
6103 # Need to do this so that g++ won't try to link in libstdc++
6104 ac_test_CFLAGS="${CFLAGS+set}"
6105 ac_save_CFLAGS="$CFLAGS"
6106 CFLAGS='-x c++ -Wl,--gc-sections'
6108 # Check for -Wl,--gc-sections
6109 # XXX This test is broken at the moment, as symbols required for
6110 # linking are now in libsupc++ (not built yet.....). In addition,
6111 # this test has cored on solaris in the past. In addition,
6112 # --gc-sections doesn't really work at the moment (keeps on discarding
6113 # used sections, first .eh_frame and now some of the glibc sections for
6114 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6115 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6116 echo "configure:6117: checking for ld that supports -Wl,--gc-sections" >&5
6117 if test "$cross_compiling" = yes; then
6118 ac_sectionLDflags=yes
6119 else
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6124 int main(void)
6126 try { throw 1; }
6127 catch (...) { };
6128 return 0;
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6133 then
6134 ac_sectionLDflags=yes
6135 else
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 rm -fr conftest*
6139 ac_sectionLDflags=no
6141 rm -fr conftest*
6144 if test "$ac_test_CFLAGS" = set; then
6145 CFLAGS="$ac_save_CFLAGS"
6146 else
6147 # this is the suspicious part
6148 CFLAGS=''
6150 if test "$ac_sectionLDflags" = "yes"; then
6151 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6153 echo "$ac_t""$ac_sectionLDflags" 1>&6
6156 # Set linker optimization flags.
6157 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6158 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6165 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6166 echo "configure:6167: checking for main in -lm" >&5
6167 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6170 else
6171 ac_save_LIBS="$LIBS"
6172 LIBS="-lm $LIBS"
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6177 int main() {
6178 main()
6179 ; return 0; }
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 rm -rf conftest*
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6184 else
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 rm -rf conftest*
6188 eval "ac_cv_lib_$ac_lib_var=no"
6190 rm -f conftest*
6191 LIBS="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_lib 1
6202 LIBS="-lm $LIBS"
6204 else
6205 echo "$ac_t""no" 1>&6
6208 for ac_func in nan copysignf
6210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_func" >&5
6212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6214 else
6215 cat > conftest.$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6218 /* System header to define __stub macros and hopefully few prototypes,
6219 which can conflict with char $ac_func(); below. */
6220 #include <assert.h>
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */
6224 char $ac_func();
6226 int main() {
6228 /* The GNU C library defines this for functions which it implements
6229 to always fail with ENOSYS. Some functions are actually named
6230 something starting with __ and the normal name is an alias. */
6231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 choke me
6233 #else
6234 $ac_func();
6235 #endif
6237 ; return 0; }
6239 if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 rm -rf conftest*
6241 eval "ac_cv_func_$ac_func=yes"
6242 else
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 rm -rf conftest*
6246 eval "ac_cv_func_$ac_func=no"
6248 rm -f conftest*
6251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6254 cat >> confdefs.h <<EOF
6255 #define $ac_tr_func 1
6258 else
6259 echo "$ac_t""no" 1>&6
6260 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6262 done
6265 for ac_func in __signbit
6267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_func" >&5
6269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6271 else
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6275 /* System header to define __stub macros and hopefully few prototypes,
6276 which can conflict with char $ac_func(); below. */
6277 #include <assert.h>
6278 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6281 char $ac_func();
6283 int main() {
6285 /* The GNU C library defines this for functions which it implements
6286 to always fail with ENOSYS. Some functions are actually named
6287 something starting with __ and the normal name is an alias. */
6288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6289 choke me
6290 #else
6291 $ac_func();
6292 #endif
6294 ; return 0; }
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 rm -rf conftest*
6298 eval "ac_cv_func_$ac_func=yes"
6299 else
6300 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6302 rm -rf conftest*
6303 eval "ac_cv_func_$ac_func=no"
6305 rm -f conftest*
6308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6309 echo "$ac_t""yes" 1>&6
6310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6311 cat >> confdefs.h <<EOF
6312 #define $ac_tr_func 1
6315 else
6316 echo "$ac_t""no" 1>&6
6317 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6319 done
6321 for ac_func in __signbitf
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327 else
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6333 #include <assert.h>
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char $ac_func();
6339 int main() {
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6345 choke me
6346 #else
6347 $ac_func();
6348 #endif
6350 ; return 0; }
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6353 rm -rf conftest*
6354 eval "ac_cv_func_$ac_func=yes"
6355 else
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 rm -rf conftest*
6359 eval "ac_cv_func_$ac_func=no"
6361 rm -f conftest*
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h <<EOF
6368 #define $ac_tr_func 1
6371 else
6372 echo "$ac_t""no" 1>&6
6373 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6375 done
6378 if test x$ac_cv_func_copysignl = x"yes"; then
6379 for ac_func in __signbitl
6381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_func" >&5
6383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385 else
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6391 #include <assert.h>
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395 char $ac_func();
6397 int main() {
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403 choke me
6404 #else
6405 $ac_func();
6406 #endif
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 rm -rf conftest*
6412 eval "ac_cv_func_$ac_func=yes"
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 eval "ac_cv_func_$ac_func=no"
6419 rm -f conftest*
6422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h <<EOF
6426 #define $ac_tr_func 1
6429 else
6430 echo "$ac_t""no" 1>&6
6431 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6433 done
6441 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6442 echo "configure:6443: checking for mbstate_t" >&5
6443 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 #include <wchar.h>
6447 int main() {
6448 mbstate_t teststate;
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6452 rm -rf conftest*
6453 have_mbstate_t=yes
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 have_mbstate_t=no
6460 rm -f conftest*
6461 echo "$ac_t""$have_mbstate_t" 1>&6
6462 if test x"$have_mbstate_t" = xyes; then
6463 cat >> confdefs.h <<\EOF
6464 #define HAVE_MBSTATE_T 1
6469 for ac_hdr in wchar.h
6471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6473 echo "configure:6474: checking for $ac_hdr" >&5
6474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6476 else
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6480 #include <$ac_hdr>
6482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6483 { (eval echo configure:6484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6485 if test -z "$ac_err"; then
6486 rm -rf conftest*
6487 eval "ac_cv_header_$ac_safe=yes"
6488 else
6489 echo "$ac_err" >&5
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 rm -rf conftest*
6493 eval "ac_cv_header_$ac_safe=no"
6495 rm -f conftest*
6497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6500 cat >> confdefs.h <<EOF
6501 #define $ac_tr_hdr 1
6503 ac_has_wchar_h=yes
6504 else
6505 echo "$ac_t""no" 1>&6
6506 ac_has_wchar_h=no
6508 done
6510 for ac_hdr in wctype.h
6512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_hdr" >&5
6515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 #include <$ac_hdr>
6523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6524 { (eval echo configure:6525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6526 if test -z "$ac_err"; then
6527 rm -rf conftest*
6528 eval "ac_cv_header_$ac_safe=yes"
6529 else
6530 echo "$ac_err" >&5
6531 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 rm -rf conftest*
6534 eval "ac_cv_header_$ac_safe=no"
6536 rm -f conftest*
6538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6541 cat >> confdefs.h <<EOF
6542 #define $ac_tr_hdr 1
6544 ac_has_wctype_h=yes
6545 else
6546 echo "$ac_t""no" 1>&6
6547 ac_has_wctype_h=no
6549 done
6552 if test x"$ac_has_wchar_h" = xyes &&
6553 test x"$ac_has_wctype_h" = xyes &&
6554 test x"$enable_c_mbchar" != xno; then
6556 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6557 echo "configure:6558: checking for WCHAR_MIN and WCHAR_MAX" >&5
6558 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 #include <wchar.h>
6562 int main() {
6563 int i = WCHAR_MIN; int j = WCHAR_MAX;
6564 ; return 0; }
6566 if { (eval echo configure:6567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6567 rm -rf conftest*
6568 has_wchar_minmax=yes
6569 else
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 rm -rf conftest*
6573 has_wchar_minmax=no
6575 rm -f conftest*
6576 echo "$ac_t""$has_wchar_minmax" 1>&6
6578 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6579 echo "configure:6580: checking for WEOF" >&5
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6584 #include <wchar.h>
6585 #include <stddef.h>
6586 int main() {
6587 wint_t i = WEOF;
6588 ; return 0; }
6590 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6591 rm -rf conftest*
6592 has_weof=yes
6593 else
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 rm -rf conftest*
6597 has_weof=no
6599 rm -f conftest*
6600 echo "$ac_t""$has_weof" 1>&6
6602 ac_wfuncs=yes
6603 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_func" >&5
6607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6609 else
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* System header to define __stub macros and hopefully few prototypes,
6614 which can conflict with char $ac_func(); below. */
6615 #include <assert.h>
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char $ac_func();
6621 int main() {
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627 choke me
6628 #else
6629 $ac_func();
6630 #endif
6632 ; return 0; }
6634 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 rm -rf conftest*
6636 eval "ac_cv_func_$ac_func=yes"
6637 else
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 rm -rf conftest*
6641 eval "ac_cv_func_$ac_func=no"
6643 rm -f conftest*
6646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6649 cat >> confdefs.h <<EOF
6650 #define $ac_tr_func 1
6653 else
6654 echo "$ac_t""no" 1>&6
6656 ac_wfuncs=no
6658 done
6661 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6662 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6663 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6664 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6665 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6666 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6669 echo "configure:6670: checking for $ac_func" >&5
6670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6672 else
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char $ac_func(); below. */
6678 #include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6682 char $ac_func();
6684 int main() {
6686 /* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
6689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6690 choke me
6691 #else
6692 $ac_func();
6693 #endif
6695 ; return 0; }
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 rm -rf conftest*
6699 eval "ac_cv_func_$ac_func=yes"
6700 else
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6703 rm -rf conftest*
6704 eval "ac_cv_func_$ac_func=no"
6706 rm -f conftest*
6709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6712 cat >> confdefs.h <<EOF
6713 #define $ac_tr_func 1
6716 else
6717 echo "$ac_t""no" 1>&6
6719 ac_wfuncs=no
6721 done
6724 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6725 echo "configure:6726: checking for ISO C99 wchar_t support" >&5
6726 if test x"$has_weof" = xyes &&
6727 test x"$has_wchar_minmax" = xyes &&
6728 test x"$ac_wfuncs" = xyes; then
6729 ac_isoC99_wchar_t=yes
6730 else
6731 ac_isoC99_wchar_t=no
6733 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6735 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6736 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6737 echo "configure:6738: checking for iconv.h" >&5
6738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6740 else
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 #include <iconv.h>
6746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6747 { (eval echo configure:6748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6749 if test -z "$ac_err"; then
6750 rm -rf conftest*
6751 eval "ac_cv_header_$ac_safe=yes"
6752 else
6753 echo "$ac_err" >&5
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 rm -rf conftest*
6757 eval "ac_cv_header_$ac_safe=no"
6759 rm -f conftest*
6761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6763 ac_has_iconv_h=yes
6764 else
6765 echo "$ac_t""no" 1>&6
6766 ac_has_iconv_h=no
6769 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6770 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6771 echo "configure:6772: checking for langinfo.h" >&5
6772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6773 echo $ac_n "(cached) $ac_c" 1>&6
6774 else
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 #include <langinfo.h>
6780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6781 { (eval echo configure:6782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6783 if test -z "$ac_err"; then
6784 rm -rf conftest*
6785 eval "ac_cv_header_$ac_safe=yes"
6786 else
6787 echo "$ac_err" >&5
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 rm -rf conftest*
6791 eval "ac_cv_header_$ac_safe=no"
6793 rm -f conftest*
6795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6796 echo "$ac_t""yes" 1>&6
6797 ac_has_langinfo_h=yes
6798 else
6799 echo "$ac_t""no" 1>&6
6800 ac_has_langinfo_h=no
6804 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6805 echo "configure:6806: checking for iconv in -liconv" >&5
6806 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 ac_save_LIBS="$LIBS"
6811 LIBS="-liconv $LIBS"
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818 char iconv();
6820 int main() {
6821 iconv()
6822 ; return 0; }
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 rm -rf conftest*
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6827 else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
6831 eval "ac_cv_lib_$ac_lib_var=no"
6833 rm -f conftest*
6834 LIBS="$ac_save_LIBS"
6837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 libiconv="-liconv"
6840 else
6841 echo "$ac_t""no" 1>&6
6844 ac_save_LIBS="$LIBS"
6845 LIBS="$LIBS $libiconv"
6847 for ac_func in iconv_open iconv_close iconv nl_langinfo
6849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6850 echo "configure:6851: checking for $ac_func" >&5
6851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6853 else
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char $ac_func(); below. */
6859 #include <assert.h>
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6863 char $ac_func();
6865 int main() {
6867 /* The GNU C library defines this for functions which it implements
6868 to always fail with ENOSYS. Some functions are actually named
6869 something starting with __ and the normal name is an alias. */
6870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6871 choke me
6872 #else
6873 $ac_func();
6874 #endif
6876 ; return 0; }
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 rm -rf conftest*
6880 eval "ac_cv_func_$ac_func=yes"
6881 else
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 rm -rf conftest*
6885 eval "ac_cv_func_$ac_func=no"
6887 rm -f conftest*
6890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6891 echo "$ac_t""yes" 1>&6
6892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6893 cat >> confdefs.h <<EOF
6894 #define $ac_tr_func 1
6897 ac_XPG2funcs=yes
6898 else
6899 echo "$ac_t""no" 1>&6
6900 ac_XPG2funcs=no
6902 done
6905 LIBS="$ac_save_LIBS"
6907 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6908 echo "configure:6909: checking for XPG2 wchar_t support" >&5
6909 if test x"$ac_has_iconv_h" = xyes &&
6910 test x"$ac_has_langinfo_h" = xyes &&
6911 test x"$ac_XPG2funcs" = xyes; then
6912 ac_XPG2_wchar_t=yes
6913 else
6914 ac_XPG2_wchar_t=no
6916 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6918 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6919 echo "configure:6920: checking for enabled wchar_t specializations" >&5
6920 if test x"$ac_isoC99_wchar_t" = xyes &&
6921 test x"$ac_XPG2_wchar_t" = xyes; then
6922 cat >> confdefs.h <<\EOF
6923 #define _GLIBCPP_USE_WCHAR_T 1
6926 echo "$ac_t"""yes"" 1>&6
6927 else
6928 echo "$ac_t"""no"" 1>&6
6930 else
6931 echo "configure: warning: wchar_t support disabled." 1>&2
6934 os_include_dir="os/bsd/netbsd"
6935 cat >> confdefs.h <<\EOF
6936 #define HAVE_COPYSIGN 1
6939 cat >> confdefs.h <<\EOF
6940 #define HAVE_COPYSIGNF 1
6943 cat >> confdefs.h <<\EOF
6944 #define HAVE_FINITEF 1
6947 cat >> confdefs.h <<\EOF
6948 #define HAVE_FINITE 1
6951 cat >> confdefs.h <<\EOF
6952 #define HAVE_FREXPF 1
6955 cat >> confdefs.h <<\EOF
6956 #define HAVE_HYPOTF 1
6959 cat >> confdefs.h <<\EOF
6960 #define HAVE_ISINF 1
6963 cat >> confdefs.h <<\EOF
6964 #define HAVE_ISINFF 1
6967 cat >> confdefs.h <<\EOF
6968 #define HAVE_ISNAN 1
6971 cat >> confdefs.h <<\EOF
6972 #define HAVE_ISNANF 1
6975 if test x"long_double_math_on_this_cpu" = x"yes"; then
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_FINITEL 1
6980 cat >> confdefs.h <<\EOF
6981 #define HAVE_ISINFL 1
6984 cat >> confdefs.h <<\EOF
6985 #define HAVE_ISNANL 1
6990 *-mingw32*)
6991 for ac_hdr in sys/types.h locale.h float.h
6993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6995 echo "configure:6996: checking for $ac_hdr" >&5
6996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
6999 cat > conftest.$ac_ext <<EOF
7000 #line 7001 "configure"
7001 #include "confdefs.h"
7002 #include <$ac_hdr>
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7008 rm -rf conftest*
7009 eval "ac_cv_header_$ac_safe=yes"
7010 else
7011 echo "$ac_err" >&5
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 rm -rf conftest*
7015 eval "ac_cv_header_$ac_safe=no"
7017 rm -f conftest*
7019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7020 echo "$ac_t""yes" 1>&6
7021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7022 cat >> confdefs.h <<EOF
7023 #define $ac_tr_hdr 1
7026 else
7027 echo "$ac_t""no" 1>&6
7029 done
7032 # If we're not using GNU ld, then there's no point in even trying these
7033 # tests. Check for that first. We should have already tested for gld
7034 # by now (in libtool), but require it now just to be safe...
7035 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7036 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7039 # The name set by libtool depends on the version of libtool. Shame on us
7040 # for depending on an impl detail, but c'est la vie. Older versions used
7041 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7042 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7043 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7044 # set (hence we're using an older libtool), then set it.
7045 if test x${with_gnu_ld+set} != xset; then
7046 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7047 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7048 with_gnu_ld=no
7049 else
7050 with_gnu_ld=$ac_cv_prog_gnu_ld
7054 # Start by getting the version number. I think the libtool test already
7055 # does some of this, but throws away the result.
7057 ldver=`$LD --version 2>/dev/null | head -1 | \
7058 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7060 glibcpp_gnu_ld_version=`echo $ldver | \
7061 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7063 # Set --gc-sections.
7064 if test "$with_gnu_ld" = "notbroken"; then
7065 # GNU ld it is! Joy and bunny rabbits!
7067 # All these tests are for C++; save the language and the compiler flags.
7068 # Need to do this so that g++ won't try to link in libstdc++
7069 ac_test_CFLAGS="${CFLAGS+set}"
7070 ac_save_CFLAGS="$CFLAGS"
7071 CFLAGS='-x c++ -Wl,--gc-sections'
7073 # Check for -Wl,--gc-sections
7074 # XXX This test is broken at the moment, as symbols required for
7075 # linking are now in libsupc++ (not built yet.....). In addition,
7076 # this test has cored on solaris in the past. In addition,
7077 # --gc-sections doesn't really work at the moment (keeps on discarding
7078 # used sections, first .eh_frame and now some of the glibc sections for
7079 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7080 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7081 echo "configure:7082: checking for ld that supports -Wl,--gc-sections" >&5
7082 if test "$cross_compiling" = yes; then
7083 ac_sectionLDflags=yes
7084 else
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7089 int main(void)
7091 try { throw 1; }
7092 catch (...) { };
7093 return 0;
7097 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7098 then
7099 ac_sectionLDflags=yes
7100 else
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7103 rm -fr conftest*
7104 ac_sectionLDflags=no
7106 rm -fr conftest*
7109 if test "$ac_test_CFLAGS" = set; then
7110 CFLAGS="$ac_save_CFLAGS"
7111 else
7112 # this is the suspicious part
7113 CFLAGS=''
7115 if test "$ac_sectionLDflags" = "yes"; then
7116 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7118 echo "$ac_t""$ac_sectionLDflags" 1>&6
7121 # Set linker optimization flags.
7122 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7123 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7130 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7131 echo "configure:7132: checking for main in -lm" >&5
7132 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7135 else
7136 ac_save_LIBS="$LIBS"
7137 LIBS="-lm $LIBS"
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7142 int main() {
7143 main()
7144 ; return 0; }
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 rm -rf conftest*
7148 eval "ac_cv_lib_$ac_lib_var=yes"
7149 else
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 rm -rf conftest*
7153 eval "ac_cv_lib_$ac_lib_var=no"
7155 rm -f conftest*
7156 LIBS="$ac_save_LIBS"
7159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7163 cat >> confdefs.h <<EOF
7164 #define $ac_tr_lib 1
7167 LIBS="-lm $LIBS"
7169 else
7170 echo "$ac_t""no" 1>&6
7173 for ac_func in nan copysignf
7175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7176 echo "configure:7177: checking for $ac_func" >&5
7177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7179 else
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* System header to define __stub macros and hopefully few prototypes,
7184 which can conflict with char $ac_func(); below. */
7185 #include <assert.h>
7186 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7189 char $ac_func();
7191 int main() {
7193 /* The GNU C library defines this for functions which it implements
7194 to always fail with ENOSYS. Some functions are actually named
7195 something starting with __ and the normal name is an alias. */
7196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7197 choke me
7198 #else
7199 $ac_func();
7200 #endif
7202 ; return 0; }
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205 rm -rf conftest*
7206 eval "ac_cv_func_$ac_func=yes"
7207 else
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7210 rm -rf conftest*
7211 eval "ac_cv_func_$ac_func=no"
7213 rm -f conftest*
7216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7219 cat >> confdefs.h <<EOF
7220 #define $ac_tr_func 1
7223 else
7224 echo "$ac_t""no" 1>&6
7225 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7227 done
7230 for ac_func in __signbit
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7236 else
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7242 #include <assert.h>
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246 char $ac_func();
7248 int main() {
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7254 choke me
7255 #else
7256 $ac_func();
7257 #endif
7259 ; return 0; }
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 rm -rf conftest*
7263 eval "ac_cv_func_$ac_func=yes"
7264 else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 eval "ac_cv_func_$ac_func=no"
7270 rm -f conftest*
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_func 1
7280 else
7281 echo "$ac_t""no" 1>&6
7282 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7284 done
7286 for ac_func in __signbitf
7288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_func" >&5
7290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7292 else
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func(); below. */
7298 #include <assert.h>
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char $ac_func();
7304 int main() {
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7310 choke me
7311 #else
7312 $ac_func();
7313 #endif
7315 ; return 0; }
7317 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 rm -rf conftest*
7319 eval "ac_cv_func_$ac_func=yes"
7320 else
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7323 rm -rf conftest*
7324 eval "ac_cv_func_$ac_func=no"
7326 rm -f conftest*
7329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7332 cat >> confdefs.h <<EOF
7333 #define $ac_tr_func 1
7336 else
7337 echo "$ac_t""no" 1>&6
7338 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7340 done
7343 if test x$ac_cv_func_copysignl = x"yes"; then
7344 for ac_func in __signbitl
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7350 else
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func(); below. */
7356 #include <assert.h>
7357 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7360 char $ac_func();
7362 int main() {
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 choke me
7369 #else
7370 $ac_func();
7371 #endif
7373 ; return 0; }
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7376 rm -rf conftest*
7377 eval "ac_cv_func_$ac_func=yes"
7378 else
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 rm -rf conftest*
7382 eval "ac_cv_func_$ac_func=no"
7384 rm -f conftest*
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7394 else
7395 echo "$ac_t""no" 1>&6
7396 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7398 done
7406 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7407 echo "configure:7408: checking for mbstate_t" >&5
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 #include <wchar.h>
7412 int main() {
7413 mbstate_t teststate;
7414 ; return 0; }
7416 if { (eval echo configure:7417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7417 rm -rf conftest*
7418 have_mbstate_t=yes
7419 else
7420 echo "configure: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 rm -rf conftest*
7423 have_mbstate_t=no
7425 rm -f conftest*
7426 echo "$ac_t""$have_mbstate_t" 1>&6
7427 if test x"$have_mbstate_t" = xyes; then
7428 cat >> confdefs.h <<\EOF
7429 #define HAVE_MBSTATE_T 1
7434 for ac_hdr in wchar.h
7436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7438 echo "configure:7439: checking for $ac_hdr" >&5
7439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7440 echo $ac_n "(cached) $ac_c" 1>&6
7441 else
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 #include <$ac_hdr>
7447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7448 { (eval echo configure:7449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7450 if test -z "$ac_err"; then
7451 rm -rf conftest*
7452 eval "ac_cv_header_$ac_safe=yes"
7453 else
7454 echo "$ac_err" >&5
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 rm -rf conftest*
7458 eval "ac_cv_header_$ac_safe=no"
7460 rm -f conftest*
7462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7463 echo "$ac_t""yes" 1>&6
7464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7465 cat >> confdefs.h <<EOF
7466 #define $ac_tr_hdr 1
7468 ac_has_wchar_h=yes
7469 else
7470 echo "$ac_t""no" 1>&6
7471 ac_has_wchar_h=no
7473 done
7475 for ac_hdr in wctype.h
7477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7479 echo "configure:7480: checking for $ac_hdr" >&5
7480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7482 else
7483 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 #include <$ac_hdr>
7488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7489 { (eval echo configure:7490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7491 if test -z "$ac_err"; then
7492 rm -rf conftest*
7493 eval "ac_cv_header_$ac_safe=yes"
7494 else
7495 echo "$ac_err" >&5
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 rm -rf conftest*
7499 eval "ac_cv_header_$ac_safe=no"
7501 rm -f conftest*
7503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7504 echo "$ac_t""yes" 1>&6
7505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7506 cat >> confdefs.h <<EOF
7507 #define $ac_tr_hdr 1
7509 ac_has_wctype_h=yes
7510 else
7511 echo "$ac_t""no" 1>&6
7512 ac_has_wctype_h=no
7514 done
7517 if test x"$ac_has_wchar_h" = xyes &&
7518 test x"$ac_has_wctype_h" = xyes &&
7519 test x"$enable_c_mbchar" != xno; then
7521 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7522 echo "configure:7523: checking for WCHAR_MIN and WCHAR_MAX" >&5
7523 cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526 #include <wchar.h>
7527 int main() {
7528 int i = WCHAR_MIN; int j = WCHAR_MAX;
7529 ; return 0; }
7531 if { (eval echo configure:7532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7532 rm -rf conftest*
7533 has_wchar_minmax=yes
7534 else
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7537 rm -rf conftest*
7538 has_wchar_minmax=no
7540 rm -f conftest*
7541 echo "$ac_t""$has_wchar_minmax" 1>&6
7543 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7544 echo "configure:7545: checking for WEOF" >&5
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7549 #include <wchar.h>
7550 #include <stddef.h>
7551 int main() {
7552 wint_t i = WEOF;
7553 ; return 0; }
7555 if { (eval echo configure:7556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7556 rm -rf conftest*
7557 has_weof=yes
7558 else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -rf conftest*
7562 has_weof=no
7564 rm -f conftest*
7565 echo "$ac_t""$has_weof" 1>&6
7567 ac_wfuncs=yes
7568 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7571 echo "configure:7572: checking for $ac_func" >&5
7572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7573 echo $ac_n "(cached) $ac_c" 1>&6
7574 else
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func(); below. */
7580 #include <assert.h>
7581 /* Override any gcc2 internal prototype to avoid an error. */
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7584 char $ac_func();
7586 int main() {
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7592 choke me
7593 #else
7594 $ac_func();
7595 #endif
7597 ; return 0; }
7599 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 rm -rf conftest*
7601 eval "ac_cv_func_$ac_func=yes"
7602 else
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 rm -rf conftest*
7606 eval "ac_cv_func_$ac_func=no"
7608 rm -f conftest*
7611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7612 echo "$ac_t""yes" 1>&6
7613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7614 cat >> confdefs.h <<EOF
7615 #define $ac_tr_func 1
7618 else
7619 echo "$ac_t""no" 1>&6
7621 ac_wfuncs=no
7623 done
7626 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7627 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7628 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7629 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7630 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7631 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7634 echo "configure:7635: checking for $ac_func" >&5
7635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7637 else
7638 cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7641 /* System header to define __stub macros and hopefully few prototypes,
7642 which can conflict with char $ac_func(); below. */
7643 #include <assert.h>
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647 char $ac_func();
7649 int main() {
7651 /* The GNU C library defines this for functions which it implements
7652 to always fail with ENOSYS. Some functions are actually named
7653 something starting with __ and the normal name is an alias. */
7654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7655 choke me
7656 #else
7657 $ac_func();
7658 #endif
7660 ; return 0; }
7662 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7663 rm -rf conftest*
7664 eval "ac_cv_func_$ac_func=yes"
7665 else
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7668 rm -rf conftest*
7669 eval "ac_cv_func_$ac_func=no"
7671 rm -f conftest*
7674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7677 cat >> confdefs.h <<EOF
7678 #define $ac_tr_func 1
7681 else
7682 echo "$ac_t""no" 1>&6
7684 ac_wfuncs=no
7686 done
7689 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7690 echo "configure:7691: checking for ISO C99 wchar_t support" >&5
7691 if test x"$has_weof" = xyes &&
7692 test x"$has_wchar_minmax" = xyes &&
7693 test x"$ac_wfuncs" = xyes; then
7694 ac_isoC99_wchar_t=yes
7695 else
7696 ac_isoC99_wchar_t=no
7698 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7700 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7702 echo "configure:7703: checking for iconv.h" >&5
7703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7705 else
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7709 #include <iconv.h>
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then
7715 rm -rf conftest*
7716 eval "ac_cv_header_$ac_safe=yes"
7717 else
7718 echo "$ac_err" >&5
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 eval "ac_cv_header_$ac_safe=no"
7724 rm -f conftest*
7726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_has_iconv_h=yes
7729 else
7730 echo "$ac_t""no" 1>&6
7731 ac_has_iconv_h=no
7734 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7735 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7736 echo "configure:7737: checking for langinfo.h" >&5
7737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7739 else
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 #include <langinfo.h>
7745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7746 { (eval echo configure:7747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7748 if test -z "$ac_err"; then
7749 rm -rf conftest*
7750 eval "ac_cv_header_$ac_safe=yes"
7751 else
7752 echo "$ac_err" >&5
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7755 rm -rf conftest*
7756 eval "ac_cv_header_$ac_safe=no"
7758 rm -f conftest*
7760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_has_langinfo_h=yes
7763 else
7764 echo "$ac_t""no" 1>&6
7765 ac_has_langinfo_h=no
7769 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7770 echo "configure:7771: checking for iconv in -liconv" >&5
7771 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7774 else
7775 ac_save_LIBS="$LIBS"
7776 LIBS="-liconv $LIBS"
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783 char iconv();
7785 int main() {
7786 iconv()
7787 ; return 0; }
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7790 rm -rf conftest*
7791 eval "ac_cv_lib_$ac_lib_var=yes"
7792 else
7793 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 rm -rf conftest*
7796 eval "ac_cv_lib_$ac_lib_var=no"
7798 rm -f conftest*
7799 LIBS="$ac_save_LIBS"
7802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 libiconv="-liconv"
7805 else
7806 echo "$ac_t""no" 1>&6
7809 ac_save_LIBS="$LIBS"
7810 LIBS="$LIBS $libiconv"
7812 for ac_func in iconv_open iconv_close iconv nl_langinfo
7814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7815 echo "configure:7816: checking for $ac_func" >&5
7816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7818 else
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 /* System header to define __stub macros and hopefully few prototypes,
7823 which can conflict with char $ac_func(); below. */
7824 #include <assert.h>
7825 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828 char $ac_func();
7830 int main() {
7832 /* The GNU C library defines this for functions which it implements
7833 to always fail with ENOSYS. Some functions are actually named
7834 something starting with __ and the normal name is an alias. */
7835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7836 choke me
7837 #else
7838 $ac_func();
7839 #endif
7841 ; return 0; }
7843 if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844 rm -rf conftest*
7845 eval "ac_cv_func_$ac_func=yes"
7846 else
7847 echo "configure: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 rm -rf conftest*
7850 eval "ac_cv_func_$ac_func=no"
7852 rm -f conftest*
7855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7858 cat >> confdefs.h <<EOF
7859 #define $ac_tr_func 1
7862 ac_XPG2funcs=yes
7863 else
7864 echo "$ac_t""no" 1>&6
7865 ac_XPG2funcs=no
7867 done
7870 LIBS="$ac_save_LIBS"
7872 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7873 echo "configure:7874: checking for XPG2 wchar_t support" >&5
7874 if test x"$ac_has_iconv_h" = xyes &&
7875 test x"$ac_has_langinfo_h" = xyes &&
7876 test x"$ac_XPG2funcs" = xyes; then
7877 ac_XPG2_wchar_t=yes
7878 else
7879 ac_XPG2_wchar_t=no
7881 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7883 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7884 echo "configure:7885: checking for enabled wchar_t specializations" >&5
7885 if test x"$ac_isoC99_wchar_t" = xyes &&
7886 test x"$ac_XPG2_wchar_t" = xyes; then
7887 cat >> confdefs.h <<\EOF
7888 #define _GLIBCPP_USE_WCHAR_T 1
7891 echo "$ac_t"""yes"" 1>&6
7892 else
7893 echo "$ac_t"""no"" 1>&6
7895 else
7896 echo "configure: warning: wchar_t support disabled." 1>&2
7899 os_include_dir="os/mingw32"
7901 *-windiss*)
7902 os_include_dir="os/windiss"
7904 *-qnx6.[12]*)
7905 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7908 # If we're not using GNU ld, then there's no point in even trying these
7909 # tests. Check for that first. We should have already tested for gld
7910 # by now (in libtool), but require it now just to be safe...
7911 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7912 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7915 # The name set by libtool depends on the version of libtool. Shame on us
7916 # for depending on an impl detail, but c'est la vie. Older versions used
7917 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7918 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7919 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7920 # set (hence we're using an older libtool), then set it.
7921 if test x${with_gnu_ld+set} != xset; then
7922 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7923 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7924 with_gnu_ld=no
7925 else
7926 with_gnu_ld=$ac_cv_prog_gnu_ld
7930 # Start by getting the version number. I think the libtool test already
7931 # does some of this, but throws away the result.
7933 ldver=`$LD --version 2>/dev/null | head -1 | \
7934 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7936 glibcpp_gnu_ld_version=`echo $ldver | \
7937 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7939 # Set --gc-sections.
7940 if test "$with_gnu_ld" = "notbroken"; then
7941 # GNU ld it is! Joy and bunny rabbits!
7943 # All these tests are for C++; save the language and the compiler flags.
7944 # Need to do this so that g++ won't try to link in libstdc++
7945 ac_test_CFLAGS="${CFLAGS+set}"
7946 ac_save_CFLAGS="$CFLAGS"
7947 CFLAGS='-x c++ -Wl,--gc-sections'
7949 # Check for -Wl,--gc-sections
7950 # XXX This test is broken at the moment, as symbols required for
7951 # linking are now in libsupc++ (not built yet.....). In addition,
7952 # this test has cored on solaris in the past. In addition,
7953 # --gc-sections doesn't really work at the moment (keeps on discarding
7954 # used sections, first .eh_frame and now some of the glibc sections for
7955 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7956 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7957 echo "configure:7958: checking for ld that supports -Wl,--gc-sections" >&5
7958 if test "$cross_compiling" = yes; then
7959 ac_sectionLDflags=yes
7960 else
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7965 int main(void)
7967 try { throw 1; }
7968 catch (...) { };
7969 return 0;
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7974 then
7975 ac_sectionLDflags=yes
7976 else
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7979 rm -fr conftest*
7980 ac_sectionLDflags=no
7982 rm -fr conftest*
7985 if test "$ac_test_CFLAGS" = set; then
7986 CFLAGS="$ac_save_CFLAGS"
7987 else
7988 # this is the suspicious part
7989 CFLAGS=''
7991 if test "$ac_sectionLDflags" = "yes"; then
7992 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7994 echo "$ac_t""$ac_sectionLDflags" 1>&6
7997 # Set linker optimization flags.
7998 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7999 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8006 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8007 echo "configure:8008: checking for main in -lm" >&5
8008 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8011 else
8012 ac_save_LIBS="$LIBS"
8013 LIBS="-lm $LIBS"
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8018 int main() {
8019 main()
8020 ; return 0; }
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023 rm -rf conftest*
8024 eval "ac_cv_lib_$ac_lib_var=yes"
8025 else
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 rm -rf conftest*
8029 eval "ac_cv_lib_$ac_lib_var=no"
8031 rm -f conftest*
8032 LIBS="$ac_save_LIBS"
8035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8039 cat >> confdefs.h <<EOF
8040 #define $ac_tr_lib 1
8043 LIBS="-lm $LIBS"
8045 else
8046 echo "$ac_t""no" 1>&6
8049 for ac_func in nan copysignf
8051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8052 echo "configure:8053: checking for $ac_func" >&5
8053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8055 else
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* System header to define __stub macros and hopefully few prototypes,
8060 which can conflict with char $ac_func(); below. */
8061 #include <assert.h>
8062 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065 char $ac_func();
8067 int main() {
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8073 choke me
8074 #else
8075 $ac_func();
8076 #endif
8078 ; return 0; }
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 rm -rf conftest*
8082 eval "ac_cv_func_$ac_func=yes"
8083 else
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 eval "ac_cv_func_$ac_func=no"
8089 rm -f conftest*
8092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8095 cat >> confdefs.h <<EOF
8096 #define $ac_tr_func 1
8099 else
8100 echo "$ac_t""no" 1>&6
8101 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8103 done
8106 for ac_func in __signbit
8108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_func" >&5
8110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112 else
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char $ac_func(); below. */
8118 #include <assert.h>
8119 /* Override any gcc2 internal prototype to avoid an error. */
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8122 char $ac_func();
8124 int main() {
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8130 choke me
8131 #else
8132 $ac_func();
8133 #endif
8135 ; return 0; }
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 rm -rf conftest*
8139 eval "ac_cv_func_$ac_func=yes"
8140 else
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=no"
8146 rm -f conftest*
8149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8150 echo "$ac_t""yes" 1>&6
8151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8152 cat >> confdefs.h <<EOF
8153 #define $ac_tr_func 1
8156 else
8157 echo "$ac_t""no" 1>&6
8158 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8160 done
8162 for ac_func in __signbitf
8164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8165 echo "configure:8166: checking for $ac_func" >&5
8166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8167 echo $ac_n "(cached) $ac_c" 1>&6
8168 else
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 /* System header to define __stub macros and hopefully few prototypes,
8173 which can conflict with char $ac_func(); below. */
8174 #include <assert.h>
8175 /* Override any gcc2 internal prototype to avoid an error. */
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8178 char $ac_func();
8180 int main() {
8182 /* The GNU C library defines this for functions which it implements
8183 to always fail with ENOSYS. Some functions are actually named
8184 something starting with __ and the normal name is an alias. */
8185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8186 choke me
8187 #else
8188 $ac_func();
8189 #endif
8191 ; return 0; }
8193 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8194 rm -rf conftest*
8195 eval "ac_cv_func_$ac_func=yes"
8196 else
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 rm -rf conftest*
8200 eval "ac_cv_func_$ac_func=no"
8202 rm -f conftest*
8205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8206 echo "$ac_t""yes" 1>&6
8207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8208 cat >> confdefs.h <<EOF
8209 #define $ac_tr_func 1
8212 else
8213 echo "$ac_t""no" 1>&6
8214 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8216 done
8219 if test x$ac_cv_func_copysignl = x"yes"; then
8220 for ac_func in __signbitl
8222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_func" >&5
8224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 /* System header to define __stub macros and hopefully few prototypes,
8231 which can conflict with char $ac_func(); below. */
8232 #include <assert.h>
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char $ac_func();
8238 int main() {
8240 /* The GNU C library defines this for functions which it implements
8241 to always fail with ENOSYS. Some functions are actually named
8242 something starting with __ and the normal name is an alias. */
8243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 choke me
8245 #else
8246 $ac_func();
8247 #endif
8249 ; return 0; }
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 rm -rf conftest*
8253 eval "ac_cv_func_$ac_func=yes"
8254 else
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 rm -rf conftest*
8258 eval "ac_cv_func_$ac_func=no"
8260 rm -f conftest*
8263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8264 echo "$ac_t""yes" 1>&6
8265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8266 cat >> confdefs.h <<EOF
8267 #define $ac_tr_func 1
8270 else
8271 echo "$ac_t""no" 1>&6
8272 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8274 done
8282 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8283 echo "configure:8284: checking for mbstate_t" >&5
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8287 #include <wchar.h>
8288 int main() {
8289 mbstate_t teststate;
8290 ; return 0; }
8292 if { (eval echo configure:8293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8293 rm -rf conftest*
8294 have_mbstate_t=yes
8295 else
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8298 rm -rf conftest*
8299 have_mbstate_t=no
8301 rm -f conftest*
8302 echo "$ac_t""$have_mbstate_t" 1>&6
8303 if test x"$have_mbstate_t" = xyes; then
8304 cat >> confdefs.h <<\EOF
8305 #define HAVE_MBSTATE_T 1
8310 for ac_hdr in wchar.h
8312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8314 echo "configure:8315: checking for $ac_hdr" >&5
8315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8316 echo $ac_n "(cached) $ac_c" 1>&6
8317 else
8318 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure"
8320 #include "confdefs.h"
8321 #include <$ac_hdr>
8323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8324 { (eval echo configure:8325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8326 if test -z "$ac_err"; then
8327 rm -rf conftest*
8328 eval "ac_cv_header_$ac_safe=yes"
8329 else
8330 echo "$ac_err" >&5
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 rm -rf conftest*
8334 eval "ac_cv_header_$ac_safe=no"
8336 rm -f conftest*
8338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8339 echo "$ac_t""yes" 1>&6
8340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8341 cat >> confdefs.h <<EOF
8342 #define $ac_tr_hdr 1
8344 ac_has_wchar_h=yes
8345 else
8346 echo "$ac_t""no" 1>&6
8347 ac_has_wchar_h=no
8349 done
8351 for ac_hdr in wctype.h
8353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8355 echo "configure:8356: checking for $ac_hdr" >&5
8356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8358 else
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 #include <$ac_hdr>
8364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8365 { (eval echo configure:8366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8367 if test -z "$ac_err"; then
8368 rm -rf conftest*
8369 eval "ac_cv_header_$ac_safe=yes"
8370 else
8371 echo "$ac_err" >&5
8372 echo "configure: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 rm -rf conftest*
8375 eval "ac_cv_header_$ac_safe=no"
8377 rm -f conftest*
8379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8380 echo "$ac_t""yes" 1>&6
8381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8382 cat >> confdefs.h <<EOF
8383 #define $ac_tr_hdr 1
8385 ac_has_wctype_h=yes
8386 else
8387 echo "$ac_t""no" 1>&6
8388 ac_has_wctype_h=no
8390 done
8393 if test x"$ac_has_wchar_h" = xyes &&
8394 test x"$ac_has_wctype_h" = xyes &&
8395 test x"$enable_c_mbchar" != xno; then
8397 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8398 echo "configure:8399: checking for WCHAR_MIN and WCHAR_MAX" >&5
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 #include <wchar.h>
8403 int main() {
8404 int i = WCHAR_MIN; int j = WCHAR_MAX;
8405 ; return 0; }
8407 if { (eval echo configure:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8408 rm -rf conftest*
8409 has_wchar_minmax=yes
8410 else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -rf conftest*
8414 has_wchar_minmax=no
8416 rm -f conftest*
8417 echo "$ac_t""$has_wchar_minmax" 1>&6
8419 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8420 echo "configure:8421: checking for WEOF" >&5
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8425 #include <wchar.h>
8426 #include <stddef.h>
8427 int main() {
8428 wint_t i = WEOF;
8429 ; return 0; }
8431 if { (eval echo configure:8432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8432 rm -rf conftest*
8433 has_weof=yes
8434 else
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 rm -rf conftest*
8438 has_weof=no
8440 rm -f conftest*
8441 echo "$ac_t""$has_weof" 1>&6
8443 ac_wfuncs=yes
8444 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8447 echo "configure:8448: checking for $ac_func" >&5
8448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8450 else
8451 cat > conftest.$ac_ext <<EOF
8452 #line 8453 "configure"
8453 #include "confdefs.h"
8454 /* System header to define __stub macros and hopefully few prototypes,
8455 which can conflict with char $ac_func(); below. */
8456 #include <assert.h>
8457 /* Override any gcc2 internal prototype to avoid an error. */
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char $ac_func();
8462 int main() {
8464 /* The GNU C library defines this for functions which it implements
8465 to always fail with ENOSYS. Some functions are actually named
8466 something starting with __ and the normal name is an alias. */
8467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8468 choke me
8469 #else
8470 $ac_func();
8471 #endif
8473 ; return 0; }
8475 if { (eval echo configure:8476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 rm -rf conftest*
8477 eval "ac_cv_func_$ac_func=yes"
8478 else
8479 echo "configure: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 rm -rf conftest*
8482 eval "ac_cv_func_$ac_func=no"
8484 rm -f conftest*
8487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8488 echo "$ac_t""yes" 1>&6
8489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8490 cat >> confdefs.h <<EOF
8491 #define $ac_tr_func 1
8494 else
8495 echo "$ac_t""no" 1>&6
8497 ac_wfuncs=no
8499 done
8502 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8503 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8504 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8505 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8506 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8507 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8510 echo "configure:8511: checking for $ac_func" >&5
8511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8513 else
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8517 /* System header to define __stub macros and hopefully few prototypes,
8518 which can conflict with char $ac_func(); below. */
8519 #include <assert.h>
8520 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char $ac_func();
8525 int main() {
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8531 choke me
8532 #else
8533 $ac_func();
8534 #endif
8536 ; return 0; }
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8539 rm -rf conftest*
8540 eval "ac_cv_func_$ac_func=yes"
8541 else
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8544 rm -rf conftest*
8545 eval "ac_cv_func_$ac_func=no"
8547 rm -f conftest*
8550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6
8552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8553 cat >> confdefs.h <<EOF
8554 #define $ac_tr_func 1
8557 else
8558 echo "$ac_t""no" 1>&6
8560 ac_wfuncs=no
8562 done
8565 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8566 echo "configure:8567: checking for ISO C99 wchar_t support" >&5
8567 if test x"$has_weof" = xyes &&
8568 test x"$has_wchar_minmax" = xyes &&
8569 test x"$ac_wfuncs" = xyes; then
8570 ac_isoC99_wchar_t=yes
8571 else
8572 ac_isoC99_wchar_t=no
8574 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8576 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8577 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8578 echo "configure:8579: checking for iconv.h" >&5
8579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8581 else
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 #include <iconv.h>
8587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8588 { (eval echo configure:8589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8590 if test -z "$ac_err"; then
8591 rm -rf conftest*
8592 eval "ac_cv_header_$ac_safe=yes"
8593 else
8594 echo "$ac_err" >&5
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 rm -rf conftest*
8598 eval "ac_cv_header_$ac_safe=no"
8600 rm -f conftest*
8602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8603 echo "$ac_t""yes" 1>&6
8604 ac_has_iconv_h=yes
8605 else
8606 echo "$ac_t""no" 1>&6
8607 ac_has_iconv_h=no
8610 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8611 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8612 echo "configure:8613: checking for langinfo.h" >&5
8613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8615 else
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 #include <langinfo.h>
8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8624 if test -z "$ac_err"; then
8625 rm -rf conftest*
8626 eval "ac_cv_header_$ac_safe=yes"
8627 else
8628 echo "$ac_err" >&5
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 rm -rf conftest*
8632 eval "ac_cv_header_$ac_safe=no"
8634 rm -f conftest*
8636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_has_langinfo_h=yes
8639 else
8640 echo "$ac_t""no" 1>&6
8641 ac_has_langinfo_h=no
8645 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8646 echo "configure:8647: checking for iconv in -liconv" >&5
8647 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8651 ac_save_LIBS="$LIBS"
8652 LIBS="-liconv $LIBS"
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8659 char iconv();
8661 int main() {
8662 iconv()
8663 ; return 0; }
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=yes"
8668 else
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 rm -rf conftest*
8672 eval "ac_cv_lib_$ac_lib_var=no"
8674 rm -f conftest*
8675 LIBS="$ac_save_LIBS"
8678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8679 echo "$ac_t""yes" 1>&6
8680 libiconv="-liconv"
8681 else
8682 echo "$ac_t""no" 1>&6
8685 ac_save_LIBS="$LIBS"
8686 LIBS="$LIBS $libiconv"
8688 for ac_func in iconv_open iconv_close iconv nl_langinfo
8690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8691 echo "configure:8692: checking for $ac_func" >&5
8692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char $ac_func(); below. */
8700 #include <assert.h>
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char $ac_func();
8706 int main() {
8708 /* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8712 choke me
8713 #else
8714 $ac_func();
8715 #endif
8717 ; return 0; }
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720 rm -rf conftest*
8721 eval "ac_cv_func_$ac_func=yes"
8722 else
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8725 rm -rf conftest*
8726 eval "ac_cv_func_$ac_func=no"
8728 rm -f conftest*
8731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8732 echo "$ac_t""yes" 1>&6
8733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8734 cat >> confdefs.h <<EOF
8735 #define $ac_tr_func 1
8738 ac_XPG2funcs=yes
8739 else
8740 echo "$ac_t""no" 1>&6
8741 ac_XPG2funcs=no
8743 done
8746 LIBS="$ac_save_LIBS"
8748 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8749 echo "configure:8750: checking for XPG2 wchar_t support" >&5
8750 if test x"$ac_has_iconv_h" = xyes &&
8751 test x"$ac_has_langinfo_h" = xyes &&
8752 test x"$ac_XPG2funcs" = xyes; then
8753 ac_XPG2_wchar_t=yes
8754 else
8755 ac_XPG2_wchar_t=no
8757 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8759 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8760 echo "configure:8761: checking for enabled wchar_t specializations" >&5
8761 if test x"$ac_isoC99_wchar_t" = xyes &&
8762 test x"$ac_XPG2_wchar_t" = xyes; then
8763 cat >> confdefs.h <<\EOF
8764 #define _GLIBCPP_USE_WCHAR_T 1
8767 echo "$ac_t"""yes"" 1>&6
8768 else
8769 echo "$ac_t"""no"" 1>&6
8771 else
8772 echo "configure: warning: wchar_t support disabled." 1>&2
8775 os_include_dir="os/qnx/qnx6.1"
8776 cat >> confdefs.h <<\EOF
8777 #define HAVE_COSF 1
8780 cat >> confdefs.h <<\EOF
8781 #define HAVE_COSL 1
8784 cat >> confdefs.h <<\EOF
8785 #define HAVE_COSHF 1
8788 cat >> confdefs.h <<\EOF
8789 #define HAVE_COSHL 1
8792 cat >> confdefs.h <<\EOF
8793 #define HAVE_LOGF 1
8796 cat >> confdefs.h <<\EOF
8797 #define HAVE_LOGL 1
8800 cat >> confdefs.h <<\EOF
8801 #define HAVE_LOG10F 1
8804 cat >> confdefs.h <<\EOF
8805 #define HAVE_LOG10L 1
8808 cat >> confdefs.h <<\EOF
8809 #define HAVE_SINF 1
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_SINL 1
8816 cat >> confdefs.h <<\EOF
8817 #define HAVE_SINHF 1
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_SINHL 1
8826 os_include_dir="os/newlib"
8827 cat >> confdefs.h <<\EOF
8828 #define HAVE_HYPOT 1
8832 esac
8834 case "$target_alias" in
8835 *-mingw32*)
8837 *-windiss*)
8838 cat >> confdefs.h <<\EOF
8839 #define HAVE_ACOSF 1
8842 cat >> confdefs.h <<\EOF
8843 #define HAVE_ASINF 1
8846 cat >> confdefs.h <<\EOF
8847 #define HAVE_ATAN2F 1
8850 cat >> confdefs.h <<\EOF
8851 #define HAVE_ATANF 1
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_CEILF 1
8858 cat >> confdefs.h <<\EOF
8859 #define HAVE_COPYSIGN 1
8862 cat >> confdefs.h <<\EOF
8863 #define HAVE_COPYSIGNF 1
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_COSF 1
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_COSHF 1
8874 cat >> confdefs.h <<\EOF
8875 #define HAVE_EXPF 1
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_FABSF 1
8882 cat >> confdefs.h <<\EOF
8883 #define HAVE_FLOORF 1
8886 cat >> confdefs.h <<\EOF
8887 #define HAVE_FMODF 1
8890 cat >> confdefs.h <<\EOF
8891 #define HAVE_FREXPF 1
8894 cat >> confdefs.h <<\EOF
8895 #define HAVE_LDEXPF 1
8898 cat >> confdefs.h <<\EOF
8899 #define HAVE_LOG10F 1
8902 cat >> confdefs.h <<\EOF
8903 #define HAVE_LOGF 1
8906 cat >> confdefs.h <<\EOF
8907 #define HAVE_MODFF 1
8910 cat >> confdefs.h <<\EOF
8911 #define HAVE_POWF 1
8914 cat >> confdefs.h <<\EOF
8915 #define HAVE_SINF 1
8918 cat >> confdefs.h <<\EOF
8919 #define HAVE_SINHF 1
8922 cat >> confdefs.h <<\EOF
8923 #define HAVE_SQRTF 1
8926 cat >> confdefs.h <<\EOF
8927 #define HAVE_TANF 1
8930 cat >> confdefs.h <<\EOF
8931 #define HAVE_TANHF 1
8936 # GLIBCPP_CHECK_STDLIB_SUPPORT
8937 cat >> confdefs.h <<\EOF
8938 #define HAVE_STRTOF 1
8941 cat >> confdefs.h <<\EOF
8942 #define HAVE_STRTOLD 1
8945 # AC_FUNC_MMAP
8946 cat >> confdefs.h <<\EOF
8947 #define HAVE_MMAP 1
8951 cat >> confdefs.h <<\EOF
8952 #define HAVE_ACOSF 1
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_ASINF 1
8959 cat >> confdefs.h <<\EOF
8960 #define HAVE_ATAN2F 1
8963 cat >> confdefs.h <<\EOF
8964 #define HAVE_ATANF 1
8967 cat >> confdefs.h <<\EOF
8968 #define HAVE_CEILF 1
8971 cat >> confdefs.h <<\EOF
8972 #define HAVE_COPYSIGN 1
8975 cat >> confdefs.h <<\EOF
8976 #define HAVE_COPYSIGNF 1
8979 cat >> confdefs.h <<\EOF
8980 #define HAVE_COSF 1
8983 cat >> confdefs.h <<\EOF
8984 #define HAVE_COSHF 1
8987 cat >> confdefs.h <<\EOF
8988 #define HAVE_EXPF 1
8991 cat >> confdefs.h <<\EOF
8992 #define HAVE_FABSF 1
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_FLOORF 1
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_FMODF 1
9003 cat >> confdefs.h <<\EOF
9004 #define HAVE_FREXPF 1
9007 cat >> confdefs.h <<\EOF
9008 #define HAVE_LDEXPF 1
9011 cat >> confdefs.h <<\EOF
9012 #define HAVE_LOG10F 1
9015 cat >> confdefs.h <<\EOF
9016 #define HAVE_LOGF 1
9019 cat >> confdefs.h <<\EOF
9020 #define HAVE_MODFF 1
9023 cat >> confdefs.h <<\EOF
9024 #define HAVE_POWF 1
9027 cat >> confdefs.h <<\EOF
9028 #define HAVE_SINF 1
9031 cat >> confdefs.h <<\EOF
9032 #define HAVE_SINHF 1
9035 cat >> confdefs.h <<\EOF
9036 #define HAVE_SQRTF 1
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_TANF 1
9043 cat >> confdefs.h <<\EOF
9044 #define HAVE_TANHF 1
9048 esac
9050 # At some point, we should differentiate between architectures
9051 # like x86, which have long double versions, and alpha/powerpc/etc.,
9052 # which don't. For the time being, punt.
9053 if test x"long_double_math_on_this_cpu" = x"yes"; then
9054 cat >> confdefs.h <<\EOF
9055 #define HAVE_ACOSL 1
9058 cat >> confdefs.h <<\EOF
9059 #define HAVE_ASINL 1
9062 cat >> confdefs.h <<\EOF
9063 #define HAVE_ATAN2L 1
9066 cat >> confdefs.h <<\EOF
9067 #define HAVE_ATANL 1
9070 cat >> confdefs.h <<\EOF
9071 #define HAVE_CEILL 1
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_COPYSIGNL 1
9078 cat >> confdefs.h <<\EOF
9079 #define HAVE_COSL 1
9082 cat >> confdefs.h <<\EOF
9083 #define HAVE_COSHL 1
9086 cat >> confdefs.h <<\EOF
9087 #define HAVE_EXPL 1
9090 cat >> confdefs.h <<\EOF
9091 #define HAVE_FABSL 1
9094 cat >> confdefs.h <<\EOF
9095 #define HAVE_FLOORL 1
9098 cat >> confdefs.h <<\EOF
9099 #define HAVE_FMODL 1
9102 cat >> confdefs.h <<\EOF
9103 #define HAVE_FREXPL 1
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_LDEXPL 1
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_LOG10L 1
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_LOGL 1
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_MODFL 1
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_POWL 1
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_SINCOSL 1
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_SINL 1
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_SINHL 1
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_SQRTL 1
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_TANL 1
9146 cat >> confdefs.h <<\EOF
9147 #define HAVE_TANHL 1
9152 else
9154 # We are being configured natively. We can do more elaborate tests
9155 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9156 # working.
9157 GLIBCPP_IS_CROSS_COMPILING=0
9158 CANADIAN=no
9160 # Check for available headers.
9161 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9162 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $ac_hdr" >&5
9167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9173 #include <$ac_hdr>
9175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9176 { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9178 if test -z "$ac_err"; then
9179 rm -rf conftest*
9180 eval "ac_cv_header_$ac_safe=yes"
9181 else
9182 echo "$ac_err" >&5
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 rm -rf conftest*
9186 eval "ac_cv_header_$ac_safe=no"
9188 rm -f conftest*
9190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9191 echo "$ac_t""yes" 1>&6
9192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9193 cat >> confdefs.h <<EOF
9194 #define $ac_tr_hdr 1
9197 else
9198 echo "$ac_t""no" 1>&6
9200 done
9204 # All these tests are for C++; save the language and the compiler flags.
9205 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9206 # found in GLIBCPP_CONFIGURE.
9208 ac_ext=C
9209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9210 ac_cpp='$CXXCPP $CPPFLAGS'
9211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9213 cross_compiling=$ac_cv_prog_cxx_cross
9215 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9216 ac_save_CXXFLAGS="$CXXFLAGS"
9218 # Check for maintainer-mode bits.
9219 if test x"$USE_MAINTAINER_MODE" = xno; then
9220 WERROR=''
9221 else
9222 WERROR='-Werror'
9225 # Check for -ffunction-sections -fdata-sections
9226 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9227 echo "configure:9228: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9228 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9233 int main() {
9234 int foo;
9236 ; return 0; }
9238 if { (eval echo configure:9239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9239 rm -rf conftest*
9240 ac_fdsections=yes
9241 else
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 rm -rf conftest*
9245 ac_fdsections=no
9247 rm -f conftest*
9248 if test "$ac_test_CXXFLAGS" = set; then
9249 CXXFLAGS="$ac_save_CXXFLAGS"
9250 else
9251 # this is the suspicious part
9252 CXXFLAGS=''
9254 if test x"$ac_fdsections" = x"yes" &&
9255 test x"$enable_debug" = x"no"; then
9256 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9258 echo "$ac_t""$ac_fdsections" 1>&6
9260 ac_ext=c
9261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9262 ac_cpp='$CPP $CPPFLAGS'
9263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9265 cross_compiling=$ac_cv_prog_cc_cross
9271 # If we're not using GNU ld, then there's no point in even trying these
9272 # tests. Check for that first. We should have already tested for gld
9273 # by now (in libtool), but require it now just to be safe...
9274 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9275 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9278 # The name set by libtool depends on the version of libtool. Shame on us
9279 # for depending on an impl detail, but c'est la vie. Older versions used
9280 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9281 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9282 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9283 # set (hence we're using an older libtool), then set it.
9284 if test x${with_gnu_ld+set} != xset; then
9285 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9286 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9287 with_gnu_ld=no
9288 else
9289 with_gnu_ld=$ac_cv_prog_gnu_ld
9293 # Start by getting the version number. I think the libtool test already
9294 # does some of this, but throws away the result.
9296 ldver=`$LD --version 2>/dev/null | head -1 | \
9297 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9299 glibcpp_gnu_ld_version=`echo $ldver | \
9300 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9302 # Set --gc-sections.
9303 if test "$with_gnu_ld" = "notbroken"; then
9304 # GNU ld it is! Joy and bunny rabbits!
9306 # All these tests are for C++; save the language and the compiler flags.
9307 # Need to do this so that g++ won't try to link in libstdc++
9308 ac_test_CFLAGS="${CFLAGS+set}"
9309 ac_save_CFLAGS="$CFLAGS"
9310 CFLAGS='-x c++ -Wl,--gc-sections'
9312 # Check for -Wl,--gc-sections
9313 # XXX This test is broken at the moment, as symbols required for
9314 # linking are now in libsupc++ (not built yet.....). In addition,
9315 # this test has cored on solaris in the past. In addition,
9316 # --gc-sections doesn't really work at the moment (keeps on discarding
9317 # used sections, first .eh_frame and now some of the glibc sections for
9318 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9319 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9320 echo "configure:9321: checking for ld that supports -Wl,--gc-sections" >&5
9321 if test "$cross_compiling" = yes; then
9322 ac_sectionLDflags=yes
9323 else
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9328 int main(void)
9330 try { throw 1; }
9331 catch (...) { };
9332 return 0;
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9337 then
9338 ac_sectionLDflags=yes
9339 else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -fr conftest*
9343 ac_sectionLDflags=no
9345 rm -fr conftest*
9348 if test "$ac_test_CFLAGS" = set; then
9349 CFLAGS="$ac_save_CFLAGS"
9350 else
9351 # this is the suspicious part
9352 CFLAGS=''
9354 if test "$ac_sectionLDflags" = "yes"; then
9355 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9357 echo "$ac_t""$ac_sectionLDflags" 1>&6
9360 # Set linker optimization flags.
9361 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9362 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9370 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9371 echo "configure:9372: checking for __builtin_abs declaration" >&5
9372 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9373 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9378 ac_ext=C
9379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9380 ac_cpp='$CXXCPP $CPPFLAGS'
9381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9383 cross_compiling=$ac_cv_prog_cxx_cross
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 #include <math.h>
9389 int main() {
9390 __builtin_abs(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___builtin_abs_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___builtin_abs_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___builtin_abs_use" 1>&6
9415 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9416 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9417 echo "configure:9418: checking for __builtin_abs linkage" >&5
9418 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9419 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421 else
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <math.h>
9427 int main() {
9428 __builtin_abs(0);
9429 ; return 0; }
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9432 rm -rf conftest*
9433 glibcpp_cv_func___builtin_abs_link=yes
9434 else
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 rm -rf conftest*
9438 glibcpp_cv_func___builtin_abs_link=no
9440 rm -f conftest*
9445 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9446 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9447 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9448 cat >> confdefs.h <<EOF
9449 #define ${ac_tr_func} 1
9456 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9457 echo "configure:9458: checking for __builtin_fabsf declaration" >&5
9458 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9459 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9460 echo $ac_n "(cached) $ac_c" 1>&6
9461 else
9464 ac_ext=C
9465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9466 ac_cpp='$CXXCPP $CPPFLAGS'
9467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9469 cross_compiling=$ac_cv_prog_cxx_cross
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 #include <math.h>
9475 int main() {
9476 __builtin_fabsf(0);
9477 ; return 0; }
9479 if { (eval echo configure:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9480 rm -rf conftest*
9481 glibcpp_cv_func___builtin_fabsf_use=yes
9482 else
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
9486 glibcpp_cv_func___builtin_fabsf_use=no
9488 rm -f conftest*
9489 ac_ext=c
9490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9491 ac_cpp='$CPP $CPPFLAGS'
9492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9494 cross_compiling=$ac_cv_prog_cc_cross
9500 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9501 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9502 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9503 echo "configure:9504: checking for __builtin_fabsf linkage" >&5
9504 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9505 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507 else
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 #include <math.h>
9513 int main() {
9514 __builtin_fabsf(0);
9515 ; return 0; }
9517 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 rm -rf conftest*
9519 glibcpp_cv_func___builtin_fabsf_link=yes
9520 else
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 glibcpp_cv_func___builtin_fabsf_link=no
9526 rm -f conftest*
9531 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9532 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9533 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9534 cat >> confdefs.h <<EOF
9535 #define ${ac_tr_func} 1
9542 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9543 echo "configure:9544: checking for __builtin_fabs declaration" >&5
9544 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9545 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9547 else
9550 ac_ext=C
9551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9552 ac_cpp='$CXXCPP $CPPFLAGS'
9553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9555 cross_compiling=$ac_cv_prog_cxx_cross
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #include <math.h>
9561 int main() {
9562 __builtin_fabs(0);
9563 ; return 0; }
9565 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9566 rm -rf conftest*
9567 glibcpp_cv_func___builtin_fabs_use=yes
9568 else
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 rm -rf conftest*
9572 glibcpp_cv_func___builtin_fabs_use=no
9574 rm -f conftest*
9575 ac_ext=c
9576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9577 ac_cpp='$CPP $CPPFLAGS'
9578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9580 cross_compiling=$ac_cv_prog_cc_cross
9586 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9587 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9588 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9589 echo "configure:9590: checking for __builtin_fabs linkage" >&5
9590 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9591 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <math.h>
9599 int main() {
9600 __builtin_fabs(0);
9601 ; return 0; }
9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9604 rm -rf conftest*
9605 glibcpp_cv_func___builtin_fabs_link=yes
9606 else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -rf conftest*
9610 glibcpp_cv_func___builtin_fabs_link=no
9612 rm -f conftest*
9617 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9618 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9619 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9620 cat >> confdefs.h <<EOF
9621 #define ${ac_tr_func} 1
9628 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9629 echo "configure:9630: checking for __builtin_fabsl declaration" >&5
9630 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9631 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9633 else
9636 ac_ext=C
9637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9638 ac_cpp='$CXXCPP $CPPFLAGS'
9639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9641 cross_compiling=$ac_cv_prog_cxx_cross
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 #include <math.h>
9647 int main() {
9648 __builtin_fabsl(0);
9649 ; return 0; }
9651 if { (eval echo configure:9652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9652 rm -rf conftest*
9653 glibcpp_cv_func___builtin_fabsl_use=yes
9654 else
9655 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9657 rm -rf conftest*
9658 glibcpp_cv_func___builtin_fabsl_use=no
9660 rm -f conftest*
9661 ac_ext=c
9662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9663 ac_cpp='$CPP $CPPFLAGS'
9664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9666 cross_compiling=$ac_cv_prog_cc_cross
9672 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9673 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9674 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9675 echo "configure:9676: checking for __builtin_fabsl linkage" >&5
9676 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9677 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9679 else
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 #include <math.h>
9685 int main() {
9686 __builtin_fabsl(0);
9687 ; return 0; }
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 rm -rf conftest*
9691 glibcpp_cv_func___builtin_fabsl_link=yes
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -rf conftest*
9696 glibcpp_cv_func___builtin_fabsl_link=no
9698 rm -f conftest*
9703 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9704 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9705 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9706 cat >> confdefs.h <<EOF
9707 #define ${ac_tr_func} 1
9714 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9715 echo "configure:9716: checking for __builtin_labs declaration" >&5
9716 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9717 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9719 else
9722 ac_ext=C
9723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9724 ac_cpp='$CXXCPP $CPPFLAGS'
9725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9727 cross_compiling=$ac_cv_prog_cxx_cross
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9732 #include <math.h>
9733 int main() {
9734 __builtin_labs(0);
9735 ; return 0; }
9737 if { (eval echo configure:9738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9738 rm -rf conftest*
9739 glibcpp_cv_func___builtin_labs_use=yes
9740 else
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9743 rm -rf conftest*
9744 glibcpp_cv_func___builtin_labs_use=no
9746 rm -f conftest*
9747 ac_ext=c
9748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9749 ac_cpp='$CPP $CPPFLAGS'
9750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9752 cross_compiling=$ac_cv_prog_cc_cross
9758 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9759 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9760 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9761 echo "configure:9762: checking for __builtin_labs linkage" >&5
9762 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9763 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9765 else
9767 cat > conftest.$ac_ext <<EOF
9768 #line 9769 "configure"
9769 #include "confdefs.h"
9770 #include <math.h>
9771 int main() {
9772 __builtin_labs(0);
9773 ; return 0; }
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9776 rm -rf conftest*
9777 glibcpp_cv_func___builtin_labs_link=yes
9778 else
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 rm -rf conftest*
9782 glibcpp_cv_func___builtin_labs_link=no
9784 rm -f conftest*
9789 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9790 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9791 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9792 cat >> confdefs.h <<EOF
9793 #define ${ac_tr_func} 1
9801 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9802 echo "configure:9803: checking for __builtin_sqrtf declaration" >&5
9803 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9804 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9806 else
9809 ac_ext=C
9810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9811 ac_cpp='$CXXCPP $CPPFLAGS'
9812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9814 cross_compiling=$ac_cv_prog_cxx_cross
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819 #include <math.h>
9820 int main() {
9821 __builtin_sqrtf(0);
9822 ; return 0; }
9824 if { (eval echo configure:9825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9825 rm -rf conftest*
9826 glibcpp_cv_func___builtin_sqrtf_use=yes
9827 else
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 rm -rf conftest*
9831 glibcpp_cv_func___builtin_sqrtf_use=no
9833 rm -f conftest*
9834 ac_ext=c
9835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9836 ac_cpp='$CPP $CPPFLAGS'
9837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9839 cross_compiling=$ac_cv_prog_cc_cross
9845 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9846 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9847 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9848 echo "configure:9849: checking for __builtin_sqrtf linkage" >&5
9849 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9850 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <math.h>
9858 int main() {
9859 __builtin_sqrtf(0);
9860 ; return 0; }
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9863 rm -rf conftest*
9864 glibcpp_cv_func___builtin_sqrtf_link=yes
9865 else
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 glibcpp_cv_func___builtin_sqrtf_link=no
9871 rm -f conftest*
9876 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9877 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9878 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9879 cat >> confdefs.h <<EOF
9880 #define ${ac_tr_func} 1
9887 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9888 echo "configure:9889: checking for __builtin_sqrt declaration" >&5
9889 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9890 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9892 else
9895 ac_ext=C
9896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9897 ac_cpp='$CXXCPP $CPPFLAGS'
9898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9900 cross_compiling=$ac_cv_prog_cxx_cross
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <math.h>
9906 int main() {
9907 __builtin_sqrt(0);
9908 ; return 0; }
9910 if { (eval echo configure:9911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9911 rm -rf conftest*
9912 glibcpp_cv_func___builtin_sqrt_use=yes
9913 else
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9916 rm -rf conftest*
9917 glibcpp_cv_func___builtin_sqrt_use=no
9919 rm -f conftest*
9920 ac_ext=c
9921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9922 ac_cpp='$CPP $CPPFLAGS'
9923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9925 cross_compiling=$ac_cv_prog_cc_cross
9931 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9932 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9933 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9934 echo "configure:9935: checking for __builtin_sqrt linkage" >&5
9935 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9936 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9937 echo $ac_n "(cached) $ac_c" 1>&6
9938 else
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9943 #include <math.h>
9944 int main() {
9945 __builtin_sqrt(0);
9946 ; return 0; }
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9949 rm -rf conftest*
9950 glibcpp_cv_func___builtin_sqrt_link=yes
9951 else
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9954 rm -rf conftest*
9955 glibcpp_cv_func___builtin_sqrt_link=no
9957 rm -f conftest*
9962 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9963 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9964 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9965 cat >> confdefs.h <<EOF
9966 #define ${ac_tr_func} 1
9973 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9974 echo "configure:9975: checking for __builtin_sqrtl declaration" >&5
9975 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9976 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
9978 else
9981 ac_ext=C
9982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9983 ac_cpp='$CXXCPP $CPPFLAGS'
9984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9986 cross_compiling=$ac_cv_prog_cxx_cross
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 #include <math.h>
9992 int main() {
9993 __builtin_sqrtl(0);
9994 ; return 0; }
9996 if { (eval echo configure:9997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9997 rm -rf conftest*
9998 glibcpp_cv_func___builtin_sqrtl_use=yes
9999 else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003 glibcpp_cv_func___builtin_sqrtl_use=no
10005 rm -f conftest*
10006 ac_ext=c
10007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10008 ac_cpp='$CPP $CPPFLAGS'
10009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10011 cross_compiling=$ac_cv_prog_cc_cross
10017 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10018 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10019 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10020 echo "configure:10021: checking for __builtin_sqrtl linkage" >&5
10021 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10022 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10024 else
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <math.h>
10030 int main() {
10031 __builtin_sqrtl(0);
10032 ; return 0; }
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10035 rm -rf conftest*
10036 glibcpp_cv_func___builtin_sqrtl_link=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 glibcpp_cv_func___builtin_sqrtl_link=no
10043 rm -f conftest*
10048 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10049 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10050 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10051 cat >> confdefs.h <<EOF
10052 #define ${ac_tr_func} 1
10060 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10061 echo "configure:10062: checking for __builtin_sinf declaration" >&5
10062 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10063 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10065 else
10068 ac_ext=C
10069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10070 ac_cpp='$CXXCPP $CPPFLAGS'
10071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10073 cross_compiling=$ac_cv_prog_cxx_cross
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include <math.h>
10079 int main() {
10080 __builtin_sinf(0);
10081 ; return 0; }
10083 if { (eval echo configure:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10084 rm -rf conftest*
10085 glibcpp_cv_func___builtin_sinf_use=yes
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 glibcpp_cv_func___builtin_sinf_use=no
10092 rm -f conftest*
10093 ac_ext=c
10094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10095 ac_cpp='$CPP $CPPFLAGS'
10096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10098 cross_compiling=$ac_cv_prog_cc_cross
10104 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10105 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10106 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10107 echo "configure:10108: checking for __builtin_sinf linkage" >&5
10108 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10109 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <math.h>
10117 int main() {
10118 __builtin_sinf(0);
10119 ; return 0; }
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10122 rm -rf conftest*
10123 glibcpp_cv_func___builtin_sinf_link=yes
10124 else
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 rm -rf conftest*
10128 glibcpp_cv_func___builtin_sinf_link=no
10130 rm -f conftest*
10135 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10136 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10137 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10138 cat >> confdefs.h <<EOF
10139 #define ${ac_tr_func} 1
10146 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10147 echo "configure:10148: checking for __builtin_sin declaration" >&5
10148 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10149 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10151 else
10154 ac_ext=C
10155 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10156 ac_cpp='$CXXCPP $CPPFLAGS'
10157 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10158 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10159 cross_compiling=$ac_cv_prog_cxx_cross
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10164 #include <math.h>
10165 int main() {
10166 __builtin_sin(0);
10167 ; return 0; }
10169 if { (eval echo configure:10170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10170 rm -rf conftest*
10171 glibcpp_cv_func___builtin_sin_use=yes
10172 else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -rf conftest*
10176 glibcpp_cv_func___builtin_sin_use=no
10178 rm -f conftest*
10179 ac_ext=c
10180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10181 ac_cpp='$CPP $CPPFLAGS'
10182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10184 cross_compiling=$ac_cv_prog_cc_cross
10190 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10191 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10192 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10193 echo "configure:10194: checking for __builtin_sin linkage" >&5
10194 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10195 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10197 else
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 #include <math.h>
10203 int main() {
10204 __builtin_sin(0);
10205 ; return 0; }
10207 if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10208 rm -rf conftest*
10209 glibcpp_cv_func___builtin_sin_link=yes
10210 else
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 glibcpp_cv_func___builtin_sin_link=no
10216 rm -f conftest*
10221 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10222 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10223 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10224 cat >> confdefs.h <<EOF
10225 #define ${ac_tr_func} 1
10232 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10233 echo "configure:10234: checking for __builtin_sinl declaration" >&5
10234 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10235 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
10237 else
10240 ac_ext=C
10241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10242 ac_cpp='$CXXCPP $CPPFLAGS'
10243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10245 cross_compiling=$ac_cv_prog_cxx_cross
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 #include <math.h>
10251 int main() {
10252 __builtin_sinl(0);
10253 ; return 0; }
10255 if { (eval echo configure:10256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10256 rm -rf conftest*
10257 glibcpp_cv_func___builtin_sinl_use=yes
10258 else
10259 echo "configure: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10261 rm -rf conftest*
10262 glibcpp_cv_func___builtin_sinl_use=no
10264 rm -f conftest*
10265 ac_ext=c
10266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10267 ac_cpp='$CPP $CPPFLAGS'
10268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10270 cross_compiling=$ac_cv_prog_cc_cross
10276 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10277 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10278 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10279 echo "configure:10280: checking for __builtin_sinl linkage" >&5
10280 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10281 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10283 else
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <math.h>
10289 int main() {
10290 __builtin_sinl(0);
10291 ; return 0; }
10293 if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10294 rm -rf conftest*
10295 glibcpp_cv_func___builtin_sinl_link=yes
10296 else
10297 echo "configure: failed program was:" >&5
10298 cat conftest.$ac_ext >&5
10299 rm -rf conftest*
10300 glibcpp_cv_func___builtin_sinl_link=no
10302 rm -f conftest*
10307 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10308 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10309 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10310 cat >> confdefs.h <<EOF
10311 #define ${ac_tr_func} 1
10319 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10320 echo "configure:10321: checking for __builtin_cosf declaration" >&5
10321 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10322 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10324 else
10327 ac_ext=C
10328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10329 ac_cpp='$CXXCPP $CPPFLAGS'
10330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10332 cross_compiling=$ac_cv_prog_cxx_cross
10334 cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337 #include <math.h>
10338 int main() {
10339 __builtin_cosf(0);
10340 ; return 0; }
10342 if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10343 rm -rf conftest*
10344 glibcpp_cv_func___builtin_cosf_use=yes
10345 else
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 rm -rf conftest*
10349 glibcpp_cv_func___builtin_cosf_use=no
10351 rm -f conftest*
10352 ac_ext=c
10353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10354 ac_cpp='$CPP $CPPFLAGS'
10355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10357 cross_compiling=$ac_cv_prog_cc_cross
10363 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10364 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10365 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10366 echo "configure:10367: checking for __builtin_cosf linkage" >&5
10367 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10368 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10370 else
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10375 #include <math.h>
10376 int main() {
10377 __builtin_cosf(0);
10378 ; return 0; }
10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10381 rm -rf conftest*
10382 glibcpp_cv_func___builtin_cosf_link=yes
10383 else
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10386 rm -rf conftest*
10387 glibcpp_cv_func___builtin_cosf_link=no
10389 rm -f conftest*
10394 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10395 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10396 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10397 cat >> confdefs.h <<EOF
10398 #define ${ac_tr_func} 1
10405 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10406 echo "configure:10407: checking for __builtin_cos declaration" >&5
10407 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10408 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10409 echo $ac_n "(cached) $ac_c" 1>&6
10410 else
10413 ac_ext=C
10414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10415 ac_cpp='$CXXCPP $CPPFLAGS'
10416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10418 cross_compiling=$ac_cv_prog_cxx_cross
10420 cat > conftest.$ac_ext <<EOF
10421 #line 10422 "configure"
10422 #include "confdefs.h"
10423 #include <math.h>
10424 int main() {
10425 __builtin_cos(0);
10426 ; return 0; }
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10429 rm -rf conftest*
10430 glibcpp_cv_func___builtin_cos_use=yes
10431 else
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 rm -rf conftest*
10435 glibcpp_cv_func___builtin_cos_use=no
10437 rm -f conftest*
10438 ac_ext=c
10439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10440 ac_cpp='$CPP $CPPFLAGS'
10441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10443 cross_compiling=$ac_cv_prog_cc_cross
10449 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10450 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10451 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10452 echo "configure:10453: checking for __builtin_cos linkage" >&5
10453 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10454 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10456 else
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10461 #include <math.h>
10462 int main() {
10463 __builtin_cos(0);
10464 ; return 0; }
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 rm -rf conftest*
10468 glibcpp_cv_func___builtin_cos_link=yes
10469 else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -rf conftest*
10473 glibcpp_cv_func___builtin_cos_link=no
10475 rm -f conftest*
10480 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10481 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10482 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10483 cat >> confdefs.h <<EOF
10484 #define ${ac_tr_func} 1
10491 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10492 echo "configure:10493: checking for __builtin_cosl declaration" >&5
10493 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10494 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10499 ac_ext=C
10500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10501 ac_cpp='$CXXCPP $CPPFLAGS'
10502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10504 cross_compiling=$ac_cv_prog_cxx_cross
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 #include <math.h>
10510 int main() {
10511 __builtin_cosl(0);
10512 ; return 0; }
10514 if { (eval echo configure:10515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10515 rm -rf conftest*
10516 glibcpp_cv_func___builtin_cosl_use=yes
10517 else
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521 glibcpp_cv_func___builtin_cosl_use=no
10523 rm -f conftest*
10524 ac_ext=c
10525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10526 ac_cpp='$CPP $CPPFLAGS'
10527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10529 cross_compiling=$ac_cv_prog_cc_cross
10535 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10536 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10537 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10538 echo "configure:10539: checking for __builtin_cosl linkage" >&5
10539 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10540 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10542 else
10544 cat > conftest.$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10547 #include <math.h>
10548 int main() {
10549 __builtin_cosl(0);
10550 ; return 0; }
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10553 rm -rf conftest*
10554 glibcpp_cv_func___builtin_cosl_link=yes
10555 else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -rf conftest*
10559 glibcpp_cv_func___builtin_cosl_link=no
10561 rm -f conftest*
10566 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10567 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10568 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10569 cat >> confdefs.h <<EOF
10570 #define ${ac_tr_func} 1
10577 dummyvar=no
10578 if test x$dummyvar = x"yes"; then
10579 cat >> confdefs.h <<\EOF
10580 #define HAVE___BUILTIN_ABS 1
10583 cat >> confdefs.h <<\EOF
10584 #define HAVE___BUILTIN_LABS 1
10587 cat >> confdefs.h <<\EOF
10588 #define HAVE___BUILTIN_COS 1
10591 cat >> confdefs.h <<\EOF
10592 #define HAVE___BUILTIN_COSF 1
10595 cat >> confdefs.h <<\EOF
10596 #define HAVE___BUILTIN_COSL 1
10599 cat >> confdefs.h <<\EOF
10600 #define HAVE___BUILTIN_FABS 1
10603 cat >> confdefs.h <<\EOF
10604 #define HAVE___BUILTIN_FABSF 1
10607 cat >> confdefs.h <<\EOF
10608 #define HAVE___BUILTIN_FABSL 1
10611 cat >> confdefs.h <<\EOF
10612 #define HAVE___BUILTIN_SIN 1
10615 cat >> confdefs.h <<\EOF
10616 #define HAVE___BUILTIN_SINF 1
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE___BUILTIN_SINL 1
10623 cat >> confdefs.h <<\EOF
10624 #define HAVE___BUILTIN_SQRT 1
10627 cat >> confdefs.h <<\EOF
10628 #define HAVE___BUILTIN_SQRTF 1
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE___BUILTIN_SQRTL 1
10638 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10639 ac_save_CXXFLAGS="$CXXFLAGS"
10640 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10642 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10643 echo "configure:10644: checking for sin in -lm" >&5
10644 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10647 else
10648 ac_save_LIBS="$LIBS"
10649 LIBS="-lm $LIBS"
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 /* Override any gcc2 internal prototype to avoid an error. */
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char sin();
10658 int main() {
10659 sin()
10660 ; return 0; }
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10663 rm -rf conftest*
10664 eval "ac_cv_lib_$ac_lib_var=yes"
10665 else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -rf conftest*
10669 eval "ac_cv_lib_$ac_lib_var=no"
10671 rm -f conftest*
10672 LIBS="$ac_save_LIBS"
10675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10676 echo "$ac_t""yes" 1>&6
10677 libm="-lm"
10678 else
10679 echo "$ac_t""no" 1>&6
10682 ac_save_LIBS="$LIBS"
10683 LIBS="$LIBS $libm"
10687 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10688 echo "configure:10689: checking for isinf declaration" >&5
10689 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10690 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10691 echo $ac_n "(cached) $ac_c" 1>&6
10692 else
10695 ac_ext=C
10696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10697 ac_cpp='$CXXCPP $CPPFLAGS'
10698 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10699 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10700 cross_compiling=$ac_cv_prog_cxx_cross
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10705 #include <math.h>
10706 #ifdef HAVE_IEEEFP_H
10707 #include <ieeefp.h>
10708 #endif
10710 int main() {
10711 isinf(0);
10712 ; return 0; }
10714 if { (eval echo configure:10715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10715 rm -rf conftest*
10716 glibcpp_cv_func_isinf_use=yes
10717 else
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 rm -rf conftest*
10721 glibcpp_cv_func_isinf_use=no
10723 rm -f conftest*
10724 ac_ext=c
10725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10726 ac_cpp='$CPP $CPPFLAGS'
10727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10729 cross_compiling=$ac_cv_prog_cc_cross
10735 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10737 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10738 for ac_func in isinf
10740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10741 echo "configure:10742: checking for $ac_func" >&5
10742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10744 else
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char $ac_func(); below. */
10750 #include <assert.h>
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char $ac_func();
10756 int main() {
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10762 choke me
10763 #else
10764 $ac_func();
10765 #endif
10767 ; return 0; }
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10770 rm -rf conftest*
10771 eval "ac_cv_func_$ac_func=yes"
10772 else
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10775 rm -rf conftest*
10776 eval "ac_cv_func_$ac_func=no"
10778 rm -f conftest*
10781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10784 cat >> confdefs.h <<EOF
10785 #define $ac_tr_func 1
10788 else
10789 echo "$ac_t""no" 1>&6
10791 done
10793 else
10795 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10796 echo "configure:10797: checking for _isinf declaration" >&5
10797 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10798 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10800 else
10803 ac_ext=C
10804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10805 ac_cpp='$CXXCPP $CPPFLAGS'
10806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10808 cross_compiling=$ac_cv_prog_cxx_cross
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 #include <math.h>
10814 #ifdef HAVE_IEEEFP_H
10815 #include <ieeefp.h>
10816 #endif
10818 int main() {
10819 _isinf(0);
10820 ; return 0; }
10822 if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10823 rm -rf conftest*
10824 glibcpp_cv_func__isinf_use=yes
10825 else
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 rm -rf conftest*
10829 glibcpp_cv_func__isinf_use=no
10831 rm -f conftest*
10832 ac_ext=c
10833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10834 ac_cpp='$CPP $CPPFLAGS'
10835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10837 cross_compiling=$ac_cv_prog_cc_cross
10843 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10845 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10846 for ac_func in _isinf
10848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10849 echo "configure:10850: checking for $ac_func" >&5
10850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852 else
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char $ac_func(); below. */
10858 #include <assert.h>
10859 /* Override any gcc2 internal prototype to avoid an error. */
10860 /* We use char because int might match the return type of a gcc2
10861 builtin and then its argument prototype would still apply. */
10862 char $ac_func();
10864 int main() {
10866 /* The GNU C library defines this for functions which it implements
10867 to always fail with ENOSYS. Some functions are actually named
10868 something starting with __ and the normal name is an alias. */
10869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10870 choke me
10871 #else
10872 $ac_func();
10873 #endif
10875 ; return 0; }
10877 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10878 rm -rf conftest*
10879 eval "ac_cv_func_$ac_func=yes"
10880 else
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10883 rm -rf conftest*
10884 eval "ac_cv_func_$ac_func=no"
10886 rm -f conftest*
10889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10890 echo "$ac_t""yes" 1>&6
10891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10892 cat >> confdefs.h <<EOF
10893 #define $ac_tr_func 1
10896 else
10897 echo "$ac_t""no" 1>&6
10899 done
10906 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10907 echo "configure:10908: checking for isnan declaration" >&5
10908 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10909 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10911 else
10914 ac_ext=C
10915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10916 ac_cpp='$CXXCPP $CPPFLAGS'
10917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10919 cross_compiling=$ac_cv_prog_cxx_cross
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10924 #include <math.h>
10925 #ifdef HAVE_IEEEFP_H
10926 #include <ieeefp.h>
10927 #endif
10929 int main() {
10930 isnan(0);
10931 ; return 0; }
10933 if { (eval echo configure:10934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10934 rm -rf conftest*
10935 glibcpp_cv_func_isnan_use=yes
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 glibcpp_cv_func_isnan_use=no
10942 rm -f conftest*
10943 ac_ext=c
10944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10945 ac_cpp='$CPP $CPPFLAGS'
10946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10948 cross_compiling=$ac_cv_prog_cc_cross
10954 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10956 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10957 for ac_func in isnan
10959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10960 echo "configure:10961: checking for $ac_func" >&5
10961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10963 else
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 /* System header to define __stub macros and hopefully few prototypes,
10968 which can conflict with char $ac_func(); below. */
10969 #include <assert.h>
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973 char $ac_func();
10975 int main() {
10977 /* The GNU C library defines this for functions which it implements
10978 to always fail with ENOSYS. Some functions are actually named
10979 something starting with __ and the normal name is an alias. */
10980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10981 choke me
10982 #else
10983 $ac_func();
10984 #endif
10986 ; return 0; }
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10989 rm -rf conftest*
10990 eval "ac_cv_func_$ac_func=yes"
10991 else
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -rf conftest*
10995 eval "ac_cv_func_$ac_func=no"
10997 rm -f conftest*
11000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11001 echo "$ac_t""yes" 1>&6
11002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11003 cat >> confdefs.h <<EOF
11004 #define $ac_tr_func 1
11007 else
11008 echo "$ac_t""no" 1>&6
11010 done
11012 else
11014 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11015 echo "configure:11016: checking for _isnan declaration" >&5
11016 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11017 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11019 else
11022 ac_ext=C
11023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11024 ac_cpp='$CXXCPP $CPPFLAGS'
11025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11027 cross_compiling=$ac_cv_prog_cxx_cross
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 #include <math.h>
11033 #ifdef HAVE_IEEEFP_H
11034 #include <ieeefp.h>
11035 #endif
11037 int main() {
11038 _isnan(0);
11039 ; return 0; }
11041 if { (eval echo configure:11042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11042 rm -rf conftest*
11043 glibcpp_cv_func__isnan_use=yes
11044 else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 glibcpp_cv_func__isnan_use=no
11050 rm -f conftest*
11051 ac_ext=c
11052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11053 ac_cpp='$CPP $CPPFLAGS'
11054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11056 cross_compiling=$ac_cv_prog_cc_cross
11062 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11064 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11065 for ac_func in _isnan
11067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11068 echo "configure:11069: checking for $ac_func" >&5
11069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11071 else
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075 /* System header to define __stub macros and hopefully few prototypes,
11076 which can conflict with char $ac_func(); below. */
11077 #include <assert.h>
11078 /* Override any gcc2 internal prototype to avoid an error. */
11079 /* We use char because int might match the return type of a gcc2
11080 builtin and then its argument prototype would still apply. */
11081 char $ac_func();
11083 int main() {
11085 /* The GNU C library defines this for functions which it implements
11086 to always fail with ENOSYS. Some functions are actually named
11087 something starting with __ and the normal name is an alias. */
11088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11089 choke me
11090 #else
11091 $ac_func();
11092 #endif
11094 ; return 0; }
11096 if { (eval echo configure:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11097 rm -rf conftest*
11098 eval "ac_cv_func_$ac_func=yes"
11099 else
11100 echo "configure: failed program was:" >&5
11101 cat conftest.$ac_ext >&5
11102 rm -rf conftest*
11103 eval "ac_cv_func_$ac_func=no"
11105 rm -f conftest*
11108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11109 echo "$ac_t""yes" 1>&6
11110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11111 cat >> confdefs.h <<EOF
11112 #define $ac_tr_func 1
11115 else
11116 echo "$ac_t""no" 1>&6
11118 done
11125 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11126 echo "configure:11127: checking for finite declaration" >&5
11127 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11128 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11133 ac_ext=C
11134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11135 ac_cpp='$CXXCPP $CPPFLAGS'
11136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138 cross_compiling=$ac_cv_prog_cxx_cross
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 #include <math.h>
11144 #ifdef HAVE_IEEEFP_H
11145 #include <ieeefp.h>
11146 #endif
11148 int main() {
11149 finite(0);
11150 ; return 0; }
11152 if { (eval echo configure:11153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11153 rm -rf conftest*
11154 glibcpp_cv_func_finite_use=yes
11155 else
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 rm -rf conftest*
11159 glibcpp_cv_func_finite_use=no
11161 rm -f conftest*
11162 ac_ext=c
11163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11167 cross_compiling=$ac_cv_prog_cc_cross
11173 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11175 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11176 for ac_func in finite
11178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11179 echo "configure:11180: checking for $ac_func" >&5
11180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182 else
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 /* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func(); below. */
11188 #include <assert.h>
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192 char $ac_func();
11194 int main() {
11196 /* The GNU C library defines this for functions which it implements
11197 to always fail with ENOSYS. Some functions are actually named
11198 something starting with __ and the normal name is an alias. */
11199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11200 choke me
11201 #else
11202 $ac_func();
11203 #endif
11205 ; return 0; }
11207 if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11208 rm -rf conftest*
11209 eval "ac_cv_func_$ac_func=yes"
11210 else
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 eval "ac_cv_func_$ac_func=no"
11216 rm -f conftest*
11219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11222 cat >> confdefs.h <<EOF
11223 #define $ac_tr_func 1
11226 else
11227 echo "$ac_t""no" 1>&6
11229 done
11231 else
11233 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11234 echo "configure:11235: checking for _finite declaration" >&5
11235 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11236 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11237 echo $ac_n "(cached) $ac_c" 1>&6
11238 else
11241 ac_ext=C
11242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243 ac_cpp='$CXXCPP $CPPFLAGS'
11244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246 cross_compiling=$ac_cv_prog_cxx_cross
11248 cat > conftest.$ac_ext <<EOF
11249 #line 11250 "configure"
11250 #include "confdefs.h"
11251 #include <math.h>
11252 #ifdef HAVE_IEEEFP_H
11253 #include <ieeefp.h>
11254 #endif
11256 int main() {
11257 _finite(0);
11258 ; return 0; }
11260 if { (eval echo configure:11261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11261 rm -rf conftest*
11262 glibcpp_cv_func__finite_use=yes
11263 else
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 rm -rf conftest*
11267 glibcpp_cv_func__finite_use=no
11269 rm -f conftest*
11270 ac_ext=c
11271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11272 ac_cpp='$CPP $CPPFLAGS'
11273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11275 cross_compiling=$ac_cv_prog_cc_cross
11281 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11283 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11284 for ac_func in _finite
11286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11287 echo "configure:11288: checking for $ac_func" >&5
11288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290 else
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char $ac_func(); below. */
11296 #include <assert.h>
11297 /* Override any gcc2 internal prototype to avoid an error. */
11298 /* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */
11300 char $ac_func();
11302 int main() {
11304 /* The GNU C library defines this for functions which it implements
11305 to always fail with ENOSYS. Some functions are actually named
11306 something starting with __ and the normal name is an alias. */
11307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11308 choke me
11309 #else
11310 $ac_func();
11311 #endif
11313 ; return 0; }
11315 if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316 rm -rf conftest*
11317 eval "ac_cv_func_$ac_func=yes"
11318 else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 eval "ac_cv_func_$ac_func=no"
11324 rm -f conftest*
11327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11330 cat >> confdefs.h <<EOF
11331 #define $ac_tr_func 1
11334 else
11335 echo "$ac_t""no" 1>&6
11337 done
11344 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11345 echo "configure:11346: checking for copysign declaration" >&5
11346 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11347 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11348 echo $ac_n "(cached) $ac_c" 1>&6
11349 else
11352 ac_ext=C
11353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11354 ac_cpp='$CXXCPP $CPPFLAGS'
11355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11357 cross_compiling=$ac_cv_prog_cxx_cross
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11361 "configure"
11361 #include "confdefs.h"
11362 #include <math.h>
11363 int main() {
11364 copysign(0, 0);
11365 ; return 0; }
11367 if { (eval echo configure:11368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11368 rm -rf conftest*
11369 glibcpp_cv_func_copysign_use=yes
11370 else
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 rm -rf conftest*
11374 glibcpp_cv_func_copysign_use=no
11376 rm -f conftest*
11377 ac_ext=c
11378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11379 ac_cpp='$CPP $CPPFLAGS'
11380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11382 cross_compiling=$ac_cv_prog_cc_cross
11388 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11390 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11391 for ac_func in copysign
11393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11394 echo "configure:11395: checking for $ac_func" >&5
11395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11397 else
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func(); below. */
11403 #include <assert.h>
11404 /* Override any gcc2 internal prototype to avoid an error. */
11405 /* We use char because int might match the return type of a gcc2
11406 builtin and then its argument prototype would still apply. */
11407 char $ac_func();
11409 int main() {
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11415 choke me
11416 #else
11417 $ac_func();
11418 #endif
11420 ; return 0; }
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11423 rm -rf conftest*
11424 eval "ac_cv_func_$ac_func=yes"
11425 else
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 rm -rf conftest*
11429 eval "ac_cv_func_$ac_func=no"
11431 rm -f conftest*
11434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11435 echo "$ac_t""yes" 1>&6
11436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11437 cat >> confdefs.h <<EOF
11438 #define $ac_tr_func 1
11441 else
11442 echo "$ac_t""no" 1>&6
11444 done
11446 else
11448 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11449 echo "configure:11450: checking for _copysign declaration" >&5
11450 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11451 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11453 else
11456 ac_ext=C
11457 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11458 ac_cpp='$CXXCPP $CPPFLAGS'
11459 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11460 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11461 cross_compiling=$ac_cv_prog_cxx_cross
11463 cat > conftest.$ac_ext <<EOF
11464 #line 11465 "configure"
11465 #include "confdefs.h"
11466 #include <math.h>
11467 int main() {
11468 _copysign(0, 0);
11469 ; return 0; }
11471 if { (eval echo configure:11472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11472 rm -rf conftest*
11473 glibcpp_cv_func__copysign_use=yes
11474 else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478 glibcpp_cv_func__copysign_use=no
11480 rm -f conftest*
11481 ac_ext=c
11482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11486 cross_compiling=$ac_cv_prog_cc_cross
11492 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11494 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11495 for ac_func in _copysign
11497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11498 echo "configure:11499: checking for $ac_func" >&5
11499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
11501 else
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func(); below. */
11507 #include <assert.h>
11508 /* Override any gcc2 internal prototype to avoid an error. */
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511 char $ac_func();
11513 int main() {
11515 /* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11519 choke me
11520 #else
11521 $ac_func();
11522 #endif
11524 ; return 0; }
11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=yes"
11529 else
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11532 rm -rf conftest*
11533 eval "ac_cv_func_$ac_func=no"
11535 rm -f conftest*
11538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11539 echo "$ac_t""yes" 1>&6
11540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11541 cat >> confdefs.h <<EOF
11542 #define $ac_tr_func 1
11545 else
11546 echo "$ac_t""no" 1>&6
11548 done
11555 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11556 echo "configure:11557: checking for sincos declaration" >&5
11557 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11558 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11560 else
11563 ac_ext=C
11564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11565 ac_cpp='$CXXCPP $CPPFLAGS'
11566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11568 cross_compiling=$ac_cv_prog_cxx_cross
11570 cat > conftest.$ac_ext <<EOF
11571 #line 11572 "configure"
11572 #include "confdefs.h"
11573 #include <math.h>
11574 int main() {
11575 sincos(0, 0, 0);
11576 ; return 0; }
11578 if { (eval echo configure:11579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11579 rm -rf conftest*
11580 glibcpp_cv_func_sincos_use=yes
11581 else
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 rm -rf conftest*
11585 glibcpp_cv_func_sincos_use=no
11587 rm -f conftest*
11588 ac_ext=c
11589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11590 ac_cpp='$CPP $CPPFLAGS'
11591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11593 cross_compiling=$ac_cv_prog_cc_cross
11599 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11601 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11602 for ac_func in sincos
11604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11605 echo "configure:11606: checking for $ac_func" >&5
11606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11608 else
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func(); below. */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11616 /* We use char because int might match the return type of a gcc2
11617 builtin and then its argument prototype would still apply. */
11618 char $ac_func();
11620 int main() {
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11626 choke me
11627 #else
11628 $ac_func();
11629 #endif
11631 ; return 0; }
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634 rm -rf conftest*
11635 eval "ac_cv_func_$ac_func=yes"
11636 else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=no"
11642 rm -f conftest*
11645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11648 cat >> confdefs.h <<EOF
11649 #define $ac_tr_func 1
11652 else
11653 echo "$ac_t""no" 1>&6
11655 done
11657 else
11659 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11660 echo "configure:11661: checking for _sincos declaration" >&5
11661 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11662 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664 else
11667 ac_ext=C
11668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11669 ac_cpp='$CXXCPP $CPPFLAGS'
11670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11672 cross_compiling=$ac_cv_prog_cxx_cross
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 #include <math.h>
11678 int main() {
11679 _sincos(0, 0, 0);
11680 ; return 0; }
11682 if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11683 rm -rf conftest*
11684 glibcpp_cv_func__sincos_use=yes
11685 else
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11688 rm -rf conftest*
11689 glibcpp_cv_func__sincos_use=no
11691 rm -f conftest*
11692 ac_ext=c
11693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11694 ac_cpp='$CPP $CPPFLAGS'
11695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11697 cross_compiling=$ac_cv_prog_cc_cross
11703 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11705 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11706 for ac_func in _sincos
11708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11709 echo "configure:11710: checking for $ac_func" >&5
11710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func(); below. */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error. */
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722 char $ac_func();
11724 int main() {
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11730 choke me
11731 #else
11732 $ac_func();
11733 #endif
11735 ; return 0; }
11737 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11738 rm -rf conftest*
11739 eval "ac_cv_func_$ac_func=yes"
11740 else
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 rm -rf conftest*
11744 eval "ac_cv_func_$ac_func=no"
11746 rm -f conftest*
11749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11750 echo "$ac_t""yes" 1>&6
11751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11752 cat >> confdefs.h <<EOF
11753 #define $ac_tr_func 1
11756 else
11757 echo "$ac_t""no" 1>&6
11759 done
11766 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11767 echo "configure:11768: checking for fpclass declaration" >&5
11768 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11769 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11774 ac_ext=C
11775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11776 ac_cpp='$CXXCPP $CPPFLAGS'
11777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11779 cross_compiling=$ac_cv_prog_cxx_cross
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 #include <math.h>
11785 #ifdef HAVE_IEEEFP_H
11786 #include <ieeefp.h>
11787 #endif
11789 int main() {
11790 fpclass(0);
11791 ; return 0; }
11793 if { (eval echo configure:11794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11794 rm -rf conftest*
11795 glibcpp_cv_func_fpclass_use=yes
11796 else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
11800 glibcpp_cv_func_fpclass_use=no
11802 rm -f conftest*
11803 ac_ext=c
11804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11808 cross_compiling=$ac_cv_prog_cc_cross
11814 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11816 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11817 for ac_func in fpclass
11819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11820 echo "configure:11821: checking for $ac_func" >&5
11821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
11823 else
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char $ac_func(); below. */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 /* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */
11833 char $ac_func();
11835 int main() {
11837 /* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11841 choke me
11842 #else
11843 $ac_func();
11844 #endif
11846 ; return 0; }
11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11849 rm -rf conftest*
11850 eval "ac_cv_func_$ac_func=yes"
11851 else
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855 eval "ac_cv_func_$ac_func=no"
11857 rm -f conftest*
11860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11861 echo "$ac_t""yes" 1>&6
11862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11863 cat >> confdefs.h <<EOF
11864 #define $ac_tr_func 1
11867 else
11868 echo "$ac_t""no" 1>&6
11870 done
11872 else
11874 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11875 echo "configure:11876: checking for _fpclass declaration" >&5
11876 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11877 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11878 echo $ac_n "(cached) $ac_c" 1>&6
11879 else
11882 ac_ext=C
11883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11884 ac_cpp='$CXXCPP $CPPFLAGS'
11885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11887 cross_compiling=$ac_cv_prog_cxx_cross
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11892 #include <math.h>
11893 #ifdef HAVE_IEEEFP_H
11894 #include <ieeefp.h>
11895 #endif
11897 int main() {
11898 _fpclass(0);
11899 ; return 0; }
11901 if { (eval echo configure:11902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11902 rm -rf conftest*
11903 glibcpp_cv_func__fpclass_use=yes
11904 else
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 glibcpp_cv_func__fpclass_use=no
11910 rm -f conftest*
11911 ac_ext=c
11912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11913 ac_cpp='$CPP $CPPFLAGS'
11914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11916 cross_compiling=$ac_cv_prog_cc_cross
11922 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11924 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11925 for ac_func in _fpclass
11927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11928 echo "configure:11929: checking for $ac_func" >&5
11929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11931 else
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11935 /* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char $ac_func(); below. */
11937 #include <assert.h>
11938 /* Override any gcc2 internal prototype to avoid an error. */
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941 char $ac_func();
11943 int main() {
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11949 choke me
11950 #else
11951 $ac_func();
11952 #endif
11954 ; return 0; }
11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11957 rm -rf conftest*
11958 eval "ac_cv_func_$ac_func=yes"
11959 else
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 rm -rf conftest*
11963 eval "ac_cv_func_$ac_func=no"
11965 rm -f conftest*
11968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11969 echo "$ac_t""yes" 1>&6
11970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11971 cat >> confdefs.h <<EOF
11972 #define $ac_tr_func 1
11975 else
11976 echo "$ac_t""no" 1>&6
11978 done
11985 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11986 echo "configure:11987: checking for qfpclass declaration" >&5
11987 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11988 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11989 echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11993 ac_ext=C
11994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11995 ac_cpp='$CXXCPP $CPPFLAGS'
11996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11998 cross_compiling=$ac_cv_prog_cxx_cross
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <math.h>
12004 #ifdef HAVE_IEEEFP_H
12005 #include <ieeefp.h>
12006 #endif
12008 int main() {
12009 qfpclass(0);
12010 ; return 0; }
12012 if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12013 rm -rf conftest*
12014 glibcpp_cv_func_qfpclass_use=yes
12015 else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 glibcpp_cv_func_qfpclass_use=no
12021 rm -f conftest*
12022 ac_ext=c
12023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12027 cross_compiling=$ac_cv_prog_cc_cross
12033 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12035 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12036 for ac_func in qfpclass
12038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_func" >&5
12040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12042 else
12043 cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func(); below. */
12048 #include <assert.h>
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char $ac_func();
12054 int main() {
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12060 choke me
12061 #else
12062 $ac_func();
12063 #endif
12065 ; return 0; }
12067 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12068 rm -rf conftest*
12069 eval "ac_cv_func_$ac_func=yes"
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 eval "ac_cv_func_$ac_func=no"
12076 rm -f conftest*
12079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12082 cat >> confdefs.h <<EOF
12083 #define $ac_tr_func 1
12086 else
12087 echo "$ac_t""no" 1>&6
12089 done
12091 else
12093 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12094 echo "configure:12095: checking for _qfpclass declaration" >&5
12095 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12096 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12101 ac_ext=C
12102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12103 ac_cpp='$CXXCPP $CPPFLAGS'
12104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12106 cross_compiling=$ac_cv_prog_cxx_cross
12108 cat > conftest.$ac_ext <<EOF
12109 #line 12110 "configure"
12110 #include "confdefs.h"
12111 #include <math.h>
12112 #ifdef HAVE_IEEEFP_H
12113 #include <ieeefp.h>
12114 #endif
12116 int main() {
12117 _qfpclass(0);
12118 ; return 0; }
12120 if { (eval echo configure:12121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12121 rm -rf conftest*
12122 glibcpp_cv_func__qfpclass_use=yes
12123 else
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12126 rm -rf conftest*
12127 glibcpp_cv_func__qfpclass_use=no
12129 rm -f conftest*
12130 ac_ext=c
12131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12132 ac_cpp='$CPP $CPPFLAGS'
12133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12135 cross_compiling=$ac_cv_prog_cc_cross
12141 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12143 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12144 for ac_func in _qfpclass
12146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12147 echo "configure:12148: checking for $ac_func" >&5
12148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150 else
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 /* System header to define __stub macros and hopefully few prototypes,
12155 which can conflict with char $ac_func(); below. */
12156 #include <assert.h>
12157 /* Override any gcc2 internal prototype to avoid an error. */
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char $ac_func();
12162 int main() {
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12168 choke me
12169 #else
12170 $ac_func();
12171 #endif
12173 ; return 0; }
12175 if { (eval echo configure:12176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12176 rm -rf conftest*
12177 eval "ac_cv_func_$ac_func=yes"
12178 else
12179 echo "configure: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 rm -rf conftest*
12182 eval "ac_cv_func_$ac_func=no"
12184 rm -f conftest*
12187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12188 echo "$ac_t""yes" 1>&6
12189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12190 cat >> confdefs.h <<EOF
12191 #define $ac_tr_func 1
12194 else
12195 echo "$ac_t""no" 1>&6
12197 done
12204 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12205 echo "configure:12206: checking for hypot declaration" >&5
12206 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12207 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12208 echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12212 ac_ext=C
12213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12214 ac_cpp='$CXXCPP $CPPFLAGS'
12215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12217 cross_compiling=$ac_cv_prog_cxx_cross
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 #include <math.h>
12223 int main() {
12224 hypot(0, 0);
12225 ; return 0; }
12227 if { (eval echo configure:12228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12228 rm -rf conftest*
12229 glibcpp_cv_func_hypot_use=yes
12230 else
12231 echo "configure: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 rm -rf conftest*
12234 glibcpp_cv_func_hypot_use=no
12236 rm -f conftest*
12237 ac_ext=c
12238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12239 ac_cpp='$CPP $CPPFLAGS'
12240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12242 cross_compiling=$ac_cv_prog_cc_cross
12248 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12250 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12251 for ac_func in hypot
12253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12254 echo "configure:12255: checking for $ac_func" >&5
12255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12257 else
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 /* System header to define __stub macros and hopefully few prototypes,
12262 which can conflict with char $ac_func(); below. */
12263 #include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error. */
12265 /* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12267 char $ac_func();
12269 int main() {
12271 /* The GNU C library defines this for functions which it implements
12272 to always fail with ENOSYS. Some functions are actually named
12273 something starting with __ and the normal name is an alias. */
12274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12275 choke me
12276 #else
12277 $ac_func();
12278 #endif
12280 ; return 0; }
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12283 rm -rf conftest*
12284 eval "ac_cv_func_$ac_func=yes"
12285 else
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12288 rm -rf conftest*
12289 eval "ac_cv_func_$ac_func=no"
12291 rm -f conftest*
12294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12295 echo "$ac_t""yes" 1>&6
12296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12297 cat >> confdefs.h <<EOF
12298 #define $ac_tr_func 1
12301 else
12302 echo "$ac_t""no" 1>&6
12304 done
12306 else
12308 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12309 echo "configure:12310: checking for _hypot declaration" >&5
12310 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12311 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12312 echo $ac_n "(cached) $ac_c" 1>&6
12313 else
12316 ac_ext=C
12317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12318 ac_cpp='$CXXCPP $CPPFLAGS'
12319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12321 cross_compiling=$ac_cv_prog_cxx_cross
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12326 #include <math.h>
12327 int main() {
12328 _hypot(0, 0);
12329 ; return 0; }
12331 if { (eval echo configure:12332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12332 rm -rf conftest*
12333 glibcpp_cv_func__hypot_use=yes
12334 else
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338 glibcpp_cv_func__hypot_use=no
12340 rm -f conftest*
12341 ac_ext=c
12342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12343 ac_cpp='$CPP $CPPFLAGS'
12344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12346 cross_compiling=$ac_cv_prog_cc_cross
12352 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12354 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12355 for ac_func in _hypot
12357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12358 echo "configure:12359: checking for $ac_func" >&5
12359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12360 echo $ac_n "(cached) $ac_c" 1>&6
12361 else
12362 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 /* System header to define __stub macros and hopefully few prototypes,
12366 which can conflict with char $ac_func(); below. */
12367 #include <assert.h>
12368 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char $ac_func();
12373 int main() {
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12379 choke me
12380 #else
12381 $ac_func();
12382 #endif
12384 ; return 0; }
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387 rm -rf conftest*
12388 eval "ac_cv_func_$ac_func=yes"
12389 else
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12392 rm -rf conftest*
12393 eval "ac_cv_func_$ac_func=no"
12395 rm -f conftest*
12398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12399 echo "$ac_t""yes" 1>&6
12400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12401 cat >> confdefs.h <<EOF
12402 #define $ac_tr_func 1
12405 else
12406 echo "$ac_t""no" 1>&6
12408 done
12415 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12416 echo "configure:12417: checking for float trig functions" >&5
12417 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12419 else
12422 ac_ext=C
12423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12424 ac_cpp='$CXXCPP $CPPFLAGS'
12425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12427 cross_compiling=$ac_cv_prog_cxx_cross
12429 cat > conftest.$ac_ext <<EOF
12430 #line 12431 "configure"
12431 #include "confdefs.h"
12432 #include <math.h>
12433 int main() {
12434 `for x in acosf asinf atanf \
12435 cosf sinf tanf \
12436 coshf sinhf tanhf; do echo "$x (0);"; done`
12437 ; return 0; }
12439 if { (eval echo configure:12440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12440 rm -rf conftest*
12441 glibcpp_cv_func_float_trig_use=yes
12442 else
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12445 rm -rf conftest*
12446 glibcpp_cv_func_float_trig_use=no
12448 rm -f conftest*
12449 ac_ext=c
12450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12451 ac_cpp='$CPP $CPPFLAGS'
12452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12454 cross_compiling=$ac_cv_prog_cc_cross
12458 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12459 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12460 for ac_func in acosf asinf atanf \
12461 cosf sinf tanf \
12462 coshf sinhf tanhf
12464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12465 echo "configure:12466: checking for $ac_func" >&5
12466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12467 echo $ac_n "(cached) $ac_c" 1>&6
12468 else
12469 cat > conftest.$ac_ext <<EOF
12470 #line 12471 "configure"
12471 #include "confdefs.h"
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func(); below. */
12474 #include <assert.h>
12475 /* Override any gcc2 internal prototype to avoid an error. */
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char $ac_func();
12480 int main() {
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486 choke me
12487 #else
12488 $ac_func();
12489 #endif
12491 ; return 0; }
12493 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12494 rm -rf conftest*
12495 eval "ac_cv_func_$ac_func=yes"
12496 else
12497 echo "configure: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 rm -rf conftest*
12500 eval "ac_cv_func_$ac_func=no"
12502 rm -f conftest*
12505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12506 echo "$ac_t""yes" 1>&6
12507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12508 cat >> confdefs.h <<EOF
12509 #define $ac_tr_func 1
12512 else
12513 echo "$ac_t""no" 1>&6
12515 done
12520 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12521 echo "configure:12522: checking for float round functions" >&5
12522 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12524 else
12527 ac_ext=C
12528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12529 ac_cpp='$CXXCPP $CPPFLAGS'
12530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12532 cross_compiling=$ac_cv_prog_cxx_cross
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 #include <math.h>
12538 int main() {
12539 `for x in ceilf floorf; do echo "$x (0);"; done`
12540 ; return 0; }
12542 if { (eval echo configure:12543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12543 rm -rf conftest*
12544 glibcpp_cv_func_float_round_use=yes
12545 else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 rm -rf conftest*
12549 glibcpp_cv_func_float_round_use=no
12551 rm -f conftest*
12552 ac_ext=c
12553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12554 ac_cpp='$CPP $CPPFLAGS'
12555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12557 cross_compiling=$ac_cv_prog_cc_cross
12561 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12562 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12563 for ac_func in ceilf floorf
12565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12566 echo "configure:12567: checking for $ac_func" >&5
12567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12568 echo $ac_n "(cached) $ac_c" 1>&6
12569 else
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 /* System header to define __stub macros and hopefully few prototypes,
12574 which can conflict with char $ac_func(); below. */
12575 #include <assert.h>
12576 /* Override any gcc2 internal prototype to avoid an error. */
12577 /* We use char because int might match the return type of a gcc2
12578 builtin and then its argument prototype would still apply. */
12579 char $ac_func();
12581 int main() {
12583 /* The GNU C library defines this for functions which it implements
12584 to always fail with ENOSYS. Some functions are actually named
12585 something starting with __ and the normal name is an alias. */
12586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12587 choke me
12588 #else
12589 $ac_func();
12590 #endif
12592 ; return 0; }
12594 if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12595 rm -rf conftest*
12596 eval "ac_cv_func_$ac_func=yes"
12597 else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -rf conftest*
12601 eval "ac_cv_func_$ac_func=no"
12603 rm -f conftest*
12606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12607 echo "$ac_t""yes" 1>&6
12608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12609 cat >> confdefs.h <<EOF
12610 #define $ac_tr_func 1
12613 else
12614 echo "$ac_t""no" 1>&6
12616 done
12622 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12623 echo "configure:12624: checking for expf declaration" >&5
12624 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12625 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12627 else
12630 ac_ext=C
12631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12632 ac_cpp='$CXXCPP $CPPFLAGS'
12633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12635 cross_compiling=$ac_cv_prog_cxx_cross
12637 cat > conftest.$ac_ext <<EOF
12638 #line 12639 "configure"
12639 #include "confdefs.h"
12640 #include <math.h>
12641 #ifdef HAVE_IEEEFP_H
12642 #include <ieeefp.h>
12643 #endif
12645 int main() {
12646 expf(0);
12647 ; return 0; }
12649 if { (eval echo configure:12650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12650 rm -rf conftest*
12651 glibcpp_cv_func_expf_use=yes
12652 else
12653 echo "configure: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 rm -rf conftest*
12656 glibcpp_cv_func_expf_use=no
12658 rm -f conftest*
12659 ac_ext=c
12660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12664 cross_compiling=$ac_cv_prog_cc_cross
12670 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12672 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12673 for ac_func in expf
12675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12676 echo "configure:12677: checking for $ac_func" >&5
12677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12679 else
12680 cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12683 /* System header to define __stub macros and hopefully few prototypes,
12684 which can conflict with char $ac_func(); below. */
12685 #include <assert.h>
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12689 char $ac_func();
12691 int main() {
12693 /* The GNU C library defines this for functions which it implements
12694 to always fail with ENOSYS. Some functions are actually named
12695 something starting with __ and the normal name is an alias. */
12696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697 choke me
12698 #else
12699 $ac_func();
12700 #endif
12702 ; return 0; }
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12705 rm -rf conftest*
12706 eval "ac_cv_func_$ac_func=yes"
12707 else
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 rm -rf conftest*
12711 eval "ac_cv_func_$ac_func=no"
12713 rm -f conftest*
12716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12717 echo "$ac_t""yes" 1>&6
12718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12719 cat >> confdefs.h <<EOF
12720 #define $ac_tr_func 1
12723 else
12724 echo "$ac_t""no" 1>&6
12726 done
12728 else
12730 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12731 echo "configure:12732: checking for _expf declaration" >&5
12732 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12733 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12738 ac_ext=C
12739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12740 ac_cpp='$CXXCPP $CPPFLAGS'
12741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12743 cross_compiling=$ac_cv_prog_cxx_cross
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 #include <math.h>
12749 #ifdef HAVE_IEEEFP_H
12750 #include <ieeefp.h>
12751 #endif
12753 int main() {
12754 _expf(0);
12755 ; return 0; }
12757 if { (eval echo configure:12758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12758 rm -rf conftest*
12759 glibcpp_cv_func__expf_use=yes
12760 else
12761 echo "configure: failed program was:" >&5
12762 cat conftest.$ac_ext >&5
12763 rm -rf conftest*
12764 glibcpp_cv_func__expf_use=no
12766 rm -f conftest*
12767 ac_ext=c
12768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12769 ac_cpp='$CPP $CPPFLAGS'
12770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12772 cross_compiling=$ac_cv_prog_cc_cross
12778 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12780 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12781 for ac_func in _expf
12783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12784 echo "configure:12785: checking for $ac_func" >&5
12785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12786 echo $ac_n "(cached) $ac_c" 1>&6
12787 else
12788 cat > conftest.$ac_ext <<EOF
12789 #line 12790 "configure"
12790 #include "confdefs.h"
12791 /* System header to define __stub macros and hopefully few prototypes,
12792 which can conflict with char $ac_func(); below. */
12793 #include <assert.h>
12794 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char $ac_func();
12799 int main() {
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12805 choke me
12806 #else
12807 $ac_func();
12808 #endif
12810 ; return 0; }
12812 if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 rm -rf conftest*
12814 eval "ac_cv_func_$ac_func=yes"
12815 else
12816 echo "configure: failed program was:" >&5
12817 cat conftest.$ac_ext >&5
12818 rm -rf conftest*
12819 eval "ac_cv_func_$ac_func=no"
12821 rm -f conftest*
12824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12827 cat >> confdefs.h <<EOF
12828 #define $ac_tr_func 1
12831 else
12832 echo "$ac_t""no" 1>&6
12834 done
12841 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12842 echo "configure:12843: checking for isnanf declaration" >&5
12843 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12844 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12849 ac_ext=C
12850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12851 ac_cpp='$CXXCPP $CPPFLAGS'
12852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12854 cross_compiling=$ac_cv_prog_cxx_cross
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 #include <math.h>
12860 #ifdef HAVE_IEEEFP_H
12861 #include <ieeefp.h>
12862 #endif
12864 int main() {
12865 isnanf(0);
12866 ; return 0; }
12868 if { (eval echo configure:12869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12869 rm -rf conftest*
12870 glibcpp_cv_func_isnanf_use=yes
12871 else
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
12875 glibcpp_cv_func_isnanf_use=no
12877 rm -f conftest*
12878 ac_ext=c
12879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12880 ac_cpp='$CPP $CPPFLAGS'
12881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12883 cross_compiling=$ac_cv_prog_cc_cross
12889 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12891 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12892 for ac_func in isnanf
12894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12895 echo "configure:12896: checking for $ac_func" >&5
12896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12897 echo $ac_n "(cached) $ac_c" 1>&6
12898 else
12899 cat > conftest.$ac_ext <<EOF
12900 #line 12901 "configure"
12901 #include "confdefs.h"
12902 /* System header to define __stub macros and hopefully few prototypes,
12903 which can conflict with char $ac_func(); below. */
12904 #include <assert.h>
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12908 char $ac_func();
12910 int main() {
12912 /* The GNU C library defines this for functions which it implements
12913 to always fail with ENOSYS. Some functions are actually named
12914 something starting with __ and the normal name is an alias. */
12915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12916 choke me
12917 #else
12918 $ac_func();
12919 #endif
12921 ; return 0; }
12923 if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12924 rm -rf conftest*
12925 eval "ac_cv_func_$ac_func=yes"
12926 else
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 rm -rf conftest*
12930 eval "ac_cv_func_$ac_func=no"
12932 rm -f conftest*
12935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12936 echo "$ac_t""yes" 1>&6
12937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12938 cat >> confdefs.h <<EOF
12939 #define $ac_tr_func 1
12942 else
12943 echo "$ac_t""no" 1>&6
12945 done
12947 else
12949 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12950 echo "configure:12951: checking for _isnanf declaration" >&5
12951 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12952 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12954 else
12957 ac_ext=C
12958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12959 ac_cpp='$CXXCPP $CPPFLAGS'
12960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12962 cross_compiling=$ac_cv_prog_cxx_cross
12964 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 #include <math.h>
12968 #ifdef HAVE_IEEEFP_H
12969 #include <ieeefp.h>
12970 #endif
12972 int main() {
12973 _isnanf(0);
12974 ; return 0; }
12976 if { (eval echo configure:12977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12977 rm -rf conftest*
12978 glibcpp_cv_func__isnanf_use=yes
12979 else
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 rm -rf conftest*
12983 glibcpp_cv_func__isnanf_use=no
12985 rm -f conftest*
12986 ac_ext=c
12987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12991 cross_compiling=$ac_cv_prog_cc_cross
12997 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12999 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13000 for ac_func in _isnanf
13002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13003 echo "configure:13004: checking for $ac_func" >&5
13004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13005 echo $ac_n "(cached) $ac_c" 1>&6
13006 else
13007 cat > conftest.$ac_ext <<EOF
13008 #line 13009 "configure"
13009 #include "confdefs.h"
13010 /* System header to define __stub macros and hopefully few prototypes,
13011 which can conflict with char $ac_func(); below. */
13012 #include <assert.h>
13013 /* Override any gcc2 internal prototype to avoid an error. */
13014 /* We use char because int might match the return type of a gcc2
13015 builtin and then its argument prototype would still apply. */
13016 char $ac_func();
13018 int main() {
13020 /* The GNU C library defines this for functions which it implements
13021 to always fail with ENOSYS. Some functions are actually named
13022 something starting with __ and the normal name is an alias. */
13023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13024 choke me
13025 #else
13026 $ac_func();
13027 #endif
13029 ; return 0; }
13031 if { (eval echo configure:13032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13032 rm -rf conftest*
13033 eval "ac_cv_func_$ac_func=yes"
13034 else
13035 echo "configure: failed program was:" >&5
13036 cat conftest.$ac_ext >&5
13037 rm -rf conftest*
13038 eval "ac_cv_func_$ac_func=no"
13040 rm -f conftest*
13043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13044 echo "$ac_t""yes" 1>&6
13045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13046 cat >> confdefs.h <<EOF
13047 #define $ac_tr_func 1
13050 else
13051 echo "$ac_t""no" 1>&6
13053 done
13060 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13061 echo "configure:13062: checking for isinff declaration" >&5
13062 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13063 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
13065 else
13068 ac_ext=C
13069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13070 ac_cpp='$CXXCPP $CPPFLAGS'
13071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13073 cross_compiling=$ac_cv_prog_cxx_cross
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 #include <math.h>
13079 #ifdef HAVE_IEEEFP_H
13080 #include <ieeefp.h>
13081 #endif
13083 int main() {
13084 isinff(0);
13085 ; return 0; }
13087 if { (eval echo configure:13088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13088 rm -rf conftest*
13089 glibcpp_cv_func_isinff_use=yes
13090 else
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 rm -rf conftest*
13094 glibcpp_cv_func_isinff_use=no
13096 rm -f conftest*
13097 ac_ext=c
13098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13099 ac_cpp='$CPP $CPPFLAGS'
13100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13102 cross_compiling=$ac_cv_prog_cc_cross
13108 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13110 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13111 for ac_func in isinff
13113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13114 echo "configure:13115: checking for $ac_func" >&5
13115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13116 echo $ac_n "(cached) $ac_c" 1>&6
13117 else
13118 cat > conftest.$ac_ext <<EOF
13119 #line 13120 "configure"
13120 #include "confdefs.h"
13121 /* System header to define __stub macros and hopefully few prototypes,
13122 which can conflict with char $ac_func(); below. */
13123 #include <assert.h>
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13127 char $ac_func();
13129 int main() {
13131 /* The GNU C library defines this for functions which it implements
13132 to always fail with ENOSYS. Some functions are actually named
13133 something starting with __ and the normal name is an alias. */
13134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13135 choke me
13136 #else
13137 $ac_func();
13138 #endif
13140 ; return 0; }
13142 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13143 rm -rf conftest*
13144 eval "ac_cv_func_$ac_func=yes"
13145 else
13146 echo "configure: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13148 rm -rf conftest*
13149 eval "ac_cv_func_$ac_func=no"
13151 rm -f conftest*
13154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13157 cat >> confdefs.h <<EOF
13158 #define $ac_tr_func 1
13161 else
13162 echo "$ac_t""no" 1>&6
13164 done
13166 else
13168 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13169 echo "configure:13170: checking for _isinff declaration" >&5
13170 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13171 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13173 else
13176 ac_ext=C
13177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13178 ac_cpp='$CXXCPP $CPPFLAGS'
13179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13181 cross_compiling=$ac_cv_prog_cxx_cross
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 #include <math.h>
13187 #ifdef HAVE_IEEEFP_H
13188 #include <ieeefp.h>
13189 #endif
13191 int main() {
13192 _isinff(0);
13193 ; return 0; }
13195 if { (eval echo configure:13196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13196 rm -rf conftest*
13197 glibcpp_cv_func__isinff_use=yes
13198 else
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 rm -rf conftest*
13202 glibcpp_cv_func__isinff_use=no
13204 rm -f conftest*
13205 ac_ext=c
13206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13207 ac_cpp='$CPP $CPPFLAGS'
13208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13210 cross_compiling=$ac_cv_prog_cc_cross
13216 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13218 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13219 for ac_func in _isinff
13221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13222 echo "configure:13223: checking for $ac_func" >&5
13223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13224 echo $ac_n "(cached) $ac_c" 1>&6
13225 else
13226 cat > conftest.$ac_ext <<EOF
13227 #line 13228 "configure"
13228 #include "confdefs.h"
13229 /* System header to define __stub macros and hopefully few prototypes,
13230 which can conflict with char $ac_func(); below. */
13231 #include <assert.h>
13232 /* Override any gcc2 internal prototype to avoid an error. */
13233 /* We use char because int might match the return type of a gcc2
13234 builtin and then its argument prototype would still apply. */
13235 char $ac_func();
13237 int main() {
13239 /* The GNU C library defines this for functions which it implements
13240 to always fail with ENOSYS. Some functions are actually named
13241 something starting with __ and the normal name is an alias. */
13242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13243 choke me
13244 #else
13245 $ac_func();
13246 #endif
13248 ; return 0; }
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13251 rm -rf conftest*
13252 eval "ac_cv_func_$ac_func=yes"
13253 else
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13256 rm -rf conftest*
13257 eval "ac_cv_func_$ac_func=no"
13259 rm -f conftest*
13262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13263 echo "$ac_t""yes" 1>&6
13264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13265 cat >> confdefs.h <<EOF
13266 #define $ac_tr_func 1
13269 else
13270 echo "$ac_t""no" 1>&6
13272 done
13279 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13280 echo "configure:13281: checking for atan2f declaration" >&5
13281 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13282 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13283 echo $ac_n "(cached) $ac_c" 1>&6
13284 else
13287 ac_ext=C
13288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13289 ac_cpp='$CXXCPP $CPPFLAGS'
13290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13292 cross_compiling=$ac_cv_prog_cxx_cross
13294 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 #include <math.h>
13298 int main() {
13299 atan2f(0, 0);
13300 ; return 0; }
13302 if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13303 rm -rf conftest*
13304 glibcpp_cv_func_atan2f_use=yes
13305 else
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13308 rm -rf conftest*
13309 glibcpp_cv_func_atan2f_use=no
13311 rm -f conftest*
13312 ac_ext=c
13313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13317 cross_compiling=$ac_cv_prog_cc_cross
13323 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13325 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13326 for ac_func in atan2f
13328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13329 echo "configure:13330: checking for $ac_func" >&5
13330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13331 echo $ac_n "(cached) $ac_c" 1>&6
13332 else
13333 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 /* System header to define __stub macros and hopefully few prototypes,
13337 which can conflict with char $ac_func(); below. */
13338 #include <assert.h>
13339 /* Override any gcc2 internal prototype to avoid an error. */
13340 /* We use char because int might match the return type of a gcc2
13341 builtin and then its argument prototype would still apply. */
13342 char $ac_func();
13344 int main() {
13346 /* The GNU C library defines this for functions which it implements
13347 to always fail with ENOSYS. Some functions are actually named
13348 something starting with __ and the normal name is an alias. */
13349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13350 choke me
13351 #else
13352 $ac_func();
13353 #endif
13355 ; return 0; }
13357 if { (eval echo configure:13358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13358 rm -rf conftest*
13359 eval "ac_cv_func_$ac_func=yes"
13360 else
13361 echo "configure: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13363 rm -rf conftest*
13364 eval "ac_cv_func_$ac_func=no"
13366 rm -f conftest*
13369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13370 echo "$ac_t""yes" 1>&6
13371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13372 cat >> confdefs.h <<EOF
13373 #define $ac_tr_func 1
13376 else
13377 echo "$ac_t""no" 1>&6
13379 done
13381 else
13383 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13384 echo "configure:13385: checking for _atan2f declaration" >&5
13385 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13386 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13387 echo $ac_n "(cached) $ac_c" 1>&6
13388 else
13391 ac_ext=C
13392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13393 ac_cpp='$CXXCPP $CPPFLAGS'
13394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13396 cross_compiling=$ac_cv_prog_cxx_cross
13398 cat > conftest.$ac_ext <<EOF
13399 #line 13400 "configure"
13400 #include "confdefs.h"
13401 #include <math.h>
13402 int main() {
13403 _atan2f(0, 0);
13404 ; return 0; }
13406 if { (eval echo configure:13407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13407 rm -rf conftest*
13408 glibcpp_cv_func__atan2f_use=yes
13409 else
13410 echo "configure: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13412 rm -rf conftest*
13413 glibcpp_cv_func__atan2f_use=no
13415 rm -f conftest*
13416 ac_ext=c
13417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CPP $CPPFLAGS'
13419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cc_cross
13427 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13429 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13430 for ac_func in _atan2f
13432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13433 echo "configure:13434: checking for $ac_func" >&5
13434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13435 echo $ac_n "(cached) $ac_c" 1>&6
13436 else
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 /* System header to define __stub macros and hopefully few prototypes,
13441 which can conflict with char $ac_func(); below. */
13442 #include <assert.h>
13443 /* Override any gcc2 internal prototype to avoid an error. */
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13446 char $ac_func();
13448 int main() {
13450 /* The GNU C library defines this for functions which it implements
13451 to always fail with ENOSYS. Some functions are actually named
13452 something starting with __ and the normal name is an alias. */
13453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13454 choke me
13455 #else
13456 $ac_func();
13457 #endif
13459 ; return 0; }
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13462 rm -rf conftest*
13463 eval "ac_cv_func_$ac_func=yes"
13464 else
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13467 rm -rf conftest*
13468 eval "ac_cv_func_$ac_func=no"
13470 rm -f conftest*
13473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13474 echo "$ac_t""yes" 1>&6
13475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13476 cat >> confdefs.h <<EOF
13477 #define $ac_tr_func 1
13480 else
13481 echo "$ac_t""no" 1>&6
13483 done
13490 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13491 echo "configure:13492: checking for fabsf declaration" >&5
13492 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13493 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13494 echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13498 ac_ext=C
13499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13500 ac_cpp='$CXXCPP $CPPFLAGS'
13501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13503 cross_compiling=$ac_cv_prog_cxx_cross
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <math.h>
13509 #ifdef HAVE_IEEEFP_H
13510 #include <ieeefp.h>
13511 #endif
13513 int main() {
13514 fabsf(0);
13515 ; return 0; }
13517 if { (eval echo configure:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13518 rm -rf conftest*
13519 glibcpp_cv_func_fabsf_use=yes
13520 else
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13523 rm -rf conftest*
13524 glibcpp_cv_func_fabsf_use=no
13526 rm -f conftest*
13527 ac_ext=c
13528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13532 cross_compiling=$ac_cv_prog_cc_cross
13538 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13540 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13541 for ac_func in fabsf
13543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13544 echo "configure:13545: checking for $ac_func" >&5
13545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13547 else
13548 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 /* System header to define __stub macros and hopefully few prototypes,
13552 which can conflict with char $ac_func(); below. */
13553 #include <assert.h>
13554 /* Override any gcc2 internal prototype to avoid an error. */
13555 /* We use char because int might match the return type of a gcc2
13556 builtin and then its argument prototype would still apply. */
13557 char $ac_func();
13559 int main() {
13561 /* The GNU C library defines this for functions which it implements
13562 to always fail with ENOSYS. Some functions are actually named
13563 something starting with __ and the normal name is an alias. */
13564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13565 choke me
13566 #else
13567 $ac_func();
13568 #endif
13570 ; return 0; }
13572 if { (eval echo configure:13573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13573 rm -rf conftest*
13574 eval "ac_cv_func_$ac_func=yes"
13575 else
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 rm -rf conftest*
13579 eval "ac_cv_func_$ac_func=no"
13581 rm -f conftest*
13584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13587 cat >> confdefs.h <<EOF
13588 #define $ac_tr_func 1
13591 else
13592 echo "$ac_t""no" 1>&6
13594 done
13596 else
13598 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13599 echo "configure:13600: checking for _fabsf declaration" >&5
13600 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13601 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13602 echo $ac_n "(cached) $ac_c" 1>&6
13603 else
13606 ac_ext=C
13607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13608 ac_cpp='$CXXCPP $CPPFLAGS'
13609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13611 cross_compiling=$ac_cv_prog_cxx_cross
13613 cat > conftest.$ac_ext <<EOF
13614 #line 13615 "configure"
13615 #include "confdefs.h"
13616 #include <math.h>
13617 #ifdef HAVE_IEEEFP_H
13618 #include <ieeefp.h>
13619 #endif
13621 int main() {
13622 _fabsf(0);
13623 ; return 0; }
13625 if { (eval echo configure:13626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13626 rm -rf conftest*
13627 glibcpp_cv_func__fabsf_use=yes
13628 else
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13631 rm -rf conftest*
13632 glibcpp_cv_func__fabsf_use=no
13634 rm -f conftest*
13635 ac_ext=c
13636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13637 ac_cpp='$CPP $CPPFLAGS'
13638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13640 cross_compiling=$ac_cv_prog_cc_cross
13646 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13648 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13649 for ac_func in _fabsf
13651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13652 echo "configure:13653: checking for $ac_func" >&5
13653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13656 cat > conftest.$ac_ext <<EOF
13657 #line 13658 "configure"
13658 #include "confdefs.h"
13659 /* System header to define __stub macros and hopefully few prototypes,
13660 which can conflict with char $ac_func(); below. */
13661 #include <assert.h>
13662 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13665 char $ac_func();
13667 int main() {
13669 /* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13673 choke me
13674 #else
13675 $ac_func();
13676 #endif
13678 ; return 0; }
13680 if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 rm -rf conftest*
13682 eval "ac_cv_func_$ac_func=yes"
13683 else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687 eval "ac_cv_func_$ac_func=no"
13689 rm -f conftest*
13692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13695 cat >> confdefs.h <<EOF
13696 #define $ac_tr_func 1
13699 else
13700 echo "$ac_t""no" 1>&6
13702 done
13709 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13710 echo "configure:13711: checking for fmodf declaration" >&5
13711 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13712 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13713 echo $ac_n "(cached) $ac_c" 1>&6
13714 else
13717 ac_ext=C
13718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13719 ac_cpp='$CXXCPP $CPPFLAGS'
13720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13722 cross_compiling=$ac_cv_prog_cxx_cross
13724 cat > conftest.$ac_ext <<EOF
13725 #line 13726 "configure"
13726 #include "confdefs.h"
13727 #include <math.h>
13728 int main() {
13729 fmodf(0, 0);
13730 ; return 0; }
13732 if { (eval echo configure:13733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13733 rm -rf conftest*
13734 glibcpp_cv_func_fmodf_use=yes
13735 else
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 rm -rf conftest*
13739 glibcpp_cv_func_fmodf_use=no
13741 rm -f conftest*
13742 ac_ext=c
13743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744 ac_cpp='$CPP $CPPFLAGS'
13745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747 cross_compiling=$ac_cv_prog_cc_cross
13753 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13755 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13756 for ac_func in fmodf
13758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13759 echo "configure:13760: checking for $ac_func" >&5
13760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13761 echo $ac_n "(cached) $ac_c" 1>&6
13762 else
13763 cat > conftest.$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13766 /* System header to define __stub macros and hopefully few prototypes,
13767 which can conflict with char $ac_func(); below. */
13768 #include <assert.h>
13769 /* Override any gcc2 internal prototype to avoid an error. */
13770 /* We use char because int might match the return type of a gcc2
13771 builtin and then its argument prototype would still apply. */
13772 char $ac_func();
13774 int main() {
13776 /* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13780 choke me
13781 #else
13782 $ac_func();
13783 #endif
13785 ; return 0; }
13787 if { (eval echo configure:13788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13788 rm -rf conftest*
13789 eval "ac_cv_func_$ac_func=yes"
13790 else
13791 echo "configure: failed program was:" >&5
13792 cat conftest.$ac_ext >&5
13793 rm -rf conftest*
13794 eval "ac_cv_func_$ac_func=no"
13796 rm -f conftest*
13799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13800 echo "$ac_t""yes" 1>&6
13801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13802 cat >> confdefs.h <<EOF
13803 #define $ac_tr_func 1
13806 else
13807 echo "$ac_t""no" 1>&6
13809 done
13811 else
13813 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13814 echo "configure:13815: checking for _fmodf declaration" >&5
13815 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13816 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818 else
13821 ac_ext=C
13822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13823 ac_cpp='$CXXCPP $CPPFLAGS'
13824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13826 cross_compiling=$ac_cv_prog_cxx_cross
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13831 #include <math.h>
13832 int main() {
13833 _fmodf(0, 0);
13834 ; return 0; }
13836 if { (eval echo configure:13837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13837 rm -rf conftest*
13838 glibcpp_cv_func__fmodf_use=yes
13839 else
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 rm -rf conftest*
13843 glibcpp_cv_func__fmodf_use=no
13845 rm -f conftest*
13846 ac_ext=c
13847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cc_cross
13857 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13859 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13860 for ac_func in _fmodf
13862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13863 echo "configure:13864: checking for $ac_func" >&5
13864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
13866 else
13867 cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 /* System header to define __stub macros and hopefully few prototypes,
13871 which can conflict with char $ac_func(); below. */
13872 #include <assert.h>
13873 /* Override any gcc2 internal prototype to avoid an error. */
13874 /* We use char because int might match the return type of a gcc2
13875 builtin and then its argument prototype would still apply. */
13876 char $ac_func();
13878 int main() {
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13884 choke me
13885 #else
13886 $ac_func();
13887 #endif
13889 ; return 0; }
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892 rm -rf conftest*
13893 eval "ac_cv_func_$ac_func=yes"
13894 else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898 eval "ac_cv_func_$ac_func=no"
13900 rm -f conftest*
13903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13904 echo "$ac_t""yes" 1>&6
13905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13906 cat >> confdefs.h <<EOF
13907 #define $ac_tr_func 1
13910 else
13911 echo "$ac_t""no" 1>&6
13913 done
13920 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13921 echo "configure:13922: checking for frexpf declaration" >&5
13922 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13923 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13924 echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13928 ac_ext=C
13929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13930 ac_cpp='$CXXCPP $CPPFLAGS'
13931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13933 cross_compiling=$ac_cv_prog_cxx_cross
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <math.h>
13939 int main() {
13940 frexpf(0, 0);
13941 ; return 0; }
13943 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13944 rm -rf conftest*
13945 glibcpp_cv_func_frexpf_use=yes
13946 else
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 rm -rf conftest*
13950 glibcpp_cv_func_frexpf_use=no
13952 rm -f conftest*
13953 ac_ext=c
13954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13958 cross_compiling=$ac_cv_prog_cc_cross
13964 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13966 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13967 for ac_func in frexpf
13969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13970 echo "configure:13971: checking for $ac_func" >&5
13971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13972 echo $ac_n "(cached) $ac_c" 1>&6
13973 else
13974 cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char $ac_func(); below. */
13979 #include <assert.h>
13980 /* Override any gcc2 internal prototype to avoid an error. */
13981 /* We use char because int might match the return type of a gcc2
13982 builtin and then its argument prototype would still apply. */
13983 char $ac_func();
13985 int main() {
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 choke me
13992 #else
13993 $ac_func();
13994 #endif
13996 ; return 0; }
13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13999 rm -rf conftest*
14000 eval "ac_cv_func_$ac_func=yes"
14001 else
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14004 rm -rf conftest*
14005 eval "ac_cv_func_$ac_func=no"
14007 rm -f conftest*
14010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14013 cat >> confdefs.h <<EOF
14014 #define $ac_tr_func 1
14017 else
14018 echo "$ac_t""no" 1>&6
14020 done
14022 else
14024 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14025 echo "configure:14026: checking for _frexpf declaration" >&5
14026 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14027 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14028 echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14032 ac_ext=C
14033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14034 ac_cpp='$CXXCPP $CPPFLAGS'
14035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14037 cross_compiling=$ac_cv_prog_cxx_cross
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 #include <math.h>
14043 int main() {
14044 _frexpf(0, 0);
14045 ; return 0; }
14047 if { (eval echo configure:14048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14048 rm -rf conftest*
14049 glibcpp_cv_func__frexpf_use=yes
14050 else
14051 echo "configure: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14053 rm -rf conftest*
14054 glibcpp_cv_func__frexpf_use=no
14056 rm -f conftest*
14057 ac_ext=c
14058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14059 ac_cpp='$CPP $CPPFLAGS'
14060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14062 cross_compiling=$ac_cv_prog_cc_cross
14068 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14070 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14071 for ac_func in _frexpf
14073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14074 echo "configure:14075: checking for $ac_func" >&5
14075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14077 else
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* System header to define __stub macros and hopefully few prototypes,
14082 which can conflict with char $ac_func(); below. */
14083 #include <assert.h>
14084 /* Override any gcc2 internal prototype to avoid an error. */
14085 /* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */
14087 char $ac_func();
14089 int main() {
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14095 choke me
14096 #else
14097 $ac_func();
14098 #endif
14100 ; return 0; }
14102 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=yes"
14105 else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109 eval "ac_cv_func_$ac_func=no"
14111 rm -f conftest*
14114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14117 cat >> confdefs.h <<EOF
14118 #define $ac_tr_func 1
14121 else
14122 echo "$ac_t""no" 1>&6
14124 done
14131 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14132 echo "configure:14133: checking for hypotf declaration" >&5
14133 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14134 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14139 ac_ext=C
14140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14141 ac_cpp='$CXXCPP $CPPFLAGS'
14142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14144 cross_compiling=$ac_cv_prog_cxx_cross
14146 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 #include <math.h>
14150 int main() {
14151 hypotf(0, 0);
14152 ; return 0; }
14154 if { (eval echo configure:14155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14155 rm -rf conftest*
14156 glibcpp_cv_func_hypotf_use=yes
14157 else
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14160 rm -rf conftest*
14161 glibcpp_cv_func_hypotf_use=no
14163 rm -f conftest*
14164 ac_ext=c
14165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14166 ac_cpp='$CPP $CPPFLAGS'
14167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14169 cross_compiling=$ac_cv_prog_cc_cross
14175 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14177 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14178 for ac_func in hypotf
14180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14181 echo "configure:14182: checking for $ac_func" >&5
14182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184 else
14185 cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char $ac_func(); below. */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error. */
14192 /* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194 char $ac_func();
14196 int main() {
14198 /* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14202 choke me
14203 #else
14204 $ac_func();
14205 #endif
14207 ; return 0; }
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest*
14211 eval "ac_cv_func_$ac_func=yes"
14212 else
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_func_$ac_func=no"
14218 rm -f conftest*
14221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
14223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14224 cat >> confdefs.h <<EOF
14225 #define $ac_tr_func 1
14228 else
14229 echo "$ac_t""no" 1>&6
14231 done
14233 else
14235 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14236 echo "configure:14237: checking for _hypotf declaration" >&5
14237 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14238 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14243 ac_ext=C
14244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14245 ac_cpp='$CXXCPP $CPPFLAGS'
14246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14248 cross_compiling=$ac_cv_prog_cxx_cross
14250 cat > conftest.$ac_ext <<EOF
14251 #line 14252 "configure"
14252 #include "confdefs.h"
14253 #include <math.h>
14254 int main() {
14255 _hypotf(0, 0);
14256 ; return 0; }
14258 if { (eval echo configure:14259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14259 rm -rf conftest*
14260 glibcpp_cv_func__hypotf_use=yes
14261 else
14262 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 rm -rf conftest*
14265 glibcpp_cv_func__hypotf_use=no
14267 rm -f conftest*
14268 ac_ext=c
14269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14270 ac_cpp='$CPP $CPPFLAGS'
14271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14273 cross_compiling=$ac_cv_prog_cc_cross
14279 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14281 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14282 for ac_func in _hypotf
14284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14285 echo "configure:14286: checking for $ac_func" >&5
14286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288 else
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 /* System header to define __stub macros and hopefully few prototypes,
14293 which can conflict with char $ac_func(); below. */
14294 #include <assert.h>
14295 /* Override any gcc2 internal prototype to avoid an error. */
14296 /* We use char because int might match the return type of a gcc2
14297 builtin and then its argument prototype would still apply. */
14298 char $ac_func();
14300 int main() {
14302 /* The GNU C library defines this for functions which it implements
14303 to always fail with ENOSYS. Some functions are actually named
14304 something starting with __ and the normal name is an alias. */
14305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14306 choke me
14307 #else
14308 $ac_func();
14309 #endif
14311 ; return 0; }
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 rm -rf conftest*
14315 eval "ac_cv_func_$ac_func=yes"
14316 else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=no"
14322 rm -f conftest*
14325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14328 cat >> confdefs.h <<EOF
14329 #define $ac_tr_func 1
14332 else
14333 echo "$ac_t""no" 1>&6
14335 done
14342 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14343 echo "configure:14344: checking for ldexpf declaration" >&5
14344 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14345 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14346 echo $ac_n "(cached) $ac_c" 1>&6
14347 else
14350 ac_ext=C
14351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14352 ac_cpp='$CXXCPP $CPPFLAGS'
14353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14355 cross_compiling=$ac_cv_prog_cxx_cross
14357 cat > conftest.$ac_ext <<EOF
14358 #line 14359 "configure"
14359 #include "confdefs.h"
14360 #include <math.h>
14361 int main() {
14362 ldexpf(0, 0);
14363 ; return 0; }
14365 if { (eval echo configure:14366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14366 rm -rf conftest*
14367 glibcpp_cv_func_ldexpf_use=yes
14368 else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 glibcpp_cv_func_ldexpf_use=no
14374 rm -f conftest*
14375 ac_ext=c
14376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14377 ac_cpp='$CPP $CPPFLAGS'
14378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14380 cross_compiling=$ac_cv_prog_cc_cross
14386 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14388 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14389 for ac_func in ldexpf
14391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14392 echo "configure:14393: checking for $ac_func" >&5
14393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14394 echo $ac_n "(cached) $ac_c" 1>&6
14395 else
14396 cat > conftest.$ac_ext <<EOF
14397 #line 14398 "configure"
14398 #include "confdefs.h"
14399 /* System header to define __stub macros and hopefully few prototypes,
14400 which can conflict with char $ac_func(); below. */
14401 #include <assert.h>
14402 /* Override any gcc2 internal prototype to avoid an error. */
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14405 char $ac_func();
14407 int main() {
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14413 choke me
14414 #else
14415 $ac_func();
14416 #endif
14418 ; return 0; }
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14421 rm -rf conftest*
14422 eval "ac_cv_func_$ac_func=yes"
14423 else
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 rm -rf conftest*
14427 eval "ac_cv_func_$ac_func=no"
14429 rm -f conftest*
14432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14433 echo "$ac_t""yes" 1>&6
14434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14435 cat >> confdefs.h <<EOF
14436 #define $ac_tr_func 1
14439 else
14440 echo "$ac_t""no" 1>&6
14442 done
14444 else
14446 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14447 echo "configure:14448: checking for _ldexpf declaration" >&5
14448 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14449 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14450 echo $ac_n "(cached) $ac_c" 1>&6
14451 else
14454 ac_ext=C
14455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14456 ac_cpp='$CXXCPP $CPPFLAGS'
14457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14459 cross_compiling=$ac_cv_prog_cxx_cross
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14464 #include <math.h>
14465 int main() {
14466 _ldexpf(0, 0);
14467 ; return 0; }
14469 if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14470 rm -rf conftest*
14471 glibcpp_cv_func__ldexpf_use=yes
14472 else
14473 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 rm -rf conftest*
14476 glibcpp_cv_func__ldexpf_use=no
14478 rm -f conftest*
14479 ac_ext=c
14480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14481 ac_cpp='$CPP $CPPFLAGS'
14482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14484 cross_compiling=$ac_cv_prog_cc_cross
14490 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14492 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14493 for ac_func in _ldexpf
14495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14496 echo "configure:14497: checking for $ac_func" >&5
14497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14499 else
14500 cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func(); below. */
14505 #include <assert.h>
14506 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509 char $ac_func();
14511 int main() {
14513 /* The GNU C library defines this for functions which it implements
14514 to always fail with ENOSYS. Some functions are actually named
14515 something starting with __ and the normal name is an alias. */
14516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14517 choke me
14518 #else
14519 $ac_func();
14520 #endif
14522 ; return 0; }
14524 if { (eval echo configure:14525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14525 rm -rf conftest*
14526 eval "ac_cv_func_$ac_func=yes"
14527 else
14528 echo "configure: failed program was:" >&5
14529 cat conftest.$ac_ext >&5
14530 rm -rf conftest*
14531 eval "ac_cv_func_$ac_func=no"
14533 rm -f conftest*
14536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14539 cat >> confdefs.h <<EOF
14540 #define $ac_tr_func 1
14543 else
14544 echo "$ac_t""no" 1>&6
14546 done
14553 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14554 echo "configure:14555: checking for logf declaration" >&5
14555 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14556 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14557 echo $ac_n "(cached) $ac_c" 1>&6
14558 else
14561 ac_ext=C
14562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563 ac_cpp='$CXXCPP $CPPFLAGS'
14564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566 cross_compiling=$ac_cv_prog_cxx_cross
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 #include <math.h>
14572 #ifdef HAVE_IEEEFP_H
14573 #include <ieeefp.h>
14574 #endif
14576 int main() {
14577 logf(0);
14578 ; return 0; }
14580 if { (eval echo configure:14581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14581 rm -rf conftest*
14582 glibcpp_cv_func_logf_use=yes
14583 else
14584 echo "configure: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14586 rm -rf conftest*
14587 glibcpp_cv_func_logf_use=no
14589 rm -f conftest*
14590 ac_ext=c
14591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14592 ac_cpp='$CPP $CPPFLAGS'
14593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14595 cross_compiling=$ac_cv_prog_cc_cross
14601 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14603 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14604 for ac_func in logf
14606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14607 echo "configure:14608: checking for $ac_func" >&5
14608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610 else
14611 cat > conftest.$ac_ext <<EOF
14612 #line 14613 "configure"
14613 #include "confdefs.h"
14614 /* System header to define __stub macros and hopefully few prototypes,
14615 which can conflict with char $ac_func(); below. */
14616 #include <assert.h>
14617 /* Override any gcc2 internal prototype to avoid an error. */
14618 /* We use char because int might match the return type of a gcc2
14619 builtin and then its argument prototype would still apply. */
14620 char $ac_func();
14622 int main() {
14624 /* The GNU C library defines this for functions which it implements
14625 to always fail with ENOSYS. Some functions are actually named
14626 something starting with __ and the normal name is an alias. */
14627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14628 choke me
14629 #else
14630 $ac_func();
14631 #endif
14633 ; return 0; }
14635 if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14636 rm -rf conftest*
14637 eval "ac_cv_func_$ac_func=yes"
14638 else
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 rm -rf conftest*
14642 eval "ac_cv_func_$ac_func=no"
14644 rm -f conftest*
14647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14650 cat >> confdefs.h <<EOF
14651 #define $ac_tr_func 1
14654 else
14655 echo "$ac_t""no" 1>&6
14657 done
14659 else
14661 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14662 echo "configure:14663: checking for _logf declaration" >&5
14663 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14664 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14666 else
14669 ac_ext=C
14670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14671 ac_cpp='$CXXCPP $CPPFLAGS'
14672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14674 cross_compiling=$ac_cv_prog_cxx_cross
14676 cat > conftest.$ac_ext <<EOF
14677 #line 14678 "configure"
14678 #include "confdefs.h"
14679 #include <math.h>
14680 #ifdef HAVE_IEEEFP_H
14681 #include <ieeefp.h>
14682 #endif
14684 int main() {
14685 _logf(0);
14686 ; return 0; }
14688 if { (eval echo configure:14689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14689 rm -rf conftest*
14690 glibcpp_cv_func__logf_use=yes
14691 else
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 rm -rf conftest*
14695 glibcpp_cv_func__logf_use=no
14697 rm -f conftest*
14698 ac_ext=c
14699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14700 ac_cpp='$CPP $CPPFLAGS'
14701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14703 cross_compiling=$ac_cv_prog_cc_cross
14709 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14711 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14712 for ac_func in _logf
14714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14715 echo "configure:14716: checking for $ac_func" >&5
14716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14717 echo $ac_n "(cached) $ac_c" 1>&6
14718 else
14719 cat > conftest.$ac_ext <<EOF
14720 #line 14721 "configure"
14721 #include "confdefs.h"
14722 /* System header to define __stub macros and hopefully few prototypes,
14723 which can conflict with char $ac_func(); below. */
14724 #include <assert.h>
14725 /* Override any gcc2 internal prototype to avoid an error. */
14726 /* We use char because int might match the return type of a gcc2
14727 builtin and then its argument prototype would still apply. */
14728 char $ac_func();
14730 int main() {
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14736 choke me
14737 #else
14738 $ac_func();
14739 #endif
14741 ; return 0; }
14743 if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 rm -rf conftest*
14745 eval "ac_cv_func_$ac_func=yes"
14746 else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750 eval "ac_cv_func_$ac_func=no"
14752 rm -f conftest*
14755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14756 echo "$ac_t""yes" 1>&6
14757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14758 cat >> confdefs.h <<EOF
14759 #define $ac_tr_func 1
14762 else
14763 echo "$ac_t""no" 1>&6
14765 done
14772 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14773 echo "configure:14774: checking for log10f declaration" >&5
14774 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14775 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14776 echo $ac_n "(cached) $ac_c" 1>&6
14777 else
14780 ac_ext=C
14781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14782 ac_cpp='$CXXCPP $CPPFLAGS'
14783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14785 cross_compiling=$ac_cv_prog_cxx_cross
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14790 #include <math.h>
14791 #ifdef HAVE_IEEEFP_H
14792 #include <ieeefp.h>
14793 #endif
14795 int main() {
14796 log10f(0);
14797 ; return 0; }
14799 if { (eval echo configure:14800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14800 rm -rf conftest*
14801 glibcpp_cv_func_log10f_use=yes
14802 else
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 rm -rf conftest*
14806 glibcpp_cv_func_log10f_use=no
14808 rm -f conftest*
14809 ac_ext=c
14810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14811 ac_cpp='$CPP $CPPFLAGS'
14812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14814 cross_compiling=$ac_cv_prog_cc_cross
14820 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14822 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14823 for ac_func in log10f
14825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14826 echo "configure:14827: checking for $ac_func" >&5
14827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14828 echo $ac_n "(cached) $ac_c" 1>&6
14829 else
14830 cat > conftest.$ac_ext <<EOF
14831 #line 14832 "configure"
14832 #include "confdefs.h"
14833 /* System header to define __stub macros and hopefully few prototypes,
14834 which can conflict with char $ac_func(); below. */
14835 #include <assert.h>
14836 /* Override any gcc2 internal prototype to avoid an error. */
14837 /* We use char because int might match the return type of a gcc2
14838 builtin and then its argument prototype would still apply. */
14839 char $ac_func();
14841 int main() {
14843 /* The GNU C library defines this for functions which it implements
14844 to always fail with ENOSYS. Some functions are actually named
14845 something starting with __ and the normal name is an alias. */
14846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14847 choke me
14848 #else
14849 $ac_func();
14850 #endif
14852 ; return 0; }
14854 if { (eval echo configure:14855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14855 rm -rf conftest*
14856 eval "ac_cv_func_$ac_func=yes"
14857 else
14858 echo "configure: failed program was:" >&5
14859 cat conftest.$ac_ext >&5
14860 rm -rf conftest*
14861 eval "ac_cv_func_$ac_func=no"
14863 rm -f conftest*
14866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14867 echo "$ac_t""yes" 1>&6
14868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14869 cat >> confdefs.h <<EOF
14870 #define $ac_tr_func 1
14873 else
14874 echo "$ac_t""no" 1>&6
14876 done
14878 else
14880 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14881 echo "configure:14882: checking for _log10f declaration" >&5
14882 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14883 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14885 else
14888 ac_ext=C
14889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14893 cross_compiling=$ac_cv_prog_cxx_cross
14895 cat > conftest.$ac_ext <<EOF
14896 #line 14897 "configure"
14897 #include "confdefs.h"
14898 #include <math.h>
14899 #ifdef HAVE_IEEEFP_H
14900 #include <ieeefp.h>
14901 #endif
14903 int main() {
14904 _log10f(0);
14905 ; return 0; }
14907 if { (eval echo configure:14908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14908 rm -rf conftest*
14909 glibcpp_cv_func__log10f_use=yes
14910 else
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 rm -rf conftest*
14914 glibcpp_cv_func__log10f_use=no
14916 rm -f conftest*
14917 ac_ext=c
14918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14919 ac_cpp='$CPP $CPPFLAGS'
14920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14922 cross_compiling=$ac_cv_prog_cc_cross
14928 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14930 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14931 for ac_func in _log10f
14933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14934 echo "configure:14935: checking for $ac_func" >&5
14935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14936 echo $ac_n "(cached) $ac_c" 1>&6
14937 else
14938 cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func(); below. */
14943 #include <assert.h>
14944 /* Override any gcc2 internal prototype to avoid an error. */
14945 /* We use char because int might match the return type of a gcc2
14946 builtin and then its argument prototype would still apply. */
14947 char $ac_func();
14949 int main() {
14951 /* The GNU C library defines this for functions which it implements
14952 to always fail with ENOSYS. Some functions are actually named
14953 something starting with __ and the normal name is an alias. */
14954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14955 choke me
14956 #else
14957 $ac_func();
14958 #endif
14960 ; return 0; }
14962 if { (eval echo configure:14963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14963 rm -rf conftest*
14964 eval "ac_cv_func_$ac_func=yes"
14965 else
14966 echo "configure: failed program was:" >&5
14967 cat conftest.$ac_ext >&5
14968 rm -rf conftest*
14969 eval "ac_cv_func_$ac_func=no"
14971 rm -f conftest*
14974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14975 echo "$ac_t""yes" 1>&6
14976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14977 cat >> confdefs.h <<EOF
14978 #define $ac_tr_func 1
14981 else
14982 echo "$ac_t""no" 1>&6
14984 done
14991 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14992 echo "configure:14993: checking for modff declaration" >&5
14993 if test x${glibcpp_cv_func_modff_use+set} != xset; then
14994 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14999 ac_ext=C
15000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15001 ac_cpp='$CXXCPP $CPPFLAGS'
15002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15004 cross_compiling=$ac_cv_prog_cxx_cross
15006 cat > conftest.$ac_ext <<EOF
15007 #line 15008 "configure"
15008 #include "confdefs.h"
15009 #include <math.h>
15010 int main() {
15011 modff(0, 0);
15012 ; return 0; }
15014 if { (eval echo configure:15015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15015 rm -rf conftest*
15016 glibcpp_cv_func_modff_use=yes
15017 else
15018 echo "configure: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15020 rm -rf conftest*
15021 glibcpp_cv_func_modff_use=no
15023 rm -f conftest*
15024 ac_ext=c
15025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15026 ac_cpp='$CPP $CPPFLAGS'
15027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15029 cross_compiling=$ac_cv_prog_cc_cross
15035 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15037 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15038 for ac_func in modff
15040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15041 echo "configure:15042: checking for $ac_func" >&5
15042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15043 echo $ac_n "(cached) $ac_c" 1>&6
15044 else
15045 cat > conftest.$ac_ext <<EOF
15046 #line 15047 "configure"
15047 #include "confdefs.h"
15048 /* System header to define __stub macros and hopefully few prototypes,
15049 which can conflict with char $ac_func(); below. */
15050 #include <assert.h>
15051 /* Override any gcc2 internal prototype to avoid an error. */
15052 /* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15054 char $ac_func();
15056 int main() {
15058 /* The GNU C library defines this for functions which it implements
15059 to always fail with ENOSYS. Some functions are actually named
15060 something starting with __ and the normal name is an alias. */
15061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15062 choke me
15063 #else
15064 $ac_func();
15065 #endif
15067 ; return 0; }
15069 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 rm -rf conftest*
15071 eval "ac_cv_func_$ac_func=yes"
15072 else
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15075 rm -rf conftest*
15076 eval "ac_cv_func_$ac_func=no"
15078 rm -f conftest*
15081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15082 echo "$ac_t""yes" 1>&6
15083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15084 cat >> confdefs.h <<EOF
15085 #define $ac_tr_func 1
15088 else
15089 echo "$ac_t""no" 1>&6
15091 done
15093 else
15095 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15096 echo "configure:15097: checking for _modff declaration" >&5
15097 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15098 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15103 ac_ext=C
15104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15105 ac_cpp='$CXXCPP $CPPFLAGS'
15106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15108 cross_compiling=$ac_cv_prog_cxx_cross
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 #include <math.h>
15114 int main() {
15115 _modff(0, 0);
15116 ; return 0; }
15118 if { (eval echo configure:15119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15119 rm -rf conftest*
15120 glibcpp_cv_func__modff_use=yes
15121 else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125 glibcpp_cv_func__modff_use=no
15127 rm -f conftest*
15128 ac_ext=c
15129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15133 cross_compiling=$ac_cv_prog_cc_cross
15139 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15141 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15142 for ac_func in _modff
15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15145 echo "configure:15146: checking for $ac_func" >&5
15146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148 else
15149 cat > conftest.$ac_ext <<EOF
15150 #line 15151 "configure"
15151 #include "confdefs.h"
15152 /* System header to define __stub macros and hopefully few prototypes,
15153 which can conflict with char $ac_func(); below. */
15154 #include <assert.h>
15155 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15158 char $ac_func();
15160 int main() {
15162 /* The GNU C library defines this for functions which it implements
15163 to always fail with ENOSYS. Some functions are actually named
15164 something starting with __ and the normal name is an alias. */
15165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15166 choke me
15167 #else
15168 $ac_func();
15169 #endif
15171 ; return 0; }
15173 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15174 rm -rf conftest*
15175 eval "ac_cv_func_$ac_func=yes"
15176 else
15177 echo "configure: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15179 rm -rf conftest*
15180 eval "ac_cv_func_$ac_func=no"
15182 rm -f conftest*
15185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15186 echo "$ac_t""yes" 1>&6
15187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15188 cat >> confdefs.h <<EOF
15189 #define $ac_tr_func 1
15192 else
15193 echo "$ac_t""no" 1>&6
15195 done
15202 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15203 echo "configure:15204: checking for powf declaration" >&5
15204 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15205 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15206 echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15210 ac_ext=C
15211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15212 ac_cpp='$CXXCPP $CPPFLAGS'
15213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15215 cross_compiling=$ac_cv_prog_cxx_cross
15217 cat > conftest.$ac_ext <<EOF
15218 #line 15219 "configure"
15219 #include "confdefs.h"
15220 #include <math.h>
15221 int main() {
15222 powf(0, 0);
15223 ; return 0; }
15225 if { (eval echo configure:15226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15226 rm -rf conftest*
15227 glibcpp_cv_func_powf_use=yes
15228 else
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 rm -rf conftest*
15232 glibcpp_cv_func_powf_use=no
15234 rm -f conftest*
15235 ac_ext=c
15236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15237 ac_cpp='$CPP $CPPFLAGS'
15238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15240 cross_compiling=$ac_cv_prog_cc_cross
15246 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15248 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15249 for ac_func in powf
15251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15252 echo "configure:15253: checking for $ac_func" >&5
15253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15255 else
15256 cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func(); below. */
15261 #include <assert.h>
15262 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15265 char $ac_func();
15267 int main() {
15269 /* The GNU C library defines this for functions which it implements
15270 to always fail with ENOSYS. Some functions are actually named
15271 something starting with __ and the normal name is an alias. */
15272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15273 choke me
15274 #else
15275 $ac_func();
15276 #endif
15278 ; return 0; }
15280 if { (eval echo configure:15281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15281 rm -rf conftest*
15282 eval "ac_cv_func_$ac_func=yes"
15283 else
15284 echo "configure: failed program was:" >&5
15285 cat conftest.$ac_ext >&5
15286 rm -rf conftest*
15287 eval "ac_cv_func_$ac_func=no"
15289 rm -f conftest*
15292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15293 echo "$ac_t""yes" 1>&6
15294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15295 cat >> confdefs.h <<EOF
15296 #define $ac_tr_func 1
15299 else
15300 echo "$ac_t""no" 1>&6
15302 done
15304 else
15306 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15307 echo "configure:15308: checking for _powf declaration" >&5
15308 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15309 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15310 echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15314 ac_ext=C
15315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15316 ac_cpp='$CXXCPP $CPPFLAGS'
15317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15319 cross_compiling=$ac_cv_prog_cxx_cross
15321 cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 #include <math.h>
15325 int main() {
15326 _powf(0, 0);
15327 ; return 0; }
15329 if { (eval echo configure:15330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15330 rm -rf conftest*
15331 glibcpp_cv_func__powf_use=yes
15332 else
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15335 rm -rf conftest*
15336 glibcpp_cv_func__powf_use=no
15338 rm -f conftest*
15339 ac_ext=c
15340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15344 cross_compiling=$ac_cv_prog_cc_cross
15350 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15352 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15353 for ac_func in _powf
15355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15356 echo "configure:15357: checking for $ac_func" >&5
15357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15360 cat > conftest.$ac_ext <<EOF
15361 #line 15362 "configure"
15362 #include "confdefs.h"
15363 /* System header to define __stub macros and hopefully few prototypes,
15364 which can conflict with char $ac_func(); below. */
15365 #include <assert.h>
15366 /* Override any gcc2 internal prototype to avoid an error. */
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15369 char $ac_func();
15371 int main() {
15373 /* The GNU C library defines this for functions which it implements
15374 to always fail with ENOSYS. Some functions are actually named
15375 something starting with __ and the normal name is an alias. */
15376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15377 choke me
15378 #else
15379 $ac_func();
15380 #endif
15382 ; return 0; }
15384 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15385 rm -rf conftest*
15386 eval "ac_cv_func_$ac_func=yes"
15387 else
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15390 rm -rf conftest*
15391 eval "ac_cv_func_$ac_func=no"
15393 rm -f conftest*
15396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
15398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15399 cat >> confdefs.h <<EOF
15400 #define $ac_tr_func 1
15403 else
15404 echo "$ac_t""no" 1>&6
15406 done
15413 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15414 echo "configure:15415: checking for sqrtf declaration" >&5
15415 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15416 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15417 echo $ac_n "(cached) $ac_c" 1>&6
15418 else
15421 ac_ext=C
15422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15423 ac_cpp='$CXXCPP $CPPFLAGS'
15424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15426 cross_compiling=$ac_cv_prog_cxx_cross
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include <math.h>
15432 #ifdef HAVE_IEEEFP_H
15433 #include <ieeefp.h>
15434 #endif
15436 int main() {
15437 sqrtf(0);
15438 ; return 0; }
15440 if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441 rm -rf conftest*
15442 glibcpp_cv_func_sqrtf_use=yes
15443 else
15444 echo "configure: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15446 rm -rf conftest*
15447 glibcpp_cv_func_sqrtf_use=no
15449 rm -f conftest*
15450 ac_ext=c
15451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15452 ac_cpp='$CPP $CPPFLAGS'
15453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15455 cross_compiling=$ac_cv_prog_cc_cross
15461 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15463 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15464 for ac_func in sqrtf
15466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15467 echo "configure:15468: checking for $ac_func" >&5
15468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15469 echo $ac_n "(cached) $ac_c" 1>&6
15470 else
15471 cat > conftest.$ac_ext <<EOF
15472 #line 15473 "configure"
15473 #include "confdefs.h"
15474 /* System header to define __stub macros and hopefully few prototypes,
15475 which can conflict with char $ac_func(); below. */
15476 #include <assert.h>
15477 /* Override any gcc2 internal prototype to avoid an error. */
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15480 char $ac_func();
15482 int main() {
15484 /* The GNU C library defines this for functions which it implements
15485 to always fail with ENOSYS. Some functions are actually named
15486 something starting with __ and the normal name is an alias. */
15487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488 choke me
15489 #else
15490 $ac_func();
15491 #endif
15493 ; return 0; }
15495 if { (eval echo configure:15496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15496 rm -rf conftest*
15497 eval "ac_cv_func_$ac_func=yes"
15498 else
15499 echo "configure: failed program was:" >&5
15500 cat conftest.$ac_ext >&5
15501 rm -rf conftest*
15502 eval "ac_cv_func_$ac_func=no"
15504 rm -f conftest*
15507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
15509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15510 cat >> confdefs.h <<EOF
15511 #define $ac_tr_func 1
15514 else
15515 echo "$ac_t""no" 1>&6
15517 done
15519 else
15521 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15522 echo "configure:15523: checking for _sqrtf declaration" >&5
15523 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15524 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15525 echo $ac_n "(cached) $ac_c" 1>&6
15526 else
15529 ac_ext=C
15530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15531 ac_cpp='$CXXCPP $CPPFLAGS'
15532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15534 cross_compiling=$ac_cv_prog_cxx_cross
15536 cat > conftest.$ac_ext <<EOF
15537 #line 15538 "configure"
15538 #include "confdefs.h"
15539 #include <math.h>
15540 #ifdef HAVE_IEEEFP_H
15541 #include <ieeefp.h>
15542 #endif
15544 int main() {
15545 _sqrtf(0);
15546 ; return 0; }
15548 if { (eval echo configure:15549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15549 rm -rf conftest*
15550 glibcpp_cv_func__sqrtf_use=yes
15551 else
15552 echo "configure: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15554 rm -rf conftest*
15555 glibcpp_cv_func__sqrtf_use=no
15557 rm -f conftest*
15558 ac_ext=c
15559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15560 ac_cpp='$CPP $CPPFLAGS'
15561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15563 cross_compiling=$ac_cv_prog_cc_cross
15569 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15571 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15572 for ac_func in _sqrtf
15574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15575 echo "configure:15576: checking for $ac_func" >&5
15576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15577 echo $ac_n "(cached) $ac_c" 1>&6
15578 else
15579 cat > conftest.$ac_ext <<EOF
15580 #line 15581 "configure"
15581 #include "confdefs.h"
15582 /* System header to define __stub macros and hopefully few prototypes,
15583 which can conflict with char $ac_func(); below. */
15584 #include <assert.h>
15585 /* Override any gcc2 internal prototype to avoid an error. */
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15588 char $ac_func();
15590 int main() {
15592 /* The GNU C library defines this for functions which it implements
15593 to always fail with ENOSYS. Some functions are actually named
15594 something starting with __ and the normal name is an alias. */
15595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15596 choke me
15597 #else
15598 $ac_func();
15599 #endif
15601 ; return 0; }
15603 if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15604 rm -rf conftest*
15605 eval "ac_cv_func_$ac_func=yes"
15606 else
15607 echo "configure: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 rm -rf conftest*
15610 eval "ac_cv_func_$ac_func=no"
15612 rm -f conftest*
15615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15616 echo "$ac_t""yes" 1>&6
15617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15618 cat >> confdefs.h <<EOF
15619 #define $ac_tr_func 1
15622 else
15623 echo "$ac_t""no" 1>&6
15625 done
15632 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15633 echo "configure:15634: checking for sincosf declaration" >&5
15634 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15635 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15636 echo $ac_n "(cached) $ac_c" 1>&6
15637 else
15640 ac_ext=C
15641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15642 ac_cpp='$CXXCPP $CPPFLAGS'
15643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15645 cross_compiling=$ac_cv_prog_cxx_cross
15647 cat > conftest.$ac_ext <<EOF
15648 #line 15649 "configure"
15649 #include "confdefs.h"
15650 #include <math.h>
15651 int main() {
15652 sincosf(0, 0, 0);
15653 ; return 0; }
15655 if { (eval echo configure:15656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15656 rm -rf conftest*
15657 glibcpp_cv_func_sincosf_use=yes
15658 else
15659 echo "configure: failed program was:" >&5
15660 cat conftest.$ac_ext >&5
15661 rm -rf conftest*
15662 glibcpp_cv_func_sincosf_use=no
15664 rm -f conftest*
15665 ac_ext=c
15666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15667 ac_cpp='$CPP $CPPFLAGS'
15668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15670 cross_compiling=$ac_cv_prog_cc_cross
15676 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15678 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15679 for ac_func in sincosf
15681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15682 echo "configure:15683: checking for $ac_func" >&5
15683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15684 echo $ac_n "(cached) $ac_c" 1>&6
15685 else
15686 cat > conftest.$ac_ext <<EOF
15687 #line 15688 "configure"
15688 #include "confdefs.h"
15689 /* System header to define __stub macros and hopefully few prototypes,
15690 which can conflict with char $ac_func(); below. */
15691 #include <assert.h>
15692 /* Override any gcc2 internal prototype to avoid an error. */
15693 /* We use char because int might match the return type of a gcc2
15694 builtin and then its argument prototype would still apply. */
15695 char $ac_func();
15697 int main() {
15699 /* The GNU C library defines this for functions which it implements
15700 to always fail with ENOSYS. Some functions are actually named
15701 something starting with __ and the normal name is an alias. */
15702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15703 choke me
15704 #else
15705 $ac_func();
15706 #endif
15708 ; return 0; }
15710 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15711 rm -rf conftest*
15712 eval "ac_cv_func_$ac_func=yes"
15713 else
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15716 rm -rf conftest*
15717 eval "ac_cv_func_$ac_func=no"
15719 rm -f conftest*
15722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15723 echo "$ac_t""yes" 1>&6
15724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15725 cat >> confdefs.h <<EOF
15726 #define $ac_tr_func 1
15729 else
15730 echo "$ac_t""no" 1>&6
15732 done
15734 else
15736 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15737 echo "configure:15738: checking for _sincosf declaration" >&5
15738 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15739 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15740 echo $ac_n "(cached) $ac_c" 1>&6
15741 else
15744 ac_ext=C
15745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15746 ac_cpp='$CXXCPP $CPPFLAGS'
15747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15749 cross_compiling=$ac_cv_prog_cxx_cross
15751 cat > conftest.$ac_ext <<EOF
15752 #line 15753 "configure"
15753 #include "confdefs.h"
15754 #include <math.h>
15755 int main() {
15756 _sincosf(0, 0, 0);
15757 ; return 0; }
15759 if { (eval echo configure:15760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15760 rm -rf conftest*
15761 glibcpp_cv_func__sincosf_use=yes
15762 else
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15765 rm -rf conftest*
15766 glibcpp_cv_func__sincosf_use=no
15768 rm -f conftest*
15769 ac_ext=c
15770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15771 ac_cpp='$CPP $CPPFLAGS'
15772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15774 cross_compiling=$ac_cv_prog_cc_cross
15780 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15782 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15783 for ac_func in _sincosf
15785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15786 echo "configure:15787: checking for $ac_func" >&5
15787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15788 echo $ac_n "(cached) $ac_c" 1>&6
15789 else
15790 cat > conftest.$ac_ext <<EOF
15791 #line 15792 "configure"
15792 #include "confdefs.h"
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func(); below. */
15795 #include <assert.h>
15796 /* Override any gcc2 internal prototype to avoid an error. */
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15799 char $ac_func();
15801 int main() {
15803 /* The GNU C library defines this for functions which it implements
15804 to always fail with ENOSYS. Some functions are actually named
15805 something starting with __ and the normal name is an alias. */
15806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 choke me
15808 #else
15809 $ac_func();
15810 #endif
15812 ; return 0; }
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815 rm -rf conftest*
15816 eval "ac_cv_func_$ac_func=yes"
15817 else
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 rm -rf conftest*
15821 eval "ac_cv_func_$ac_func=no"
15823 rm -f conftest*
15826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15827 echo "$ac_t""yes" 1>&6
15828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15829 cat >> confdefs.h <<EOF
15830 #define $ac_tr_func 1
15833 else
15834 echo "$ac_t""no" 1>&6
15836 done
15843 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15844 echo "configure:15845: checking for finitef declaration" >&5
15845 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15846 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15847 echo $ac_n "(cached) $ac_c" 1>&6
15848 else
15851 ac_ext=C
15852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15853 ac_cpp='$CXXCPP $CPPFLAGS'
15854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15856 cross_compiling=$ac_cv_prog_cxx_cross
15858 cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 #include <math.h>
15862 #ifdef HAVE_IEEEFP_H
15863 #include <ieeefp.h>
15864 #endif
15866 int main() {
15867 finitef(0);
15868 ; return 0; }
15870 if { (eval echo configure:15871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15871 rm -rf conftest*
15872 glibcpp_cv_func_finitef_use=yes
15873 else
15874 echo "configure: failed program was:" >&5
15875 cat conftest.$ac_ext >&5
15876 rm -rf conftest*
15877 glibcpp_cv_func_finitef_use=no
15879 rm -f conftest*
15880 ac_ext=c
15881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15882 ac_cpp='$CPP $CPPFLAGS'
15883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15885 cross_compiling=$ac_cv_prog_cc_cross
15891 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15893 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15894 for ac_func in finitef
15896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15897 echo "configure:15898: checking for $ac_func" >&5
15898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15899 echo $ac_n "(cached) $ac_c" 1>&6
15900 else
15901 cat > conftest.$ac_ext <<EOF
15902 #line 15903 "configure"
15903 #include "confdefs.h"
15904 /* System header to define __stub macros and hopefully few prototypes,
15905 which can conflict with char $ac_func(); below. */
15906 #include <assert.h>
15907 /* Override any gcc2 internal prototype to avoid an error. */
15908 /* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910 char $ac_func();
15912 int main() {
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918 choke me
15919 #else
15920 $ac_func();
15921 #endif
15923 ; return 0; }
15925 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15926 rm -rf conftest*
15927 eval "ac_cv_func_$ac_func=yes"
15928 else
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 rm -rf conftest*
15932 eval "ac_cv_func_$ac_func=no"
15934 rm -f conftest*
15937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15940 cat >> confdefs.h <<EOF
15941 #define $ac_tr_func 1
15944 else
15945 echo "$ac_t""no" 1>&6
15947 done
15949 else
15951 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15952 echo "configure:15953: checking for _finitef declaration" >&5
15953 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15954 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15956 else
15959 ac_ext=C
15960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15961 ac_cpp='$CXXCPP $CPPFLAGS'
15962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15964 cross_compiling=$ac_cv_prog_cxx_cross
15966 cat > conftest.$ac_ext <<EOF
15967 #line 15968 "configure"
15968 #include "confdefs.h"
15969 #include <math.h>
15970 #ifdef HAVE_IEEEFP_H
15971 #include <ieeefp.h>
15972 #endif
15974 int main() {
15975 _finitef(0);
15976 ; return 0; }
15978 if { (eval echo configure:15979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15979 rm -rf conftest*
15980 glibcpp_cv_func__finitef_use=yes
15981 else
15982 echo "configure: failed program was:" >&5
15983 cat conftest.$ac_ext >&5
15984 rm -rf conftest*
15985 glibcpp_cv_func__finitef_use=no
15987 rm -f conftest*
15988 ac_ext=c
15989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15993 cross_compiling=$ac_cv_prog_cc_cross
15999 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16001 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16002 for ac_func in _finitef
16004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16005 echo "configure:16006: checking for $ac_func" >&5
16006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16007 echo $ac_n "(cached) $ac_c" 1>&6
16008 else
16009 cat > conftest.$ac_ext <<EOF
16010 #line 16011 "configure"
16011 #include "confdefs.h"
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func(); below. */
16014 #include <assert.h>
16015 /* Override any gcc2 internal prototype to avoid an error. */
16016 /* We use char because int might match the return type of a gcc2
16017 builtin and then its argument prototype would still apply. */
16018 char $ac_func();
16020 int main() {
16022 /* The GNU C library defines this for functions which it implements
16023 to always fail with ENOSYS. Some functions are actually named
16024 something starting with __ and the normal name is an alias. */
16025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16026 choke me
16027 #else
16028 $ac_func();
16029 #endif
16031 ; return 0; }
16033 if { (eval echo configure:16034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16034 rm -rf conftest*
16035 eval "ac_cv_func_$ac_func=yes"
16036 else
16037 echo "configure: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16039 rm -rf conftest*
16040 eval "ac_cv_func_$ac_func=no"
16042 rm -f conftest*
16045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16046 echo "$ac_t""yes" 1>&6
16047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16048 cat >> confdefs.h <<EOF
16049 #define $ac_tr_func 1
16052 else
16053 echo "$ac_t""no" 1>&6
16055 done
16062 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16063 echo "configure:16064: checking for long double trig functions" >&5
16064 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066 else
16069 ac_ext=C
16070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16071 ac_cpp='$CXXCPP $CPPFLAGS'
16072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16074 cross_compiling=$ac_cv_prog_cxx_cross
16076 cat > conftest.$ac_ext <<EOF
16077 #line 16078 "configure"
16078 #include "confdefs.h"
16079 #include <math.h>
16080 int main() {
16081 `for x in acosl asinl atanl \
16082 cosl sinl tanl \
16083 coshl sinhl tanhl; do echo "$x (0);"; done`
16084 ; return 0; }
16086 if { (eval echo configure:16087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16087 rm -rf conftest*
16088 glibcpp_cv_func_long_double_trig_use=yes
16089 else
16090 echo "configure: failed program was:" >&5
16091 cat conftest.$ac_ext >&5
16092 rm -rf conftest*
16093 glibcpp_cv_func_long_double_trig_use=no
16095 rm -f conftest*
16096 ac_ext=c
16097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16098 ac_cpp='$CPP $CPPFLAGS'
16099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16101 cross_compiling=$ac_cv_prog_cc_cross
16105 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16106 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16107 for ac_func in acosl asinl atanl \
16108 cosl sinl tanl \
16109 coshl sinhl tanhl
16111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16112 echo "configure:16113: checking for $ac_func" >&5
16113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16114 echo $ac_n "(cached) $ac_c" 1>&6
16115 else
16116 cat > conftest.$ac_ext <<EOF
16117 #line 16118 "configure"
16118 #include "confdefs.h"
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func(); below. */
16121 #include <assert.h>
16122 /* Override any gcc2 internal prototype to avoid an error. */
16123 /* We use char because int might match the return type of a gcc2
16124 builtin and then its argument prototype would still apply. */
16125 char $ac_func();
16127 int main() {
16129 /* The GNU C library defines this for functions which it implements
16130 to always fail with ENOSYS. Some functions are actually named
16131 something starting with __ and the normal name is an alias. */
16132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16133 choke me
16134 #else
16135 $ac_func();
16136 #endif
16138 ; return 0; }
16140 if { (eval echo configure:16141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16141 rm -rf conftest*
16142 eval "ac_cv_func_$ac_func=yes"
16143 else
16144 echo "configure: failed program was:" >&5
16145 cat conftest.$ac_ext >&5
16146 rm -rf conftest*
16147 eval "ac_cv_func_$ac_func=no"
16149 rm -f conftest*
16152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16153 echo "$ac_t""yes" 1>&6
16154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16155 cat >> confdefs.h <<EOF
16156 #define $ac_tr_func 1
16159 else
16160 echo "$ac_t""no" 1>&6
16162 done
16167 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16168 echo "configure:16169: checking for long double round functions" >&5
16169 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16170 echo $ac_n "(cached) $ac_c" 1>&6
16171 else
16174 ac_ext=C
16175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16176 ac_cpp='$CXXCPP $CPPFLAGS'
16177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16179 cross_compiling=$ac_cv_prog_cxx_cross
16181 cat > conftest.$ac_ext <<EOF
16182 #line 16183 "configure"
16183 #include "confdefs.h"
16184 #include <math.h>
16185 int main() {
16186 `for x in ceill floorl; do echo "$x (0);"; done`
16187 ; return 0; }
16189 if { (eval echo configure:16190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16190 rm -rf conftest*
16191 glibcpp_cv_func_long_double_round_use=yes
16192 else
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16195 rm -rf conftest*
16196 glibcpp_cv_func_long_double_round_use=no
16198 rm -f conftest*
16199 ac_ext=c
16200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16204 cross_compiling=$ac_cv_prog_cc_cross
16208 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16209 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16210 for ac_func in ceill floorl
16212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16213 echo "configure:16214: checking for $ac_func" >&5
16214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16215 echo $ac_n "(cached) $ac_c" 1>&6
16216 else
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16219 "configure"
16219 #include "confdefs.h"
16220 /* System header to define __stub macros and hopefully few prototypes,
16221 which can conflict with char $ac_func(); below. */
16222 #include <assert.h>
16223 /* Override any gcc2 internal prototype to avoid an error. */
16224 /* We use char because int might match the return type of a gcc2
16225 builtin and then its argument prototype would still apply. */
16226 char $ac_func();
16228 int main() {
16230 /* The GNU C library defines this for functions which it implements
16231 to always fail with ENOSYS. Some functions are actually named
16232 something starting with __ and the normal name is an alias. */
16233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16234 choke me
16235 #else
16236 $ac_func();
16237 #endif
16239 ; return 0; }
16241 if { (eval echo configure:16242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16242 rm -rf conftest*
16243 eval "ac_cv_func_$ac_func=yes"
16244 else
16245 echo "configure: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16247 rm -rf conftest*
16248 eval "ac_cv_func_$ac_func=no"
16250 rm -f conftest*
16253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16254 echo "$ac_t""yes" 1>&6
16255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16256 cat >> confdefs.h <<EOF
16257 #define $ac_tr_func 1
16260 else
16261 echo "$ac_t""no" 1>&6
16263 done
16269 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16270 echo "configure:16271: checking for isnanl declaration" >&5
16271 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16272 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
16274 else
16277 ac_ext=C
16278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16279 ac_cpp='$CXXCPP $CPPFLAGS'
16280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16282 cross_compiling=$ac_cv_prog_cxx_cross
16284 cat > conftest.$ac_ext <<EOF
16285 #line 16286 "configure"
16286 #include "confdefs.h"
16287 #include <math.h>
16288 #ifdef HAVE_IEEEFP_H
16289 #include <ieeefp.h>
16290 #endif
16292 int main() {
16293 isnanl(0);
16294 ; return 0; }
16296 if { (eval echo configure:16297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16297 rm -rf conftest*
16298 glibcpp_cv_func_isnanl_use=yes
16299 else
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16302 rm -rf conftest*
16303 glibcpp_cv_func_isnanl_use=no
16305 rm -f conftest*
16306 ac_ext=c
16307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16308 ac_cpp='$CPP $CPPFLAGS'
16309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16311 cross_compiling=$ac_cv_prog_cc_cross
16317 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16319 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16320 for ac_func in isnanl
16322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16323 echo "configure:16324: checking for $ac_func" >&5
16324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16326 else
16327 cat > conftest.$ac_ext <<EOF
16328 #line 16329 "configure"
16329 #include "confdefs.h"
16330 /* System header to define __stub macros and hopefully few prototypes,
16331 which can conflict with char $ac_func(); below. */
16332 #include <assert.h>
16333 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16336 char $ac_func();
16338 int main() {
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16344 choke me
16345 #else
16346 $ac_func();
16347 #endif
16349 ; return 0; }
16351 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16352 rm -rf conftest*
16353 eval "ac_cv_func_$ac_func=yes"
16354 else
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16357 rm -rf conftest*
16358 eval "ac_cv_func_$ac_func=no"
16360 rm -f conftest*
16363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16364 echo "$ac_t""yes" 1>&6
16365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16366 cat >> confdefs.h <<EOF
16367 #define $ac_tr_func 1
16370 else
16371 echo "$ac_t""no" 1>&6
16373 done
16375 else
16377 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16378 echo "configure:16379: checking for _isnanl declaration" >&5
16379 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16380 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16381 echo $ac_n "(cached) $ac_c" 1>&6
16382 else
16385 ac_ext=C
16386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16390 cross_compiling=$ac_cv_prog_cxx_cross
16392 cat > conftest.$ac_ext <<EOF
16393 #line 16394 "configure"
16394 #include "confdefs.h"
16395 #include <math.h>
16396 #ifdef HAVE_IEEEFP_H
16397 #include <ieeefp.h>
16398 #endif
16400 int main() {
16401 _isnanl(0);
16402 ; return 0; }
16404 if { (eval echo configure:16405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16405 rm -rf conftest*
16406 glibcpp_cv_func__isnanl_use=yes
16407 else
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16410 rm -rf conftest*
16411 glibcpp_cv_func__isnanl_use=no
16413 rm -f conftest*
16414 ac_ext=c
16415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16416 ac_cpp='$CPP $CPPFLAGS'
16417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16419 cross_compiling=$ac_cv_prog_cc_cross
16425 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16427 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16428 for ac_func in _isnanl
16430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16431 echo "configure:16432: checking for $ac_func" >&5
16432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16433 echo $ac_n "(cached) $ac_c" 1>&6
16434 else
16435 cat > conftest.$ac_ext <<EOF
16436 #line 16437 "configure"
16437 #include "confdefs.h"
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char $ac_func(); below. */
16440 #include <assert.h>
16441 /* Override any gcc2 internal prototype to avoid an error. */
16442 /* We use char because int might match the return type of a gcc2
16443 builtin and then its argument prototype would still apply. */
16444 char $ac_func();
16446 int main() {
16448 /* The GNU C library defines this for functions which it implements
16449 to always fail with ENOSYS. Some functions are actually named
16450 something starting with __ and the normal name is an alias. */
16451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16452 choke me
16453 #else
16454 $ac_func();
16455 #endif
16457 ; return 0; }
16459 if { (eval echo configure:16460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16460 rm -rf conftest*
16461 eval "ac_cv_func_$ac_func=yes"
16462 else
16463 echo "configure: failed program was:" >&5
16464 cat conftest.$ac_ext >&5
16465 rm -rf conftest*
16466 eval "ac_cv_func_$ac_func=no"
16468 rm -f conftest*
16471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16472 echo "$ac_t""yes" 1>&6
16473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16474 cat >> confdefs.h <<EOF
16475 #define $ac_tr_func 1
16478 else
16479 echo "$ac_t""no" 1>&6
16481 done
16488 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16489 echo "configure:16490: checking for isinfl declaration" >&5
16490 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16491 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16493 else
16496 ac_ext=C
16497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16498 ac_cpp='$CXXCPP $CPPFLAGS'
16499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16501 cross_compiling=$ac_cv_prog_cxx_cross
16503 cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16506 #include <math.h>
16507 #ifdef HAVE_IEEEFP_H
16508 #include <ieeefp.h>
16509 #endif
16511 int main() {
16512 isinfl(0);
16513 ; return 0; }
16515 if { (eval echo configure:16516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16516 rm -rf conftest*
16517 glibcpp_cv_func_isinfl_use=yes
16518 else
16519 echo "configure: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16521 rm -rf conftest*
16522 glibcpp_cv_func_isinfl_use=no
16524 rm -f conftest*
16525 ac_ext=c
16526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16527 ac_cpp='$CPP $CPPFLAGS'
16528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16530 cross_compiling=$ac_cv_prog_cc_cross
16536 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16538 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16539 for ac_func in isinfl
16541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16542 echo "configure:16543: checking for $ac_func" >&5
16543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16544 echo $ac_n "(cached) $ac_c" 1>&6
16545 else
16546 cat > conftest.$ac_ext <<EOF
16547 #line 16548 "configure"
16548 #include "confdefs.h"
16549 /* System header to define __stub macros and hopefully few prototypes,
16550 which can conflict with char $ac_func(); below. */
16551 #include <assert.h>
16552 /* Override any gcc2 internal prototype to avoid an error. */
16553 /* We use char because int might match the return type of a gcc2
16554 builtin and then its argument prototype would still apply. */
16555 char $ac_func();
16557 int main() {
16559 /* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16563 choke me
16564 #else
16565 $ac_func();
16566 #endif
16568 ; return 0; }
16570 if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16571 rm -rf conftest*
16572 eval "ac_cv_func_$ac_func=yes"
16573 else
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16576 rm -rf conftest*
16577 eval "ac_cv_func_$ac_func=no"
16579 rm -f conftest*
16582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16583 echo "$ac_t""yes" 1>&6
16584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16585 cat >> confdefs.h <<EOF
16586 #define $ac_tr_func 1
16589 else
16590 echo "$ac_t""no" 1>&6
16592 done
16594 else
16596 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16597 echo "configure:16598: checking for _isinfl declaration" >&5
16598 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16599 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16601 else
16604 ac_ext=C
16605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16606 ac_cpp='$CXXCPP $CPPFLAGS'
16607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16609 cross_compiling=$ac_cv_prog_cxx_cross
16611 cat > conftest.$ac_ext <<EOF
16612 #line 16613 "configure"
16613 #include "confdefs.h"
16614 #include <math.h>
16615 #ifdef HAVE_IEEEFP_H
16616 #include <ieeefp.h>
16617 #endif
16619 int main() {
16620 _isinfl(0);
16621 ; return 0; }
16623 if { (eval echo configure:16624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16624 rm -rf conftest*
16625 glibcpp_cv_func__isinfl_use=yes
16626 else
16627 echo "configure: failed program was:" >&5
16628 cat conftest.$ac_ext >&5
16629 rm -rf conftest*
16630 glibcpp_cv_func__isinfl_use=no
16632 rm -f conftest*
16633 ac_ext=c
16634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16635 ac_cpp='$CPP $CPPFLAGS'
16636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16638 cross_compiling=$ac_cv_prog_cc_cross
16644 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16646 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16647 for ac_func in _isinfl
16649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16650 echo "configure:16651: checking for $ac_func" >&5
16651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16652 echo $ac_n "(cached) $ac_c" 1>&6
16653 else
16654 cat > conftest.$ac_ext <<EOF
16655 #line 16656 "configure"
16656 #include "confdefs.h"
16657 /* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char $ac_func(); below. */
16659 #include <assert.h>
16660 /* Override any gcc2 internal prototype to avoid an error. */
16661 /* We use char because int might match the return type of a gcc2
16662 builtin and then its argument prototype would still apply. */
16663 char $ac_func();
16665 int main() {
16667 /* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16671 choke me
16672 #else
16673 $ac_func();
16674 #endif
16676 ; return 0; }
16678 if { (eval echo configure:16679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16679 rm -rf conftest*
16680 eval "ac_cv_func_$ac_func=yes"
16681 else
16682 echo "configure: failed program was:" >&5
16683 cat conftest.$ac_ext >&5
16684 rm -rf conftest*
16685 eval "ac_cv_func_$ac_func=no"
16687 rm -f conftest*
16690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16691 echo "$ac_t""yes" 1>&6
16692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16693 cat >> confdefs.h <<EOF
16694 #define $ac_tr_func 1
16697 else
16698 echo "$ac_t""no" 1>&6
16700 done
16707 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16708 echo "configure:16709: checking for copysignl declaration" >&5
16709 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16710 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712 else
16715 ac_ext=C
16716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16717 ac_cpp='$CXXCPP $CPPFLAGS'
16718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16720 cross_compiling=$ac_cv_prog_cxx_cross
16722 cat > conftest.$ac_ext <<EOF
16723 #line 16724 "configure"
16724 #include "confdefs.h"
16725 #include <math.h>
16726 int main() {
16727 copysignl(0, 0);
16728 ; return 0; }
16730 if { (eval echo configure:16731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16731 rm -rf conftest*
16732 glibcpp_cv_func_copysignl_use=yes
16733 else
16734 echo "configure: failed program was:" >&5
16735 cat conftest.$ac_ext >&5
16736 rm -rf conftest*
16737 glibcpp_cv_func_copysignl_use=no
16739 rm -f conftest*
16740 ac_ext=c
16741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16745 cross_compiling=$ac_cv_prog_cc_cross
16751 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16753 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16754 for ac_func in copysignl
16756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16757 echo "configure:16758: checking for $ac_func" >&5
16758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16759 echo $ac_n "(cached) $ac_c" 1>&6
16760 else
16761 cat > conftest.$ac_ext <<EOF
16762 #line 16763 "configure"
16763 #include "confdefs.h"
16764 /* System header to define __stub macros and hopefully few prototypes,
16765 which can conflict with char $ac_func(); below. */
16766 #include <assert.h>
16767 /* Override any gcc2 internal prototype to avoid an error. */
16768 /* We use char because int might match the return type of a gcc2
16769 builtin and then its argument prototype would still apply. */
16770 char $ac_func();
16772 int main() {
16774 /* The GNU C library defines this for functions which it implements
16775 to always fail with ENOSYS. Some functions are actually named
16776 something starting with __ and the normal name is an alias. */
16777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 choke me
16779 #else
16780 $ac_func();
16781 #endif
16783 ; return 0; }
16785 if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16786 rm -rf conftest*
16787 eval "ac_cv_func_$ac_func=yes"
16788 else
16789 echo "configure: failed program was:" >&5
16790 cat conftest.$ac_ext >&5
16791 rm -rf conftest*
16792 eval "ac_cv_func_$ac_func=no"
16794 rm -f conftest*
16797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16798 echo "$ac_t""yes" 1>&6
16799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16800 cat >> confdefs.h <<EOF
16801 #define $ac_tr_func 1
16804 else
16805 echo "$ac_t""no" 1>&6
16807 done
16809 else
16811 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16812 echo "configure:16813: checking for _copysignl declaration" >&5
16813 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16814 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16815 echo $ac_n "(cached) $ac_c" 1>&6
16816 else
16819 ac_ext=C
16820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16821 ac_cpp='$CXXCPP $CPPFLAGS'
16822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16824 cross_compiling=$ac_cv_prog_cxx_cross
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 #include <math.h>
16830 int main() {
16831 _copysignl(0, 0);
16832 ; return 0; }
16834 if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16835 rm -rf conftest*
16836 glibcpp_cv_func__copysignl_use=yes
16837 else
16838 echo "configure: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 rm -rf conftest*
16841 glibcpp_cv_func__copysignl_use=no
16843 rm -f conftest*
16844 ac_ext=c
16845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16846 ac_cpp='$CPP $CPPFLAGS'
16847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16849 cross_compiling=$ac_cv_prog_cc_cross
16855 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16857 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16858 for ac_func in _copysignl
16860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16861 echo "configure:16862: checking for $ac_func" >&5
16862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16864 else
16865 cat > conftest.$ac_ext <<EOF
16866 #line 16867 "configure"
16867 #include "confdefs.h"
16868 /* System header to define __stub macros and hopefully few prototypes,
16869 which can conflict with char $ac_func(); below. */
16870 #include <assert.h>
16871 /* Override any gcc2 internal prototype to avoid an error. */
16872 /* We use char because int might match the return type of a gcc2
16873 builtin and then its argument prototype would still apply. */
16874 char $ac_func();
16876 int main() {
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16882 choke me
16883 #else
16884 $ac_func();
16885 #endif
16887 ; return 0; }
16889 if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16890 rm -rf conftest*
16891 eval "ac_cv_func_$ac_func=yes"
16892 else
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 rm -rf conftest*
16896 eval "ac_cv_func_$ac_func=no"
16898 rm -f conftest*
16901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16902 echo "$ac_t""yes" 1>&6
16903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16904 cat >> confdefs.h <<EOF
16905 #define $ac_tr_func 1
16908 else
16909 echo "$ac_t""no" 1>&6
16911 done
16918 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16919 echo "configure:16920: checking for atan2l declaration" >&5
16920 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16921 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16926 ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16933 cat > conftest.$ac_ext <<EOF
16934 #line 16935 "configure"
16935 #include "confdefs.h"
16936 #include <math.h>
16937 int main() {
16938 atan2l(0, 0);
16939 ; return 0; }
16941 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942 rm -rf conftest*
16943 glibcpp_cv_func_atan2l_use=yes
16944 else
16945 echo "configure: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16947 rm -rf conftest*
16948 glibcpp_cv_func_atan2l_use=no
16950 rm -f conftest*
16951 ac_ext=c
16952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cc_cross
16962 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16964 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16965 for ac_func in atan2l
16967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16968 echo "configure:16969: checking for $ac_func" >&5
16969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16970 echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972 cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func(); below. */
16977 #include <assert.h>
16978 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981 char $ac_func();
16983 int main() {
16985 /* The GNU C library defines this for functions which it implements
16986 to always fail with ENOSYS. Some functions are actually named
16987 something starting with __ and the normal name is an alias. */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 $ac_func();
16992 #endif
16994 ; return 0; }
16996 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997 rm -rf conftest*
16998 eval "ac_cv_func_$ac_func=yes"
16999 else
17000 echo "configure: failed program was:" >&5
17001 cat conftest.$ac_ext >&5
17002 rm -rf conftest*
17003 eval "ac_cv_func_$ac_func=no"
17005 rm -f conftest*
17008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17009 echo "$ac_t""yes" 1>&6
17010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17011 cat >> confdefs.h <<EOF
17012 #define $ac_tr_func 1
17015 else
17016 echo "$ac_t""no" 1>&6
17018 done
17020 else
17022 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17023 echo "configure:17024: checking for _atan2l declaration" >&5
17024 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17025 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17026 echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17030 ac_ext=C
17031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17032 ac_cpp='$CXXCPP $CPPFLAGS'
17033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17035 cross_compiling=$ac_cv_prog_cxx_cross
17037 cat > conftest.$ac_ext <<EOF
17038 #line 17039 "configure"
17039 #include "confdefs.h"
17040 #include <math.h>
17041 int main() {
17042 _atan2l(0, 0);
17043 ; return 0; }
17045 if { (eval echo configure:17046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17046 rm -rf conftest*
17047 glibcpp_cv_func__atan2l_use=yes
17048 else
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17051 rm -rf conftest*
17052 glibcpp_cv_func__atan2l_use=no
17054 rm -f conftest*
17055 ac_ext=c
17056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17060 cross_compiling=$ac_cv_prog_cc_cross
17066 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17068 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17069 for ac_func in _atan2l
17071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17072 echo "configure:17073: checking for $ac_func" >&5
17073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17074 echo $ac_n "(cached) $ac_c" 1>&6
17075 else
17076 cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func(); below. */
17081 #include <assert.h>
17082 /* Override any gcc2 internal prototype to avoid an error. */
17083 /* We use char because int might match the return type of a gcc2
17084 builtin and then its argument prototype would still apply. */
17085 char $ac_func();
17087 int main() {
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17093 choke me
17094 #else
17095 $ac_func();
17096 #endif
17098 ; return 0; }
17100 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17101 rm -rf conftest*
17102 eval "ac_cv_func_$ac_func=yes"
17103 else
17104 echo "configure: failed program was:" >&5
17105 cat conftest.$ac_ext >&5
17106 rm -rf conftest*
17107 eval "ac_cv_func_$ac_func=no"
17109 rm -f conftest*
17112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17113 echo "$ac_t""yes" 1>&6
17114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17115 cat >> confdefs.h <<EOF
17116 #define $ac_tr_func 1
17119 else
17120 echo "$ac_t""no" 1>&6
17122 done
17129 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17130 echo "configure:17131: checking for expl declaration" >&5
17131 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17132 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17133 echo $ac_n "(cached) $ac_c" 1>&6
17134 else
17137 ac_ext=C
17138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17139 ac_cpp='$CXXCPP $CPPFLAGS'
17140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17142 cross_compiling=$ac_cv_prog_cxx_cross
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17147 #include <math.h>
17148 #ifdef HAVE_IEEEFP_H
17149 #include <ieeefp.h>
17150 #endif
17152 int main() {
17153 expl(0);
17154 ; return 0; }
17156 if { (eval echo configure:17157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17157 rm -rf conftest*
17158 glibcpp_cv_func_expl_use=yes
17159 else
17160 echo "configure: failed program was:" >&5
17161 cat conftest.$ac_ext >&5
17162 rm -rf conftest*
17163 glibcpp_cv_func_expl_use=no
17165 rm -f conftest*
17166 ac_ext=c
17167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17168 ac_cpp='$CPP $CPPFLAGS'
17169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17171 cross_compiling=$ac_cv_prog_cc_cross
17177 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17179 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17180 for ac_func in expl
17182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17183 echo "configure:17184: checking for $ac_func" >&5
17184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17185 echo $ac_n "(cached) $ac_c" 1>&6
17186 else
17187 cat > conftest.$ac_ext <<EOF
17188 #line 17189 "configure"
17189 #include "confdefs.h"
17190 /* System header to define __stub macros and hopefully few prototypes,
17191 which can conflict with char $ac_func(); below. */
17192 #include <assert.h>
17193 /* Override any gcc2 internal prototype to avoid an error. */
17194 /* We use char because int might match the return type of a gcc2
17195 builtin and then its argument prototype would still apply. */
17196 char $ac_func();
17198 int main() {
17200 /* The GNU C library defines this for functions which it implements
17201 to always fail with ENOSYS. Some functions are actually named
17202 something starting with __ and the normal name is an alias. */
17203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17204 choke me
17205 #else
17206 $ac_func();
17207 #endif
17209 ; return 0; }
17211 if { (eval echo configure:17212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17212 rm -rf conftest*
17213 eval "ac_cv_func_$ac_func=yes"
17214 else
17215 echo "configure: failed program was:" >&5
17216 cat conftest.$ac_ext >&5
17217 rm -rf conftest*
17218 eval "ac_cv_func_$ac_func=no"
17220 rm -f conftest*
17223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17224 echo "$ac_t""yes" 1>&6
17225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17226 cat >> confdefs.h <<EOF
17227 #define $ac_tr_func 1
17230 else
17231 echo "$ac_t""no" 1>&6
17233 done
17235 else
17237 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17238 echo "configure:17239: checking for _expl declaration" >&5
17239 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17240 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17241 echo $ac_n "(cached) $ac_c" 1>&6
17242 else
17245 ac_ext=C
17246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17247 ac_cpp='$CXXCPP $CPPFLAGS'
17248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17250 cross_compiling=$ac_cv_prog_cxx_cross
17252 cat > conftest.$ac_ext <<EOF
17253 #line 17254 "configure"
17254 #include "confdefs.h"
17255 #include <math.h>
17256 #ifdef HAVE_IEEEFP_H
17257 #include <ieeefp.h>
17258 #endif
17260 int main() {
17261 _expl(0);
17262 ; return 0; }
17264 if { (eval echo configure:17265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17265 rm -rf conftest*
17266 glibcpp_cv_func__expl_use=yes
17267 else
17268 echo "configure: failed program was:" >&5
17269 cat conftest.$ac_ext >&5
17270 rm -rf conftest*
17271 glibcpp_cv_func__expl_use=no
17273 rm -f conftest*
17274 ac_ext=c
17275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17276 ac_cpp='$CPP $CPPFLAGS'
17277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17279 cross_compiling=$ac_cv_prog_cc_cross
17285 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17287 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17288 for ac_func in _expl
17290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17291 echo "configure:17292: checking for $ac_func" >&5
17292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17293 echo $ac_n "(cached) $ac_c" 1>&6
17294 else
17295 cat > conftest.$ac_ext <<EOF
17296 #line 17297 "configure"
17297 #include "confdefs.h"
17298 /* System header to define __stub macros and hopefully few prototypes,
17299 which can conflict with char $ac_func(); below. */
17300 #include <assert.h>
17301 /* Override any gcc2 internal prototype to avoid an error. */
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17304 char $ac_func();
17306 int main() {
17308 /* The GNU C library defines this for functions which it implements
17309 to always fail with ENOSYS. Some functions are actually named
17310 something starting with __ and the normal name is an alias. */
17311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17312 choke me
17313 #else
17314 $ac_func();
17315 #endif
17317 ; return 0; }
17319 if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17320 rm -rf conftest*
17321 eval "ac_cv_func_$ac_func=yes"
17322 else
17323 echo "configure: failed program was:" >&5
17324 cat conftest.$ac_ext >&5
17325 rm -rf conftest*
17326 eval "ac_cv_func_$ac_func=no"
17328 rm -f conftest*
17331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17332 echo "$ac_t""yes" 1>&6
17333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17334 cat >> confdefs.h <<EOF
17335 #define $ac_tr_func 1
17338 else
17339 echo "$ac_t""no" 1>&6
17341 done
17348 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17349 echo "configure:17350: checking for fabsl declaration" >&5
17350 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17351 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17352 echo $ac_n "(cached) $ac_c" 1>&6
17353 else
17356 ac_ext=C
17357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17358 ac_cpp='$CXXCPP $CPPFLAGS'
17359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17361 cross_compiling=$ac_cv_prog_cxx_cross
17363 cat > conftest.$ac_ext <<EOF
17364 #line 17365 "configure"
17365 #include "confdefs.h"
17366 #include <math.h>
17367 #ifdef HAVE_IEEEFP_H
17368 #include <ieeefp.h>
17369 #endif
17371 int main() {
17372 fabsl(0);
17373 ; return 0; }
17375 if { (eval echo configure:17376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17376 rm -rf conftest*
17377 glibcpp_cv_func_fabsl_use=yes
17378 else
17379 echo "configure: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17381 rm -rf conftest*
17382 glibcpp_cv_func_fabsl_use=no
17384 rm -f conftest*
17385 ac_ext=c
17386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17387 ac_cpp='$CPP $CPPFLAGS'
17388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17390 cross_compiling=$ac_cv_prog_cc_cross
17396 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17398 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17399 for ac_func in fabsl
17401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17402 echo "configure:17403: checking for $ac_func" >&5
17403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17404 echo $ac_n "(cached) $ac_c" 1>&6
17405 else
17406 cat > conftest.$ac_ext <<EOF
17407 #line 17408 "configure"
17408 #include "confdefs.h"
17409 /* System header to define __stub macros and hopefully few prototypes,
17410 which can conflict with char $ac_func(); below. */
17411 #include <assert.h>
17412 /* Override any gcc2 internal prototype to avoid an error. */
17413 /* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17415 char $ac_func();
17417 int main() {
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17423 choke me
17424 #else
17425 $ac_func();
17426 #endif
17428 ; return 0; }
17430 if { (eval echo configure:17431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17431 rm -rf conftest*
17432 eval "ac_cv_func_$ac_func=yes"
17433 else
17434 echo "configure: failed program was:" >&5
17435 cat conftest.$ac_ext >&5
17436 rm -rf conftest*
17437 eval "ac_cv_func_$ac_func=no"
17439 rm -f conftest*
17442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17443 echo "$ac_t""yes" 1>&6
17444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17445 cat >> confdefs.h <<EOF
17446 #define $ac_tr_func 1
17449 else
17450 echo "$ac_t""no" 1>&6
17452 done
17454 else
17456 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17457 echo "configure:17458: checking for _fabsl declaration" >&5
17458 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17459 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17460 echo $ac_n "(cached) $ac_c" 1>&6
17461 else
17464 ac_ext=C
17465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17466 ac_cpp='$CXXCPP $CPPFLAGS'
17467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17469 cross_compiling=$ac_cv_prog_cxx_cross
17471 cat > conftest.$ac_ext <<EOF
17472 #line 17473 "configure"
17473 #include "confdefs.h"
17474 #include <math.h>
17475 #ifdef HAVE_IEEEFP_H
17476 #include <ieeefp.h>
17477 #endif
17479 int main() {
17480 _fabsl(0);
17481 ; return 0; }
17483 if { (eval echo configure:17484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17484 rm -rf conftest*
17485 glibcpp_cv_func__fabsl_use=yes
17486 else
17487 echo "configure: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17489 rm -rf conftest*
17490 glibcpp_cv_func__fabsl_use=no
17492 rm -f conftest*
17493 ac_ext=c
17494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17495 ac_cpp='$CPP $CPPFLAGS'
17496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17498 cross_compiling=$ac_cv_prog_cc_cross
17504 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17506 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17507 for ac_func in _fabsl
17509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17510 echo "configure:17511: checking for $ac_func" >&5
17511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17512 echo $ac_n "(cached) $ac_c" 1>&6
17513 else
17514 cat > conftest.$ac_ext <<EOF
17515 #line 17516 "configure"
17516 #include "confdefs.h"
17517 /* System header to define __stub macros and hopefully few prototypes,
17518 which can conflict with char $ac_func(); below. */
17519 #include <assert.h>
17520 /* Override any gcc2 internal prototype to avoid an error. */
17521 /* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17523 char $ac_func();
17525 int main() {
17527 /* The GNU C library defines this for functions which it implements
17528 to always fail with ENOSYS. Some functions are actually named
17529 something starting with __ and the normal name is an alias. */
17530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17531 choke me
17532 #else
17533 $ac_func();
17534 #endif
17536 ; return 0; }
17538 if { (eval echo configure:17539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17539 rm -rf conftest*
17540 eval "ac_cv_func_$ac_func=yes"
17541 else
17542 echo "configure: failed program was:" >&5
17543 cat conftest.$ac_ext >&5
17544 rm -rf conftest*
17545 eval "ac_cv_func_$ac_func=no"
17547 rm -f conftest*
17550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17551 echo "$ac_t""yes" 1>&6
17552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17553 cat >> confdefs.h <<EOF
17554 #define $ac_tr_func 1
17557 else
17558 echo "$ac_t""no" 1>&6
17560 done
17567 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17568 echo "configure:17569: checking for fmodl declaration" >&5
17569 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17570 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17571 echo $ac_n "(cached) $ac_c" 1>&6
17572 else
17575 ac_ext=C
17576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17577 ac_cpp='$CXXCPP $CPPFLAGS'
17578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17580 cross_compiling=$ac_cv_prog_cxx_cross
17582 cat > conftest.$ac_ext <<EOF
17583 #line 17584 "configure"
17584 #include "confdefs.h"
17585 #include <math.h>
17586 int main() {
17587 fmodl(0, 0);
17588 ; return 0; }
17590 if { (eval echo configure:17591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17591 rm -rf conftest*
17592 glibcpp_cv_func_fmodl_use=yes
17593 else
17594 echo "configure: failed program was:" >&5
17595 cat conftest.$ac_ext >&5
17596 rm -rf conftest*
17597 glibcpp_cv_func_fmodl_use=no
17599 rm -f conftest*
17600 ac_ext=c
17601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17605 cross_compiling=$ac_cv_prog_cc_cross
17611 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17613 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17614 for ac_func in fmodl
17616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17617 echo "configure:17618: checking for $ac_func" >&5
17618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17619 echo $ac_n "(cached) $ac_c" 1>&6
17620 else
17621 cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func(); below. */
17626 #include <assert.h>
17627 /* Override any gcc2 internal prototype to avoid an error. */
17628 /* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630 char $ac_func();
17632 int main() {
17634 /* The GNU C library defines this for functions which it implements
17635 to always fail with ENOSYS. Some functions are actually named
17636 something starting with __ and the normal name is an alias. */
17637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17638 choke me
17639 #else
17640 $ac_func();
17641 #endif
17643 ; return 0; }
17645 if { (eval echo configure:17646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17646 rm -rf conftest*
17647 eval "ac_cv_func_$ac_func=yes"
17648 else
17649 echo "configure: failed program was:" >&5
17650 cat conftest.$ac_ext >&5
17651 rm -rf conftest*
17652 eval "ac_cv_func_$ac_func=no"
17654 rm -f conftest*
17657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17658 echo "$ac_t""yes" 1>&6
17659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17660 cat >> confdefs.h <<EOF
17661 #define $ac_tr_func 1
17664 else
17665 echo "$ac_t""no" 1>&6
17667 done
17669 else
17671 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17672 echo "configure:17673: checking for _fmodl declaration" >&5
17673 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17674 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676 else
17679 ac_ext=C
17680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17681 ac_cpp='$CXXCPP $CPPFLAGS'
17682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17684 cross_compiling=$ac_cv_prog_cxx_cross
17686 cat > conftest.$ac_ext <<EOF
17687 #line 17688 "configure"
17688 #include "confdefs.h"
17689 #include <math.h>
17690 int main() {
17691 _fmodl(0, 0);
17692 ; return 0; }
17694 if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17695 rm -rf conftest*
17696 glibcpp_cv_func__fmodl_use=yes
17697 else
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 rm -rf conftest*
17701 glibcpp_cv_func__fmodl_use=no
17703 rm -f conftest*
17704 ac_ext=c
17705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cc_cross
17715 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17717 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17718 for ac_func in _fmodl
17720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17721 echo "configure:17722: checking for $ac_func" >&5
17722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17723 echo $ac_n "(cached) $ac_c" 1>&6
17724 else
17725 cat > conftest.$ac_ext <<EOF
17726 #line 17727 "configure"
17727 #include "confdefs.h"
17728 /* System header to define __stub macros and hopefully few prototypes,
17729 which can conflict with char $ac_func(); below. */
17730 #include <assert.h>
17731 /* Override any gcc2 internal prototype to avoid an error. */
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17734 char $ac_func();
17736 int main() {
17738 /* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17742 choke me
17743 #else
17744 $ac_func();
17745 #endif
17747 ; return 0; }
17749 if { (eval echo configure:17750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17750 rm -rf conftest*
17751 eval "ac_cv_func_$ac_func=yes"
17752 else
17753 echo "configure: failed program was:" >&5
17754 cat conftest.$ac_ext >&5
17755 rm -rf conftest*
17756 eval "ac_cv_func_$ac_func=no"
17758 rm -f conftest*
17761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17762 echo "$ac_t""yes" 1>&6
17763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17764 cat >> confdefs.h <<EOF
17765 #define $ac_tr_func 1
17768 else
17769 echo "$ac_t""no" 1>&6
17771 done
17778 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17779 echo "configure:17780: checking for frexpl declaration" >&5
17780 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17781 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17782 echo $ac_n "(cached) $ac_c" 1>&6
17783 else
17786 ac_ext=C
17787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17791 cross_compiling=$ac_cv_prog_cxx_cross
17793 cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17796 #include <math.h>
17797 int main() {
17798 frexpl(0, 0);
17799 ; return 0; }
17801 if { (eval echo configure:17802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17802 rm -rf conftest*
17803 glibcpp_cv_func_frexpl_use=yes
17804 else
17805 echo "configure: failed program was:" >&5
17806 cat conftest.$ac_ext >&5
17807 rm -rf conftest*
17808 glibcpp_cv_func_frexpl_use=no
17810 rm -f conftest*
17811 ac_ext=c
17812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17813 ac_cpp='$CPP $CPPFLAGS'
17814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17816 cross_compiling=$ac_cv_prog_cc_cross
17822 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17824 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17825 for ac_func in frexpl
17827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17828 echo "configure:17829: checking for $ac_func" >&5
17829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17830 echo $ac_n "(cached) $ac_c" 1>&6
17831 else
17832 cat > conftest.$ac_ext <<EOF
17833 #line 17834 "configure"
17834 #include "confdefs.h"
17835 /* System header to define __stub macros and hopefully few prototypes,
17836 which can conflict with char $ac_func(); below. */
17837 #include <assert.h>
17838 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char $ac_func();
17843 int main() {
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849 choke me
17850 #else
17851 $ac_func();
17852 #endif
17854 ; return 0; }
17856 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17857 rm -rf conftest*
17858 eval "ac_cv_func_$ac_func=yes"
17859 else
17860 echo "configure: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17862 rm -rf conftest*
17863 eval "ac_cv_func_$ac_func=no"
17865 rm -f conftest*
17868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17869 echo "$ac_t""yes" 1>&6
17870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17871 cat >> confdefs.h <<EOF
17872 #define $ac_tr_func 1
17875 else
17876 echo "$ac_t""no" 1>&6
17878 done
17880 else
17882 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17883 echo "configure:17884: checking for _frexpl declaration" >&5
17884 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17885 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17886 echo $ac_n "(cached) $ac_c" 1>&6
17887 else
17890 ac_ext=C
17891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17892 ac_cpp='$CXXCPP $CPPFLAGS'
17893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17895 cross_compiling=$ac_cv_prog_cxx_cross
17897 cat > conftest.$ac_ext <<EOF
17898 #line 17899 "configure"
17899 #include "confdefs.h"
17900 #include <math.h>
17901 int main() {
17902 _frexpl(0, 0);
17903 ; return 0; }
17905 if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17906 rm -rf conftest*
17907 glibcpp_cv_func__frexpl_use=yes
17908 else
17909 echo "configure: failed program was:" >&5
17910 cat conftest.$ac_ext >&5
17911 rm -rf conftest*
17912 glibcpp_cv_func__frexpl_use=no
17914 rm -f conftest*
17915 ac_ext=c
17916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17917 ac_cpp='$CPP $CPPFLAGS'
17918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17920 cross_compiling=$ac_cv_prog_cc_cross
17926 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17928 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17929 for ac_func in _frexpl
17931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17932 echo "configure:17933: checking for $ac_func" >&5
17933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17934 echo $ac_n "(cached) $ac_c" 1>&6
17935 else
17936 cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17939 /* System header to define __stub macros and hopefully few prototypes,
17940 which can conflict with char $ac_func(); below. */
17941 #include <assert.h>
17942 /* Override any gcc2 internal prototype to avoid an error. */
17943 /* We use char because int might match the return type of a gcc2
17944 builtin and then its argument prototype would still apply. */
17945 char $ac_func();
17947 int main() {
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 $ac_func();
17956 #endif
17958 ; return 0; }
17960 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17961 rm -rf conftest*
17962 eval "ac_cv_func_$ac_func=yes"
17963 else
17964 echo "configure: failed program was:" >&5
17965 cat conftest.$ac_ext >&5
17966 rm -rf conftest*
17967 eval "ac_cv_func_$ac_func=no"
17969 rm -f conftest*
17972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17973 echo "$ac_t""yes" 1>&6
17974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17975 cat >> confdefs.h <<EOF
17976 #define $ac_tr_func 1
17979 else
17980 echo "$ac_t""no" 1>&6
17982 done
17989 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17990 echo "configure:17991: checking for hypotl declaration" >&5
17991 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17992 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17993 echo $ac_n "(cached) $ac_c" 1>&6
17994 else
17997 ac_ext=C
17998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17999 ac_cpp='$CXXCPP $CPPFLAGS'
18000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18002 cross_compiling=$ac_cv_prog_cxx_cross
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18007 #include <math.h>
18008 int main() {
18009 hypotl(0, 0);
18010 ; return 0; }
18012 if { (eval echo configure:18013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18013 rm -rf conftest*
18014 glibcpp_cv_func_hypotl_use=yes
18015 else
18016 echo "configure: failed program was:" >&5
18017 cat conftest.$ac_ext >&5
18018 rm -rf conftest*
18019 glibcpp_cv_func_hypotl_use=no
18021 rm -f conftest*
18022 ac_ext=c
18023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18024 ac_cpp='$CPP $CPPFLAGS'
18025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18027 cross_compiling=$ac_cv_prog_cc_cross
18033 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18035 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18036 for ac_func in hypotl
18038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18039 echo "configure:18040: checking for $ac_func" >&5
18040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18041 echo $ac_n "(cached) $ac_c" 1>&6
18042 else
18043 cat > conftest.$ac_ext <<EOF
18044 #line 18045 "configure"
18045 #include "confdefs.h"
18046 /* System header to define __stub macros and hopefully few prototypes,
18047 which can conflict with char $ac_func(); below. */
18048 #include <assert.h>
18049 /* Override any gcc2 internal prototype to avoid an error. */
18050 /* We use char because int might match the return type of a gcc2
18051 builtin and then its argument prototype would still apply. */
18052 char $ac_func();
18054 int main() {
18056 /* The GNU C library defines this for functions which it implements
18057 to always fail with ENOSYS. Some functions are actually named
18058 something starting with __ and the normal name is an alias. */
18059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18060 choke me
18061 #else
18062 $ac_func();
18063 #endif
18065 ; return 0; }
18067 if { (eval echo configure:18068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18068 rm -rf conftest*
18069 eval "ac_cv_func_$ac_func=yes"
18070 else
18071 echo "configure: failed program was:" >&5
18072 cat conftest.$ac_ext >&5
18073 rm -rf conftest*
18074 eval "ac_cv_func_$ac_func=no"
18076 rm -f conftest*
18079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18080 echo "$ac_t""yes" 1>&6
18081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18082 cat >> confdefs.h <<EOF
18083 #define $ac_tr_func 1
18086 else
18087 echo "$ac_t""no" 1>&6
18089 done
18091 else
18093 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18094 echo "configure:18095: checking for _hypotl declaration" >&5
18095 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18096 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18097 echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18101 ac_ext=C
18102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18103 ac_cpp='$CXXCPP $CPPFLAGS'
18104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18106 cross_compiling=$ac_cv_prog_cxx_cross
18108 cat > conftest.$ac_ext <<EOF
18109 #line 18110 "configure"
18110 #include "confdefs.h"
18111 #include <math.h>
18112 int main() {
18113 _hypotl(0, 0);
18114 ; return 0; }
18116 if { (eval echo configure:18117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18117 rm -rf conftest*
18118 glibcpp_cv_func__hypotl_use=yes
18119 else
18120 echo "configure: failed program was:" >&5
18121 cat conftest.$ac_ext >&5
18122 rm -rf conftest*
18123 glibcpp_cv_func__hypotl_use=no
18125 rm -f conftest*
18126 ac_ext=c
18127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18128 ac_cpp='$CPP $CPPFLAGS'
18129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18131 cross_compiling=$ac_cv_prog_cc_cross
18137 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18139 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18140 for ac_func in _hypotl
18142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18143 echo "configure:18144: checking for $ac_func" >&5
18144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18145 echo $ac_n "(cached) $ac_c" 1>&6
18146 else
18147 cat > conftest.$ac_ext <<EOF
18148 #line 18149 "configure"
18149 #include "confdefs.h"
18150 /* System header to define __stub macros and hopefully few prototypes,
18151 which can conflict with char $ac_func(); below. */
18152 #include <assert.h>
18153 /* Override any gcc2 internal prototype to avoid an error. */
18154 /* We use char because int might match the return type of a gcc2
18155 builtin and then its argument prototype would still apply. */
18156 char $ac_func();
18158 int main() {
18160 /* The GNU C library defines this for functions which it implements
18161 to always fail with ENOSYS. Some functions are actually named
18162 something starting with __ and the normal name is an alias. */
18163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18164 choke me
18165 #else
18166 $ac_func();
18167 #endif
18169 ; return 0; }
18171 if { (eval echo configure:18172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18172 rm -rf conftest*
18173 eval "ac_cv_func_$ac_func=yes"
18174 else
18175 echo "configure: failed program was:" >&5
18176 cat conftest.$ac_ext >&5
18177 rm -rf conftest*
18178 eval "ac_cv_func_$ac_func=no"
18180 rm -f conftest*
18183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18184 echo "$ac_t""yes" 1>&6
18185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18186 cat >> confdefs.h <<EOF
18187 #define $ac_tr_func 1
18190 else
18191 echo "$ac_t""no" 1>&6
18193 done
18200 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18201 echo "configure:18202: checking for ldexpl declaration" >&5
18202 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18203 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18204 echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18208 ac_ext=C
18209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18210 ac_cpp='$CXXCPP $CPPFLAGS'
18211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18213 cross_compiling=$ac_cv_prog_cxx_cross
18215 cat > conftest.$ac_ext <<EOF
18216 #line 18217 "configure"
18217 #include "confdefs.h"
18218 #include <math.h>
18219 int main() {
18220 ldexpl(0, 0);
18221 ; return 0; }
18223 if { (eval echo configure:18224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18224 rm -rf conftest*
18225 glibcpp_cv_func_ldexpl_use=yes
18226 else
18227 echo "configure: failed program was:" >&5
18228 cat conftest.$ac_ext >&5
18229 rm -rf conftest*
18230 glibcpp_cv_func_ldexpl_use=no
18232 rm -f conftest*
18233 ac_ext=c
18234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18238 cross_compiling=$ac_cv_prog_cc_cross
18244 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18246 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18247 for ac_func in ldexpl
18249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18250 echo "configure:18251: checking for $ac_func" >&5
18251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18252 echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18254 cat > conftest.$ac_ext <<EOF
18255 #line 18256 "configure"
18256 #include "confdefs.h"
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func(); below. */
18259 #include <assert.h>
18260 /* Override any gcc2 internal prototype to avoid an error. */
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18263 char $ac_func();
18265 int main() {
18267 /* The GNU C library defines this for functions which it implements
18268 to always fail with ENOSYS. Some functions are actually named
18269 something starting with __ and the normal name is an alias. */
18270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18271 choke me
18272 #else
18273 $ac_func();
18274 #endif
18276 ; return 0; }
18278 if { (eval echo configure:18279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18279 rm -rf conftest*
18280 eval "ac_cv_func_$ac_func=yes"
18281 else
18282 echo "configure: failed program was:" >&5
18283 cat conftest.$ac_ext >&5
18284 rm -rf conftest*
18285 eval "ac_cv_func_$ac_func=no"
18287 rm -f conftest*
18290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18291 echo "$ac_t""yes" 1>&6
18292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18293 cat >> confdefs.h <<EOF
18294 #define $ac_tr_func 1
18297 else
18298 echo "$ac_t""no" 1>&6
18300 done
18302 else
18304 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18305 echo "configure:18306: checking for _ldexpl declaration" >&5
18306 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18307 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18308 echo $ac_n "(cached) $ac_c" 1>&6
18309 else
18312 ac_ext=C
18313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18314 ac_cpp='$CXXCPP $CPPFLAGS'
18315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18317 cross_compiling=$ac_cv_prog_cxx_cross
18319 cat > conftest.$ac_ext <<EOF
18320 #line 18321 "configure"
18321 #include "confdefs.h"
18322 #include <math.h>
18323 int main() {
18324 _ldexpl(0, 0);
18325 ; return 0; }
18327 if { (eval echo configure:18328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18328 rm -rf conftest*
18329 glibcpp_cv_func__ldexpl_use=yes
18330 else
18331 echo "configure: failed program was:" >&5
18332 cat conftest.$ac_ext >&5
18333 rm -rf conftest*
18334 glibcpp_cv_func__ldexpl_use=no
18336 rm -f conftest*
18337 ac_ext=c
18338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339 ac_cpp='$CPP $CPPFLAGS'
18340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342 cross_compiling=$ac_cv_prog_cc_cross
18348 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18350 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18351 for ac_func in _ldexpl
18353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18354 echo "configure:18355: checking for $ac_func" >&5
18355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18356 echo $ac_n "(cached) $ac_c" 1>&6
18357 else
18358 cat > conftest.$ac_ext <<EOF
18359 #line 18360 "configure"
18360 #include "confdefs.h"
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func(); below. */
18363 #include <assert.h>
18364 /* Override any gcc2 internal prototype to avoid an error. */
18365 /* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18367 char $ac_func();
18369 int main() {
18371 /* The GNU C library defines this for functions which it implements
18372 to always fail with ENOSYS. Some functions are actually named
18373 something starting with __ and the normal name is an alias. */
18374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18375 choke me
18376 #else
18377 $ac_func();
18378 #endif
18380 ; return 0; }
18382 if { (eval echo configure:18383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18383 rm -rf conftest*
18384 eval "ac_cv_func_$ac_func=yes"
18385 else
18386 echo "configure: failed program was:" >&5
18387 cat conftest.$ac_ext >&5
18388 rm -rf conftest*
18389 eval "ac_cv_func_$ac_func=no"
18391 rm -f conftest*
18394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18395 echo "$ac_t""yes" 1>&6
18396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18397 cat >> confdefs.h <<EOF
18398 #define $ac_tr_func 1
18401 else
18402 echo "$ac_t""no" 1>&6
18404 done
18411 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18412 echo "configure:18413: checking for logl declaration" >&5
18413 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18414 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18415 echo $ac_n "(cached) $ac_c" 1>&6
18416 else
18419 ac_ext=C
18420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18424 cross_compiling=$ac_cv_prog_cxx_cross
18426 cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18429 #include <math.h>
18430 #ifdef HAVE_IEEEFP_H
18431 #include <ieeefp.h>
18432 #endif
18434 int main() {
18435 logl(0);
18436 ; return 0; }
18438 if { (eval echo configure:18439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18439 rm -rf conftest*
18440 glibcpp_cv_func_logl_use=yes
18441 else
18442 echo "configure: failed program was:" >&5
18443 cat conftest.$ac_ext >&5
18444 rm -rf conftest*
18445 glibcpp_cv_func_logl_use=no
18447 rm -f conftest*
18448 ac_ext=c
18449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18450 ac_cpp='$CPP $CPPFLAGS'
18451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18453 cross_compiling=$ac_cv_prog_cc_cross
18459 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18461 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18462 for ac_func in logl
18464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18465 echo "configure:18466: checking for $ac_func" >&5
18466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18467 echo $ac_n "(cached) $ac_c" 1>&6
18468 else
18469 cat > conftest.$ac_ext <<EOF
18470 #line 18471 "configure"
18471 #include "confdefs.h"
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func(); below. */
18474 #include <assert.h>
18475 /* Override any gcc2 internal prototype to avoid an error. */
18476 /* We use char because int might match the return type of a gcc2
18477 builtin and then its argument prototype would still apply. */
18478 char $ac_func();
18480 int main() {
18482 /* The GNU C library defines this for functions which it implements
18483 to always fail with ENOSYS. Some functions are actually named
18484 something starting with __ and the normal name is an alias. */
18485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18486 choke me
18487 #else
18488 $ac_func();
18489 #endif
18491 ; return 0; }
18493 if { (eval echo configure:18494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18494 rm -rf conftest*
18495 eval "ac_cv_func_$ac_func=yes"
18496 else
18497 echo "configure: failed program was:" >&5
18498 cat conftest.$ac_ext >&5
18499 rm -rf conftest*
18500 eval "ac_cv_func_$ac_func=no"
18502 rm -f conftest*
18505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18506 echo "$ac_t""yes" 1>&6
18507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18508 cat >> confdefs.h <<EOF
18509 #define $ac_tr_func 1
18512 else
18513 echo "$ac_t""no" 1>&6
18515 done
18517 else
18519 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18520 echo "configure:18521: checking for _logl declaration" >&5
18521 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18522 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18523 echo $ac_n "(cached) $ac_c" 1>&6
18524 else
18527 ac_ext=C
18528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18529 ac_cpp='$CXXCPP $CPPFLAGS'
18530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18532 cross_compiling=$ac_cv_prog_cxx_cross
18534 cat > conftest.$ac_ext <<EOF
18535 #line 18536 "configure"
18536 #include "confdefs.h"
18537 #include <math.h>
18538 #ifdef HAVE_IEEEFP_H
18539 #include <ieeefp.h>
18540 #endif
18542 int main() {
18543 _logl(0);
18544 ; return 0; }
18546 if { (eval echo configure:18547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18547 rm -rf conftest*
18548 glibcpp_cv_func__logl_use=yes
18549 else
18550 echo "configure: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18552 rm -rf conftest*
18553 glibcpp_cv_func__logl_use=no
18555 rm -f conftest*
18556 ac_ext=c
18557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18558 ac_cpp='$CPP $CPPFLAGS'
18559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18561 cross_compiling=$ac_cv_prog_cc_cross
18567 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18569 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18570 for ac_func in _logl
18572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18573 echo "configure:18574: checking for $ac_func" >&5
18574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18575 echo $ac_n "(cached) $ac_c" 1>&6
18576 else
18577 cat > conftest.$ac_ext <<EOF
18578 #line 18579 "configure"
18579 #include "confdefs.h"
18580 /* System header to define __stub macros and hopefully few prototypes,
18581 which can conflict with char $ac_func(); below. */
18582 #include <assert.h>
18583 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18586 char $ac_func();
18588 int main() {
18590 /* The GNU C library defines this for functions which it implements
18591 to always fail with ENOSYS. Some functions are actually named
18592 something starting with __ and the normal name is an alias. */
18593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18594 choke me
18595 #else
18596 $ac_func();
18597 #endif
18599 ; return 0; }
18601 if { (eval echo configure:18602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18602 rm -rf conftest*
18603 eval "ac_cv_func_$ac_func=yes"
18604 else
18605 echo "configure: failed program was:" >&5
18606 cat conftest.$ac_ext >&5
18607 rm -rf conftest*
18608 eval "ac_cv_func_$ac_func=no"
18610 rm -f conftest*
18613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18614 echo "$ac_t""yes" 1>&6
18615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18616 cat >> confdefs.h <<EOF
18617 #define $ac_tr_func 1
18620 else
18621 echo "$ac_t""no" 1>&6
18623 done
18630 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18631 echo "configure:18632: checking for log10l declaration" >&5
18632 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18633 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
18635 else
18638 ac_ext=C
18639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18640 ac_cpp='$CXXCPP $CPPFLAGS'
18641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18643 cross_compiling=$ac_cv_prog_cxx_cross
18645 cat > conftest.$ac_ext <<EOF
18646 #line 18647 "configure"
18647 #include "confdefs.h"
18648 #include <math.h>
18649 #ifdef HAVE_IEEEFP_H
18650 #include <ieeefp.h>
18651 #endif
18653 int main() {
18654 log10l(0);
18655 ; return 0; }
18657 if { (eval echo configure:18658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18658 rm -rf conftest*
18659 glibcpp_cv_func_log10l_use=yes
18660 else
18661 echo "configure: failed program was:" >&5
18662 cat conftest.$ac_ext >&5
18663 rm -rf conftest*
18664 glibcpp_cv_func_log10l_use=no
18666 rm -f conftest*
18667 ac_ext=c
18668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18669 ac_cpp='$CPP $CPPFLAGS'
18670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18672 cross_compiling=$ac_cv_prog_cc_cross
18678 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18680 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18681 for ac_func in log10l
18683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18684 echo "configure:18685: checking for $ac_func" >&5
18685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18686 echo $ac_n "(cached) $ac_c" 1>&6
18687 else
18688 cat > conftest.$ac_ext <<EOF
18689 #line 18690 "configure"
18690 #include "confdefs.h"
18691 /* System header to define __stub macros and hopefully few prototypes,
18692 which can conflict with char $ac_func(); below. */
18693 #include <assert.h>
18694 /* Override any gcc2 internal prototype to avoid an error. */
18695 /* We use char because int might match the return type of a gcc2
18696 builtin and then its argument prototype would still apply. */
18697 char $ac_func();
18699 int main() {
18701 /* The GNU C library defines this for functions which it implements
18702 to always fail with ENOSYS. Some functions are actually named
18703 something starting with __ and the normal name is an alias. */
18704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18705 choke me
18706 #else
18707 $ac_func();
18708 #endif
18710 ; return 0; }
18712 if { (eval echo configure:18713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18713 rm -rf conftest*
18714 eval "ac_cv_func_$ac_func=yes"
18715 else
18716 echo "configure: failed program was:" >&5
18717 cat conftest.$ac_ext >&5
18718 rm -rf conftest*
18719 eval "ac_cv_func_$ac_func=no"
18721 rm -f conftest*
18724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18725 echo "$ac_t""yes" 1>&6
18726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18727 cat >> confdefs.h <<EOF
18728 #define $ac_tr_func 1
18731 else
18732 echo "$ac_t""no" 1>&6
18734 done
18736 else
18738 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18739 echo "configure:18740: checking for _log10l declaration" >&5
18740 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18741 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18742 echo $ac_n "(cached) $ac_c" 1>&6
18743 else
18746 ac_ext=C
18747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18748 ac_cpp='$CXXCPP $CPPFLAGS'
18749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18751 cross_compiling=$ac_cv_prog_cxx_cross
18753 cat > conftest.$ac_ext <<EOF
18754 #line 18755 "configure"
18755 #include "confdefs.h"
18756 #include <math.h>
18757 #ifdef HAVE_IEEEFP_H
18758 #include <ieeefp.h>
18759 #endif
18761 int main() {
18762 _log10l(0);
18763 ; return 0; }
18765 if { (eval echo configure:18766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18766 rm -rf conftest*
18767 glibcpp_cv_func__log10l_use=yes
18768 else
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 rm -rf conftest*
18772 glibcpp_cv_func__log10l_use=no
18774 rm -f conftest*
18775 ac_ext=c
18776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18780 cross_compiling=$ac_cv_prog_cc_cross
18786 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18788 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18789 for ac_func in _log10l
18791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18792 echo "configure:18793: checking for $ac_func" >&5
18793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18794 echo $ac_n "(cached) $ac_c" 1>&6
18795 else
18796 cat > conftest.$ac_ext <<EOF
18797 #line 18798 "configure"
18798 #include "confdefs.h"
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func(); below. */
18801 #include <assert.h>
18802 /* Override any gcc2 internal prototype to avoid an error. */
18803 /* We use char because int might match the return type of a gcc2
18804 builtin and then its argument prototype would still apply. */
18805 char $ac_func();
18807 int main() {
18809 /* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18813 choke me
18814 #else
18815 $ac_func();
18816 #endif
18818 ; return 0; }
18820 if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18821 rm -rf conftest*
18822 eval "ac_cv_func_$ac_func=yes"
18823 else
18824 echo "configure: failed program was:" >&5
18825 cat conftest.$ac_ext >&5
18826 rm -rf conftest*
18827 eval "ac_cv_func_$ac_func=no"
18829 rm -f conftest*
18832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18833 echo "$ac_t""yes" 1>&6
18834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18835 cat >> confdefs.h <<EOF
18836 #define $ac_tr_func 1
18839 else
18840 echo "$ac_t""no" 1>&6
18842 done
18849 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18850 echo "configure:18851: checking for modfl declaration" >&5
18851 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18852 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18853 echo $ac_n "(cached) $ac_c" 1>&6
18854 else
18857 ac_ext=C
18858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18862 cross_compiling=$ac_cv_prog_cxx_cross
18864 cat > conftest.$ac_ext <<EOF
18865 #line 18866 "configure"
18866 #include "confdefs.h"
18867 #include <math.h>
18868 int main() {
18869 modfl(0, 0);
18870 ; return 0; }
18872 if { (eval echo configure:18873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18873 rm -rf conftest*
18874 glibcpp_cv_func_modfl_use=yes
18875 else
18876 echo "configure: failed program was:" >&5
18877 cat conftest.$ac_ext >&5
18878 rm -rf conftest*
18879 glibcpp_cv_func_modfl_use=no
18881 rm -f conftest*
18882 ac_ext=c
18883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18884 ac_cpp='$CPP $CPPFLAGS'
18885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18887 cross_compiling=$ac_cv_prog_cc_cross
18893 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18895 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18896 for ac_func in modfl
18898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18899 echo "configure:18900: checking for $ac_func" >&5
18900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18902 else
18903 cat > conftest.$ac_ext <<EOF
18904 #line 18905 "configure"
18905 #include "confdefs.h"
18906 /* System header to define __stub macros and hopefully few prototypes,
18907 which can conflict with char $ac_func(); below. */
18908 #include <assert.h>
18909 /* Override any gcc2 internal prototype to avoid an error. */
18910 /* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912 char $ac_func();
18914 int main() {
18916 /* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18920 choke me
18921 #else
18922 $ac_func();
18923 #endif
18925 ; return 0; }
18927 if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18928 rm -rf conftest*
18929 eval "ac_cv_func_$ac_func=yes"
18930 else
18931 echo "configure: failed program was:" >&5
18932 cat conftest.$ac_ext >&5
18933 rm -rf conftest*
18934 eval "ac_cv_func_$ac_func=no"
18936 rm -f conftest*
18939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18940 echo "$ac_t""yes" 1>&6
18941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18942 cat >> confdefs.h <<EOF
18943 #define $ac_tr_func 1
18946 else
18947 echo "$ac_t""no" 1>&6
18949 done
18951 else
18953 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18954 echo "configure:18955: checking for _modfl declaration" >&5
18955 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18956 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18957 echo $ac_n "(cached) $ac_c" 1>&6
18958 else
18961 ac_ext=C
18962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18963 ac_cpp='$CXXCPP $CPPFLAGS'
18964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18966 cross_compiling=$ac_cv_prog_cxx_cross
18968 cat > conftest.$ac_ext <<EOF
18969 #line 18970 "configure"
18970 #include "confdefs.h"
18971 #include <math.h>
18972 int main() {
18973 _modfl(0, 0);
18974 ; return 0; }
18976 if { (eval echo configure:18977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18977 rm -rf conftest*
18978 glibcpp_cv_func__modfl_use=yes
18979 else
18980 echo "configure: failed program was:" >&5
18981 cat conftest.$ac_ext >&5
18982 rm -rf conftest*
18983 glibcpp_cv_func__modfl_use=no
18985 rm -f conftest*
18986 ac_ext=c
18987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18988 ac_cpp='$CPP $CPPFLAGS'
18989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18991 cross_compiling=$ac_cv_prog_cc_cross
18997 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18999 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19000 for ac_func in _modfl
19002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19003 echo "configure:19004: checking for $ac_func" >&5
19004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19005 echo $ac_n "(cached) $ac_c" 1>&6
19006 else
19007 cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func(); below. */
19012 #include <assert.h>
19013 /* Override any gcc2 internal prototype to avoid an error. */
19014 /* We use char because int might match the return type of a gcc2
19015 builtin and then its argument prototype would still apply. */
19016 char $ac_func();
19018 int main() {
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19024 choke me
19025 #else
19026 $ac_func();
19027 #endif
19029 ; return 0; }
19031 if { (eval echo configure:19032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19032 rm -rf conftest*
19033 eval "ac_cv_func_$ac_func=yes"
19034 else
19035 echo "configure: failed program was:" >&5
19036 cat conftest.$ac_ext >&5
19037 rm -rf conftest*
19038 eval "ac_cv_func_$ac_func=no"
19040 rm -f conftest*
19043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19044 echo "$ac_t""yes" 1>&6
19045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19046 cat >> confdefs.h <<EOF
19047 #define $ac_tr_func 1
19050 else
19051 echo "$ac_t""no" 1>&6
19053 done
19060 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19061 echo "configure:19062: checking for powl declaration" >&5
19062 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19063 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19064 echo $ac_n "(cached) $ac_c" 1>&6
19065 else
19068 ac_ext=C
19069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19070 ac_cpp='$CXXCPP $CPPFLAGS'
19071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19073 cross_compiling=$ac_cv_prog_cxx_cross
19075 cat > conftest.$ac_ext <<EOF
19076 #line 19077 "configure"
19077 #include "confdefs.h"
19078 #include <math.h>
19079 int main() {
19080 powl(0, 0);
19081 ; return 0; }
19083 if { (eval echo configure:19084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19084 rm -rf conftest*
19085 glibcpp_cv_func_powl_use=yes
19086 else
19087 echo "configure: failed program was:" >&5
19088 cat conftest.$ac_ext >&5
19089 rm -rf conftest*
19090 glibcpp_cv_func_powl_use=no
19092 rm -f conftest*
19093 ac_ext=c
19094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19098 cross_compiling=$ac_cv_prog_cc_cross
19104 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19106 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19107 for ac_func in powl
19109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19110 echo "configure:19111: checking for $ac_func" >&5
19111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19112 echo $ac_n "(cached) $ac_c" 1>&6
19113 else
19114 cat > conftest.$ac_ext <<EOF
19115 #line 19116 "configure"
19116 #include "confdefs.h"
19117 /* System header to define __stub macros and hopefully few prototypes,
19118 which can conflict with char $ac_func(); below. */
19119 #include <assert.h>
19120 /* Override any gcc2 internal prototype to avoid an error. */
19121 /* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123 char $ac_func();
19125 int main() {
19127 /* The GNU C library defines this for functions which it implements
19128 to always fail with ENOSYS. Some functions are actually named
19129 something starting with __ and the normal name is an alias. */
19130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19131 choke me
19132 #else
19133 $ac_func();
19134 #endif
19136 ; return 0; }
19138 if { (eval echo configure:19139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19139 rm -rf conftest*
19140 eval "ac_cv_func_$ac_func=yes"
19141 else
19142 echo "configure: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 rm -rf conftest*
19145 eval "ac_cv_func_$ac_func=no"
19147 rm -f conftest*
19150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19151 echo "$ac_t""yes" 1>&6
19152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19153 cat >> confdefs.h <<EOF
19154 #define $ac_tr_func 1
19157 else
19158 echo "$ac_t""no" 1>&6
19160 done
19162 else
19164 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19165 echo "configure:19166: checking for _powl declaration" >&5
19166 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19167 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
19169 else
19172 ac_ext=C
19173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19174 ac_cpp='$CXXCPP $CPPFLAGS'
19175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19177 cross_compiling=$ac_cv_prog_cxx_cross
19179 cat > conftest.$ac_ext <<EOF
19180 #line 19181 "configure"
19181 #include "confdefs.h"
19182 #include <math.h>
19183 int main() {
19184 _powl(0, 0);
19185 ; return 0; }
19187 if { (eval echo configure:19188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19188 rm -rf conftest*
19189 glibcpp_cv_func__powl_use=yes
19190 else
19191 echo "configure: failed program was:" >&5
19192 cat conftest.$ac_ext >&5
19193 rm -rf conftest*
19194 glibcpp_cv_func__powl_use=no
19196 rm -f conftest*
19197 ac_ext=c
19198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19202 cross_compiling=$ac_cv_prog_cc_cross
19208 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19210 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19211 for ac_func in _powl
19213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19214 echo "configure:19215: checking for $ac_func" >&5
19215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19216 echo $ac_n "(cached) $ac_c" 1>&6
19217 else
19218 cat > conftest.$ac_ext <<EOF
19219 #line 19220 "configure"
19220 #include "confdefs.h"
19221 /* System header to define __stub macros and hopefully few prototypes,
19222 which can conflict with char $ac_func(); below. */
19223 #include <assert.h>
19224 /* Override any gcc2 internal prototype to avoid an error. */
19225 /* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19227 char $ac_func();
19229 int main() {
19231 /* The GNU C library defines this for functions which it implements
19232 to always fail with ENOSYS. Some functions are actually named
19233 something starting with __ and the normal name is an alias. */
19234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19235 choke me
19236 #else
19237 $ac_func();
19238 #endif
19240 ; return 0; }
19242 if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19243 rm -rf conftest*
19244 eval "ac_cv_func_$ac_func=yes"
19245 else
19246 echo "configure: failed program was:" >&5
19247 cat conftest.$ac_ext >&5
19248 rm -rf conftest*
19249 eval "ac_cv_func_$ac_func=no"
19251 rm -f conftest*
19254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19255 echo "$ac_t""yes" 1>&6
19256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19257 cat >> confdefs.h <<EOF
19258 #define $ac_tr_func 1
19261 else
19262 echo "$ac_t""no" 1>&6
19264 done
19271 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19272 echo "configure:19273: checking for sqrtl declaration" >&5
19273 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19274 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19275 echo $ac_n "(cached) $ac_c" 1>&6
19276 else
19279 ac_ext=C
19280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19284 cross_compiling=$ac_cv_prog_cxx_cross
19286 cat > conftest.$ac_ext <<EOF
19287 #line 19288 "configure"
19288 #include "confdefs.h"
19289 #include <math.h>
19290 #ifdef HAVE_IEEEFP_H
19291 #include <ieeefp.h>
19292 #endif
19294 int main() {
19295 sqrtl(0);
19296 ; return 0; }
19298 if { (eval echo configure:19299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19299 rm -rf conftest*
19300 glibcpp_cv_func_sqrtl_use=yes
19301 else
19302 echo "configure: failed program was:" >&5
19303 cat conftest.$ac_ext >&5
19304 rm -rf conftest*
19305 glibcpp_cv_func_sqrtl_use=no
19307 rm -f conftest*
19308 ac_ext=c
19309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19310 ac_cpp='$CPP $CPPFLAGS'
19311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19313 cross_compiling=$ac_cv_prog_cc_cross
19319 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19321 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19322 for ac_func in sqrtl
19324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19325 echo "configure:19326: checking for $ac_func" >&5
19326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19327 echo $ac_n "(cached) $ac_c" 1>&6
19328 else
19329 cat > conftest.$ac_ext <<EOF
19330 #line 19331 "configure"
19331 #include "confdefs.h"
19332 /* System header to define __stub macros and hopefully few prototypes,
19333 which can conflict with char $ac_func(); below. */
19334 #include <assert.h>
19335 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338 char $ac_func();
19340 int main() {
19342 /* The GNU C library defines this for functions which it implements
19343 to always fail with ENOSYS. Some functions are actually named
19344 something starting with __ and the normal name is an alias. */
19345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19346 choke me
19347 #else
19348 $ac_func();
19349 #endif
19351 ; return 0; }
19353 if { (eval echo configure:19354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19354 rm -rf conftest*
19355 eval "ac_cv_func_$ac_func=yes"
19356 else
19357 echo "configure: failed program was:" >&5
19358 cat conftest.$ac_ext >&5
19359 rm -rf conftest*
19360 eval "ac_cv_func_$ac_func=no"
19362 rm -f conftest*
19365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19366 echo "$ac_t""yes" 1>&6
19367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19368 cat >> confdefs.h <<EOF
19369 #define $ac_tr_func 1
19372 else
19373 echo "$ac_t""no" 1>&6
19375 done
19377 else
19379 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19380 echo "configure:19381: checking for _sqrtl declaration" >&5
19381 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19382 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19383 echo $ac_n "(cached) $ac_c" 1>&6
19384 else
19387 ac_ext=C
19388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19389 ac_cpp='$CXXCPP $CPPFLAGS'
19390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19392 cross_compiling=$ac_cv_prog_cxx_cross
19394 cat > conftest.$ac_ext <<EOF
19395 #line 19396 "configure"
19396 #include "confdefs.h"
19397 #include <math.h>
19398 #ifdef HAVE_IEEEFP_H
19399 #include <ieeefp.h>
19400 #endif
19402 int main() {
19403 _sqrtl(0);
19404 ; return 0; }
19406 if { (eval echo configure:19407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19407 rm -rf conftest*
19408 glibcpp_cv_func__sqrtl_use=yes
19409 else
19410 echo "configure: failed program was:" >&5
19411 cat conftest.$ac_ext >&5
19412 rm -rf conftest*
19413 glibcpp_cv_func__sqrtl_use=no
19415 rm -f conftest*
19416 ac_ext=c
19417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19418 ac_cpp='$CPP $CPPFLAGS'
19419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19421 cross_compiling=$ac_cv_prog_cc_cross
19427 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19429 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19430 for ac_func in _sqrtl
19432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19433 echo "configure:19434: checking for $ac_func" >&5
19434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19435 echo $ac_n "(cached) $ac_c" 1>&6
19436 else
19437 cat > conftest.$ac_ext <<EOF
19438 #line 19439 "configure"
19439 #include "confdefs.h"
19440 /* System header to define __stub macros and hopefully few prototypes,
19441 which can conflict with char $ac_func(); below. */
19442 #include <assert.h>
19443 /* Override any gcc2 internal prototype to avoid an error. */
19444 /* We use char because int might match the return type of a gcc2
19445 builtin and then its argument prototype would still apply. */
19446 char $ac_func();
19448 int main() {
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19454 choke me
19455 #else
19456 $ac_func();
19457 #endif
19459 ; return 0; }
19461 if { (eval echo configure:19462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19462 rm -rf conftest*
19463 eval "ac_cv_func_$ac_func=yes"
19464 else
19465 echo "configure: failed program was:" >&5
19466 cat conftest.$ac_ext >&5
19467 rm -rf conftest*
19468 eval "ac_cv_func_$ac_func=no"
19470 rm -f conftest*
19473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19474 echo "$ac_t""yes" 1>&6
19475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19476 cat >> confdefs.h <<EOF
19477 #define $ac_tr_func 1
19480 else
19481 echo "$ac_t""no" 1>&6
19483 done
19490 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19491 echo "configure:19492: checking for sincosl declaration" >&5
19492 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19493 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19494 echo $ac_n "(cached) $ac_c" 1>&6
19495 else
19498 ac_ext=C
19499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19500 ac_cpp='$CXXCPP $CPPFLAGS'
19501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19503 cross_compiling=$ac_cv_prog_cxx_cross
19505 cat > conftest.$ac_ext <<EOF
19506 #line 19507 "configure"
19507 #include "confdefs.h"
19508 #include <math.h>
19509 int main() {
19510 sincosl(0, 0, 0);
19511 ; return 0; }
19513 if { (eval echo configure:19514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19514 rm -rf conftest*
19515 glibcpp_cv_func_sincosl_use=yes
19516 else
19517 echo "configure: failed program was:" >&5
19518 cat conftest.$ac_ext >&5
19519 rm -rf conftest*
19520 glibcpp_cv_func_sincosl_use=no
19522 rm -f conftest*
19523 ac_ext=c
19524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19525 ac_cpp='$CPP $CPPFLAGS'
19526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19528 cross_compiling=$ac_cv_prog_cc_cross
19534 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19536 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19537 for ac_func in sincosl
19539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19540 echo "configure:19541: checking for $ac_func" >&5
19541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19542 echo $ac_n "(cached) $ac_c" 1>&6
19543 else
19544 cat > conftest.$ac_ext <<EOF
19545 #line 19546 "configure"
19546 #include "confdefs.h"
19547 /* System header to define __stub macros and hopefully few prototypes,
19548 which can conflict with char $ac_func(); below. */
19549 #include <assert.h>
19550 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char $ac_func();
19555 int main() {
19557 /* The GNU C library defines this for functions which it implements
19558 to always fail with ENOSYS. Some functions are actually named
19559 something starting with __ and the normal name is an alias. */
19560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19561 choke me
19562 #else
19563 $ac_func();
19564 #endif
19566 ; return 0; }
19568 if { (eval echo configure:19569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19569 rm -rf conftest*
19570 eval "ac_cv_func_$ac_func=yes"
19571 else
19572 echo "configure: failed program was:" >&5
19573 cat conftest.$ac_ext >&5
19574 rm -rf conftest*
19575 eval "ac_cv_func_$ac_func=no"
19577 rm -f conftest*
19580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19581 echo "$ac_t""yes" 1>&6
19582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19583 cat >> confdefs.h <<EOF
19584 #define $ac_tr_func 1
19587 else
19588 echo "$ac_t""no" 1>&6
19590 done
19592 else
19594 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19595 echo "configure:19596: checking for _sincosl declaration" >&5
19596 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19597 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19598 echo $ac_n "(cached) $ac_c" 1>&6
19599 else
19602 ac_ext=C
19603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19604 ac_cpp='$CXXCPP $CPPFLAGS'
19605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19607 cross_compiling=$ac_cv_prog_cxx_cross
19609 cat > conftest.$ac_ext <<EOF
19610 #line 19611 "configure"
19611 #include "confdefs.h"
19612 #include <math.h>
19613 int main() {
19614 _sincosl(0, 0, 0);
19615 ; return 0; }
19617 if { (eval echo configure:19618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19618 rm -rf conftest*
19619 glibcpp_cv_func__sincosl_use=yes
19620 else
19621 echo "configure: failed program was:" >&5
19622 cat conftest.$ac_ext >&5
19623 rm -rf conftest*
19624 glibcpp_cv_func__sincosl_use=no
19626 rm -f conftest*
19627 ac_ext=c
19628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19632 cross_compiling=$ac_cv_prog_cc_cross
19638 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19640 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19641 for ac_func in _sincosl
19643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19644 echo "configure:19645: checking for $ac_func" >&5
19645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19646 echo $ac_n "(cached) $ac_c" 1>&6
19647 else
19648 cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19651 /* System header to define __stub macros and hopefully few prototypes,
19652 which can conflict with char $ac_func(); below. */
19653 #include <assert.h>
19654 /* Override any gcc2 internal prototype to avoid an error. */
19655 /* We use char because int might match the return type of a gcc2
19656 builtin and then its argument prototype would still apply. */
19657 char $ac_func();
19659 int main() {
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19665 choke me
19666 #else
19667 $ac_func();
19668 #endif
19670 ; return 0; }
19672 if { (eval echo configure:19673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19673 rm -rf conftest*
19674 eval "ac_cv_func_$ac_func=yes"
19675 else
19676 echo "configure: failed program was:" >&5
19677 cat conftest.$ac_ext >&5
19678 rm -rf conftest*
19679 eval "ac_cv_func_$ac_func=no"
19681 rm -f conftest*
19684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19685 echo "$ac_t""yes" 1>&6
19686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19687 cat >> confdefs.h <<EOF
19688 #define $ac_tr_func 1
19691 else
19692 echo "$ac_t""no" 1>&6
19694 done
19701 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19702 echo "configure:19703: checking for finitel declaration" >&5
19703 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19704 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19705 echo $ac_n "(cached) $ac_c" 1>&6
19706 else
19709 ac_ext=C
19710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19714 cross_compiling=$ac_cv_prog_cxx_cross
19716 cat > conftest.$ac_ext <<EOF
19717 #line 19718 "configure"
19718 #include "confdefs.h"
19719 #include <math.h>
19720 #ifdef HAVE_IEEEFP_H
19721 #include <ieeefp.h>
19722 #endif
19724 int main() {
19725 finitel(0);
19726 ; return 0; }
19728 if { (eval echo configure:19729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19729 rm -rf conftest*
19730 glibcpp_cv_func_finitel_use=yes
19731 else
19732 echo "configure: failed program was:" >&5
19733 cat conftest.$ac_ext >&5
19734 rm -rf conftest*
19735 glibcpp_cv_func_finitel_use=no
19737 rm -f conftest*
19738 ac_ext=c
19739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19740 ac_cpp='$CPP $CPPFLAGS'
19741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19743 cross_compiling=$ac_cv_prog_cc_cross
19749 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19751 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19752 for ac_func in finitel
19754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19755 echo "configure:19756: checking for $ac_func" >&5
19756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19757 echo $ac_n "(cached) $ac_c" 1>&6
19758 else
19759 cat > conftest.$ac_ext <<EOF
19760 #line 19761 "configure"
19761 #include "confdefs.h"
19762 /* System header to define __stub macros and hopefully few prototypes,
19763 which can conflict with char $ac_func(); below. */
19764 #include <assert.h>
19765 /* Override any gcc2 internal prototype to avoid an error. */
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19768 char $ac_func();
19770 int main() {
19772 /* The GNU C library defines this for functions which it implements
19773 to always fail with ENOSYS. Some functions are actually named
19774 something starting with __ and the normal name is an alias. */
19775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19776 choke me
19777 #else
19778 $ac_func();
19779 #endif
19781 ; return 0; }
19783 if { (eval echo configure:19784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19784 rm -rf conftest*
19785 eval "ac_cv_func_$ac_func=yes"
19786 else
19787 echo "configure: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19789 rm -rf conftest*
19790 eval "ac_cv_func_$ac_func=no"
19792 rm -f conftest*
19795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19796 echo "$ac_t""yes" 1>&6
19797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19798 cat >> confdefs.h <<EOF
19799 #define $ac_tr_func 1
19802 else
19803 echo "$ac_t""no" 1>&6
19805 done
19807 else
19809 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19810 echo "configure:19811: checking for _finitel declaration" >&5
19811 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19812 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19813 echo $ac_n "(cached) $ac_c" 1>&6
19814 else
19817 ac_ext=C
19818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19819 ac_cpp='$CXXCPP $CPPFLAGS'
19820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19822 cross_compiling=$ac_cv_prog_cxx_cross
19824 cat > conftest.$ac_ext <<EOF
19825 #line 19826 "configure"
19826 #include "confdefs.h"
19827 #include <math.h>
19828 #ifdef HAVE_IEEEFP_H
19829 #include <ieeefp.h>
19830 #endif
19832 int main() {
19833 _finitel(0);
19834 ; return 0; }
19836 if { (eval echo configure:19837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19837 rm -rf conftest*
19838 glibcpp_cv_func__finitel_use=yes
19839 else
19840 echo "configure: failed program was:" >&5
19841 cat conftest.$ac_ext >&5
19842 rm -rf conftest*
19843 glibcpp_cv_func__finitel_use=no
19845 rm -f conftest*
19846 ac_ext=c
19847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19848 ac_cpp='$CPP $CPPFLAGS'
19849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19851 cross_compiling=$ac_cv_prog_cc_cross
19857 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19859 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19860 for ac_func in _finitel
19862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19863 echo "configure:19864: checking for $ac_func" >&5
19864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19865 echo $ac_n "(cached) $ac_c" 1>&6
19866 else
19867 cat > conftest.$ac_ext <<EOF
19868 #line 19869 "configure"
19869 #include "confdefs.h"
19870 /* System header to define __stub macros and hopefully few prototypes,
19871 which can conflict with char $ac_func(); below. */
19872 #include <assert.h>
19873 /* Override any gcc2 internal prototype to avoid an error. */
19874 /* We use char because int might match the return type of a gcc2
19875 builtin and then its argument prototype would still apply. */
19876 char $ac_func();
19878 int main() {
19880 /* The GNU C library defines this for functions which it implements
19881 to always fail with ENOSYS. Some functions are actually named
19882 something starting with __ and the normal name is an alias. */
19883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19884 choke me
19885 #else
19886 $ac_func();
19887 #endif
19889 ; return 0; }
19891 if { (eval echo configure:19892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19892 rm -rf conftest*
19893 eval "ac_cv_func_$ac_func=yes"
19894 else
19895 echo "configure: failed program was:" >&5
19896 cat conftest.$ac_ext >&5
19897 rm -rf conftest*
19898 eval "ac_cv_func_$ac_func=no"
19900 rm -f conftest*
19903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19904 echo "$ac_t""yes" 1>&6
19905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19906 cat >> confdefs.h <<EOF
19907 #define $ac_tr_func 1
19910 else
19911 echo "$ac_t""no" 1>&6
19913 done
19921 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19922 echo "configure:19923: checking for _float trig functions" >&5
19923 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19924 echo $ac_n "(cached) $ac_c" 1>&6
19925 else
19928 ac_ext=C
19929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19930 ac_cpp='$CXXCPP $CPPFLAGS'
19931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19933 cross_compiling=$ac_cv_prog_cxx_cross
19935 cat > conftest.$ac_ext <<EOF
19936 #line 19937 "configure"
19937 #include "confdefs.h"
19938 #include <math.h>
19939 int main() {
19940 `for x in _acosf _asinf _atanf \
19941 _cosf _sinf _tanf \
19942 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19943 ; return 0; }
19945 if { (eval echo configure:19946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19946 rm -rf conftest*
19947 glibcpp_cv_func__float_trig_use=yes
19948 else
19949 echo "configure: failed program was:" >&5
19950 cat conftest.$ac_ext >&5
19951 rm -rf conftest*
19952 glibcpp_cv_func__float_trig_use=no
19954 rm -f conftest*
19955 ac_ext=c
19956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19957 ac_cpp='$CPP $CPPFLAGS'
19958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19960 cross_compiling=$ac_cv_prog_cc_cross
19964 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19965 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19966 for ac_func in _acosf _asinf _atanf \
19967 _cosf _sinf _tanf \
19968 _coshf _sinhf _tanhf
19970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19971 echo "configure:19972: checking for $ac_func" >&5
19972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19973 echo $ac_n "(cached) $ac_c" 1>&6
19974 else
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19978 /* System header to define __stub macros and hopefully few prototypes,
19979 which can conflict with char $ac_func(); below. */
19980 #include <assert.h>
19981 /* Override any gcc2 internal prototype to avoid an error. */
19982 /* We use char because int might match the return type of a gcc2
19983 builtin and then its argument prototype would still apply. */
19984 char $ac_func();
19986 int main() {
19988 /* The GNU C library defines this for functions which it implements
19989 to always fail with ENOSYS. Some functions are actually named
19990 something starting with __ and the normal name is an alias. */
19991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19992 choke me
19993 #else
19994 $ac_func();
19995 #endif
19997 ; return 0; }
19999 if { (eval echo configure:20000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20000 rm -rf conftest*
20001 eval "ac_cv_func_$ac_func=yes"
20002 else
20003 echo "configure: failed program was:" >&5
20004 cat conftest.$ac_ext >&5
20005 rm -rf conftest*
20006 eval "ac_cv_func_$ac_func=no"
20008 rm -f conftest*
20011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20012 echo "$ac_t""yes" 1>&6
20013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20014 cat >> confdefs.h <<EOF
20015 #define $ac_tr_func 1
20018 else
20019 echo "$ac_t""no" 1>&6
20021 done
20026 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20027 echo "configure:20028: checking for _float round functions" >&5
20028 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20029 echo $ac_n "(cached) $ac_c" 1>&6
20030 else
20033 ac_ext=C
20034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20038 cross_compiling=$ac_cv_prog_cxx_cross
20040 cat > conftest.$ac_ext <<EOF
20041 #line 20042 "configure"
20042 #include "confdefs.h"
20043 #include <math.h>
20044 int main() {
20045 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20046 ; return 0; }
20048 if { (eval echo configure:20049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20049 rm -rf conftest*
20050 glibcpp_cv_func__float_round_use=yes
20051 else
20052 echo "configure: failed program was:" >&5
20053 cat conftest.$ac_ext >&5
20054 rm -rf conftest*
20055 glibcpp_cv_func__float_round_use=no
20057 rm -f conftest*
20058 ac_ext=c
20059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20060 ac_cpp='$CPP $CPPFLAGS'
20061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20063 cross_compiling=$ac_cv_prog_cc_cross
20067 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20068 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20069 for ac_func in _ceilf _floorf
20071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20072 echo "configure:20073: checking for $ac_func" >&5
20073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20074 echo $ac_n "(cached) $ac_c" 1>&6
20075 else
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 /* System header to define __stub macros and hopefully few prototypes,
20080 which can conflict with char $ac_func(); below. */
20081 #include <assert.h>
20082 /* Override any gcc2 internal prototype to avoid an error. */
20083 /* We use char because int might match the return type of a gcc2
20084 builtin and then its argument prototype would still apply. */
20085 char $ac_func();
20087 int main() {
20089 /* The GNU C library defines this for functions which it implements
20090 to always fail with ENOSYS. Some functions are actually named
20091 something starting with __ and the normal name is an alias. */
20092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20093 choke me
20094 #else
20095 $ac_func();
20096 #endif
20098 ; return 0; }
20100 if { (eval echo configure:20101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20101 rm -rf conftest*
20102 eval "ac_cv_func_$ac_func=yes"
20103 else
20104 echo "configure: failed program was:" >&5
20105 cat conftest.$ac_ext >&5
20106 rm -rf conftest*
20107 eval "ac_cv_func_$ac_func=no"
20109 rm -f conftest*
20112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20113 echo "$ac_t""yes" 1>&6
20114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20115 cat >> confdefs.h <<EOF
20116 #define $ac_tr_func 1
20119 else
20120 echo "$ac_t""no" 1>&6
20122 done
20128 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20129 echo "configure:20130: checking for _long double trig functions" >&5
20130 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20131 echo $ac_n "(cached) $ac_c" 1>&6
20132 else
20135 ac_ext=C
20136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20137 ac_cpp='$CXXCPP $CPPFLAGS'
20138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20140 cross_compiling=$ac_cv_prog_cxx_cross
20142 cat > conftest.$ac_ext <<EOF
20143 #line 20144 "configure"
20144 #include "confdefs.h"
20145 #include <math.h>
20146 int main() {
20147 `for x in _acosl _asinl _atanl \
20148 _cosl _sinl _tanl \
20149 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20150 ; return 0; }
20152 if { (eval echo configure:20153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20153 rm -rf conftest*
20154 glibcpp_cv_func__long_double_trig_use=yes
20155 else
20156 echo "configure: failed program was:" >&5
20157 cat conftest.$ac_ext >&5
20158 rm -rf conftest*
20159 glibcpp_cv_func__long_double_trig_use=no
20161 rm -f conftest*
20162 ac_ext=c
20163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20164 ac_cpp='$CPP $CPPFLAGS'
20165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20167 cross_compiling=$ac_cv_prog_cc_cross
20171 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20172 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20173 for ac_func in _acosl _asinl _atanl \
20174 _cosl _sinl _tanl \
20175 _coshl _sinhl _tanhl
20177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20178 echo "configure:20179: checking for $ac_func" >&5
20179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20180 echo $ac_n "(cached) $ac_c" 1>&6
20181 else
20182 cat > conftest.$ac_ext <<EOF
20183 #line 20184 "configure"
20184 #include "confdefs.h"
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char $ac_func(); below. */
20187 #include <assert.h>
20188 /* Override any gcc2 internal prototype to avoid an error. */
20189 /* We use char because int might match the return type of a gcc2
20190 builtin and then its argument prototype would still apply. */
20191 char $ac_func();
20193 int main() {
20195 /* The GNU C library defines this for functions which it implements
20196 to always fail with ENOSYS. Some functions are actually named
20197 something starting with __ and the normal name is an alias. */
20198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20199 choke me
20200 #else
20201 $ac_func();
20202 #endif
20204 ; return 0; }
20206 if { (eval echo configure:20207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20207 rm -rf conftest*
20208 eval "ac_cv_func_$ac_func=yes"
20209 else
20210 echo "configure: failed program was:" >&5
20211 cat conftest.$ac_ext >&5
20212 rm -rf conftest*
20213 eval "ac_cv_func_$ac_func=no"
20215 rm -f conftest*
20218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20219 echo "$ac_t""yes" 1>&6
20220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20221 cat >> confdefs.h <<EOF
20222 #define $ac_tr_func 1
20225 else
20226 echo "$ac_t""no" 1>&6
20228 done
20233 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20234 echo "configure:20235: checking for _long double round functions" >&5
20235 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20236 echo $ac_n "(cached) $ac_c" 1>&6
20237 else
20240 ac_ext=C
20241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20242 ac_cpp='$CXXCPP $CPPFLAGS'
20243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20245 cross_compiling=$ac_cv_prog_cxx_cross
20247 cat > conftest.$ac_ext <<EOF
20248 #line 20249 "configure"
20249 #include "confdefs.h"
20250 #include <math.h>
20251 int main() {
20252 `for x in _ceill _floorl; do echo "$x (0);"; done`
20253 ; return 0; }
20255 if { (eval echo configure:20256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20256 rm -rf conftest*
20257 glibcpp_cv_func__long_double_round_use=yes
20258 else
20259 echo "configure: failed program was:" >&5
20260 cat conftest.$ac_ext >&5
20261 rm -rf conftest*
20262 glibcpp_cv_func__long_double_round_use=no
20264 rm -f conftest*
20265 ac_ext=c
20266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20267 ac_cpp='$CPP $CPPFLAGS'
20268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20270 cross_compiling=$ac_cv_prog_cc_cross
20274 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20275 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20276 for ac_func in _ceill _floorl
20278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20279 echo "configure:20280: checking for $ac_func" >&5
20280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20281 echo $ac_n "(cached) $ac_c" 1>&6
20282 else
20283 cat > conftest.$ac_ext <<EOF
20284 #line 20285 "configure"
20285 #include "confdefs.h"
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func(); below. */
20288 #include <assert.h>
20289 /* Override any gcc2 internal prototype to avoid an error. */
20290 /* We use char because int might match the return type of a gcc2
20291 builtin and then its argument prototype would still apply. */
20292 char $ac_func();
20294 int main() {
20296 /* The GNU C library defines this for functions which it implements
20297 to always fail with ENOSYS. Some functions are actually named
20298 something starting with __ and the normal name is an alias. */
20299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20300 choke me
20301 #else
20302 $ac_func();
20303 #endif
20305 ; return 0; }
20307 if { (eval echo configure:20308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20308 rm -rf conftest*
20309 eval "ac_cv_func_$ac_func=yes"
20310 else
20311 echo "configure: failed program was:" >&5
20312 cat conftest.$ac_ext >&5
20313 rm -rf conftest*
20314 eval "ac_cv_func_$ac_func=no"
20316 rm -f conftest*
20319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20320 echo "$ac_t""yes" 1>&6
20321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20322 cat >> confdefs.h <<EOF
20323 #define $ac_tr_func 1
20326 else
20327 echo "$ac_t""no" 1>&6
20329 done
20334 LIBS="$ac_save_LIBS"
20335 CXXFLAGS="$ac_save_CXXFLAGS"
20338 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20339 echo "configure:20340: checking for main in -lm" >&5
20340 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20342 echo $ac_n "(cached) $ac_c" 1>&6
20343 else
20344 ac_save_LIBS="$LIBS"
20345 LIBS="-lm $LIBS"
20346 cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20350 int main() {
20351 main()
20352 ; return 0; }
20354 if { (eval echo configure:20355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20355 rm -rf conftest*
20356 eval "ac_cv_lib_$ac_lib_var=yes"
20357 else
20358 echo "configure: failed program was:" >&5
20359 cat conftest.$ac_ext >&5
20360 rm -rf conftest*
20361 eval "ac_cv_lib_$ac_lib_var=no"
20363 rm -f conftest*
20364 LIBS="$ac_save_LIBS"
20367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20368 echo "$ac_t""yes" 1>&6
20369 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20371 cat >> confdefs.h <<EOF
20372 #define $ac_tr_lib 1
20375 LIBS="-lm $LIBS"
20377 else
20378 echo "$ac_t""no" 1>&6
20381 for ac_func in nan copysignf
20383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20384 echo "configure:20385: checking for $ac_func" >&5
20385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20386 echo $ac_n "(cached) $ac_c" 1>&6
20387 else
20388 cat > conftest.$ac_ext <<EOF
20389 #line 20390 "configure"
20390 #include "confdefs.h"
20391 /* System header to define __stub macros and hopefully few prototypes,
20392 which can conflict with char $ac_func(); below. */
20393 #include <assert.h>
20394 /* Override any gcc2 internal prototype to avoid an error. */
20395 /* We use char because int might match the return type of a gcc2
20396 builtin and then its argument prototype would still apply. */
20397 char $ac_func();
20399 int main() {
20401 /* The GNU C library defines this for functions which it implements
20402 to always fail with ENOSYS. Some functions are actually named
20403 something starting with __ and the normal name is an alias. */
20404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20405 choke me
20406 #else
20407 $ac_func();
20408 #endif
20410 ; return 0; }
20412 if { (eval echo configure:20413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20413 rm -rf conftest*
20414 eval "ac_cv_func_$ac_func=yes"
20415 else
20416 echo "configure: failed program was:" >&5
20417 cat conftest.$ac_ext >&5
20418 rm -rf conftest*
20419 eval "ac_cv_func_$ac_func=no"
20421 rm -f conftest*
20424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20425 echo "$ac_t""yes" 1>&6
20426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20427 cat >> confdefs.h <<EOF
20428 #define $ac_tr_func 1
20431 else
20432 echo "$ac_t""no" 1>&6
20433 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20435 done
20438 for ac_func in __signbit
20440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20441 echo "configure:20442: checking for $ac_func" >&5
20442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20443 echo $ac_n "(cached) $ac_c" 1>&6
20444 else
20445 cat > conftest.$ac_ext <<EOF
20446 #line 20447 "configure"
20447 #include "confdefs.h"
20448 /* System header to define __stub macros and hopefully few prototypes,
20449 which can conflict with char $ac_func(); below. */
20450 #include <assert.h>
20451 /* Override any gcc2 internal prototype to avoid an error. */
20452 /* We use char because int might match the return type of a gcc2
20453 builtin and then its argument prototype would still apply. */
20454 char $ac_func();
20456 int main() {
20458 /* The GNU C library defines this for functions which it implements
20459 to always fail with ENOSYS. Some functions are actually named
20460 something starting with __ and the normal name is an alias. */
20461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20462 choke me
20463 #else
20464 $ac_func();
20465 #endif
20467 ; return 0; }
20469 if { (eval echo configure:20470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20470 rm -rf conftest*
20471 eval "ac_cv_func_$ac_func=yes"
20472 else
20473 echo "configure: failed program was:" >&5
20474 cat conftest.$ac_ext >&5
20475 rm -rf conftest*
20476 eval "ac_cv_func_$ac_func=no"
20478 rm -f conftest*
20481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20482 echo "$ac_t""yes" 1>&6
20483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20484 cat >> confdefs.h <<EOF
20485 #define $ac_tr_func 1
20488 else
20489 echo "$ac_t""no" 1>&6
20490 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20492 done
20494 for ac_func in __signbitf
20496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20497 echo "configure:20498: checking for $ac_func" >&5
20498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20499 echo $ac_n "(cached) $ac_c" 1>&6
20500 else
20501 cat > conftest.$ac_ext <<EOF
20502 #line 20503 "configure"
20503 #include "confdefs.h"
20504 /* System header to define __stub macros and hopefully few prototypes,
20505 which can conflict with char $ac_func(); below. */
20506 #include <assert.h>
20507 /* Override any gcc2 internal prototype to avoid an error. */
20508 /* We use char because int might match the return type of a gcc2
20509 builtin and then its argument prototype would still apply. */
20510 char $ac_func();
20512 int main() {
20514 /* The GNU C library defines this for functions which it implements
20515 to always fail with ENOSYS. Some functions are actually named
20516 something starting with __ and the normal name is an alias. */
20517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20518 choke me
20519 #else
20520 $ac_func();
20521 #endif
20523 ; return 0; }
20525 if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526 rm -rf conftest*
20527 eval "ac_cv_func_$ac_func=yes"
20528 else
20529 echo "configure: failed program was:" >&5
20530 cat conftest.$ac_ext >&5
20531 rm -rf conftest*
20532 eval "ac_cv_func_$ac_func=no"
20534 rm -f conftest*
20537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20538 echo "$ac_t""yes" 1>&6
20539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20540 cat >> confdefs.h <<EOF
20541 #define $ac_tr_func 1
20544 else
20545 echo "$ac_t""no" 1>&6
20546 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20548 done
20551 if test x$ac_cv_func_copysignl = x"yes"; then
20552 for ac_func in __signbitl
20554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20555 echo "configure:20556: checking for $ac_func" >&5
20556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20557 echo $ac_n "(cached) $ac_c" 1>&6
20558 else
20559 cat > conftest.$ac_ext <<EOF
20560 #line 20561 "configure"
20561 #include "confdefs.h"
20562 /* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func(); below. */
20564 #include <assert.h>
20565 /* Override any gcc2 internal prototype to avoid an error. */
20566 /* We use char because int might match the return type of a gcc2
20567 builtin and then its argument prototype would still apply. */
20568 char $ac_func();
20570 int main() {
20572 /* The GNU C library defines this for functions which it implements
20573 to always fail with ENOSYS. Some functions are actually named
20574 something starting with __ and the normal name is an alias. */
20575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20576 choke me
20577 #else
20578 $ac_func();
20579 #endif
20581 ; return 0; }
20583 if { (eval echo configure:20584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20584 rm -rf conftest*
20585 eval "ac_cv_func_$ac_func=yes"
20586 else
20587 echo "configure: failed program was:" >&5
20588 cat conftest.$ac_ext >&5
20589 rm -rf conftest*
20590 eval "ac_cv_func_$ac_func=no"
20592 rm -f conftest*
20595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20596 echo "$ac_t""yes" 1>&6
20597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20598 cat >> confdefs.h <<EOF
20599 #define $ac_tr_func 1
20602 else
20603 echo "$ac_t""no" 1>&6
20604 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20606 done
20614 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20615 echo "configure:20616: checking for mbstate_t" >&5
20616 cat > conftest.$ac_ext <<EOF
20617 #line 20618 "configure"
20618 #include "confdefs.h"
20619 #include <wchar.h>
20620 int main() {
20621 mbstate_t teststate;
20622 ; return 0; }
20624 if { (eval echo configure:20625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20625 rm -rf conftest*
20626 have_mbstate_t=yes
20627 else
20628 echo "configure: failed program was:" >&5
20629 cat conftest.$ac_ext >&5
20630 rm -rf conftest*
20631 have_mbstate_t=no
20633 rm -f conftest*
20634 echo "$ac_t""$have_mbstate_t" 1>&6
20635 if test x"$have_mbstate_t" = xyes; then
20636 cat >> confdefs.h <<\EOF
20637 #define HAVE_MBSTATE_T 1
20642 for ac_hdr in wchar.h
20644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20646 echo "configure:20647: checking for $ac_hdr" >&5
20647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20648 echo $ac_n "(cached) $ac_c" 1>&6
20649 else
20650 cat > conftest.$ac_ext <<EOF
20651 #line 20652 "configure"
20652 #include "confdefs.h"
20653 #include <$ac_hdr>
20655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20656 { (eval echo configure:20657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20658 if test -z "$ac_err"; then
20659 rm -rf conftest*
20660 eval "ac_cv_header_$ac_safe=yes"
20661 else
20662 echo "$ac_err" >&5
20663 echo "configure: failed program was:" >&5
20664 cat conftest.$ac_ext >&5
20665 rm -rf conftest*
20666 eval "ac_cv_header_$ac_safe=no"
20668 rm -f conftest*
20670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20671 echo "$ac_t""yes" 1>&6
20672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20673 cat >> confdefs.h <<EOF
20674 #define $ac_tr_hdr 1
20676 ac_has_wchar_h=yes
20677 else
20678 echo "$ac_t""no" 1>&6
20679 ac_has_wchar_h=no
20681 done
20683 for ac_hdr in wctype.h
20685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20687 echo "configure:20688: checking for $ac_hdr" >&5
20688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20689 echo $ac_n "(cached) $ac_c" 1>&6
20690 else
20691 cat > conftest.$ac_ext <<EOF
20692 #line 20693 "configure"
20693 #include "confdefs.h"
20694 #include <$ac_hdr>
20696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20697 { (eval echo configure:20698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20699 if test -z "$ac_err"; then
20700 rm -rf conftest*
20701 eval "ac_cv_header_$ac_safe=yes"
20702 else
20703 echo "$ac_err" >&5
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 eval "ac_cv_header_$ac_safe=no"
20709 rm -f conftest*
20711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20712 echo "$ac_t""yes" 1>&6
20713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20714 cat >> confdefs.h <<EOF
20715 #define $ac_tr_hdr 1
20717 ac_has_wctype_h=yes
20718 else
20719 echo "$ac_t""no" 1>&6
20720 ac_has_wctype_h=no
20722 done
20725 if test x"$ac_has_wchar_h" = xyes &&
20726 test x"$ac_has_wctype_h" = xyes &&
20727 test x"$enable_c_mbchar" != xno; then
20729 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20730 echo "configure:20731: checking for WCHAR_MIN and WCHAR_MAX" >&5
20731 cat > conftest.$ac_ext <<EOF
20732 #line 20733 "configure"
20733 #include "confdefs.h"
20734 #include <wchar.h>
20735 int main() {
20736 int i = WCHAR_MIN; int j = WCHAR_MAX;
20737 ; return 0; }
20739 if { (eval echo configure:20740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20740 rm -rf conftest*
20741 has_wchar_minmax=yes
20742 else
20743 echo "configure: failed program was:" >&5
20744 cat conftest.$ac_ext >&5
20745 rm -rf conftest*
20746 has_wchar_minmax=no
20748 rm -f conftest*
20749 echo "$ac_t""$has_wchar_minmax" 1>&6
20751 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20752 echo "configure:20753: checking for WEOF" >&5
20753 cat > conftest.$ac_ext <<EOF
20754 #line 20755 "configure"
20755 #include "confdefs.h"
20757 #include <wchar.h>
20758 #include <stddef.h>
20759 int main() {
20760 wint_t i = WEOF;
20761 ; return 0; }
20763 if { (eval echo configure:20764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20764 rm -rf conftest*
20765 has_weof=yes
20766 else
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 rm -rf conftest*
20770 has_weof=no
20772 rm -f conftest*
20773 echo "$ac_t""$has_weof" 1>&6
20775 ac_wfuncs=yes
20776 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20779 echo "configure:20780: checking for $ac_func" >&5
20780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20781 echo $ac_n "(cached) $ac_c" 1>&6
20782 else
20783 cat > conftest.$ac_ext <<EOF
20784 #line 20785 "configure"
20785 #include "confdefs.h"
20786 /* System header to define __stub macros and hopefully few prototypes,
20787 which can conflict with char $ac_func(); below. */
20788 #include <assert.h>
20789 /* Override any gcc2 internal prototype to avoid an error. */
20790 /* We use char because int might match the return type of a gcc2
20791 builtin and then its argument prototype would still apply. */
20792 char $ac_func();
20794 int main() {
20796 /* The GNU C library defines this for functions which it implements
20797 to always fail with ENOSYS. Some functions are actually named
20798 something starting with __ and the normal name is an alias. */
20799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20800 choke me
20801 #else
20802 $ac_func();
20803 #endif
20805 ; return 0; }
20807 if { (eval echo configure:20808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20808 rm -rf conftest*
20809 eval "ac_cv_func_$ac_func=yes"
20810 else
20811 echo "configure: failed program was:" >&5
20812 cat conftest.$ac_ext >&5
20813 rm -rf conftest*
20814 eval "ac_cv_func_$ac_func=no"
20816 rm -f conftest*
20819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20820 echo "$ac_t""yes" 1>&6
20821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20822 cat >> confdefs.h <<EOF
20823 #define $ac_tr_func 1
20826 else
20827 echo "$ac_t""no" 1>&6
20829 ac_wfuncs=no
20831 done
20834 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20835 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20836 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20837 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20838 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20839 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20842 echo "configure:20843: checking for $ac_func" >&5
20843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20844 echo $ac_n "(cached) $ac_c" 1>&6
20845 else
20846 cat > conftest.$ac_ext <<EOF
20847 #line 20848 "configure"
20848 #include "confdefs.h"
20849 /* System header to define __stub macros and hopefully few prototypes,
20850 which can conflict with char $ac_func(); below. */
20851 #include <assert.h>
20852 /* Override any gcc2 internal prototype to avoid an error. */
20853 /* We use char because int might match the return type of a gcc2
20854 builtin and then its argument prototype would still apply. */
20855 char $ac_func();
20857 int main() {
20859 /* The GNU C library defines this for functions which it implements
20860 to always fail with ENOSYS. Some functions are actually named
20861 something starting with __ and the normal name is an alias. */
20862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20863 choke me
20864 #else
20865 $ac_func();
20866 #endif
20868 ; return 0; }
20870 if { (eval echo configure:20871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20871 rm -rf conftest*
20872 eval "ac_cv_func_$ac_func=yes"
20873 else
20874 echo "configure: failed program was:" >&5
20875 cat conftest.$ac_ext >&5
20876 rm -rf conftest*
20877 eval "ac_cv_func_$ac_func=no"
20879 rm -f conftest*
20882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20883 echo "$ac_t""yes" 1>&6
20884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20885 cat >> confdefs.h <<EOF
20886 #define $ac_tr_func 1
20889 else
20890 echo "$ac_t""no" 1>&6
20892 ac_wfuncs=no
20894 done
20897 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20898 echo "configure:20899: checking for ISO C99 wchar_t support" >&5
20899 if test x"$has_weof" = xyes &&
20900 test x"$has_wchar_minmax" = xyes &&
20901 test x"$ac_wfuncs" = xyes; then
20902 ac_isoC99_wchar_t=yes
20903 else
20904 ac_isoC99_wchar_t=no
20906 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20908 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20909 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20910 echo "configure:20911: checking for iconv.h" >&5
20911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20912 echo $ac_n "(cached) $ac_c" 1>&6
20913 else
20914 cat > conftest.$ac_ext <<EOF
20915 #line 20916 "configure"
20916 #include "confdefs.h"
20917 #include <iconv.h>
20919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20920 { (eval echo configure:20921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20922 if test -z "$ac_err"; then
20923 rm -rf conftest*
20924 eval "ac_cv_header_$ac_safe=yes"
20925 else
20926 echo "$ac_err" >&5
20927 echo "configure: failed program was:" >&5
20928 cat conftest.$ac_ext >&5
20929 rm -rf conftest*
20930 eval "ac_cv_header_$ac_safe=no"
20932 rm -f conftest*
20934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20935 echo "$ac_t""yes" 1>&6
20936 ac_has_iconv_h=yes
20937 else
20938 echo "$ac_t""no" 1>&6
20939 ac_has_iconv_h=no
20942 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20943 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20944 echo "configure:20945: checking for langinfo.h" >&5
20945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20946 echo $ac_n "(cached) $ac_c" 1>&6
20947 else
20948 cat > conftest.$ac_ext <<EOF
20949 #line 20950 "configure"
20950 #include "confdefs.h"
20951 #include <langinfo.h>
20953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20954 { (eval echo configure:20955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20956 if test -z "$ac_err"; then
20957 rm -rf conftest*
20958 eval "ac_cv_header_$ac_safe=yes"
20959 else
20960 echo "$ac_err" >&5
20961 echo "configure: failed program was:" >&5
20962 cat conftest.$ac_ext >&5
20963 rm -rf conftest*
20964 eval "ac_cv_header_$ac_safe=no"
20966 rm -f conftest*
20968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20969 echo "$ac_t""yes" 1>&6
20970 ac_has_langinfo_h=yes
20971 else
20972 echo "$ac_t""no" 1>&6
20973 ac_has_langinfo_h=no
20977 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20978 echo "configure:20979: checking for iconv in -liconv" >&5
20979 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20981 echo $ac_n "(cached) $ac_c" 1>&6
20982 else
20983 ac_save_LIBS="$LIBS"
20984 LIBS="-liconv $LIBS"
20985 cat > conftest.$ac_ext <<EOF
20986 #line 20987 "configure"
20987 #include "confdefs.h"
20988 /* Override any gcc2 internal prototype to avoid an error. */
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char iconv();
20993 int main() {
20994 iconv()
20995 ; return 0; }
20997 if { (eval echo configure:20998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20998 rm -rf conftest*
20999 eval "ac_cv_lib_$ac_lib_var=yes"
21000 else
21001 echo "configure: failed program was:" >&5
21002 cat conftest.$ac_ext >&5
21003 rm -rf conftest*
21004 eval "ac_cv_lib_$ac_lib_var=no"
21006 rm -f conftest*
21007 LIBS="$ac_save_LIBS"
21010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21011 echo "$ac_t""yes" 1>&6
21012 libiconv="-liconv"
21013 else
21014 echo "$ac_t""no" 1>&6
21017 ac_save_LIBS="$LIBS"
21018 LIBS="$LIBS $libiconv"
21020 for ac_func in iconv_open iconv_close iconv nl_langinfo
21022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21023 echo "configure:21024: checking for $ac_func" >&5
21024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21025 echo $ac_n "(cached) $ac_c" 1>&6
21026 else
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 /* System header to define __stub macros and hopefully few prototypes,
21031 which can conflict with char $ac_func(); below. */
21032 #include <assert.h>
21033 /* Override any gcc2 internal prototype to avoid an error. */
21034 /* We use char because int might match the return type of a gcc2
21035 builtin and then its argument prototype would still apply. */
21036 char $ac_func();
21038 int main() {
21040 /* The GNU C library defines this for functions which it implements
21041 to always fail with ENOSYS. Some functions are actually named
21042 something starting with __ and the normal name is an alias. */
21043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21044 choke me
21045 #else
21046 $ac_func();
21047 #endif
21049 ; return 0; }
21051 if { (eval echo configure:21052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21052 rm -rf conftest*
21053 eval "ac_cv_func_$ac_func=yes"
21054 else
21055 echo "configure: failed program was:" >&5
21056 cat conftest.$ac_ext >&5
21057 rm -rf conftest*
21058 eval "ac_cv_func_$ac_func=no"
21060 rm -f conftest*
21063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21064 echo "$ac_t""yes" 1>&6
21065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21066 cat >> confdefs.h <<EOF
21067 #define $ac_tr_func 1
21070 ac_XPG2funcs=yes
21071 else
21072 echo "$ac_t""no" 1>&6
21073 ac_XPG2funcs=no
21075 done
21078 LIBS="$ac_save_LIBS"
21080 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21081 echo "configure:21082: checking for XPG2 wchar_t support" >&5
21082 if test x"$ac_has_iconv_h" = xyes &&
21083 test x"$ac_has_langinfo_h" = xyes &&
21084 test x"$ac_XPG2funcs" = xyes; then
21085 ac_XPG2_wchar_t=yes
21086 else
21087 ac_XPG2_wchar_t=no
21089 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21091 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21092 echo "configure:21093: checking for enabled wchar_t specializations" >&5
21093 if test x"$ac_isoC99_wchar_t" = xyes &&
21094 test x"$ac_XPG2_wchar_t" = xyes; then
21095 cat >> confdefs.h <<\EOF
21096 #define _GLIBCPP_USE_WCHAR_T 1
21099 echo "$ac_t"""yes"" 1>&6
21100 else
21101 echo "$ac_t"""no"" 1>&6
21103 else
21104 echo "configure: warning: wchar_t support disabled." 1>&2
21108 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21109 ac_save_CXXFLAGS="$CXXFLAGS"
21110 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21113 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21114 echo "configure:21115: checking for strtold declaration" >&5
21115 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21116 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21117 echo $ac_n "(cached) $ac_c" 1>&6
21118 else
21121 ac_ext=C
21122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21123 ac_cpp='$CXXCPP $CPPFLAGS'
21124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21126 cross_compiling=$ac_cv_prog_cxx_cross
21128 cat > conftest.$ac_ext <<EOF
21129 #line 21130 "configure"
21130 #include "confdefs.h"
21131 #include <stdlib.h>
21132 int main() {
21133 strtold(0, 0);
21134 ; return 0; }
21136 if { (eval echo configure:21137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21137 rm -rf conftest*
21138 glibcpp_cv_func_strtold_use=yes
21139 else
21140 echo "configure: failed program was:" >&5
21141 cat conftest.$ac_ext >&5
21142 rm -rf conftest*
21143 glibcpp_cv_func_strtold_use=no
21145 rm -f conftest*
21146 ac_ext=c
21147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21148 ac_cpp='$CPP $CPPFLAGS'
21149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21151 cross_compiling=$ac_cv_prog_cc_cross
21157 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21158 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21159 for ac_func in strtold
21161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21162 echo "configure:21163: checking for $ac_func" >&5
21163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21164 echo $ac_n "(cached) $ac_c" 1>&6
21165 else
21166 cat > conftest.$ac_ext <<EOF
21167 #line 21168 "configure"
21168 #include "confdefs.h"
21169 /* System header to define __stub macros and hopefully few prototypes,
21170 which can conflict with char $ac_func(); below. */
21171 #include <assert.h>
21172 /* Override any gcc2 internal prototype to avoid an error. */
21173 /* We use char because int might match the return type of a gcc2
21174 builtin and then its argument prototype would still apply. */
21175 char $ac_func();
21177 int main() {
21179 /* The GNU C library defines this for functions which it implements
21180 to always fail with ENOSYS. Some functions are actually named
21181 something starting with __ and the normal name is an alias. */
21182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21183 choke me
21184 #else
21185 $ac_func();
21186 #endif
21188 ; return 0; }
21190 if { (eval echo configure:21191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21191 rm -rf conftest*
21192 eval "ac_cv_func_$ac_func=yes"
21193 else
21194 echo "configure: failed program was:" >&5
21195 cat conftest.$ac_ext >&5
21196 rm -rf conftest*
21197 eval "ac_cv_func_$ac_func=no"
21199 rm -f conftest*
21202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21203 echo "$ac_t""yes" 1>&6
21204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21205 cat >> confdefs.h <<EOF
21206 #define $ac_tr_func 1
21209 else
21210 echo "$ac_t""no" 1>&6
21212 done
21217 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21218 echo "configure:21219: checking for strtof declaration" >&5
21219 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21220 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21221 echo $ac_n "(cached) $ac_c" 1>&6
21222 else
21225 ac_ext=C
21226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21227 ac_cpp='$CXXCPP $CPPFLAGS'
21228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21230 cross_compiling=$ac_cv_prog_cxx_cross
21232 cat > conftest.$ac_ext <<EOF
21233 #line 21234 "configure"
21234 #include "confdefs.h"
21235 #include <stdlib.h>
21236 int main() {
21237 strtof(0, 0);
21238 ; return 0; }
21240 if { (eval echo configure:21241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21241 rm -rf conftest*
21242 glibcpp_cv_func_strtof_use=yes
21243 else
21244 echo "configure: failed program was:" >&5
21245 cat conftest.$ac_ext >&5
21246 rm -rf conftest*
21247 glibcpp_cv_func_strtof_use=no
21249 rm -f conftest*
21250 ac_ext=c
21251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21255 cross_compiling=$ac_cv_prog_cc_cross
21261 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21262 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21263 for ac_func in strtof
21265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21266 echo "configure:21267: checking for $ac_func" >&5
21267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21268 echo $ac_n "(cached) $ac_c" 1>&6
21269 else
21270 cat > conftest.$ac_ext <<EOF
21271 #line 21272 "configure"
21272 #include "confdefs.h"
21273 /* System header to define __stub macros and hopefully few prototypes,
21274 which can conflict with char $ac_func(); below. */
21275 #include <assert.h>
21276 /* Override any gcc2 internal prototype to avoid an error. */
21277 /* We use char because int might match the return type of a gcc2
21278 builtin and then its argument prototype would still apply. */
21279 char $ac_func();
21281 int main() {
21283 /* The GNU C library defines this for functions which it implements
21284 to always fail with ENOSYS. Some functions are actually named
21285 something starting with __ and the normal name is an alias. */
21286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21287 choke me
21288 #else
21289 $ac_func();
21290 #endif
21292 ; return 0; }
21294 if { (eval echo configure:21295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21295 rm -rf conftest*
21296 eval "ac_cv_func_$ac_func=yes"
21297 else
21298 echo "configure: failed program was:" >&5
21299 cat conftest.$ac_ext >&5
21300 rm -rf conftest*
21301 eval "ac_cv_func_$ac_func=no"
21303 rm -f conftest*
21306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21307 echo "$ac_t""yes" 1>&6
21308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21309 cat >> confdefs.h <<EOF
21310 #define $ac_tr_func 1
21313 else
21314 echo "$ac_t""no" 1>&6
21316 done
21320 for ac_func in drand48
21322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21323 echo "configure:21324: checking for $ac_func" >&5
21324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21325 echo $ac_n "(cached) $ac_c" 1>&6
21326 else
21327 cat > conftest.$ac_ext <<EOF
21328 #line 21329 "configure"
21329 #include "confdefs.h"
21330 /* System header to define __stub macros and hopefully few prototypes,
21331 which can conflict with char $ac_func(); below. */
21332 #include <assert.h>
21333 /* Override any gcc2 internal prototype to avoid an error. */
21334 /* We use char because int might match the return type of a gcc2
21335 builtin and then its argument prototype would still apply. */
21336 char $ac_func();
21338 int main() {
21340 /* The GNU C library defines this for functions which it implements
21341 to always fail with ENOSYS. Some functions are actually named
21342 something starting with __ and the normal name is an alias. */
21343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21344 choke me
21345 #else
21346 $ac_func();
21347 #endif
21349 ; return 0; }
21351 if { (eval echo configure:21352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21352 rm -rf conftest*
21353 eval "ac_cv_func_$ac_func=yes"
21354 else
21355 echo "configure: failed program was:" >&5
21356 cat conftest.$ac_ext >&5
21357 rm -rf conftest*
21358 eval "ac_cv_func_$ac_func=no"
21360 rm -f conftest*
21363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21364 echo "$ac_t""yes" 1>&6
21365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21366 cat >> confdefs.h <<EOF
21367 #define $ac_tr_func 1
21370 else
21371 echo "$ac_t""no" 1>&6
21373 done
21376 CXXFLAGS="$ac_save_CXXFLAGS"
21379 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21380 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21381 echo "configure:21382: checking for locale.h" >&5
21382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21383 echo $ac_n "(cached) $ac_c" 1>&6
21384 else
21385 cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 #include <locale.h>
21390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21391 { (eval echo configure:21392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21393 if test -z "$ac_err"; then
21394 rm -rf conftest*
21395 eval "ac_cv_header_$ac_safe=yes"
21396 else
21397 echo "$ac_err" >&5
21398 echo "configure: failed program was:" >&5
21399 cat conftest.$ac_ext >&5
21400 rm -rf conftest*
21401 eval "ac_cv_header_$ac_safe=no"
21403 rm -f conftest*
21405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21406 echo "$ac_t""yes" 1>&6
21408 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21409 echo "configure:21410: checking for LC_MESSAGES" >&5
21410 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21411 echo $ac_n "(cached) $ac_c" 1>&6
21412 else
21413 cat > conftest.$ac_ext <<EOF
21414 #line 21415 "configure"
21415 #include "confdefs.h"
21416 #include <locale.h>
21417 int main() {
21418 return LC_MESSAGES
21419 ; return 0; }
21421 if { (eval echo configure:21422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21422 rm -rf conftest*
21423 ac_cv_val_LC_MESSAGES=yes
21424 else
21425 echo "configure: failed program was:" >&5
21426 cat conftest.$ac_ext >&5
21427 rm -rf conftest*
21428 ac_cv_val_LC_MESSAGES=no
21430 rm -f conftest*
21433 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21434 if test $ac_cv_val_LC_MESSAGES = yes; then
21435 cat >> confdefs.h <<\EOF
21436 #define HAVE_LC_MESSAGES 1
21441 else
21442 echo "$ac_t""no" 1>&6
21447 cat > conftest.$ac_ext <<EOF
21448 #line 21449 "configure"
21449 #include "confdefs.h"
21451 #include <setjmp.h>
21453 int main() {
21454 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21455 ; return 0; }
21457 if { (eval echo configure:21458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21458 rm -rf conftest*
21459 cat >> confdefs.h <<\EOF
21460 #define HAVE_SIGSETJMP 1
21464 else
21465 echo "configure: failed program was:" >&5
21466 cat conftest.$ac_ext >&5
21468 rm -f conftest*
21470 for ac_hdr in unistd.h
21472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21474 echo "configure:21475: checking for $ac_hdr" >&5
21475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21477 else
21478 cat > conftest.$ac_ext <<EOF
21479 #line 21480 "configure"
21480 #include "confdefs.h"
21481 #include <$ac_hdr>
21483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21484 { (eval echo configure:21485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21486 if test -z "$ac_err"; then
21487 rm -rf conftest*
21488 eval "ac_cv_header_$ac_safe=yes"
21489 else
21490 echo "$ac_err" >&5
21491 echo "configure: failed program was:" >&5
21492 cat conftest.$ac_ext >&5
21493 rm -rf conftest*
21494 eval "ac_cv_header_$ac_safe=no"
21496 rm -f conftest*
21498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21499 echo "$ac_t""yes" 1>&6
21500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21501 cat >> confdefs.h <<EOF
21502 #define $ac_tr_hdr 1
21505 else
21506 echo "$ac_t""no" 1>&6
21508 done
21510 for ac_func in getpagesize
21512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21513 echo "configure:21514: checking for $ac_func" >&5
21514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21515 echo $ac_n "(cached) $ac_c" 1>&6
21516 else
21517 cat > conftest.$ac_ext <<EOF
21518 #line 21519 "configure"
21519 #include "confdefs.h"
21520 /* System header to define __stub macros and hopefully few prototypes,
21521 which can conflict with char $ac_func(); below. */
21522 #include <assert.h>
21523 /* Override any gcc2 internal prototype to avoid an error. */
21524 /* We use char because int might match the return type of a gcc2
21525 builtin and then its argument prototype would still apply. */
21526 char $ac_func();
21528 int main() {
21530 /* The GNU C library defines this for functions which it implements
21531 to always fail with ENOSYS. Some functions are actually named
21532 something starting with __ and the normal name is an alias. */
21533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21534 choke me
21535 #else
21536 $ac_func();
21537 #endif
21539 ; return 0; }
21541 if { (eval echo configure:21542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21542 rm -rf conftest*
21543 eval "ac_cv_func_$ac_func=yes"
21544 else
21545 echo "configure: failed program was:" >&5
21546 cat conftest.$ac_ext >&5
21547 rm -rf conftest*
21548 eval "ac_cv_func_$ac_func=no"
21550 rm -f conftest*
21553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21554 echo "$ac_t""yes" 1>&6
21555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21556 cat >> confdefs.h <<EOF
21557 #define $ac_tr_func 1
21560 else
21561 echo "$ac_t""no" 1>&6
21563 done
21565 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21566 echo "configure:21567: checking for working mmap" >&5
21567 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21568 echo $ac_n "(cached) $ac_c" 1>&6
21569 else
21570 if test "$cross_compiling" = yes; then
21571 ac_cv_func_mmap_fixed_mapped=no
21572 else
21573 cat > conftest.$ac_ext <<EOF
21574 #line 21575 "configure"
21575 #include "confdefs.h"
21577 /* Thanks to Mike Haertel and Jim Avera for this test.
21578 Here is a matrix of mmap possibilities:
21579 mmap private not fixed
21580 mmap private fixed at somewhere currently unmapped
21581 mmap private fixed at somewhere already mapped
21582 mmap shared not fixed
21583 mmap shared fixed at somewhere currently unmapped
21584 mmap shared fixed at somewhere already mapped
21585 For private mappings, we should verify that changes cannot be read()
21586 back from the file, nor mmap's back from the file at a different
21587 address. (There have been systems where private was not correctly
21588 implemented like the infamous i386 svr4.0, and systems where the
21589 VM page cache was not coherent with the filesystem buffer cache
21590 like early versions of FreeBSD and possibly contemporary NetBSD.)
21591 For shared mappings, we should conversely verify that changes get
21592 propogated back to all the places they're supposed to be.
21594 Grep wants private fixed already mapped.
21595 The main things grep needs to know about mmap are:
21596 * does it exist and is it safe to write into the mmap'd area
21597 * how to use it (BSD variants) */
21598 #include <sys/types.h>
21599 #include <fcntl.h>
21600 #include <sys/mman.h>
21602 /* This mess was copied from the GNU getpagesize.h. */
21603 #ifndef HAVE_GETPAGESIZE
21604 # ifdef HAVE_UNISTD_H
21605 # include <unistd.h>
21606 # endif
21608 /* Assume that all systems that can run configure have sys/param.h. */
21609 # ifndef HAVE_SYS_PARAM_H
21610 # define HAVE_SYS_PARAM_H 1
21611 # endif
21613 # ifdef _SC_PAGESIZE
21614 # define getpagesize() sysconf(_SC_PAGESIZE)
21615 # else /* no _SC_PAGESIZE */
21616 # ifdef HAVE_SYS_PARAM_H
21617 # include <sys/param.h>
21618 # ifdef EXEC_PAGESIZE
21619 # define getpagesize() EXEC_PAGESIZE
21620 # else /* no EXEC_PAGESIZE */
21621 # ifdef NBPG
21622 # define getpagesize() NBPG * CLSIZE
21623 # ifndef CLSIZE
21624 # define CLSIZE 1
21625 # endif /* no CLSIZE */
21626 # else /* no NBPG */
21627 # ifdef NBPC
21628 # define getpagesize() NBPC
21629 # else /* no NBPC */
21630 # ifdef PAGESIZE
21631 # define getpagesize() PAGESIZE
21632 # endif /* PAGESIZE */
21633 # endif /* no NBPC */
21634 # endif /* no NBPG */
21635 # endif /* no EXEC_PAGESIZE */
21636 # else /* no HAVE_SYS_PARAM_H */
21637 # define getpagesize() 8192 /* punt totally */
21638 # endif /* no HAVE_SYS_PARAM_H */
21639 # endif /* no _SC_PAGESIZE */
21641 #endif /* no HAVE_GETPAGESIZE */
21643 #ifdef __cplusplus
21644 extern "C" { void *malloc(unsigned); }
21645 #else
21646 char *malloc();
21647 #endif
21650 main()
21652 char *data, *data2, *data3;
21653 int i, pagesize;
21654 int fd;
21656 pagesize = getpagesize();
21659 * First, make a file with some known garbage in it.
21661 data = malloc(pagesize);
21662 if (!data)
21663 exit(1);
21664 for (i = 0; i < pagesize; ++i)
21665 *(data + i) = rand();
21666 umask(0);
21667 fd = creat("conftestmmap", 0600);
21668 if (fd < 0)
21669 exit(1);
21670 if (write(fd, data, pagesize) != pagesize)
21671 exit(1);
21672 close(fd);
21675 * Next, try to mmap the file at a fixed address which
21676 * already has something else allocated at it. If we can,
21677 * also make sure that we see the same garbage.
21679 fd = open("conftestmmap", O_RDWR);
21680 if (fd < 0)
21681 exit(1);
21682 data2 = malloc(2 * pagesize);
21683 if (!data2)
21684 exit(1);
21685 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21686 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21688 exit(1);
21689 for (i = 0; i < pagesize; ++i)
21690 if (*(data + i) != *(data2 + i))
21691 exit(1);
21694 * Finally, make sure that changes to the mapped area
21695 * do not percolate back to the file as seen by read().
21696 * (This is a bug on some variants of i386 svr4.0.)
21698 for (i = 0; i < pagesize; ++i)
21699 *(data2 + i) = *(data2 + i) + 1;
21700 data3 = malloc(pagesize);
21701 if (!data3)
21702 exit(1);
21703 if (read(fd, data3, pagesize) != pagesize)
21704 exit(1);
21705 for (i = 0; i < pagesize; ++i)
21706 if (*(data + i) != *(data3 + i))
21707 exit(1);
21708 close(fd);
21709 unlink("conftestmmap");
21710 exit(0);
21714 if { (eval echo configure:21715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21715 then
21716 ac_cv_func_mmap_fixed_mapped=yes
21717 else
21718 echo "configure: failed program was:" >&5
21719 cat conftest.$ac_ext >&5
21720 rm -fr conftest*
21721 ac_cv_func_mmap_fixed_mapped=no
21723 rm -fr conftest*
21728 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21729 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21730 cat >> confdefs.h <<\EOF
21731 #define HAVE_MMAP 1
21737 # Establish limits on memory usage during 'make check'
21740 setrlimit_have_headers=yes
21741 for ac_hdr in unistd.h sys/time.h sys/resource.h
21743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21745 echo "configure:21746: checking for $ac_hdr" >&5
21746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21747 echo $ac_n "(cached) $ac_c" 1>&6
21748 else
21749 cat > conftest.$ac_ext <<EOF
21750 #line 21751 "configure"
21751 #include "confdefs.h"
21752 #include <$ac_hdr>
21754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21755 { (eval echo configure:21756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21757 if test -z "$ac_err"; then
21758 rm -rf conftest*
21759 eval "ac_cv_header_$ac_safe=yes"
21760 else
21761 echo "$ac_err" >&5
21762 echo "configure: failed program was:" >&5
21763 cat conftest.$ac_ext >&5
21764 rm -rf conftest*
21765 eval "ac_cv_header_$ac_safe=no"
21767 rm -f conftest*
21769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21770 echo "$ac_t""yes" 1>&6
21771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21772 cat >> confdefs.h <<EOF
21773 #define $ac_tr_hdr 1
21776 else
21777 echo "$ac_t""no" 1>&6
21778 setrlimit_have_headers=no
21780 done
21782 # If don't have the headers, then we can't run the tests now, and we
21783 # won't be seeing any of these during testsuite compilation.
21784 if test $setrlimit_have_headers = yes; then
21785 # Can't do these in a loop, else the resulting syntax is wrong.
21787 cat > conftest.$ac_ext <<EOF
21788 #line 21789 "configure"
21789 #include "confdefs.h"
21790 #include <unistd.h>
21791 #include <sys/time.h>
21792 #include <sys/resource.h>
21794 int main() {
21795 int f = RLIMIT_DATA ;
21796 ; return 0; }
21798 if { (eval echo configure:21799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21799 rm -rf conftest*
21800 glibcpp_mresult=1
21801 else
21802 echo "configure: failed program was:" >&5
21803 cat conftest.$ac_ext >&5
21804 rm -rf conftest*
21805 glibcpp_mresult=0
21807 rm -f conftest*
21808 cat >> confdefs.h <<EOF
21809 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21814 cat > conftest.$ac_ext <<EOF
21815 #line 21816 "configure"
21816 #include "confdefs.h"
21817 #include <unistd.h>
21818 #include <sys/time.h>
21819 #include <sys/resource.h>
21821 int main() {
21822 int f = RLIMIT_RSS ;
21823 ; return 0; }
21825 if { (eval echo configure:21826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21826 rm -rf conftest*
21827 glibcpp_mresult=1
21828 else
21829 echo "configure: failed program was:" >&5
21830 cat conftest.$ac_ext >&5
21831 rm -rf conftest*
21832 glibcpp_mresult=0
21834 rm -f conftest*
21835 cat >> confdefs.h <<EOF
21836 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21841 cat > conftest.$ac_ext <<EOF
21842 #line 21843 "configure"
21843 #include "confdefs.h"
21844 #include <unistd.h>
21845 #include <sys/time.h>
21846 #include <sys/resource.h>
21848 int main() {
21849 int f = RLIMIT_VMEM ;
21850 ; return 0; }
21852 if { (eval echo configure:21853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21853 rm -rf conftest*
21854 glibcpp_mresult=1
21855 else
21856 echo "configure: failed program was:" >&5
21857 cat conftest.$ac_ext >&5
21858 rm -rf conftest*
21859 glibcpp_mresult=0
21861 rm -f conftest*
21862 cat >> confdefs.h <<EOF
21863 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21868 cat > conftest.$ac_ext <<EOF
21869 #line 21870 "configure"
21870 #include "confdefs.h"
21871 #include <unistd.h>
21872 #include <sys/time.h>
21873 #include <sys/resource.h>
21875 int main() {
21876 int f = RLIMIT_AS ;
21877 ; return 0; }
21879 if { (eval echo configure:21880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21880 rm -rf conftest*
21881 glibcpp_mresult=1
21882 else
21883 echo "configure: failed program was:" >&5
21884 cat conftest.$ac_ext >&5
21885 rm -rf conftest*
21886 glibcpp_mresult=0
21888 rm -f conftest*
21889 cat >> confdefs.h <<EOF
21890 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21895 # Check for rlimit, setrlimit.
21896 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21897 echo $ac_n "(cached) $ac_c" 1>&6
21898 else
21900 cat > conftest.$ac_ext <<EOF
21901 #line 21902 "configure"
21902 #include "confdefs.h"
21903 #include <unistd.h>
21904 #include <sys/time.h>
21905 #include <sys/resource.h>
21907 int main() {
21908 struct rlimit r; setrlimit(0, &r);
21909 ; return 0; }
21911 if { (eval echo configure:21912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21912 rm -rf conftest*
21913 ac_setrlimit=yes
21914 else
21915 echo "configure: failed program was:" >&5
21916 cat conftest.$ac_ext >&5
21917 rm -rf conftest*
21918 ac_setrlimit=no
21920 rm -f conftest*
21926 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21927 echo "configure:21928: checking for testsuite memory limit support" >&5
21928 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21929 ac_mem_limits=yes
21930 cat >> confdefs.h <<\EOF
21931 #define _GLIBCPP_MEM_LIMITS 1
21934 else
21935 ac_mem_limits=no
21937 echo "$ac_t""$ac_mem_limits" 1>&6
21940 # Look for setenv, so that extended locale tests can be performed.
21942 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21943 echo "configure:21944: checking for setenv declaration" >&5
21944 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21945 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21946 echo $ac_n "(cached) $ac_c" 1>&6
21947 else
21950 ac_ext=C
21951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21952 ac_cpp='$CXXCPP $CPPFLAGS'
21953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21955 cross_compiling=$ac_cv_prog_cxx_cross
21957 cat > conftest.$ac_ext <<EOF
21958 #line 21959 "configure"
21959 #include "confdefs.h"
21960 #include <stdlib.h>
21961 int main() {
21962 setenv(0, 0, 0);
21963 ; return 0; }
21965 if { (eval echo configure:21966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21966 rm -rf conftest*
21967 glibcpp_cv_func_setenv_use=yes
21968 else
21969 echo "configure: failed program was:" >&5
21970 cat conftest.$ac_ext >&5
21971 rm -rf conftest*
21972 glibcpp_cv_func_setenv_use=no
21974 rm -f conftest*
21975 ac_ext=c
21976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21977 ac_cpp='$CPP $CPPFLAGS'
21978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21980 cross_compiling=$ac_cv_prog_cc_cross
21986 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21987 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21988 for ac_func in setenv
21990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21991 echo "configure:21992: checking for $ac_func" >&5
21992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21993 echo $ac_n "(cached) $ac_c" 1>&6
21994 else
21995 cat > conftest.$ac_ext <<EOF
21996 #line 21997 "configure"
21997 #include "confdefs.h"
21998 /* System header to define __stub macros and hopefully few prototypes,
21999 which can conflict with char $ac_func(); below. */
22000 #include <assert.h>
22001 /* Override any gcc2 internal prototype to avoid an error. */
22002 /* We use char because int might match the return type of a gcc2
22003 builtin and then its argument prototype would still apply. */
22004 char $ac_func();
22006 int main() {
22008 /* The GNU C library defines this for functions which it implements
22009 to always fail with ENOSYS. Some functions are actually named
22010 something starting with __ and the normal name is an alias. */
22011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22012 choke me
22013 #else
22014 $ac_func();
22015 #endif
22017 ; return 0; }
22019 if { (eval echo configure:22020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22020 rm -rf conftest*
22021 eval "ac_cv_func_$ac_func=yes"
22022 else
22023 echo "configure: failed program was:" >&5
22024 cat conftest.$ac_ext >&5
22025 rm -rf conftest*
22026 eval "ac_cv_func_$ac_func=no"
22028 rm -f conftest*
22031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22032 echo "$ac_t""yes" 1>&6
22033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22034 cat >> confdefs.h <<EOF
22035 #define $ac_tr_func 1
22038 else
22039 echo "$ac_t""no" 1>&6
22041 done
22046 # Export file names for ABI checking.
22047 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
22050 # Don't do ABI checking unless native.
22053 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
22054 GLIBCPP_BUILD_ABI_CHECK_TRUE=
22055 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
22056 else
22057 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
22058 GLIBCPP_BUILD_ABI_CHECK_FALSE=
22063 # This depends on the possibly-skipped linker test above.
22064 # Check whether --enable-symvers or --disable-symvers was given.
22065 if test "${enable_symvers+set}" = set; then
22066 enableval="$enable_symvers"
22067 case "$enableval" in
22068 yes) enable_symvers=yes ;;
22069 no) enable_symvers=no ;;
22070 # other names here, just as sanity checks
22071 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22072 gnu) enable_symvers=$enableval ;;
22073 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22074 esac
22075 else
22076 enable_symvers=yes
22079 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22080 # don't know enough about $LD to do tricks...
22081 if test x$enable_shared = xno ||
22082 test "x$LD" = x ||
22083 test x$glibcpp_gnu_ld_version = x; then
22084 enable_symvers=no
22087 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22088 if test $enable_symvers != no; then
22089 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22090 echo "configure:22091: checking for shared libgcc" >&5
22091 ac_save_CFLAGS="$CFLAGS"
22092 CFLAGS=' -lgcc_s'
22093 cat > conftest.$ac_ext <<EOF
22094 #line 22095 "configure"
22095 #include "confdefs.h"
22097 int main() {
22098 return 0
22099 ; return 0; }
22101 if { (eval echo configure:22102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22102 rm -rf conftest*
22103 glibcpp_shared_libgcc=yes
22104 else
22105 echo "configure: failed program was:" >&5
22106 cat conftest.$ac_ext >&5
22107 rm -rf conftest*
22108 glibcpp_shared_libgcc=no
22110 rm -f conftest*
22111 CFLAGS="$ac_save_CFLAGS"
22112 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22115 # For GNU ld, we need at least this version. It's 2.12 in the same format
22116 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22117 glibcpp_min_gnu_ld_version=21200
22119 # Check to see if unspecified "yes" value can win, given results
22120 # above.
22121 if test $enable_symvers = yes ; then
22122 if test $with_gnu_ld = yes &&
22123 test $glibcpp_shared_libgcc = yes ;
22124 then
22125 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22126 enable_symvers=gnu
22127 else
22128 ac_test_CFLAGS="${CFLAGS+set}"
22129 ac_save_CFLAGS="$CFLAGS"
22130 CFLAGS='-shared -Wl,--version-script,conftest.map'
22131 enable_symvers=no
22133 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22135 cat > conftest.$ac_ext <<EOF
22136 #line 22137 "configure"
22137 #include "confdefs.h"
22138 int foo;
22139 int main() {
22141 ; return 0; }
22143 if { (eval echo configure:22144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22144 rm -rf conftest*
22145 enable_symvers=gnu
22146 else
22147 echo "configure: failed program was:" >&5
22148 cat conftest.$ac_ext >&5
22150 rm -f conftest*
22151 if test "$ac_test_CFLAGS" = set; then
22152 CFLAGS="$ac_save_CFLAGS"
22153 else
22154 # this is the suspicious part
22155 CFLAGS=''
22157 rm -f conftest.map
22159 else
22160 # just fail for now
22161 enable_symvers=no
22165 case $enable_symvers in
22167 LINKER_MAP=config/linker-map.dummy
22169 gnu)
22170 LINKER_MAP=config/linker-map.gnu
22172 esac
22177 if test $enable_symvers != no; then
22178 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22179 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22180 else
22181 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22182 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22184 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22185 echo "configure:22186: checking versioning on shared library symbols" >&5
22186 echo "$ac_t""$enable_symvers" 1>&6
22189 # Propagate the target-specific source directories through the build chain.
22190 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22191 # CPULIMITSH [might] use it, and they only get used here.)
22192 OS_INC_SRCDIR=config/${os_include_dir}
22193 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22194 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22199 # Set up cross-compile flags
22202 if test "$CANADIAN" = yes; then
22203 CANADIAN_TRUE=
22204 CANADIAN_FALSE='#'
22205 else
22206 CANADIAN_TRUE='#'
22207 CANADIAN_FALSE=
22210 cat > confcache <<\EOF
22211 # This file is a shell script that caches the results of configure
22212 # tests run on this system so they can be shared between configure
22213 # scripts and configure runs. It is not useful on other systems.
22214 # If it contains results you don't want to keep, you may remove or edit it.
22216 # By default, configure uses ./config.cache as the cache file,
22217 # creating it if it does not exist already. You can give configure
22218 # the --cache-file=FILE option to use a different cache file; that is
22219 # what configure does when it calls configure scripts in
22220 # subdirectories, so they share the cache.
22221 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22222 # config.status only pays attention to the cache file if you give it the
22223 # --recheck option to rerun configure.
22226 # The following way of writing the cache mishandles newlines in values,
22227 # but we know of no workaround that is simple, portable, and efficient.
22228 # So, don't put newlines in cache variables' values.
22229 # Ultrix sh set writes to stderr and can't be redirected directly,
22230 # and sets the high bit in the cache file unless we assign to the vars.
22231 (set) 2>&1 |
22232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22233 *ac_space=\ *)
22234 # `set' does not quote correctly, so add quotes (double-quote substitution
22235 # turns \\\\ into \\, and sed turns \\ into \).
22236 sed -n \
22237 -e "s/'/'\\\\''/g" \
22238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22241 # `set' quotes correctly as required by POSIX, so do not add quotes.
22242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22244 esac >> confcache
22245 if cmp -s $cache_file confcache; then
22247 else
22248 if test -w $cache_file; then
22249 echo "updating cache $cache_file"
22250 cat confcache > $cache_file
22251 else
22252 echo "not updating unwritable cache $cache_file"
22255 rm -f confcache
22258 if test "${multilib}" = "yes"; then
22259 multilib_arg="--enable-multilib"
22260 else
22261 multilib_arg=
22264 # Export all the install information
22266 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22267 # exported correctly in GLIBCPP_CONFIGURE.
22268 glibcpp_toolexecdir=no
22269 glibcpp_toolexeclibdir=no
22270 glibcpp_prefixdir=${prefix}
22272 # Process the option --with-gxx-include-dir=<path to include-files directory>
22273 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22274 echo "configure:22275: checking for --with-gxx-include-dir" >&5
22275 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22276 if test "${with_gxx_include_dir+set}" = set; then
22277 withval="$with_gxx_include_dir"
22278 case "${withval}" in
22279 yes)
22280 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22281 gxx_include_dir=no
22284 gxx_include_dir=no
22287 gxx_include_dir=${withval}
22289 esac
22290 else
22291 gxx_include_dir=no
22294 echo "$ac_t""$gxx_include_dir" 1>&6
22296 # Process the option "--enable-version-specific-runtime-libs"
22297 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22298 echo "configure:22299: checking for --enable-version-specific-runtime-libs" >&5
22299 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22300 if test "${enable_version_specific_runtime_libs+set}" = set; then
22301 enableval="$enable_version_specific_runtime_libs"
22302 case "$enableval" in
22303 yes) version_specific_libs=yes ;;
22304 no) version_specific_libs=no ;;
22305 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22306 esac
22307 else
22308 version_specific_libs=no
22310 # Option set, now we can test it.
22311 echo "$ac_t""$version_specific_libs" 1>&6
22313 # Default case for install directory for include files.
22314 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22315 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22318 # Version-specific runtime libs processing.
22319 if test $version_specific_libs = yes; then
22320 # Need the gcc compiler version to know where to install libraries
22321 # and header files if --enable-version-specific-runtime-libs option
22322 # is selected.
22323 if test x"$gxx_include_dir" = x"no"; then
22324 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22326 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22327 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22330 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22331 # Install a library built with a cross compiler in tooldir, not libdir.
22332 if test x"$glibcpp_toolexecdir" = x"no"; then
22333 if test -n "$with_cross_host" &&
22334 test x"$with_cross_host" != x"no"; then
22335 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22336 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22337 else
22338 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22339 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22343 echo $ac_n "checking for install location""... $ac_c" 1>&6
22344 echo "configure:22345: checking for install location" >&5
22345 echo "$ac_t""$gxx_include_dir" 1>&6
22353 # Export all the include and flag information to makefiles.
22355 # Root level of the build directory include sources.
22356 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22358 # Passed down for canadian crosses.
22359 if test x"$CANADIAN" = xyes; then
22360 TOPLEVEL_INCLUDES='-I$(includedir)'
22363 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22365 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22367 if test x"$need_libio" = xyes; then
22368 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22372 # Now, export this to all the little Makefiles....
22379 # Optimization flags that are probably a good idea for thrill-seekers. Just
22380 # uncomment the lines below and make, everything else is ready to go...
22381 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22382 OPTIMIZE_CXXFLAGS=
22385 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22389 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22390 grep "enable shared" > /dev/null; then
22391 LIBSUPCXX_PICFLAGS=-prefer-pic
22392 else
22393 LIBSUPCXX_PICFLAGS=
22397 # Generate the various Makefiles, include files, and scripts.
22398 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22399 # and libsupc++/Makefile.am so that multilib installs will end up
22400 # installed in the correct place. To work around this not being passed
22401 # down from config-ml.in -> top_srcdir/Makefile.am ->
22402 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22403 trap '' 1 2 15
22404 cat > confcache <<\EOF
22405 # This file is a shell script that caches the results of configure
22406 # tests run on this system so they can be shared between configure
22407 # scripts and configure runs. It is not useful on other systems.
22408 # If it contains results you don't want to keep, you may remove or edit it.
22410 # By default, configure uses ./config.cache as the cache file,
22411 # creating it if it does not exist already. You can give configure
22412 # the --cache-file=FILE option to use a different cache file; that is
22413 # what configure does when it calls configure scripts in
22414 # subdirectories, so they share the cache.
22415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22416 # config.status only pays attention to the cache file if you give it the
22417 # --recheck option to rerun configure.
22420 # The following way of writing the cache mishandles newlines in values,
22421 # but we know of no workaround that is simple, portable, and efficient.
22422 # So, don't put newlines in cache variables' values.
22423 # Ultrix sh set writes to stderr and can't be redirected directly,
22424 # and sets the high bit in the cache file unless we assign to the vars.
22425 (set) 2>&1 |
22426 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22427 *ac_space=\ *)
22428 # `set' does not quote correctly, so add quotes (double-quote substitution
22429 # turns \\\\ into \\, and sed turns \\ into \).
22430 sed -n \
22431 -e "s/'/'\\\\''/g" \
22432 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22435 # `set' quotes correctly as required by POSIX, so do not add quotes.
22436 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22438 esac >> confcache
22439 if cmp -s $cache_file confcache; then
22441 else
22442 if test -w $cache_file; then
22443 echo "updating cache $cache_file"
22444 cat confcache > $cache_file
22445 else
22446 echo "not updating unwritable cache $cache_file"
22449 rm -f confcache
22451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22454 # Let make expand exec_prefix.
22455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22457 # Any assignment to VPATH causes Sun make to only execute
22458 # the first set of double-colon rules, so remove it if not needed.
22459 # If there is a colon in the path, we need to keep it.
22460 if test "x$srcdir" = x.; then
22461 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22466 DEFS=-DHAVE_CONFIG_H
22468 # Without the "./", some shells look in PATH for config.status.
22469 : ${CONFIG_STATUS=./config.status}
22471 echo creating $CONFIG_STATUS
22472 rm -f $CONFIG_STATUS
22473 cat > $CONFIG_STATUS <<EOF
22474 #! /bin/sh
22475 # Generated automatically by configure.
22476 # Run this file to recreate the current configuration.
22477 # This directory was configured as follows,
22478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22480 # $0 $ac_configure_args
22482 # Compiler output produced by configure, useful for debugging
22483 # configure, is in ./config.log if it exists.
22485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22486 for ac_option
22488 case "\$ac_option" in
22489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22490 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22491 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22492 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22493 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22494 exit 0 ;;
22495 -help | --help | --hel | --he | --h)
22496 echo "\$ac_cs_usage"; exit 0 ;;
22497 *) echo "\$ac_cs_usage"; exit 1 ;;
22498 esac
22499 done
22501 ac_given_srcdir=$srcdir
22502 ac_given_INSTALL="$INSTALL"
22504 trap 'rm -fr `echo "Makefile \
22505 include/Makefile src/Makefile \
22506 libmath/Makefile libio/Makefile libsupc++/Makefile \
22507 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22509 cat >> $CONFIG_STATUS <<EOF
22511 # Protect against being on the right side of a sed subst in config.status.
22512 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22513 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22514 $ac_vpsub
22515 $extrasub
22516 s%@SHELL@%$SHELL%g
22517 s%@CFLAGS@%$CFLAGS%g
22518 s%@CPPFLAGS@%$CPPFLAGS%g
22519 s%@CXXFLAGS@%$CXXFLAGS%g
22520 s%@FFLAGS@%$FFLAGS%g
22521 s%@DEFS@%$DEFS%g
22522 s%@LDFLAGS@%$LDFLAGS%g
22523 s%@LIBS@%$LIBS%g
22524 s%@exec_prefix@%$exec_prefix%g
22525 s%@prefix@%$prefix%g
22526 s%@program_transform_name@%$program_transform_name%g
22527 s%@bindir@%$bindir%g
22528 s%@sbindir@%$sbindir%g
22529 s%@libexecdir@%$libexecdir%g
22530 s%@datadir@%$datadir%g
22531 s%@sysconfdir@%$sysconfdir%g
22532 s%@sharedstatedir@%$sharedstatedir%g
22533 s%@localstatedir@%$localstatedir%g
22534 s%@libdir@%$libdir%g
22535 s%@includedir@%$includedir%g
22536 s%@oldincludedir@%$oldincludedir%g
22537 s%@infodir@%$infodir%g
22538 s%@mandir@%$mandir%g
22539 s%@PACKAGE@%$PACKAGE%g
22540 s%@libtool_VERSION@%$libtool_VERSION%g
22541 s%@toplevel_srcdir@%$toplevel_srcdir%g
22542 s%@host@%$host%g
22543 s%@host_alias@%$host_alias%g
22544 s%@host_cpu@%$host_cpu%g
22545 s%@host_vendor@%$host_vendor%g
22546 s%@host_os@%$host_os%g
22547 s%@target@%$target%g
22548 s%@target_alias@%$target_alias%g
22549 s%@target_cpu@%$target_cpu%g
22550 s%@target_vendor@%$target_vendor%g
22551 s%@target_os@%$target_os%g
22552 s%@build@%$build%g
22553 s%@build_alias@%$build_alias%g
22554 s%@build_cpu@%$build_cpu%g
22555 s%@build_vendor@%$build_vendor%g
22556 s%@build_os@%$build_os%g
22557 s%@glibcpp_builddir@%$glibcpp_builddir%g
22558 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22559 s%@AWK@%$AWK%g
22560 s%@LN_S@%$LN_S%g
22561 s%@glibcpp_basedir@%$glibcpp_basedir%g
22562 s%@CC@%$CC%g
22563 s%@glibcpp_CXX@%$glibcpp_CXX%g
22564 s%@AS@%$AS%g
22565 s%@AR@%$AR%g
22566 s%@RANLIB@%$RANLIB%g
22567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22568 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22569 s%@INSTALL_DATA@%$INSTALL_DATA%g
22570 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22571 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22572 s%@MAINT@%$MAINT%g
22573 s%@EXEEXT@%$EXEEXT%g
22574 s%@VERSION@%$VERSION%g
22575 s%@ACLOCAL@%$ACLOCAL%g
22576 s%@AUTOCONF@%$AUTOCONF%g
22577 s%@AUTOMAKE@%$AUTOMAKE%g
22578 s%@AUTOHEADER@%$AUTOHEADER%g
22579 s%@MAKEINFO@%$MAKEINFO%g
22580 s%@SET_MAKE@%$SET_MAKE%g
22581 s%@OBJEXT@%$OBJEXT%g
22582 s%@STRIP@%$STRIP%g
22583 s%@LIBTOOL@%$LIBTOOL%g
22584 s%@CXXCPP@%$CXXCPP%g
22585 s%@enable_shared@%$enable_shared%g
22586 s%@enable_static@%$enable_static%g
22587 s%@ifGNUmake@%$ifGNUmake%g
22588 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22589 s%@CPP@%$CPP%g
22590 s%@CSTDIO_H@%$CSTDIO_H%g
22591 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22592 s%@CCODECVT_C@%$CCODECVT_C%g
22593 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22594 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22595 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22596 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22597 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22598 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22599 s%@libio_la@%$libio_la%g
22600 s%@check_msgfmt@%$check_msgfmt%g
22601 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22602 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22603 s%@glibcpp_localedir@%$glibcpp_localedir%g
22604 s%@USE_NLS@%$USE_NLS%g
22605 s%@CLOCALE_H@%$CLOCALE_H%g
22606 s%@CCODECVT_H@%$CCODECVT_H%g
22607 s%@CMESSAGES_H@%$CMESSAGES_H%g
22608 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22609 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22610 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22611 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22612 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22613 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22614 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22615 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22616 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22617 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22618 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22619 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22620 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22621 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22622 s%@WERROR@%$WERROR%g
22623 s%@baseline_file@%$baseline_file%g
22624 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
22625 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
22626 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22627 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22628 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22629 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22630 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22631 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22632 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22633 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22634 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22635 s%@gxx_include_dir@%$gxx_include_dir%g
22636 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22637 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22638 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22639 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22640 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22641 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22642 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22643 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22644 s%@WARN_FLAGS@%$WARN_FLAGS%g
22645 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22647 CEOF
22650 cat >> $CONFIG_STATUS <<\EOF
22652 # Split the substitutions into bite-sized pieces for seds with
22653 # small command number limits, like on Digital OSF/1 and HP-UX.
22654 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22655 ac_file=1 # Number of current file.
22656 ac_beg=1 # First line for current file.
22657 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22658 ac_more_lines=:
22659 ac_sed_cmds=""
22660 while $ac_more_lines; do
22661 if test $ac_beg -gt 1; then
22662 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22663 else
22664 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22666 if test ! -s conftest.s$ac_file; then
22667 ac_more_lines=false
22668 rm -f conftest.s$ac_file
22669 else
22670 if test -z "$ac_sed_cmds"; then
22671 ac_sed_cmds="sed -f conftest.s$ac_file"
22672 else
22673 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22675 ac_file=`expr $ac_file + 1`
22676 ac_beg=$ac_end
22677 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22679 done
22680 if test -z "$ac_sed_cmds"; then
22681 ac_sed_cmds=cat
22685 cat >> $CONFIG_STATUS <<EOF
22687 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22688 include/Makefile src/Makefile \
22689 libmath/Makefile libio/Makefile libsupc++/Makefile \
22690 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22692 cat >> $CONFIG_STATUS <<\EOF
22693 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22695 case "$ac_file" in
22696 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22697 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22698 *) ac_file_in="${ac_file}.in" ;;
22699 esac
22701 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22703 # Remove last slash and all that follows it. Not all systems have dirname.
22704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22706 # The file is in a subdirectory.
22707 test ! -d "$ac_dir" && mkdir "$ac_dir"
22708 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22709 # A "../" for each directory in $ac_dir_suffix.
22710 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22711 else
22712 ac_dir_suffix= ac_dots=
22715 case "$ac_given_srcdir" in
22716 .) srcdir=.
22717 if test -z "$ac_dots"; then top_srcdir=.
22718 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22719 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22720 *) # Relative path.
22721 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22722 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22723 esac
22725 case "$ac_given_INSTALL" in
22726 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22727 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22728 esac
22730 echo creating "$ac_file"
22731 rm -f "$ac_file"
22732 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22733 case "$ac_file" in
22734 *Makefile*) ac_comsub="1i\\
22735 # $configure_input" ;;
22736 *) ac_comsub= ;;
22737 esac
22739 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22740 sed -e "$ac_comsub
22741 s%@configure_input@%$configure_input%g
22742 s%@srcdir@%$srcdir%g
22743 s%@top_srcdir@%$top_srcdir%g
22744 s%@INSTALL@%$INSTALL%g
22745 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22746 fi; done
22747 rm -f conftest.s*
22749 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22750 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22752 # ac_d sets the value in "#define NAME VALUE" lines.
22753 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22754 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22755 ac_dC='\3'
22756 ac_dD='%g'
22757 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22758 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22759 ac_uB='\([ ]\)%\1#\2define\3'
22760 ac_uC=' '
22761 ac_uD='\4%g'
22762 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22763 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22764 ac_eB='$%\1#\2define\3'
22765 ac_eC=' '
22766 ac_eD='%g'
22768 if test "${CONFIG_HEADERS+set}" != set; then
22770 cat >> $CONFIG_STATUS <<EOF
22771 CONFIG_HEADERS="config.h"
22773 cat >> $CONFIG_STATUS <<\EOF
22775 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22777 case "$ac_file" in
22778 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22779 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22780 *) ac_file_in="${ac_file}.in" ;;
22781 esac
22783 echo creating $ac_file
22785 rm -f conftest.frag conftest.in conftest.out
22786 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22787 cat $ac_file_inputs > conftest.in
22791 # Transform confdefs.h into a sed script conftest.vals that substitutes
22792 # the proper values into config.h.in to produce config.h. And first:
22793 # Protect against being on the right side of a sed subst in config.status.
22794 # Protect against being in an unquoted here document in config.status.
22795 rm -f conftest.vals
22796 cat > conftest.hdr <<\EOF
22797 s/[\\&%]/\\&/g
22798 s%[\\$`]%\\&%g
22799 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22800 s%ac_d%ac_u%gp
22801 s%ac_u%ac_e%gp
22803 sed -n -f conftest.hdr confdefs.h > conftest.vals
22804 rm -f conftest.hdr
22806 # This sed command replaces #undef with comments. This is necessary, for
22807 # example, in the case of _POSIX_SOURCE, which is predefined and required
22808 # on some systems where configure will not decide to define it.
22809 cat >> conftest.vals <<\EOF
22810 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22813 # Break up conftest.vals because some shells have a limit on
22814 # the size of here documents, and old seds have small limits too.
22816 rm -f conftest.tail
22817 while :
22819 ac_lines=`grep -c . conftest.vals`
22820 # grep -c gives empty output for an empty file on some AIX systems.
22821 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22822 # Write a limited-size here document to conftest.frag.
22823 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22824 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22825 echo 'CEOF
22826 sed -f conftest.frag conftest.in > conftest.out
22827 rm -f conftest.in
22828 mv conftest.out conftest.in
22829 ' >> $CONFIG_STATUS
22830 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22831 rm -f conftest.vals
22832 mv conftest.tail conftest.vals
22833 done
22834 rm -f conftest.vals
22836 cat >> $CONFIG_STATUS <<\EOF
22837 rm -f conftest.frag conftest.h
22838 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22839 cat conftest.in >> conftest.h
22840 rm -f conftest.in
22841 if cmp -s $ac_file conftest.h 2>/dev/null; then
22842 echo "$ac_file is unchanged"
22843 rm -f conftest.h
22844 else
22845 # Remove last slash and all that follows it. Not all systems have dirname.
22846 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22848 # The file is in a subdirectory.
22849 test ! -d "$ac_dir" && mkdir "$ac_dir"
22851 rm -f $ac_file
22852 mv conftest.h $ac_file
22854 fi; done
22858 cat >> $CONFIG_STATUS <<EOF
22859 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22860 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
22863 cat >> $CONFIG_STATUS <<\EOF
22864 srcdir=$ac_given_srcdir
22865 while test -n "$ac_sources"; do
22866 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22867 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22869 echo "linking $srcdir/$ac_source to $ac_dest"
22871 if test ! -r $srcdir/$ac_source; then
22872 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22874 rm -f $ac_dest
22876 # Make relative symlinks.
22877 # Remove last slash and all that follows it. Not all systems have dirname.
22878 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22879 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22880 # The dest file is in a subdirectory.
22881 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22882 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22883 # A "../" for each directory in $ac_dest_dir_suffix.
22884 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22885 else
22886 ac_dest_dir_suffix= ac_dots=
22889 case "$srcdir" in
22890 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22891 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22892 esac
22894 # Make a symlink if possible; otherwise try a hard link.
22895 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22896 ln $srcdir/$ac_source $ac_dest; then :
22897 else
22898 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22900 done
22902 cat >> $CONFIG_STATUS <<EOF
22904 srcdir=${srcdir}
22905 host=${host}
22906 target=${target}
22907 with_multisubdir=${with_multisubdir}
22908 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22909 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22910 glibcpp_basedir=${glibcpp_basedir}
22911 CC="${CC}"
22912 CXX="${CXX}"
22915 cat >> $CONFIG_STATUS <<\EOF
22916 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22917 if test -n "$CONFIG_FILES"; then
22918 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22919 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22920 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22921 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22923 chmod +x mkcheck
22924 chmod +x testsuite_flags
22926 exit 0
22928 chmod +x $CONFIG_STATUS
22929 rm -fr confdefs* $ac_clean_files
22930 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22934 # Sanity checking & User-visible messages.
22935 # Checks down here, otherwise they get scrolled off before
22936 # the user will notice.
22938 # Trying to get more people to read documentation. Possibly remove
22939 # check and warn all the time. There is no "informational" AC_MSG_
22940 # macro, so these are going to be printed even when --quiet/--silent
22941 # is given.
22942 if test ! -f stamp-sanity-warned; then
22943 touch stamp-sanity-warned
22944 echo ""
22945 echo "Please make certain that you read the installation information here:"
22946 echo " faster => ${srcdir}/docs/html/install.html"
22947 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22948 echo ""
22949 echo "and the configuration information here:"
22950 echo " faster => ${srcdir}/docs/html/configopts.html"
22951 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22952 echo ""
22953 echo "before proceeding with ${_cv_gnu_make_command}."
22954 echo ""