2002-10-08 Aldy Hernandez <aldyh@redhat.com>
[official-gcc.git] / libstdc++-v3 / configure
blobfd0c325cd0132d5b104193dd09c8ad2ed06c3eeb
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
826 # Export build and source directories.
827 # These need to be absolute paths, yet at the same time need to
828 # canonicalize only relative paths, because then amd will not unmount
829 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830 glibcpp_builddir=`${PWDCMD-pwd}`
831 case $srcdir in
832 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834 esac
840 for ac_prog in gawk mawk nawk awk
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 if test -n "$AWK"; then
850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 ac_dummy="$PATH"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_AWK="$ac_prog"
858 break
860 done
861 IFS="$ac_save_ifs"
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866 echo "$ac_t""$AWK" 1>&6
867 else
868 echo "$ac_t""no" 1>&6
871 test -n "$AWK" && break
872 done
874 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
875 # be 'cp -p' if linking isn't available. Uncomment the next line to
876 # force a particular method.
877 #ac_cv_prog_LN_S='cp -p'
878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
882 else
883 rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886 rm -f conftestdata
887 ac_cv_prog_LN_S="ln -s"
888 else
889 ac_cv_prog_LN_S=ln
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894 echo "$ac_t""yes" 1>&6
895 else
896 echo "$ac_t""no" 1>&6
900 # We use these options to decide which functions to include.
901 # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903 withval="$with_target_subdir"
907 # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909 withval="$with_cross_host"
914 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
917 # Never versions of autoconf add an underscore to these functions.
918 # Prevent future problems ...
924 # AC_PROG_CC
925 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
926 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
927 # are probably using a cross compiler, which will not be able to fully
928 # link an executable. This is addressed in later versions of autoconf.
933 # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939 else
940 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 ac_dummy="$PATH"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_CC="gcc"
949 break
951 done
952 IFS="$ac_save_ifs"
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
958 else
959 echo "$ac_t""no" 1>&6
962 if test -z "$CC"; then
963 # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 if test -n "$CC"; then
971 ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 ac_prog_rejected=no
975 ac_dummy="$PATH"
976 for ac_dir in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir=.
978 if test -f $ac_dir/$ac_word; then
979 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980 ac_prog_rejected=yes
981 continue
983 ac_cv_prog_CC="cc"
984 break
986 done
987 IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989 # We found a bogon in the path, so make sure we never use it.
990 set dummy $ac_cv_prog_CC
991 shift
992 if test $# -gt 0; then
993 # We chose a different compiler from the bogus one.
994 # However, it has the same basename, so the bogon will be chosen
995 # first if we set CC to just the basename; use the full file name.
996 shift
997 set dummy "$ac_dir/$ac_word" "$@"
998 shift
999 ac_cv_prog_CC="$@"
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1007 else
1008 echo "$ac_t""no" 1>&6
1011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021 yes;
1022 #endif
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025 ac_cv_prog_gcc=yes
1026 else
1027 ac_cv_prog_gcc=no
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1033 if test $ac_cv_prog_gcc = yes; then
1034 GCC=yes
1035 ac_test_CFLAGS="${CFLAGS+set}"
1036 ac_save_CFLAGS="$CFLAGS"
1037 CFLAGS=
1038 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045 ac_cv_prog_cc_g=yes
1046 else
1047 ac_cv_prog_cc_g=no
1049 rm -f conftest*
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054 if test "$ac_test_CFLAGS" = set; then
1055 CFLAGS="$ac_save_CFLAGS"
1056 elif test $ac_cv_prog_cc_g = yes; then
1057 CFLAGS="-g -O2"
1058 else
1059 CFLAGS="-O2"
1061 else
1062 GCC=
1063 test "${CFLAGS+set}" = set || CFLAGS="-g"
1067 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1068 # will try to link in libstdc++.
1072 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073 # flags that come in CXX while configuring libstdc++. They're different
1074 # from those used for all other target libraries. If CXX is set in
1075 # the environment, respect that here.
1076 glibcpp_CXX=$CXX
1077 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$glibcpp_CXX"; then
1087 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_glibcpp_CXX="$ac_prog"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103 echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1113 CXX=$glibcpp_CXX
1114 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121 cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123 yes;
1124 #endif
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127 ac_cv_prog_gxx=yes
1128 else
1129 ac_cv_prog_gxx=no
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1135 if test $ac_cv_prog_gxx = yes; then
1136 GXX=yes
1137 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138 ac_save_CXXFLAGS="$CXXFLAGS"
1139 CXXFLAGS=
1140 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147 ac_cv_prog_cxx_g=yes
1148 else
1149 ac_cv_prog_cxx_g=no
1151 rm -f conftest*
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156 if test "$ac_test_CXXFLAGS" = set; then
1157 CXXFLAGS="$ac_save_CXXFLAGS"
1158 elif test $ac_cv_prog_cxx_g = yes; then
1159 CXXFLAGS="-g -O2"
1160 else
1161 CXXFLAGS="-O2"
1163 else
1164 GXX=
1165 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169 # For directory versioning (e.g., headers) and other variables.
1170 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172 gcc_version=`$glibcpp_CXX -dumpversion`
1173 echo "$ac_t""$gcc_version" 1>&6
1175 # For some reason, gettext needs this.
1177 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1191 char strerror();
1193 int main() {
1194 strerror()
1195 ; return 0; }
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198 rm -rf conftest*
1199 eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 rm -rf conftest*
1204 eval "ac_cv_lib_$ac_lib_var=no"
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1212 LIBS="$LIBS -lcposix"
1213 else
1214 echo "$ac_t""no" 1>&6
1220 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 if test -n "$AS"; then
1228 ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 ac_dummy="$PATH"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_AS="${ac_tool_prefix}as"
1236 break
1238 done
1239 IFS="$ac_save_ifs"
1240 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245 echo "$ac_t""$AS" 1>&6
1246 else
1247 echo "$ac_t""no" 1>&6
1252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 if test -n "$AR"; then
1260 ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1263 ac_dummy="$PATH"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_AR="${ac_tool_prefix}ar"
1268 break
1270 done
1271 IFS="$ac_save_ifs"
1272 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277 echo "$ac_t""$AR" 1>&6
1278 else
1279 echo "$ac_t""no" 1>&6
1284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291 if test -n "$RANLIB"; then
1292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1295 ac_dummy="$PATH"
1296 for ac_dir in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir=.
1298 if test -f $ac_dir/$ac_word; then
1299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300 break
1302 done
1303 IFS="$ac_save_ifs"
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308 echo "$ac_t""$RANLIB" 1>&6
1309 else
1310 echo "$ac_t""no" 1>&6
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316 # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323 if test -n "$RANLIB"; then
1324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1327 ac_dummy="$PATH"
1328 for ac_dir in $ac_dummy; do
1329 test -z "$ac_dir" && ac_dir=.
1330 if test -f $ac_dir/$ac_word; then
1331 ac_cv_prog_RANLIB="ranlib"
1332 break
1334 done
1335 IFS="$ac_save_ifs"
1336 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341 echo "$ac_t""$RANLIB" 1>&6
1342 else
1343 echo "$ac_t""no" 1>&6
1346 else
1347 RANLIB="ranlib-not-found-in-path-error"
1351 # Find a good install program. We prefer a C program (faster),
1352 # so one script is as good as another. But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1369 for ac_dir in $PATH; do
1370 # Account for people who put trailing slashes in PATH elements.
1371 case "$ac_dir/" in
1372 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1376 # by default.
1377 for ac_prog in ginstall scoinst install; do
1378 if test -f $ac_dir/$ac_prog; then
1379 if test $ac_prog = install &&
1380 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381 # AIX install. It has an incompatible calling convention.
1383 else
1384 ac_cv_path_install="$ac_dir/$ac_prog -c"
1385 break 2
1388 done
1390 esac
1391 done
1392 IFS="$ac_save_IFS"
1395 if test "${ac_cv_path_install+set}" = set; then
1396 INSTALL="$ac_cv_path_install"
1397 else
1398 # As a last resort, use the slow shell script. We don't cache a
1399 # path for INSTALL within a source directory, because that will
1400 # break other packages using the cache if that directory is
1401 # removed, or if the path is relative.
1402 INSTALL="$ac_install_sh"
1405 echo "$ac_t""$INSTALL" 1>&6
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1416 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420 enableval="$enable_maintainer_mode"
1421 USE_MAINTAINER_MODE=$enableval
1422 else
1423 USE_MAINTAINER_MODE=no
1426 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1429 if test $USE_MAINTAINER_MODE = yes; then
1430 MAINTAINER_MODE_TRUE=
1431 MAINTAINER_MODE_FALSE='#'
1432 else
1433 MAINTAINER_MODE_TRUE='#'
1434 MAINTAINER_MODE_FALSE=
1436 MAINT=$MAINTAINER_MODE_TRUE
1440 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1441 # at least currently, we never actually build a program, so we never
1442 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1443 # fails, because we are probably configuring with a cross compiler
1444 # which can't create executables. So we include AC_EXEEXT to keep
1445 # automake happy, but we don't execute it, since we don't care about
1446 # the result.
1447 if false; then
1448 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449 # to nothing, so nothing would remain between `then' and `fi' if it
1450 # were not for the `:' below.
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460 ac_cv_exeext=.exe
1461 else
1462 rm -f conftest*
1463 echo 'int main () { return 0; }' > conftest.$ac_ext
1464 ac_cv_exeext=
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466 for file in conftest.*; do
1467 case $file in
1468 *.c | *.o | *.obj) ;;
1469 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470 esac
1471 done
1472 else
1473 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1475 rm -f conftest*
1476 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1487 case ${glibcpp_basedir} in
1488 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490 esac
1492 # Find platform-specific directories containing configuration info. In
1493 # addition to possibly modifying the same flags, it also sets up symlinks.
1495 . ${glibcpp_basedir}/configure.target
1496 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether build environment is sane" >&5
1503 # Just in case
1504 sleep 1
1505 echo timestamp > conftestfile
1506 # Do `set' in a subshell so we don't clobber the current shell's
1507 # arguments. Must try -L first in case configure is actually a
1508 # symlink; some systems play weird games with the mod time of symlinks
1509 # (eg FreeBSD returns the mod time of the symlink's containing
1510 # directory).
1511 if (
1512 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1513 if test "$*" = "X"; then
1514 # -L didn't work.
1515 set X `ls -t $srcdir/configure conftestfile`
1517 if test "$*" != "X $srcdir/configure conftestfile" \
1518 && test "$*" != "X conftestfile $srcdir/configure"; then
1520 # If neither matched, then we have a broken ls. This can happen
1521 # if, for instance, CONFIG_SHELL is bash and it inherits a
1522 # broken ls alias from the environment. This has actually
1523 # happened. Such a system could not be considered "sane".
1524 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1525 alias in your environment" 1>&2; exit 1; }
1528 test "$2" = conftestfile
1530 then
1531 # Ok.
1533 else
1534 { echo "configure: error: newly created file is older than distributed files!
1535 Check your system clock" 1>&2; exit 1; }
1537 rm -f conftest*
1538 echo "$ac_t""yes" 1>&6
1539 if test "$program_transform_name" = s,x,x,; then
1540 program_transform_name=
1541 else
1542 # Double any \ or $. echo might interpret backslashes.
1543 cat <<\EOF_SED > conftestsed
1544 s,\\,\\\\,g; s,\$,$$,g
1545 EOF_SED
1546 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1547 rm -f conftestsed
1549 test "$program_prefix" != NONE &&
1550 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1551 # Use a double $ so make ignores it.
1552 test "$program_suffix" != NONE &&
1553 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1555 # sed with no file args requires a program.
1556 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ${MAKE-make} sets \${MAKE}" >&5
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 cat > conftestmake <<\EOF
1565 all:
1566 @echo 'ac_maketemp="${MAKE}"'
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571 eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573 eval ac_cv_prog_make_${ac_make}_set=no
1575 rm -f conftestmake
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 SET_MAKE=
1580 else
1581 echo "$ac_t""no" 1>&6
1582 SET_MAKE="MAKE=${MAKE-make}"
1586 PACKAGE=$PACKAGE
1588 VERSION=$gcc_version
1590 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1591 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1593 cat >> confdefs.h <<EOF
1594 #define PACKAGE "$PACKAGE"
1597 cat >> confdefs.h <<EOF
1598 #define VERSION "$VERSION"
1603 missing_dir=`cd $ac_aux_dir && pwd`
1604 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1605 echo "configure:1606: checking for working aclocal" >&5
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf. Sigh.
1609 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1610 ACLOCAL=aclocal
1611 echo "$ac_t""found" 1>&6
1612 else
1613 ACLOCAL="$missing_dir/missing aclocal"
1614 echo "$ac_t""missing" 1>&6
1617 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working autoconf" >&5
1619 # Run test in a subshell; some versions of sh will print an error if
1620 # an executable is not found, even if stderr is redirected.
1621 # Redirect stdin to placate older versions of autoconf. Sigh.
1622 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1623 AUTOCONF=autoconf
1624 echo "$ac_t""found" 1>&6
1625 else
1626 AUTOCONF="$missing_dir/missing autoconf"
1627 echo "$ac_t""missing" 1>&6
1630 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working automake" >&5
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf. Sigh.
1635 if (automake --version) < /dev/null > /dev/null 2>&1; then
1636 AUTOMAKE=automake
1637 echo "$ac_t""found" 1>&6
1638 else
1639 AUTOMAKE="$missing_dir/missing automake"
1640 echo "$ac_t""missing" 1>&6
1643 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1644 echo "configure:1645: checking for working autoheader" >&5
1645 # Run test in a subshell; some versions of sh will print an error if
1646 # an executable is not found, even if stderr is redirected.
1647 # Redirect stdin to placate older versions of autoconf. Sigh.
1648 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1649 AUTOHEADER=autoheader
1650 echo "$ac_t""found" 1>&6
1651 else
1652 AUTOHEADER="$missing_dir/missing autoheader"
1653 echo "$ac_t""missing" 1>&6
1656 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working makeinfo" >&5
1658 # Run test in a subshell; some versions of sh will print an error if
1659 # an executable is not found, even if stderr is redirected.
1660 # Redirect stdin to placate older versions of autoconf. Sigh.
1661 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1662 MAKEINFO=makeinfo
1663 echo "$ac_t""found" 1>&6
1664 else
1665 MAKEINFO="$missing_dir/missing makeinfo"
1666 echo "$ac_t""missing" 1>&6
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677 enableval="$enable_shared"
1678 p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1683 enable_shared=no
1684 # Look at the argument we got. We use all the common list separators.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686 for pkg in $enableval; do
1687 if test "X$pkg" = "X$p"; then
1688 enable_shared=yes
1690 done
1691 IFS="$ac_save_ifs"
1693 esac
1694 else
1695 enable_shared=yes
1698 # Check whether --enable-static or --disable-static was given.
1699 if test "${enable_static+set}" = set; then
1700 enableval="$enable_static"
1701 p=${PACKAGE-default}
1702 case $enableval in
1703 yes) enable_static=yes ;;
1704 no) enable_static=no ;;
1706 enable_static=no
1707 # Look at the argument we got. We use all the common list separators.
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1709 for pkg in $enableval; do
1710 if test "X$pkg" = "X$p"; then
1711 enable_static=yes
1713 done
1714 IFS="$ac_save_ifs"
1716 esac
1717 else
1718 enable_static=yes
1721 # Check whether --enable-fast-install or --disable-fast-install was given.
1722 if test "${enable_fast_install+set}" = set; then
1723 enableval="$enable_fast_install"
1724 p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_fast_install=yes ;;
1727 no) enable_fast_install=no ;;
1729 enable_fast_install=no
1730 # Look at the argument we got. We use all the common list separators.
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1732 for pkg in $enableval; do
1733 if test "X$pkg" = "X$p"; then
1734 enable_fast_install=yes
1736 done
1737 IFS="$ac_save_ifs"
1739 esac
1740 else
1741 enable_fast_install=yes
1744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1745 if test "${with_gnu_ld+set}" = set; then
1746 withval="$with_gnu_ld"
1747 test "$withval" = no || with_gnu_ld=yes
1748 else
1749 with_gnu_ld=no
1752 ac_prog=ld
1753 if test "$GCC" = yes; then
1754 # Check if gcc -print-prog-name=ld gives a path.
1755 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ld used by GCC" >&5
1757 case $host in
1758 *-*-mingw*)
1759 # gcc leaves a trailing carriage return which upsets mingw
1760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1763 esac
1764 case $ac_prog in
1765 # Accept absolute paths.
1766 [\\/]* | [A-Za-z]:[\\/]*)
1767 re_direlt='/[^/][^/]*/\.\./'
1768 # Canonicalize the path of ld
1769 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1770 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1771 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772 done
1773 test -z "$LD" && LD="$ac_prog"
1776 # If it fails, then pretend we aren't using GCC.
1777 ac_prog=ld
1780 # If it is relative, then search for the first ld in PATH.
1781 with_gnu_ld=unknown
1783 esac
1784 elif test "$with_gnu_ld" = yes; then
1785 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for GNU ld" >&5
1787 else
1788 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for non-GNU ld" >&5
1791 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794 if test -z "$LD"; then
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796 for ac_dir in $PATH; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1799 lt_cv_path_LD="$ac_dir/$ac_prog"
1800 # Check to see if the program is GNU ld. I'd rather use --version,
1801 # but apparently some GNU ld's only accept -v.
1802 # Break only if it was the GNU/non-GNU ld that we prefer.
1803 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1804 test "$with_gnu_ld" != no && break
1805 else
1806 test "$with_gnu_ld" != yes && break
1809 done
1810 IFS="$ac_save_ifs"
1811 else
1812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1816 LD="$lt_cv_path_LD"
1817 if test -n "$LD"; then
1818 echo "$ac_t""$LD" 1>&6
1819 else
1820 echo "$ac_t""no" 1>&6
1822 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1823 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking if the linker ($LD) is GNU ld" >&5
1825 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1830 lt_cv_prog_gnu_ld=yes
1831 else
1832 lt_cv_prog_gnu_ld=no
1836 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1837 with_gnu_ld=$lt_cv_prog_gnu_ld
1840 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $LD option to reload object files" >&5
1842 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845 lt_cv_ld_reload_flag='-r'
1848 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1849 reload_flag=$lt_cv_ld_reload_flag
1850 test -n "$reload_flag" && reload_flag=" $reload_flag"
1852 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for BSD-compatible nm" >&5
1854 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 if test -n "$NM"; then
1858 # Let the user override the test.
1859 lt_cv_path_NM="$NM"
1860 else
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863 test -z "$ac_dir" && ac_dir=.
1864 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1865 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1866 # Check to see if the nm accepts a BSD-compat flag.
1867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1868 # nm: unknown option "B" ignored
1869 # Tru64's nm complains that /dev/null is an invalid object file
1870 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1871 lt_cv_path_NM="$tmp_nm -B"
1872 break
1873 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1874 lt_cv_path_NM="$tmp_nm -p"
1875 break
1876 else
1877 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1878 continue # so that we can try to find one that supports BSD flags
1881 done
1882 IFS="$ac_save_ifs"
1883 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1887 NM="$lt_cv_path_NM"
1888 echo "$ac_t""$NM" 1>&6
1890 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1891 echo "configure:1892: checking how to recognise dependant libraries" >&5
1892 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895 lt_cv_file_magic_cmd='$MAGIC_CMD'
1896 lt_cv_file_magic_test_file=
1897 lt_cv_deplibs_check_method='unknown'
1898 # Need to set the preceding variable on all platforms that support
1899 # interlibrary dependencies.
1900 # 'none' -- dependencies not supported.
1901 # `unknown' -- same as none, but documents that we really don't know.
1902 # 'pass_all' -- all dependencies passed with no checks.
1903 # 'test_compile' -- check by making test program.
1904 # 'file_magic [regex]' -- check by looking for files in library path
1905 # which responds to the $file_magic_cmd with a given egrep regex.
1906 # If you have `file' or equivalent on your system and you're not sure
1907 # whether `pass_all' will *always* work, you probably want this one.
1909 case $host_os in
1910 aix*)
1911 lt_cv_deplibs_check_method=pass_all
1914 beos*)
1915 lt_cv_deplibs_check_method=pass_all
1918 bsdi4*)
1919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1920 lt_cv_file_magic_cmd='/usr/bin/file -L'
1921 lt_cv_file_magic_test_file=/shlib/libc.so
1924 cygwin* | mingw* |pw32*)
1925 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1926 lt_cv_file_magic_cmd='$OBJDUMP -f'
1929 darwin* | rhapsody*)
1930 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1931 lt_cv_file_magic_cmd='/usr/bin/file -L'
1932 case "$host_os" in
1933 rhapsody* | darwin1.012)
1934 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1936 *) # Darwin 1.3 on
1937 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1939 esac
1942 freebsd* )
1943 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1944 case $host_cpu in
1945 i*86 )
1946 # Not sure whether the presence of OpenBSD here was a mistake.
1947 # Let's accept both of them until this is cleared up.
1948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1949 lt_cv_file_magic_cmd=/usr/bin/file
1950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1952 esac
1953 else
1954 lt_cv_deplibs_check_method=pass_all
1958 gnu*)
1959 lt_cv_deplibs_check_method=pass_all
1962 hpux10.20*|hpux11*)
1963 case $host_cpu in
1964 hppa*)
1965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1966 lt_cv_file_magic_cmd=/usr/bin/file
1967 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1969 ia64*)
1970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1974 esac
1977 irix5* | irix6*)
1978 case $host_os in
1979 irix5*)
1980 # this will be overridden with pass_all, but let us keep it just in case
1981 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1984 case $LD in
1985 *-32|*"-32 ") libmagic=32-bit;;
1986 *-n32|*"-n32 ") libmagic=N32;;
1987 *-64|*"-64 ") libmagic=64-bit;;
1988 *) libmagic=never-match;;
1989 esac
1990 # this will be overridden with pass_all, but let us keep it just in case
1991 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1993 esac
1994 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1995 lt_cv_deplibs_check_method=pass_all
1998 # This must be Linux ELF.
1999 linux-gnu*)
2000 case $host_cpu in
2001 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2002 lt_cv_deplibs_check_method=pass_all ;;
2004 # glibc up to 2.1.1 does not perform some relocations on ARM
2005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006 esac
2007 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2010 netbsd*)
2011 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2012 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2013 else
2014 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2018 newsos6)
2019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2020 lt_cv_file_magic_cmd=/usr/bin/file
2021 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2024 osf3* | osf4* | osf5*)
2025 # this will be overridden with pass_all, but let us keep it just in case
2026 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2027 lt_cv_file_magic_test_file=/shlib/libc.so
2028 lt_cv_deplibs_check_method=pass_all
2031 sco3.2v5*)
2032 lt_cv_deplibs_check_method=pass_all
2035 solaris*)
2036 lt_cv_deplibs_check_method=pass_all
2037 lt_cv_file_magic_test_file=/lib/libc.so
2040 sysv5uw[78]* | sysv4*uw2*)
2041 lt_cv_deplibs_check_method=pass_all
2044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2045 case $host_vendor in
2046 ncr)
2047 lt_cv_deplibs_check_method=pass_all
2049 motorola)
2050 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]'
2051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2053 esac
2055 esac
2059 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2060 file_magic_cmd=$lt_cv_file_magic_cmd
2061 deplibs_check_method=$lt_cv_deplibs_check_method
2063 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2064 echo "configure:2065: checking for object suffix" >&5
2065 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068 rm -f conftest*
2069 echo 'int i = 1;' > conftest.$ac_ext
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 for ac_file in conftest.*; do
2072 case $ac_file in
2073 *.c) ;;
2074 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2075 esac
2076 done
2077 else
2078 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2080 rm -f conftest*
2083 echo "$ac_t""$ac_cv_objext" 1>&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$ac_cv_objext
2087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2089 # Only perform the check for file, if the check method requires it
2090 case $deplibs_check_method in
2091 file_magic*)
2092 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2093 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for ${ac_tool_prefix}file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098 case $MAGIC_CMD in
2100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2102 ?:/*)
2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2106 ac_save_MAGIC_CMD="$MAGIC_CMD"
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2108 ac_dummy="/usr/bin:$PATH"
2109 for ac_dir in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/${ac_tool_prefix}file; then
2112 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2113 if test -n "$file_magic_test_file"; then
2114 case $deplibs_check_method in
2115 "file_magic "*)
2116 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119 egrep "$file_magic_regex" > /dev/null; then
2121 else
2122 cat <<EOF 1>&2
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such. This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem. Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2134 fi ;;
2135 esac
2137 break
2139 done
2140 IFS="$ac_save_ifs"
2141 MAGIC_CMD="$ac_save_MAGIC_CMD"
2143 esac
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148 echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2153 if test -z "$lt_cv_path_MAGIC_CMD"; then
2154 if test -n "$ac_tool_prefix"; then
2155 echo $ac_n "checking for file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 case $MAGIC_CMD in
2162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2164 ?:/*)
2165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2168 ac_save_MAGIC_CMD="$MAGIC_CMD"
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2170 ac_dummy="/usr/bin:$PATH"
2171 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/file; then
2174 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2175 if test -n "$file_magic_test_file"; then
2176 case $deplibs_check_method in
2177 "file_magic "*)
2178 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181 egrep "$file_magic_regex" > /dev/null; then
2183 else
2184 cat <<EOF 1>&2
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such. This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem. Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2196 fi ;;
2197 esac
2199 break
2201 done
2202 IFS="$ac_save_ifs"
2203 MAGIC_CMD="$ac_save_MAGIC_CMD"
2205 esac
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210 echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2215 else
2216 MAGIC_CMD=:
2222 esac
2224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231 if test -n "$RANLIB"; then
2232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2233 else
2234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2235 ac_dummy="$PATH"
2236 for ac_dir in $ac_dummy; do
2237 test -z "$ac_dir" && ac_dir=.
2238 if test -f $ac_dir/$ac_word; then
2239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2240 break
2242 done
2243 IFS="$ac_save_ifs"
2246 RANLIB="$ac_cv_prog_RANLIB"
2247 if test -n "$RANLIB"; then
2248 echo "$ac_t""$RANLIB" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2254 if test -z "$ac_cv_prog_RANLIB"; then
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "ranlib", so it can be a program name with args.
2257 set dummy ranlib; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 if test -n "$RANLIB"; then
2264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 else
2266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2267 ac_dummy="$PATH"
2268 for ac_dir in $ac_dummy; do
2269 test -z "$ac_dir" && ac_dir=.
2270 if test -f $ac_dir/$ac_word; then
2271 ac_cv_prog_RANLIB="ranlib"
2272 break
2274 done
2275 IFS="$ac_save_ifs"
2276 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2286 else
2287 RANLIB=":"
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298 if test -n "$STRIP"; then
2299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2302 ac_dummy="$PATH"
2303 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 if test -f $ac_dir/$ac_word; then
2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307 break
2309 done
2310 IFS="$ac_save_ifs"
2313 STRIP="$ac_cv_prog_STRIP"
2314 if test -n "$STRIP"; then
2315 echo "$ac_t""$STRIP" 1>&6
2316 else
2317 echo "$ac_t""no" 1>&6
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330 if test -n "$STRIP"; then
2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 ac_dummy="$PATH"
2335 for ac_dir in $ac_dummy; do
2336 test -z "$ac_dir" && ac_dir=.
2337 if test -f $ac_dir/$ac_word; then
2338 ac_cv_prog_STRIP="strip"
2339 break
2341 done
2342 IFS="$ac_save_ifs"
2343 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2353 else
2354 STRIP=":"
2359 # Check for any special flags to pass to ltconfig.
2360 libtool_flags="--cache-file=$cache_file"
2361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2363 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2364 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2365 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2366 libtool_flags="$libtool_flags --enable-dlopen"
2368 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2369 if test "${enable_libtool_lock+set}" = set; then
2370 enableval="$enable_libtool_lock"
2374 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2375 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2377 # Check whether --with-pic or --without-pic was given.
2378 if test "${with_pic+set}" = set; then
2379 withval="$with_pic"
2380 pic_mode="$withval"
2381 else
2382 pic_mode=default
2385 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2386 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2388 # Some flags need to be propagated to the compiler or linker for good
2389 # libtool support.
2390 case $host in
2391 *-*-irix6*)
2392 # Find out which ABI we are using.
2393 echo '#line 2394 "configure"' > conftest.$ac_ext
2394 if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395 case `/usr/bin/file conftest.$ac_objext` in
2396 *32-bit*)
2397 LD="${LD-ld} -32"
2399 *N32*)
2400 LD="${LD-ld} -n32"
2402 *64-bit*)
2403 LD="${LD-ld} -64"
2405 esac
2407 rm -rf conftest*
2410 ia64-*-hpux*)
2411 # Find out which ABI we are using.
2412 echo 'int i;' > conftest.$ac_ext
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 case "`/usr/bin/file conftest.o`" in
2415 *ELF-32*)
2416 HPUX_IA64_MODE="32"
2418 *ELF-64*)
2419 HPUX_IA64_MODE="64"
2421 esac
2423 rm -rf conftest*
2426 *-*-sco3.2v5*)
2427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428 SAVE_CFLAGS="$CFLAGS"
2429 CFLAGS="$CFLAGS -belf"
2430 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2436 ac_ext=c
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cc_cross
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2447 int main() {
2449 ; return 0; }
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452 rm -rf conftest*
2453 lt_cv_cc_needs_belf=yes
2454 else
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -rf conftest*
2458 lt_cv_cc_needs_belf=no
2460 rm -f conftest*
2461 ac_ext=c
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling=$ac_cv_prog_cc_cross
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473 CFLAGS="$SAVE_CFLAGS"
2478 esac
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486 ac_ext=C
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cxx_cross
2492 CXXCPP="${CXX-g++} -E"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <stdlib.h>
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2503 else
2504 echo "$ac_err" >&5
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 CXXCPP=/lib/cpp
2510 rm -f conftest*
2511 ac_cv_prog_CXXCPP="$CXXCPP"
2512 ac_ext=c
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2520 CXXCPP="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache <<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs. It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already. You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2546 (set) 2>&1 |
2547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2548 *ac_space=\ *)
2549 # `set' does not quote correctly, so add quotes (double-quote substitution
2550 # turns \\\\ into \\, and sed turns \\ into \).
2551 sed -n \
2552 -e "s/'/'\\\\''/g" \
2553 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2556 # `set' quotes correctly as required by POSIX, so do not add quotes.
2557 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2559 esac >> confcache
2560 if cmp -s $cache_file confcache; then
2562 else
2563 if test -w $cache_file; then
2564 echo "updating cache $cache_file"
2565 cat confcache > $cache_file
2566 else
2567 echo "not updating unwritable cache $cache_file"
2570 rm -f confcache
2573 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2574 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2575 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2577 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2578 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2579 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586 echo "loading cache $cache_file"
2587 . $cache_file
2588 else
2589 echo "creating cache $cache_file"
2590 > $cache_file
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2597 # Always use our own libtool.
2598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2606 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2607 lt_save_CC="$CC"
2608 lt_save_CFLAGS="$CFLAGS"
2609 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2610 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2611 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2612 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2613 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2614 deplibs_check_method="$deplibs_check_method" \
2615 file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2617 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2618 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2619 CC="$lt_save_CC"
2620 CFLAGS="$lt_save_CFLAGS"
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2634 # Check for c++ or library specific bits that don't require linking.
2635 #GLIBCPP_CHECK_COMPILER_VERSION
2636 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2637 echo "configure:2638: checking for GNU make" >&5
2638 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641 _cv_gnu_make_command='' ;
2642 for a in "${MAKE-make}" make gmake gnumake ; do
2643 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2644 then
2645 _cv_gnu_make_command=$a ;
2646 break;
2648 done ;
2652 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2653 if test "x$_cv_gnu_make_command" != "x" ; then
2654 ifGNUmake='' ;
2655 else
2656 ifGNUmake='#' ;
2661 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2662 # Check whether --enable-debug or --disable-debug was given.
2663 if test "${enable_debug+set}" = set; then
2664 enableval="$enable_debug"
2665 case "${enableval}" in
2666 yes) enable_debug=yes ;;
2667 no) enable_debug=no ;;
2668 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2669 esac
2670 else
2671 enable_debug=no
2674 case "${enable_debug}" in
2675 yes)
2676 DEBUG_FLAGS='-O0 -ggdb3'
2678 no)
2679 DEBUG_FLAGS='-g'
2681 esac
2684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2685 echo "configure:2686: checking how to run the C preprocessor" >&5
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2688 CPP=
2690 if test -z "$CPP"; then
2691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694 # This must be in double quotes, not single quotes, because CPP may get
2695 # substituted into the Makefile and "${CC-cc}" will confuse make.
2696 CPP="${CC-cc} -E"
2697 # On the NeXT, cc -E runs the code through the compiler's parser,
2698 # not just through cpp.
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <assert.h>
2703 Syntax Error
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2710 else
2711 echo "$ac_err" >&5
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 CPP="${CC-cc} -E -traditional-cpp"
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <assert.h>
2720 Syntax Error
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2727 else
2728 echo "$ac_err" >&5
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2731 rm -rf conftest*
2732 CPP="${CC-cc} -nologo -E"
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <assert.h>
2737 Syntax Error
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2744 else
2745 echo "$ac_err" >&5
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748 rm -rf conftest*
2749 CPP=/lib/cpp
2751 rm -f conftest*
2753 rm -f conftest*
2755 rm -f conftest*
2756 ac_cv_prog_CPP="$CPP"
2758 CPP="$ac_cv_prog_CPP"
2759 else
2760 ac_cv_prog_CPP="$CPP"
2762 echo "$ac_t""$CPP" 1>&6
2765 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2766 echo "configure:2767: checking for cstdio to use" >&5
2767 # Check whether --enable-cstdio or --disable-cstdio was given.
2768 if test "${enable_cstdio+set}" = set; then
2769 enableval="$enable_cstdio"
2770 if test x$enable_cstdio = xno; then
2771 enable_cstdio=stdio
2773 else
2774 enable_cstdio=stdio
2778 enable_cstdio_flag=$enable_cstdio
2780 case x${enable_cstdio_flag} in
2781 xlibio)
2782 CSTDIO_H=config/io/c_io_libio.h
2783 BASIC_FILE_H=config/io/basic_file_libio.h
2784 BASIC_FILE_CC=config/io/basic_file_libio.cc
2785 echo "$ac_t""libio" 1>&6
2787 # see if we are on a system with libio native (ie, linux)
2788 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for libio.h" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <libio.h>
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2803 rm -rf conftest*
2804 eval "ac_cv_header_$ac_safe=yes"
2805 else
2806 echo "$ac_err" >&5
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 eval "ac_cv_header_$ac_safe=no"
2812 rm -f conftest*
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 has_libio=yes
2817 else
2818 echo "$ac_t""no" 1>&6
2819 has_libio=no
2823 # Need to check and see what version of glibc is being used. If
2824 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2825 # compile most of libio for linux systems.
2826 if test x$has_libio = x"yes"; then
2827 case "$target" in
2828 *-*-linux*)
2829 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2830 echo "configure:2831: checking for glibc version >= 2.2" >&5
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2835 #include <features.h>
2836 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2838 #endif
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842 egrep "ok" >/dev/null 2>&1; then
2843 rm -rf conftest*
2844 glibc_satisfactory=yes
2845 else
2846 rm -rf conftest*
2847 glibc_satisfactory=no
2849 rm -f conftest*
2851 echo "$ac_t""$glibc_satisfactory" 1>&6
2853 esac
2855 # XXX at the moment, admit defeat and force the recompilation
2856 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2857 glibc_satisfactory=no
2859 if test x$glibc_satisfactory = x"yes"; then
2860 need_libio=no
2861 need_wlibio=no
2862 else
2863 need_libio=yes
2864 # bkoz XXX need to add checks to enable this
2865 # pme XXX here's a first pass at such a check
2866 if test x$enable_c_mbchar != xno; then
2867 need_wlibio=yes
2868 else
2869 need_wlibio=no
2873 else
2874 # Using libio, but <libio.h> doesn't exist on the target system. . .
2875 need_libio=yes
2876 # bkoz XXX need to add checks to enable this
2877 # pme XXX here's a first pass at such a check
2878 if test x$enable_c_mbchar != xno; then
2879 need_wlibio=yes
2880 else
2881 need_wlibio=no
2885 xstdio | x | xno | xnone | xyes)
2886 # default
2887 CSTDIO_H=config/io/c_io_stdio.h
2888 BASIC_FILE_H=config/io/basic_file_stdio.h
2889 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2890 echo "$ac_t""stdio" 1>&6
2892 # We're not using stdio.
2893 need_libio=no
2894 need_wlibio=no
2897 echo "$enable_cstdio is an unknown io package" 1>&2
2898 exit 1
2900 esac
2905 # 2000-08-04 bkoz hack
2906 CCODECVT_C=config/io/c_io_libio_codecvt.c
2908 # 2000-08-04 bkoz hack
2912 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2913 GLIBCPP_BUILD_LIBIO_TRUE=
2914 GLIBCPP_BUILD_LIBIO_FALSE='#'
2915 else
2916 GLIBCPP_BUILD_LIBIO_TRUE='#'
2917 GLIBCPP_BUILD_LIBIO_FALSE=
2921 if test "$need_libio" = yes; then
2922 GLIBCPP_NEED_LIBIO_TRUE=
2923 GLIBCPP_NEED_LIBIO_FALSE='#'
2924 else
2925 GLIBCPP_NEED_LIBIO_TRUE='#'
2926 GLIBCPP_NEED_LIBIO_FALSE=
2930 if test "$need_wlibio" = yes; then
2931 GLIBCPP_NEED_WLIBIO_TRUE=
2932 GLIBCPP_NEED_WLIBIO_FALSE='#'
2933 else
2934 GLIBCPP_NEED_WLIBIO_TRUE='#'
2935 GLIBCPP_NEED_WLIBIO_FALSE=
2937 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2938 libio_la=../libio/libio.la
2939 else
2940 libio_la=
2945 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2946 echo "configure:2947: checking for clocale to use" >&5
2947 # Check whether --enable-clocale or --disable-clocale was given.
2948 if test "${enable_clocale+set}" = set; then
2949 enableval="$enable_clocale"
2950 if test x$enable_clocale = xno; then
2951 enable_clocale=no
2953 else
2954 enable_clocale=no
2958 enable_clocale_flag=$enable_clocale
2960 if test x$enable_clocale_flag = xno; then
2961 case x${target_os} in
2962 xlinux* | xgnu*)
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2967 #include <features.h>
2968 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2969 _GLIBCPP_ok
2970 #endif
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2975 rm -rf conftest*
2976 enable_clocale_flag=gnu
2977 else
2978 rm -rf conftest*
2979 enable_clocale_flag=generic
2981 rm -f conftest*
2984 # Test for bugs early in glibc-2.2.x series
2985 if test x$enable_clocale_flag = xgnu; then
2986 if test "$cross_compiling" = yes; then
2987 enable_clocale_flag=generic
2988 else
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2993 #define _GNU_SOURCE 1
2994 #include <locale.h>
2995 #include <string.h>
2996 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2997 extern __typeof(newlocale) __newlocale;
2998 extern __typeof(duplocale) __duplocale;
2999 extern __typeof(strcoll_l) __strcoll_l;
3000 #endif
3001 int main()
3003 const char __one[] = "Äuglein Augmen";
3004 const char __two[] = "Äuglein";
3005 int i;
3006 int j;
3007 __locale_t loc;
3008 __locale_t loc_dup;
3009 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3010 loc_dup = __duplocale(loc);
3011 i = __strcoll_l(__one, __two, loc);
3012 j = __strcoll_l(__one, __two, loc_dup);
3013 return 0;
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3018 then
3019 enable_clocale_flag=gnu
3020 else
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 rm -fr conftest*
3024 enable_clocale_flag=generic
3026 rm -fr conftest*
3031 # ... at some point put __strxfrm_l tests in as well.
3034 enable_clocale_flag=generic
3036 esac
3039 # Check whether --enable-nls or --disable-nls was given.
3040 if test "${enable_nls+set}" = set; then
3041 enableval="$enable_nls"
3043 else
3044 enable_nls=yes
3047 USE_NLS=no
3049 case x${enable_clocale_flag} in
3050 xgeneric)
3051 echo "$ac_t""generic" 1>&6
3053 CLOCALE_H=config/locale/generic/c_locale.h
3054 CLOCALE_CC=config/locale/generic/c_locale.cc
3055 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3056 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3057 CCOLLATE_CC=config/locale/generic/collate_members.cc
3058 CCTYPE_CC=config/locale/generic/ctype_members.cc
3059 CMESSAGES_H=config/locale/generic/messages_members.h
3060 CMESSAGES_CC=config/locale/generic/messages_members.cc
3061 CMONEY_CC=config/locale/generic/monetary_members.cc
3062 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3063 CTIME_CC=config/locale/generic/time_members.cc
3064 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3066 xgnu)
3067 echo "$ac_t""gnu" 1>&6
3069 # Declare intention to use gettext, and add support for specific
3070 # languages.
3071 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3072 ALL_LINGUAS="de fr"
3074 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3075 # Extract the first word of "msgfmt", so it can be a program name with args.
3076 set dummy msgfmt; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082 if test -n "$check_msgfmt"; then
3083 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3084 else
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 ac_dummy="$PATH"
3087 for ac_dir in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_check_msgfmt="yes"
3091 break
3093 done
3094 IFS="$ac_save_ifs"
3095 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3098 check_msgfmt="$ac_cv_prog_check_msgfmt"
3099 if test -n "$check_msgfmt"; then
3100 echo "$ac_t""$check_msgfmt" 1>&6
3101 else
3102 echo "$ac_t""no" 1>&6
3105 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3106 USE_NLS=yes
3108 # Export the build objects.
3109 for ling in $ALL_LINGUAS; do \
3110 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3111 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3112 done
3116 CLOCALE_H=config/locale/gnu/c_locale.h
3117 CLOCALE_CC=config/locale/gnu/c_locale.cc
3118 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3119 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3120 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3121 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3122 CMESSAGES_H=config/locale/gnu/messages_members.h
3123 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3124 CMONEY_CC=config/locale/gnu/monetary_members.cc
3125 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3126 CTIME_CC=config/locale/gnu/time_members.cc
3127 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3129 xieee_1003.1-2001)
3130 echo "$ac_t""generic" 1>&6
3132 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3133 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3134 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3135 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3136 CCOLLATE_CC=config/locale/generic/collate_members.cc
3137 CCTYPE_CC=config/locale/generic/ctype_members.cc
3138 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3139 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3140 CMONEY_CC=config/locale/generic/monetary_members.cc
3141 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3142 CTIME_CC=config/locale/generic/time_members.cc
3143 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3146 echo "$enable_clocale is an unknown locale package" 1>&2
3147 exit 1
3149 esac
3151 # This is where the testsuite looks for locale catalogs, using the
3152 # -DLOCALEDIR define during testsuite compilation.
3153 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3156 # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3157 # CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3166 # AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3174 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3175 if test "${enable_c_mbchar+set}" = set; then
3176 enableval="$enable_c_mbchar"
3177 case "$enableval" in
3178 yes) enable_c_mbchar=yes ;;
3179 no) enable_c_mbchar=no ;;
3180 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3181 esac
3182 else
3183 enable_c_mbchar=yes
3187 # Check whether --enable-c99 or --disable-c99 was given.
3188 if test "${enable_c99+set}" = set; then
3189 enableval="$enable_c99"
3190 case "$enableval" in
3191 yes) enable_c99=yes ;;
3192 no) enable_c99=no ;;
3193 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3194 esac
3195 else
3196 enable_c99=yes
3200 ac_ext=C
3201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3205 cross_compiling=$ac_cv_prog_cxx_cross
3208 # Check for the existence of <math.h> functions used if C99 is enabled.
3209 ac_c99_math=yes;
3210 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3211 echo "configure:3212: checking for ISO C99 support in <math.h>" >&5
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <math.h>
3216 int main() {
3217 fpclassify(0.0);
3218 ; return 0; }
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222 else
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3225 rm -rf conftest*
3226 ac_c99_math=no
3228 rm -f conftest*
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <math.h>
3233 int main() {
3234 isfinite(0.0);
3235 ; return 0; }
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 ac_c99_math=no
3245 rm -f conftest*
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <math.h>
3250 int main() {
3251 isinf(0.0);
3252 ; return 0; }
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 else
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 rm -rf conftest*
3260 ac_c99_math=no
3262 rm -f conftest*
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <math.h>
3267 int main() {
3268 isnan(0.0);
3269 ; return 0; }
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273 else
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 rm -rf conftest*
3277 ac_c99_math=no
3279 rm -f conftest*
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <math.h>
3284 int main() {
3285 isnormal(0.0);
3286 ; return 0; }
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 else
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 rm -rf conftest*
3294 ac_c99_math=no
3296 rm -f conftest*
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <math.h>
3301 int main() {
3302 signbit(0.0);
3303 ; return 0; }
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 ac_c99_math=no
3313 rm -f conftest*
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <math.h>
3318 int main() {
3319 isgreater(0.0,0.0);
3320 ; return 0; }
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 else
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3327 rm -rf conftest*
3328 ac_c99_math=no
3330 rm -f conftest*
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <math.h>
3335 int main() {
3336 isgreaterequal(0.0,0.0);
3337 ; return 0; }
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341 else
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3344 rm -rf conftest*
3345 ac_c99_math=no
3347 rm -f conftest*
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <math.h>
3352 int main() {
3353 isless(0.0,0.0);
3354 ; return 0; }
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 else
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3361 rm -rf conftest*
3362 ac_c99_math=no
3364 rm -f conftest*
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <math.h>
3369 int main() {
3370 islessequal(0.0,0.0);
3371 ; return 0; }
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 else
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 rm -rf conftest*
3379 ac_c99_math=no
3381 rm -f conftest*
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <math.h>
3386 int main() {
3387 islessgreater(0.0,0.0);
3388 ; return 0; }
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 else
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 rm -rf conftest*
3396 ac_c99_math=no
3398 rm -f conftest*
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <math.h>
3403 int main() {
3404 isunordered(0.0,0.0);
3405 ; return 0; }
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 ac_c99_math=no
3415 rm -f conftest*
3416 echo "$ac_t""$ac_c99_math" 1>&6
3418 # Check for the existence in <stdio.h> of vscanf, et. al.
3419 ac_c99_stdio=yes;
3420 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3421 echo "configure:3422: checking for ISO C99 support in <stdio.h>" >&5
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <stdio.h>
3426 int main() {
3427 snprintf("12", 0, "%i");
3428 ; return 0; }
3430 if { (eval echo configure:3431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3432 else
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 rm -rf conftest*
3436 ac_c99_stdio=no
3438 rm -f conftest*
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <stdio.h>
3443 #include <stdarg.h>
3444 void foo(char* fmt, ...)
3445 {va_list args; va_start(args, fmt);
3446 vfscanf(stderr, "%i", args);}
3447 int main() {
3449 ; return 0; }
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453 else
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 rm -rf conftest*
3457 ac_c99_stdio=no
3459 rm -f conftest*
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464 #include <stdarg.h>
3465 void foo(char* fmt, ...)
3466 {va_list args; va_start(args, fmt);
3467 vscanf("%i", args);}
3468 int main() {
3470 ; return 0; }
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 else
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 rm -rf conftest*
3478 ac_c99_stdio=no
3480 rm -f conftest*
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <stdio.h>
3485 #include <stdarg.h>
3486 void foo(char* fmt, ...)
3487 {va_list args; va_start(args, fmt);
3488 vsnprintf(fmt, 0, "%i", args);}
3489 int main() {
3491 ; return 0; }
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495 else
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 rm -rf conftest*
3499 ac_c99_stdio=no
3501 rm -f conftest*
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <stdio.h>
3506 #include <stdarg.h>
3507 void foo(char* fmt, ...)
3508 {va_list args; va_start(args, fmt);
3509 vsscanf(fmt, "%i", args);}
3510 int main() {
3512 ; return 0; }
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516 else
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3519 rm -rf conftest*
3520 ac_c99_stdio=no
3522 rm -f conftest*
3523 echo "$ac_t""$ac_c99_stdio" 1>&6
3525 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3526 ac_c99_stdlib=yes;
3527 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3528 echo "configure:3529: checking for lldiv_t declaration" >&5
3529 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538 lldiv_t mydivt;
3539 ; return 0; }
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 rm -rf conftest*
3543 ac_c99_lldiv_t=yes
3544 else
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3547 rm -rf conftest*
3548 ac_c99_lldiv_t=no
3550 rm -f conftest*
3554 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3556 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3557 echo "configure:3558: checking for ISO C99 support in <stdlib.h>" >&5
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdlib.h>
3562 int main() {
3563 char* tmp; strtof("gnu", &tmp);
3564 ; return 0; }
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 else
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 ac_c99_stdlib=no
3574 rm -f conftest*
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580 char* tmp; strtold("gnu", &tmp);
3581 ; return 0; }
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 else
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 ac_c99_stdlib=no
3591 rm -f conftest*
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <stdlib.h>
3596 int main() {
3597 llabs(10);
3598 ; return 0; }
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 else
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 rm -rf conftest*
3606 ac_c99_stdlib=no
3608 rm -f conftest*
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3613 int main() {
3614 lldiv(10,1);
3615 ; return 0; }
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 ac_c99_stdlib=no
3625 rm -f conftest*
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <stdlib.h>
3630 int main() {
3631 atoll("10");
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 else
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 ac_c99_stdlib=no
3642 rm -f conftest*
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <stdlib.h>
3647 int main() {
3648 _Exit(0);
3649 ; return 0; }
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3653 else
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 rm -rf conftest*
3657 ac_c99_stdlib=no
3659 rm -f conftest*
3660 if test x"$ac_c99_lldiv_t" = x"no"; then
3661 ac_c99_stdlib=no;
3662 fi;
3663 echo "$ac_t""$ac_c99_stdlib" 1>&6
3665 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3666 # XXX the wchar.h checks should be rolled into the general C99 bits.
3667 ac_c99_wchar=yes;
3668 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3669 echo "configure:3670: checking for additional ISO C99 support in <wchar.h>" >&5
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <wchar.h>
3674 int main() {
3675 wcstold(L"10.0", NULL);
3676 ; return 0; }
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 ac_c99_wchar=no
3686 rm -f conftest*
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <wchar.h>
3691 int main() {
3692 wcstoll(L"10", NULL, 10);
3693 ; return 0; }
3695 if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697 else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 ac_c99_wchar=no
3703 rm -f conftest*
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <wchar.h>
3708 int main() {
3709 wcstoull(L"10", NULL, 10);
3710 ; return 0; }
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714 else
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 rm -rf conftest*
3718 ac_c99_wchar=no
3720 rm -f conftest*
3721 echo "$ac_t""$ac_c99_wchar" 1>&6
3723 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3724 echo "configure:3725: checking for enabled ISO C99 support" >&5
3725 if test x"$ac_c99_math" = x"no" ||
3726 test x"$ac_c99_stdio" = x"no" ||
3727 test x"$ac_c99_stdlib" = x"no" ||
3728 test x"$ac_c99_wchar" = x"no"; then
3729 enable_c99=no;
3730 fi;
3731 echo "$ac_t""$enable_c99" 1>&6
3733 # Option parsed, now set things appropriately
3734 if test x"$enable_c99" = x"yes"; then
3735 cat >> confdefs.h <<\EOF
3736 #define _GLIBCPP_USE_C99 1
3741 ac_ext=c
3742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3746 cross_compiling=$ac_cv_prog_cc_cross
3750 # Check whether --enable-long-long or --disable-long-long was given.
3751 if test "${enable_long_long+set}" = set; then
3752 enableval="$enable_long_long"
3753 case "$enableval" in
3754 yes) enable_long_long=yes ;;
3755 no) enable_long_long=no ;;
3756 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3757 esac
3758 else
3759 enable_long_long=yes
3763 ac_ext=C
3764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CXXCPP $CPPFLAGS'
3766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cxx_cross
3771 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3772 echo "configure:3773: checking for enabled long long I/O support" >&5
3773 # iostreams require strtoll, strtoull to compile
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <stdlib.h>
3778 int main() {
3779 char* tmp; strtoll("gnu", &tmp, 10);
3780 ; return 0; }
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 rm -rf conftest*
3788 enable_long_long=no
3790 rm -f conftest*
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <stdlib.h>
3795 int main() {
3796 char* tmp; strtoull("gnu", &tmp, 10);
3797 ; return 0; }
3799 if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 enable_long_long=no
3807 rm -f conftest*
3809 # Option parsed, now set things appropriately
3810 if test x"$enable_long_long" = xyes; then
3811 cat >> confdefs.h <<\EOF
3812 #define _GLIBCPP_USE_LONG_LONG 1
3816 echo "$ac_t""$enable_long_long" 1>&6
3818 ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3826 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3827 echo "configure:3828: checking for c header strategy to use" >&5
3828 # Check whether --enable-cheaders or --disable-cheaders was given.
3829 if test "${enable_cheaders+set}" = set; then
3830 enableval="$enable_cheaders"
3832 case "$enableval" in
3834 enable_cheaders=c
3836 c_std)
3837 enable_cheaders=c_std
3839 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3841 esac
3842 else
3843 enable_cheaders=c_std
3846 echo "$ac_t""$enable_cheaders" 1>&6
3848 case "$enable_cheaders" in
3849 c_std)
3850 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3853 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3855 esac
3860 if test "$enable_cheaders" = c; then
3861 GLIBCPP_C_HEADERS_C_TRUE=
3862 GLIBCPP_C_HEADERS_C_FALSE='#'
3863 else
3864 GLIBCPP_C_HEADERS_C_TRUE='#'
3865 GLIBCPP_C_HEADERS_C_FALSE=
3869 if test "$enable_cheaders" = c_std; then
3870 GLIBCPP_C_HEADERS_C_STD_TRUE=
3871 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3872 else
3873 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3874 GLIBCPP_C_HEADERS_C_STD_FALSE=
3878 if test "$c_compatibility" = yes; then
3879 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3880 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3881 else
3882 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3883 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3887 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3888 echo "configure:3889: checking for thread model used by GCC" >&5
3889 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3890 echo "$ac_t""$target_thread_file" 1>&6
3892 if test $target_thread_file != single; then
3893 cat >> confdefs.h <<\EOF
3894 #define HAVE_GTHR_DEFAULT 1
3897 cat >> confdefs.h <<\EOF
3898 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3903 glibcpp_thread_h=gthr-$target_thread_file.h
3906 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3907 if test "${enable_cxx_flags+set}" = set; then
3908 enableval="$enable_cxx_flags"
3909 case "x$enableval" in
3910 xyes)
3911 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3912 xno|x)
3913 enable_cxx_flags='' ;;
3915 enable_cxx_flags="$enableval" ;;
3916 esac
3917 else
3918 enable_cxx_flags='none'
3922 if test "$enable_cxx_flags" = "none"; then
3923 enable_cxx_flags='';
3926 if test -n "$enable_cxx_flags"; then
3927 for f in $enable_cxx_flags; do
3928 case "$f" in
3929 -fhonor-std) ;;
3930 -*) ;;
3931 *) # and we're trying to pass /what/ exactly?
3932 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3933 esac
3934 done
3936 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3940 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3941 echo "configure:3942: checking for exception model to use" >&5
3943 ac_ext=C
3944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3945 ac_cpp='$CXXCPP $CPPFLAGS'
3946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3948 cross_compiling=$ac_cv_prog_cxx_cross
3950 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3951 if test "${enable_sjlj_exceptions+set}" = set; then
3952 enableval="$enable_sjlj_exceptions"
3954 else
3955 cat > conftest.$ac_ext << EOF
3956 #line 3957 "configure"
3957 struct S { ~S(); };
3958 void bar();
3959 void foo()
3961 S s;
3962 bar();
3965 old_CXXFLAGS="$CXXFLAGS"
3966 CXXFLAGS=-S
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3969 enable_sjlj_exceptions=yes
3970 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3971 enable_sjlj_exceptions=no
3974 CXXFLAGS="$old_CXXFLAGS"
3975 rm -f conftest*
3978 if test x$enable_sjlj_exceptions = xyes; then
3979 cat >> confdefs.h <<\EOF
3980 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3983 ac_exception_model_name=sjlj
3984 elif test x$enable_sjlj_exceptions = xno; then
3985 ac_exception_model_name="call frame"
3986 else
3987 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3989 ac_ext=c
3990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3994 cross_compiling=$ac_cv_prog_cc_cross
3996 echo "$ac_t""$ac_exception_model_name" 1>&6
3999 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4000 echo "configure:4001: checking for use of libunwind" >&5
4001 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4002 if test "${enable_libunwind_exceptions+set}" = set; then
4003 enableval="$enable_libunwind_exceptions"
4004 use_libunwind_exceptions=$enableval
4005 else
4006 use_libunwind_exceptions=no
4009 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4010 if test x"$use_libunwind_exceptions" = xyes; then
4011 LIBUNWIND_FLAG="-lunwind"
4012 else
4013 LIBUNWIND_FLAG=""
4017 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4018 if test "${enable_concept_checks+set}" = set; then
4019 enableval="$enable_concept_checks"
4020 case "$enableval" in
4021 yes) enable_concept_checks=yes ;;
4022 no) enable_concept_checks=no ;;
4023 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4024 esac
4025 else
4026 enable_concept_checks=no
4028 if test x"$enable_concept_checks" = xyes; then
4029 cat >> confdefs.h <<\EOF
4030 #define _GLIBCPP_CONCEPT_CHECKS 1
4036 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4037 for ac_hdr in string.h stdlib.h
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <$ac_hdr>
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4054 rm -rf conftest*
4055 eval "ac_cv_header_$ac_safe=yes"
4056 else
4057 echo "$ac_err" >&5
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4060 rm -rf conftest*
4061 eval "ac_cv_header_$ac_safe=no"
4063 rm -f conftest*
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068 cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4072 else
4073 echo "$ac_t""no" 1>&6
4075 done
4078 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4080 # We are being configured with some form of cross compiler.
4081 GLIBCPP_IS_CROSS_COMPILING=1
4083 # This lets us hard-code the functionality we know we'll have in the cross
4084 # target environment. "Let" is a sugar-coated word placed on an especially
4085 # dull and tedious hack, actually.
4087 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4088 # that involve linking, can't be used:
4089 # "cannot open sim-crt0.o"
4090 # "cannot open crt0.o"
4091 # etc. All this is because there currently exists no unified, consistent
4092 # way for top level CC information to be passed down to target directories:
4093 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4094 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4095 # crosses can be removed.
4097 # If Canadian cross, then don't pick up tools from the build directory.
4098 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4099 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4100 CANADIAN=yes
4101 else
4102 CANADIAN=no
4105 # Construct crosses by hand, eliminating bits that need ld...
4106 # GLIBCPP_CHECK_COMPILER_FEATURES
4107 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4108 # GLIBCPP_CHECK_MATH_SUPPORT
4110 case "$target_alias" in
4111 *-linux*)
4112 os_include_dir="os/gnu-linux"
4113 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4114 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4115 fp.h locale.h float.h inttypes.h
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <$ac_hdr>
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4132 rm -rf conftest*
4133 eval "ac_cv_header_$ac_safe=yes"
4134 else
4135 echo "$ac_err" >&5
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4138 rm -rf conftest*
4139 eval "ac_cv_header_$ac_safe=no"
4141 rm -f conftest*
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146 cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4150 else
4151 echo "$ac_t""no" 1>&6
4153 done
4155 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4158 # If we're not using GNU ld, then there's no point in even trying these
4159 # tests. Check for that first. We should have already tested for gld
4160 # by now (in libtool), but require it now just to be safe...
4161 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4162 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4165 # The name set by libtool depends on the version of libtool. Shame on us
4166 # for depending on an impl detail, but c'est la vie. Older versions used
4167 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4168 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4169 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4170 # set (hence we're using an older libtool), then set it.
4171 if test x${with_gnu_ld+set} != xset; then
4172 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4173 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4174 with_gnu_ld=no
4175 else
4176 with_gnu_ld=$ac_cv_prog_gnu_ld
4180 # Start by getting the version number. I think the libtool test already
4181 # does some of this, but throws away the result.
4183 ldver=`$LD --version 2>/dev/null | head -1 | \
4184 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4186 glibcpp_gnu_ld_version=`echo $ldver | \
4187 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4189 # Set --gc-sections.
4190 if test "$with_gnu_ld" = "notbroken"; then
4191 # GNU ld it is! Joy and bunny rabbits!
4193 # All these tests are for C++; save the language and the compiler flags.
4194 # Need to do this so that g++ won't try to link in libstdc++
4195 ac_test_CFLAGS="${CFLAGS+set}"
4196 ac_save_CFLAGS="$CFLAGS"
4197 CFLAGS='-x c++ -Wl,--gc-sections'
4199 # Check for -Wl,--gc-sections
4200 # XXX This test is broken at the moment, as symbols required for
4201 # linking are now in libsupc++ (not built yet.....). In addition,
4202 # this test has cored on solaris in the past. In addition,
4203 # --gc-sections doesn't really work at the moment (keeps on discarding
4204 # used sections, first .eh_frame and now some of the glibc sections for
4205 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4206 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4207 echo "configure:4208: checking for ld that supports -Wl,--gc-sections" >&5
4208 if test "$cross_compiling" = yes; then
4209 ac_sectionLDflags=yes
4210 else
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4215 int main(void)
4217 try { throw 1; }
4218 catch (...) { };
4219 return 0;
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4224 then
4225 ac_sectionLDflags=yes
4226 else
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4229 rm -fr conftest*
4230 ac_sectionLDflags=no
4232 rm -fr conftest*
4235 if test "$ac_test_CFLAGS" = set; then
4236 CFLAGS="$ac_save_CFLAGS"
4237 else
4238 # this is the suspicious part
4239 CFLAGS=''
4241 if test "$ac_sectionLDflags" = "yes"; then
4242 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4244 echo "$ac_t""$ac_sectionLDflags" 1>&6
4247 # Set linker optimization flags.
4248 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4249 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4256 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4257 echo "configure:4258: checking for main in -lm" >&5
4258 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 ac_save_LIBS="$LIBS"
4263 LIBS="-lm $LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4268 int main() {
4269 main()
4270 ; return 0; }
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4273 rm -rf conftest*
4274 eval "ac_cv_lib_$ac_lib_var=yes"
4275 else
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=no"
4281 rm -f conftest*
4282 LIBS="$ac_save_LIBS"
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4289 cat >> confdefs.h <<EOF
4290 #define $ac_tr_lib 1
4293 LIBS="-lm $LIBS"
4295 else
4296 echo "$ac_t""no" 1>&6
4299 for ac_func in nan copysignf
4301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_func" >&5
4303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* System header to define __stub macros and hopefully few prototypes,
4310 which can conflict with char $ac_func(); below. */
4311 #include <assert.h>
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4315 char $ac_func();
4317 int main() {
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4323 choke me
4324 #else
4325 $ac_func();
4326 #endif
4328 ; return 0; }
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331 rm -rf conftest*
4332 eval "ac_cv_func_$ac_func=yes"
4333 else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 eval "ac_cv_func_$ac_func=no"
4339 rm -f conftest*
4342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4343 echo "$ac_t""yes" 1>&6
4344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4345 cat >> confdefs.h <<EOF
4346 #define $ac_tr_func 1
4349 else
4350 echo "$ac_t""no" 1>&6
4351 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4353 done
4356 for ac_func in __signbit
4358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_func" >&5
4360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* System header to define __stub macros and hopefully few prototypes,
4367 which can conflict with char $ac_func(); below. */
4368 #include <assert.h>
4369 /* Override any gcc2 internal prototype to avoid an error. */
4370 /* We use char because int might match the return type of a gcc2
4371 builtin and then its argument prototype would still apply. */
4372 char $ac_func();
4374 int main() {
4376 /* The GNU C library defines this for functions which it implements
4377 to always fail with ENOSYS. Some functions are actually named
4378 something starting with __ and the normal name is an alias. */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 choke me
4381 #else
4382 $ac_func();
4383 #endif
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 rm -rf conftest*
4389 eval "ac_cv_func_$ac_func=yes"
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_func_$ac_func=no"
4396 rm -f conftest*
4399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_func 1
4406 else
4407 echo "$ac_t""no" 1>&6
4408 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4410 done
4412 for ac_func in __signbitf
4414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_func" >&5
4416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* System header to define __stub macros and hopefully few prototypes,
4423 which can conflict with char $ac_func(); below. */
4424 #include <assert.h>
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4428 char $ac_func();
4430 int main() {
4432 /* The GNU C library defines this for functions which it implements
4433 to always fail with ENOSYS. Some functions are actually named
4434 something starting with __ and the normal name is an alias. */
4435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 choke me
4437 #else
4438 $ac_func();
4439 #endif
4441 ; return 0; }
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444 rm -rf conftest*
4445 eval "ac_cv_func_$ac_func=yes"
4446 else
4447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4449 rm -rf conftest*
4450 eval "ac_cv_func_$ac_func=no"
4452 rm -f conftest*
4455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4458 cat >> confdefs.h <<EOF
4459 #define $ac_tr_func 1
4462 else
4463 echo "$ac_t""no" 1>&6
4464 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4466 done
4469 if test x$ac_cv_func_copysignl = x"yes"; then
4470 for ac_func in __signbitl
4472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_func" >&5
4474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* System header to define __stub macros and hopefully few prototypes,
4481 which can conflict with char $ac_func(); below. */
4482 #include <assert.h>
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4486 char $ac_func();
4488 int main() {
4490 /* The GNU C library defines this for functions which it implements
4491 to always fail with ENOSYS. Some functions are actually named
4492 something starting with __ and the normal name is an alias. */
4493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 choke me
4495 #else
4496 $ac_func();
4497 #endif
4499 ; return 0; }
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502 rm -rf conftest*
4503 eval "ac_cv_func_$ac_func=yes"
4504 else
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 rm -rf conftest*
4508 eval "ac_cv_func_$ac_func=no"
4510 rm -f conftest*
4513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_func 1
4520 else
4521 echo "$ac_t""no" 1>&6
4522 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4524 done
4532 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4533 echo "configure:4534: checking for mbstate_t" >&5
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <wchar.h>
4538 int main() {
4539 mbstate_t teststate;
4540 ; return 0; }
4542 if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543 rm -rf conftest*
4544 have_mbstate_t=yes
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -rf conftest*
4549 have_mbstate_t=no
4551 rm -f conftest*
4552 echo "$ac_t""$have_mbstate_t" 1>&6
4553 if test x"$have_mbstate_t" = xyes; then
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE_MBSTATE_T 1
4560 for ac_hdr in wchar.h
4562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <$ac_hdr>
4573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4577 rm -rf conftest*
4578 eval "ac_cv_header_$ac_safe=yes"
4579 else
4580 echo "$ac_err" >&5
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4583 rm -rf conftest*
4584 eval "ac_cv_header_$ac_safe=no"
4586 rm -f conftest*
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_hdr 1
4594 ac_has_wchar_h=yes
4595 else
4596 echo "$ac_t""no" 1>&6
4597 ac_has_wchar_h=no
4599 done
4601 for ac_hdr in wctype.h
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$ac_hdr>
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4618 rm -rf conftest*
4619 eval "ac_cv_header_$ac_safe=yes"
4620 else
4621 echo "$ac_err" >&5
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 rm -rf conftest*
4625 eval "ac_cv_header_$ac_safe=no"
4627 rm -f conftest*
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632 cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4635 ac_has_wctype_h=yes
4636 else
4637 echo "$ac_t""no" 1>&6
4638 ac_has_wctype_h=no
4640 done
4643 if test x"$ac_has_wchar_h" = xyes &&
4644 test x"$ac_has_wctype_h" = xyes &&
4645 test x"$enable_c_mbchar" != xno; then
4647 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4648 echo "configure:4649: checking for WCHAR_MIN and WCHAR_MAX" >&5
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <wchar.h>
4653 int main() {
4654 int i = WCHAR_MIN; int j = WCHAR_MAX;
4655 ; return 0; }
4657 if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4658 rm -rf conftest*
4659 has_wchar_minmax=yes
4660 else
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 rm -rf conftest*
4664 has_wchar_minmax=no
4666 rm -f conftest*
4667 echo "$ac_t""$has_wchar_minmax" 1>&6
4669 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4670 echo "configure:4671: checking for WEOF" >&5
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4675 #include <wchar.h>
4676 #include <stddef.h>
4677 int main() {
4678 wint_t i = WEOF;
4679 ; return 0; }
4681 if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 rm -rf conftest*
4683 has_weof=yes
4684 else
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4687 rm -rf conftest*
4688 has_weof=no
4690 rm -f conftest*
4691 echo "$ac_t""$has_weof" 1>&6
4693 ac_wfuncs=yes
4694 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_func" >&5
4698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4700 else
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes,
4705 which can conflict with char $ac_func(); below. */
4706 #include <assert.h>
4707 /* Override any gcc2 internal prototype to avoid an error. */
4708 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4710 char $ac_func();
4712 int main() {
4714 /* The GNU C library defines this for functions which it implements
4715 to always fail with ENOSYS. Some functions are actually named
4716 something starting with __ and the normal name is an alias. */
4717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4718 choke me
4719 #else
4720 $ac_func();
4721 #endif
4723 ; return 0; }
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 rm -rf conftest*
4727 eval "ac_cv_func_$ac_func=yes"
4728 else
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 rm -rf conftest*
4732 eval "ac_cv_func_$ac_func=no"
4734 rm -f conftest*
4737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4740 cat >> confdefs.h <<EOF
4741 #define $ac_tr_func 1
4744 else
4745 echo "$ac_t""no" 1>&6
4747 ac_wfuncs=no
4749 done
4752 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4753 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4754 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4755 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4756 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4757 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4763 else
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* System header to define __stub macros and hopefully few prototypes,
4768 which can conflict with char $ac_func(); below. */
4769 #include <assert.h>
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char $ac_func();
4775 int main() {
4777 /* The GNU C library defines this for functions which it implements
4778 to always fail with ENOSYS. Some functions are actually named
4779 something starting with __ and the normal name is an alias. */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 choke me
4782 #else
4783 $ac_func();
4784 #endif
4786 ; return 0; }
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 rm -rf conftest*
4790 eval "ac_cv_func_$ac_func=yes"
4791 else
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 rm -rf conftest*
4795 eval "ac_cv_func_$ac_func=no"
4797 rm -f conftest*
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_func 1
4807 else
4808 echo "$ac_t""no" 1>&6
4810 ac_wfuncs=no
4812 done
4815 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4816 echo "configure:4817: checking for ISO C99 wchar_t support" >&5
4817 if test x"$has_weof" = xyes &&
4818 test x"$has_wchar_minmax" = xyes &&
4819 test x"$ac_wfuncs" = xyes; then
4820 ac_isoC99_wchar_t=yes
4821 else
4822 ac_isoC99_wchar_t=no
4824 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4826 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for iconv.h" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <iconv.h>
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4841 rm -rf conftest*
4842 eval "ac_cv_header_$ac_safe=yes"
4843 else
4844 echo "$ac_err" >&5
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 eval "ac_cv_header_$ac_safe=no"
4850 rm -f conftest*
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_has_iconv_h=yes
4855 else
4856 echo "$ac_t""no" 1>&6
4857 ac_has_iconv_h=no
4860 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4861 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4862 echo "configure:4863: checking for langinfo.h" >&5
4863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <langinfo.h>
4871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4872 { (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4874 if test -z "$ac_err"; then
4875 rm -rf conftest*
4876 eval "ac_cv_header_$ac_safe=yes"
4877 else
4878 echo "$ac_err" >&5
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4881 rm -rf conftest*
4882 eval "ac_cv_header_$ac_safe=no"
4884 rm -f conftest*
4886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4887 echo "$ac_t""yes" 1>&6
4888 ac_has_langinfo_h=yes
4889 else
4890 echo "$ac_t""no" 1>&6
4891 ac_has_langinfo_h=no
4895 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4896 echo "configure:4897: checking for iconv in -liconv" >&5
4897 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4900 else
4901 ac_save_LIBS="$LIBS"
4902 LIBS="-liconv $LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4909 char iconv();
4911 int main() {
4912 iconv()
4913 ; return 0; }
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 rm -rf conftest*
4917 eval "ac_cv_lib_$ac_lib_var=yes"
4918 else
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 rm -rf conftest*
4922 eval "ac_cv_lib_$ac_lib_var=no"
4924 rm -f conftest*
4925 LIBS="$ac_save_LIBS"
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 libiconv="-liconv"
4931 else
4932 echo "$ac_t""no" 1>&6
4935 ac_save_LIBS="$LIBS"
4936 LIBS="$LIBS $libiconv"
4938 for ac_func in iconv_open iconv_close iconv nl_langinfo
4940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_func" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes,
4949 which can conflict with char $ac_func(); below. */
4950 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char $ac_func();
4956 int main() {
4958 /* The GNU C library defines this for functions which it implements
4959 to always fail with ENOSYS. Some functions are actually named
4960 something starting with __ and the normal name is an alias. */
4961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4962 choke me
4963 #else
4964 $ac_func();
4965 #endif
4967 ; return 0; }
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970 rm -rf conftest*
4971 eval "ac_cv_func_$ac_func=yes"
4972 else
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 rm -rf conftest*
4976 eval "ac_cv_func_$ac_func=no"
4978 rm -f conftest*
4981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984 cat >> confdefs.h <<EOF
4985 #define $ac_tr_func 1
4988 ac_XPG2funcs=yes
4989 else
4990 echo "$ac_t""no" 1>&6
4991 ac_XPG2funcs=no
4993 done
4996 LIBS="$ac_save_LIBS"
4998 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4999 echo "configure:5000: checking for XPG2 wchar_t support" >&5
5000 if test x"$ac_has_iconv_h" = xyes &&
5001 test x"$ac_has_langinfo_h" = xyes &&
5002 test x"$ac_XPG2funcs" = xyes; then
5003 ac_XPG2_wchar_t=yes
5004 else
5005 ac_XPG2_wchar_t=no
5007 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5009 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5010 echo "configure:5011: checking for enabled wchar_t specializations" >&5
5011 if test x"$ac_isoC99_wchar_t" = xyes &&
5012 test x"$ac_XPG2_wchar_t" = xyes; then
5013 cat >> confdefs.h <<\EOF
5014 #define _GLIBCPP_USE_WCHAR_T 1
5017 echo "$ac_t"""yes"" 1>&6
5018 else
5019 echo "$ac_t"""no"" 1>&6
5021 else
5022 echo "configure: warning: wchar_t support disabled." 1>&2
5025 cat >> confdefs.h <<\EOF
5026 #define HAVE_COPYSIGN 1
5029 cat >> confdefs.h <<\EOF
5030 #define HAVE_COPYSIGNF 1
5033 cat >> confdefs.h <<\EOF
5034 #define HAVE_FINITE 1
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_FINITEF 1
5041 cat >> confdefs.h <<\EOF
5042 #define HAVE_FREXPF 1
5045 cat >> confdefs.h <<\EOF
5046 #define HAVE_HYPOTF 1
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_ISINF 1
5053 cat >> confdefs.h <<\EOF
5054 #define HAVE_ISINFF 1
5057 cat >> confdefs.h <<\EOF
5058 #define HAVE_ISNAN 1
5061 cat >> confdefs.h <<\EOF
5062 #define HAVE_ISNANF 1
5065 cat >> confdefs.h <<\EOF
5066 #define HAVE_SINCOS 1
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_SINCOSF 1
5073 if test x"long_double_math_on_this_cpu" = x"yes"; then
5074 cat >> confdefs.h <<\EOF
5075 #define HAVE_FINITEL 1
5078 cat >> confdefs.h <<\EOF
5079 #define HAVE_HYPOTL 1
5082 cat >> confdefs.h <<\EOF
5083 #define HAVE_ISINFL 1
5086 cat >> confdefs.h <<\EOF
5087 #define HAVE_ISNANL 1
5092 *-hpux*)
5093 # Check for available headers.
5094 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5095 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5096 fp.h locale.h float.h inttypes.h
5098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5103 else
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 #include <$ac_hdr>
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5113 rm -rf conftest*
5114 eval "ac_cv_header_$ac_safe=yes"
5115 else
5116 echo "$ac_err" >&5
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 rm -rf conftest*
5120 eval "ac_cv_header_$ac_safe=no"
5122 rm -f conftest*
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_hdr 1
5131 else
5132 echo "$ac_t""no" 1>&6
5134 done
5136 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5139 # If we're not using GNU ld, then there's no point in even trying these
5140 # tests. Check for that first. We should have already tested for gld
5141 # by now (in libtool), but require it now just to be safe...
5142 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5143 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5146 # The name set by libtool depends on the version of libtool. Shame on us
5147 # for depending on an impl detail, but c'est la vie. Older versions used
5148 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5149 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5150 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5151 # set (hence we're using an older libtool), then set it.
5152 if test x${with_gnu_ld+set} != xset; then
5153 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5154 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5155 with_gnu_ld=no
5156 else
5157 with_gnu_ld=$ac_cv_prog_gnu_ld
5161 # Start by getting the version number. I think the libtool test already
5162 # does some of this, but throws away the result.
5164 ldver=`$LD --version 2>/dev/null | head -1 | \
5165 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5167 glibcpp_gnu_ld_version=`echo $ldver | \
5168 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5170 # Set --gc-sections.
5171 if test "$with_gnu_ld" = "notbroken"; then
5172 # GNU ld it is! Joy and bunny rabbits!
5174 # All these tests are for C++; save the language and the compiler flags.
5175 # Need to do this so that g++ won't try to link in libstdc++
5176 ac_test_CFLAGS="${CFLAGS+set}"
5177 ac_save_CFLAGS="$CFLAGS"
5178 CFLAGS='-x c++ -Wl,--gc-sections'
5180 # Check for -Wl,--gc-sections
5181 # XXX This test is broken at the moment, as symbols required for
5182 # linking are now in libsupc++ (not built yet.....). In addition,
5183 # this test has cored on solaris in the past. In addition,
5184 # --gc-sections doesn't really work at the moment (keeps on discarding
5185 # used sections, first .eh_frame and now some of the glibc sections for
5186 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5187 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5188 echo "configure:5189: checking for ld that supports -Wl,--gc-sections" >&5
5189 if test "$cross_compiling" = yes; then
5190 ac_sectionLDflags=yes
5191 else
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5196 int main(void)
5198 try { throw 1; }
5199 catch (...) { };
5200 return 0;
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5205 then
5206 ac_sectionLDflags=yes
5207 else
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 rm -fr conftest*
5211 ac_sectionLDflags=no
5213 rm -fr conftest*
5216 if test "$ac_test_CFLAGS" = set; then
5217 CFLAGS="$ac_save_CFLAGS"
5218 else
5219 # this is the suspicious part
5220 CFLAGS=''
5222 if test "$ac_sectionLDflags" = "yes"; then
5223 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5225 echo "$ac_t""$ac_sectionLDflags" 1>&6
5228 # Set linker optimization flags.
5229 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5230 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5237 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5238 echo "configure:5239: checking for main in -lm" >&5
5239 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5243 ac_save_LIBS="$LIBS"
5244 LIBS="-lm $LIBS"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5249 int main() {
5250 main()
5251 ; return 0; }
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 rm -rf conftest*
5255 eval "ac_cv_lib_$ac_lib_var=yes"
5256 else
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5259 rm -rf conftest*
5260 eval "ac_cv_lib_$ac_lib_var=no"
5262 rm -f conftest*
5263 LIBS="$ac_save_LIBS"
5266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5268 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_lib 1
5274 LIBS="-lm $LIBS"
5276 else
5277 echo "$ac_t""no" 1>&6
5280 for ac_func in nan copysignf
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char $ac_func(); below. */
5292 #include <assert.h>
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5296 char $ac_func();
5298 int main() {
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 choke me
5305 #else
5306 $ac_func();
5307 #endif
5309 ; return 0; }
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 rm -rf conftest*
5313 eval "ac_cv_func_$ac_func=yes"
5314 else
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5317 rm -rf conftest*
5318 eval "ac_cv_func_$ac_func=no"
5320 rm -f conftest*
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326 cat >> confdefs.h <<EOF
5327 #define $ac_tr_func 1
5330 else
5331 echo "$ac_t""no" 1>&6
5332 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5334 done
5337 for ac_func in __signbit
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5349 #include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353 char $ac_func();
5355 int main() {
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 choke me
5362 #else
5363 $ac_func();
5364 #endif
5366 ; return 0; }
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369 rm -rf conftest*
5370 eval "ac_cv_func_$ac_func=yes"
5371 else
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 rm -rf conftest*
5375 eval "ac_cv_func_$ac_func=no"
5377 rm -f conftest*
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383 cat >> confdefs.h <<EOF
5384 #define $ac_tr_func 1
5387 else
5388 echo "$ac_t""no" 1>&6
5389 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5391 done
5393 for ac_func in __signbitf
5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_func" >&5
5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char $ac_func(); below. */
5405 #include <assert.h>
5406 /* Override any gcc2 internal prototype to avoid an error. */
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5409 char $ac_func();
5411 int main() {
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 $ac_func();
5420 #endif
5422 ; return 0; }
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 rm -rf conftest*
5426 eval "ac_cv_func_$ac_func=yes"
5427 else
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 rm -rf conftest*
5431 eval "ac_cv_func_$ac_func=no"
5433 rm -f conftest*
5436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439 cat >> confdefs.h <<EOF
5440 #define $ac_tr_func 1
5443 else
5444 echo "$ac_t""no" 1>&6
5445 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5447 done
5450 if test x$ac_cv_func_copysignl = x"yes"; then
5451 for ac_func in __signbitl
5453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_func" >&5
5455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char $ac_func(); below. */
5463 #include <assert.h>
5464 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5467 char $ac_func();
5469 int main() {
5471 /* The GNU C library defines this for functions which it implements
5472 to always fail with ENOSYS. Some functions are actually named
5473 something starting with __ and the normal name is an alias. */
5474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5475 choke me
5476 #else
5477 $ac_func();
5478 #endif
5480 ; return 0; }
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483 rm -rf conftest*
5484 eval "ac_cv_func_$ac_func=yes"
5485 else
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -rf conftest*
5489 eval "ac_cv_func_$ac_func=no"
5491 rm -f conftest*
5494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5495 echo "$ac_t""yes" 1>&6
5496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_func 1
5501 else
5502 echo "$ac_t""no" 1>&6
5503 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5505 done
5513 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5514 echo "configure:5515: checking for mbstate_t" >&5
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <wchar.h>
5519 int main() {
5520 mbstate_t teststate;
5521 ; return 0; }
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524 rm -rf conftest*
5525 have_mbstate_t=yes
5526 else
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 rm -rf conftest*
5530 have_mbstate_t=no
5532 rm -f conftest*
5533 echo "$ac_t""$have_mbstate_t" 1>&6
5534 if test x"$have_mbstate_t" = xyes; then
5535 cat >> confdefs.h <<\EOF
5536 #define HAVE_MBSTATE_T 1
5541 for ac_hdr in wchar.h
5543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_hdr" >&5
5546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 #include <$ac_hdr>
5554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 { (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 if test -z "$ac_err"; then
5558 rm -rf conftest*
5559 eval "ac_cv_header_$ac_safe=yes"
5560 else
5561 echo "$ac_err" >&5
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 rm -rf conftest*
5565 eval "ac_cv_header_$ac_safe=no"
5567 rm -f conftest*
5569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572 cat >> confdefs.h <<EOF
5573 #define $ac_tr_hdr 1
5575 ac_has_wchar_h=yes
5576 else
5577 echo "$ac_t""no" 1>&6
5578 ac_has_wchar_h=no
5580 done
5582 for ac_hdr in wctype.h
5584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_hdr" >&5
5587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <$ac_hdr>
5595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5596 { (eval echo configure:5597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5598 if test -z "$ac_err"; then
5599 rm -rf conftest*
5600 eval "ac_cv_header_$ac_safe=yes"
5601 else
5602 echo "$ac_err" >&5
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 rm -rf conftest*
5606 eval "ac_cv_header_$ac_safe=no"
5608 rm -f conftest*
5610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5611 echo "$ac_t""yes" 1>&6
5612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5613 cat >> confdefs.h <<EOF
5614 #define $ac_tr_hdr 1
5616 ac_has_wctype_h=yes
5617 else
5618 echo "$ac_t""no" 1>&6
5619 ac_has_wctype_h=no
5621 done
5624 if test x"$ac_has_wchar_h" = xyes &&
5625 test x"$ac_has_wctype_h" = xyes &&
5626 test x"$enable_c_mbchar" != xno; then
5628 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5629 echo "configure:5630: checking for WCHAR_MIN and WCHAR_MAX" >&5
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 #include <wchar.h>
5634 int main() {
5635 int i = WCHAR_MIN; int j = WCHAR_MAX;
5636 ; return 0; }
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639 rm -rf conftest*
5640 has_wchar_minmax=yes
5641 else
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5644 rm -rf conftest*
5645 has_wchar_minmax=no
5647 rm -f conftest*
5648 echo "$ac_t""$has_wchar_minmax" 1>&6
5650 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5651 echo "configure:5652: checking for WEOF" >&5
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5656 #include <wchar.h>
5657 #include <stddef.h>
5658 int main() {
5659 wint_t i = WEOF;
5660 ; return 0; }
5662 if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 rm -rf conftest*
5664 has_weof=yes
5665 else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 has_weof=no
5671 rm -f conftest*
5672 echo "$ac_t""$has_weof" 1>&6
5674 ac_wfuncs=yes
5675 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5678 echo "configure:5679: checking for $ac_func" >&5
5679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5681 else
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 /* System header to define __stub macros and hopefully few prototypes,
5686 which can conflict with char $ac_func(); below. */
5687 #include <assert.h>
5688 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5691 char $ac_func();
5693 int main() {
5695 /* The GNU C library defines this for functions which it implements
5696 to always fail with ENOSYS. Some functions are actually named
5697 something starting with __ and the normal name is an alias. */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 choke me
5700 #else
5701 $ac_func();
5702 #endif
5704 ; return 0; }
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 rm -rf conftest*
5708 eval "ac_cv_func_$ac_func=yes"
5709 else
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 eval "ac_cv_func_$ac_func=no"
5715 rm -f conftest*
5718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5719 echo "$ac_t""yes" 1>&6
5720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5721 cat >> confdefs.h <<EOF
5722 #define $ac_tr_func 1
5725 else
5726 echo "$ac_t""no" 1>&6
5728 ac_wfuncs=no
5730 done
5733 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5734 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5735 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5736 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5737 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5738 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5741 echo "configure:5742: checking for $ac_func" >&5
5742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5744 else
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* System header to define __stub macros and hopefully few prototypes,
5749 which can conflict with char $ac_func(); below. */
5750 #include <assert.h>
5751 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5754 char $ac_func();
5756 int main() {
5758 /* The GNU C library defines this for functions which it implements
5759 to always fail with ENOSYS. Some functions are actually named
5760 something starting with __ and the normal name is an alias. */
5761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5762 choke me
5763 #else
5764 $ac_func();
5765 #endif
5767 ; return 0; }
5769 if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770 rm -rf conftest*
5771 eval "ac_cv_func_$ac_func=yes"
5772 else
5773 echo "configure: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 rm -rf conftest*
5776 eval "ac_cv_func_$ac_func=no"
5778 rm -f conftest*
5781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5784 cat >> confdefs.h <<EOF
5785 #define $ac_tr_func 1
5788 else
5789 echo "$ac_t""no" 1>&6
5791 ac_wfuncs=no
5793 done
5796 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5797 echo "configure:5798: checking for ISO C99 wchar_t support" >&5
5798 if test x"$has_weof" = xyes &&
5799 test x"$has_wchar_minmax" = xyes &&
5800 test x"$ac_wfuncs" = xyes; then
5801 ac_isoC99_wchar_t=yes
5802 else
5803 ac_isoC99_wchar_t=no
5805 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5807 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5808 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for iconv.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <iconv.h>
5818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5819 { (eval echo configure:5820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5821 if test -z "$ac_err"; then
5822 rm -rf conftest*
5823 eval "ac_cv_header_$ac_safe=yes"
5824 else
5825 echo "$ac_err" >&5
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5828 rm -rf conftest*
5829 eval "ac_cv_header_$ac_safe=no"
5831 rm -f conftest*
5833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5835 ac_has_iconv_h=yes
5836 else
5837 echo "$ac_t""no" 1>&6
5838 ac_has_iconv_h=no
5841 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for langinfo.h" >&5
5844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5846 else
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include <langinfo.h>
5852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853 { (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5855 if test -z "$ac_err"; then
5856 rm -rf conftest*
5857 eval "ac_cv_header_$ac_safe=yes"
5858 else
5859 echo "$ac_err" >&5
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 rm -rf conftest*
5863 eval "ac_cv_header_$ac_safe=no"
5865 rm -f conftest*
5867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5868 echo "$ac_t""yes" 1>&6
5869 ac_has_langinfo_h=yes
5870 else
5871 echo "$ac_t""no" 1>&6
5872 ac_has_langinfo_h=no
5876 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5877 echo "configure:5878: checking for iconv in -liconv" >&5
5878 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5881 else
5882 ac_save_LIBS="$LIBS"
5883 LIBS="-liconv $LIBS"
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5890 char iconv();
5892 int main() {
5893 iconv()
5894 ; return 0; }
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897 rm -rf conftest*
5898 eval "ac_cv_lib_$ac_lib_var=yes"
5899 else
5900 echo "configure: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5902 rm -rf conftest*
5903 eval "ac_cv_lib_$ac_lib_var=no"
5905 rm -f conftest*
5906 LIBS="$ac_save_LIBS"
5909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5910 echo "$ac_t""yes" 1>&6
5911 libiconv="-liconv"
5912 else
5913 echo "$ac_t""no" 1>&6
5916 ac_save_LIBS="$LIBS"
5917 LIBS="$LIBS $libiconv"
5919 for ac_func in iconv_open iconv_close iconv nl_langinfo
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930 which can conflict with char $ac_func(); below. */
5931 #include <assert.h>
5932 /* Override any gcc2 internal prototype to avoid an error. */
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5935 char $ac_func();
5937 int main() {
5939 /* The GNU C library defines this for functions which it implements
5940 to always fail with ENOSYS. Some functions are actually named
5941 something starting with __ and the normal name is an alias. */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 choke me
5944 #else
5945 $ac_func();
5946 #endif
5948 ; return 0; }
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 rm -rf conftest*
5952 eval "ac_cv_func_$ac_func=yes"
5953 else
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 rm -rf conftest*
5957 eval "ac_cv_func_$ac_func=no"
5959 rm -f conftest*
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965 cat >> confdefs.h <<EOF
5966 #define $ac_tr_func 1
5969 ac_XPG2funcs=yes
5970 else
5971 echo "$ac_t""no" 1>&6
5972 ac_XPG2funcs=no
5974 done
5977 LIBS="$ac_save_LIBS"
5979 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5980 echo "configure:5981: checking for XPG2 wchar_t support" >&5
5981 if test x"$ac_has_iconv_h" = xyes &&
5982 test x"$ac_has_langinfo_h" = xyes &&
5983 test x"$ac_XPG2funcs" = xyes; then
5984 ac_XPG2_wchar_t=yes
5985 else
5986 ac_XPG2_wchar_t=no
5988 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5990 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5991 echo "configure:5992: checking for enabled wchar_t specializations" >&5
5992 if test x"$ac_isoC99_wchar_t" = xyes &&
5993 test x"$ac_XPG2_wchar_t" = xyes; then
5994 cat >> confdefs.h <<\EOF
5995 #define _GLIBCPP_USE_WCHAR_T 1
5998 echo "$ac_t"""yes"" 1>&6
5999 else
6000 echo "$ac_t"""no"" 1>&6
6002 else
6003 echo "configure: warning: wchar_t support disabled." 1>&2
6006 os_include_dir="os/hpux"
6007 cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGN 1
6011 cat >> confdefs.h <<\EOF
6012 #define HAVE_COPYSIGNF 1
6015 cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6023 case "$target_alias" in
6024 *-hpux10*)
6025 cat >> confdefs.h <<\EOF
6026 #define HAVE_FINITE 1
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_FINITEF 1
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_ISINF 1
6037 cat >> confdefs.h <<\EOF
6038 #define HAVE_ISINFF 1
6041 cat >> confdefs.h <<\EOF
6042 #define HAVE_ISNAN 1
6045 cat >> confdefs.h <<\EOF
6046 #define HAVE_ISNANF 1
6050 esac
6053 *-netbsd*)
6054 # Check for available headers.
6055 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6056 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6057 fp.h locale.h float.h inttypes.h
6059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6061 echo "configure:6062: checking for $ac_hdr" >&5
6062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <$ac_hdr>
6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073 if test -z "$ac_err"; then
6074 rm -rf conftest*
6075 eval "ac_cv_header_$ac_safe=yes"
6076 else
6077 echo "$ac_err" >&5
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 rm -rf conftest*
6081 eval "ac_cv_header_$ac_safe=no"
6083 rm -f conftest*
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6088 cat >> confdefs.h <<EOF
6089 #define $ac_tr_hdr 1
6092 else
6093 echo "$ac_t""no" 1>&6
6095 done
6097 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6100 # If we're not using GNU ld, then there's no point in even trying these
6101 # tests. Check for that first. We should have already tested for gld
6102 # by now (in libtool), but require it now just to be safe...
6103 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6104 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6107 # The name set by libtool depends on the version of libtool. Shame on us
6108 # for depending on an impl detail, but c'est la vie. Older versions used
6109 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6110 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6111 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6112 # set (hence we're using an older libtool), then set it.
6113 if test x${with_gnu_ld+set} != xset; then
6114 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6115 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6116 with_gnu_ld=no
6117 else
6118 with_gnu_ld=$ac_cv_prog_gnu_ld
6122 # Start by getting the version number. I think the libtool test already
6123 # does some of this, but throws away the result.
6125 ldver=`$LD --version 2>/dev/null | head -1 | \
6126 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6128 glibcpp_gnu_ld_version=`echo $ldver | \
6129 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6131 # Set --gc-sections.
6132 if test "$with_gnu_ld" = "notbroken"; then
6133 # GNU ld it is! Joy and bunny rabbits!
6135 # All these tests are for C++; save the language and the compiler flags.
6136 # Need to do this so that g++ won't try to link in libstdc++
6137 ac_test_CFLAGS="${CFLAGS+set}"
6138 ac_save_CFLAGS="$CFLAGS"
6139 CFLAGS='-x c++ -Wl,--gc-sections'
6141 # Check for -Wl,--gc-sections
6142 # XXX This test is broken at the moment, as symbols required for
6143 # linking are now in libsupc++ (not built yet.....). In addition,
6144 # this test has cored on solaris in the past. In addition,
6145 # --gc-sections doesn't really work at the moment (keeps on discarding
6146 # used sections, first .eh_frame and now some of the glibc sections for
6147 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6148 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6149 echo "configure:6150: checking for ld that supports -Wl,--gc-sections" >&5
6150 if test "$cross_compiling" = yes; then
6151 ac_sectionLDflags=yes
6152 else
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6157 int main(void)
6159 try { throw 1; }
6160 catch (...) { };
6161 return 0;
6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6166 then
6167 ac_sectionLDflags=yes
6168 else
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 rm -fr conftest*
6172 ac_sectionLDflags=no
6174 rm -fr conftest*
6177 if test "$ac_test_CFLAGS" = set; then
6178 CFLAGS="$ac_save_CFLAGS"
6179 else
6180 # this is the suspicious part
6181 CFLAGS=''
6183 if test "$ac_sectionLDflags" = "yes"; then
6184 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6186 echo "$ac_t""$ac_sectionLDflags" 1>&6
6189 # Set linker optimization flags.
6190 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6191 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6198 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6199 echo "configure:6200: checking for main in -lm" >&5
6200 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204 ac_save_LIBS="$LIBS"
6205 LIBS="-lm $LIBS"
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6210 int main() {
6211 main()
6212 ; return 0; }
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215 rm -rf conftest*
6216 eval "ac_cv_lib_$ac_lib_var=yes"
6217 else
6218 echo "configure: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6220 rm -rf conftest*
6221 eval "ac_cv_lib_$ac_lib_var=no"
6223 rm -f conftest*
6224 LIBS="$ac_save_LIBS"
6227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6231 cat >> confdefs.h <<EOF
6232 #define $ac_tr_lib 1
6235 LIBS="-lm $LIBS"
6237 else
6238 echo "$ac_t""no" 1>&6
6241 for ac_func in nan copysignf
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6247 else
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char $ac_func(); below. */
6253 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6257 char $ac_func();
6259 int main() {
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 choke me
6266 #else
6267 $ac_func();
6268 #endif
6270 ; return 0; }
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 rm -rf conftest*
6274 eval "ac_cv_func_$ac_func=yes"
6275 else
6276 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 rm -rf conftest*
6279 eval "ac_cv_func_$ac_func=no"
6281 rm -f conftest*
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287 cat >> confdefs.h <<EOF
6288 #define $ac_tr_func 1
6291 else
6292 echo "$ac_t""no" 1>&6
6293 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6295 done
6298 for ac_func in __signbit
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char $ac_func(); below. */
6310 #include <assert.h>
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char $ac_func();
6316 int main() {
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6322 choke me
6323 #else
6324 $ac_func();
6325 #endif
6327 ; return 0; }
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 rm -rf conftest*
6331 eval "ac_cv_func_$ac_func=yes"
6332 else
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 rm -rf conftest*
6336 eval "ac_cv_func_$ac_func=no"
6338 rm -f conftest*
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344 cat >> confdefs.h <<EOF
6345 #define $ac_tr_func 1
6348 else
6349 echo "$ac_t""no" 1>&6
6350 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6352 done
6354 for ac_func in __signbitf
6356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_func" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6360 else
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* System header to define __stub macros and hopefully few prototypes,
6365 which can conflict with char $ac_func(); below. */
6366 #include <assert.h>
6367 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */
6370 char $ac_func();
6372 int main() {
6374 /* The GNU C library defines this for functions which it implements
6375 to always fail with ENOSYS. Some functions are actually named
6376 something starting with __ and the normal name is an alias. */
6377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 choke me
6379 #else
6380 $ac_func();
6381 #endif
6383 ; return 0; }
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386 rm -rf conftest*
6387 eval "ac_cv_func_$ac_func=yes"
6388 else
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 rm -rf conftest*
6392 eval "ac_cv_func_$ac_func=no"
6394 rm -f conftest*
6397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400 cat >> confdefs.h <<EOF
6401 #define $ac_tr_func 1
6404 else
6405 echo "$ac_t""no" 1>&6
6406 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6408 done
6411 if test x$ac_cv_func_copysignl = x"yes"; then
6412 for ac_func in __signbitl
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func(); below. */
6424 #include <assert.h>
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6428 char $ac_func();
6430 int main() {
6432 /* The GNU C library defines this for functions which it implements
6433 to always fail with ENOSYS. Some functions are actually named
6434 something starting with __ and the normal name is an alias. */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 choke me
6437 #else
6438 $ac_func();
6439 #endif
6441 ; return 0; }
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444 rm -rf conftest*
6445 eval "ac_cv_func_$ac_func=yes"
6446 else
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6449 rm -rf conftest*
6450 eval "ac_cv_func_$ac_func=no"
6452 rm -f conftest*
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456 echo "$ac_t""yes" 1>&6
6457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458 cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6462 else
6463 echo "$ac_t""no" 1>&6
6464 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6466 done
6474 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6475 echo "configure:6476: checking for mbstate_t" >&5
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 #include <wchar.h>
6480 int main() {
6481 mbstate_t teststate;
6482 ; return 0; }
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6485 rm -rf conftest*
6486 have_mbstate_t=yes
6487 else
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 rm -rf conftest*
6491 have_mbstate_t=no
6493 rm -f conftest*
6494 echo "$ac_t""$have_mbstate_t" 1>&6
6495 if test x"$have_mbstate_t" = xyes; then
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_MBSTATE_T 1
6502 for ac_hdr in wchar.h
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 #include <$ac_hdr>
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6519 rm -rf conftest*
6520 eval "ac_cv_header_$ac_safe=yes"
6521 else
6522 echo "$ac_err" >&5
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 rm -rf conftest*
6526 eval "ac_cv_header_$ac_safe=no"
6528 rm -f conftest*
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533 cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6536 ac_has_wchar_h=yes
6537 else
6538 echo "$ac_t""no" 1>&6
6539 ac_has_wchar_h=no
6541 done
6543 for ac_hdr in wctype.h
6545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_hdr" >&5
6548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <$ac_hdr>
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6560 rm -rf conftest*
6561 eval "ac_cv_header_$ac_safe=yes"
6562 else
6563 echo "$ac_err" >&5
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6566 rm -rf conftest*
6567 eval "ac_cv_header_$ac_safe=no"
6569 rm -f conftest*
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_hdr 1
6577 ac_has_wctype_h=yes
6578 else
6579 echo "$ac_t""no" 1>&6
6580 ac_has_wctype_h=no
6582 done
6585 if test x"$ac_has_wchar_h" = xyes &&
6586 test x"$ac_has_wctype_h" = xyes &&
6587 test x"$enable_c_mbchar" != xno; then
6589 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6590 echo "configure:6591: checking for WCHAR_MIN and WCHAR_MAX" >&5
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 #include <wchar.h>
6595 int main() {
6596 int i = WCHAR_MIN; int j = WCHAR_MAX;
6597 ; return 0; }
6599 if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600 rm -rf conftest*
6601 has_wchar_minmax=yes
6602 else
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 rm -rf conftest*
6606 has_wchar_minmax=no
6608 rm -f conftest*
6609 echo "$ac_t""$has_wchar_minmax" 1>&6
6611 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6612 echo "configure:6613: checking for WEOF" >&5
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6617 #include <wchar.h>
6618 #include <stddef.h>
6619 int main() {
6620 wint_t i = WEOF;
6621 ; return 0; }
6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6624 rm -rf conftest*
6625 has_weof=yes
6626 else
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 rm -rf conftest*
6630 has_weof=no
6632 rm -f conftest*
6633 echo "$ac_t""$has_weof" 1>&6
6635 ac_wfuncs=yes
6636 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6639 echo "configure:6640: checking for $ac_func" >&5
6640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* System header to define __stub macros and hopefully few prototypes,
6647 which can conflict with char $ac_func(); below. */
6648 #include <assert.h>
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char $ac_func();
6654 int main() {
6656 /* The GNU C library defines this for functions which it implements
6657 to always fail with ENOSYS. Some functions are actually named
6658 something starting with __ and the normal name is an alias. */
6659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 choke me
6661 #else
6662 $ac_func();
6663 #endif
6665 ; return 0; }
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 rm -rf conftest*
6669 eval "ac_cv_func_$ac_func=yes"
6670 else
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 rm -rf conftest*
6674 eval "ac_cv_func_$ac_func=no"
6676 rm -f conftest*
6679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6682 cat >> confdefs.h <<EOF
6683 #define $ac_tr_func 1
6686 else
6687 echo "$ac_t""no" 1>&6
6689 ac_wfuncs=no
6691 done
6694 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6695 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6696 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6697 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6698 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6699 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char $ac_func(); below. */
6711 #include <assert.h>
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6715 char $ac_func();
6717 int main() {
6719 /* The GNU C library defines this for functions which it implements
6720 to always fail with ENOSYS. Some functions are actually named
6721 something starting with __ and the normal name is an alias. */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 choke me
6724 #else
6725 $ac_func();
6726 #endif
6728 ; return 0; }
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest*
6732 eval "ac_cv_func_$ac_func=yes"
6733 else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 rm -rf conftest*
6737 eval "ac_cv_func_$ac_func=no"
6739 rm -f conftest*
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743 echo "$ac_t""yes" 1>&6
6744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745 cat >> confdefs.h <<EOF
6746 #define $ac_tr_func 1
6749 else
6750 echo "$ac_t""no" 1>&6
6752 ac_wfuncs=no
6754 done
6757 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6758 echo "configure:6759: checking for ISO C99 wchar_t support" >&5
6759 if test x"$has_weof" = xyes &&
6760 test x"$has_wchar_minmax" = xyes &&
6761 test x"$ac_wfuncs" = xyes; then
6762 ac_isoC99_wchar_t=yes
6763 else
6764 ac_isoC99_wchar_t=no
6766 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6768 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for iconv.h" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <iconv.h>
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6782 if test -z "$ac_err"; then
6783 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes"
6785 else
6786 echo "$ac_err" >&5
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_header_$ac_safe=no"
6792 rm -f conftest*
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_has_iconv_h=yes
6797 else
6798 echo "$ac_t""no" 1>&6
6799 ac_has_iconv_h=no
6802 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6803 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6804 echo "configure:6805: checking for langinfo.h" >&5
6805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6807 else
6808 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 #include <langinfo.h>
6813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6814 { (eval echo configure:6815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6816 if test -z "$ac_err"; then
6817 rm -rf conftest*
6818 eval "ac_cv_header_$ac_safe=yes"
6819 else
6820 echo "$ac_err" >&5
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6823 rm -rf conftest*
6824 eval "ac_cv_header_$ac_safe=no"
6826 rm -f conftest*
6828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6830 ac_has_langinfo_h=yes
6831 else
6832 echo "$ac_t""no" 1>&6
6833 ac_has_langinfo_h=no
6837 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6838 echo "configure:6839: checking for iconv in -liconv" >&5
6839 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6842 else
6843 ac_save_LIBS="$LIBS"
6844 LIBS="-liconv $LIBS"
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char iconv();
6853 int main() {
6854 iconv()
6855 ; return 0; }
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 rm -rf conftest*
6859 eval "ac_cv_lib_$ac_lib_var=yes"
6860 else
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 rm -rf conftest*
6864 eval "ac_cv_lib_$ac_lib_var=no"
6866 rm -f conftest*
6867 LIBS="$ac_save_LIBS"
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871 echo "$ac_t""yes" 1>&6
6872 libiconv="-liconv"
6873 else
6874 echo "$ac_t""no" 1>&6
6877 ac_save_LIBS="$LIBS"
6878 LIBS="$LIBS $libiconv"
6880 for ac_func in iconv_open iconv_close iconv nl_langinfo
6882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_func" >&5
6884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 /* System header to define __stub macros and hopefully few prototypes,
6891 which can conflict with char $ac_func(); below. */
6892 #include <assert.h>
6893 /* Override any gcc2 internal prototype to avoid an error. */
6894 /* We use char because int might match the return type of a gcc2
6895 builtin and then its argument prototype would still apply. */
6896 char $ac_func();
6898 int main() {
6900 /* The GNU C library defines this for functions which it implements
6901 to always fail with ENOSYS. Some functions are actually named
6902 something starting with __ and the normal name is an alias. */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 choke me
6905 #else
6906 $ac_func();
6907 #endif
6909 ; return 0; }
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 rm -rf conftest*
6913 eval "ac_cv_func_$ac_func=yes"
6914 else
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6917 rm -rf conftest*
6918 eval "ac_cv_func_$ac_func=no"
6920 rm -f conftest*
6923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6926 cat >> confdefs.h <<EOF
6927 #define $ac_tr_func 1
6930 ac_XPG2funcs=yes
6931 else
6932 echo "$ac_t""no" 1>&6
6933 ac_XPG2funcs=no
6935 done
6938 LIBS="$ac_save_LIBS"
6940 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6941 echo "configure:6942: checking for XPG2 wchar_t support" >&5
6942 if test x"$ac_has_iconv_h" = xyes &&
6943 test x"$ac_has_langinfo_h" = xyes &&
6944 test x"$ac_XPG2funcs" = xyes; then
6945 ac_XPG2_wchar_t=yes
6946 else
6947 ac_XPG2_wchar_t=no
6949 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6951 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6952 echo "configure:6953: checking for enabled wchar_t specializations" >&5
6953 if test x"$ac_isoC99_wchar_t" = xyes &&
6954 test x"$ac_XPG2_wchar_t" = xyes; then
6955 cat >> confdefs.h <<\EOF
6956 #define _GLIBCPP_USE_WCHAR_T 1
6959 echo "$ac_t"""yes"" 1>&6
6960 else
6961 echo "$ac_t"""no"" 1>&6
6963 else
6964 echo "configure: warning: wchar_t support disabled." 1>&2
6967 os_include_dir="os/bsd/netbsd"
6968 cat >> confdefs.h <<\EOF
6969 #define HAVE_COPYSIGN 1
6972 cat >> confdefs.h <<\EOF
6973 #define HAVE_COPYSIGNF 1
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_FINITEF 1
6980 cat >> confdefs.h <<\EOF
6981 #define HAVE_FINITE 1
6984 cat >> confdefs.h <<\EOF
6985 #define HAVE_FREXPF 1
6988 cat >> confdefs.h <<\EOF
6989 #define HAVE_HYPOTF 1
6992 cat >> confdefs.h <<\EOF
6993 #define HAVE_ISINF 1
6996 cat >> confdefs.h <<\EOF
6997 #define HAVE_ISINFF 1
7000 cat >> confdefs.h <<\EOF
7001 #define HAVE_ISNAN 1
7004 cat >> confdefs.h <<\EOF
7005 #define HAVE_ISNANF 1
7008 if test x"long_double_math_on_this_cpu" = x"yes"; then
7009 cat >> confdefs.h <<\EOF
7010 #define HAVE_FINITEL 1
7013 cat >> confdefs.h <<\EOF
7014 #define HAVE_ISINFL 1
7017 cat >> confdefs.h <<\EOF
7018 #define HAVE_ISNANL 1
7023 *-mingw32*)
7024 for ac_hdr in sys/types.h locale.h float.h
7026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7028 echo "configure:7029: checking for $ac_hdr" >&5
7029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7031 else
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7035 #include <$ac_hdr>
7037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7038 { (eval echo configure:7039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7040 if test -z "$ac_err"; then
7041 rm -rf conftest*
7042 eval "ac_cv_header_$ac_safe=yes"
7043 else
7044 echo "$ac_err" >&5
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -rf conftest*
7048 eval "ac_cv_header_$ac_safe=no"
7050 rm -f conftest*
7052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_hdr 1
7059 else
7060 echo "$ac_t""no" 1>&6
7062 done
7065 # If we're not using GNU ld, then there's no point in even trying these
7066 # tests. Check for that first. We should have already tested for gld
7067 # by now (in libtool), but require it now just to be safe...
7068 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7069 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7072 # The name set by libtool depends on the version of libtool. Shame on us
7073 # for depending on an impl detail, but c'est la vie. Older versions used
7074 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7075 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7076 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7077 # set (hence we're using an older libtool), then set it.
7078 if test x${with_gnu_ld+set} != xset; then
7079 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7080 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7081 with_gnu_ld=no
7082 else
7083 with_gnu_ld=$ac_cv_prog_gnu_ld
7087 # Start by getting the version number. I think the libtool test already
7088 # does some of this, but throws away the result.
7090 ldver=`$LD --version 2>/dev/null | head -1 | \
7091 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7093 glibcpp_gnu_ld_version=`echo $ldver | \
7094 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7096 # Set --gc-sections.
7097 if test "$with_gnu_ld" = "notbroken"; then
7098 # GNU ld it is! Joy and bunny rabbits!
7100 # All these tests are for C++; save the language and the compiler flags.
7101 # Need to do this so that g++ won't try to link in libstdc++
7102 ac_test_CFLAGS="${CFLAGS+set}"
7103 ac_save_CFLAGS="$CFLAGS"
7104 CFLAGS='-x c++ -Wl,--gc-sections'
7106 # Check for -Wl,--gc-sections
7107 # XXX This test is broken at the moment, as symbols required for
7108 # linking are now in libsupc++ (not built yet.....). In addition,
7109 # this test has cored on solaris in the past. In addition,
7110 # --gc-sections doesn't really work at the moment (keeps on discarding
7111 # used sections, first .eh_frame and now some of the glibc sections for
7112 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7113 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7114 echo "configure:7115: checking for ld that supports -Wl,--gc-sections" >&5
7115 if test "$cross_compiling" = yes; then
7116 ac_sectionLDflags=yes
7117 else
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7122 int main(void)
7124 try { throw 1; }
7125 catch (...) { };
7126 return 0;
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7131 then
7132 ac_sectionLDflags=yes
7133 else
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 rm -fr conftest*
7137 ac_sectionLDflags=no
7139 rm -fr conftest*
7142 if test "$ac_test_CFLAGS" = set; then
7143 CFLAGS="$ac_save_CFLAGS"
7144 else
7145 # this is the suspicious part
7146 CFLAGS=''
7148 if test "$ac_sectionLDflags" = "yes"; then
7149 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7151 echo "$ac_t""$ac_sectionLDflags" 1>&6
7154 # Set linker optimization flags.
7155 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7156 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7163 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7164 echo "configure:7165: checking for main in -lm" >&5
7165 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7168 else
7169 ac_save_LIBS="$LIBS"
7170 LIBS="-lm $LIBS"
7171 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7175 int main() {
7176 main()
7177 ; return 0; }
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 rm -rf conftest*
7181 eval "ac_cv_lib_$ac_lib_var=yes"
7182 else
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 eval "ac_cv_lib_$ac_lib_var=no"
7188 rm -f conftest*
7189 LIBS="$ac_save_LIBS"
7192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7196 cat >> confdefs.h <<EOF
7197 #define $ac_tr_lib 1
7200 LIBS="-lm $LIBS"
7202 else
7203 echo "$ac_t""no" 1>&6
7206 for ac_func in nan copysignf
7208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_func" >&5
7210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7212 else
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* System header to define __stub macros and hopefully few prototypes,
7217 which can conflict with char $ac_func(); below. */
7218 #include <assert.h>
7219 /* Override any gcc2 internal prototype to avoid an error. */
7220 /* We use char because int might match the return type of a gcc2
7221 builtin and then its argument prototype would still apply. */
7222 char $ac_func();
7224 int main() {
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 choke me
7231 #else
7232 $ac_func();
7233 #endif
7235 ; return 0; }
7237 if { (eval echo configure:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7238 rm -rf conftest*
7239 eval "ac_cv_func_$ac_func=yes"
7240 else
7241 echo "configure: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 rm -rf conftest*
7244 eval "ac_cv_func_$ac_func=no"
7246 rm -f conftest*
7249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7252 cat >> confdefs.h <<EOF
7253 #define $ac_tr_func 1
7256 else
7257 echo "$ac_t""no" 1>&6
7258 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7260 done
7263 for ac_func in __signbit
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_func" >&5
7267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7269 else
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char $ac_func(); below. */
7275 #include <assert.h>
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7279 char $ac_func();
7281 int main() {
7283 /* The GNU C library defines this for functions which it implements
7284 to always fail with ENOSYS. Some functions are actually named
7285 something starting with __ and the normal name is an alias. */
7286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 choke me
7288 #else
7289 $ac_func();
7290 #endif
7292 ; return 0; }
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7295 rm -rf conftest*
7296 eval "ac_cv_func_$ac_func=yes"
7297 else
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7300 rm -rf conftest*
7301 eval "ac_cv_func_$ac_func=no"
7303 rm -f conftest*
7306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7309 cat >> confdefs.h <<EOF
7310 #define $ac_tr_func 1
7313 else
7314 echo "$ac_t""no" 1>&6
7315 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7317 done
7319 for ac_func in __signbitf
7321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7322 echo "configure:7323: checking for $ac_func" >&5
7323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7325 else
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* System header to define __stub macros and hopefully few prototypes,
7330 which can conflict with char $ac_func(); below. */
7331 #include <assert.h>
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char $ac_func();
7337 int main() {
7339 /* The GNU C library defines this for functions which it implements
7340 to always fail with ENOSYS. Some functions are actually named
7341 something starting with __ and the normal name is an alias. */
7342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 choke me
7344 #else
7345 $ac_func();
7346 #endif
7348 ; return 0; }
7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351 rm -rf conftest*
7352 eval "ac_cv_func_$ac_func=yes"
7353 else
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 rm -rf conftest*
7357 eval "ac_cv_func_$ac_func=no"
7359 rm -f conftest*
7362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7363 echo "$ac_t""yes" 1>&6
7364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7365 cat >> confdefs.h <<EOF
7366 #define $ac_tr_func 1
7369 else
7370 echo "$ac_t""no" 1>&6
7371 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7373 done
7376 if test x$ac_cv_func_copysignl = x"yes"; then
7377 for ac_func in __signbitl
7379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_func" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7383 else
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char $ac_func(); below. */
7389 #include <assert.h>
7390 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393 char $ac_func();
7395 int main() {
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7401 choke me
7402 #else
7403 $ac_func();
7404 #endif
7406 ; return 0; }
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 rm -rf conftest*
7410 eval "ac_cv_func_$ac_func=yes"
7411 else
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7414 rm -rf conftest*
7415 eval "ac_cv_func_$ac_func=no"
7417 rm -f conftest*
7420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7423 cat >> confdefs.h <<EOF
7424 #define $ac_tr_func 1
7427 else
7428 echo "$ac_t""no" 1>&6
7429 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7431 done
7439 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7440 echo "configure:7441: checking for mbstate_t" >&5
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 #include <wchar.h>
7445 int main() {
7446 mbstate_t teststate;
7447 ; return 0; }
7449 if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450 rm -rf conftest*
7451 have_mbstate_t=yes
7452 else
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7455 rm -rf conftest*
7456 have_mbstate_t=no
7458 rm -f conftest*
7459 echo "$ac_t""$have_mbstate_t" 1>&6
7460 if test x"$have_mbstate_t" = xyes; then
7461 cat >> confdefs.h <<\EOF
7462 #define HAVE_MBSTATE_T 1
7467 for ac_hdr in wchar.h
7469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7471 echo "configure:7472: checking for $ac_hdr" >&5
7472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7474 else
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 #include <$ac_hdr>
7480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7481 { (eval echo configure:7482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7483 if test -z "$ac_err"; then
7484 rm -rf conftest*
7485 eval "ac_cv_header_$ac_safe=yes"
7486 else
7487 echo "$ac_err" >&5
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 rm -rf conftest*
7491 eval "ac_cv_header_$ac_safe=no"
7493 rm -f conftest*
7495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7498 cat >> confdefs.h <<EOF
7499 #define $ac_tr_hdr 1
7501 ac_has_wchar_h=yes
7502 else
7503 echo "$ac_t""no" 1>&6
7504 ac_has_wchar_h=no
7506 done
7508 for ac_hdr in wctype.h
7510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7512 echo "configure:7513: checking for $ac_hdr" >&5
7513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7514 echo $ac_n "(cached) $ac_c" 1>&6
7515 else
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 #include <$ac_hdr>
7521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7522 { (eval echo configure:7523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7524 if test -z "$ac_err"; then
7525 rm -rf conftest*
7526 eval "ac_cv_header_$ac_safe=yes"
7527 else
7528 echo "$ac_err" >&5
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 rm -rf conftest*
7532 eval "ac_cv_header_$ac_safe=no"
7534 rm -f conftest*
7536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7537 echo "$ac_t""yes" 1>&6
7538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7539 cat >> confdefs.h <<EOF
7540 #define $ac_tr_hdr 1
7542 ac_has_wctype_h=yes
7543 else
7544 echo "$ac_t""no" 1>&6
7545 ac_has_wctype_h=no
7547 done
7550 if test x"$ac_has_wchar_h" = xyes &&
7551 test x"$ac_has_wctype_h" = xyes &&
7552 test x"$enable_c_mbchar" != xno; then
7554 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7555 echo "configure:7556: checking for WCHAR_MIN and WCHAR_MAX" >&5
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 #include <wchar.h>
7560 int main() {
7561 int i = WCHAR_MIN; int j = WCHAR_MAX;
7562 ; return 0; }
7564 if { (eval echo configure:7565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7565 rm -rf conftest*
7566 has_wchar_minmax=yes
7567 else
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 rm -rf conftest*
7571 has_wchar_minmax=no
7573 rm -f conftest*
7574 echo "$ac_t""$has_wchar_minmax" 1>&6
7576 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7577 echo "configure:7578: checking for WEOF" >&5
7578 cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7582 #include <wchar.h>
7583 #include <stddef.h>
7584 int main() {
7585 wint_t i = WEOF;
7586 ; return 0; }
7588 if { (eval echo configure:7589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7589 rm -rf conftest*
7590 has_weof=yes
7591 else
7592 echo "configure: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7594 rm -rf conftest*
7595 has_weof=no
7597 rm -f conftest*
7598 echo "$ac_t""$has_weof" 1>&6
7600 ac_wfuncs=yes
7601 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_func" >&5
7605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7607 else
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* System header to define __stub macros and hopefully few prototypes,
7612 which can conflict with char $ac_func(); below. */
7613 #include <assert.h>
7614 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7617 char $ac_func();
7619 int main() {
7621 /* The GNU C library defines this for functions which it implements
7622 to always fail with ENOSYS. Some functions are actually named
7623 something starting with __ and the normal name is an alias. */
7624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7625 choke me
7626 #else
7627 $ac_func();
7628 #endif
7630 ; return 0; }
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633 rm -rf conftest*
7634 eval "ac_cv_func_$ac_func=yes"
7635 else
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 rm -rf conftest*
7639 eval "ac_cv_func_$ac_func=no"
7641 rm -f conftest*
7644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7647 cat >> confdefs.h <<EOF
7648 #define $ac_tr_func 1
7651 else
7652 echo "$ac_t""no" 1>&6
7654 ac_wfuncs=no
7656 done
7659 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7660 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7661 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7662 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7663 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7664 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7670 else
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char $ac_func(); below. */
7676 #include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680 char $ac_func();
7682 int main() {
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 choke me
7689 #else
7690 $ac_func();
7691 #endif
7693 ; return 0; }
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 rm -rf conftest*
7697 eval "ac_cv_func_$ac_func=yes"
7698 else
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 eval "ac_cv_func_$ac_func=no"
7704 rm -f conftest*
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_func 1
7714 else
7715 echo "$ac_t""no" 1>&6
7717 ac_wfuncs=no
7719 done
7722 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7723 echo "configure:7724: checking for ISO C99 wchar_t support" >&5
7724 if test x"$has_weof" = xyes &&
7725 test x"$has_wchar_minmax" = xyes &&
7726 test x"$ac_wfuncs" = xyes; then
7727 ac_isoC99_wchar_t=yes
7728 else
7729 ac_isoC99_wchar_t=no
7731 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7733 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7734 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7735 echo "configure:7736: checking for iconv.h" >&5
7736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7738 else
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <iconv.h>
7744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7745 { (eval echo configure:7746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7747 if test -z "$ac_err"; then
7748 rm -rf conftest*
7749 eval "ac_cv_header_$ac_safe=yes"
7750 else
7751 echo "$ac_err" >&5
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_header_$ac_safe=no"
7757 rm -f conftest*
7759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_has_iconv_h=yes
7762 else
7763 echo "$ac_t""no" 1>&6
7764 ac_has_iconv_h=no
7767 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7768 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7769 echo "configure:7770: checking for langinfo.h" >&5
7770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7772 else
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 #include <langinfo.h>
7778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7779 { (eval echo configure:7780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7781 if test -z "$ac_err"; then
7782 rm -rf conftest*
7783 eval "ac_cv_header_$ac_safe=yes"
7784 else
7785 echo "$ac_err" >&5
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7788 rm -rf conftest*
7789 eval "ac_cv_header_$ac_safe=no"
7791 rm -f conftest*
7793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 ac_has_langinfo_h=yes
7796 else
7797 echo "$ac_t""no" 1>&6
7798 ac_has_langinfo_h=no
7802 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7803 echo "configure:7804: checking for iconv in -liconv" >&5
7804 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808 ac_save_LIBS="$LIBS"
7809 LIBS="-liconv $LIBS"
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char iconv();
7818 int main() {
7819 iconv()
7820 ; return 0; }
7822 if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7823 rm -rf conftest*
7824 eval "ac_cv_lib_$ac_lib_var=yes"
7825 else
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 rm -rf conftest*
7829 eval "ac_cv_lib_$ac_lib_var=no"
7831 rm -f conftest*
7832 LIBS="$ac_save_LIBS"
7835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7836 echo "$ac_t""yes" 1>&6
7837 libiconv="-liconv"
7838 else
7839 echo "$ac_t""no" 1>&6
7842 ac_save_LIBS="$LIBS"
7843 LIBS="$LIBS $libiconv"
7845 for ac_func in iconv_open iconv_close iconv nl_langinfo
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7857 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char $ac_func();
7863 int main() {
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 choke me
7870 #else
7871 $ac_func();
7872 #endif
7874 ; return 0; }
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877 rm -rf conftest*
7878 eval "ac_cv_func_$ac_func=yes"
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 eval "ac_cv_func_$ac_func=no"
7885 rm -f conftest*
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7895 ac_XPG2funcs=yes
7896 else
7897 echo "$ac_t""no" 1>&6
7898 ac_XPG2funcs=no
7900 done
7903 LIBS="$ac_save_LIBS"
7905 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7906 echo "configure:7907: checking for XPG2 wchar_t support" >&5
7907 if test x"$ac_has_iconv_h" = xyes &&
7908 test x"$ac_has_langinfo_h" = xyes &&
7909 test x"$ac_XPG2funcs" = xyes; then
7910 ac_XPG2_wchar_t=yes
7911 else
7912 ac_XPG2_wchar_t=no
7914 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7916 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7917 echo "configure:7918: checking for enabled wchar_t specializations" >&5
7918 if test x"$ac_isoC99_wchar_t" = xyes &&
7919 test x"$ac_XPG2_wchar_t" = xyes; then
7920 cat >> confdefs.h <<\EOF
7921 #define _GLIBCPP_USE_WCHAR_T 1
7924 echo "$ac_t"""yes"" 1>&6
7925 else
7926 echo "$ac_t"""no"" 1>&6
7928 else
7929 echo "configure: warning: wchar_t support disabled." 1>&2
7932 os_include_dir="os/mingw32"
7934 *-windiss*)
7935 os_include_dir="os/windiss"
7937 *-qnx6.[12]*)
7938 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7941 # If we're not using GNU ld, then there's no point in even trying these
7942 # tests. Check for that first. We should have already tested for gld
7943 # by now (in libtool), but require it now just to be safe...
7944 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7945 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7948 # The name set by libtool depends on the version of libtool. Shame on us
7949 # for depending on an impl detail, but c'est la vie. Older versions used
7950 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7951 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7952 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7953 # set (hence we're using an older libtool), then set it.
7954 if test x${with_gnu_ld+set} != xset; then
7955 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7956 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7957 with_gnu_ld=no
7958 else
7959 with_gnu_ld=$ac_cv_prog_gnu_ld
7963 # Start by getting the version number. I think the libtool test already
7964 # does some of this, but throws away the result.
7966 ldver=`$LD --version 2>/dev/null | head -1 | \
7967 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7969 glibcpp_gnu_ld_version=`echo $ldver | \
7970 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7972 # Set --gc-sections.
7973 if test "$with_gnu_ld" = "notbroken"; then
7974 # GNU ld it is! Joy and bunny rabbits!
7976 # All these tests are for C++; save the language and the compiler flags.
7977 # Need to do this so that g++ won't try to link in libstdc++
7978 ac_test_CFLAGS="${CFLAGS+set}"
7979 ac_save_CFLAGS="$CFLAGS"
7980 CFLAGS='-x c++ -Wl,--gc-sections'
7982 # Check for -Wl,--gc-sections
7983 # XXX This test is broken at the moment, as symbols required for
7984 # linking are now in libsupc++ (not built yet.....). In addition,
7985 # this test has cored on solaris in the past. In addition,
7986 # --gc-sections doesn't really work at the moment (keeps on discarding
7987 # used sections, first .eh_frame and now some of the glibc sections for
7988 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7989 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7990 echo "configure:7991: checking for ld that supports -Wl,--gc-sections" >&5
7991 if test "$cross_compiling" = yes; then
7992 ac_sectionLDflags=yes
7993 else
7994 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7998 int main(void)
8000 try { throw 1; }
8001 catch (...) { };
8002 return 0;
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8007 then
8008 ac_sectionLDflags=yes
8009 else
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 rm -fr conftest*
8013 ac_sectionLDflags=no
8015 rm -fr conftest*
8018 if test "$ac_test_CFLAGS" = set; then
8019 CFLAGS="$ac_save_CFLAGS"
8020 else
8021 # this is the suspicious part
8022 CFLAGS=''
8024 if test "$ac_sectionLDflags" = "yes"; then
8025 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8027 echo "$ac_t""$ac_sectionLDflags" 1>&6
8030 # Set linker optimization flags.
8031 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8032 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8039 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8040 echo "configure:8041: checking for main in -lm" >&5
8041 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045 ac_save_LIBS="$LIBS"
8046 LIBS="-lm $LIBS"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8051 int main() {
8052 main()
8053 ; return 0; }
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056 rm -rf conftest*
8057 eval "ac_cv_lib_$ac_lib_var=yes"
8058 else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 rm -rf conftest*
8062 eval "ac_cv_lib_$ac_lib_var=no"
8064 rm -f conftest*
8065 LIBS="$ac_save_LIBS"
8068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8072 cat >> confdefs.h <<EOF
8073 #define $ac_tr_lib 1
8076 LIBS="-lm $LIBS"
8078 else
8079 echo "$ac_t""no" 1>&6
8082 for ac_func in nan copysignf
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func(); below. */
8094 #include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098 char $ac_func();
8100 int main() {
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 $ac_func();
8109 #endif
8111 ; return 0; }
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 rm -rf conftest*
8115 eval "ac_cv_func_$ac_func=yes"
8116 else
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 eval "ac_cv_func_$ac_func=no"
8122 rm -f conftest*
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_func 1
8132 else
8133 echo "$ac_t""no" 1>&6
8134 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8136 done
8139 for ac_func in __signbit
8141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8142 echo "configure:8143: checking for $ac_func" >&5
8143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8144 echo $ac_n "(cached) $ac_c" 1>&6
8145 else
8146 cat > conftest.$ac_ext <<EOF
8147 #line 8148 "configure"
8148 #include "confdefs.h"
8149 /* System header to define __stub macros and hopefully few prototypes,
8150 which can conflict with char $ac_func(); below. */
8151 #include <assert.h>
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155 char $ac_func();
8157 int main() {
8159 /* The GNU C library defines this for functions which it implements
8160 to always fail with ENOSYS. Some functions are actually named
8161 something starting with __ and the normal name is an alias. */
8162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 choke me
8164 #else
8165 $ac_func();
8166 #endif
8168 ; return 0; }
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171 rm -rf conftest*
8172 eval "ac_cv_func_$ac_func=yes"
8173 else
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 rm -rf conftest*
8177 eval "ac_cv_func_$ac_func=no"
8179 rm -f conftest*
8182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8183 echo "$ac_t""yes" 1>&6
8184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8185 cat >> confdefs.h <<EOF
8186 #define $ac_tr_func 1
8189 else
8190 echo "$ac_t""no" 1>&6
8191 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8193 done
8195 for ac_func in __signbitf
8197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8198 echo "configure:8199: checking for $ac_func" >&5
8199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8201 else
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* System header to define __stub macros and hopefully few prototypes,
8206 which can conflict with char $ac_func(); below. */
8207 #include <assert.h>
8208 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8211 char $ac_func();
8213 int main() {
8215 /* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219 choke me
8220 #else
8221 $ac_func();
8222 #endif
8224 ; return 0; }
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8227 rm -rf conftest*
8228 eval "ac_cv_func_$ac_func=yes"
8229 else
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8232 rm -rf conftest*
8233 eval "ac_cv_func_$ac_func=no"
8235 rm -f conftest*
8238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8241 cat >> confdefs.h <<EOF
8242 #define $ac_tr_func 1
8245 else
8246 echo "$ac_t""no" 1>&6
8247 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8249 done
8252 if test x$ac_cv_func_copysignl = x"yes"; then
8253 for ac_func in __signbitl
8255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8256 echo "configure:8257: checking for $ac_func" >&5
8257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8259 else
8260 cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 /* System header to define __stub macros and hopefully few prototypes,
8264 which can conflict with char $ac_func(); below. */
8265 #include <assert.h>
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char $ac_func();
8271 int main() {
8273 /* The GNU C library defines this for functions which it implements
8274 to always fail with ENOSYS. Some functions are actually named
8275 something starting with __ and the normal name is an alias. */
8276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8277 choke me
8278 #else
8279 $ac_func();
8280 #endif
8282 ; return 0; }
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8285 rm -rf conftest*
8286 eval "ac_cv_func_$ac_func=yes"
8287 else
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8290 rm -rf conftest*
8291 eval "ac_cv_func_$ac_func=no"
8293 rm -f conftest*
8296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8299 cat >> confdefs.h <<EOF
8300 #define $ac_tr_func 1
8303 else
8304 echo "$ac_t""no" 1>&6
8305 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8307 done
8315 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8316 echo "configure:8317: checking for mbstate_t" >&5
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 #include <wchar.h>
8321 int main() {
8322 mbstate_t teststate;
8323 ; return 0; }
8325 if { (eval echo configure:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8326 rm -rf conftest*
8327 have_mbstate_t=yes
8328 else
8329 echo "configure: failed program was:" >&5
8330 cat conftest.$ac_ext >&5
8331 rm -rf conftest*
8332 have_mbstate_t=no
8334 rm -f conftest*
8335 echo "$ac_t""$have_mbstate_t" 1>&6
8336 if test x"$have_mbstate_t" = xyes; then
8337 cat >> confdefs.h <<\EOF
8338 #define HAVE_MBSTATE_T 1
8343 for ac_hdr in wchar.h
8345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8347 echo "configure:8348: checking for $ac_hdr" >&5
8348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8350 else
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 #include <$ac_hdr>
8356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8357 { (eval echo configure:8358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8359 if test -z "$ac_err"; then
8360 rm -rf conftest*
8361 eval "ac_cv_header_$ac_safe=yes"
8362 else
8363 echo "$ac_err" >&5
8364 echo "configure: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 rm -rf conftest*
8367 eval "ac_cv_header_$ac_safe=no"
8369 rm -f conftest*
8371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8374 cat >> confdefs.h <<EOF
8375 #define $ac_tr_hdr 1
8377 ac_has_wchar_h=yes
8378 else
8379 echo "$ac_t""no" 1>&6
8380 ac_has_wchar_h=no
8382 done
8384 for ac_hdr in wctype.h
8386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_hdr" >&5
8389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392 cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 #include <$ac_hdr>
8397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8398 { (eval echo configure:8399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8400 if test -z "$ac_err"; then
8401 rm -rf conftest*
8402 eval "ac_cv_header_$ac_safe=yes"
8403 else
8404 echo "$ac_err" >&5
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8407 rm -rf conftest*
8408 eval "ac_cv_header_$ac_safe=no"
8410 rm -f conftest*
8412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8413 echo "$ac_t""yes" 1>&6
8414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8415 cat >> confdefs.h <<EOF
8416 #define $ac_tr_hdr 1
8418 ac_has_wctype_h=yes
8419 else
8420 echo "$ac_t""no" 1>&6
8421 ac_has_wctype_h=no
8423 done
8426 if test x"$ac_has_wchar_h" = xyes &&
8427 test x"$ac_has_wctype_h" = xyes &&
8428 test x"$enable_c_mbchar" != xno; then
8430 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8431 echo "configure:8432: checking for WCHAR_MIN and WCHAR_MAX" >&5
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 #include <wchar.h>
8436 int main() {
8437 int i = WCHAR_MIN; int j = WCHAR_MAX;
8438 ; return 0; }
8440 if { (eval echo configure:8441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441 rm -rf conftest*
8442 has_wchar_minmax=yes
8443 else
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 rm -rf conftest*
8447 has_wchar_minmax=no
8449 rm -f conftest*
8450 echo "$ac_t""$has_wchar_minmax" 1>&6
8452 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8453 echo "configure:8454: checking for WEOF" >&5
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8458 #include <wchar.h>
8459 #include <stddef.h>
8460 int main() {
8461 wint_t i = WEOF;
8462 ; return 0; }
8464 if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8465 rm -rf conftest*
8466 has_weof=yes
8467 else
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 has_weof=no
8473 rm -f conftest*
8474 echo "$ac_t""$has_weof" 1>&6
8476 ac_wfuncs=yes
8477 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8480 echo "configure:8481: checking for $ac_func" >&5
8481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483 else
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* System header to define __stub macros and hopefully few prototypes,
8488 which can conflict with char $ac_func(); below. */
8489 #include <assert.h>
8490 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493 char $ac_func();
8495 int main() {
8497 /* The GNU C library defines this for functions which it implements
8498 to always fail with ENOSYS. Some functions are actually named
8499 something starting with __ and the normal name is an alias. */
8500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8501 choke me
8502 #else
8503 $ac_func();
8504 #endif
8506 ; return 0; }
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509 rm -rf conftest*
8510 eval "ac_cv_func_$ac_func=yes"
8511 else
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 rm -rf conftest*
8515 eval "ac_cv_func_$ac_func=no"
8517 rm -f conftest*
8520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8521 echo "$ac_t""yes" 1>&6
8522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8523 cat >> confdefs.h <<EOF
8524 #define $ac_tr_func 1
8527 else
8528 echo "$ac_t""no" 1>&6
8530 ac_wfuncs=no
8532 done
8535 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8536 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8537 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8538 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8539 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8540 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8543 echo "configure:8544: checking for $ac_func" >&5
8544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8545 echo $ac_n "(cached) $ac_c" 1>&6
8546 else
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func(); below. */
8552 #include <assert.h>
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8556 char $ac_func();
8558 int main() {
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8564 choke me
8565 #else
8566 $ac_func();
8567 #endif
8569 ; return 0; }
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8572 rm -rf conftest*
8573 eval "ac_cv_func_$ac_func=yes"
8574 else
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8577 rm -rf conftest*
8578 eval "ac_cv_func_$ac_func=no"
8580 rm -f conftest*
8583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8586 cat >> confdefs.h <<EOF
8587 #define $ac_tr_func 1
8590 else
8591 echo "$ac_t""no" 1>&6
8593 ac_wfuncs=no
8595 done
8598 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8599 echo "configure:8600: checking for ISO C99 wchar_t support" >&5
8600 if test x"$has_weof" = xyes &&
8601 test x"$has_wchar_minmax" = xyes &&
8602 test x"$ac_wfuncs" = xyes; then
8603 ac_isoC99_wchar_t=yes
8604 else
8605 ac_isoC99_wchar_t=no
8607 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8609 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8610 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8611 echo "configure:8612: checking for iconv.h" >&5
8612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 #include <iconv.h>
8620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8621 { (eval echo configure:8622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8623 if test -z "$ac_err"; then
8624 rm -rf conftest*
8625 eval "ac_cv_header_$ac_safe=yes"
8626 else
8627 echo "$ac_err" >&5
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -rf conftest*
8631 eval "ac_cv_header_$ac_safe=no"
8633 rm -f conftest*
8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8636 echo "$ac_t""yes" 1>&6
8637 ac_has_iconv_h=yes
8638 else
8639 echo "$ac_t""no" 1>&6
8640 ac_has_iconv_h=no
8643 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8644 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8645 echo "configure:8646: checking for langinfo.h" >&5
8646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648 else
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <langinfo.h>
8654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8655 { (eval echo configure:8656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8657 if test -z "$ac_err"; then
8658 rm -rf conftest*
8659 eval "ac_cv_header_$ac_safe=yes"
8660 else
8661 echo "$ac_err" >&5
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 eval "ac_cv_header_$ac_safe=no"
8667 rm -f conftest*
8669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8670 echo "$ac_t""yes" 1>&6
8671 ac_has_langinfo_h=yes
8672 else
8673 echo "$ac_t""no" 1>&6
8674 ac_has_langinfo_h=no
8678 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8679 echo "configure:8680: checking for iconv in -liconv" >&5
8680 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684 ac_save_LIBS="$LIBS"
8685 LIBS="-liconv $LIBS"
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char iconv();
8694 int main() {
8695 iconv()
8696 ; return 0; }
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8699 rm -rf conftest*
8700 eval "ac_cv_lib_$ac_lib_var=yes"
8701 else
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 rm -rf conftest*
8705 eval "ac_cv_lib_$ac_lib_var=no"
8707 rm -f conftest*
8708 LIBS="$ac_save_LIBS"
8711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8713 libiconv="-liconv"
8714 else
8715 echo "$ac_t""no" 1>&6
8718 ac_save_LIBS="$LIBS"
8719 LIBS="$LIBS $libiconv"
8721 for ac_func in iconv_open iconv_close iconv nl_langinfo
8723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8724 echo "configure:8725: checking for $ac_func" >&5
8725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8727 else
8728 cat > conftest.$ac_ext <<EOF
8729 #line 8730 "configure"
8730 #include "confdefs.h"
8731 /* System header to define __stub macros and hopefully few prototypes,
8732 which can conflict with char $ac_func(); below. */
8733 #include <assert.h>
8734 /* Override any gcc2 internal prototype to avoid an error. */
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8737 char $ac_func();
8739 int main() {
8741 /* The GNU C library defines this for functions which it implements
8742 to always fail with ENOSYS. Some functions are actually named
8743 something starting with __ and the normal name is an alias. */
8744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8745 choke me
8746 #else
8747 $ac_func();
8748 #endif
8750 ; return 0; }
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753 rm -rf conftest*
8754 eval "ac_cv_func_$ac_func=yes"
8755 else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 eval "ac_cv_func_$ac_func=no"
8761 rm -f conftest*
8764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8765 echo "$ac_t""yes" 1>&6
8766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8767 cat >> confdefs.h <<EOF
8768 #define $ac_tr_func 1
8771 ac_XPG2funcs=yes
8772 else
8773 echo "$ac_t""no" 1>&6
8774 ac_XPG2funcs=no
8776 done
8779 LIBS="$ac_save_LIBS"
8781 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8782 echo "configure:8783: checking for XPG2 wchar_t support" >&5
8783 if test x"$ac_has_iconv_h" = xyes &&
8784 test x"$ac_has_langinfo_h" = xyes &&
8785 test x"$ac_XPG2funcs" = xyes; then
8786 ac_XPG2_wchar_t=yes
8787 else
8788 ac_XPG2_wchar_t=no
8790 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8792 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8793 echo "configure:8794: checking for enabled wchar_t specializations" >&5
8794 if test x"$ac_isoC99_wchar_t" = xyes &&
8795 test x"$ac_XPG2_wchar_t" = xyes; then
8796 cat >> confdefs.h <<\EOF
8797 #define _GLIBCPP_USE_WCHAR_T 1
8800 echo "$ac_t"""yes"" 1>&6
8801 else
8802 echo "$ac_t"""no"" 1>&6
8804 else
8805 echo "configure: warning: wchar_t support disabled." 1>&2
8808 os_include_dir="os/qnx/qnx6.1"
8809 cat >> confdefs.h <<\EOF
8810 #define HAVE_COSF 1
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_COSL 1
8817 cat >> confdefs.h <<\EOF
8818 #define HAVE_COSHF 1
8821 cat >> confdefs.h <<\EOF
8822 #define HAVE_COSHL 1
8825 cat >> confdefs.h <<\EOF
8826 #define HAVE_LOGF 1
8829 cat >> confdefs.h <<\EOF
8830 #define HAVE_LOGL 1
8833 cat >> confdefs.h <<\EOF
8834 #define HAVE_LOG10F 1
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_LOG10L 1
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_SINF 1
8845 cat >> confdefs.h <<\EOF
8846 #define HAVE_SINL 1
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_SINHF 1
8853 cat >> confdefs.h <<\EOF
8854 #define HAVE_SINHL 1
8859 os_include_dir="os/newlib"
8860 cat >> confdefs.h <<\EOF
8861 #define HAVE_HYPOT 1
8865 esac
8867 case "$target_alias" in
8868 *-mingw32*)
8870 *-windiss*)
8871 cat >> confdefs.h <<\EOF
8872 #define HAVE_ACOSF 1
8875 cat >> confdefs.h <<\EOF
8876 #define HAVE_ASINF 1
8879 cat >> confdefs.h <<\EOF
8880 #define HAVE_ATAN2F 1
8883 cat >> confdefs.h <<\EOF
8884 #define HAVE_ATANF 1
8887 cat >> confdefs.h <<\EOF
8888 #define HAVE_CEILF 1
8891 cat >> confdefs.h <<\EOF
8892 #define HAVE_COPYSIGN 1
8895 cat >> confdefs.h <<\EOF
8896 #define HAVE_COPYSIGNF 1
8899 cat >> confdefs.h <<\EOF
8900 #define HAVE_COSF 1
8903 cat >> confdefs.h <<\EOF
8904 #define HAVE_COSHF 1
8907 cat >> confdefs.h <<\EOF
8908 #define HAVE_EXPF 1
8911 cat >> confdefs.h <<\EOF
8912 #define HAVE_FABSF 1
8915 cat >> confdefs.h <<\EOF
8916 #define HAVE_FLOORF 1
8919 cat >> confdefs.h <<\EOF
8920 #define HAVE_FMODF 1
8923 cat >> confdefs.h <<\EOF
8924 #define HAVE_FREXPF 1
8927 cat >> confdefs.h <<\EOF
8928 #define HAVE_LDEXPF 1
8931 cat >> confdefs.h <<\EOF
8932 #define HAVE_LOG10F 1
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_LOGF 1
8939 cat >> confdefs.h <<\EOF
8940 #define HAVE_MODFF 1
8943 cat >> confdefs.h <<\EOF
8944 #define HAVE_POWF 1
8947 cat >> confdefs.h <<\EOF
8948 #define HAVE_SINF 1
8951 cat >> confdefs.h <<\EOF
8952 #define HAVE_SINHF 1
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_SQRTF 1
8959 cat >> confdefs.h <<\EOF
8960 #define HAVE_TANF 1
8963 cat >> confdefs.h <<\EOF
8964 #define HAVE_TANHF 1
8969 # GLIBCPP_CHECK_STDLIB_SUPPORT
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_STRTOF 1
8974 cat >> confdefs.h <<\EOF
8975 #define HAVE_STRTOLD 1
8978 # AC_FUNC_MMAP
8979 cat >> confdefs.h <<\EOF
8980 #define HAVE_MMAP 1
8984 cat >> confdefs.h <<\EOF
8985 #define HAVE_ACOSF 1
8988 cat >> confdefs.h <<\EOF
8989 #define HAVE_ASINF 1
8992 cat >> confdefs.h <<\EOF
8993 #define HAVE_ATAN2F 1
8996 cat >> confdefs.h <<\EOF
8997 #define HAVE_ATANF 1
9000 cat >> confdefs.h <<\EOF
9001 #define HAVE_CEILF 1
9004 cat >> confdefs.h <<\EOF
9005 #define HAVE_COPYSIGN 1
9008 cat >> confdefs.h <<\EOF
9009 #define HAVE_COPYSIGNF 1
9012 cat >> confdefs.h <<\EOF
9013 #define HAVE_COSF 1
9016 cat >> confdefs.h <<\EOF
9017 #define HAVE_COSHF 1
9020 cat >> confdefs.h <<\EOF
9021 #define HAVE_EXPF 1
9024 cat >> confdefs.h <<\EOF
9025 #define HAVE_FABSF 1
9028 cat >> confdefs.h <<\EOF
9029 #define HAVE_FLOORF 1
9032 cat >> confdefs.h <<\EOF
9033 #define HAVE_FMODF 1
9036 cat >> confdefs.h <<\EOF
9037 #define HAVE_FREXPF 1
9040 cat >> confdefs.h <<\EOF
9041 #define HAVE_LDEXPF 1
9044 cat >> confdefs.h <<\EOF
9045 #define HAVE_LOG10F 1
9048 cat >> confdefs.h <<\EOF
9049 #define HAVE_LOGF 1
9052 cat >> confdefs.h <<\EOF
9053 #define HAVE_MODFF 1
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_POWF 1
9060 cat >> confdefs.h <<\EOF
9061 #define HAVE_SINF 1
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_SINHF 1
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_SQRTF 1
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_TANF 1
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_TANHF 1
9081 esac
9083 # At some point, we should differentiate between architectures
9084 # like x86, which have long double versions, and alpha/powerpc/etc.,
9085 # which don't. For the time being, punt.
9086 if test x"long_double_math_on_this_cpu" = x"yes"; then
9087 cat >> confdefs.h <<\EOF
9088 #define HAVE_ACOSL 1
9091 cat >> confdefs.h <<\EOF
9092 #define HAVE_ASINL 1
9095 cat >> confdefs.h <<\EOF
9096 #define HAVE_ATAN2L 1
9099 cat >> confdefs.h <<\EOF
9100 #define HAVE_ATANL 1
9103 cat >> confdefs.h <<\EOF
9104 #define HAVE_CEILL 1
9107 cat >> confdefs.h <<\EOF
9108 #define HAVE_COPYSIGNL 1
9111 cat >> confdefs.h <<\EOF
9112 #define HAVE_COSL 1
9115 cat >> confdefs.h <<\EOF
9116 #define HAVE_COSHL 1
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_EXPL 1
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_FABSL 1
9127 cat >> confdefs.h <<\EOF
9128 #define HAVE_FLOORL 1
9131 cat >> confdefs.h <<\EOF
9132 #define HAVE_FMODL 1
9135 cat >> confdefs.h <<\EOF
9136 #define HAVE_FREXPL 1
9139 cat >> confdefs.h <<\EOF
9140 #define HAVE_LDEXPL 1
9143 cat >> confdefs.h <<\EOF
9144 #define HAVE_LOG10L 1
9147 cat >> confdefs.h <<\EOF
9148 #define HAVE_LOGL 1
9151 cat >> confdefs.h <<\EOF
9152 #define HAVE_MODFL 1
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_POWL 1
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_SINCOSL 1
9163 cat >> confdefs.h <<\EOF
9164 #define HAVE_SINL 1
9167 cat >> confdefs.h <<\EOF
9168 #define HAVE_SINHL 1
9171 cat >> confdefs.h <<\EOF
9172 #define HAVE_SQRTL 1
9175 cat >> confdefs.h <<\EOF
9176 #define HAVE_TANL 1
9179 cat >> confdefs.h <<\EOF
9180 #define HAVE_TANHL 1
9185 else
9187 # We are being configured natively. We can do more elaborate tests
9188 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9189 # working.
9190 GLIBCPP_IS_CROSS_COMPILING=0
9191 CANADIAN=no
9193 # Check for available headers.
9194 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9195 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9199 echo "configure:9200: checking for $ac_hdr" >&5
9200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9202 else
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <$ac_hdr>
9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9211 if test -z "$ac_err"; then
9212 rm -rf conftest*
9213 eval "ac_cv_header_$ac_safe=yes"
9214 else
9215 echo "$ac_err" >&5
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 rm -rf conftest*
9219 eval "ac_cv_header_$ac_safe=no"
9221 rm -f conftest*
9223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9224 echo "$ac_t""yes" 1>&6
9225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9226 cat >> confdefs.h <<EOF
9227 #define $ac_tr_hdr 1
9230 else
9231 echo "$ac_t""no" 1>&6
9233 done
9237 # All these tests are for C++; save the language and the compiler flags.
9238 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9239 # found in GLIBCPP_CONFIGURE.
9241 ac_ext=C
9242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9243 ac_cpp='$CXXCPP $CPPFLAGS'
9244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246 cross_compiling=$ac_cv_prog_cxx_cross
9248 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9249 ac_save_CXXFLAGS="$CXXFLAGS"
9251 # Check for maintainer-mode bits.
9252 if test x"$USE_MAINTAINER_MODE" = xno; then
9253 WERROR=''
9254 else
9255 WERROR='-Werror'
9258 # Check for -ffunction-sections -fdata-sections
9259 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9260 echo "configure:9261: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9261 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9266 int main() {
9267 int foo;
9269 ; return 0; }
9271 if { (eval echo configure:9272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272 rm -rf conftest*
9273 ac_fdsections=yes
9274 else
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 rm -rf conftest*
9278 ac_fdsections=no
9280 rm -f conftest*
9281 if test "$ac_test_CXXFLAGS" = set; then
9282 CXXFLAGS="$ac_save_CXXFLAGS"
9283 else
9284 # this is the suspicious part
9285 CXXFLAGS=''
9287 if test x"$ac_fdsections" = x"yes" &&
9288 test x"$enable_debug" = x"no"; then
9289 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9291 echo "$ac_t""$ac_fdsections" 1>&6
9293 ac_ext=c
9294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9298 cross_compiling=$ac_cv_prog_cc_cross
9304 # If we're not using GNU ld, then there's no point in even trying these
9305 # tests. Check for that first. We should have already tested for gld
9306 # by now (in libtool), but require it now just to be safe...
9307 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9308 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9311 # The name set by libtool depends on the version of libtool. Shame on us
9312 # for depending on an impl detail, but c'est la vie. Older versions used
9313 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9314 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9315 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9316 # set (hence we're using an older libtool), then set it.
9317 if test x${with_gnu_ld+set} != xset; then
9318 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9319 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9320 with_gnu_ld=no
9321 else
9322 with_gnu_ld=$ac_cv_prog_gnu_ld
9326 # Start by getting the version number. I think the libtool test already
9327 # does some of this, but throws away the result.
9329 ldver=`$LD --version 2>/dev/null | head -1 | \
9330 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9332 glibcpp_gnu_ld_version=`echo $ldver | \
9333 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9335 # Set --gc-sections.
9336 if test "$with_gnu_ld" = "notbroken"; then
9337 # GNU ld it is! Joy and bunny rabbits!
9339 # All these tests are for C++; save the language and the compiler flags.
9340 # Need to do this so that g++ won't try to link in libstdc++
9341 ac_test_CFLAGS="${CFLAGS+set}"
9342 ac_save_CFLAGS="$CFLAGS"
9343 CFLAGS='-x c++ -Wl,--gc-sections'
9345 # Check for -Wl,--gc-sections
9346 # XXX This test is broken at the moment, as symbols required for
9347 # linking are now in libsupc++ (not built yet.....). In addition,
9348 # this test has cored on solaris in the past. In addition,
9349 # --gc-sections doesn't really work at the moment (keeps on discarding
9350 # used sections, first .eh_frame and now some of the glibc sections for
9351 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9352 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9353 echo "configure:9354: checking for ld that supports -Wl,--gc-sections" >&5
9354 if test "$cross_compiling" = yes; then
9355 ac_sectionLDflags=yes
9356 else
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9361 int main(void)
9363 try { throw 1; }
9364 catch (...) { };
9365 return 0;
9369 if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9370 then
9371 ac_sectionLDflags=yes
9372 else
9373 echo "configure: failed program was:" >&5
9374 cat conftest.$ac_ext >&5
9375 rm -fr conftest*
9376 ac_sectionLDflags=no
9378 rm -fr conftest*
9381 if test "$ac_test_CFLAGS" = set; then
9382 CFLAGS="$ac_save_CFLAGS"
9383 else
9384 # this is the suspicious part
9385 CFLAGS=''
9387 if test "$ac_sectionLDflags" = "yes"; then
9388 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9390 echo "$ac_t""$ac_sectionLDflags" 1>&6
9393 # Set linker optimization flags.
9394 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9395 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9403 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9404 echo "configure:9405: checking for __builtin_abs declaration" >&5
9405 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9406 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9408 else
9411 ac_ext=C
9412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9413 ac_cpp='$CXXCPP $CPPFLAGS'
9414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9416 cross_compiling=$ac_cv_prog_cxx_cross
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 #include <math.h>
9422 int main() {
9423 __builtin_abs(0);
9424 ; return 0; }
9426 if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 rm -rf conftest*
9428 glibcpp_cv_func___builtin_abs_use=yes
9429 else
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 rm -rf conftest*
9433 glibcpp_cv_func___builtin_abs_use=no
9435 rm -f conftest*
9436 ac_ext=c
9437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9441 cross_compiling=$ac_cv_prog_cc_cross
9447 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9448 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9449 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9450 echo "configure:9451: checking for __builtin_abs linkage" >&5
9451 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9452 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9454 else
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 #include <math.h>
9460 int main() {
9461 __builtin_abs(0);
9462 ; return 0; }
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 rm -rf conftest*
9466 glibcpp_cv_func___builtin_abs_link=yes
9467 else
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -rf conftest*
9471 glibcpp_cv_func___builtin_abs_link=no
9473 rm -f conftest*
9478 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9479 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9480 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9481 cat >> confdefs.h <<EOF
9482 #define ${ac_tr_func} 1
9489 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9490 echo "configure:9491: checking for __builtin_fabsf declaration" >&5
9491 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9492 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9497 ac_ext=C
9498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9499 ac_cpp='$CXXCPP $CPPFLAGS'
9500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9502 cross_compiling=$ac_cv_prog_cxx_cross
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <math.h>
9508 int main() {
9509 __builtin_fabsf(0);
9510 ; return 0; }
9512 if { (eval echo configure:9513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9513 rm -rf conftest*
9514 glibcpp_cv_func___builtin_fabsf_use=yes
9515 else
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 glibcpp_cv_func___builtin_fabsf_use=no
9521 rm -f conftest*
9522 ac_ext=c
9523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9524 ac_cpp='$CPP $CPPFLAGS'
9525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9527 cross_compiling=$ac_cv_prog_cc_cross
9533 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9534 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9535 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9536 echo "configure:9537: checking for __builtin_fabsf linkage" >&5
9537 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9538 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include <math.h>
9546 int main() {
9547 __builtin_fabsf(0);
9548 ; return 0; }
9550 if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9551 rm -rf conftest*
9552 glibcpp_cv_func___builtin_fabsf_link=yes
9553 else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 glibcpp_cv_func___builtin_fabsf_link=no
9559 rm -f conftest*
9564 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9565 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9566 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9567 cat >> confdefs.h <<EOF
9568 #define ${ac_tr_func} 1
9575 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9576 echo "configure:9577: checking for __builtin_fabs declaration" >&5
9577 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9578 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9583 ac_ext=C
9584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9585 ac_cpp='$CXXCPP $CPPFLAGS'
9586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9588 cross_compiling=$ac_cv_prog_cxx_cross
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 #include <math.h>
9594 int main() {
9595 __builtin_fabs(0);
9596 ; return 0; }
9598 if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9599 rm -rf conftest*
9600 glibcpp_cv_func___builtin_fabs_use=yes
9601 else
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 rm -rf conftest*
9605 glibcpp_cv_func___builtin_fabs_use=no
9607 rm -f conftest*
9608 ac_ext=c
9609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610 ac_cpp='$CPP $CPPFLAGS'
9611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613 cross_compiling=$ac_cv_prog_cc_cross
9619 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9620 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9621 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9622 echo "configure:9623: checking for __builtin_fabs linkage" >&5
9623 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9624 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 #include <math.h>
9632 int main() {
9633 __builtin_fabs(0);
9634 ; return 0; }
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9637 rm -rf conftest*
9638 glibcpp_cv_func___builtin_fabs_link=yes
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -rf conftest*
9643 glibcpp_cv_func___builtin_fabs_link=no
9645 rm -f conftest*
9650 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9651 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9652 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9653 cat >> confdefs.h <<EOF
9654 #define ${ac_tr_func} 1
9661 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9662 echo "configure:9663: checking for __builtin_fabsl declaration" >&5
9663 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9664 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9669 ac_ext=C
9670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9671 ac_cpp='$CXXCPP $CPPFLAGS'
9672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9674 cross_compiling=$ac_cv_prog_cxx_cross
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 #include <math.h>
9680 int main() {
9681 __builtin_fabsl(0);
9682 ; return 0; }
9684 if { (eval echo configure:9685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9685 rm -rf conftest*
9686 glibcpp_cv_func___builtin_fabsl_use=yes
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -rf conftest*
9691 glibcpp_cv_func___builtin_fabsl_use=no
9693 rm -f conftest*
9694 ac_ext=c
9695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9699 cross_compiling=$ac_cv_prog_cc_cross
9705 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9706 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9707 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9708 echo "configure:9709: checking for __builtin_fabsl linkage" >&5
9709 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9710 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9714 cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 #include <math.h>
9718 int main() {
9719 __builtin_fabsl(0);
9720 ; return 0; }
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 rm -rf conftest*
9724 glibcpp_cv_func___builtin_fabsl_link=yes
9725 else
9726 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9728 rm -rf conftest*
9729 glibcpp_cv_func___builtin_fabsl_link=no
9731 rm -f conftest*
9736 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9737 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9738 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9739 cat >> confdefs.h <<EOF
9740 #define ${ac_tr_func} 1
9747 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9748 echo "configure:9749: checking for __builtin_labs declaration" >&5
9749 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9750 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9752 else
9755 ac_ext=C
9756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9757 ac_cpp='$CXXCPP $CPPFLAGS'
9758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9760 cross_compiling=$ac_cv_prog_cxx_cross
9762 cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <math.h>
9766 int main() {
9767 __builtin_labs(0);
9768 ; return 0; }
9770 if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771 rm -rf conftest*
9772 glibcpp_cv_func___builtin_labs_use=yes
9773 else
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 rm -rf conftest*
9777 glibcpp_cv_func___builtin_labs_use=no
9779 rm -f conftest*
9780 ac_ext=c
9781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9782 ac_cpp='$CPP $CPPFLAGS'
9783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9785 cross_compiling=$ac_cv_prog_cc_cross
9791 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9792 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9793 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9794 echo "configure:9795: checking for __builtin_labs linkage" >&5
9795 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9796 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9798 else
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9803 #include <math.h>
9804 int main() {
9805 __builtin_labs(0);
9806 ; return 0; }
9808 if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 rm -rf conftest*
9810 glibcpp_cv_func___builtin_labs_link=yes
9811 else
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 rm -rf conftest*
9815 glibcpp_cv_func___builtin_labs_link=no
9817 rm -f conftest*
9822 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9823 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9824 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9825 cat >> confdefs.h <<EOF
9826 #define ${ac_tr_func} 1
9834 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9835 echo "configure:9836: checking for __builtin_sqrtf declaration" >&5
9836 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9837 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9839 else
9842 ac_ext=C
9843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9844 ac_cpp='$CXXCPP $CPPFLAGS'
9845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9847 cross_compiling=$ac_cv_prog_cxx_cross
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 #include <math.h>
9853 int main() {
9854 __builtin_sqrtf(0);
9855 ; return 0; }
9857 if { (eval echo configure:9858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9858 rm -rf conftest*
9859 glibcpp_cv_func___builtin_sqrtf_use=yes
9860 else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 glibcpp_cv_func___builtin_sqrtf_use=no
9866 rm -f conftest*
9867 ac_ext=c
9868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9869 ac_cpp='$CPP $CPPFLAGS'
9870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9872 cross_compiling=$ac_cv_prog_cc_cross
9878 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9879 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9880 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9881 echo "configure:9882: checking for __builtin_sqrtf linkage" >&5
9882 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9883 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9885 else
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 #include <math.h>
9891 int main() {
9892 __builtin_sqrtf(0);
9893 ; return 0; }
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896 rm -rf conftest*
9897 glibcpp_cv_func___builtin_sqrtf_link=yes
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 glibcpp_cv_func___builtin_sqrtf_link=no
9904 rm -f conftest*
9909 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9910 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9911 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9912 cat >> confdefs.h <<EOF
9913 #define ${ac_tr_func} 1
9920 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9921 echo "configure:9922: checking for __builtin_sqrt declaration" >&5
9922 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9923 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925 else
9928 ac_ext=C
9929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9930 ac_cpp='$CXXCPP $CPPFLAGS'
9931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9933 cross_compiling=$ac_cv_prog_cxx_cross
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <math.h>
9939 int main() {
9940 __builtin_sqrt(0);
9941 ; return 0; }
9943 if { (eval echo configure:9944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9944 rm -rf conftest*
9945 glibcpp_cv_func___builtin_sqrt_use=yes
9946 else
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 rm -rf conftest*
9950 glibcpp_cv_func___builtin_sqrt_use=no
9952 rm -f conftest*
9953 ac_ext=c
9954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9955 ac_cpp='$CPP $CPPFLAGS'
9956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9958 cross_compiling=$ac_cv_prog_cc_cross
9964 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9965 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9966 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9967 echo "configure:9968: checking for __builtin_sqrt linkage" >&5
9968 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9969 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9973 cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9976 #include <math.h>
9977 int main() {
9978 __builtin_sqrt(0);
9979 ; return 0; }
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982 rm -rf conftest*
9983 glibcpp_cv_func___builtin_sqrt_link=yes
9984 else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 glibcpp_cv_func___builtin_sqrt_link=no
9990 rm -f conftest*
9995 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9996 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9997 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9998 cat >> confdefs.h <<EOF
9999 #define ${ac_tr_func} 1
10006 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10007 echo "configure:10008: checking for __builtin_sqrtl declaration" >&5
10008 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10009 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10014 ac_ext=C
10015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016 ac_cpp='$CXXCPP $CPPFLAGS'
10017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019 cross_compiling=$ac_cv_prog_cxx_cross
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 #include <math.h>
10025 int main() {
10026 __builtin_sqrtl(0);
10027 ; return 0; }
10029 if { (eval echo configure:10030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030 rm -rf conftest*
10031 glibcpp_cv_func___builtin_sqrtl_use=yes
10032 else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 glibcpp_cv_func___builtin_sqrtl_use=no
10038 rm -f conftest*
10039 ac_ext=c
10040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10044 cross_compiling=$ac_cv_prog_cc_cross
10050 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10051 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10052 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10053 echo "configure:10054: checking for __builtin_sqrtl linkage" >&5
10054 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10055 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 #include <math.h>
10063 int main() {
10064 __builtin_sqrtl(0);
10065 ; return 0; }
10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10068 rm -rf conftest*
10069 glibcpp_cv_func___builtin_sqrtl_link=yes
10070 else
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -rf conftest*
10074 glibcpp_cv_func___builtin_sqrtl_link=no
10076 rm -f conftest*
10081 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10082 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10083 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10084 cat >> confdefs.h <<EOF
10085 #define ${ac_tr_func} 1
10093 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10094 echo "configure:10095: checking for __builtin_sinf declaration" >&5
10095 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10096 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098 else
10101 ac_ext=C
10102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10103 ac_cpp='$CXXCPP $CPPFLAGS'
10104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10106 cross_compiling=$ac_cv_prog_cxx_cross
10108 cat > conftest.$ac_ext <<EOF
10109 #line 10110 "configure"
10110 #include "confdefs.h"
10111 #include <math.h>
10112 int main() {
10113 __builtin_sinf(0);
10114 ; return 0; }
10116 if { (eval echo configure:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10117 rm -rf conftest*
10118 glibcpp_cv_func___builtin_sinf_use=yes
10119 else
10120 echo "configure: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10122 rm -rf conftest*
10123 glibcpp_cv_func___builtin_sinf_use=no
10125 rm -f conftest*
10126 ac_ext=c
10127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10128 ac_cpp='$CPP $CPPFLAGS'
10129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10131 cross_compiling=$ac_cv_prog_cc_cross
10137 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10138 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10139 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10140 echo "configure:10141: checking for __builtin_sinf linkage" >&5
10141 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10142 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10144 else
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 #include <math.h>
10150 int main() {
10151 __builtin_sinf(0);
10152 ; return 0; }
10154 if { (eval echo configure:10155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10155 rm -rf conftest*
10156 glibcpp_cv_func___builtin_sinf_link=yes
10157 else
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 rm -rf conftest*
10161 glibcpp_cv_func___builtin_sinf_link=no
10163 rm -f conftest*
10168 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10169 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10170 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10171 cat >> confdefs.h <<EOF
10172 #define ${ac_tr_func} 1
10179 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10180 echo "configure:10181: checking for __builtin_sin declaration" >&5
10181 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10182 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184 else
10187 ac_ext=C
10188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10189 ac_cpp='$CXXCPP $CPPFLAGS'
10190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10192 cross_compiling=$ac_cv_prog_cxx_cross
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <math.h>
10198 int main() {
10199 __builtin_sin(0);
10200 ; return 0; }
10202 if { (eval echo configure:10203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10203 rm -rf conftest*
10204 glibcpp_cv_func___builtin_sin_use=yes
10205 else
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 rm -rf conftest*
10209 glibcpp_cv_func___builtin_sin_use=no
10211 rm -f conftest*
10212 ac_ext=c
10213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10217 cross_compiling=$ac_cv_prog_cc_cross
10223 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10224 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10225 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10226 echo "configure:10227: checking for __builtin_sin linkage" >&5
10227 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10228 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10230 else
10232 cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10235 #include <math.h>
10236 int main() {
10237 __builtin_sin(0);
10238 ; return 0; }
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10241 rm -rf conftest*
10242 glibcpp_cv_func___builtin_sin_link=yes
10243 else
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 rm -rf conftest*
10247 glibcpp_cv_func___builtin_sin_link=no
10249 rm -f conftest*
10254 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10255 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10256 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10257 cat >> confdefs.h <<EOF
10258 #define ${ac_tr_func} 1
10265 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10266 echo "configure:10267: checking for __builtin_sinl declaration" >&5
10267 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10268 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10270 else
10273 ac_ext=C
10274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10275 ac_cpp='$CXXCPP $CPPFLAGS'
10276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10278 cross_compiling=$ac_cv_prog_cxx_cross
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include <math.h>
10284 int main() {
10285 __builtin_sinl(0);
10286 ; return 0; }
10288 if { (eval echo configure:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10289 rm -rf conftest*
10290 glibcpp_cv_func___builtin_sinl_use=yes
10291 else
10292 echo "configure: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10294 rm -rf conftest*
10295 glibcpp_cv_func___builtin_sinl_use=no
10297 rm -f conftest*
10298 ac_ext=c
10299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10300 ac_cpp='$CPP $CPPFLAGS'
10301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10303 cross_compiling=$ac_cv_prog_cc_cross
10309 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10310 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10311 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10312 echo "configure:10313: checking for __builtin_sinl linkage" >&5
10313 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10314 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
10316 else
10318 cat > conftest.$ac_ext <<EOF
10319 #line 10320 "configure"
10320 #include "confdefs.h"
10321 #include <math.h>
10322 int main() {
10323 __builtin_sinl(0);
10324 ; return 0; }
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10327 rm -rf conftest*
10328 glibcpp_cv_func___builtin_sinl_link=yes
10329 else
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 rm -rf conftest*
10333 glibcpp_cv_func___builtin_sinl_link=no
10335 rm -f conftest*
10340 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10341 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10342 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10343 cat >> confdefs.h <<EOF
10344 #define ${ac_tr_func} 1
10352 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10353 echo "configure:10354: checking for __builtin_cosf declaration" >&5
10354 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10355 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357 else
10360 ac_ext=C
10361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10362 ac_cpp='$CXXCPP $CPPFLAGS'
10363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10365 cross_compiling=$ac_cv_prog_cxx_cross
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370 #include <math.h>
10371 int main() {
10372 __builtin_cosf(0);
10373 ; return 0; }
10375 if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10376 rm -rf conftest*
10377 glibcpp_cv_func___builtin_cosf_use=yes
10378 else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 rm -rf conftest*
10382 glibcpp_cv_func___builtin_cosf_use=no
10384 rm -f conftest*
10385 ac_ext=c
10386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10387 ac_cpp='$CPP $CPPFLAGS'
10388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10390 cross_compiling=$ac_cv_prog_cc_cross
10396 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10397 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10398 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10399 echo "configure:10400: checking for __builtin_cosf linkage" >&5
10400 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10401 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403 else
10405 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10408 #include <math.h>
10409 int main() {
10410 __builtin_cosf(0);
10411 ; return 0; }
10413 if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10414 rm -rf conftest*
10415 glibcpp_cv_func___builtin_cosf_link=yes
10416 else
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 rm -rf conftest*
10420 glibcpp_cv_func___builtin_cosf_link=no
10422 rm -f conftest*
10427 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10428 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10429 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10430 cat >> confdefs.h <<EOF
10431 #define ${ac_tr_func} 1
10438 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10439 echo "configure:10440: checking for __builtin_cos declaration" >&5
10440 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10441 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10446 ac_ext=C
10447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10448 ac_cpp='$CXXCPP $CPPFLAGS'
10449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10451 cross_compiling=$ac_cv_prog_cxx_cross
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include <math.h>
10457 int main() {
10458 __builtin_cos(0);
10459 ; return 0; }
10461 if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462 rm -rf conftest*
10463 glibcpp_cv_func___builtin_cos_use=yes
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 glibcpp_cv_func___builtin_cos_use=no
10470 rm -f conftest*
10471 ac_ext=c
10472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10476 cross_compiling=$ac_cv_prog_cc_cross
10482 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10483 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10484 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10485 echo "configure:10486: checking for __builtin_cos linkage" >&5
10486 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10487 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 #include <math.h>
10495 int main() {
10496 __builtin_cos(0);
10497 ; return 0; }
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 rm -rf conftest*
10501 glibcpp_cv_func___builtin_cos_link=yes
10502 else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -rf conftest*
10506 glibcpp_cv_func___builtin_cos_link=no
10508 rm -f conftest*
10513 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10514 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10515 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10516 cat >> confdefs.h <<EOF
10517 #define ${ac_tr_func} 1
10524 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10525 echo "configure:10526: checking for __builtin_cosl declaration" >&5
10526 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10527 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10529 else
10532 ac_ext=C
10533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10534 ac_cpp='$CXXCPP $CPPFLAGS'
10535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10537 cross_compiling=$ac_cv_prog_cxx_cross
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <math.h>
10543 int main() {
10544 __builtin_cosl(0);
10545 ; return 0; }
10547 if { (eval echo configure:10548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10548 rm -rf conftest*
10549 glibcpp_cv_func___builtin_cosl_use=yes
10550 else
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10553 rm -rf conftest*
10554 glibcpp_cv_func___builtin_cosl_use=no
10556 rm -f conftest*
10557 ac_ext=c
10558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10562 cross_compiling=$ac_cv_prog_cc_cross
10568 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10569 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10570 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10571 echo "configure:10572: checking for __builtin_cosl linkage" >&5
10572 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10573 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10574 echo $ac_n "(cached) $ac_c" 1>&6
10575 else
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10580 #include <math.h>
10581 int main() {
10582 __builtin_cosl(0);
10583 ; return 0; }
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10586 rm -rf conftest*
10587 glibcpp_cv_func___builtin_cosl_link=yes
10588 else
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 rm -rf conftest*
10592 glibcpp_cv_func___builtin_cosl_link=no
10594 rm -f conftest*
10599 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10600 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10601 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10602 cat >> confdefs.h <<EOF
10603 #define ${ac_tr_func} 1
10610 dummyvar=no
10611 if test x$dummyvar = x"yes"; then
10612 cat >> confdefs.h <<\EOF
10613 #define HAVE___BUILTIN_ABS 1
10616 cat >> confdefs.h <<\EOF
10617 #define HAVE___BUILTIN_LABS 1
10620 cat >> confdefs.h <<\EOF
10621 #define HAVE___BUILTIN_COS 1
10624 cat >> confdefs.h <<\EOF
10625 #define HAVE___BUILTIN_COSF 1
10628 cat >> confdefs.h <<\EOF
10629 #define HAVE___BUILTIN_COSL 1
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE___BUILTIN_FABS 1
10636 cat >> confdefs.h <<\EOF
10637 #define HAVE___BUILTIN_FABSF 1
10640 cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_FABSL 1
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE___BUILTIN_SIN 1
10648 cat >> confdefs.h <<\EOF
10649 #define HAVE___BUILTIN_SINF 1
10652 cat >> confdefs.h <<\EOF
10653 #define HAVE___BUILTIN_SINL 1
10656 cat >> confdefs.h <<\EOF
10657 #define HAVE___BUILTIN_SQRT 1
10660 cat >> confdefs.h <<\EOF
10661 #define HAVE___BUILTIN_SQRTF 1
10664 cat >> confdefs.h <<\EOF
10665 #define HAVE___BUILTIN_SQRTL 1
10671 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10672 ac_save_CXXFLAGS="$CXXFLAGS"
10673 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10675 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10676 echo "configure:10677: checking for sin in -lm" >&5
10677 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10680 else
10681 ac_save_LIBS="$LIBS"
10682 LIBS="-lm $LIBS"
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10689 char sin();
10691 int main() {
10692 sin()
10693 ; return 0; }
10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696 rm -rf conftest*
10697 eval "ac_cv_lib_$ac_lib_var=yes"
10698 else
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 rm -rf conftest*
10702 eval "ac_cv_lib_$ac_lib_var=no"
10704 rm -f conftest*
10705 LIBS="$ac_save_LIBS"
10708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10709 echo "$ac_t""yes" 1>&6
10710 libm="-lm"
10711 else
10712 echo "$ac_t""no" 1>&6
10715 ac_save_LIBS="$LIBS"
10716 LIBS="$LIBS $libm"
10720 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10721 echo "configure:10722: checking for isinf declaration" >&5
10722 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10723 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10725 else
10728 ac_ext=C
10729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10730 ac_cpp='$CXXCPP $CPPFLAGS'
10731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10733 cross_compiling=$ac_cv_prog_cxx_cross
10735 cat > conftest.$ac_ext <<EOF
10736 #line 10737 "configure"
10737 #include "confdefs.h"
10738 #include <math.h>
10739 #ifdef HAVE_IEEEFP_H
10740 #include <ieeefp.h>
10741 #endif
10743 int main() {
10744 isinf(0);
10745 ; return 0; }
10747 if { (eval echo configure:10748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10748 rm -rf conftest*
10749 glibcpp_cv_func_isinf_use=yes
10750 else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 glibcpp_cv_func_isinf_use=no
10756 rm -f conftest*
10757 ac_ext=c
10758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10762 cross_compiling=$ac_cv_prog_cc_cross
10768 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10770 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10771 for ac_func in isinf
10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10774 echo "configure:10775: checking for $ac_func" >&5
10775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 /* System header to define __stub macros and hopefully few prototypes,
10782 which can conflict with char $ac_func(); below. */
10783 #include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 /* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10787 char $ac_func();
10789 int main() {
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10795 choke me
10796 #else
10797 $ac_func();
10798 #endif
10800 ; return 0; }
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 rm -rf conftest*
10804 eval "ac_cv_func_$ac_func=yes"
10805 else
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10808 rm -rf conftest*
10809 eval "ac_cv_func_$ac_func=no"
10811 rm -f conftest*
10814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10815 echo "$ac_t""yes" 1>&6
10816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10817 cat >> confdefs.h <<EOF
10818 #define $ac_tr_func 1
10821 else
10822 echo "$ac_t""no" 1>&6
10824 done
10826 else
10828 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10829 echo "configure:10830: checking for _isinf declaration" >&5
10830 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10831 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10836 ac_ext=C
10837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10838 ac_cpp='$CXXCPP $CPPFLAGS'
10839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10841 cross_compiling=$ac_cv_prog_cxx_cross
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 #include <math.h>
10847 #ifdef HAVE_IEEEFP_H
10848 #include <ieeefp.h>
10849 #endif
10851 int main() {
10852 _isinf(0);
10853 ; return 0; }
10855 if { (eval echo configure:10856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10856 rm -rf conftest*
10857 glibcpp_cv_func__isinf_use=yes
10858 else
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10861 rm -rf conftest*
10862 glibcpp_cv_func__isinf_use=no
10864 rm -f conftest*
10865 ac_ext=c
10866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10867 ac_cpp='$CPP $CPPFLAGS'
10868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10870 cross_compiling=$ac_cv_prog_cc_cross
10876 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10878 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10879 for ac_func in _isinf
10881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10882 echo "configure:10883: checking for $ac_func" >&5
10883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10885 else
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 /* System header to define __stub macros and hopefully few prototypes,
10890 which can conflict with char $ac_func(); below. */
10891 #include <assert.h>
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10895 char $ac_func();
10897 int main() {
10899 /* The GNU C library defines this for functions which it implements
10900 to always fail with ENOSYS. Some functions are actually named
10901 something starting with __ and the normal name is an alias. */
10902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10903 choke me
10904 #else
10905 $ac_func();
10906 #endif
10908 ; return 0; }
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10911 rm -rf conftest*
10912 eval "ac_cv_func_$ac_func=yes"
10913 else
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 rm -rf conftest*
10917 eval "ac_cv_func_$ac_func=no"
10919 rm -f conftest*
10922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10923 echo "$ac_t""yes" 1>&6
10924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10925 cat >> confdefs.h <<EOF
10926 #define $ac_tr_func 1
10929 else
10930 echo "$ac_t""no" 1>&6
10932 done
10939 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for isnan declaration" >&5
10941 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10942 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10947 ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958 #ifdef HAVE_IEEEFP_H
10959 #include <ieeefp.h>
10960 #endif
10962 int main() {
10963 isnan(0);
10964 ; return 0; }
10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10967 rm -rf conftest*
10968 glibcpp_cv_func_isnan_use=yes
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -rf conftest*
10973 glibcpp_cv_func_isnan_use=no
10975 rm -f conftest*
10976 ac_ext=c
10977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10981 cross_compiling=$ac_cv_prog_cc_cross
10987 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10989 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10990 for ac_func in isnan
10992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_func" >&5
10994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001 which can conflict with char $ac_func(); below. */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char $ac_func();
11008 int main() {
11010 /* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 $ac_func();
11017 #endif
11019 ; return 0; }
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022 rm -rf conftest*
11023 eval "ac_cv_func_$ac_func=yes"
11024 else
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 rm -rf conftest*
11028 eval "ac_cv_func_$ac_func=no"
11030 rm -f conftest*
11033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036 cat >> confdefs.h <<EOF
11037 #define $ac_tr_func 1
11040 else
11041 echo "$ac_t""no" 1>&6
11043 done
11045 else
11047 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11048 echo "configure:11049: checking for _isnan declaration" >&5
11049 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11050 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
11052 else
11055 ac_ext=C
11056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11057 ac_cpp='$CXXCPP $CPPFLAGS'
11058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060 cross_compiling=$ac_cv_prog_cxx_cross
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <math.h>
11066 #ifdef HAVE_IEEEFP_H
11067 #include <ieeefp.h>
11068 #endif
11070 int main() {
11071 _isnan(0);
11072 ; return 0; }
11074 if { (eval echo configure:11075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11075 rm -rf conftest*
11076 glibcpp_cv_func__isnan_use=yes
11077 else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 glibcpp_cv_func__isnan_use=no
11083 rm -f conftest*
11084 ac_ext=c
11085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089 cross_compiling=$ac_cv_prog_cc_cross
11095 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11097 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11098 for ac_func in _isnan
11100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_func" >&5
11102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105 cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func(); below. */
11110 #include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char $ac_func();
11116 int main() {
11118 /* The GNU C library defines this for functions which it implements
11119 to always fail with ENOSYS. Some functions are actually named
11120 something starting with __ and the normal name is an alias. */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 $ac_func();
11125 #endif
11127 ; return 0; }
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130 rm -rf conftest*
11131 eval "ac_cv_func_$ac_func=yes"
11132 else
11133 echo "configure: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11135 rm -rf conftest*
11136 eval "ac_cv_func_$ac_func=no"
11138 rm -f conftest*
11141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11142 echo "$ac_t""yes" 1>&6
11143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11144 cat >> confdefs.h <<EOF
11145 #define $ac_tr_func 1
11148 else
11149 echo "$ac_t""no" 1>&6
11151 done
11158 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11159 echo "configure:11160: checking for finite declaration" >&5
11160 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11161 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11163 else
11166 ac_ext=C
11167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11171 cross_compiling=$ac_cv_prog_cxx_cross
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 #include <math.h>
11177 #ifdef HAVE_IEEEFP_H
11178 #include <ieeefp.h>
11179 #endif
11181 int main() {
11182 finite(0);
11183 ; return 0; }
11185 if { (eval echo configure:11186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11186 rm -rf conftest*
11187 glibcpp_cv_func_finite_use=yes
11188 else
11189 echo "configure: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 rm -rf conftest*
11192 glibcpp_cv_func_finite_use=no
11194 rm -f conftest*
11195 ac_ext=c
11196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cc_cross
11206 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11208 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11209 for ac_func in finite
11211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_func" >&5
11213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11214 echo $ac_n "(cached) $ac_c" 1>&6
11215 else
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 /* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char $ac_func(); below. */
11221 #include <assert.h>
11222 /* Override any gcc2 internal prototype to avoid an error. */
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char $ac_func();
11227 int main() {
11229 /* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 choke me
11234 #else
11235 $ac_func();
11236 #endif
11238 ; return 0; }
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11241 rm -rf conftest*
11242 eval "ac_cv_func_$ac_func=yes"
11243 else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 eval "ac_cv_func_$ac_func=no"
11249 rm -f conftest*
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255 cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11259 else
11260 echo "$ac_t""no" 1>&6
11262 done
11264 else
11266 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11267 echo "configure:11268: checking for _finite declaration" >&5
11268 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11269 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11274 ac_ext=C
11275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11279 cross_compiling=$ac_cv_prog_cxx_cross
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include <math.h>
11285 #ifdef HAVE_IEEEFP_H
11286 #include <ieeefp.h>
11287 #endif
11289 int main() {
11290 _finite(0);
11291 ; return 0; }
11293 if { (eval echo configure:11294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294 rm -rf conftest*
11295 glibcpp_cv_func__finite_use=yes
11296 else
11297 echo "configure: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11299 rm -rf conftest*
11300 glibcpp_cv_func__finite_use=no
11302 rm -f conftest*
11303 ac_ext=c
11304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11308 cross_compiling=$ac_cv_prog_cc_cross
11314 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11316 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11317 for ac_func in _finite
11319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11320 echo "configure:11321: checking for $ac_func" >&5
11321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func(); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char $ac_func();
11335 int main() {
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 choke me
11342 #else
11343 $ac_func();
11344 #endif
11346 ; return 0; }
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349 rm -rf conftest*
11350 eval "ac_cv_func_$ac_func=yes"
11351 else
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11354 rm -rf conftest*
11355 eval "ac_cv_func_$ac_func=no"
11357 rm -f conftest*
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11361 echo "$ac_t""yes" 1>&6
11362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11363 cat >> confdefs.h <<EOF
11364 #define $ac_tr_func 1
11367 else
11368 echo "$ac_t""no" 1>&6
11370 done
11377 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11378 echo "configure:11379: checking for copysign declaration" >&5
11379 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11380 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11385 ac_ext=C
11386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11387 ac_cpp='$CXXCPP $CPPFLAGS'
11388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11390 cross_compiling=$ac_cv_prog_cxx_cross
11392 cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include <math.h>
11396 int main() {
11397 copysign(0, 0);
11398 ; return 0; }
11400 if { (eval echo configure:11401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11401 rm -rf conftest*
11402 glibcpp_cv_func_copysign_use=yes
11403 else
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 rm -rf conftest*
11407 glibcpp_cv_func_copysign_use=no
11409 rm -f conftest*
11410 ac_ext=c
11411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11412 ac_cpp='$CPP $CPPFLAGS'
11413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11415 cross_compiling=$ac_cv_prog_cc_cross
11421 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11423 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11424 for ac_func in copysign
11426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11427 echo "configure:11428: checking for $ac_func" >&5
11428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11430 else
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func(); below. */
11436 #include <assert.h>
11437 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char $ac_func();
11442 int main() {
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11448 choke me
11449 #else
11450 $ac_func();
11451 #endif
11453 ; return 0; }
11455 if { (eval echo configure:11456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11456 rm -rf conftest*
11457 eval "ac_cv_func_$ac_func=yes"
11458 else
11459 echo "configure: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11461 rm -rf conftest*
11462 eval "ac_cv_func_$ac_func=no"
11464 rm -f conftest*
11467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11468 echo "$ac_t""yes" 1>&6
11469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11470 cat >> confdefs.h <<EOF
11471 #define $ac_tr_func 1
11474 else
11475 echo "$ac_t""no" 1>&6
11477 done
11479 else
11481 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11482 echo "configure:11483: checking for _copysign declaration" >&5
11483 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11484 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11486 else
11489 ac_ext=C
11490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11491 ac_cpp='$CXXCPP $CPPFLAGS'
11492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11494 cross_compiling=$ac_cv_prog_cxx_cross
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 #include <math.h>
11500 int main() {
11501 _copysign(0, 0);
11502 ; return 0; }
11504 if { (eval echo configure:11505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11505 rm -rf conftest*
11506 glibcpp_cv_func__copysign_use=yes
11507 else
11508 echo "configure: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 rm -rf conftest*
11511 glibcpp_cv_func__copysign_use=no
11513 rm -f conftest*
11514 ac_ext=c
11515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11516 ac_cpp='$CPP $CPPFLAGS'
11517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11519 cross_compiling=$ac_cv_prog_cc_cross
11525 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11527 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11528 for ac_func in _copysign
11530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11531 echo "configure:11532: checking for $ac_func" >&5
11532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11534 else
11535 cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char $ac_func(); below. */
11540 #include <assert.h>
11541 /* Override any gcc2 internal prototype to avoid an error. */
11542 /* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11544 char $ac_func();
11546 int main() {
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11552 choke me
11553 #else
11554 $ac_func();
11555 #endif
11557 ; return 0; }
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11560 rm -rf conftest*
11561 eval "ac_cv_func_$ac_func=yes"
11562 else
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 rm -rf conftest*
11566 eval "ac_cv_func_$ac_func=no"
11568 rm -f conftest*
11571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11572 echo "$ac_t""yes" 1>&6
11573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11574 cat >> confdefs.h <<EOF
11575 #define $ac_tr_func 1
11578 else
11579 echo "$ac_t""no" 1>&6
11581 done
11588 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11589 echo "configure:11590: checking for sincos declaration" >&5
11590 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11591 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11593 else
11596 ac_ext=C
11597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11598 ac_cpp='$CXXCPP $CPPFLAGS'
11599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11601 cross_compiling=$ac_cv_prog_cxx_cross
11603 cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure"
11605 #include "confdefs.h"
11606 #include <math.h>
11607 int main() {
11608 sincos(0, 0, 0);
11609 ; return 0; }
11611 if { (eval echo configure:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11612 rm -rf conftest*
11613 glibcpp_cv_func_sincos_use=yes
11614 else
11615 echo "configure: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 rm -rf conftest*
11618 glibcpp_cv_func_sincos_use=no
11620 rm -f conftest*
11621 ac_ext=c
11622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11623 ac_cpp='$CPP $CPPFLAGS'
11624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11626 cross_compiling=$ac_cv_prog_cc_cross
11632 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11634 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11635 for ac_func in sincos
11637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11638 echo "configure:11639: checking for $ac_func" >&5
11639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11641 else
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func(); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char $ac_func();
11653 int main() {
11655 /* The GNU C library defines this for functions which it implements
11656 to always fail with ENOSYS. Some functions are actually named
11657 something starting with __ and the normal name is an alias. */
11658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11659 choke me
11660 #else
11661 $ac_func();
11662 #endif
11664 ; return 0; }
11666 if { (eval echo configure:11667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11667 rm -rf conftest*
11668 eval "ac_cv_func_$ac_func=yes"
11669 else
11670 echo "configure: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11672 rm -rf conftest*
11673 eval "ac_cv_func_$ac_func=no"
11675 rm -f conftest*
11678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11679 echo "$ac_t""yes" 1>&6
11680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11681 cat >> confdefs.h <<EOF
11682 #define $ac_tr_func 1
11685 else
11686 echo "$ac_t""no" 1>&6
11688 done
11690 else
11692 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11693 echo "configure:11694: checking for _sincos declaration" >&5
11694 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11695 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11697 else
11700 ac_ext=C
11701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11702 ac_cpp='$CXXCPP $CPPFLAGS'
11703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11705 cross_compiling=$ac_cv_prog_cxx_cross
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 #include <math.h>
11711 int main() {
11712 _sincos(0, 0, 0);
11713 ; return 0; }
11715 if { (eval echo configure:11716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11716 rm -rf conftest*
11717 glibcpp_cv_func__sincos_use=yes
11718 else
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11721 rm -rf conftest*
11722 glibcpp_cv_func__sincos_use=no
11724 rm -f conftest*
11725 ac_ext=c
11726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11727 ac_cpp='$CPP $CPPFLAGS'
11728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11730 cross_compiling=$ac_cv_prog_cc_cross
11736 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11738 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11739 for ac_func in _sincos
11741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11742 echo "configure:11743: checking for $ac_func" >&5
11743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
11745 else
11746 cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func(); below. */
11751 #include <assert.h>
11752 /* Override any gcc2 internal prototype to avoid an error. */
11753 /* We use char because int might match the return type of a gcc2
11754 builtin and then its argument prototype would still apply. */
11755 char $ac_func();
11757 int main() {
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11763 choke me
11764 #else
11765 $ac_func();
11766 #endif
11768 ; return 0; }
11770 if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11771 rm -rf conftest*
11772 eval "ac_cv_func_$ac_func=yes"
11773 else
11774 echo "configure: failed program was:" >&5
11775 cat conftest.$ac_ext >&5
11776 rm -rf conftest*
11777 eval "ac_cv_func_$ac_func=no"
11779 rm -f conftest*
11782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11783 echo "$ac_t""yes" 1>&6
11784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11785 cat >> confdefs.h <<EOF
11786 #define $ac_tr_func 1
11789 else
11790 echo "$ac_t""no" 1>&6
11792 done
11799 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11800 echo "configure:11801: checking for fpclass declaration" >&5
11801 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11802 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11803 echo $ac_n "(cached) $ac_c" 1>&6
11804 else
11807 ac_ext=C
11808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11809 ac_cpp='$CXXCPP $CPPFLAGS'
11810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11812 cross_compiling=$ac_cv_prog_cxx_cross
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 #include <math.h>
11818 #ifdef HAVE_IEEEFP_H
11819 #include <ieeefp.h>
11820 #endif
11822 int main() {
11823 fpclass(0);
11824 ; return 0; }
11826 if { (eval echo configure:11827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11827 rm -rf conftest*
11828 glibcpp_cv_func_fpclass_use=yes
11829 else
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833 glibcpp_cv_func_fpclass_use=no
11835 rm -f conftest*
11836 ac_ext=c
11837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11838 ac_cpp='$CPP $CPPFLAGS'
11839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11841 cross_compiling=$ac_cv_prog_cc_cross
11847 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11849 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11850 for ac_func in fpclass
11852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11853 echo "configure:11854: checking for $ac_func" >&5
11854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11855 echo $ac_n "(cached) $ac_c" 1>&6
11856 else
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func(); below. */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error. */
11864 /* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11866 char $ac_func();
11868 int main() {
11870 /* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11874 choke me
11875 #else
11876 $ac_func();
11877 #endif
11879 ; return 0; }
11881 if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11882 rm -rf conftest*
11883 eval "ac_cv_func_$ac_func=yes"
11884 else
11885 echo "configure: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11887 rm -rf conftest*
11888 eval "ac_cv_func_$ac_func=no"
11890 rm -f conftest*
11893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11896 cat >> confdefs.h <<EOF
11897 #define $ac_tr_func 1
11900 else
11901 echo "$ac_t""no" 1>&6
11903 done
11905 else
11907 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11908 echo "configure:11909: checking for _fpclass declaration" >&5
11909 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11910 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11911 echo $ac_n "(cached) $ac_c" 1>&6
11912 else
11915 ac_ext=C
11916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11917 ac_cpp='$CXXCPP $CPPFLAGS'
11918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11920 cross_compiling=$ac_cv_prog_cxx_cross
11922 cat > conftest.$ac_ext <<EOF
11923 #line 11924 "configure"
11924 #include "confdefs.h"
11925 #include <math.h>
11926 #ifdef HAVE_IEEEFP_H
11927 #include <ieeefp.h>
11928 #endif
11930 int main() {
11931 _fpclass(0);
11932 ; return 0; }
11934 if { (eval echo configure:11935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11935 rm -rf conftest*
11936 glibcpp_cv_func__fpclass_use=yes
11937 else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 glibcpp_cv_func__fpclass_use=no
11943 rm -f conftest*
11944 ac_ext=c
11945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cc_cross
11955 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11957 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11958 for ac_func in _fpclass
11960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11961 echo "configure:11962: checking for $ac_func" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char $ac_func(); below. */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char $ac_func();
11976 int main() {
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 $ac_func();
11985 #endif
11987 ; return 0; }
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest*
11991 eval "ac_cv_func_$ac_func=yes"
11992 else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_$ac_func=no"
11998 rm -f conftest*
12001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12004 cat >> confdefs.h <<EOF
12005 #define $ac_tr_func 1
12008 else
12009 echo "$ac_t""no" 1>&6
12011 done
12018 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12019 echo "configure:12020: checking for qfpclass declaration" >&5
12020 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12021 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12022 echo $ac_n "(cached) $ac_c" 1>&6
12023 else
12026 ac_ext=C
12027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12031 cross_compiling=$ac_cv_prog_cxx_cross
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037 #ifdef HAVE_IEEEFP_H
12038 #include <ieeefp.h>
12039 #endif
12041 int main() {
12042 qfpclass(0);
12043 ; return 0; }
12045 if { (eval echo configure:12046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046 rm -rf conftest*
12047 glibcpp_cv_func_qfpclass_use=yes
12048 else
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 rm -rf conftest*
12052 glibcpp_cv_func_qfpclass_use=no
12054 rm -f conftest*
12055 ac_ext=c
12056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cc_cross
12066 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12068 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12069 for ac_func in qfpclass
12071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12072 echo "configure:12073: checking for $ac_func" >&5
12073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12074 echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080 which can conflict with char $ac_func(); below. */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error. */
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char $ac_func();
12087 int main() {
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 $ac_func();
12096 #endif
12098 ; return 0; }
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101 rm -rf conftest*
12102 eval "ac_cv_func_$ac_func=yes"
12103 else
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 rm -rf conftest*
12107 eval "ac_cv_func_$ac_func=no"
12109 rm -f conftest*
12112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12113 echo "$ac_t""yes" 1>&6
12114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12115 cat >> confdefs.h <<EOF
12116 #define $ac_tr_func 1
12119 else
12120 echo "$ac_t""no" 1>&6
12122 done
12124 else
12126 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12127 echo "configure:12128: checking for _qfpclass declaration" >&5
12128 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12129 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12130 echo $ac_n "(cached) $ac_c" 1>&6
12131 else
12134 ac_ext=C
12135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12136 ac_cpp='$CXXCPP $CPPFLAGS'
12137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12139 cross_compiling=$ac_cv_prog_cxx_cross
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <math.h>
12145 #ifdef HAVE_IEEEFP_H
12146 #include <ieeefp.h>
12147 #endif
12149 int main() {
12150 _qfpclass(0);
12151 ; return 0; }
12153 if { (eval echo configure:12154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12154 rm -rf conftest*
12155 glibcpp_cv_func__qfpclass_use=yes
12156 else
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 rm -rf conftest*
12160 glibcpp_cv_func__qfpclass_use=no
12162 rm -f conftest*
12163 ac_ext=c
12164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cc_cross
12174 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12176 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12177 for ac_func in _qfpclass
12179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12180 echo "configure:12181: checking for $ac_func" >&5
12181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12182 echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184 cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func(); below. */
12189 #include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error. */
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char $ac_func();
12195 int main() {
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 $ac_func();
12204 #endif
12206 ; return 0; }
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 rm -rf conftest*
12210 eval "ac_cv_func_$ac_func=yes"
12211 else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_func_$ac_func=no"
12217 rm -f conftest*
12220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12223 cat >> confdefs.h <<EOF
12224 #define $ac_tr_func 1
12227 else
12228 echo "$ac_t""no" 1>&6
12230 done
12237 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12238 echo "configure:12239: checking for hypot declaration" >&5
12239 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12240 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12245 ac_ext=C
12246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cxx_cross
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #include <math.h>
12256 int main() {
12257 hypot(0, 0);
12258 ; return 0; }
12260 if { (eval echo configure:12261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12261 rm -rf conftest*
12262 glibcpp_cv_func_hypot_use=yes
12263 else
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12266 rm -rf conftest*
12267 glibcpp_cv_func_hypot_use=no
12269 rm -f conftest*
12270 ac_ext=c
12271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12272 ac_cpp='$CPP $CPPFLAGS'
12273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12275 cross_compiling=$ac_cv_prog_cc_cross
12281 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12283 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12284 for ac_func in hypot
12286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12287 echo "configure:12288: checking for $ac_func" >&5
12288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12289 echo $ac_n "(cached) $ac_c" 1>&6
12290 else
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char $ac_func(); below. */
12296 #include <assert.h>
12297 /* Override any gcc2 internal prototype to avoid an error. */
12298 /* We use char because int might match the return type of a gcc2
12299 builtin and then its argument prototype would still apply. */
12300 char $ac_func();
12302 int main() {
12304 /* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12308 choke me
12309 #else
12310 $ac_func();
12311 #endif
12313 ; return 0; }
12315 if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316 rm -rf conftest*
12317 eval "ac_cv_func_$ac_func=yes"
12318 else
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12321 rm -rf conftest*
12322 eval "ac_cv_func_$ac_func=no"
12324 rm -f conftest*
12327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12328 echo "$ac_t""yes" 1>&6
12329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12330 cat >> confdefs.h <<EOF
12331 #define $ac_tr_func 1
12334 else
12335 echo "$ac_t""no" 1>&6
12337 done
12339 else
12341 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12342 echo "configure:12343: checking for _hypot declaration" >&5
12343 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12344 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12345 echo $ac_n "(cached) $ac_c" 1>&6
12346 else
12349 ac_ext=C
12350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12351 ac_cpp='$CXXCPP $CPPFLAGS'
12352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12354 cross_compiling=$ac_cv_prog_cxx_cross
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <math.h>
12360 int main() {
12361 _hypot(0, 0);
12362 ; return 0; }
12364 if { (eval echo configure:12365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12365 rm -rf conftest*
12366 glibcpp_cv_func__hypot_use=yes
12367 else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371 glibcpp_cv_func__hypot_use=no
12373 rm -f conftest*
12374 ac_ext=c
12375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12379 cross_compiling=$ac_cv_prog_cc_cross
12385 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12387 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12388 for ac_func in _hypot
12390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12391 echo "configure:12392: checking for $ac_func" >&5
12392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12394 else
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* System header to define __stub macros and hopefully few prototypes,
12399 which can conflict with char $ac_func(); below. */
12400 #include <assert.h>
12401 /* Override any gcc2 internal prototype to avoid an error. */
12402 /* We use char because int might match the return type of a gcc2
12403 builtin and then its argument prototype would still apply. */
12404 char $ac_func();
12406 int main() {
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 choke me
12413 #else
12414 $ac_func();
12415 #endif
12417 ; return 0; }
12419 if { (eval echo configure:12420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12420 rm -rf conftest*
12421 eval "ac_cv_func_$ac_func=yes"
12422 else
12423 echo "configure: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12425 rm -rf conftest*
12426 eval "ac_cv_func_$ac_func=no"
12428 rm -f conftest*
12431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12432 echo "$ac_t""yes" 1>&6
12433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12434 cat >> confdefs.h <<EOF
12435 #define $ac_tr_func 1
12438 else
12439 echo "$ac_t""no" 1>&6
12441 done
12448 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12449 echo "configure:12450: checking for float trig functions" >&5
12450 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12451 echo $ac_n "(cached) $ac_c" 1>&6
12452 else
12455 ac_ext=C
12456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12457 ac_cpp='$CXXCPP $CPPFLAGS'
12458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12460 cross_compiling=$ac_cv_prog_cxx_cross
12462 cat > conftest.$ac_ext <<EOF
12463 #line 12464 "configure"
12464 #include "confdefs.h"
12465 #include <math.h>
12466 int main() {
12467 `for x in acosf asinf atanf \
12468 cosf sinf tanf \
12469 coshf sinhf tanhf; do echo "$x (0);"; done`
12470 ; return 0; }
12472 if { (eval echo configure:12473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12473 rm -rf conftest*
12474 glibcpp_cv_func_float_trig_use=yes
12475 else
12476 echo "configure: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12478 rm -rf conftest*
12479 glibcpp_cv_func_float_trig_use=no
12481 rm -f conftest*
12482 ac_ext=c
12483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12484 ac_cpp='$CPP $CPPFLAGS'
12485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12487 cross_compiling=$ac_cv_prog_cc_cross
12491 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12492 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12493 for ac_func in acosf asinf atanf \
12494 cosf sinf tanf \
12495 coshf sinhf tanhf
12497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12498 echo "configure:12499: checking for $ac_func" >&5
12499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12501 else
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505 /* System header to define __stub macros and hopefully few prototypes,
12506 which can conflict with char $ac_func(); below. */
12507 #include <assert.h>
12508 /* Override any gcc2 internal prototype to avoid an error. */
12509 /* We use char because int might match the return type of a gcc2
12510 builtin and then its argument prototype would still apply. */
12511 char $ac_func();
12513 int main() {
12515 /* The GNU C library defines this for functions which it implements
12516 to always fail with ENOSYS. Some functions are actually named
12517 something starting with __ and the normal name is an alias. */
12518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12519 choke me
12520 #else
12521 $ac_func();
12522 #endif
12524 ; return 0; }
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12527 rm -rf conftest*
12528 eval "ac_cv_func_$ac_func=yes"
12529 else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 rm -rf conftest*
12533 eval "ac_cv_func_$ac_func=no"
12535 rm -f conftest*
12538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12539 echo "$ac_t""yes" 1>&6
12540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12541 cat >> confdefs.h <<EOF
12542 #define $ac_tr_func 1
12545 else
12546 echo "$ac_t""no" 1>&6
12548 done
12553 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12554 echo "configure:12555: checking for float round functions" >&5
12555 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12557 else
12560 ac_ext=C
12561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12562 ac_cpp='$CXXCPP $CPPFLAGS'
12563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12565 cross_compiling=$ac_cv_prog_cxx_cross
12567 cat > conftest.$ac_ext <<EOF
12568 #line 12569 "configure"
12569 #include "confdefs.h"
12570 #include <math.h>
12571 int main() {
12572 `for x in ceilf floorf; do echo "$x (0);"; done`
12573 ; return 0; }
12575 if { (eval echo configure:12576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12576 rm -rf conftest*
12577 glibcpp_cv_func_float_round_use=yes
12578 else
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -rf conftest*
12582 glibcpp_cv_func_float_round_use=no
12584 rm -f conftest*
12585 ac_ext=c
12586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12590 cross_compiling=$ac_cv_prog_cc_cross
12594 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12595 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12596 for ac_func in ceilf floorf
12598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12599 echo "configure:12600: checking for $ac_func" >&5
12600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12602 else
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func(); below. */
12608 #include <assert.h>
12609 /* Override any gcc2 internal prototype to avoid an error. */
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char $ac_func();
12614 int main() {
12616 /* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12620 choke me
12621 #else
12622 $ac_func();
12623 #endif
12625 ; return 0; }
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12628 rm -rf conftest*
12629 eval "ac_cv_func_$ac_func=yes"
12630 else
12631 echo "configure: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12633 rm -rf conftest*
12634 eval "ac_cv_func_$ac_func=no"
12636 rm -f conftest*
12639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12640 echo "$ac_t""yes" 1>&6
12641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12642 cat >> confdefs.h <<EOF
12643 #define $ac_tr_func 1
12646 else
12647 echo "$ac_t""no" 1>&6
12649 done
12655 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12656 echo "configure:12657: checking for expf declaration" >&5
12657 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12658 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12663 ac_ext=C
12664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12665 ac_cpp='$CXXCPP $CPPFLAGS'
12666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668 cross_compiling=$ac_cv_prog_cxx_cross
12670 cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 #include <math.h>
12674 #ifdef HAVE_IEEEFP_H
12675 #include <ieeefp.h>
12676 #endif
12678 int main() {
12679 expf(0);
12680 ; return 0; }
12682 if { (eval echo configure:12683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12683 rm -rf conftest*
12684 glibcpp_cv_func_expf_use=yes
12685 else
12686 echo "configure: failed program was:" >&5
12687 cat conftest.$ac_ext >&5
12688 rm -rf conftest*
12689 glibcpp_cv_func_expf_use=no
12691 rm -f conftest*
12692 ac_ext=c
12693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12694 ac_cpp='$CPP $CPPFLAGS'
12695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12697 cross_compiling=$ac_cv_prog_cc_cross
12703 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12705 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12706 for ac_func in expf
12708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12709 echo "configure:12710: checking for $ac_func" >&5
12710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12711 echo $ac_n "(cached) $ac_c" 1>&6
12712 else
12713 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 /* System header to define __stub macros and hopefully few prototypes,
12717 which can conflict with char $ac_func(); below. */
12718 #include <assert.h>
12719 /* Override any gcc2 internal prototype to avoid an error. */
12720 /* We use char because int might match the return type of a gcc2
12721 builtin and then its argument prototype would still apply. */
12722 char $ac_func();
12724 int main() {
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 $ac_func();
12733 #endif
12735 ; return 0; }
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738 rm -rf conftest*
12739 eval "ac_cv_func_$ac_func=yes"
12740 else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 eval "ac_cv_func_$ac_func=no"
12746 rm -f conftest*
12749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12750 echo "$ac_t""yes" 1>&6
12751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12752 cat >> confdefs.h <<EOF
12753 #define $ac_tr_func 1
12756 else
12757 echo "$ac_t""no" 1>&6
12759 done
12761 else
12763 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12764 echo "configure:12765: checking for _expf declaration" >&5
12765 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12766 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768 else
12771 ac_ext=C
12772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12773 ac_cpp='$CXXCPP $CPPFLAGS'
12774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12776 cross_compiling=$ac_cv_prog_cxx_cross
12778 cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 #include <math.h>
12782 #ifdef HAVE_IEEEFP_H
12783 #include <ieeefp.h>
12784 #endif
12786 int main() {
12787 _expf(0);
12788 ; return 0; }
12790 if { (eval echo configure:12791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12791 rm -rf conftest*
12792 glibcpp_cv_func__expf_use=yes
12793 else
12794 echo "configure: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12796 rm -rf conftest*
12797 glibcpp_cv_func__expf_use=no
12799 rm -f conftest*
12800 ac_ext=c
12801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12805 cross_compiling=$ac_cv_prog_cc_cross
12811 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12813 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12814 for ac_func in _expf
12816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12817 echo "configure:12818: checking for $ac_func" >&5
12818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
12820 else
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 /* System header to define __stub macros and hopefully few prototypes,
12825 which can conflict with char $ac_func(); below. */
12826 #include <assert.h>
12827 /* Override any gcc2 internal prototype to avoid an error. */
12828 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */
12830 char $ac_func();
12832 int main() {
12834 /* The GNU C library defines this for functions which it implements
12835 to always fail with ENOSYS. Some functions are actually named
12836 something starting with __ and the normal name is an alias. */
12837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12838 choke me
12839 #else
12840 $ac_func();
12841 #endif
12843 ; return 0; }
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12846 rm -rf conftest*
12847 eval "ac_cv_func_$ac_func=yes"
12848 else
12849 echo "configure: failed program was:" >&5
12850 cat conftest.$ac_ext >&5
12851 rm -rf conftest*
12852 eval "ac_cv_func_$ac_func=no"
12854 rm -f conftest*
12857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12858 echo "$ac_t""yes" 1>&6
12859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12860 cat >> confdefs.h <<EOF
12861 #define $ac_tr_func 1
12864 else
12865 echo "$ac_t""no" 1>&6
12867 done
12874 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12875 echo "configure:12876: checking for isnanf declaration" >&5
12876 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12877 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12878 echo $ac_n "(cached) $ac_c" 1>&6
12879 else
12882 ac_ext=C
12883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12884 ac_cpp='$CXXCPP $CPPFLAGS'
12885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12887 cross_compiling=$ac_cv_prog_cxx_cross
12889 cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892 #include <math.h>
12893 #ifdef HAVE_IEEEFP_H
12894 #include <ieeefp.h>
12895 #endif
12897 int main() {
12898 isnanf(0);
12899 ; return 0; }
12901 if { (eval echo configure:12902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12902 rm -rf conftest*
12903 glibcpp_cv_func_isnanf_use=yes
12904 else
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 rm -rf conftest*
12908 glibcpp_cv_func_isnanf_use=no
12910 rm -f conftest*
12911 ac_ext=c
12912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12913 ac_cpp='$CPP $CPPFLAGS'
12914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12916 cross_compiling=$ac_cv_prog_cc_cross
12922 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12924 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12925 for ac_func in isnanf
12927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_func" >&5
12929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func(); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12939 /* We use char because int might match the return type of a gcc2
12940 builtin and then its argument prototype would still apply. */
12941 char $ac_func();
12943 int main() {
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949 choke me
12950 #else
12951 $ac_func();
12952 #endif
12954 ; return 0; }
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12957 rm -rf conftest*
12958 eval "ac_cv_func_$ac_func=yes"
12959 else
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 rm -rf conftest*
12963 eval "ac_cv_func_$ac_func=no"
12965 rm -f conftest*
12968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971 cat >> confdefs.h <<EOF
12972 #define $ac_tr_func 1
12975 else
12976 echo "$ac_t""no" 1>&6
12978 done
12980 else
12982 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12983 echo "configure:12984: checking for _isnanf declaration" >&5
12984 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12985 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12987 else
12990 ac_ext=C
12991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12992 ac_cpp='$CXXCPP $CPPFLAGS'
12993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12995 cross_compiling=$ac_cv_prog_cxx_cross
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 #include <math.h>
13001 #ifdef HAVE_IEEEFP_H
13002 #include <ieeefp.h>
13003 #endif
13005 int main() {
13006 _isnanf(0);
13007 ; return 0; }
13009 if { (eval echo configure:13010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13010 rm -rf conftest*
13011 glibcpp_cv_func__isnanf_use=yes
13012 else
13013 echo "configure: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13015 rm -rf conftest*
13016 glibcpp_cv_func__isnanf_use=no
13018 rm -f conftest*
13019 ac_ext=c
13020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13021 ac_cpp='$CPP $CPPFLAGS'
13022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13024 cross_compiling=$ac_cv_prog_cc_cross
13030 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13032 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13033 for ac_func in _isnanf
13035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13036 echo "configure:13037: checking for $ac_func" >&5
13037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13038 echo $ac_n "(cached) $ac_c" 1>&6
13039 else
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func(); below. */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13049 char $ac_func();
13051 int main() {
13053 /* The GNU C library defines this for functions which it implements
13054 to always fail with ENOSYS. Some functions are actually named
13055 something starting with __ and the normal name is an alias. */
13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057 choke me
13058 #else
13059 $ac_func();
13060 #endif
13062 ; return 0; }
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 rm -rf conftest*
13066 eval "ac_cv_func_$ac_func=yes"
13067 else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_func_$ac_func=no"
13073 rm -f conftest*
13076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13079 cat >> confdefs.h <<EOF
13080 #define $ac_tr_func 1
13083 else
13084 echo "$ac_t""no" 1>&6
13086 done
13093 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13094 echo "configure:13095: checking for isinff declaration" >&5
13095 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13096 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13098 else
13101 ac_ext=C
13102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13106 cross_compiling=$ac_cv_prog_cxx_cross
13108 cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <math.h>
13112 #ifdef HAVE_IEEEFP_H
13113 #include <ieeefp.h>
13114 #endif
13116 int main() {
13117 isinff(0);
13118 ; return 0; }
13120 if { (eval echo configure:13121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13121 rm -rf conftest*
13122 glibcpp_cv_func_isinff_use=yes
13123 else
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 glibcpp_cv_func_isinff_use=no
13129 rm -f conftest*
13130 ac_ext=c
13131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13135 cross_compiling=$ac_cv_prog_cc_cross
13141 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13143 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13144 for ac_func in isinff
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160 char $ac_func();
13162 int main() {
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13173 ; return 0; }
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178 else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13184 rm -f conftest*
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13194 else
13195 echo "$ac_t""no" 1>&6
13197 done
13199 else
13201 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13202 echo "configure:13203: checking for _isinff declaration" >&5
13203 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13204 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13206 else
13209 ac_ext=C
13210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13214 cross_compiling=$ac_cv_prog_cxx_cross
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <math.h>
13220 #ifdef HAVE_IEEEFP_H
13221 #include <ieeefp.h>
13222 #endif
13224 int main() {
13225 _isinff(0);
13226 ; return 0; }
13228 if { (eval echo configure:13229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13229 rm -rf conftest*
13230 glibcpp_cv_func__isinff_use=yes
13231 else
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 rm -rf conftest*
13235 glibcpp_cv_func__isinff_use=no
13237 rm -f conftest*
13238 ac_ext=c
13239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243 cross_compiling=$ac_cv_prog_cc_cross
13249 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13251 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13252 for ac_func in _isinff
13254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_func" >&5
13256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13257 echo $ac_n "(cached) $ac_c" 1>&6
13258 else
13259 cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char $ac_func(); below. */
13264 #include <assert.h>
13265 /* Override any gcc2 internal prototype to avoid an error. */
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char $ac_func();
13270 int main() {
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 $ac_func();
13279 #endif
13281 ; return 0; }
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284 rm -rf conftest*
13285 eval "ac_cv_func_$ac_func=yes"
13286 else
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 rm -rf conftest*
13290 eval "ac_cv_func_$ac_func=no"
13292 rm -f conftest*
13295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13296 echo "$ac_t""yes" 1>&6
13297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13298 cat >> confdefs.h <<EOF
13299 #define $ac_tr_func 1
13302 else
13303 echo "$ac_t""no" 1>&6
13305 done
13312 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13313 echo "configure:13314: checking for atan2f declaration" >&5
13314 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13315 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13320 ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331 int main() {
13332 atan2f(0, 0);
13333 ; return 0; }
13335 if { (eval echo configure:13336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13336 rm -rf conftest*
13337 glibcpp_cv_func_atan2f_use=yes
13338 else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342 glibcpp_cv_func_atan2f_use=no
13344 rm -f conftest*
13345 ac_ext=c
13346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13347 ac_cpp='$CPP $CPPFLAGS'
13348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13350 cross_compiling=$ac_cv_prog_cc_cross
13356 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13358 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13359 for ac_func in atan2f
13361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13362 echo "configure:13363: checking for $ac_func" >&5
13363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* System header to define __stub macros and hopefully few prototypes,
13370 which can conflict with char $ac_func(); below. */
13371 #include <assert.h>
13372 /* Override any gcc2 internal prototype to avoid an error. */
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13375 char $ac_func();
13377 int main() {
13379 /* The GNU C library defines this for functions which it implements
13380 to always fail with ENOSYS. Some functions are actually named
13381 something starting with __ and the normal name is an alias. */
13382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13383 choke me
13384 #else
13385 $ac_func();
13386 #endif
13388 ; return 0; }
13390 if { (eval echo configure:13391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13391 rm -rf conftest*
13392 eval "ac_cv_func_$ac_func=yes"
13393 else
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 rm -rf conftest*
13397 eval "ac_cv_func_$ac_func=no"
13399 rm -f conftest*
13402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13403 echo "$ac_t""yes" 1>&6
13404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13405 cat >> confdefs.h <<EOF
13406 #define $ac_tr_func 1
13409 else
13410 echo "$ac_t""no" 1>&6
13412 done
13414 else
13416 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13417 echo "configure:13418: checking for _atan2f declaration" >&5
13418 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13419 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13420 echo $ac_n "(cached) $ac_c" 1>&6
13421 else
13424 ac_ext=C
13425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13426 ac_cpp='$CXXCPP $CPPFLAGS'
13427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13429 cross_compiling=$ac_cv_prog_cxx_cross
13431 cat > conftest.$ac_ext <<EOF
13432 #line 13433 "configure"
13433 #include "confdefs.h"
13434 #include <math.h>
13435 int main() {
13436 _atan2f(0, 0);
13437 ; return 0; }
13439 if { (eval echo configure:13440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13440 rm -rf conftest*
13441 glibcpp_cv_func__atan2f_use=yes
13442 else
13443 echo "configure: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 rm -rf conftest*
13446 glibcpp_cv_func__atan2f_use=no
13448 rm -f conftest*
13449 ac_ext=c
13450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13451 ac_cpp='$CPP $CPPFLAGS'
13452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13454 cross_compiling=$ac_cv_prog_cc_cross
13460 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13462 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13463 for ac_func in _atan2f
13465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13466 echo "configure:13467: checking for $ac_func" >&5
13467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13468 echo $ac_n "(cached) $ac_c" 1>&6
13469 else
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 /* System header to define __stub macros and hopefully few prototypes,
13474 which can conflict with char $ac_func(); below. */
13475 #include <assert.h>
13476 /* Override any gcc2 internal prototype to avoid an error. */
13477 /* We use char because int might match the return type of a gcc2
13478 builtin and then its argument prototype would still apply. */
13479 char $ac_func();
13481 int main() {
13483 /* The GNU C library defines this for functions which it implements
13484 to always fail with ENOSYS. Some functions are actually named
13485 something starting with __ and the normal name is an alias. */
13486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13487 choke me
13488 #else
13489 $ac_func();
13490 #endif
13492 ; return 0; }
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 rm -rf conftest*
13496 eval "ac_cv_func_$ac_func=yes"
13497 else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 eval "ac_cv_func_$ac_func=no"
13503 rm -f conftest*
13506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13507 echo "$ac_t""yes" 1>&6
13508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13509 cat >> confdefs.h <<EOF
13510 #define $ac_tr_func 1
13513 else
13514 echo "$ac_t""no" 1>&6
13516 done
13523 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13524 echo "configure:13525: checking for fabsf declaration" >&5
13525 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13526 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13527 echo $ac_n "(cached) $ac_c" 1>&6
13528 else
13531 ac_ext=C
13532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13533 ac_cpp='$CXXCPP $CPPFLAGS'
13534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13536 cross_compiling=$ac_cv_prog_cxx_cross
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 #include <math.h>
13542 #ifdef HAVE_IEEEFP_H
13543 #include <ieeefp.h>
13544 #endif
13546 int main() {
13547 fabsf(0);
13548 ; return 0; }
13550 if { (eval echo configure:13551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13551 rm -rf conftest*
13552 glibcpp_cv_func_fabsf_use=yes
13553 else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 glibcpp_cv_func_fabsf_use=no
13559 rm -f conftest*
13560 ac_ext=c
13561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13562 ac_cpp='$CPP $CPPFLAGS'
13563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13565 cross_compiling=$ac_cv_prog_cc_cross
13571 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13573 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13574 for ac_func in fabsf
13576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13577 echo "configure:13578: checking for $ac_func" >&5
13578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13579 echo $ac_n "(cached) $ac_c" 1>&6
13580 else
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13584 /* System header to define __stub macros and hopefully few prototypes,
13585 which can conflict with char $ac_func(); below. */
13586 #include <assert.h>
13587 /* Override any gcc2 internal prototype to avoid an error. */
13588 /* We use char because int might match the return type of a gcc2
13589 builtin and then its argument prototype would still apply. */
13590 char $ac_func();
13592 int main() {
13594 /* The GNU C library defines this for functions which it implements
13595 to always fail with ENOSYS. Some functions are actually named
13596 something starting with __ and the normal name is an alias. */
13597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13598 choke me
13599 #else
13600 $ac_func();
13601 #endif
13603 ; return 0; }
13605 if { (eval echo configure:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13606 rm -rf conftest*
13607 eval "ac_cv_func_$ac_func=yes"
13608 else
13609 echo "configure: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 rm -rf conftest*
13612 eval "ac_cv_func_$ac_func=no"
13614 rm -f conftest*
13617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13618 echo "$ac_t""yes" 1>&6
13619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13620 cat >> confdefs.h <<EOF
13621 #define $ac_tr_func 1
13624 else
13625 echo "$ac_t""no" 1>&6
13627 done
13629 else
13631 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13632 echo "configure:13633: checking for _fabsf declaration" >&5
13633 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13634 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13636 else
13639 ac_ext=C
13640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13641 ac_cpp='$CXXCPP $CPPFLAGS'
13642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13644 cross_compiling=$ac_cv_prog_cxx_cross
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 #include <math.h>
13650 #ifdef HAVE_IEEEFP_H
13651 #include <ieeefp.h>
13652 #endif
13654 int main() {
13655 _fabsf(0);
13656 ; return 0; }
13658 if { (eval echo configure:13659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13659 rm -rf conftest*
13660 glibcpp_cv_func__fabsf_use=yes
13661 else
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13664 rm -rf conftest*
13665 glibcpp_cv_func__fabsf_use=no
13667 rm -f conftest*
13668 ac_ext=c
13669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cc_cross
13679 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13681 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13682 for ac_func in _fabsf
13684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_func" >&5
13686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* System header to define __stub macros and hopefully few prototypes,
13693 which can conflict with char $ac_func(); below. */
13694 #include <assert.h>
13695 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698 char $ac_func();
13700 int main() {
13702 /* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 $ac_func();
13709 #endif
13711 ; return 0; }
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=yes"
13716 else
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13719 rm -rf conftest*
13720 eval "ac_cv_func_$ac_func=no"
13722 rm -f conftest*
13725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728 cat >> confdefs.h <<EOF
13729 #define $ac_tr_func 1
13732 else
13733 echo "$ac_t""no" 1>&6
13735 done
13742 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13743 echo "configure:13744: checking for fmodf declaration" >&5
13744 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13745 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13747 else
13750 ac_ext=C
13751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CXXCPP $CPPFLAGS'
13753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cxx_cross
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <math.h>
13761 int main() {
13762 fmodf(0, 0);
13763 ; return 0; }
13765 if { (eval echo configure:13766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13766 rm -rf conftest*
13767 glibcpp_cv_func_fmodf_use=yes
13768 else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 glibcpp_cv_func_fmodf_use=no
13774 rm -f conftest*
13775 ac_ext=c
13776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13777 ac_cpp='$CPP $CPPFLAGS'
13778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13780 cross_compiling=$ac_cv_prog_cc_cross
13786 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13788 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13789 for ac_func in fmodf
13791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13792 echo "configure:13793: checking for $ac_func" >&5
13793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13795 else
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* System header to define __stub macros and hopefully few prototypes,
13800 which can conflict with char $ac_func(); below. */
13801 #include <assert.h>
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char $ac_func();
13807 int main() {
13809 /* The GNU C library defines this for functions which it implements
13810 to always fail with ENOSYS. Some functions are actually named
13811 something starting with __ and the normal name is an alias. */
13812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13813 choke me
13814 #else
13815 $ac_func();
13816 #endif
13818 ; return 0; }
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13821 rm -rf conftest*
13822 eval "ac_cv_func_$ac_func=yes"
13823 else
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 rm -rf conftest*
13827 eval "ac_cv_func_$ac_func=no"
13829 rm -f conftest*
13832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13833 echo "$ac_t""yes" 1>&6
13834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13835 cat >> confdefs.h <<EOF
13836 #define $ac_tr_func 1
13839 else
13840 echo "$ac_t""no" 1>&6
13842 done
13844 else
13846 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13847 echo "configure:13848: checking for _fmodf declaration" >&5
13848 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13849 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13850 echo $ac_n "(cached) $ac_c" 1>&6
13851 else
13854 ac_ext=C
13855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13856 ac_cpp='$CXXCPP $CPPFLAGS'
13857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13859 cross_compiling=$ac_cv_prog_cxx_cross
13861 cat > conftest.$ac_ext <<EOF
13862 #line 13863 "configure"
13863 #include "confdefs.h"
13864 #include <math.h>
13865 int main() {
13866 _fmodf(0, 0);
13867 ; return 0; }
13869 if { (eval echo configure:13870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13870 rm -rf conftest*
13871 glibcpp_cv_func__fmodf_use=yes
13872 else
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13875 rm -rf conftest*
13876 glibcpp_cv_func__fmodf_use=no
13878 rm -f conftest*
13879 ac_ext=c
13880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13884 cross_compiling=$ac_cv_prog_cc_cross
13890 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13892 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13893 for ac_func in _fmodf
13895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13896 echo "configure:13897: checking for $ac_func" >&5
13897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13899 else
13900 cat > conftest.$ac_ext <<EOF
13901 #line 13902 "configure"
13902 #include "confdefs.h"
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func(); below. */
13905 #include <assert.h>
13906 /* Override any gcc2 internal prototype to avoid an error. */
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13909 char $ac_func();
13911 int main() {
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 choke me
13918 #else
13919 $ac_func();
13920 #endif
13922 ; return 0; }
13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925 rm -rf conftest*
13926 eval "ac_cv_func_$ac_func=yes"
13927 else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_func_$ac_func=no"
13933 rm -f conftest*
13936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13937 echo "$ac_t""yes" 1>&6
13938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13939 cat >> confdefs.h <<EOF
13940 #define $ac_tr_func 1
13943 else
13944 echo "$ac_t""no" 1>&6
13946 done
13953 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13954 echo "configure:13955: checking for frexpf declaration" >&5
13955 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13956 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13958 else
13961 ac_ext=C
13962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13963 ac_cpp='$CXXCPP $CPPFLAGS'
13964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13966 cross_compiling=$ac_cv_prog_cxx_cross
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 #include <math.h>
13972 int main() {
13973 frexpf(0, 0);
13974 ; return 0; }
13976 if { (eval echo configure:13977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13977 rm -rf conftest*
13978 glibcpp_cv_func_frexpf_use=yes
13979 else
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
13983 glibcpp_cv_func_frexpf_use=no
13985 rm -f conftest*
13986 ac_ext=c
13987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13988 ac_cpp='$CPP $CPPFLAGS'
13989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13991 cross_compiling=$ac_cv_prog_cc_cross
13997 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13999 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14000 for ac_func in frexpf
14002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14003 echo "configure:14004: checking for $ac_func" >&5
14004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14005 echo $ac_n "(cached) $ac_c" 1>&6
14006 else
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* System header to define __stub macros and hopefully few prototypes,
14011 which can conflict with char $ac_func(); below. */
14012 #include <assert.h>
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016 char $ac_func();
14018 int main() {
14020 /* The GNU C library defines this for functions which it implements
14021 to always fail with ENOSYS. Some functions are actually named
14022 something starting with __ and the normal name is an alias. */
14023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14024 choke me
14025 #else
14026 $ac_func();
14027 #endif
14029 ; return 0; }
14031 if { (eval echo configure:14032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14032 rm -rf conftest*
14033 eval "ac_cv_func_$ac_func=yes"
14034 else
14035 echo "configure: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 rm -rf conftest*
14038 eval "ac_cv_func_$ac_func=no"
14040 rm -f conftest*
14043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14046 cat >> confdefs.h <<EOF
14047 #define $ac_tr_func 1
14050 else
14051 echo "$ac_t""no" 1>&6
14053 done
14055 else
14057 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14058 echo "configure:14059: checking for _frexpf declaration" >&5
14059 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14060 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14062 else
14065 ac_ext=C
14066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14067 ac_cpp='$CXXCPP $CPPFLAGS'
14068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14070 cross_compiling=$ac_cv_prog_cxx_cross
14072 cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure"
14074 #include "confdefs.h"
14075 #include <math.h>
14076 int main() {
14077 _frexpf(0, 0);
14078 ; return 0; }
14080 if { (eval echo configure:14081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14081 rm -rf conftest*
14082 glibcpp_cv_func__frexpf_use=yes
14083 else
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -rf conftest*
14087 glibcpp_cv_func__frexpf_use=no
14089 rm -f conftest*
14090 ac_ext=c
14091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14092 ac_cpp='$CPP $CPPFLAGS'
14093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14095 cross_compiling=$ac_cv_prog_cc_cross
14101 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14103 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14104 for ac_func in _frexpf
14106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14107 echo "configure:14108: checking for $ac_func" >&5
14108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
14110 else
14111 cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 /* System header to define __stub macros and hopefully few prototypes,
14115 which can conflict with char $ac_func(); below. */
14116 #include <assert.h>
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14120 char $ac_func();
14122 int main() {
14124 /* The GNU C library defines this for functions which it implements
14125 to always fail with ENOSYS. Some functions are actually named
14126 something starting with __ and the normal name is an alias. */
14127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14128 choke me
14129 #else
14130 $ac_func();
14131 #endif
14133 ; return 0; }
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14136 rm -rf conftest*
14137 eval "ac_cv_func_$ac_func=yes"
14138 else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 eval "ac_cv_func_$ac_func=no"
14144 rm -f conftest*
14147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14148 echo "$ac_t""yes" 1>&6
14149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14150 cat >> confdefs.h <<EOF
14151 #define $ac_tr_func 1
14154 else
14155 echo "$ac_t""no" 1>&6
14157 done
14164 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14165 echo "configure:14166: checking for hypotf declaration" >&5
14166 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14167 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14168 echo $ac_n "(cached) $ac_c" 1>&6
14169 else
14172 ac_ext=C
14173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14174 ac_cpp='$CXXCPP $CPPFLAGS'
14175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14177 cross_compiling=$ac_cv_prog_cxx_cross
14179 cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14182 #include <math.h>
14183 int main() {
14184 hypotf(0, 0);
14185 ; return 0; }
14187 if { (eval echo configure:14188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14188 rm -rf conftest*
14189 glibcpp_cv_func_hypotf_use=yes
14190 else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 glibcpp_cv_func_hypotf_use=no
14196 rm -f conftest*
14197 ac_ext=c
14198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202 cross_compiling=$ac_cv_prog_cc_cross
14208 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14210 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14211 for ac_func in hypotf
14213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14214 echo "configure:14215: checking for $ac_func" >&5
14215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14216 echo $ac_n "(cached) $ac_c" 1>&6
14217 else
14218 cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 /* System header to define __stub macros and hopefully few prototypes,
14222 which can conflict with char $ac_func(); below. */
14223 #include <assert.h>
14224 /* Override any gcc2 internal prototype to avoid an error. */
14225 /* We use char because int might match the return type of a gcc2
14226 builtin and then its argument prototype would still apply. */
14227 char $ac_func();
14229 int main() {
14231 /* The GNU C library defines this for functions which it implements
14232 to always fail with ENOSYS. Some functions are actually named
14233 something starting with __ and the normal name is an alias. */
14234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14235 choke me
14236 #else
14237 $ac_func();
14238 #endif
14240 ; return 0; }
14242 if { (eval echo configure:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14243 rm -rf conftest*
14244 eval "ac_cv_func_$ac_func=yes"
14245 else
14246 echo "configure: failed program was:" >&5
14247 cat conftest.$ac_ext >&5
14248 rm -rf conftest*
14249 eval "ac_cv_func_$ac_func=no"
14251 rm -f conftest*
14254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14255 echo "$ac_t""yes" 1>&6
14256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14257 cat >> confdefs.h <<EOF
14258 #define $ac_tr_func 1
14261 else
14262 echo "$ac_t""no" 1>&6
14264 done
14266 else
14268 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14269 echo "configure:14270: checking for _hypotf declaration" >&5
14270 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14271 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14272 echo $ac_n "(cached) $ac_c" 1>&6
14273 else
14276 ac_ext=C
14277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14278 ac_cpp='$CXXCPP $CPPFLAGS'
14279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14281 cross_compiling=$ac_cv_prog_cxx_cross
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 #include <math.h>
14287 int main() {
14288 _hypotf(0, 0);
14289 ; return 0; }
14291 if { (eval echo configure:14292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14292 rm -rf conftest*
14293 glibcpp_cv_func__hypotf_use=yes
14294 else
14295 echo "configure: failed program was:" >&5
14296 cat conftest.$ac_ext >&5
14297 rm -rf conftest*
14298 glibcpp_cv_func__hypotf_use=no
14300 rm -f conftest*
14301 ac_ext=c
14302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14303 ac_cpp='$CPP $CPPFLAGS'
14304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14306 cross_compiling=$ac_cv_prog_cc_cross
14312 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14314 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14315 for ac_func in _hypotf
14317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14318 echo "configure:14319: checking for $ac_func" >&5
14319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14320 echo $ac_n "(cached) $ac_c" 1>&6
14321 else
14322 cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 /* System header to define __stub macros and hopefully few prototypes,
14326 which can conflict with char $ac_func(); below. */
14327 #include <assert.h>
14328 /* Override any gcc2 internal prototype to avoid an error. */
14329 /* We use char because int might match the return type of a gcc2
14330 builtin and then its argument prototype would still apply. */
14331 char $ac_func();
14333 int main() {
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14339 choke me
14340 #else
14341 $ac_func();
14342 #endif
14344 ; return 0; }
14346 if { (eval echo configure:14347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347 rm -rf conftest*
14348 eval "ac_cv_func_$ac_func=yes"
14349 else
14350 echo "configure: failed program was:" >&5
14351 cat conftest.$ac_ext >&5
14352 rm -rf conftest*
14353 eval "ac_cv_func_$ac_func=no"
14355 rm -f conftest*
14358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14359 echo "$ac_t""yes" 1>&6
14360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14361 cat >> confdefs.h <<EOF
14362 #define $ac_tr_func 1
14365 else
14366 echo "$ac_t""no" 1>&6
14368 done
14375 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14376 echo "configure:14377: checking for ldexpf declaration" >&5
14377 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14378 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14380 else
14383 ac_ext=C
14384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14385 ac_cpp='$CXXCPP $CPPFLAGS'
14386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14388 cross_compiling=$ac_cv_prog_cxx_cross
14390 cat > conftest.$ac_ext <<EOF
14391 #line 14392 "configure"
14392 #include "confdefs.h"
14393 #include <math.h>
14394 int main() {
14395 ldexpf(0, 0);
14396 ; return 0; }
14398 if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14399 rm -rf conftest*
14400 glibcpp_cv_func_ldexpf_use=yes
14401 else
14402 echo "configure: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14404 rm -rf conftest*
14405 glibcpp_cv_func_ldexpf_use=no
14407 rm -f conftest*
14408 ac_ext=c
14409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14410 ac_cpp='$CPP $CPPFLAGS'
14411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14413 cross_compiling=$ac_cv_prog_cc_cross
14419 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14421 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14422 for ac_func in ldexpf
14424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14425 echo "configure:14426: checking for $ac_func" >&5
14426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14427 echo $ac_n "(cached) $ac_c" 1>&6
14428 else
14429 cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 /* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char $ac_func(); below. */
14434 #include <assert.h>
14435 /* Override any gcc2 internal prototype to avoid an error. */
14436 /* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14438 char $ac_func();
14440 int main() {
14442 /* The GNU C library defines this for functions which it implements
14443 to always fail with ENOSYS. Some functions are actually named
14444 something starting with __ and the normal name is an alias. */
14445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14446 choke me
14447 #else
14448 $ac_func();
14449 #endif
14451 ; return 0; }
14453 if { (eval echo configure:14454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14454 rm -rf conftest*
14455 eval "ac_cv_func_$ac_func=yes"
14456 else
14457 echo "configure: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 rm -rf conftest*
14460 eval "ac_cv_func_$ac_func=no"
14462 rm -f conftest*
14465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14466 echo "$ac_t""yes" 1>&6
14467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14468 cat >> confdefs.h <<EOF
14469 #define $ac_tr_func 1
14472 else
14473 echo "$ac_t""no" 1>&6
14475 done
14477 else
14479 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14480 echo "configure:14481: checking for _ldexpf declaration" >&5
14481 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14482 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14483 echo $ac_n "(cached) $ac_c" 1>&6
14484 else
14487 ac_ext=C
14488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14489 ac_cpp='$CXXCPP $CPPFLAGS'
14490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14492 cross_compiling=$ac_cv_prog_cxx_cross
14494 cat > conftest.$ac_ext <<EOF
14495 #line 14496 "configure"
14496 #include "confdefs.h"
14497 #include <math.h>
14498 int main() {
14499 _ldexpf(0, 0);
14500 ; return 0; }
14502 if { (eval echo configure:14503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14503 rm -rf conftest*
14504 glibcpp_cv_func__ldexpf_use=yes
14505 else
14506 echo "configure: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 rm -rf conftest*
14509 glibcpp_cv_func__ldexpf_use=no
14511 rm -f conftest*
14512 ac_ext=c
14513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14517 cross_compiling=$ac_cv_prog_cc_cross
14523 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14525 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14526 for ac_func in _ldexpf
14528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14529 echo "configure:14530: checking for $ac_func" >&5
14530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14532 else
14533 cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14536 /* System header to define __stub macros and hopefully few prototypes,
14537 which can conflict with char $ac_func(); below. */
14538 #include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14542 char $ac_func();
14544 int main() {
14546 /* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14550 choke me
14551 #else
14552 $ac_func();
14553 #endif
14555 ; return 0; }
14557 if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558 rm -rf conftest*
14559 eval "ac_cv_func_$ac_func=yes"
14560 else
14561 echo "configure: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 rm -rf conftest*
14564 eval "ac_cv_func_$ac_func=no"
14566 rm -f conftest*
14569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14570 echo "$ac_t""yes" 1>&6
14571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14572 cat >> confdefs.h <<EOF
14573 #define $ac_tr_func 1
14576 else
14577 echo "$ac_t""no" 1>&6
14579 done
14586 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14587 echo "configure:14588: checking for logf declaration" >&5
14588 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14589 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14590 echo $ac_n "(cached) $ac_c" 1>&6
14591 else
14594 ac_ext=C
14595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14596 ac_cpp='$CXXCPP $CPPFLAGS'
14597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14599 cross_compiling=$ac_cv_prog_cxx_cross
14601 cat > conftest.$ac_ext <<EOF
14602 #line 14603 "configure"
14603 #include "confdefs.h"
14604 #include <math.h>
14605 #ifdef HAVE_IEEEFP_H
14606 #include <ieeefp.h>
14607 #endif
14609 int main() {
14610 logf(0);
14611 ; return 0; }
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14614 rm -rf conftest*
14615 glibcpp_cv_func_logf_use=yes
14616 else
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -rf conftest*
14620 glibcpp_cv_func_logf_use=no
14622 rm -f conftest*
14623 ac_ext=c
14624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14625 ac_cpp='$CPP $CPPFLAGS'
14626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14627 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14628 cross_compiling=$ac_cv_prog_cc_cross
14634 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14636 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14637 for ac_func in logf
14639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14640 echo "configure:14641: checking for $ac_func" >&5
14641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
14643 else
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 /* System header to define __stub macros and hopefully few prototypes,
14648 which can conflict with char $ac_func(); below. */
14649 #include <assert.h>
14650 /* Override any gcc2 internal prototype to avoid an error. */
14651 /* We use char because int might match the return type of a gcc2
14652 builtin and then its argument prototype would still apply. */
14653 char $ac_func();
14655 int main() {
14657 /* The GNU C library defines this for functions which it implements
14658 to always fail with ENOSYS. Some functions are actually named
14659 something starting with __ and the normal name is an alias. */
14660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14661 choke me
14662 #else
14663 $ac_func();
14664 #endif
14666 ; return 0; }
14668 if { (eval echo configure:14669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14669 rm -rf conftest*
14670 eval "ac_cv_func_$ac_func=yes"
14671 else
14672 echo "configure: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 rm -rf conftest*
14675 eval "ac_cv_func_$ac_func=no"
14677 rm -f conftest*
14680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14681 echo "$ac_t""yes" 1>&6
14682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14683 cat >> confdefs.h <<EOF
14684 #define $ac_tr_func 1
14687 else
14688 echo "$ac_t""no" 1>&6
14690 done
14692 else
14694 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14695 echo "configure:14696: checking for _logf declaration" >&5
14696 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14697 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14698 echo $ac_n "(cached) $ac_c" 1>&6
14699 else
14702 ac_ext=C
14703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14704 ac_cpp='$CXXCPP $CPPFLAGS'
14705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14707 cross_compiling=$ac_cv_prog_cxx_cross
14709 cat > conftest.$ac_ext <<EOF
14710 #line 14711 "configure"
14711 #include "confdefs.h"
14712 #include <math.h>
14713 #ifdef HAVE_IEEEFP_H
14714 #include <ieeefp.h>
14715 #endif
14717 int main() {
14718 _logf(0);
14719 ; return 0; }
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14722 rm -rf conftest*
14723 glibcpp_cv_func__logf_use=yes
14724 else
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 rm -rf conftest*
14728 glibcpp_cv_func__logf_use=no
14730 rm -f conftest*
14731 ac_ext=c
14732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14736 cross_compiling=$ac_cv_prog_cc_cross
14742 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14744 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14745 for ac_func in _logf
14747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14748 echo "configure:14749: checking for $ac_func" >&5
14749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14750 echo $ac_n "(cached) $ac_c" 1>&6
14751 else
14752 cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 /* System header to define __stub macros and hopefully few prototypes,
14756 which can conflict with char $ac_func(); below. */
14757 #include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error. */
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14761 char $ac_func();
14763 int main() {
14765 /* The GNU C library defines this for functions which it implements
14766 to always fail with ENOSYS. Some functions are actually named
14767 something starting with __ and the normal name is an alias. */
14768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14769 choke me
14770 #else
14771 $ac_func();
14772 #endif
14774 ; return 0; }
14776 if { (eval echo configure:14777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14777 rm -rf conftest*
14778 eval "ac_cv_func_$ac_func=yes"
14779 else
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 rm -rf conftest*
14783 eval "ac_cv_func_$ac_func=no"
14785 rm -f conftest*
14788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14789 echo "$ac_t""yes" 1>&6
14790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14791 cat >> confdefs.h <<EOF
14792 #define $ac_tr_func 1
14795 else
14796 echo "$ac_t""no" 1>&6
14798 done
14805 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14806 echo "configure:14807: checking for log10f declaration" >&5
14807 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14808 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14809 echo $ac_n "(cached) $ac_c" 1>&6
14810 else
14813 ac_ext=C
14814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14815 ac_cpp='$CXXCPP $CPPFLAGS'
14816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14818 cross_compiling=$ac_cv_prog_cxx_cross
14820 cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 #include <math.h>
14824 #ifdef HAVE_IEEEFP_H
14825 #include <ieeefp.h>
14826 #endif
14828 int main() {
14829 log10f(0);
14830 ; return 0; }
14832 if { (eval echo configure:14833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14833 rm -rf conftest*
14834 glibcpp_cv_func_log10f_use=yes
14835 else
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 rm -rf conftest*
14839 glibcpp_cv_func_log10f_use=no
14841 rm -f conftest*
14842 ac_ext=c
14843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14847 cross_compiling=$ac_cv_prog_cc_cross
14853 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14855 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14856 for ac_func in log10f
14858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14859 echo "configure:14860: checking for $ac_func" >&5
14860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14861 echo $ac_n "(cached) $ac_c" 1>&6
14862 else
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* System header to define __stub macros and hopefully few prototypes,
14867 which can conflict with char $ac_func(); below. */
14868 #include <assert.h>
14869 /* Override any gcc2 internal prototype to avoid an error. */
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char $ac_func();
14874 int main() {
14876 /* The GNU C library defines this for functions which it implements
14877 to always fail with ENOSYS. Some functions are actually named
14878 something starting with __ and the normal name is an alias. */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 $ac_func();
14883 #endif
14885 ; return 0; }
14887 if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888 rm -rf conftest*
14889 eval "ac_cv_func_$ac_func=yes"
14890 else
14891 echo "configure: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14893 rm -rf conftest*
14894 eval "ac_cv_func_$ac_func=no"
14896 rm -f conftest*
14899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14900 echo "$ac_t""yes" 1>&6
14901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14902 cat >> confdefs.h <<EOF
14903 #define $ac_tr_func 1
14906 else
14907 echo "$ac_t""no" 1>&6
14909 done
14911 else
14913 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14914 echo "configure:14915: checking for _log10f declaration" >&5
14915 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14916 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14921 ac_ext=C
14922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14926 cross_compiling=$ac_cv_prog_cxx_cross
14928 cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 #include <math.h>
14932 #ifdef HAVE_IEEEFP_H
14933 #include <ieeefp.h>
14934 #endif
14936 int main() {
14937 _log10f(0);
14938 ; return 0; }
14940 if { (eval echo configure:14941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14941 rm -rf conftest*
14942 glibcpp_cv_func__log10f_use=yes
14943 else
14944 echo "configure: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14946 rm -rf conftest*
14947 glibcpp_cv_func__log10f_use=no
14949 rm -f conftest*
14950 ac_ext=c
14951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14955 cross_compiling=$ac_cv_prog_cc_cross
14961 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14963 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14964 for ac_func in _log10f
14966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14967 echo "configure:14968: checking for $ac_func" >&5
14968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14969 echo $ac_n "(cached) $ac_c" 1>&6
14970 else
14971 cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 /* System header to define __stub macros and hopefully few prototypes,
14975 which can conflict with char $ac_func(); below. */
14976 #include <assert.h>
14977 /* Override any gcc2 internal prototype to avoid an error. */
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char $ac_func();
14982 int main() {
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14988 choke me
14989 #else
14990 $ac_func();
14991 #endif
14993 ; return 0; }
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14996 rm -rf conftest*
14997 eval "ac_cv_func_$ac_func=yes"
14998 else
14999 echo "configure: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15001 rm -rf conftest*
15002 eval "ac_cv_func_$ac_func=no"
15004 rm -f conftest*
15007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15008 echo "$ac_t""yes" 1>&6
15009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15010 cat >> confdefs.h <<EOF
15011 #define $ac_tr_func 1
15014 else
15015 echo "$ac_t""no" 1>&6
15017 done
15024 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15025 echo "configure:15026: checking for modff declaration" >&5
15026 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15027 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15032 ac_ext=C
15033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CXXCPP $CPPFLAGS'
15035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cxx_cross
15039 cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 #include <math.h>
15043 int main() {
15044 modff(0, 0);
15045 ; return 0; }
15047 if { (eval echo configure:15048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15048 rm -rf conftest*
15049 glibcpp_cv_func_modff_use=yes
15050 else
15051 echo "configure: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 rm -rf conftest*
15054 glibcpp_cv_func_modff_use=no
15056 rm -f conftest*
15057 ac_ext=c
15058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15059 ac_cpp='$CPP $CPPFLAGS'
15060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15062 cross_compiling=$ac_cv_prog_cc_cross
15068 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15070 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15071 for ac_func in modff
15073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15074 echo "configure:15075: checking for $ac_func" >&5
15075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15077 else
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func(); below. */
15083 #include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error. */
15085 /* We use char because int might match the return type of a gcc2
15086 builtin and then its argument prototype would still apply. */
15087 char $ac_func();
15089 int main() {
15091 /* The GNU C library defines this for functions which it implements
15092 to always fail with ENOSYS. Some functions are actually named
15093 something starting with __ and the normal name is an alias. */
15094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15095 choke me
15096 #else
15097 $ac_func();
15098 #endif
15100 ; return 0; }
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15103 rm -rf conftest*
15104 eval "ac_cv_func_$ac_func=yes"
15105 else
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 rm -rf conftest*
15109 eval "ac_cv_func_$ac_func=no"
15111 rm -f conftest*
15114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
15116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15117 cat >> confdefs.h <<EOF
15118 #define $ac_tr_func 1
15121 else
15122 echo "$ac_t""no" 1>&6
15124 done
15126 else
15128 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15129 echo "configure:15130: checking for _modff declaration" >&5
15130 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15131 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
15133 else
15136 ac_ext=C
15137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15138 ac_cpp='$CXXCPP $CPPFLAGS'
15139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15141 cross_compiling=$ac_cv_prog_cxx_cross
15143 cat > conftest.$ac_ext <<EOF
15144 #line 15145 "configure"
15145 #include "confdefs.h"
15146 #include <math.h>
15147 int main() {
15148 _modff(0, 0);
15149 ; return 0; }
15151 if { (eval echo configure:15152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15152 rm -rf conftest*
15153 glibcpp_cv_func__modff_use=yes
15154 else
15155 echo "configure: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15157 rm -rf conftest*
15158 glibcpp_cv_func__modff_use=no
15160 rm -f conftest*
15161 ac_ext=c
15162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15163 ac_cpp='$CPP $CPPFLAGS'
15164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15166 cross_compiling=$ac_cv_prog_cc_cross
15172 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15174 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15175 for ac_func in _modff
15177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15178 echo "configure:15179: checking for $ac_func" >&5
15179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15180 echo $ac_n "(cached) $ac_c" 1>&6
15181 else
15182 cat > conftest.$ac_ext <<EOF
15183 #line 15184 "configure"
15184 #include "confdefs.h"
15185 /* System header to define __stub macros and hopefully few prototypes,
15186 which can conflict with char $ac_func(); below. */
15187 #include <assert.h>
15188 /* Override any gcc2 internal prototype to avoid an error. */
15189 /* We use char because int might match the return type of a gcc2
15190 builtin and then its argument prototype would still apply. */
15191 char $ac_func();
15193 int main() {
15195 /* The GNU C library defines this for functions which it implements
15196 to always fail with ENOSYS. Some functions are actually named
15197 something starting with __ and the normal name is an alias. */
15198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15199 choke me
15200 #else
15201 $ac_func();
15202 #endif
15204 ; return 0; }
15206 if { (eval echo configure:15207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15207 rm -rf conftest*
15208 eval "ac_cv_func_$ac_func=yes"
15209 else
15210 echo "configure: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 rm -rf conftest*
15213 eval "ac_cv_func_$ac_func=no"
15215 rm -f conftest*
15218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15219 echo "$ac_t""yes" 1>&6
15220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15221 cat >> confdefs.h <<EOF
15222 #define $ac_tr_func 1
15225 else
15226 echo "$ac_t""no" 1>&6
15228 done
15235 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15236 echo "configure:15237: checking for powf declaration" >&5
15237 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15238 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15239 echo $ac_n "(cached) $ac_c" 1>&6
15240 else
15243 ac_ext=C
15244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15245 ac_cpp='$CXXCPP $CPPFLAGS'
15246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15248 cross_compiling=$ac_cv_prog_cxx_cross
15250 cat > conftest.$ac_ext <<EOF
15251 #line 15252 "configure"
15252 #include "confdefs.h"
15253 #include <math.h>
15254 int main() {
15255 powf(0, 0);
15256 ; return 0; }
15258 if { (eval echo configure:15259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15259 rm -rf conftest*
15260 glibcpp_cv_func_powf_use=yes
15261 else
15262 echo "configure: failed program was:" >&5
15263 cat conftest.$ac_ext >&5
15264 rm -rf conftest*
15265 glibcpp_cv_func_powf_use=no
15267 rm -f conftest*
15268 ac_ext=c
15269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15273 cross_compiling=$ac_cv_prog_cc_cross
15279 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15281 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15282 for ac_func in powf
15284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15285 echo "configure:15286: checking for $ac_func" >&5
15286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15287 echo $ac_n "(cached) $ac_c" 1>&6
15288 else
15289 cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 /* System header to define __stub macros and hopefully few prototypes,
15293 which can conflict with char $ac_func(); below. */
15294 #include <assert.h>
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 /* We use char because int might match the return type of a gcc2
15297 builtin and then its argument prototype would still apply. */
15298 char $ac_func();
15300 int main() {
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15306 choke me
15307 #else
15308 $ac_func();
15309 #endif
15311 ; return 0; }
15313 if { (eval echo configure:15314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15314 rm -rf conftest*
15315 eval "ac_cv_func_$ac_func=yes"
15316 else
15317 echo "configure: failed program was:" >&5
15318 cat conftest.$ac_ext >&5
15319 rm -rf conftest*
15320 eval "ac_cv_func_$ac_func=no"
15322 rm -f conftest*
15325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15326 echo "$ac_t""yes" 1>&6
15327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15328 cat >> confdefs.h <<EOF
15329 #define $ac_tr_func 1
15332 else
15333 echo "$ac_t""no" 1>&6
15335 done
15337 else
15339 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15340 echo "configure:15341: checking for _powf declaration" >&5
15341 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15342 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15343 echo $ac_n "(cached) $ac_c" 1>&6
15344 else
15347 ac_ext=C
15348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15349 ac_cpp='$CXXCPP $CPPFLAGS'
15350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15352 cross_compiling=$ac_cv_prog_cxx_cross
15354 cat > conftest.$ac_ext <<EOF
15355 #line 15356 "configure"
15356 #include "confdefs.h"
15357 #include <math.h>
15358 int main() {
15359 _powf(0, 0);
15360 ; return 0; }
15362 if { (eval echo configure:15363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15363 rm -rf conftest*
15364 glibcpp_cv_func__powf_use=yes
15365 else
15366 echo "configure: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 rm -rf conftest*
15369 glibcpp_cv_func__powf_use=no
15371 rm -f conftest*
15372 ac_ext=c
15373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15374 ac_cpp='$CPP $CPPFLAGS'
15375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15377 cross_compiling=$ac_cv_prog_cc_cross
15383 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15385 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15386 for ac_func in _powf
15388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15389 echo "configure:15390: checking for $ac_func" >&5
15390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15392 else
15393 cat > conftest.$ac_ext <<EOF
15394 #line 15395 "configure"
15395 #include "confdefs.h"
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func(); below. */
15398 #include <assert.h>
15399 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char $ac_func();
15404 int main() {
15406 /* The GNU C library defines this for functions which it implements
15407 to always fail with ENOSYS. Some functions are actually named
15408 something starting with __ and the normal name is an alias. */
15409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15410 choke me
15411 #else
15412 $ac_func();
15413 #endif
15415 ; return 0; }
15417 if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15418 rm -rf conftest*
15419 eval "ac_cv_func_$ac_func=yes"
15420 else
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 rm -rf conftest*
15424 eval "ac_cv_func_$ac_func=no"
15426 rm -f conftest*
15429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15430 echo "$ac_t""yes" 1>&6
15431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15432 cat >> confdefs.h <<EOF
15433 #define $ac_tr_func 1
15436 else
15437 echo "$ac_t""no" 1>&6
15439 done
15446 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15447 echo "configure:15448: checking for sqrtf declaration" >&5
15448 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15449 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451 else
15454 ac_ext=C
15455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15456 ac_cpp='$CXXCPP $CPPFLAGS'
15457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15459 cross_compiling=$ac_cv_prog_cxx_cross
15461 cat > conftest.$ac_ext <<EOF
15462 #line 15463 "configure"
15463 #include "confdefs.h"
15464 #include <math.h>
15465 #ifdef HAVE_IEEEFP_H
15466 #include <ieeefp.h>
15467 #endif
15469 int main() {
15470 sqrtf(0);
15471 ; return 0; }
15473 if { (eval echo configure:15474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15474 rm -rf conftest*
15475 glibcpp_cv_func_sqrtf_use=yes
15476 else
15477 echo "configure: failed program was:" >&5
15478 cat conftest.$ac_ext >&5
15479 rm -rf conftest*
15480 glibcpp_cv_func_sqrtf_use=no
15482 rm -f conftest*
15483 ac_ext=c
15484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15488 cross_compiling=$ac_cv_prog_cc_cross
15494 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15496 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15497 for ac_func in sqrtf
15499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15500 echo "configure:15501: checking for $ac_func" >&5
15501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15502 echo $ac_n "(cached) $ac_c" 1>&6
15503 else
15504 cat > conftest.$ac_ext <<EOF
15505 #line 15506 "configure"
15506 #include "confdefs.h"
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func(); below. */
15509 #include <assert.h>
15510 /* Override any gcc2 internal prototype to avoid an error. */
15511 /* We use char because int might match the return type of a gcc2
15512 builtin and then its argument prototype would still apply. */
15513 char $ac_func();
15515 int main() {
15517 /* The GNU C library defines this for functions which it implements
15518 to always fail with ENOSYS. Some functions are actually named
15519 something starting with __ and the normal name is an alias. */
15520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15521 choke me
15522 #else
15523 $ac_func();
15524 #endif
15526 ; return 0; }
15528 if { (eval echo configure:15529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15529 rm -rf conftest*
15530 eval "ac_cv_func_$ac_func=yes"
15531 else
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 rm -rf conftest*
15535 eval "ac_cv_func_$ac_func=no"
15537 rm -f conftest*
15540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15541 echo "$ac_t""yes" 1>&6
15542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15543 cat >> confdefs.h <<EOF
15544 #define $ac_tr_func 1
15547 else
15548 echo "$ac_t""no" 1>&6
15550 done
15552 else
15554 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15555 echo "configure:15556: checking for _sqrtf declaration" >&5
15556 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15557 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15558 echo $ac_n "(cached) $ac_c" 1>&6
15559 else
15562 ac_ext=C
15563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15564 ac_cpp='$CXXCPP $CPPFLAGS'
15565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15567 cross_compiling=$ac_cv_prog_cxx_cross
15569 cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 #include <math.h>
15573 #ifdef HAVE_IEEEFP_H
15574 #include <ieeefp.h>
15575 #endif
15577 int main() {
15578 _sqrtf(0);
15579 ; return 0; }
15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15582 rm -rf conftest*
15583 glibcpp_cv_func__sqrtf_use=yes
15584 else
15585 echo "configure: failed program was:" >&5
15586 cat conftest.$ac_ext >&5
15587 rm -rf conftest*
15588 glibcpp_cv_func__sqrtf_use=no
15590 rm -f conftest*
15591 ac_ext=c
15592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15596 cross_compiling=$ac_cv_prog_cc_cross
15602 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15604 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15605 for ac_func in _sqrtf
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char $ac_func();
15623 int main() {
15625 /* The GNU C library defines this for functions which it implements
15626 to always fail with ENOSYS. Some functions are actually named
15627 something starting with __ and the normal name is an alias. */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15634 ; return 0; }
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637 rm -rf conftest*
15638 eval "ac_cv_func_$ac_func=yes"
15639 else
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
15643 eval "ac_cv_func_$ac_func=no"
15645 rm -f conftest*
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649 echo "$ac_t""yes" 1>&6
15650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651 cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15655 else
15656 echo "$ac_t""no" 1>&6
15658 done
15665 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15666 echo "configure:15667: checking for sincosf declaration" >&5
15667 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15668 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15673 ac_ext=C
15674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15675 ac_cpp='$CXXCPP $CPPFLAGS'
15676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15678 cross_compiling=$ac_cv_prog_cxx_cross
15680 cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 #include <math.h>
15684 int main() {
15685 sincosf(0, 0, 0);
15686 ; return 0; }
15688 if { (eval echo configure:15689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15689 rm -rf conftest*
15690 glibcpp_cv_func_sincosf_use=yes
15691 else
15692 echo "configure: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15694 rm -rf conftest*
15695 glibcpp_cv_func_sincosf_use=no
15697 rm -f conftest*
15698 ac_ext=c
15699 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15702 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15703 cross_compiling=$ac_cv_prog_cc_cross
15709 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15711 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15712 for ac_func in sincosf
15714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15715 echo "configure:15716: checking for $ac_func" >&5
15716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15717 echo $ac_n "(cached) $ac_c" 1>&6
15718 else
15719 cat > conftest.$ac_ext <<EOF
15720 #line 15721 "configure"
15721 #include "confdefs.h"
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func(); below. */
15724 #include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15728 char $ac_func();
15730 int main() {
15732 /* The GNU C library defines this for functions which it implements
15733 to always fail with ENOSYS. Some functions are actually named
15734 something starting with __ and the normal name is an alias. */
15735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15736 choke me
15737 #else
15738 $ac_func();
15739 #endif
15741 ; return 0; }
15743 if { (eval echo configure:15744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15744 rm -rf conftest*
15745 eval "ac_cv_func_$ac_func=yes"
15746 else
15747 echo "configure: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15749 rm -rf conftest*
15750 eval "ac_cv_func_$ac_func=no"
15752 rm -f conftest*
15755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15756 echo "$ac_t""yes" 1>&6
15757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15758 cat >> confdefs.h <<EOF
15759 #define $ac_tr_func 1
15762 else
15763 echo "$ac_t""no" 1>&6
15765 done
15767 else
15769 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15770 echo "configure:15771: checking for _sincosf declaration" >&5
15771 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15772 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15773 echo $ac_n "(cached) $ac_c" 1>&6
15774 else
15777 ac_ext=C
15778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15779 ac_cpp='$CXXCPP $CPPFLAGS'
15780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15782 cross_compiling=$ac_cv_prog_cxx_cross
15784 cat > conftest.$ac_ext <<EOF
15785 #line 15786 "configure"
15786 #include "confdefs.h"
15787 #include <math.h>
15788 int main() {
15789 _sincosf(0, 0, 0);
15790 ; return 0; }
15792 if { (eval echo configure:15793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15793 rm -rf conftest*
15794 glibcpp_cv_func__sincosf_use=yes
15795 else
15796 echo "configure: failed program was:" >&5
15797 cat conftest.$ac_ext >&5
15798 rm -rf conftest*
15799 glibcpp_cv_func__sincosf_use=no
15801 rm -f conftest*
15802 ac_ext=c
15803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15804 ac_cpp='$CPP $CPPFLAGS'
15805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15807 cross_compiling=$ac_cv_prog_cc_cross
15813 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15815 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15816 for ac_func in _sincosf
15818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15819 echo "configure:15820: checking for $ac_func" >&5
15820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15821 echo $ac_n "(cached) $ac_c" 1>&6
15822 else
15823 cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure"
15825 #include "confdefs.h"
15826 /* System header to define __stub macros and hopefully few prototypes,
15827 which can conflict with char $ac_func(); below. */
15828 #include <assert.h>
15829 /* Override any gcc2 internal prototype to avoid an error. */
15830 /* We use char because int might match the return type of a gcc2
15831 builtin and then its argument prototype would still apply. */
15832 char $ac_func();
15834 int main() {
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 choke me
15841 #else
15842 $ac_func();
15843 #endif
15845 ; return 0; }
15847 if { (eval echo configure:15848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15848 rm -rf conftest*
15849 eval "ac_cv_func_$ac_func=yes"
15850 else
15851 echo "configure: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 rm -rf conftest*
15854 eval "ac_cv_func_$ac_func=no"
15856 rm -f conftest*
15859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15860 echo "$ac_t""yes" 1>&6
15861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15862 cat >> confdefs.h <<EOF
15863 #define $ac_tr_func 1
15866 else
15867 echo "$ac_t""no" 1>&6
15869 done
15876 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15877 echo "configure:15878: checking for finitef declaration" >&5
15878 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15879 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15880 echo $ac_n "(cached) $ac_c" 1>&6
15881 else
15884 ac_ext=C
15885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15886 ac_cpp='$CXXCPP $CPPFLAGS'
15887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15889 cross_compiling=$ac_cv_prog_cxx_cross
15891 cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15894 #include <math.h>
15895 #ifdef HAVE_IEEEFP_H
15896 #include <ieeefp.h>
15897 #endif
15899 int main() {
15900 finitef(0);
15901 ; return 0; }
15903 if { (eval echo configure:15904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15904 rm -rf conftest*
15905 glibcpp_cv_func_finitef_use=yes
15906 else
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15909 rm -rf conftest*
15910 glibcpp_cv_func_finitef_use=no
15912 rm -f conftest*
15913 ac_ext=c
15914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15915 ac_cpp='$CPP $CPPFLAGS'
15916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15918 cross_compiling=$ac_cv_prog_cc_cross
15924 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15926 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15927 for ac_func in finitef
15929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15930 echo "configure:15931: checking for $ac_func" >&5
15931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15932 echo $ac_n "(cached) $ac_c" 1>&6
15933 else
15934 cat > conftest.$ac_ext <<EOF
15935 #line 15936 "configure"
15936 #include "confdefs.h"
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char $ac_func(); below. */
15939 #include <assert.h>
15940 /* Override any gcc2 internal prototype to avoid an error. */
15941 /* We use char because int might match the return type of a gcc2
15942 builtin and then its argument prototype would still apply. */
15943 char $ac_func();
15945 int main() {
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15951 choke me
15952 #else
15953 $ac_func();
15954 #endif
15956 ; return 0; }
15958 if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959 rm -rf conftest*
15960 eval "ac_cv_func_$ac_func=yes"
15961 else
15962 echo "configure: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15964 rm -rf conftest*
15965 eval "ac_cv_func_$ac_func=no"
15967 rm -f conftest*
15970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15971 echo "$ac_t""yes" 1>&6
15972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15973 cat >> confdefs.h <<EOF
15974 #define $ac_tr_func 1
15977 else
15978 echo "$ac_t""no" 1>&6
15980 done
15982 else
15984 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15985 echo "configure:15986: checking for _finitef declaration" >&5
15986 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15987 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15989 else
15992 ac_ext=C
15993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15994 ac_cpp='$CXXCPP $CPPFLAGS'
15995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15997 cross_compiling=$ac_cv_prog_cxx_cross
15999 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 #include <math.h>
16003 #ifdef HAVE_IEEEFP_H
16004 #include <ieeefp.h>
16005 #endif
16007 int main() {
16008 _finitef(0);
16009 ; return 0; }
16011 if { (eval echo configure:16012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16012 rm -rf conftest*
16013 glibcpp_cv_func__finitef_use=yes
16014 else
16015 echo "configure: failed program was:" >&5
16016 cat conftest.$ac_ext >&5
16017 rm -rf conftest*
16018 glibcpp_cv_func__finitef_use=no
16020 rm -f conftest*
16021 ac_ext=c
16022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16026 cross_compiling=$ac_cv_prog_cc_cross
16032 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16034 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16035 for ac_func in _finitef
16037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16038 echo "configure:16039: checking for $ac_func" >&5
16039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16040 echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16042 cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 /* System header to define __stub macros and hopefully few prototypes,
16046 which can conflict with char $ac_func(); below. */
16047 #include <assert.h>
16048 /* Override any gcc2 internal prototype to avoid an error. */
16049 /* We use char because int might match the return type of a gcc2
16050 builtin and then its argument prototype would still apply. */
16051 char $ac_func();
16053 int main() {
16055 /* The GNU C library defines this for functions which it implements
16056 to always fail with ENOSYS. Some functions are actually named
16057 something starting with __ and the normal name is an alias. */
16058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 choke me
16060 #else
16061 $ac_func();
16062 #endif
16064 ; return 0; }
16066 if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16067 rm -rf conftest*
16068 eval "ac_cv_func_$ac_func=yes"
16069 else
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16072 rm -rf conftest*
16073 eval "ac_cv_func_$ac_func=no"
16075 rm -f conftest*
16078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16079 echo "$ac_t""yes" 1>&6
16080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16081 cat >> confdefs.h <<EOF
16082 #define $ac_tr_func 1
16085 else
16086 echo "$ac_t""no" 1>&6
16088 done
16095 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16096 echo "configure:16097: checking for long double trig functions" >&5
16097 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16098 echo $ac_n "(cached) $ac_c" 1>&6
16099 else
16102 ac_ext=C
16103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16104 ac_cpp='$CXXCPP $CPPFLAGS'
16105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16107 cross_compiling=$ac_cv_prog_cxx_cross
16109 cat > conftest.$ac_ext <<EOF
16110 #line 16111 "configure"
16111 #include "confdefs.h"
16112 #include <math.h>
16113 int main() {
16114 `for x in acosl asinl atanl \
16115 cosl sinl tanl \
16116 coshl sinhl tanhl; do echo "$x (0);"; done`
16117 ; return 0; }
16119 if { (eval echo configure:16120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16120 rm -rf conftest*
16121 glibcpp_cv_func_long_double_trig_use=yes
16122 else
16123 echo "configure: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16125 rm -rf conftest*
16126 glibcpp_cv_func_long_double_trig_use=no
16128 rm -f conftest*
16129 ac_ext=c
16130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16134 cross_compiling=$ac_cv_prog_cc_cross
16138 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16139 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16140 for ac_func in acosl asinl atanl \
16141 cosl sinl tanl \
16142 coshl sinhl tanhl
16144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16145 echo "configure:16146: checking for $ac_func" >&5
16146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16147 echo $ac_n "(cached) $ac_c" 1>&6
16148 else
16149 cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16152 /* System header to define __stub macros and hopefully few prototypes,
16153 which can conflict with char $ac_func(); below. */
16154 #include <assert.h>
16155 /* Override any gcc2 internal prototype to avoid an error. */
16156 /* We use char because int might match the return type of a gcc2
16157 builtin and then its argument prototype would still apply. */
16158 char $ac_func();
16160 int main() {
16162 /* The GNU C library defines this for functions which it implements
16163 to always fail with ENOSYS. Some functions are actually named
16164 something starting with __ and the normal name is an alias. */
16165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16166 choke me
16167 #else
16168 $ac_func();
16169 #endif
16171 ; return 0; }
16173 if { (eval echo configure:16174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16174 rm -rf conftest*
16175 eval "ac_cv_func_$ac_func=yes"
16176 else
16177 echo "configure: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 rm -rf conftest*
16180 eval "ac_cv_func_$ac_func=no"
16182 rm -f conftest*
16185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16186 echo "$ac_t""yes" 1>&6
16187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16188 cat >> confdefs.h <<EOF
16189 #define $ac_tr_func 1
16192 else
16193 echo "$ac_t""no" 1>&6
16195 done
16200 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16201 echo "configure:16202: checking for long double round functions" >&5
16202 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16203 echo $ac_n "(cached) $ac_c" 1>&6
16204 else
16207 ac_ext=C
16208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16209 ac_cpp='$CXXCPP $CPPFLAGS'
16210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16212 cross_compiling=$ac_cv_prog_cxx_cross
16214 cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16217 #include <math.h>
16218 int main() {
16219 `for x in ceill floorl; do echo "$x (0);"; done`
16220 ; return 0; }
16222 if { (eval echo configure:16223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16223 rm -rf conftest*
16224 glibcpp_cv_func_long_double_round_use=yes
16225 else
16226 echo "configure: failed program was:" >&5
16227 cat conftest.$ac_ext >&5
16228 rm -rf conftest*
16229 glibcpp_cv_func_long_double_round_use=no
16231 rm -f conftest*
16232 ac_ext=c
16233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16234 ac_cpp='$CPP $CPPFLAGS'
16235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16237 cross_compiling=$ac_cv_prog_cc_cross
16241 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16242 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16243 for ac_func in ceill floorl
16245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16246 echo "configure:16247: checking for $ac_func" >&5
16247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16248 echo $ac_n "(cached) $ac_c" 1>&6
16249 else
16250 cat > conftest.$ac_ext <<EOF
16251 #line 16252 "configure"
16252 #include "confdefs.h"
16253 /* System header to define __stub macros and hopefully few prototypes,
16254 which can conflict with char $ac_func(); below. */
16255 #include <assert.h>
16256 /* Override any gcc2 internal prototype to avoid an error. */
16257 /* We use char because int might match the return type of a gcc2
16258 builtin and then its argument prototype would still apply. */
16259 char $ac_func();
16261 int main() {
16263 /* The GNU C library defines this for functions which it implements
16264 to always fail with ENOSYS. Some functions are actually named
16265 something starting with __ and the normal name is an alias. */
16266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 choke me
16268 #else
16269 $ac_func();
16270 #endif
16272 ; return 0; }
16274 if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16275 rm -rf conftest*
16276 eval "ac_cv_func_$ac_func=yes"
16277 else
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 rm -rf conftest*
16281 eval "ac_cv_func_$ac_func=no"
16283 rm -f conftest*
16286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16287 echo "$ac_t""yes" 1>&6
16288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16289 cat >> confdefs.h <<EOF
16290 #define $ac_tr_func 1
16293 else
16294 echo "$ac_t""no" 1>&6
16296 done
16302 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16303 echo "configure:16304: checking for isnanl declaration" >&5
16304 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16305 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16307 else
16310 ac_ext=C
16311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312 ac_cpp='$CXXCPP $CPPFLAGS'
16313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315 cross_compiling=$ac_cv_prog_cxx_cross
16317 cat > conftest.$ac_ext <<EOF
16318 #line 16319 "configure"
16319 #include "confdefs.h"
16320 #include <math.h>
16321 #ifdef HAVE_IEEEFP_H
16322 #include <ieeefp.h>
16323 #endif
16325 int main() {
16326 isnanl(0);
16327 ; return 0; }
16329 if { (eval echo configure:16330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16330 rm -rf conftest*
16331 glibcpp_cv_func_isnanl_use=yes
16332 else
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
16335 rm -rf conftest*
16336 glibcpp_cv_func_isnanl_use=no
16338 rm -f conftest*
16339 ac_ext=c
16340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16341 ac_cpp='$CPP $CPPFLAGS'
16342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16344 cross_compiling=$ac_cv_prog_cc_cross
16350 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16352 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16353 for ac_func in isnanl
16355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16356 echo "configure:16357: checking for $ac_func" >&5
16357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16358 echo $ac_n "(cached) $ac_c" 1>&6
16359 else
16360 cat > conftest.$ac_ext <<EOF
16361 #line 16362 "configure"
16362 #include "confdefs.h"
16363 /* System header to define __stub macros and hopefully few prototypes,
16364 which can conflict with char $ac_func(); below. */
16365 #include <assert.h>
16366 /* Override any gcc2 internal prototype to avoid an error. */
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16369 char $ac_func();
16371 int main() {
16373 /* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
16376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16377 choke me
16378 #else
16379 $ac_func();
16380 #endif
16382 ; return 0; }
16384 if { (eval echo configure:16385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16385 rm -rf conftest*
16386 eval "ac_cv_func_$ac_func=yes"
16387 else
16388 echo "configure: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16390 rm -rf conftest*
16391 eval "ac_cv_func_$ac_func=no"
16393 rm -f conftest*
16396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16397 echo "$ac_t""yes" 1>&6
16398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16399 cat >> confdefs.h <<EOF
16400 #define $ac_tr_func 1
16403 else
16404 echo "$ac_t""no" 1>&6
16406 done
16408 else
16410 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16411 echo "configure:16412: checking for _isnanl declaration" >&5
16412 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16413 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16414 echo $ac_n "(cached) $ac_c" 1>&6
16415 else
16418 ac_ext=C
16419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16420 ac_cpp='$CXXCPP $CPPFLAGS'
16421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16423 cross_compiling=$ac_cv_prog_cxx_cross
16425 cat > conftest.$ac_ext <<EOF
16426 #line 16427 "configure"
16427 #include "confdefs.h"
16428 #include <math.h>
16429 #ifdef HAVE_IEEEFP_H
16430 #include <ieeefp.h>
16431 #endif
16433 int main() {
16434 _isnanl(0);
16435 ; return 0; }
16437 if { (eval echo configure:16438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16438 rm -rf conftest*
16439 glibcpp_cv_func__isnanl_use=yes
16440 else
16441 echo "configure: failed program was:" >&5
16442 cat conftest.$ac_ext >&5
16443 rm -rf conftest*
16444 glibcpp_cv_func__isnanl_use=no
16446 rm -f conftest*
16447 ac_ext=c
16448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16449 ac_cpp='$CPP $CPPFLAGS'
16450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16452 cross_compiling=$ac_cv_prog_cc_cross
16458 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16460 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16461 for ac_func in _isnanl
16463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464 echo "configure:16465: checking for $ac_func" >&5
16465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468 cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 /* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473 #include <assert.h>
16474 /* Override any gcc2 internal prototype to avoid an error. */
16475 /* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477 char $ac_func();
16479 int main() {
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 $ac_func();
16488 #endif
16490 ; return 0; }
16492 if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495 else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16501 rm -f conftest*
16504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508 #define $ac_tr_func 1
16511 else
16512 echo "$ac_t""no" 1>&6
16514 done
16521 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16522 echo "configure:16523: checking for isinfl declaration" >&5
16523 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16524 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16525 echo $ac_n "(cached) $ac_c" 1>&6
16526 else
16529 ac_ext=C
16530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16531 ac_cpp='$CXXCPP $CPPFLAGS'
16532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16534 cross_compiling=$ac_cv_prog_cxx_cross
16536 cat > conftest.$ac_ext <<EOF
16537 #line 16538 "configure"
16538 #include "confdefs.h"
16539 #include <math.h>
16540 #ifdef HAVE_IEEEFP_H
16541 #include <ieeefp.h>
16542 #endif
16544 int main() {
16545 isinfl(0);
16546 ; return 0; }
16548 if { (eval echo configure:16549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16549 rm -rf conftest*
16550 glibcpp_cv_func_isinfl_use=yes
16551 else
16552 echo "configure: failed program was:" >&5
16553 cat conftest.$ac_ext >&5
16554 rm -rf conftest*
16555 glibcpp_cv_func_isinfl_use=no
16557 rm -f conftest*
16558 ac_ext=c
16559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16560 ac_cpp='$CPP $CPPFLAGS'
16561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16563 cross_compiling=$ac_cv_prog_cc_cross
16569 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16571 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16572 for ac_func in isinfl
16574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_func" >&5
16576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577 echo $ac_n "(cached) $ac_c" 1>&6
16578 else
16579 cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func(); below. */
16584 #include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error. */
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char $ac_func();
16590 int main() {
16592 /* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 $ac_func();
16599 #endif
16601 ; return 0; }
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604 rm -rf conftest*
16605 eval "ac_cv_func_$ac_func=yes"
16606 else
16607 echo "configure: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 rm -rf conftest*
16610 eval "ac_cv_func_$ac_func=no"
16612 rm -f conftest*
16615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618 cat >> confdefs.h <<EOF
16619 #define $ac_tr_func 1
16622 else
16623 echo "$ac_t""no" 1>&6
16625 done
16627 else
16629 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16630 echo "configure:16631: checking for _isinfl declaration" >&5
16631 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16632 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16637 ac_ext=C
16638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16639 ac_cpp='$CXXCPP $CPPFLAGS'
16640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16642 cross_compiling=$ac_cv_prog_cxx_cross
16644 cat > conftest.$ac_ext <<EOF
16645 #line 16646 "configure"
16646 #include "confdefs.h"
16647 #include <math.h>
16648 #ifdef HAVE_IEEEFP_H
16649 #include <ieeefp.h>
16650 #endif
16652 int main() {
16653 _isinfl(0);
16654 ; return 0; }
16656 if { (eval echo configure:16657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16657 rm -rf conftest*
16658 glibcpp_cv_func__isinfl_use=yes
16659 else
16660 echo "configure: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 rm -rf conftest*
16663 glibcpp_cv_func__isinfl_use=no
16665 rm -f conftest*
16666 ac_ext=c
16667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16668 ac_cpp='$CPP $CPPFLAGS'
16669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16671 cross_compiling=$ac_cv_prog_cc_cross
16677 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16679 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16680 for ac_func in _isinfl
16682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16683 echo "configure:16684: checking for $ac_func" >&5
16684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16685 echo $ac_n "(cached) $ac_c" 1>&6
16686 else
16687 cat > conftest.$ac_ext <<EOF
16688 #line 16689 "configure"
16689 #include "confdefs.h"
16690 /* System header to define __stub macros and hopefully few prototypes,
16691 which can conflict with char $ac_func(); below. */
16692 #include <assert.h>
16693 /* Override any gcc2 internal prototype to avoid an error. */
16694 /* We use char because int might match the return type of a gcc2
16695 builtin and then its argument prototype would still apply. */
16696 char $ac_func();
16698 int main() {
16700 /* The GNU C library defines this for functions which it implements
16701 to always fail with ENOSYS. Some functions are actually named
16702 something starting with __ and the normal name is an alias. */
16703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16704 choke me
16705 #else
16706 $ac_func();
16707 #endif
16709 ; return 0; }
16711 if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16712 rm -rf conftest*
16713 eval "ac_cv_func_$ac_func=yes"
16714 else
16715 echo "configure: failed program was:" >&5
16716 cat conftest.$ac_ext >&5
16717 rm -rf conftest*
16718 eval "ac_cv_func_$ac_func=no"
16720 rm -f conftest*
16723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16726 cat >> confdefs.h <<EOF
16727 #define $ac_tr_func 1
16730 else
16731 echo "$ac_t""no" 1>&6
16733 done
16740 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16741 echo "configure:16742: checking for copysignl declaration" >&5
16742 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16743 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16744 echo $ac_n "(cached) $ac_c" 1>&6
16745 else
16748 ac_ext=C
16749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16750 ac_cpp='$CXXCPP $CPPFLAGS'
16751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16753 cross_compiling=$ac_cv_prog_cxx_cross
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include <math.h>
16759 int main() {
16760 copysignl(0, 0);
16761 ; return 0; }
16763 if { (eval echo configure:16764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16764 rm -rf conftest*
16765 glibcpp_cv_func_copysignl_use=yes
16766 else
16767 echo "configure: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16769 rm -rf conftest*
16770 glibcpp_cv_func_copysignl_use=no
16772 rm -f conftest*
16773 ac_ext=c
16774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16775 ac_cpp='$CPP $CPPFLAGS'
16776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16778 cross_compiling=$ac_cv_prog_cc_cross
16784 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16786 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16787 for ac_func in copysignl
16789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16790 echo "configure:16791: checking for $ac_func" >&5
16791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16792 echo $ac_n "(cached) $ac_c" 1>&6
16793 else
16794 cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16797 /* System header to define __stub macros and hopefully few prototypes,
16798 which can conflict with char $ac_func(); below. */
16799 #include <assert.h>
16800 /* Override any gcc2 internal prototype to avoid an error. */
16801 /* We use char because int might match the return type of a gcc2
16802 builtin and then its argument prototype would still apply. */
16803 char $ac_func();
16805 int main() {
16807 /* The GNU C library defines this for functions which it implements
16808 to always fail with ENOSYS. Some functions are actually named
16809 something starting with __ and the normal name is an alias. */
16810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16811 choke me
16812 #else
16813 $ac_func();
16814 #endif
16816 ; return 0; }
16818 if { (eval echo configure:16819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16819 rm -rf conftest*
16820 eval "ac_cv_func_$ac_func=yes"
16821 else
16822 echo "configure: failed program was:" >&5
16823 cat conftest.$ac_ext >&5
16824 rm -rf conftest*
16825 eval "ac_cv_func_$ac_func=no"
16827 rm -f conftest*
16830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16831 echo "$ac_t""yes" 1>&6
16832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16833 cat >> confdefs.h <<EOF
16834 #define $ac_tr_func 1
16837 else
16838 echo "$ac_t""no" 1>&6
16840 done
16842 else
16844 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16845 echo "configure:16846: checking for _copysignl declaration" >&5
16846 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16847 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16848 echo $ac_n "(cached) $ac_c" 1>&6
16849 else
16852 ac_ext=C
16853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16854 ac_cpp='$CXXCPP $CPPFLAGS'
16855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16857 cross_compiling=$ac_cv_prog_cxx_cross
16859 cat > conftest.$ac_ext <<EOF
16860 #line 16861 "configure"
16861 #include "confdefs.h"
16862 #include <math.h>
16863 int main() {
16864 _copysignl(0, 0);
16865 ; return 0; }
16867 if { (eval echo configure:16868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16868 rm -rf conftest*
16869 glibcpp_cv_func__copysignl_use=yes
16870 else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -rf conftest*
16874 glibcpp_cv_func__copysignl_use=no
16876 rm -f conftest*
16877 ac_ext=c
16878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16879 ac_cpp='$CPP $CPPFLAGS'
16880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16882 cross_compiling=$ac_cv_prog_cc_cross
16888 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16890 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16891 for ac_func in _copysignl
16893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16894 echo "configure:16895: checking for $ac_func" >&5
16895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16896 echo $ac_n "(cached) $ac_c" 1>&6
16897 else
16898 cat > conftest.$ac_ext <<EOF
16899 #line 16900 "configure"
16900 #include "confdefs.h"
16901 /* System header to define __stub macros and hopefully few prototypes,
16902 which can conflict with char $ac_func(); below. */
16903 #include <assert.h>
16904 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16907 char $ac_func();
16909 int main() {
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915 choke me
16916 #else
16917 $ac_func();
16918 #endif
16920 ; return 0; }
16922 if { (eval echo configure:16923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16923 rm -rf conftest*
16924 eval "ac_cv_func_$ac_func=yes"
16925 else
16926 echo "configure: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 rm -rf conftest*
16929 eval "ac_cv_func_$ac_func=no"
16931 rm -f conftest*
16934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16935 echo "$ac_t""yes" 1>&6
16936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16937 cat >> confdefs.h <<EOF
16938 #define $ac_tr_func 1
16941 else
16942 echo "$ac_t""no" 1>&6
16944 done
16951 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16952 echo "configure:16953: checking for atan2l declaration" >&5
16953 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16954 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16955 echo $ac_n "(cached) $ac_c" 1>&6
16956 else
16959 ac_ext=C
16960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16961 ac_cpp='$CXXCPP $CPPFLAGS'
16962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16964 cross_compiling=$ac_cv_prog_cxx_cross
16966 cat > conftest.$ac_ext <<EOF
16967 #line 16968 "configure"
16968 #include "confdefs.h"
16969 #include <math.h>
16970 int main() {
16971 atan2l(0, 0);
16972 ; return 0; }
16974 if { (eval echo configure:16975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16975 rm -rf conftest*
16976 glibcpp_cv_func_atan2l_use=yes
16977 else
16978 echo "configure: failed program was:" >&5
16979 cat conftest.$ac_ext >&5
16980 rm -rf conftest*
16981 glibcpp_cv_func_atan2l_use=no
16983 rm -f conftest*
16984 ac_ext=c
16985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16986 ac_cpp='$CPP $CPPFLAGS'
16987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16989 cross_compiling=$ac_cv_prog_cc_cross
16995 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16997 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16998 for ac_func in atan2l
17000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17001 echo "configure:17002: checking for $ac_func" >&5
17002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17003 echo $ac_n "(cached) $ac_c" 1>&6
17004 else
17005 cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17008 /* System header to define __stub macros and hopefully few prototypes,
17009 which can conflict with char $ac_func(); below. */
17010 #include <assert.h>
17011 /* Override any gcc2 internal prototype to avoid an error. */
17012 /* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17014 char $ac_func();
17016 int main() {
17018 /* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17022 choke me
17023 #else
17024 $ac_func();
17025 #endif
17027 ; return 0; }
17029 if { (eval echo configure:17030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17030 rm -rf conftest*
17031 eval "ac_cv_func_$ac_func=yes"
17032 else
17033 echo "configure: failed program was:" >&5
17034 cat conftest.$ac_ext >&5
17035 rm -rf conftest*
17036 eval "ac_cv_func_$ac_func=no"
17038 rm -f conftest*
17041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17042 echo "$ac_t""yes" 1>&6
17043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17044 cat >> confdefs.h <<EOF
17045 #define $ac_tr_func 1
17048 else
17049 echo "$ac_t""no" 1>&6
17051 done
17053 else
17055 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17056 echo "configure:17057: checking for _atan2l declaration" >&5
17057 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17058 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17059 echo $ac_n "(cached) $ac_c" 1>&6
17060 else
17063 ac_ext=C
17064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17065 ac_cpp='$CXXCPP $CPPFLAGS'
17066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17068 cross_compiling=$ac_cv_prog_cxx_cross
17070 cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17073 #include <math.h>
17074 int main() {
17075 _atan2l(0, 0);
17076 ; return 0; }
17078 if { (eval echo configure:17079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17079 rm -rf conftest*
17080 glibcpp_cv_func__atan2l_use=yes
17081 else
17082 echo "configure: failed program was:" >&5
17083 cat conftest.$ac_ext >&5
17084 rm -rf conftest*
17085 glibcpp_cv_func__atan2l_use=no
17087 rm -f conftest*
17088 ac_ext=c
17089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17090 ac_cpp='$CPP $CPPFLAGS'
17091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17093 cross_compiling=$ac_cv_prog_cc_cross
17099 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17101 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17102 for ac_func in _atan2l
17104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17105 echo "configure:17106: checking for $ac_func" >&5
17106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17107 echo $ac_n "(cached) $ac_c" 1>&6
17108 else
17109 cat > conftest.$ac_ext <<EOF
17110 #line 17111 "configure"
17111 #include "confdefs.h"
17112 /* System header to define __stub macros and hopefully few prototypes,
17113 which can conflict with char $ac_func(); below. */
17114 #include <assert.h>
17115 /* Override any gcc2 internal prototype to avoid an error. */
17116 /* We use char because int might match the return type of a gcc2
17117 builtin and then its argument prototype would still apply. */
17118 char $ac_func();
17120 int main() {
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17126 choke me
17127 #else
17128 $ac_func();
17129 #endif
17131 ; return 0; }
17133 if { (eval echo configure:17134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17134 rm -rf conftest*
17135 eval "ac_cv_func_$ac_func=yes"
17136 else
17137 echo "configure: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 rm -rf conftest*
17140 eval "ac_cv_func_$ac_func=no"
17142 rm -f conftest*
17145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17146 echo "$ac_t""yes" 1>&6
17147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17148 cat >> confdefs.h <<EOF
17149 #define $ac_tr_func 1
17152 else
17153 echo "$ac_t""no" 1>&6
17155 done
17162 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17163 echo "configure:17164: checking for expl declaration" >&5
17164 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17165 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
17167 else
17170 ac_ext=C
17171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17172 ac_cpp='$CXXCPP $CPPFLAGS'
17173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17175 cross_compiling=$ac_cv_prog_cxx_cross
17177 cat > conftest.$ac_ext <<EOF
17178 #line 17179 "configure"
17179 #include "confdefs.h"
17180 #include <math.h>
17181 #ifdef HAVE_IEEEFP_H
17182 #include <ieeefp.h>
17183 #endif
17185 int main() {
17186 expl(0);
17187 ; return 0; }
17189 if { (eval echo configure:17190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17190 rm -rf conftest*
17191 glibcpp_cv_func_expl_use=yes
17192 else
17193 echo "configure: failed program was:" >&5
17194 cat conftest.$ac_ext >&5
17195 rm -rf conftest*
17196 glibcpp_cv_func_expl_use=no
17198 rm -f conftest*
17199 ac_ext=c
17200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17201 ac_cpp='$CPP $CPPFLAGS'
17202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17204 cross_compiling=$ac_cv_prog_cc_cross
17210 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17212 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17213 for ac_func in expl
17215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17216 echo "configure:17217: checking for $ac_func" >&5
17217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17218 echo $ac_n "(cached) $ac_c" 1>&6
17219 else
17220 cat > conftest.$ac_ext <<EOF
17221 #line 17222 "configure"
17222 #include "confdefs.h"
17223 /* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char $ac_func(); below. */
17225 #include <assert.h>
17226 /* Override any gcc2 internal prototype to avoid an error. */
17227 /* We use char because int might match the return type of a gcc2
17228 builtin and then its argument prototype would still apply. */
17229 char $ac_func();
17231 int main() {
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17237 choke me
17238 #else
17239 $ac_func();
17240 #endif
17242 ; return 0; }
17244 if { (eval echo configure:17245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17245 rm -rf conftest*
17246 eval "ac_cv_func_$ac_func=yes"
17247 else
17248 echo "configure: failed program was:" >&5
17249 cat conftest.$ac_ext >&5
17250 rm -rf conftest*
17251 eval "ac_cv_func_$ac_func=no"
17253 rm -f conftest*
17256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17257 echo "$ac_t""yes" 1>&6
17258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17259 cat >> confdefs.h <<EOF
17260 #define $ac_tr_func 1
17263 else
17264 echo "$ac_t""no" 1>&6
17266 done
17268 else
17270 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17271 echo "configure:17272: checking for _expl declaration" >&5
17272 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17273 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17274 echo $ac_n "(cached) $ac_c" 1>&6
17275 else
17278 ac_ext=C
17279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17280 ac_cpp='$CXXCPP $CPPFLAGS'
17281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17283 cross_compiling=$ac_cv_prog_cxx_cross
17285 cat > conftest.$ac_ext <<EOF
17286 #line 17287 "configure"
17287 #include "confdefs.h"
17288 #include <math.h>
17289 #ifdef HAVE_IEEEFP_H
17290 #include <ieeefp.h>
17291 #endif
17293 int main() {
17294 _expl(0);
17295 ; return 0; }
17297 if { (eval echo configure:17298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17298 rm -rf conftest*
17299 glibcpp_cv_func__expl_use=yes
17300 else
17301 echo "configure: failed program was:" >&5
17302 cat conftest.$ac_ext >&5
17303 rm -rf conftest*
17304 glibcpp_cv_func__expl_use=no
17306 rm -f conftest*
17307 ac_ext=c
17308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17309 ac_cpp='$CPP $CPPFLAGS'
17310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17312 cross_compiling=$ac_cv_prog_cc_cross
17318 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17320 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17321 for ac_func in _expl
17323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17324 echo "configure:17325: checking for $ac_func" >&5
17325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17326 echo $ac_n "(cached) $ac_c" 1>&6
17327 else
17328 cat > conftest.$ac_ext <<EOF
17329 #line 17330 "configure"
17330 #include "confdefs.h"
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func(); below. */
17333 #include <assert.h>
17334 /* Override any gcc2 internal prototype to avoid an error. */
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17337 char $ac_func();
17339 int main() {
17341 /* The GNU C library defines this for functions which it implements
17342 to always fail with ENOSYS. Some functions are actually named
17343 something starting with __ and the normal name is an alias. */
17344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17345 choke me
17346 #else
17347 $ac_func();
17348 #endif
17350 ; return 0; }
17352 if { (eval echo configure:17353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17353 rm -rf conftest*
17354 eval "ac_cv_func_$ac_func=yes"
17355 else
17356 echo "configure: failed program was:" >&5
17357 cat conftest.$ac_ext >&5
17358 rm -rf conftest*
17359 eval "ac_cv_func_$ac_func=no"
17361 rm -f conftest*
17364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17365 echo "$ac_t""yes" 1>&6
17366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17367 cat >> confdefs.h <<EOF
17368 #define $ac_tr_func 1
17371 else
17372 echo "$ac_t""no" 1>&6
17374 done
17381 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17382 echo "configure:17383: checking for fabsl declaration" >&5
17383 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17384 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17385 echo $ac_n "(cached) $ac_c" 1>&6
17386 else
17389 ac_ext=C
17390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17391 ac_cpp='$CXXCPP $CPPFLAGS'
17392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17394 cross_compiling=$ac_cv_prog_cxx_cross
17396 cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.h"
17399 #include <math.h>
17400 #ifdef HAVE_IEEEFP_H
17401 #include <ieeefp.h>
17402 #endif
17404 int main() {
17405 fabsl(0);
17406 ; return 0; }
17408 if { (eval echo configure:17409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17409 rm -rf conftest*
17410 glibcpp_cv_func_fabsl_use=yes
17411 else
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414 rm -rf conftest*
17415 glibcpp_cv_func_fabsl_use=no
17417 rm -f conftest*
17418 ac_ext=c
17419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17423 cross_compiling=$ac_cv_prog_cc_cross
17429 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17431 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17432 for ac_func in fabsl
17434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17435 echo "configure:17436: checking for $ac_func" >&5
17436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17437 echo $ac_n "(cached) $ac_c" 1>&6
17438 else
17439 cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17442 /* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func(); below. */
17444 #include <assert.h>
17445 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448 char $ac_func();
17450 int main() {
17452 /* The GNU C library defines this for functions which it implements
17453 to always fail with ENOSYS. Some functions are actually named
17454 something starting with __ and the normal name is an alias. */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 choke me
17457 #else
17458 $ac_func();
17459 #endif
17461 ; return 0; }
17463 if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464 rm -rf conftest*
17465 eval "ac_cv_func_$ac_func=yes"
17466 else
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469 rm -rf conftest*
17470 eval "ac_cv_func_$ac_func=no"
17472 rm -f conftest*
17475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17476 echo "$ac_t""yes" 1>&6
17477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17478 cat >> confdefs.h <<EOF
17479 #define $ac_tr_func 1
17482 else
17483 echo "$ac_t""no" 1>&6
17485 done
17487 else
17489 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17490 echo "configure:17491: checking for _fabsl declaration" >&5
17491 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17492 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17493 echo $ac_n "(cached) $ac_c" 1>&6
17494 else
17497 ac_ext=C
17498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17499 ac_cpp='$CXXCPP $CPPFLAGS'
17500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17502 cross_compiling=$ac_cv_prog_cxx_cross
17504 cat > conftest.$ac_ext <<EOF
17505 #line 17506 "configure"
17506 #include "confdefs.h"
17507 #include <math.h>
17508 #ifdef HAVE_IEEEFP_H
17509 #include <ieeefp.h>
17510 #endif
17512 int main() {
17513 _fabsl(0);
17514 ; return 0; }
17516 if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17517 rm -rf conftest*
17518 glibcpp_cv_func__fabsl_use=yes
17519 else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
17523 glibcpp_cv_func__fabsl_use=no
17525 rm -f conftest*
17526 ac_ext=c
17527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cc_cross
17537 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17539 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17540 for ac_func in _fabsl
17542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17543 echo "configure:17544: checking for $ac_func" >&5
17544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17545 echo $ac_n "(cached) $ac_c" 1>&6
17546 else
17547 cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char $ac_func(); below. */
17552 #include <assert.h>
17553 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17556 char $ac_func();
17558 int main() {
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 choke me
17565 #else
17566 $ac_func();
17567 #endif
17569 ; return 0; }
17571 if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572 rm -rf conftest*
17573 eval "ac_cv_func_$ac_func=yes"
17574 else
17575 echo "configure: failed program was:" >&5
17576 cat conftest.$ac_ext >&5
17577 rm -rf conftest*
17578 eval "ac_cv_func_$ac_func=no"
17580 rm -f conftest*
17583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17584 echo "$ac_t""yes" 1>&6
17585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17586 cat >> confdefs.h <<EOF
17587 #define $ac_tr_func 1
17590 else
17591 echo "$ac_t""no" 1>&6
17593 done
17600 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17601 echo "configure:17602: checking for fmodl declaration" >&5
17602 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17603 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17604 echo $ac_n "(cached) $ac_c" 1>&6
17605 else
17608 ac_ext=C
17609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17613 cross_compiling=$ac_cv_prog_cxx_cross
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <math.h>
17619 int main() {
17620 fmodl(0, 0);
17621 ; return 0; }
17623 if { (eval echo configure:17624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17624 rm -rf conftest*
17625 glibcpp_cv_func_fmodl_use=yes
17626 else
17627 echo "configure: failed program was:" >&5
17628 cat conftest.$ac_ext >&5
17629 rm -rf conftest*
17630 glibcpp_cv_func_fmodl_use=no
17632 rm -f conftest*
17633 ac_ext=c
17634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17638 cross_compiling=$ac_cv_prog_cc_cross
17644 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17646 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17647 for ac_func in fmodl
17649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17650 echo "configure:17651: checking for $ac_func" >&5
17651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17652 echo $ac_n "(cached) $ac_c" 1>&6
17653 else
17654 cat > conftest.$ac_ext <<EOF
17655 #line 17656 "configure"
17656 #include "confdefs.h"
17657 /* System header to define __stub macros and hopefully few prototypes,
17658 which can conflict with char $ac_func(); below. */
17659 #include <assert.h>
17660 /* Override any gcc2 internal prototype to avoid an error. */
17661 /* We use char because int might match the return type of a gcc2
17662 builtin and then its argument prototype would still apply. */
17663 char $ac_func();
17665 int main() {
17667 /* The GNU C library defines this for functions which it implements
17668 to always fail with ENOSYS. Some functions are actually named
17669 something starting with __ and the normal name is an alias. */
17670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17671 choke me
17672 #else
17673 $ac_func();
17674 #endif
17676 ; return 0; }
17678 if { (eval echo configure:17679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17679 rm -rf conftest*
17680 eval "ac_cv_func_$ac_func=yes"
17681 else
17682 echo "configure: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 rm -rf conftest*
17685 eval "ac_cv_func_$ac_func=no"
17687 rm -f conftest*
17690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17691 echo "$ac_t""yes" 1>&6
17692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17693 cat >> confdefs.h <<EOF
17694 #define $ac_tr_func 1
17697 else
17698 echo "$ac_t""no" 1>&6
17700 done
17702 else
17704 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17705 echo "configure:17706: checking for _fmodl declaration" >&5
17706 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17707 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17708 echo $ac_n "(cached) $ac_c" 1>&6
17709 else
17712 ac_ext=C
17713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17714 ac_cpp='$CXXCPP $CPPFLAGS'
17715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17717 cross_compiling=$ac_cv_prog_cxx_cross
17719 cat > conftest.$ac_ext <<EOF
17720 #line 17721 "configure"
17721 #include "confdefs.h"
17722 #include <math.h>
17723 int main() {
17724 _fmodl(0, 0);
17725 ; return 0; }
17727 if { (eval echo configure:17728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17728 rm -rf conftest*
17729 glibcpp_cv_func__fmodl_use=yes
17730 else
17731 echo "configure: failed program was:" >&5
17732 cat conftest.$ac_ext >&5
17733 rm -rf conftest*
17734 glibcpp_cv_func__fmodl_use=no
17736 rm -f conftest*
17737 ac_ext=c
17738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17739 ac_cpp='$CPP $CPPFLAGS'
17740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742 cross_compiling=$ac_cv_prog_cc_cross
17748 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17750 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17751 for ac_func in _fmodl
17753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17754 echo "configure:17755: checking for $ac_func" >&5
17755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17756 echo $ac_n "(cached) $ac_c" 1>&6
17757 else
17758 cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17761 /* System header to define __stub macros and hopefully few prototypes,
17762 which can conflict with char $ac_func(); below. */
17763 #include <assert.h>
17764 /* Override any gcc2 internal prototype to avoid an error. */
17765 /* We use char because int might match the return type of a gcc2
17766 builtin and then its argument prototype would still apply. */
17767 char $ac_func();
17769 int main() {
17771 /* The GNU C library defines this for functions which it implements
17772 to always fail with ENOSYS. Some functions are actually named
17773 something starting with __ and the normal name is an alias. */
17774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17775 choke me
17776 #else
17777 $ac_func();
17778 #endif
17780 ; return 0; }
17782 if { (eval echo configure:17783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17783 rm -rf conftest*
17784 eval "ac_cv_func_$ac_func=yes"
17785 else
17786 echo "configure: failed program was:" >&5
17787 cat conftest.$ac_ext >&5
17788 rm -rf conftest*
17789 eval "ac_cv_func_$ac_func=no"
17791 rm -f conftest*
17794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17795 echo "$ac_t""yes" 1>&6
17796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17797 cat >> confdefs.h <<EOF
17798 #define $ac_tr_func 1
17801 else
17802 echo "$ac_t""no" 1>&6
17804 done
17811 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17812 echo "configure:17813: checking for frexpl declaration" >&5
17813 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17814 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17815 echo $ac_n "(cached) $ac_c" 1>&6
17816 else
17819 ac_ext=C
17820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17821 ac_cpp='$CXXCPP $CPPFLAGS'
17822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17824 cross_compiling=$ac_cv_prog_cxx_cross
17826 cat > conftest.$ac_ext <<EOF
17827 #line 17828 "configure"
17828 #include "confdefs.h"
17829 #include <math.h>
17830 int main() {
17831 frexpl(0, 0);
17832 ; return 0; }
17834 if { (eval echo configure:17835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17835 rm -rf conftest*
17836 glibcpp_cv_func_frexpl_use=yes
17837 else
17838 echo "configure: failed program was:" >&5
17839 cat conftest.$ac_ext >&5
17840 rm -rf conftest*
17841 glibcpp_cv_func_frexpl_use=no
17843 rm -f conftest*
17844 ac_ext=c
17845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17846 ac_cpp='$CPP $CPPFLAGS'
17847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17849 cross_compiling=$ac_cv_prog_cc_cross
17855 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17857 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17858 for ac_func in frexpl
17860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17861 echo "configure:17862: checking for $ac_func" >&5
17862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17863 echo $ac_n "(cached) $ac_c" 1>&6
17864 else
17865 cat > conftest.$ac_ext <<EOF
17866 #line 17867 "configure"
17867 #include "confdefs.h"
17868 /* System header to define __stub macros and hopefully few prototypes,
17869 which can conflict with char $ac_func(); below. */
17870 #include <assert.h>
17871 /* Override any gcc2 internal prototype to avoid an error. */
17872 /* We use char because int might match the return type of a gcc2
17873 builtin and then its argument prototype would still apply. */
17874 char $ac_func();
17876 int main() {
17878 /* The GNU C library defines this for functions which it implements
17879 to always fail with ENOSYS. Some functions are actually named
17880 something starting with __ and the normal name is an alias. */
17881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17882 choke me
17883 #else
17884 $ac_func();
17885 #endif
17887 ; return 0; }
17889 if { (eval echo configure:17890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17890 rm -rf conftest*
17891 eval "ac_cv_func_$ac_func=yes"
17892 else
17893 echo "configure: failed program was:" >&5
17894 cat conftest.$ac_ext >&5
17895 rm -rf conftest*
17896 eval "ac_cv_func_$ac_func=no"
17898 rm -f conftest*
17901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17902 echo "$ac_t""yes" 1>&6
17903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17904 cat >> confdefs.h <<EOF
17905 #define $ac_tr_func 1
17908 else
17909 echo "$ac_t""no" 1>&6
17911 done
17913 else
17915 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17916 echo "configure:17917: checking for _frexpl declaration" >&5
17917 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17918 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17919 echo $ac_n "(cached) $ac_c" 1>&6
17920 else
17923 ac_ext=C
17924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17925 ac_cpp='$CXXCPP $CPPFLAGS'
17926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17928 cross_compiling=$ac_cv_prog_cxx_cross
17930 cat > conftest.$ac_ext <<EOF
17931 #line 17932 "configure"
17932 #include "confdefs.h"
17933 #include <math.h>
17934 int main() {
17935 _frexpl(0, 0);
17936 ; return 0; }
17938 if { (eval echo configure:17939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17939 rm -rf conftest*
17940 glibcpp_cv_func__frexpl_use=yes
17941 else
17942 echo "configure: failed program was:" >&5
17943 cat conftest.$ac_ext >&5
17944 rm -rf conftest*
17945 glibcpp_cv_func__frexpl_use=no
17947 rm -f conftest*
17948 ac_ext=c
17949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17950 ac_cpp='$CPP $CPPFLAGS'
17951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17953 cross_compiling=$ac_cv_prog_cc_cross
17959 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17961 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17962 for ac_func in _frexpl
17964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17965 echo "configure:17966: checking for $ac_func" >&5
17966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17967 echo $ac_n "(cached) $ac_c" 1>&6
17968 else
17969 cat > conftest.$ac_ext <<EOF
17970 #line 17971 "configure"
17971 #include "confdefs.h"
17972 /* System header to define __stub macros and hopefully few prototypes,
17973 which can conflict with char $ac_func(); below. */
17974 #include <assert.h>
17975 /* Override any gcc2 internal prototype to avoid an error. */
17976 /* We use char because int might match the return type of a gcc2
17977 builtin and then its argument prototype would still apply. */
17978 char $ac_func();
17980 int main() {
17982 /* The GNU C library defines this for functions which it implements
17983 to always fail with ENOSYS. Some functions are actually named
17984 something starting with __ and the normal name is an alias. */
17985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17986 choke me
17987 #else
17988 $ac_func();
17989 #endif
17991 ; return 0; }
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17994 rm -rf conftest*
17995 eval "ac_cv_func_$ac_func=yes"
17996 else
17997 echo "configure: failed program was:" >&5
17998 cat conftest.$ac_ext >&5
17999 rm -rf conftest*
18000 eval "ac_cv_func_$ac_func=no"
18002 rm -f conftest*
18005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18006 echo "$ac_t""yes" 1>&6
18007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18008 cat >> confdefs.h <<EOF
18009 #define $ac_tr_func 1
18012 else
18013 echo "$ac_t""no" 1>&6
18015 done
18022 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18023 echo "configure:18024: checking for hypotl declaration" >&5
18024 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18025 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18026 echo $ac_n "(cached) $ac_c" 1>&6
18027 else
18030 ac_ext=C
18031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18032 ac_cpp='$CXXCPP $CPPFLAGS'
18033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18035 cross_compiling=$ac_cv_prog_cxx_cross
18037 cat > conftest.$ac_ext <<EOF
18038 #line 18039 "configure"
18039 #include "confdefs.h"
18040 #include <math.h>
18041 int main() {
18042 hypotl(0, 0);
18043 ; return 0; }
18045 if { (eval echo configure:18046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18046 rm -rf conftest*
18047 glibcpp_cv_func_hypotl_use=yes
18048 else
18049 echo "configure: failed program was:" >&5
18050 cat conftest.$ac_ext >&5
18051 rm -rf conftest*
18052 glibcpp_cv_func_hypotl_use=no
18054 rm -f conftest*
18055 ac_ext=c
18056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18060 cross_compiling=$ac_cv_prog_cc_cross
18066 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18068 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18069 for ac_func in hypotl
18071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18072 echo "configure:18073: checking for $ac_func" >&5
18073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18074 echo $ac_n "(cached) $ac_c" 1>&6
18075 else
18076 cat > conftest.$ac_ext <<EOF
18077 #line 18078 "configure"
18078 #include "confdefs.h"
18079 /* System header to define __stub macros and hopefully few prototypes,
18080 which can conflict with char $ac_func(); below. */
18081 #include <assert.h>
18082 /* Override any gcc2 internal prototype to avoid an error. */
18083 /* We use char because int might match the return type of a gcc2
18084 builtin and then its argument prototype would still apply. */
18085 char $ac_func();
18087 int main() {
18089 /* The GNU C library defines this for functions which it implements
18090 to always fail with ENOSYS. Some functions are actually named
18091 something starting with __ and the normal name is an alias. */
18092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18093 choke me
18094 #else
18095 $ac_func();
18096 #endif
18098 ; return 0; }
18100 if { (eval echo configure:18101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18101 rm -rf conftest*
18102 eval "ac_cv_func_$ac_func=yes"
18103 else
18104 echo "configure: failed program was:" >&5
18105 cat conftest.$ac_ext >&5
18106 rm -rf conftest*
18107 eval "ac_cv_func_$ac_func=no"
18109 rm -f conftest*
18112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18113 echo "$ac_t""yes" 1>&6
18114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18115 cat >> confdefs.h <<EOF
18116 #define $ac_tr_func 1
18119 else
18120 echo "$ac_t""no" 1>&6
18122 done
18124 else
18126 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18127 echo "configure:18128: checking for _hypotl declaration" >&5
18128 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18129 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18130 echo $ac_n "(cached) $ac_c" 1>&6
18131 else
18134 ac_ext=C
18135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18136 ac_cpp='$CXXCPP $CPPFLAGS'
18137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18139 cross_compiling=$ac_cv_prog_cxx_cross
18141 cat > conftest.$ac_ext <<EOF
18142 #line 18143 "configure"
18143 #include "confdefs.h"
18144 #include <math.h>
18145 int main() {
18146 _hypotl(0, 0);
18147 ; return 0; }
18149 if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18150 rm -rf conftest*
18151 glibcpp_cv_func__hypotl_use=yes
18152 else
18153 echo "configure: failed program was:" >&5
18154 cat conftest.$ac_ext >&5
18155 rm -rf conftest*
18156 glibcpp_cv_func__hypotl_use=no
18158 rm -f conftest*
18159 ac_ext=c
18160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18161 ac_cpp='$CPP $CPPFLAGS'
18162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18164 cross_compiling=$ac_cv_prog_cc_cross
18170 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18172 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18173 for ac_func in _hypotl
18175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18176 echo "configure:18177: checking for $ac_func" >&5
18177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18178 echo $ac_n "(cached) $ac_c" 1>&6
18179 else
18180 cat > conftest.$ac_ext <<EOF
18181 #line 18182 "configure"
18182 #include "confdefs.h"
18183 /* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func(); below. */
18185 #include <assert.h>
18186 /* Override any gcc2 internal prototype to avoid an error. */
18187 /* We use char because int might match the return type of a gcc2
18188 builtin and then its argument prototype would still apply. */
18189 char $ac_func();
18191 int main() {
18193 /* The GNU C library defines this for functions which it implements
18194 to always fail with ENOSYS. Some functions are actually named
18195 something starting with __ and the normal name is an alias. */
18196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18197 choke me
18198 #else
18199 $ac_func();
18200 #endif
18202 ; return 0; }
18204 if { (eval echo configure:18205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18205 rm -rf conftest*
18206 eval "ac_cv_func_$ac_func=yes"
18207 else
18208 echo "configure: failed program was:" >&5
18209 cat conftest.$ac_ext >&5
18210 rm -rf conftest*
18211 eval "ac_cv_func_$ac_func=no"
18213 rm -f conftest*
18216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18217 echo "$ac_t""yes" 1>&6
18218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18219 cat >> confdefs.h <<EOF
18220 #define $ac_tr_func 1
18223 else
18224 echo "$ac_t""no" 1>&6
18226 done
18233 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18234 echo "configure:18235: checking for ldexpl declaration" >&5
18235 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18236 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18238 else
18241 ac_ext=C
18242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18246 cross_compiling=$ac_cv_prog_cxx_cross
18248 cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18251 #include <math.h>
18252 int main() {
18253 ldexpl(0, 0);
18254 ; return 0; }
18256 if { (eval echo configure:18257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18257 rm -rf conftest*
18258 glibcpp_cv_func_ldexpl_use=yes
18259 else
18260 echo "configure: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18262 rm -rf conftest*
18263 glibcpp_cv_func_ldexpl_use=no
18265 rm -f conftest*
18266 ac_ext=c
18267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18268 ac_cpp='$CPP $CPPFLAGS'
18269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18271 cross_compiling=$ac_cv_prog_cc_cross
18277 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18279 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18280 for ac_func in ldexpl
18282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18283 echo "configure:18284: checking for $ac_func" >&5
18284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18285 echo $ac_n "(cached) $ac_c" 1>&6
18286 else
18287 cat > conftest.$ac_ext <<EOF
18288 #line 18289 "configure"
18289 #include "confdefs.h"
18290 /* System header to define __stub macros and hopefully few prototypes,
18291 which can conflict with char $ac_func(); below. */
18292 #include <assert.h>
18293 /* Override any gcc2 internal prototype to avoid an error. */
18294 /* We use char because int might match the return type of a gcc2
18295 builtin and then its argument prototype would still apply. */
18296 char $ac_func();
18298 int main() {
18300 /* The GNU C library defines this for functions which it implements
18301 to always fail with ENOSYS. Some functions are actually named
18302 something starting with __ and the normal name is an alias. */
18303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18304 choke me
18305 #else
18306 $ac_func();
18307 #endif
18309 ; return 0; }
18311 if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18312 rm -rf conftest*
18313 eval "ac_cv_func_$ac_func=yes"
18314 else
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 eval "ac_cv_func_$ac_func=no"
18320 rm -f conftest*
18323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18324 echo "$ac_t""yes" 1>&6
18325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18326 cat >> confdefs.h <<EOF
18327 #define $ac_tr_func 1
18330 else
18331 echo "$ac_t""no" 1>&6
18333 done
18335 else
18337 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18338 echo "configure:18339: checking for _ldexpl declaration" >&5
18339 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18340 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18341 echo $ac_n "(cached) $ac_c" 1>&6
18342 else
18345 ac_ext=C
18346 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18347 ac_cpp='$CXXCPP $CPPFLAGS'
18348 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18349 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18350 cross_compiling=$ac_cv_prog_cxx_cross
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18355 #include <math.h>
18356 int main() {
18357 _ldexpl(0, 0);
18358 ; return 0; }
18360 if { (eval echo configure:18361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18361 rm -rf conftest*
18362 glibcpp_cv_func__ldexpl_use=yes
18363 else
18364 echo "configure: failed program was:" >&5
18365 cat conftest.$ac_ext >&5
18366 rm -rf conftest*
18367 glibcpp_cv_func__ldexpl_use=no
18369 rm -f conftest*
18370 ac_ext=c
18371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18375 cross_compiling=$ac_cv_prog_cc_cross
18381 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18383 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18384 for ac_func in _ldexpl
18386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18387 echo "configure:18388: checking for $ac_func" >&5
18388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18389 echo $ac_n "(cached) $ac_c" 1>&6
18390 else
18391 cat > conftest.$ac_ext <<EOF
18392 #line 18393 "configure"
18393 #include "confdefs.h"
18394 /* System header to define __stub macros and hopefully few prototypes,
18395 which can conflict with char $ac_func(); below. */
18396 #include <assert.h>
18397 /* Override any gcc2 internal prototype to avoid an error. */
18398 /* We use char because int might match the return type of a gcc2
18399 builtin and then its argument prototype would still apply. */
18400 char $ac_func();
18402 int main() {
18404 /* The GNU C library defines this for functions which it implements
18405 to always fail with ENOSYS. Some functions are actually named
18406 something starting with __ and the normal name is an alias. */
18407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18408 choke me
18409 #else
18410 $ac_func();
18411 #endif
18413 ; return 0; }
18415 if { (eval echo configure:18416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18416 rm -rf conftest*
18417 eval "ac_cv_func_$ac_func=yes"
18418 else
18419 echo "configure: failed program was:" >&5
18420 cat conftest.$ac_ext >&5
18421 rm -rf conftest*
18422 eval "ac_cv_func_$ac_func=no"
18424 rm -f conftest*
18427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18428 echo "$ac_t""yes" 1>&6
18429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18430 cat >> confdefs.h <<EOF
18431 #define $ac_tr_func 1
18434 else
18435 echo "$ac_t""no" 1>&6
18437 done
18444 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18445 echo "configure:18446: checking for logl declaration" >&5
18446 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18447 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18448 echo $ac_n "(cached) $ac_c" 1>&6
18449 else
18452 ac_ext=C
18453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18454 ac_cpp='$CXXCPP $CPPFLAGS'
18455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18457 cross_compiling=$ac_cv_prog_cxx_cross
18459 cat > conftest.$ac_ext <<EOF
18460 #line 18461 "configure"
18461 #include "confdefs.h"
18462 #include <math.h>
18463 #ifdef HAVE_IEEEFP_H
18464 #include <ieeefp.h>
18465 #endif
18467 int main() {
18468 logl(0);
18469 ; return 0; }
18471 if { (eval echo configure:18472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18472 rm -rf conftest*
18473 glibcpp_cv_func_logl_use=yes
18474 else
18475 echo "configure: failed program was:" >&5
18476 cat conftest.$ac_ext >&5
18477 rm -rf conftest*
18478 glibcpp_cv_func_logl_use=no
18480 rm -f conftest*
18481 ac_ext=c
18482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18483 ac_cpp='$CPP $CPPFLAGS'
18484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18486 cross_compiling=$ac_cv_prog_cc_cross
18492 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18494 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18495 for ac_func in logl
18497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18498 echo "configure:18499: checking for $ac_func" >&5
18499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18500 echo $ac_n "(cached) $ac_c" 1>&6
18501 else
18502 cat > conftest.$ac_ext <<EOF
18503 #line 18504 "configure"
18504 #include "confdefs.h"
18505 /* System header to define __stub macros and hopefully few prototypes,
18506 which can conflict with char $ac_func(); below. */
18507 #include <assert.h>
18508 /* Override any gcc2 internal prototype to avoid an error. */
18509 /* We use char because int might match the return type of a gcc2
18510 builtin and then its argument prototype would still apply. */
18511 char $ac_func();
18513 int main() {
18515 /* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18519 choke me
18520 #else
18521 $ac_func();
18522 #endif
18524 ; return 0; }
18526 if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18527 rm -rf conftest*
18528 eval "ac_cv_func_$ac_func=yes"
18529 else
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18532 rm -rf conftest*
18533 eval "ac_cv_func_$ac_func=no"
18535 rm -f conftest*
18538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18539 echo "$ac_t""yes" 1>&6
18540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18541 cat >> confdefs.h <<EOF
18542 #define $ac_tr_func 1
18545 else
18546 echo "$ac_t""no" 1>&6
18548 done
18550 else
18552 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18553 echo "configure:18554: checking for _logl declaration" >&5
18554 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18555 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18556 echo $ac_n "(cached) $ac_c" 1>&6
18557 else
18560 ac_ext=C
18561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18562 ac_cpp='$CXXCPP $CPPFLAGS'
18563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18565 cross_compiling=$ac_cv_prog_cxx_cross
18567 cat > conftest.$ac_ext <<EOF
18568 #line 18569 "configure"
18569 #include "confdefs.h"
18570 #include <math.h>
18571 #ifdef HAVE_IEEEFP_H
18572 #include <ieeefp.h>
18573 #endif
18575 int main() {
18576 _logl(0);
18577 ; return 0; }
18579 if { (eval echo configure:18580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18580 rm -rf conftest*
18581 glibcpp_cv_func__logl_use=yes
18582 else
18583 echo "configure: failed program was:" >&5
18584 cat conftest.$ac_ext >&5
18585 rm -rf conftest*
18586 glibcpp_cv_func__logl_use=no
18588 rm -f conftest*
18589 ac_ext=c
18590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18594 cross_compiling=$ac_cv_prog_cc_cross
18600 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18602 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18603 for ac_func in _logl
18605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18606 echo "configure:18607: checking for $ac_func" >&5
18607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18608 echo $ac_n "(cached) $ac_c" 1>&6
18609 else
18610 cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18613 /* System header to define __stub macros and hopefully few prototypes,
18614 which can conflict with char $ac_func(); below. */
18615 #include <assert.h>
18616 /* Override any gcc2 internal prototype to avoid an error. */
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18619 char $ac_func();
18621 int main() {
18623 /* The GNU C library defines this for functions which it implements
18624 to always fail with ENOSYS. Some functions are actually named
18625 something starting with __ and the normal name is an alias. */
18626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18627 choke me
18628 #else
18629 $ac_func();
18630 #endif
18632 ; return 0; }
18634 if { (eval echo configure:18635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635 rm -rf conftest*
18636 eval "ac_cv_func_$ac_func=yes"
18637 else
18638 echo "configure: failed program was:" >&5
18639 cat conftest.$ac_ext >&5
18640 rm -rf conftest*
18641 eval "ac_cv_func_$ac_func=no"
18643 rm -f conftest*
18646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18647 echo "$ac_t""yes" 1>&6
18648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18649 cat >> confdefs.h <<EOF
18650 #define $ac_tr_func 1
18653 else
18654 echo "$ac_t""no" 1>&6
18656 done
18663 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18664 echo "configure:18665: checking for log10l declaration" >&5
18665 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18666 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18667 echo $ac_n "(cached) $ac_c" 1>&6
18668 else
18671 ac_ext=C
18672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18676 cross_compiling=$ac_cv_prog_cxx_cross
18678 cat > conftest.$ac_ext <<EOF
18679 #line 18680 "configure"
18680 #include "confdefs.h"
18681 #include <math.h>
18682 #ifdef HAVE_IEEEFP_H
18683 #include <ieeefp.h>
18684 #endif
18686 int main() {
18687 log10l(0);
18688 ; return 0; }
18690 if { (eval echo configure:18691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18691 rm -rf conftest*
18692 glibcpp_cv_func_log10l_use=yes
18693 else
18694 echo "configure: failed program was:" >&5
18695 cat conftest.$ac_ext >&5
18696 rm -rf conftest*
18697 glibcpp_cv_func_log10l_use=no
18699 rm -f conftest*
18700 ac_ext=c
18701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18705 cross_compiling=$ac_cv_prog_cc_cross
18711 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18713 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18714 for ac_func in log10l
18716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18717 echo "configure:18718: checking for $ac_func" >&5
18718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18719 echo $ac_n "(cached) $ac_c" 1>&6
18720 else
18721 cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18724 /* System header to define __stub macros and hopefully few prototypes,
18725 which can conflict with char $ac_func(); below. */
18726 #include <assert.h>
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 /* We use char because int might match the return type of a gcc2
18729 builtin and then its argument prototype would still apply. */
18730 char $ac_func();
18732 int main() {
18734 /* The GNU C library defines this for functions which it implements
18735 to always fail with ENOSYS. Some functions are actually named
18736 something starting with __ and the normal name is an alias. */
18737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738 choke me
18739 #else
18740 $ac_func();
18741 #endif
18743 ; return 0; }
18745 if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18746 rm -rf conftest*
18747 eval "ac_cv_func_$ac_func=yes"
18748 else
18749 echo "configure: failed program was:" >&5
18750 cat conftest.$ac_ext >&5
18751 rm -rf conftest*
18752 eval "ac_cv_func_$ac_func=no"
18754 rm -f conftest*
18757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18758 echo "$ac_t""yes" 1>&6
18759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18760 cat >> confdefs.h <<EOF
18761 #define $ac_tr_func 1
18764 else
18765 echo "$ac_t""no" 1>&6
18767 done
18769 else
18771 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18772 echo "configure:18773: checking for _log10l declaration" >&5
18773 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18774 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18775 echo $ac_n "(cached) $ac_c" 1>&6
18776 else
18779 ac_ext=C
18780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18781 ac_cpp='$CXXCPP $CPPFLAGS'
18782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18784 cross_compiling=$ac_cv_prog_cxx_cross
18786 cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 #include <math.h>
18790 #ifdef HAVE_IEEEFP_H
18791 #include <ieeefp.h>
18792 #endif
18794 int main() {
18795 _log10l(0);
18796 ; return 0; }
18798 if { (eval echo configure:18799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18799 rm -rf conftest*
18800 glibcpp_cv_func__log10l_use=yes
18801 else
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18804 rm -rf conftest*
18805 glibcpp_cv_func__log10l_use=no
18807 rm -f conftest*
18808 ac_ext=c
18809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18813 cross_compiling=$ac_cv_prog_cc_cross
18819 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18821 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18822 for ac_func in _log10l
18824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18825 echo "configure:18826: checking for $ac_func" >&5
18826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18827 echo $ac_n "(cached) $ac_c" 1>&6
18828 else
18829 cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char $ac_func(); below. */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18838 char $ac_func();
18840 int main() {
18842 /* The GNU C library defines this for functions which it implements
18843 to always fail with ENOSYS. Some functions are actually named
18844 something starting with __ and the normal name is an alias. */
18845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18846 choke me
18847 #else
18848 $ac_func();
18849 #endif
18851 ; return 0; }
18853 if { (eval echo configure:18854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18854 rm -rf conftest*
18855 eval "ac_cv_func_$ac_func=yes"
18856 else
18857 echo "configure: failed program was:" >&5
18858 cat conftest.$ac_ext >&5
18859 rm -rf conftest*
18860 eval "ac_cv_func_$ac_func=no"
18862 rm -f conftest*
18865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18866 echo "$ac_t""yes" 1>&6
18867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18868 cat >> confdefs.h <<EOF
18869 #define $ac_tr_func 1
18872 else
18873 echo "$ac_t""no" 1>&6
18875 done
18882 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18883 echo "configure:18884: checking for modfl declaration" >&5
18884 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18885 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18886 echo $ac_n "(cached) $ac_c" 1>&6
18887 else
18890 ac_ext=C
18891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18895 cross_compiling=$ac_cv_prog_cxx_cross
18897 cat > conftest.$ac_ext <<EOF
18898 #line 18899 "configure"
18899 #include "confdefs.h"
18900 #include <math.h>
18901 int main() {
18902 modfl(0, 0);
18903 ; return 0; }
18905 if { (eval echo configure:18906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18906 rm -rf conftest*
18907 glibcpp_cv_func_modfl_use=yes
18908 else
18909 echo "configure: failed program was:" >&5
18910 cat conftest.$ac_ext >&5
18911 rm -rf conftest*
18912 glibcpp_cv_func_modfl_use=no
18914 rm -f conftest*
18915 ac_ext=c
18916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18920 cross_compiling=$ac_cv_prog_cc_cross
18926 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18928 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18929 for ac_func in modfl
18931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18932 echo "configure:18933: checking for $ac_func" >&5
18933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18934 echo $ac_n "(cached) $ac_c" 1>&6
18935 else
18936 cat > conftest.$ac_ext <<EOF
18937 #line 18938 "configure"
18938 #include "confdefs.h"
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char $ac_func(); below. */
18941 #include <assert.h>
18942 /* Override any gcc2 internal prototype to avoid an error. */
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18945 char $ac_func();
18947 int main() {
18949 /* The GNU C library defines this for functions which it implements
18950 to always fail with ENOSYS. Some functions are actually named
18951 something starting with __ and the normal name is an alias. */
18952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18953 choke me
18954 #else
18955 $ac_func();
18956 #endif
18958 ; return 0; }
18960 if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18961 rm -rf conftest*
18962 eval "ac_cv_func_$ac_func=yes"
18963 else
18964 echo "configure: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18966 rm -rf conftest*
18967 eval "ac_cv_func_$ac_func=no"
18969 rm -f conftest*
18972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18973 echo "$ac_t""yes" 1>&6
18974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18975 cat >> confdefs.h <<EOF
18976 #define $ac_tr_func 1
18979 else
18980 echo "$ac_t""no" 1>&6
18982 done
18984 else
18986 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18987 echo "configure:18988: checking for _modfl declaration" >&5
18988 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18989 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18990 echo $ac_n "(cached) $ac_c" 1>&6
18991 else
18994 ac_ext=C
18995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18996 ac_cpp='$CXXCPP $CPPFLAGS'
18997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18999 cross_compiling=$ac_cv_prog_cxx_cross
19001 cat > conftest.$ac_ext <<EOF
19002 #line 19003 "configure"
19003 #include "confdefs.h"
19004 #include <math.h>
19005 int main() {
19006 _modfl(0, 0);
19007 ; return 0; }
19009 if { (eval echo configure:19010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19010 rm -rf conftest*
19011 glibcpp_cv_func__modfl_use=yes
19012 else
19013 echo "configure: failed program was:" >&5
19014 cat conftest.$ac_ext >&5
19015 rm -rf conftest*
19016 glibcpp_cv_func__modfl_use=no
19018 rm -f conftest*
19019 ac_ext=c
19020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19024 cross_compiling=$ac_cv_prog_cc_cross
19030 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19032 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19033 for ac_func in _modfl
19035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19036 echo "configure:19037: checking for $ac_func" >&5
19037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19038 echo $ac_n "(cached) $ac_c" 1>&6
19039 else
19040 cat > conftest.$ac_ext <<EOF
19041 #line 19042 "configure"
19042 #include "confdefs.h"
19043 /* System header to define __stub macros and hopefully few prototypes,
19044 which can conflict with char $ac_func(); below. */
19045 #include <assert.h>
19046 /* Override any gcc2 internal prototype to avoid an error. */
19047 /* We use char because int might match the return type of a gcc2
19048 builtin and then its argument prototype would still apply. */
19049 char $ac_func();
19051 int main() {
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19057 choke me
19058 #else
19059 $ac_func();
19060 #endif
19062 ; return 0; }
19064 if { (eval echo configure:19065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19065 rm -rf conftest*
19066 eval "ac_cv_func_$ac_func=yes"
19067 else
19068 echo "configure: failed program was:" >&5
19069 cat conftest.$ac_ext >&5
19070 rm -rf conftest*
19071 eval "ac_cv_func_$ac_func=no"
19073 rm -f conftest*
19076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19077 echo "$ac_t""yes" 1>&6
19078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19079 cat >> confdefs.h <<EOF
19080 #define $ac_tr_func 1
19083 else
19084 echo "$ac_t""no" 1>&6
19086 done
19093 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19094 echo "configure:19095: checking for powl declaration" >&5
19095 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19096 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19097 echo $ac_n "(cached) $ac_c" 1>&6
19098 else
19101 ac_ext=C
19102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19106 cross_compiling=$ac_cv_prog_cxx_cross
19108 cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19111 #include <math.h>
19112 int main() {
19113 powl(0, 0);
19114 ; return 0; }
19116 if { (eval echo configure:19117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19117 rm -rf conftest*
19118 glibcpp_cv_func_powl_use=yes
19119 else
19120 echo "configure: failed program was:" >&5
19121 cat conftest.$ac_ext >&5
19122 rm -rf conftest*
19123 glibcpp_cv_func_powl_use=no
19125 rm -f conftest*
19126 ac_ext=c
19127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19128 ac_cpp='$CPP $CPPFLAGS'
19129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19131 cross_compiling=$ac_cv_prog_cc_cross
19137 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19139 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19140 for ac_func in powl
19142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19143 echo "configure:19144: checking for $ac_func" >&5
19144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19145 echo $ac_n "(cached) $ac_c" 1>&6
19146 else
19147 cat > conftest.$ac_ext <<EOF
19148 #line 19149 "configure"
19149 #include "confdefs.h"
19150 /* System header to define __stub macros and hopefully few prototypes,
19151 which can conflict with char $ac_func(); below. */
19152 #include <assert.h>
19153 /* Override any gcc2 internal prototype to avoid an error. */
19154 /* We use char because int might match the return type of a gcc2
19155 builtin and then its argument prototype would still apply. */
19156 char $ac_func();
19158 int main() {
19160 /* The GNU C library defines this for functions which it implements
19161 to always fail with ENOSYS. Some functions are actually named
19162 something starting with __ and the normal name is an alias. */
19163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19164 choke me
19165 #else
19166 $ac_func();
19167 #endif
19169 ; return 0; }
19171 if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19172 rm -rf conftest*
19173 eval "ac_cv_func_$ac_func=yes"
19174 else
19175 echo "configure: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19177 rm -rf conftest*
19178 eval "ac_cv_func_$ac_func=no"
19180 rm -f conftest*
19183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19184 echo "$ac_t""yes" 1>&6
19185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19186 cat >> confdefs.h <<EOF
19187 #define $ac_tr_func 1
19190 else
19191 echo "$ac_t""no" 1>&6
19193 done
19195 else
19197 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19198 echo "configure:19199: checking for _powl declaration" >&5
19199 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19200 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19202 else
19205 ac_ext=C
19206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19207 ac_cpp='$CXXCPP $CPPFLAGS'
19208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19210 cross_compiling=$ac_cv_prog_cxx_cross
19212 cat > conftest.$ac_ext <<EOF
19213 #line 19214 "configure"
19214 #include "confdefs.h"
19215 #include <math.h>
19216 int main() {
19217 _powl(0, 0);
19218 ; return 0; }
19220 if { (eval echo configure:19221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19221 rm -rf conftest*
19222 glibcpp_cv_func__powl_use=yes
19223 else
19224 echo "configure: failed program was:" >&5
19225 cat conftest.$ac_ext >&5
19226 rm -rf conftest*
19227 glibcpp_cv_func__powl_use=no
19229 rm -f conftest*
19230 ac_ext=c
19231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19232 ac_cpp='$CPP $CPPFLAGS'
19233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19235 cross_compiling=$ac_cv_prog_cc_cross
19241 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19243 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19244 for ac_func in _powl
19246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19247 echo "configure:19248: checking for $ac_func" >&5
19248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19249 echo $ac_n "(cached) $ac_c" 1>&6
19250 else
19251 cat > conftest.$ac_ext <<EOF
19252 #line 19253 "configure"
19253 #include "confdefs.h"
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char $ac_func(); below. */
19256 #include <assert.h>
19257 /* Override any gcc2 internal prototype to avoid an error. */
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19260 char $ac_func();
19262 int main() {
19264 /* The GNU C library defines this for functions which it implements
19265 to always fail with ENOSYS. Some functions are actually named
19266 something starting with __ and the normal name is an alias. */
19267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19268 choke me
19269 #else
19270 $ac_func();
19271 #endif
19273 ; return 0; }
19275 if { (eval echo configure:19276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19276 rm -rf conftest*
19277 eval "ac_cv_func_$ac_func=yes"
19278 else
19279 echo "configure: failed program was:" >&5
19280 cat conftest.$ac_ext >&5
19281 rm -rf conftest*
19282 eval "ac_cv_func_$ac_func=no"
19284 rm -f conftest*
19287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19288 echo "$ac_t""yes" 1>&6
19289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19290 cat >> confdefs.h <<EOF
19291 #define $ac_tr_func 1
19294 else
19295 echo "$ac_t""no" 1>&6
19297 done
19304 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19305 echo "configure:19306: checking for sqrtl declaration" >&5
19306 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19307 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19308 echo $ac_n "(cached) $ac_c" 1>&6
19309 else
19312 ac_ext=C
19313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19314 ac_cpp='$CXXCPP $CPPFLAGS'
19315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19317 cross_compiling=$ac_cv_prog_cxx_cross
19319 cat > conftest.$ac_ext <<EOF
19320 #line 19321 "configure"
19321 #include "confdefs.h"
19322 #include <math.h>
19323 #ifdef HAVE_IEEEFP_H
19324 #include <ieeefp.h>
19325 #endif
19327 int main() {
19328 sqrtl(0);
19329 ; return 0; }
19331 if { (eval echo configure:19332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19332 rm -rf conftest*
19333 glibcpp_cv_func_sqrtl_use=yes
19334 else
19335 echo "configure: failed program was:" >&5
19336 cat conftest.$ac_ext >&5
19337 rm -rf conftest*
19338 glibcpp_cv_func_sqrtl_use=no
19340 rm -f conftest*
19341 ac_ext=c
19342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19346 cross_compiling=$ac_cv_prog_cc_cross
19352 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19354 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19355 for ac_func in sqrtl
19357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19358 echo "configure:19359: checking for $ac_func" >&5
19359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19360 echo $ac_n "(cached) $ac_c" 1>&6
19361 else
19362 cat > conftest.$ac_ext <<EOF
19363 #line 19364 "configure"
19364 #include "confdefs.h"
19365 /* System header to define __stub macros and hopefully few prototypes,
19366 which can conflict with char $ac_func(); below. */
19367 #include <assert.h>
19368 /* Override any gcc2 internal prototype to avoid an error. */
19369 /* We use char because int might match the return type of a gcc2
19370 builtin and then its argument prototype would still apply. */
19371 char $ac_func();
19373 int main() {
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19379 choke me
19380 #else
19381 $ac_func();
19382 #endif
19384 ; return 0; }
19386 if { (eval echo configure:19387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19387 rm -rf conftest*
19388 eval "ac_cv_func_$ac_func=yes"
19389 else
19390 echo "configure: failed program was:" >&5
19391 cat conftest.$ac_ext >&5
19392 rm -rf conftest*
19393 eval "ac_cv_func_$ac_func=no"
19395 rm -f conftest*
19398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19399 echo "$ac_t""yes" 1>&6
19400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19401 cat >> confdefs.h <<EOF
19402 #define $ac_tr_func 1
19405 else
19406 echo "$ac_t""no" 1>&6
19408 done
19410 else
19412 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19413 echo "configure:19414: checking for _sqrtl declaration" >&5
19414 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19415 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19416 echo $ac_n "(cached) $ac_c" 1>&6
19417 else
19420 ac_ext=C
19421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19422 ac_cpp='$CXXCPP $CPPFLAGS'
19423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19425 cross_compiling=$ac_cv_prog_cxx_cross
19427 cat > conftest.$ac_ext <<EOF
19428 #line 19429 "configure"
19429 #include "confdefs.h"
19430 #include <math.h>
19431 #ifdef HAVE_IEEEFP_H
19432 #include <ieeefp.h>
19433 #endif
19435 int main() {
19436 _sqrtl(0);
19437 ; return 0; }
19439 if { (eval echo configure:19440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19440 rm -rf conftest*
19441 glibcpp_cv_func__sqrtl_use=yes
19442 else
19443 echo "configure: failed program was:" >&5
19444 cat conftest.$ac_ext >&5
19445 rm -rf conftest*
19446 glibcpp_cv_func__sqrtl_use=no
19448 rm -f conftest*
19449 ac_ext=c
19450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19454 cross_compiling=$ac_cv_prog_cc_cross
19460 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19462 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19463 for ac_func in _sqrtl
19465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19466 echo "configure:19467: checking for $ac_func" >&5
19467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19468 echo $ac_n "(cached) $ac_c" 1>&6
19469 else
19470 cat > conftest.$ac_ext <<EOF
19471 #line 19472 "configure"
19472 #include "confdefs.h"
19473 /* System header to define __stub macros and hopefully few prototypes,
19474 which can conflict with char $ac_func(); below. */
19475 #include <assert.h>
19476 /* Override any gcc2 internal prototype to avoid an error. */
19477 /* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479 char $ac_func();
19481 int main() {
19483 /* The GNU C library defines this for functions which it implements
19484 to always fail with ENOSYS. Some functions are actually named
19485 something starting with __ and the normal name is an alias. */
19486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19487 choke me
19488 #else
19489 $ac_func();
19490 #endif
19492 ; return 0; }
19494 if { (eval echo configure:19495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19495 rm -rf conftest*
19496 eval "ac_cv_func_$ac_func=yes"
19497 else
19498 echo "configure: failed program was:" >&5
19499 cat conftest.$ac_ext >&5
19500 rm -rf conftest*
19501 eval "ac_cv_func_$ac_func=no"
19503 rm -f conftest*
19506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19507 echo "$ac_t""yes" 1>&6
19508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19509 cat >> confdefs.h <<EOF
19510 #define $ac_tr_func 1
19513 else
19514 echo "$ac_t""no" 1>&6
19516 done
19523 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19524 echo "configure:19525: checking for sincosl declaration" >&5
19525 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19526 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19527 echo $ac_n "(cached) $ac_c" 1>&6
19528 else
19531 ac_ext=C
19532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19536 cross_compiling=$ac_cv_prog_cxx_cross
19538 cat > conftest.$ac_ext <<EOF
19539 #line 19540 "configure"
19540 #include "confdefs.h"
19541 #include <math.h>
19542 int main() {
19543 sincosl(0, 0, 0);
19544 ; return 0; }
19546 if { (eval echo configure:19547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19547 rm -rf conftest*
19548 glibcpp_cv_func_sincosl_use=yes
19549 else
19550 echo "configure: failed program was:" >&5
19551 cat conftest.$ac_ext >&5
19552 rm -rf conftest*
19553 glibcpp_cv_func_sincosl_use=no
19555 rm -f conftest*
19556 ac_ext=c
19557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19558 ac_cpp='$CPP $CPPFLAGS'
19559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19561 cross_compiling=$ac_cv_prog_cc_cross
19567 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19569 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19570 for ac_func in sincosl
19572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19573 echo "configure:19574: checking for $ac_func" >&5
19574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19575 echo $ac_n "(cached) $ac_c" 1>&6
19576 else
19577 cat > conftest.$ac_ext <<EOF
19578 #line 19579 "configure"
19579 #include "confdefs.h"
19580 /* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char $ac_func(); below. */
19582 #include <assert.h>
19583 /* Override any gcc2 internal prototype to avoid an error. */
19584 /* We use char because int might match the return type of a gcc2
19585 builtin and then its argument prototype would still apply. */
19586 char $ac_func();
19588 int main() {
19590 /* The GNU C library defines this for functions which it implements
19591 to always fail with ENOSYS. Some functions are actually named
19592 something starting with __ and the normal name is an alias. */
19593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19594 choke me
19595 #else
19596 $ac_func();
19597 #endif
19599 ; return 0; }
19601 if { (eval echo configure:19602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19602 rm -rf conftest*
19603 eval "ac_cv_func_$ac_func=yes"
19604 else
19605 echo "configure: failed program was:" >&5
19606 cat conftest.$ac_ext >&5
19607 rm -rf conftest*
19608 eval "ac_cv_func_$ac_func=no"
19610 rm -f conftest*
19613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19614 echo "$ac_t""yes" 1>&6
19615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19616 cat >> confdefs.h <<EOF
19617 #define $ac_tr_func 1
19620 else
19621 echo "$ac_t""no" 1>&6
19623 done
19625 else
19627 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19628 echo "configure:19629: checking for _sincosl declaration" >&5
19629 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19630 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19631 echo $ac_n "(cached) $ac_c" 1>&6
19632 else
19635 ac_ext=C
19636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19637 ac_cpp='$CXXCPP $CPPFLAGS'
19638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19640 cross_compiling=$ac_cv_prog_cxx_cross
19642 cat > conftest.$ac_ext <<EOF
19643 #line 19644 "configure"
19644 #include "confdefs.h"
19645 #include <math.h>
19646 int main() {
19647 _sincosl(0, 0, 0);
19648 ; return 0; }
19650 if { (eval echo configure:19651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19651 rm -rf conftest*
19652 glibcpp_cv_func__sincosl_use=yes
19653 else
19654 echo "configure: failed program was:" >&5
19655 cat conftest.$ac_ext >&5
19656 rm -rf conftest*
19657 glibcpp_cv_func__sincosl_use=no
19659 rm -f conftest*
19660 ac_ext=c
19661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19662 ac_cpp='$CPP $CPPFLAGS'
19663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19665 cross_compiling=$ac_cv_prog_cc_cross
19671 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19673 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19674 for ac_func in _sincosl
19676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19677 echo "configure:19678: checking for $ac_func" >&5
19678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19679 echo $ac_n "(cached) $ac_c" 1>&6
19680 else
19681 cat > conftest.$ac_ext <<EOF
19682 #line 19683 "configure"
19683 #include "confdefs.h"
19684 /* System header to define __stub macros and hopefully few prototypes,
19685 which can conflict with char $ac_func(); below. */
19686 #include <assert.h>
19687 /* Override any gcc2 internal prototype to avoid an error. */
19688 /* We use char because int might match the return type of a gcc2
19689 builtin and then its argument prototype would still apply. */
19690 char $ac_func();
19692 int main() {
19694 /* The GNU C library defines this for functions which it implements
19695 to always fail with ENOSYS. Some functions are actually named
19696 something starting with __ and the normal name is an alias. */
19697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19698 choke me
19699 #else
19700 $ac_func();
19701 #endif
19703 ; return 0; }
19705 if { (eval echo configure:19706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19706 rm -rf conftest*
19707 eval "ac_cv_func_$ac_func=yes"
19708 else
19709 echo "configure: failed program was:" >&5
19710 cat conftest.$ac_ext >&5
19711 rm -rf conftest*
19712 eval "ac_cv_func_$ac_func=no"
19714 rm -f conftest*
19717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19718 echo "$ac_t""yes" 1>&6
19719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19720 cat >> confdefs.h <<EOF
19721 #define $ac_tr_func 1
19724 else
19725 echo "$ac_t""no" 1>&6
19727 done
19734 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19735 echo "configure:19736: checking for finitel declaration" >&5
19736 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19737 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19738 echo $ac_n "(cached) $ac_c" 1>&6
19739 else
19742 ac_ext=C
19743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19744 ac_cpp='$CXXCPP $CPPFLAGS'
19745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19747 cross_compiling=$ac_cv_prog_cxx_cross
19749 cat > conftest.$ac_ext <<EOF
19750 #line 19751 "configure"
19751 #include "confdefs.h"
19752 #include <math.h>
19753 #ifdef HAVE_IEEEFP_H
19754 #include <ieeefp.h>
19755 #endif
19757 int main() {
19758 finitel(0);
19759 ; return 0; }
19761 if { (eval echo configure:19762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19762 rm -rf conftest*
19763 glibcpp_cv_func_finitel_use=yes
19764 else
19765 echo "configure: failed program was:" >&5
19766 cat conftest.$ac_ext >&5
19767 rm -rf conftest*
19768 glibcpp_cv_func_finitel_use=no
19770 rm -f conftest*
19771 ac_ext=c
19772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19776 cross_compiling=$ac_cv_prog_cc_cross
19782 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19784 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19785 for ac_func in finitel
19787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19788 echo "configure:19789: checking for $ac_func" >&5
19789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19790 echo $ac_n "(cached) $ac_c" 1>&6
19791 else
19792 cat > conftest.$ac_ext <<EOF
19793 #line 19794 "configure"
19794 #include "confdefs.h"
19795 /* System header to define __stub macros and hopefully few prototypes,
19796 which can conflict with char $ac_func(); below. */
19797 #include <assert.h>
19798 /* Override any gcc2 internal prototype to avoid an error. */
19799 /* We use char because int might match the return type of a gcc2
19800 builtin and then its argument prototype would still apply. */
19801 char $ac_func();
19803 int main() {
19805 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19809 choke me
19810 #else
19811 $ac_func();
19812 #endif
19814 ; return 0; }
19816 if { (eval echo configure:19817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19817 rm -rf conftest*
19818 eval "ac_cv_func_$ac_func=yes"
19819 else
19820 echo "configure: failed program was:" >&5
19821 cat conftest.$ac_ext >&5
19822 rm -rf conftest*
19823 eval "ac_cv_func_$ac_func=no"
19825 rm -f conftest*
19828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19829 echo "$ac_t""yes" 1>&6
19830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19831 cat >> confdefs.h <<EOF
19832 #define $ac_tr_func 1
19835 else
19836 echo "$ac_t""no" 1>&6
19838 done
19840 else
19842 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19843 echo "configure:19844: checking for _finitel declaration" >&5
19844 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19845 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19846 echo $ac_n "(cached) $ac_c" 1>&6
19847 else
19850 ac_ext=C
19851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19852 ac_cpp='$CXXCPP $CPPFLAGS'
19853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19855 cross_compiling=$ac_cv_prog_cxx_cross
19857 cat > conftest.$ac_ext <<EOF
19858 #line 19859 "configure"
19859 #include "confdefs.h"
19860 #include <math.h>
19861 #ifdef HAVE_IEEEFP_H
19862 #include <ieeefp.h>
19863 #endif
19865 int main() {
19866 _finitel(0);
19867 ; return 0; }
19869 if { (eval echo configure:19870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19870 rm -rf conftest*
19871 glibcpp_cv_func__finitel_use=yes
19872 else
19873 echo "configure: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19875 rm -rf conftest*
19876 glibcpp_cv_func__finitel_use=no
19878 rm -f conftest*
19879 ac_ext=c
19880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19884 cross_compiling=$ac_cv_prog_cc_cross
19890 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19892 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19893 for ac_func in _finitel
19895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19896 echo "configure:19897: checking for $ac_func" >&5
19897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19899 else
19900 cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19903 /* System header to define __stub macros and hopefully few prototypes,
19904 which can conflict with char $ac_func(); below. */
19905 #include <assert.h>
19906 /* Override any gcc2 internal prototype to avoid an error. */
19907 /* We use char because int might match the return type of a gcc2
19908 builtin and then its argument prototype would still apply. */
19909 char $ac_func();
19911 int main() {
19913 /* The GNU C library defines this for functions which it implements
19914 to always fail with ENOSYS. Some functions are actually named
19915 something starting with __ and the normal name is an alias. */
19916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19917 choke me
19918 #else
19919 $ac_func();
19920 #endif
19922 ; return 0; }
19924 if { (eval echo configure:19925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19925 rm -rf conftest*
19926 eval "ac_cv_func_$ac_func=yes"
19927 else
19928 echo "configure: failed program was:" >&5
19929 cat conftest.$ac_ext >&5
19930 rm -rf conftest*
19931 eval "ac_cv_func_$ac_func=no"
19933 rm -f conftest*
19936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19937 echo "$ac_t""yes" 1>&6
19938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19939 cat >> confdefs.h <<EOF
19940 #define $ac_tr_func 1
19943 else
19944 echo "$ac_t""no" 1>&6
19946 done
19954 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19955 echo "configure:19956: checking for _float trig functions" >&5
19956 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19957 echo $ac_n "(cached) $ac_c" 1>&6
19958 else
19961 ac_ext=C
19962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19966 cross_compiling=$ac_cv_prog_cxx_cross
19968 cat > conftest.$ac_ext <<EOF
19969 #line 19970 "configure"
19970 #include "confdefs.h"
19971 #include <math.h>
19972 int main() {
19973 `for x in _acosf _asinf _atanf \
19974 _cosf _sinf _tanf \
19975 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19976 ; return 0; }
19978 if { (eval echo configure:19979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19979 rm -rf conftest*
19980 glibcpp_cv_func__float_trig_use=yes
19981 else
19982 echo "configure: failed program was:" >&5
19983 cat conftest.$ac_ext >&5
19984 rm -rf conftest*
19985 glibcpp_cv_func__float_trig_use=no
19987 rm -f conftest*
19988 ac_ext=c
19989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19990 ac_cpp='$CPP $CPPFLAGS'
19991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19993 cross_compiling=$ac_cv_prog_cc_cross
19997 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19998 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19999 for ac_func in _acosf _asinf _atanf \
20000 _cosf _sinf _tanf \
20001 _coshf _sinhf _tanhf
20003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20004 echo "configure:20005: checking for $ac_func" >&5
20005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20006 echo $ac_n "(cached) $ac_c" 1>&6
20007 else
20008 cat > conftest.$ac_ext <<EOF
20009 #line 20010 "configure"
20010 #include "confdefs.h"
20011 /* System header to define __stub macros and hopefully few prototypes,
20012 which can conflict with char $ac_func(); below. */
20013 #include <assert.h>
20014 /* Override any gcc2 internal prototype to avoid an error. */
20015 /* We use char because int might match the return type of a gcc2
20016 builtin and then its argument prototype would still apply. */
20017 char $ac_func();
20019 int main() {
20021 /* The GNU C library defines this for functions which it implements
20022 to always fail with ENOSYS. Some functions are actually named
20023 something starting with __ and the normal name is an alias. */
20024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20025 choke me
20026 #else
20027 $ac_func();
20028 #endif
20030 ; return 0; }
20032 if { (eval echo configure:20033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20033 rm -rf conftest*
20034 eval "ac_cv_func_$ac_func=yes"
20035 else
20036 echo "configure: failed program was:" >&5
20037 cat conftest.$ac_ext >&5
20038 rm -rf conftest*
20039 eval "ac_cv_func_$ac_func=no"
20041 rm -f conftest*
20044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20045 echo "$ac_t""yes" 1>&6
20046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20047 cat >> confdefs.h <<EOF
20048 #define $ac_tr_func 1
20051 else
20052 echo "$ac_t""no" 1>&6
20054 done
20059 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20060 echo "configure:20061: checking for _float round functions" >&5
20061 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20062 echo $ac_n "(cached) $ac_c" 1>&6
20063 else
20066 ac_ext=C
20067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20068 ac_cpp='$CXXCPP $CPPFLAGS'
20069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20071 cross_compiling=$ac_cv_prog_cxx_cross
20073 cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20076 #include <math.h>
20077 int main() {
20078 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20079 ; return 0; }
20081 if { (eval echo configure:20082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20082 rm -rf conftest*
20083 glibcpp_cv_func__float_round_use=yes
20084 else
20085 echo "configure: failed program was:" >&5
20086 cat conftest.$ac_ext >&5
20087 rm -rf conftest*
20088 glibcpp_cv_func__float_round_use=no
20090 rm -f conftest*
20091 ac_ext=c
20092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20096 cross_compiling=$ac_cv_prog_cc_cross
20100 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20101 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20102 for ac_func in _ceilf _floorf
20104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20105 echo "configure:20106: checking for $ac_func" >&5
20106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20107 echo $ac_n "(cached) $ac_c" 1>&6
20108 else
20109 cat > conftest.$ac_ext <<EOF
20110 #line 20111 "configure"
20111 #include "confdefs.h"
20112 /* System header to define __stub macros and hopefully few prototypes,
20113 which can conflict with char $ac_func(); below. */
20114 #include <assert.h>
20115 /* Override any gcc2 internal prototype to avoid an error. */
20116 /* We use char because int might match the return type of a gcc2
20117 builtin and then its argument prototype would still apply. */
20118 char $ac_func();
20120 int main() {
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20126 choke me
20127 #else
20128 $ac_func();
20129 #endif
20131 ; return 0; }
20133 if { (eval echo configure:20134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20134 rm -rf conftest*
20135 eval "ac_cv_func_$ac_func=yes"
20136 else
20137 echo "configure: failed program was:" >&5
20138 cat conftest.$ac_ext >&5
20139 rm -rf conftest*
20140 eval "ac_cv_func_$ac_func=no"
20142 rm -f conftest*
20145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20146 echo "$ac_t""yes" 1>&6
20147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20148 cat >> confdefs.h <<EOF
20149 #define $ac_tr_func 1
20152 else
20153 echo "$ac_t""no" 1>&6
20155 done
20161 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20162 echo "configure:20163: checking for _long double trig functions" >&5
20163 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20164 echo $ac_n "(cached) $ac_c" 1>&6
20165 else
20168 ac_ext=C
20169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20170 ac_cpp='$CXXCPP $CPPFLAGS'
20171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20173 cross_compiling=$ac_cv_prog_cxx_cross
20175 cat > conftest.$ac_ext <<EOF
20176 #line 20177 "configure"
20177 #include "confdefs.h"
20178 #include <math.h>
20179 int main() {
20180 `for x in _acosl _asinl _atanl \
20181 _cosl _sinl _tanl \
20182 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20183 ; return 0; }
20185 if { (eval echo configure:20186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20186 rm -rf conftest*
20187 glibcpp_cv_func__long_double_trig_use=yes
20188 else
20189 echo "configure: failed program was:" >&5
20190 cat conftest.$ac_ext >&5
20191 rm -rf conftest*
20192 glibcpp_cv_func__long_double_trig_use=no
20194 rm -f conftest*
20195 ac_ext=c
20196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20197 ac_cpp='$CPP $CPPFLAGS'
20198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20200 cross_compiling=$ac_cv_prog_cc_cross
20204 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20205 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20206 for ac_func in _acosl _asinl _atanl \
20207 _cosl _sinl _tanl \
20208 _coshl _sinhl _tanhl
20210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20211 echo "configure:20212: checking for $ac_func" >&5
20212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20213 echo $ac_n "(cached) $ac_c" 1>&6
20214 else
20215 cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20218 /* System header to define __stub macros and hopefully few prototypes,
20219 which can conflict with char $ac_func(); below. */
20220 #include <assert.h>
20221 /* Override any gcc2 internal prototype to avoid an error. */
20222 /* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
20224 char $ac_func();
20226 int main() {
20228 /* The GNU C library defines this for functions which it implements
20229 to always fail with ENOSYS. Some functions are actually named
20230 something starting with __ and the normal name is an alias. */
20231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20232 choke me
20233 #else
20234 $ac_func();
20235 #endif
20237 ; return 0; }
20239 if { (eval echo configure:20240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20240 rm -rf conftest*
20241 eval "ac_cv_func_$ac_func=yes"
20242 else
20243 echo "configure: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20245 rm -rf conftest*
20246 eval "ac_cv_func_$ac_func=no"
20248 rm -f conftest*
20251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20252 echo "$ac_t""yes" 1>&6
20253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20254 cat >> confdefs.h <<EOF
20255 #define $ac_tr_func 1
20258 else
20259 echo "$ac_t""no" 1>&6
20261 done
20266 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20267 echo "configure:20268: checking for _long double round functions" >&5
20268 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20269 echo $ac_n "(cached) $ac_c" 1>&6
20270 else
20273 ac_ext=C
20274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20275 ac_cpp='$CXXCPP $CPPFLAGS'
20276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20278 cross_compiling=$ac_cv_prog_cxx_cross
20280 cat > conftest.$ac_ext <<EOF
20281 #line 20282 "configure"
20282 #include "confdefs.h"
20283 #include <math.h>
20284 int main() {
20285 `for x in _ceill _floorl; do echo "$x (0);"; done`
20286 ; return 0; }
20288 if { (eval echo configure:20289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20289 rm -rf conftest*
20290 glibcpp_cv_func__long_double_round_use=yes
20291 else
20292 echo "configure: failed program was:" >&5
20293 cat conftest.$ac_ext >&5
20294 rm -rf conftest*
20295 glibcpp_cv_func__long_double_round_use=no
20297 rm -f conftest*
20298 ac_ext=c
20299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20300 ac_cpp='$CPP $CPPFLAGS'
20301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20303 cross_compiling=$ac_cv_prog_cc_cross
20307 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20308 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20309 for ac_func in _ceill _floorl
20311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20312 echo "configure:20313: checking for $ac_func" >&5
20313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20314 echo $ac_n "(cached) $ac_c" 1>&6
20315 else
20316 cat > conftest.$ac_ext <<EOF
20317 #line 20318 "configure"
20318 #include "confdefs.h"
20319 /* System header to define __stub macros and hopefully few prototypes,
20320 which can conflict with char $ac_func(); below. */
20321 #include <assert.h>
20322 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20325 char $ac_func();
20327 int main() {
20329 /* The GNU C library defines this for functions which it implements
20330 to always fail with ENOSYS. Some functions are actually named
20331 something starting with __ and the normal name is an alias. */
20332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20333 choke me
20334 #else
20335 $ac_func();
20336 #endif
20338 ; return 0; }
20340 if { (eval echo configure:20341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20341 rm -rf conftest*
20342 eval "ac_cv_func_$ac_func=yes"
20343 else
20344 echo "configure: failed program was:" >&5
20345 cat conftest.$ac_ext >&5
20346 rm -rf conftest*
20347 eval "ac_cv_func_$ac_func=no"
20349 rm -f conftest*
20352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20353 echo "$ac_t""yes" 1>&6
20354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20355 cat >> confdefs.h <<EOF
20356 #define $ac_tr_func 1
20359 else
20360 echo "$ac_t""no" 1>&6
20362 done
20367 LIBS="$ac_save_LIBS"
20368 CXXFLAGS="$ac_save_CXXFLAGS"
20371 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20372 echo "configure:20373: checking for main in -lm" >&5
20373 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
20376 else
20377 ac_save_LIBS="$LIBS"
20378 LIBS="-lm $LIBS"
20379 cat > conftest.$ac_ext <<EOF
20380 #line 20381 "configure"
20381 #include "confdefs.h"
20383 int main() {
20384 main()
20385 ; return 0; }
20387 if { (eval echo configure:20388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20388 rm -rf conftest*
20389 eval "ac_cv_lib_$ac_lib_var=yes"
20390 else
20391 echo "configure: failed program was:" >&5
20392 cat conftest.$ac_ext >&5
20393 rm -rf conftest*
20394 eval "ac_cv_lib_$ac_lib_var=no"
20396 rm -f conftest*
20397 LIBS="$ac_save_LIBS"
20400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20401 echo "$ac_t""yes" 1>&6
20402 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20404 cat >> confdefs.h <<EOF
20405 #define $ac_tr_lib 1
20408 LIBS="-lm $LIBS"
20410 else
20411 echo "$ac_t""no" 1>&6
20414 for ac_func in nan copysignf
20416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20417 echo "configure:20418: checking for $ac_func" >&5
20418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20419 echo $ac_n "(cached) $ac_c" 1>&6
20420 else
20421 cat > conftest.$ac_ext <<EOF
20422 #line 20423 "configure"
20423 #include "confdefs.h"
20424 /* System header to define __stub macros and hopefully few prototypes,
20425 which can conflict with char $ac_func(); below. */
20426 #include <assert.h>
20427 /* Override any gcc2 internal prototype to avoid an error. */
20428 /* We use char because int might match the return type of a gcc2
20429 builtin and then its argument prototype would still apply. */
20430 char $ac_func();
20432 int main() {
20434 /* The GNU C library defines this for functions which it implements
20435 to always fail with ENOSYS. Some functions are actually named
20436 something starting with __ and the normal name is an alias. */
20437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20438 choke me
20439 #else
20440 $ac_func();
20441 #endif
20443 ; return 0; }
20445 if { (eval echo configure:20446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20446 rm -rf conftest*
20447 eval "ac_cv_func_$ac_func=yes"
20448 else
20449 echo "configure: failed program was:" >&5
20450 cat conftest.$ac_ext >&5
20451 rm -rf conftest*
20452 eval "ac_cv_func_$ac_func=no"
20454 rm -f conftest*
20457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20458 echo "$ac_t""yes" 1>&6
20459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20460 cat >> confdefs.h <<EOF
20461 #define $ac_tr_func 1
20464 else
20465 echo "$ac_t""no" 1>&6
20466 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20468 done
20471 for ac_func in __signbit
20473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20474 echo "configure:20475: checking for $ac_func" >&5
20475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20476 echo $ac_n "(cached) $ac_c" 1>&6
20477 else
20478 cat > conftest.$ac_ext <<EOF
20479 #line 20480 "configure"
20480 #include "confdefs.h"
20481 /* System header to define __stub macros and hopefully few prototypes,
20482 which can conflict with char $ac_func(); below. */
20483 #include <assert.h>
20484 /* Override any gcc2 internal prototype to avoid an error. */
20485 /* We use char because int might match the return type of a gcc2
20486 builtin and then its argument prototype would still apply. */
20487 char $ac_func();
20489 int main() {
20491 /* The GNU C library defines this for functions which it implements
20492 to always fail with ENOSYS. Some functions are actually named
20493 something starting with __ and the normal name is an alias. */
20494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20495 choke me
20496 #else
20497 $ac_func();
20498 #endif
20500 ; return 0; }
20502 if { (eval echo configure:20503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20503 rm -rf conftest*
20504 eval "ac_cv_func_$ac_func=yes"
20505 else
20506 echo "configure: failed program was:" >&5
20507 cat conftest.$ac_ext >&5
20508 rm -rf conftest*
20509 eval "ac_cv_func_$ac_func=no"
20511 rm -f conftest*
20514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20515 echo "$ac_t""yes" 1>&6
20516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20517 cat >> confdefs.h <<EOF
20518 #define $ac_tr_func 1
20521 else
20522 echo "$ac_t""no" 1>&6
20523 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20525 done
20527 for ac_func in __signbitf
20529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20530 echo "configure:20531: checking for $ac_func" >&5
20531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20532 echo $ac_n "(cached) $ac_c" 1>&6
20533 else
20534 cat > conftest.$ac_ext <<EOF
20535 #line 20536 "configure"
20536 #include "confdefs.h"
20537 /* System header to define __stub macros and hopefully few prototypes,
20538 which can conflict with char $ac_func(); below. */
20539 #include <assert.h>
20540 /* Override any gcc2 internal prototype to avoid an error. */
20541 /* We use char because int might match the return type of a gcc2
20542 builtin and then its argument prototype would still apply. */
20543 char $ac_func();
20545 int main() {
20547 /* The GNU C library defines this for functions which it implements
20548 to always fail with ENOSYS. Some functions are actually named
20549 something starting with __ and the normal name is an alias. */
20550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20551 choke me
20552 #else
20553 $ac_func();
20554 #endif
20556 ; return 0; }
20558 if { (eval echo configure:20559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20559 rm -rf conftest*
20560 eval "ac_cv_func_$ac_func=yes"
20561 else
20562 echo "configure: failed program was:" >&5
20563 cat conftest.$ac_ext >&5
20564 rm -rf conftest*
20565 eval "ac_cv_func_$ac_func=no"
20567 rm -f conftest*
20570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20571 echo "$ac_t""yes" 1>&6
20572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20573 cat >> confdefs.h <<EOF
20574 #define $ac_tr_func 1
20577 else
20578 echo "$ac_t""no" 1>&6
20579 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20581 done
20584 if test x$ac_cv_func_copysignl = x"yes"; then
20585 for ac_func in __signbitl
20587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20588 echo "configure:20589: checking for $ac_func" >&5
20589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20590 echo $ac_n "(cached) $ac_c" 1>&6
20591 else
20592 cat > conftest.$ac_ext <<EOF
20593 #line 20594 "configure"
20594 #include "confdefs.h"
20595 /* System header to define __stub macros and hopefully few prototypes,
20596 which can conflict with char $ac_func(); below. */
20597 #include <assert.h>
20598 /* Override any gcc2 internal prototype to avoid an error. */
20599 /* We use char because int might match the return type of a gcc2
20600 builtin and then its argument prototype would still apply. */
20601 char $ac_func();
20603 int main() {
20605 /* The GNU C library defines this for functions which it implements
20606 to always fail with ENOSYS. Some functions are actually named
20607 something starting with __ and the normal name is an alias. */
20608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20609 choke me
20610 #else
20611 $ac_func();
20612 #endif
20614 ; return 0; }
20616 if { (eval echo configure:20617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20617 rm -rf conftest*
20618 eval "ac_cv_func_$ac_func=yes"
20619 else
20620 echo "configure: failed program was:" >&5
20621 cat conftest.$ac_ext >&5
20622 rm -rf conftest*
20623 eval "ac_cv_func_$ac_func=no"
20625 rm -f conftest*
20628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20629 echo "$ac_t""yes" 1>&6
20630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20631 cat >> confdefs.h <<EOF
20632 #define $ac_tr_func 1
20635 else
20636 echo "$ac_t""no" 1>&6
20637 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20639 done
20647 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20648 echo "configure:20649: checking for mbstate_t" >&5
20649 cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20652 #include <wchar.h>
20653 int main() {
20654 mbstate_t teststate;
20655 ; return 0; }
20657 if { (eval echo configure:20658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20658 rm -rf conftest*
20659 have_mbstate_t=yes
20660 else
20661 echo "configure: failed program was:" >&5
20662 cat conftest.$ac_ext >&5
20663 rm -rf conftest*
20664 have_mbstate_t=no
20666 rm -f conftest*
20667 echo "$ac_t""$have_mbstate_t" 1>&6
20668 if test x"$have_mbstate_t" = xyes; then
20669 cat >> confdefs.h <<\EOF
20670 #define HAVE_MBSTATE_T 1
20675 for ac_hdr in wchar.h
20677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20679 echo "configure:20680: checking for $ac_hdr" >&5
20680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20681 echo $ac_n "(cached) $ac_c" 1>&6
20682 else
20683 cat > conftest.$ac_ext <<EOF
20684 #line 20685 "configure"
20685 #include "confdefs.h"
20686 #include <$ac_hdr>
20688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20689 { (eval echo configure:20690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20691 if test -z "$ac_err"; then
20692 rm -rf conftest*
20693 eval "ac_cv_header_$ac_safe=yes"
20694 else
20695 echo "$ac_err" >&5
20696 echo "configure: failed program was:" >&5
20697 cat conftest.$ac_ext >&5
20698 rm -rf conftest*
20699 eval "ac_cv_header_$ac_safe=no"
20701 rm -f conftest*
20703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20704 echo "$ac_t""yes" 1>&6
20705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20706 cat >> confdefs.h <<EOF
20707 #define $ac_tr_hdr 1
20709 ac_has_wchar_h=yes
20710 else
20711 echo "$ac_t""no" 1>&6
20712 ac_has_wchar_h=no
20714 done
20716 for ac_hdr in wctype.h
20718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20720 echo "configure:20721: checking for $ac_hdr" >&5
20721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20722 echo $ac_n "(cached) $ac_c" 1>&6
20723 else
20724 cat > conftest.$ac_ext <<EOF
20725 #line 20726 "configure"
20726 #include "confdefs.h"
20727 #include <$ac_hdr>
20729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20730 { (eval echo configure:20731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20732 if test -z "$ac_err"; then
20733 rm -rf conftest*
20734 eval "ac_cv_header_$ac_safe=yes"
20735 else
20736 echo "$ac_err" >&5
20737 echo "configure: failed program was:" >&5
20738 cat conftest.$ac_ext >&5
20739 rm -rf conftest*
20740 eval "ac_cv_header_$ac_safe=no"
20742 rm -f conftest*
20744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20745 echo "$ac_t""yes" 1>&6
20746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20747 cat >> confdefs.h <<EOF
20748 #define $ac_tr_hdr 1
20750 ac_has_wctype_h=yes
20751 else
20752 echo "$ac_t""no" 1>&6
20753 ac_has_wctype_h=no
20755 done
20758 if test x"$ac_has_wchar_h" = xyes &&
20759 test x"$ac_has_wctype_h" = xyes &&
20760 test x"$enable_c_mbchar" != xno; then
20762 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20763 echo "configure:20764: checking for WCHAR_MIN and WCHAR_MAX" >&5
20764 cat > conftest.$ac_ext <<EOF
20765 #line 20766 "configure"
20766 #include "confdefs.h"
20767 #include <wchar.h>
20768 int main() {
20769 int i = WCHAR_MIN; int j = WCHAR_MAX;
20770 ; return 0; }
20772 if { (eval echo configure:20773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20773 rm -rf conftest*
20774 has_wchar_minmax=yes
20775 else
20776 echo "configure: failed program was:" >&5
20777 cat conftest.$ac_ext >&5
20778 rm -rf conftest*
20779 has_wchar_minmax=no
20781 rm -f conftest*
20782 echo "$ac_t""$has_wchar_minmax" 1>&6
20784 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20785 echo "configure:20786: checking for WEOF" >&5
20786 cat > conftest.$ac_ext <<EOF
20787 #line 20788 "configure"
20788 #include "confdefs.h"
20790 #include <wchar.h>
20791 #include <stddef.h>
20792 int main() {
20793 wint_t i = WEOF;
20794 ; return 0; }
20796 if { (eval echo configure:20797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20797 rm -rf conftest*
20798 has_weof=yes
20799 else
20800 echo "configure: failed program was:" >&5
20801 cat conftest.$ac_ext >&5
20802 rm -rf conftest*
20803 has_weof=no
20805 rm -f conftest*
20806 echo "$ac_t""$has_weof" 1>&6
20808 ac_wfuncs=yes
20809 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20812 echo "configure:20813: checking for $ac_func" >&5
20813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20814 echo $ac_n "(cached) $ac_c" 1>&6
20815 else
20816 cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 /* System header to define __stub macros and hopefully few prototypes,
20820 which can conflict with char $ac_func(); below. */
20821 #include <assert.h>
20822 /* Override any gcc2 internal prototype to avoid an error. */
20823 /* We use char because int might match the return type of a gcc2
20824 builtin and then its argument prototype would still apply. */
20825 char $ac_func();
20827 int main() {
20829 /* The GNU C library defines this for functions which it implements
20830 to always fail with ENOSYS. Some functions are actually named
20831 something starting with __ and the normal name is an alias. */
20832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20833 choke me
20834 #else
20835 $ac_func();
20836 #endif
20838 ; return 0; }
20840 if { (eval echo configure:20841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20841 rm -rf conftest*
20842 eval "ac_cv_func_$ac_func=yes"
20843 else
20844 echo "configure: failed program was:" >&5
20845 cat conftest.$ac_ext >&5
20846 rm -rf conftest*
20847 eval "ac_cv_func_$ac_func=no"
20849 rm -f conftest*
20852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20853 echo "$ac_t""yes" 1>&6
20854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20855 cat >> confdefs.h <<EOF
20856 #define $ac_tr_func 1
20859 else
20860 echo "$ac_t""no" 1>&6
20862 ac_wfuncs=no
20864 done
20867 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20868 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20869 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20870 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20871 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20872 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20875 echo "configure:20876: checking for $ac_func" >&5
20876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20877 echo $ac_n "(cached) $ac_c" 1>&6
20878 else
20879 cat > conftest.$ac_ext <<EOF
20880 #line 20881 "configure"
20881 #include "confdefs.h"
20882 /* System header to define __stub macros and hopefully few prototypes,
20883 which can conflict with char $ac_func(); below. */
20884 #include <assert.h>
20885 /* Override any gcc2 internal prototype to avoid an error. */
20886 /* We use char because int might match the return type of a gcc2
20887 builtin and then its argument prototype would still apply. */
20888 char $ac_func();
20890 int main() {
20892 /* The GNU C library defines this for functions which it implements
20893 to always fail with ENOSYS. Some functions are actually named
20894 something starting with __ and the normal name is an alias. */
20895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20896 choke me
20897 #else
20898 $ac_func();
20899 #endif
20901 ; return 0; }
20903 if { (eval echo configure:20904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20904 rm -rf conftest*
20905 eval "ac_cv_func_$ac_func=yes"
20906 else
20907 echo "configure: failed program was:" >&5
20908 cat conftest.$ac_ext >&5
20909 rm -rf conftest*
20910 eval "ac_cv_func_$ac_func=no"
20912 rm -f conftest*
20915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20916 echo "$ac_t""yes" 1>&6
20917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20918 cat >> confdefs.h <<EOF
20919 #define $ac_tr_func 1
20922 else
20923 echo "$ac_t""no" 1>&6
20925 ac_wfuncs=no
20927 done
20930 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20931 echo "configure:20932: checking for ISO C99 wchar_t support" >&5
20932 if test x"$has_weof" = xyes &&
20933 test x"$has_wchar_minmax" = xyes &&
20934 test x"$ac_wfuncs" = xyes; then
20935 ac_isoC99_wchar_t=yes
20936 else
20937 ac_isoC99_wchar_t=no
20939 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20941 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20942 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20943 echo "configure:20944: checking for iconv.h" >&5
20944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20945 echo $ac_n "(cached) $ac_c" 1>&6
20946 else
20947 cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 #include <iconv.h>
20952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20953 { (eval echo configure:20954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20955 if test -z "$ac_err"; then
20956 rm -rf conftest*
20957 eval "ac_cv_header_$ac_safe=yes"
20958 else
20959 echo "$ac_err" >&5
20960 echo "configure: failed program was:" >&5
20961 cat conftest.$ac_ext >&5
20962 rm -rf conftest*
20963 eval "ac_cv_header_$ac_safe=no"
20965 rm -f conftest*
20967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20968 echo "$ac_t""yes" 1>&6
20969 ac_has_iconv_h=yes
20970 else
20971 echo "$ac_t""no" 1>&6
20972 ac_has_iconv_h=no
20975 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20976 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20977 echo "configure:20978: checking for langinfo.h" >&5
20978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20979 echo $ac_n "(cached) $ac_c" 1>&6
20980 else
20981 cat > conftest.$ac_ext <<EOF
20982 #line 20983 "configure"
20983 #include "confdefs.h"
20984 #include <langinfo.h>
20986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20987 { (eval echo configure:20988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20989 if test -z "$ac_err"; then
20990 rm -rf conftest*
20991 eval "ac_cv_header_$ac_safe=yes"
20992 else
20993 echo "$ac_err" >&5
20994 echo "configure: failed program was:" >&5
20995 cat conftest.$ac_ext >&5
20996 rm -rf conftest*
20997 eval "ac_cv_header_$ac_safe=no"
20999 rm -f conftest*
21001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21002 echo "$ac_t""yes" 1>&6
21003 ac_has_langinfo_h=yes
21004 else
21005 echo "$ac_t""no" 1>&6
21006 ac_has_langinfo_h=no
21010 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21011 echo "configure:21012: checking for iconv in -liconv" >&5
21012 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21014 echo $ac_n "(cached) $ac_c" 1>&6
21015 else
21016 ac_save_LIBS="$LIBS"
21017 LIBS="-liconv $LIBS"
21018 cat > conftest.$ac_ext <<EOF
21019 #line 21020 "configure"
21020 #include "confdefs.h"
21021 /* Override any gcc2 internal prototype to avoid an error. */
21022 /* We use char because int might match the return type of a gcc2
21023 builtin and then its argument prototype would still apply. */
21024 char iconv();
21026 int main() {
21027 iconv()
21028 ; return 0; }
21030 if { (eval echo configure:21031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21031 rm -rf conftest*
21032 eval "ac_cv_lib_$ac_lib_var=yes"
21033 else
21034 echo "configure: failed program was:" >&5
21035 cat conftest.$ac_ext >&5
21036 rm -rf conftest*
21037 eval "ac_cv_lib_$ac_lib_var=no"
21039 rm -f conftest*
21040 LIBS="$ac_save_LIBS"
21043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21044 echo "$ac_t""yes" 1>&6
21045 libiconv="-liconv"
21046 else
21047 echo "$ac_t""no" 1>&6
21050 ac_save_LIBS="$LIBS"
21051 LIBS="$LIBS $libiconv"
21053 for ac_func in iconv_open iconv_close iconv nl_langinfo
21055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21056 echo "configure:21057: checking for $ac_func" >&5
21057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21058 echo $ac_n "(cached) $ac_c" 1>&6
21059 else
21060 cat > conftest.$ac_ext <<EOF
21061 #line 21062 "configure"
21062 #include "confdefs.h"
21063 /* System header to define __stub macros and hopefully few prototypes,
21064 which can conflict with char $ac_func(); below. */
21065 #include <assert.h>
21066 /* Override any gcc2 internal prototype to avoid an error. */
21067 /* We use char because int might match the return type of a gcc2
21068 builtin and then its argument prototype would still apply. */
21069 char $ac_func();
21071 int main() {
21073 /* The GNU C library defines this for functions which it implements
21074 to always fail with ENOSYS. Some functions are actually named
21075 something starting with __ and the normal name is an alias. */
21076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21077 choke me
21078 #else
21079 $ac_func();
21080 #endif
21082 ; return 0; }
21084 if { (eval echo configure:21085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21085 rm -rf conftest*
21086 eval "ac_cv_func_$ac_func=yes"
21087 else
21088 echo "configure: failed program was:" >&5
21089 cat conftest.$ac_ext >&5
21090 rm -rf conftest*
21091 eval "ac_cv_func_$ac_func=no"
21093 rm -f conftest*
21096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21097 echo "$ac_t""yes" 1>&6
21098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21099 cat >> confdefs.h <<EOF
21100 #define $ac_tr_func 1
21103 ac_XPG2funcs=yes
21104 else
21105 echo "$ac_t""no" 1>&6
21106 ac_XPG2funcs=no
21108 done
21111 LIBS="$ac_save_LIBS"
21113 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21114 echo "configure:21115: checking for XPG2 wchar_t support" >&5
21115 if test x"$ac_has_iconv_h" = xyes &&
21116 test x"$ac_has_langinfo_h" = xyes &&
21117 test x"$ac_XPG2funcs" = xyes; then
21118 ac_XPG2_wchar_t=yes
21119 else
21120 ac_XPG2_wchar_t=no
21122 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21124 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21125 echo "configure:21126: checking for enabled wchar_t specializations" >&5
21126 if test x"$ac_isoC99_wchar_t" = xyes &&
21127 test x"$ac_XPG2_wchar_t" = xyes; then
21128 cat >> confdefs.h <<\EOF
21129 #define _GLIBCPP_USE_WCHAR_T 1
21132 echo "$ac_t"""yes"" 1>&6
21133 else
21134 echo "$ac_t"""no"" 1>&6
21136 else
21137 echo "configure: warning: wchar_t support disabled." 1>&2
21141 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21142 ac_save_CXXFLAGS="$CXXFLAGS"
21143 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21146 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21147 echo "configure:21148: checking for strtold declaration" >&5
21148 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21149 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21150 echo $ac_n "(cached) $ac_c" 1>&6
21151 else
21154 ac_ext=C
21155 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21158 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21159 cross_compiling=$ac_cv_prog_cxx_cross
21161 cat > conftest.$ac_ext <<EOF
21162 #line 21163 "configure"
21163 #include "confdefs.h"
21164 #include <stdlib.h>
21165 int main() {
21166 strtold(0, 0);
21167 ; return 0; }
21169 if { (eval echo configure:21170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21170 rm -rf conftest*
21171 glibcpp_cv_func_strtold_use=yes
21172 else
21173 echo "configure: failed program was:" >&5
21174 cat conftest.$ac_ext >&5
21175 rm -rf conftest*
21176 glibcpp_cv_func_strtold_use=no
21178 rm -f conftest*
21179 ac_ext=c
21180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21184 cross_compiling=$ac_cv_prog_cc_cross
21190 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21191 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21192 for ac_func in strtold
21194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21195 echo "configure:21196: checking for $ac_func" >&5
21196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21197 echo $ac_n "(cached) $ac_c" 1>&6
21198 else
21199 cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 /* System header to define __stub macros and hopefully few prototypes,
21203 which can conflict with char $ac_func(); below. */
21204 #include <assert.h>
21205 /* Override any gcc2 internal prototype to avoid an error. */
21206 /* We use char because int might match the return type of a gcc2
21207 builtin and then its argument prototype would still apply. */
21208 char $ac_func();
21210 int main() {
21212 /* The GNU C library defines this for functions which it implements
21213 to always fail with ENOSYS. Some functions are actually named
21214 something starting with __ and the normal name is an alias. */
21215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21216 choke me
21217 #else
21218 $ac_func();
21219 #endif
21221 ; return 0; }
21223 if { (eval echo configure:21224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21224 rm -rf conftest*
21225 eval "ac_cv_func_$ac_func=yes"
21226 else
21227 echo "configure: failed program was:" >&5
21228 cat conftest.$ac_ext >&5
21229 rm -rf conftest*
21230 eval "ac_cv_func_$ac_func=no"
21232 rm -f conftest*
21235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21236 echo "$ac_t""yes" 1>&6
21237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21238 cat >> confdefs.h <<EOF
21239 #define $ac_tr_func 1
21242 else
21243 echo "$ac_t""no" 1>&6
21245 done
21250 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21251 echo "configure:21252: checking for strtof declaration" >&5
21252 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21253 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21254 echo $ac_n "(cached) $ac_c" 1>&6
21255 else
21258 ac_ext=C
21259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21260 ac_cpp='$CXXCPP $CPPFLAGS'
21261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21263 cross_compiling=$ac_cv_prog_cxx_cross
21265 cat > conftest.$ac_ext <<EOF
21266 #line 21267 "configure"
21267 #include "confdefs.h"
21268 #include <stdlib.h>
21269 int main() {
21270 strtof(0, 0);
21271 ; return 0; }
21273 if { (eval echo configure:21274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21274 rm -rf conftest*
21275 glibcpp_cv_func_strtof_use=yes
21276 else
21277 echo "configure: failed program was:" >&5
21278 cat conftest.$ac_ext >&5
21279 rm -rf conftest*
21280 glibcpp_cv_func_strtof_use=no
21282 rm -f conftest*
21283 ac_ext=c
21284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21285 ac_cpp='$CPP $CPPFLAGS'
21286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21288 cross_compiling=$ac_cv_prog_cc_cross
21294 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21295 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21296 for ac_func in strtof
21298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21299 echo "configure:21300: checking for $ac_func" >&5
21300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21301 echo $ac_n "(cached) $ac_c" 1>&6
21302 else
21303 cat > conftest.$ac_ext <<EOF
21304 #line 21305 "configure"
21305 #include "confdefs.h"
21306 /* System header to define __stub macros and hopefully few prototypes,
21307 which can conflict with char $ac_func(); below. */
21308 #include <assert.h>
21309 /* Override any gcc2 internal prototype to avoid an error. */
21310 /* We use char because int might match the return type of a gcc2
21311 builtin and then its argument prototype would still apply. */
21312 char $ac_func();
21314 int main() {
21316 /* The GNU C library defines this for functions which it implements
21317 to always fail with ENOSYS. Some functions are actually named
21318 something starting with __ and the normal name is an alias. */
21319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21320 choke me
21321 #else
21322 $ac_func();
21323 #endif
21325 ; return 0; }
21327 if { (eval echo configure:21328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21328 rm -rf conftest*
21329 eval "ac_cv_func_$ac_func=yes"
21330 else
21331 echo "configure: failed program was:" >&5
21332 cat conftest.$ac_ext >&5
21333 rm -rf conftest*
21334 eval "ac_cv_func_$ac_func=no"
21336 rm -f conftest*
21339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21340 echo "$ac_t""yes" 1>&6
21341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21342 cat >> confdefs.h <<EOF
21343 #define $ac_tr_func 1
21346 else
21347 echo "$ac_t""no" 1>&6
21349 done
21353 for ac_func in drand48
21355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21356 echo "configure:21357: checking for $ac_func" >&5
21357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21358 echo $ac_n "(cached) $ac_c" 1>&6
21359 else
21360 cat > conftest.$ac_ext <<EOF
21361 #line 21362 "configure"
21362 #include "confdefs.h"
21363 /* System header to define __stub macros and hopefully few prototypes,
21364 which can conflict with char $ac_func(); below. */
21365 #include <assert.h>
21366 /* Override any gcc2 internal prototype to avoid an error. */
21367 /* We use char because int might match the return type of a gcc2
21368 builtin and then its argument prototype would still apply. */
21369 char $ac_func();
21371 int main() {
21373 /* The GNU C library defines this for functions which it implements
21374 to always fail with ENOSYS. Some functions are actually named
21375 something starting with __ and the normal name is an alias. */
21376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21377 choke me
21378 #else
21379 $ac_func();
21380 #endif
21382 ; return 0; }
21384 if { (eval echo configure:21385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21385 rm -rf conftest*
21386 eval "ac_cv_func_$ac_func=yes"
21387 else
21388 echo "configure: failed program was:" >&5
21389 cat conftest.$ac_ext >&5
21390 rm -rf conftest*
21391 eval "ac_cv_func_$ac_func=no"
21393 rm -f conftest*
21396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21397 echo "$ac_t""yes" 1>&6
21398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21399 cat >> confdefs.h <<EOF
21400 #define $ac_tr_func 1
21403 else
21404 echo "$ac_t""no" 1>&6
21406 done
21409 CXXFLAGS="$ac_save_CXXFLAGS"
21412 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21413 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21414 echo "configure:21415: checking for locale.h" >&5
21415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21416 echo $ac_n "(cached) $ac_c" 1>&6
21417 else
21418 cat > conftest.$ac_ext <<EOF
21419 #line 21420 "configure"
21420 #include "confdefs.h"
21421 #include <locale.h>
21423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21424 { (eval echo configure:21425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21426 if test -z "$ac_err"; then
21427 rm -rf conftest*
21428 eval "ac_cv_header_$ac_safe=yes"
21429 else
21430 echo "$ac_err" >&5
21431 echo "configure: failed program was:" >&5
21432 cat conftest.$ac_ext >&5
21433 rm -rf conftest*
21434 eval "ac_cv_header_$ac_safe=no"
21436 rm -f conftest*
21438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21439 echo "$ac_t""yes" 1>&6
21441 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21442 echo "configure:21443: checking for LC_MESSAGES" >&5
21443 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21444 echo $ac_n "(cached) $ac_c" 1>&6
21445 else
21446 cat > conftest.$ac_ext <<EOF
21447 #line 21448 "configure"
21448 #include "confdefs.h"
21449 #include <locale.h>
21450 int main() {
21451 return LC_MESSAGES
21452 ; return 0; }
21454 if { (eval echo configure:21455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21455 rm -rf conftest*
21456 ac_cv_val_LC_MESSAGES=yes
21457 else
21458 echo "configure: failed program was:" >&5
21459 cat conftest.$ac_ext >&5
21460 rm -rf conftest*
21461 ac_cv_val_LC_MESSAGES=no
21463 rm -f conftest*
21466 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21467 if test $ac_cv_val_LC_MESSAGES = yes; then
21468 cat >> confdefs.h <<\EOF
21469 #define HAVE_LC_MESSAGES 1
21474 else
21475 echo "$ac_t""no" 1>&6
21480 cat > conftest.$ac_ext <<EOF
21481 #line 21482 "configure"
21482 #include "confdefs.h"
21484 #include <setjmp.h>
21486 int main() {
21487 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21488 ; return 0; }
21490 if { (eval echo configure:21491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491 rm -rf conftest*
21492 cat >> confdefs.h <<\EOF
21493 #define HAVE_SIGSETJMP 1
21497 else
21498 echo "configure: failed program was:" >&5
21499 cat conftest.$ac_ext >&5
21501 rm -f conftest*
21503 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21507 echo "configure:21508: checking for $ac_hdr" >&5
21508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21509 echo $ac_n "(cached) $ac_c" 1>&6
21510 else
21511 cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21514 #include <$ac_hdr>
21516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21517 { (eval echo configure:21518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21519 if test -z "$ac_err"; then
21520 rm -rf conftest*
21521 eval "ac_cv_header_$ac_safe=yes"
21522 else
21523 echo "$ac_err" >&5
21524 echo "configure: failed program was:" >&5
21525 cat conftest.$ac_ext >&5
21526 rm -rf conftest*
21527 eval "ac_cv_header_$ac_safe=no"
21529 rm -f conftest*
21531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21532 echo "$ac_t""yes" 1>&6
21533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21534 cat >> confdefs.h <<EOF
21535 #define $ac_tr_hdr 1
21538 else
21539 echo "$ac_t""no" 1>&6
21541 done
21543 for ac_func in getpagesize
21545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21546 echo "configure:21547: checking for $ac_func" >&5
21547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21548 echo $ac_n "(cached) $ac_c" 1>&6
21549 else
21550 cat > conftest.$ac_ext <<EOF
21551 #line 21552 "configure"
21552 #include "confdefs.h"
21553 /* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char $ac_func(); below. */
21555 #include <assert.h>
21556 /* Override any gcc2 internal prototype to avoid an error. */
21557 /* We use char because int might match the return type of a gcc2
21558 builtin and then its argument prototype would still apply. */
21559 char $ac_func();
21561 int main() {
21563 /* The GNU C library defines this for functions which it implements
21564 to always fail with ENOSYS. Some functions are actually named
21565 something starting with __ and the normal name is an alias. */
21566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21567 choke me
21568 #else
21569 $ac_func();
21570 #endif
21572 ; return 0; }
21574 if { (eval echo configure:21575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21575 rm -rf conftest*
21576 eval "ac_cv_func_$ac_func=yes"
21577 else
21578 echo "configure: failed program was:" >&5
21579 cat conftest.$ac_ext >&5
21580 rm -rf conftest*
21581 eval "ac_cv_func_$ac_func=no"
21583 rm -f conftest*
21586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21587 echo "$ac_t""yes" 1>&6
21588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21589 cat >> confdefs.h <<EOF
21590 #define $ac_tr_func 1
21593 else
21594 echo "$ac_t""no" 1>&6
21596 done
21598 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21599 echo "configure:21600: checking for working mmap" >&5
21600 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21601 echo $ac_n "(cached) $ac_c" 1>&6
21602 else
21603 if test "$cross_compiling" = yes; then
21604 ac_cv_func_mmap_fixed_mapped=no
21605 else
21606 cat > conftest.$ac_ext <<EOF
21607 #line 21608 "configure"
21608 #include "confdefs.h"
21610 /* Thanks to Mike Haertel and Jim Avera for this test.
21611 Here is a matrix of mmap possibilities:
21612 mmap private not fixed
21613 mmap private fixed at somewhere currently unmapped
21614 mmap private fixed at somewhere already mapped
21615 mmap shared not fixed
21616 mmap shared fixed at somewhere currently unmapped
21617 mmap shared fixed at somewhere already mapped
21618 For private mappings, we should verify that changes cannot be read()
21619 back from the file, nor mmap's back from the file at a different
21620 address. (There have been systems where private was not correctly
21621 implemented like the infamous i386 svr4.0, and systems where the
21622 VM page cache was not coherent with the filesystem buffer cache
21623 like early versions of FreeBSD and possibly contemporary NetBSD.)
21624 For shared mappings, we should conversely verify that changes get
21625 propogated back to all the places they're supposed to be.
21627 Grep wants private fixed already mapped.
21628 The main things grep needs to know about mmap are:
21629 * does it exist and is it safe to write into the mmap'd area
21630 * how to use it (BSD variants) */
21631 #include <sys/types.h>
21632 #include <fcntl.h>
21633 #include <sys/mman.h>
21635 #if HAVE_SYS_TYPES_H
21636 # include <sys/types.h>
21637 #endif
21639 #if HAVE_STDLIB_H
21640 # include <stdlib.h>
21641 #endif
21643 #if HAVE_SYS_STAT_H
21644 # include <sys/stat.h>
21645 #endif
21647 #if HAVE_UNISTD_H
21648 # include <unistd.h>
21649 #endif
21651 /* This mess was copied from the GNU getpagesize.h. */
21652 #ifndef HAVE_GETPAGESIZE
21654 /* Assume that all systems that can run configure have sys/param.h. */
21655 # ifndef HAVE_SYS_PARAM_H
21656 # define HAVE_SYS_PARAM_H 1
21657 # endif
21659 # ifdef _SC_PAGESIZE
21660 # define getpagesize() sysconf(_SC_PAGESIZE)
21661 # else /* no _SC_PAGESIZE */
21662 # ifdef HAVE_SYS_PARAM_H
21663 # include <sys/param.h>
21664 # ifdef EXEC_PAGESIZE
21665 # define getpagesize() EXEC_PAGESIZE
21666 # else /* no EXEC_PAGESIZE */
21667 # ifdef NBPG
21668 # define getpagesize() NBPG * CLSIZE
21669 # ifndef CLSIZE
21670 # define CLSIZE 1
21671 # endif /* no CLSIZE */
21672 # else /* no NBPG */
21673 # ifdef NBPC
21674 # define getpagesize() NBPC
21675 # else /* no NBPC */
21676 # ifdef PAGESIZE
21677 # define getpagesize() PAGESIZE
21678 # endif /* PAGESIZE */
21679 # endif /* no NBPC */
21680 # endif /* no NBPG */
21681 # endif /* no EXEC_PAGESIZE */
21682 # else /* no HAVE_SYS_PARAM_H */
21683 # define getpagesize() 8192 /* punt totally */
21684 # endif /* no HAVE_SYS_PARAM_H */
21685 # endif /* no _SC_PAGESIZE */
21687 #endif /* no HAVE_GETPAGESIZE */
21689 #ifdef __cplusplus
21690 extern "C" { void *malloc(unsigned); }
21691 #else
21692 char *malloc();
21693 #endif
21696 main()
21698 char *data, *data2, *data3;
21699 int i, pagesize;
21700 int fd;
21702 pagesize = getpagesize();
21705 * First, make a file with some known garbage in it.
21707 data = malloc(pagesize);
21708 if (!data)
21709 exit(1);
21710 for (i = 0; i < pagesize; ++i)
21711 *(data + i) = rand();
21712 umask(0);
21713 fd = creat("conftestmmap", 0600);
21714 if (fd < 0)
21715 exit(1);
21716 if (write(fd, data, pagesize) != pagesize)
21717 exit(1);
21718 close(fd);
21721 * Next, try to mmap the file at a fixed address which
21722 * already has something else allocated at it. If we can,
21723 * also make sure that we see the same garbage.
21725 fd = open("conftestmmap", O_RDWR);
21726 if (fd < 0)
21727 exit(1);
21728 data2 = malloc(2 * pagesize);
21729 if (!data2)
21730 exit(1);
21731 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21732 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21734 exit(1);
21735 for (i = 0; i < pagesize; ++i)
21736 if (*(data + i) != *(data2 + i))
21737 exit(1);
21740 * Finally, make sure that changes to the mapped area
21741 * do not percolate back to the file as seen by read().
21742 * (This is a bug on some variants of i386 svr4.0.)
21744 for (i = 0; i < pagesize; ++i)
21745 *(data2 + i) = *(data2 + i) + 1;
21746 data3 = malloc(pagesize);
21747 if (!data3)
21748 exit(1);
21749 if (read(fd, data3, pagesize) != pagesize)
21750 exit(1);
21751 for (i = 0; i < pagesize; ++i)
21752 if (*(data + i) != *(data3 + i))
21753 exit(1);
21754 close(fd);
21755 unlink("conftestmmap");
21756 exit(0);
21760 if { (eval echo configure:21761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21761 then
21762 ac_cv_func_mmap_fixed_mapped=yes
21763 else
21764 echo "configure: failed program was:" >&5
21765 cat conftest.$ac_ext >&5
21766 rm -fr conftest*
21767 ac_cv_func_mmap_fixed_mapped=no
21769 rm -fr conftest*
21774 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21775 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21776 cat >> confdefs.h <<\EOF
21777 #define HAVE_MMAP 1
21783 # Establish limits on memory usage during 'make check'
21786 setrlimit_have_headers=yes
21787 for ac_hdr in unistd.h sys/time.h sys/resource.h
21789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21791 echo "configure:21792: checking for $ac_hdr" >&5
21792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21793 echo $ac_n "(cached) $ac_c" 1>&6
21794 else
21795 cat > conftest.$ac_ext <<EOF
21796 #line 21797 "configure"
21797 #include "confdefs.h"
21798 #include <$ac_hdr>
21800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21801 { (eval echo configure:21802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21803 if test -z "$ac_err"; then
21804 rm -rf conftest*
21805 eval "ac_cv_header_$ac_safe=yes"
21806 else
21807 echo "$ac_err" >&5
21808 echo "configure: failed program was:" >&5
21809 cat conftest.$ac_ext >&5
21810 rm -rf conftest*
21811 eval "ac_cv_header_$ac_safe=no"
21813 rm -f conftest*
21815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21816 echo "$ac_t""yes" 1>&6
21817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21818 cat >> confdefs.h <<EOF
21819 #define $ac_tr_hdr 1
21822 else
21823 echo "$ac_t""no" 1>&6
21824 setrlimit_have_headers=no
21826 done
21828 # If don't have the headers, then we can't run the tests now, and we
21829 # won't be seeing any of these during testsuite compilation.
21830 if test $setrlimit_have_headers = yes; then
21831 # Can't do these in a loop, else the resulting syntax is wrong.
21833 cat > conftest.$ac_ext <<EOF
21834 #line 21835 "configure"
21835 #include "confdefs.h"
21836 #include <unistd.h>
21837 #include <sys/time.h>
21838 #include <sys/resource.h>
21840 int main() {
21841 int f = RLIMIT_DATA ;
21842 ; return 0; }
21844 if { (eval echo configure:21845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21845 rm -rf conftest*
21846 glibcpp_mresult=1
21847 else
21848 echo "configure: failed program was:" >&5
21849 cat conftest.$ac_ext >&5
21850 rm -rf conftest*
21851 glibcpp_mresult=0
21853 rm -f conftest*
21854 cat >> confdefs.h <<EOF
21855 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21860 cat > conftest.$ac_ext <<EOF
21861 #line 21862 "configure"
21862 #include "confdefs.h"
21863 #include <unistd.h>
21864 #include <sys/time.h>
21865 #include <sys/resource.h>
21867 int main() {
21868 int f = RLIMIT_RSS ;
21869 ; return 0; }
21871 if { (eval echo configure:21872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21872 rm -rf conftest*
21873 glibcpp_mresult=1
21874 else
21875 echo "configure: failed program was:" >&5
21876 cat conftest.$ac_ext >&5
21877 rm -rf conftest*
21878 glibcpp_mresult=0
21880 rm -f conftest*
21881 cat >> confdefs.h <<EOF
21882 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21887 cat > conftest.$ac_ext <<EOF
21888 #line 21889 "configure"
21889 #include "confdefs.h"
21890 #include <unistd.h>
21891 #include <sys/time.h>
21892 #include <sys/resource.h>
21894 int main() {
21895 int f = RLIMIT_VMEM ;
21896 ; return 0; }
21898 if { (eval echo configure:21899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21899 rm -rf conftest*
21900 glibcpp_mresult=1
21901 else
21902 echo "configure: failed program was:" >&5
21903 cat conftest.$ac_ext >&5
21904 rm -rf conftest*
21905 glibcpp_mresult=0
21907 rm -f conftest*
21908 cat >> confdefs.h <<EOF
21909 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21914 cat > conftest.$ac_ext <<EOF
21915 #line 21916 "configure"
21916 #include "confdefs.h"
21917 #include <unistd.h>
21918 #include <sys/time.h>
21919 #include <sys/resource.h>
21921 int main() {
21922 int f = RLIMIT_AS ;
21923 ; return 0; }
21925 if { (eval echo configure:21926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21926 rm -rf conftest*
21927 glibcpp_mresult=1
21928 else
21929 echo "configure: failed program was:" >&5
21930 cat conftest.$ac_ext >&5
21931 rm -rf conftest*
21932 glibcpp_mresult=0
21934 rm -f conftest*
21935 cat >> confdefs.h <<EOF
21936 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21941 # Check for rlimit, setrlimit.
21942 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21943 echo $ac_n "(cached) $ac_c" 1>&6
21944 else
21946 cat > conftest.$ac_ext <<EOF
21947 #line 21948 "configure"
21948 #include "confdefs.h"
21949 #include <unistd.h>
21950 #include <sys/time.h>
21951 #include <sys/resource.h>
21953 int main() {
21954 struct rlimit r; setrlimit(0, &r);
21955 ; return 0; }
21957 if { (eval echo configure:21958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21958 rm -rf conftest*
21959 ac_setrlimit=yes
21960 else
21961 echo "configure: failed program was:" >&5
21962 cat conftest.$ac_ext >&5
21963 rm -rf conftest*
21964 ac_setrlimit=no
21966 rm -f conftest*
21972 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21973 echo "configure:21974: checking for testsuite memory limit support" >&5
21974 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21975 ac_mem_limits=yes
21976 cat >> confdefs.h <<\EOF
21977 #define _GLIBCPP_MEM_LIMITS 1
21980 else
21981 ac_mem_limits=no
21983 echo "$ac_t""$ac_mem_limits" 1>&6
21986 # Look for setenv, so that extended locale tests can be performed.
21988 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21989 echo "configure:21990: checking for setenv declaration" >&5
21990 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21991 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21992 echo $ac_n "(cached) $ac_c" 1>&6
21993 else
21996 ac_ext=C
21997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21998 ac_cpp='$CXXCPP $CPPFLAGS'
21999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22001 cross_compiling=$ac_cv_prog_cxx_cross
22003 cat > conftest.$ac_ext <<EOF
22004 #line 22005 "configure"
22005 #include "confdefs.h"
22006 #include <stdlib.h>
22007 int main() {
22008 setenv(0, 0, 0);
22009 ; return 0; }
22011 if { (eval echo configure:22012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22012 rm -rf conftest*
22013 glibcpp_cv_func_setenv_use=yes
22014 else
22015 echo "configure: failed program was:" >&5
22016 cat conftest.$ac_ext >&5
22017 rm -rf conftest*
22018 glibcpp_cv_func_setenv_use=no
22020 rm -f conftest*
22021 ac_ext=c
22022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22023 ac_cpp='$CPP $CPPFLAGS'
22024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22026 cross_compiling=$ac_cv_prog_cc_cross
22032 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22033 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22034 for ac_func in setenv
22036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22037 echo "configure:22038: checking for $ac_func" >&5
22038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22039 echo $ac_n "(cached) $ac_c" 1>&6
22040 else
22041 cat > conftest.$ac_ext <<EOF
22042 #line 22043 "configure"
22043 #include "confdefs.h"
22044 /* System header to define __stub macros and hopefully few prototypes,
22045 which can conflict with char $ac_func(); below. */
22046 #include <assert.h>
22047 /* Override any gcc2 internal prototype to avoid an error. */
22048 /* We use char because int might match the return type of a gcc2
22049 builtin and then its argument prototype would still apply. */
22050 char $ac_func();
22052 int main() {
22054 /* The GNU C library defines this for functions which it implements
22055 to always fail with ENOSYS. Some functions are actually named
22056 something starting with __ and the normal name is an alias. */
22057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22058 choke me
22059 #else
22060 $ac_func();
22061 #endif
22063 ; return 0; }
22065 if { (eval echo configure:22066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22066 rm -rf conftest*
22067 eval "ac_cv_func_$ac_func=yes"
22068 else
22069 echo "configure: failed program was:" >&5
22070 cat conftest.$ac_ext >&5
22071 rm -rf conftest*
22072 eval "ac_cv_func_$ac_func=no"
22074 rm -f conftest*
22077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22078 echo "$ac_t""yes" 1>&6
22079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22080 cat >> confdefs.h <<EOF
22081 #define $ac_tr_func 1
22084 else
22085 echo "$ac_t""no" 1>&6
22087 done
22092 # Export file names for ABI checking.
22093 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
22096 # Don't do ABI checking unless native.
22099 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
22100 GLIBCPP_BUILD_ABI_CHECK_TRUE=
22101 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
22102 else
22103 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
22104 GLIBCPP_BUILD_ABI_CHECK_FALSE=
22109 # This depends on the possibly-skipped linker test above.
22110 # Check whether --enable-symvers or --disable-symvers was given.
22111 if test "${enable_symvers+set}" = set; then
22112 enableval="$enable_symvers"
22113 case "$enableval" in
22114 yes) enable_symvers=yes ;;
22115 no) enable_symvers=no ;;
22116 # other names here, just as sanity checks
22117 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22118 gnu) enable_symvers=$enableval ;;
22119 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22120 esac
22121 else
22122 enable_symvers=yes
22125 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22126 # don't know enough about $LD to do tricks...
22127 if test x$enable_shared = xno ||
22128 test "x$LD" = x ||
22129 test x$glibcpp_gnu_ld_version = x; then
22130 enable_symvers=no
22133 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22134 if test $enable_symvers != no; then
22135 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22136 echo "configure:22137: checking for shared libgcc" >&5
22137 ac_save_CFLAGS="$CFLAGS"
22138 CFLAGS=' -lgcc_s'
22139 cat > conftest.$ac_ext <<EOF
22140 #line 22141 "configure"
22141 #include "confdefs.h"
22143 int main() {
22144 return 0
22145 ; return 0; }
22147 if { (eval echo configure:22148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22148 rm -rf conftest*
22149 glibcpp_shared_libgcc=yes
22150 else
22151 echo "configure: failed program was:" >&5
22152 cat conftest.$ac_ext >&5
22153 rm -rf conftest*
22154 glibcpp_shared_libgcc=no
22156 rm -f conftest*
22157 CFLAGS="$ac_save_CFLAGS"
22158 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22161 # For GNU ld, we need at least this version. It's 2.12 in the same format
22162 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22163 glibcpp_min_gnu_ld_version=21200
22165 # Check to see if unspecified "yes" value can win, given results
22166 # above.
22167 if test $enable_symvers = yes ; then
22168 if test $with_gnu_ld = yes &&
22169 test $glibcpp_shared_libgcc = yes ;
22170 then
22171 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22172 enable_symvers=gnu
22173 else
22174 ac_test_CFLAGS="${CFLAGS+set}"
22175 ac_save_CFLAGS="$CFLAGS"
22176 CFLAGS='-shared -Wl,--version-script,conftest.map'
22177 enable_symvers=no
22179 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22181 cat > conftest.$ac_ext <<EOF
22182 #line 22183 "configure"
22183 #include "confdefs.h"
22184 int foo;
22185 int main() {
22187 ; return 0; }
22189 if { (eval echo configure:22190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22190 rm -rf conftest*
22191 enable_symvers=gnu
22192 else
22193 echo "configure: failed program was:" >&5
22194 cat conftest.$ac_ext >&5
22196 rm -f conftest*
22197 if test "$ac_test_CFLAGS" = set; then
22198 CFLAGS="$ac_save_CFLAGS"
22199 else
22200 # this is the suspicious part
22201 CFLAGS=''
22203 rm -f conftest.map
22205 else
22206 # just fail for now
22207 enable_symvers=no
22211 case $enable_symvers in
22213 LINKER_MAP=config/linker-map.dummy
22215 gnu)
22216 LINKER_MAP=config/linker-map.gnu
22218 esac
22223 if test $enable_symvers != no; then
22224 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22225 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22226 else
22227 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22228 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22230 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22231 echo "configure:22232: checking versioning on shared library symbols" >&5
22232 echo "$ac_t""$enable_symvers" 1>&6
22235 # Propagate the target-specific source directories through the build chain.
22236 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
22237 # uses it, and they only get used here.)
22238 OS_INC_SRCDIR=config/${os_include_dir}
22239 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22243 # Set up cross-compile flags
22246 if test "$CANADIAN" = yes; then
22247 CANADIAN_TRUE=
22248 CANADIAN_FALSE='#'
22249 else
22250 CANADIAN_TRUE='#'
22251 CANADIAN_FALSE=
22254 cat > confcache <<\EOF
22255 # This file is a shell script that caches the results of configure
22256 # tests run on this system so they can be shared between configure
22257 # scripts and configure runs. It is not useful on other systems.
22258 # If it contains results you don't want to keep, you may remove or edit it.
22260 # By default, configure uses ./config.cache as the cache file,
22261 # creating it if it does not exist already. You can give configure
22262 # the --cache-file=FILE option to use a different cache file; that is
22263 # what configure does when it calls configure scripts in
22264 # subdirectories, so they share the cache.
22265 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22266 # config.status only pays attention to the cache file if you give it the
22267 # --recheck option to rerun configure.
22270 # The following way of writing the cache mishandles newlines in values,
22271 # but we know of no workaround that is simple, portable, and efficient.
22272 # So, don't put newlines in cache variables' values.
22273 # Ultrix sh set writes to stderr and can't be redirected directly,
22274 # and sets the high bit in the cache file unless we assign to the vars.
22275 (set) 2>&1 |
22276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22277 *ac_space=\ *)
22278 # `set' does not quote correctly, so add quotes (double-quote substitution
22279 # turns \\\\ into \\, and sed turns \\ into \).
22280 sed -n \
22281 -e "s/'/'\\\\''/g" \
22282 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22285 # `set' quotes correctly as required by POSIX, so do not add quotes.
22286 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22288 esac >> confcache
22289 if cmp -s $cache_file confcache; then
22291 else
22292 if test -w $cache_file; then
22293 echo "updating cache $cache_file"
22294 cat confcache > $cache_file
22295 else
22296 echo "not updating unwritable cache $cache_file"
22299 rm -f confcache
22302 if test "${multilib}" = "yes"; then
22303 multilib_arg="--enable-multilib"
22304 else
22305 multilib_arg=
22308 # Export all the install information
22310 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22311 # exported correctly in GLIBCPP_CONFIGURE.
22312 glibcpp_toolexecdir=no
22313 glibcpp_toolexeclibdir=no
22314 glibcpp_prefixdir=${prefix}
22316 # Process the option --with-gxx-include-dir=<path to include-files directory>
22317 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22318 echo "configure:22319: checking for --with-gxx-include-dir" >&5
22319 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22320 if test "${with_gxx_include_dir+set}" = set; then
22321 withval="$with_gxx_include_dir"
22322 case "${withval}" in
22323 yes)
22324 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22325 gxx_include_dir=no
22328 gxx_include_dir=no
22331 gxx_include_dir=${withval}
22333 esac
22334 else
22335 gxx_include_dir=no
22338 echo "$ac_t""$gxx_include_dir" 1>&6
22340 # Process the option "--enable-version-specific-runtime-libs"
22341 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22342 echo "configure:22343: checking for --enable-version-specific-runtime-libs" >&5
22343 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22344 if test "${enable_version_specific_runtime_libs+set}" = set; then
22345 enableval="$enable_version_specific_runtime_libs"
22346 case "$enableval" in
22347 yes) version_specific_libs=yes ;;
22348 no) version_specific_libs=no ;;
22349 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22350 esac
22351 else
22352 version_specific_libs=no
22354 # Option set, now we can test it.
22355 echo "$ac_t""$version_specific_libs" 1>&6
22357 # Default case for install directory for include files.
22358 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22359 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22362 # Version-specific runtime libs processing.
22363 if test $version_specific_libs = yes; then
22364 # Need the gcc compiler version to know where to install libraries
22365 # and header files if --enable-version-specific-runtime-libs option
22366 # is selected.
22367 if test x"$gxx_include_dir" = x"no"; then
22368 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22370 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22371 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22374 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22375 # Install a library built with a cross compiler in tooldir, not libdir.
22376 if test x"$glibcpp_toolexecdir" = x"no"; then
22377 if test -n "$with_cross_host" &&
22378 test x"$with_cross_host" != x"no"; then
22379 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22380 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22381 else
22382 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22383 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22387 echo $ac_n "checking for install location""... $ac_c" 1>&6
22388 echo "configure:22389: checking for install location" >&5
22389 echo "$ac_t""$gxx_include_dir" 1>&6
22397 # Export all the include and flag information to makefiles.
22399 # Root level of the build directory include sources.
22400 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22402 # Passed down for canadian crosses.
22403 if test x"$CANADIAN" = xyes; then
22404 TOPLEVEL_INCLUDES='-I$(includedir)'
22407 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22409 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22411 if test x"$need_libio" = xyes; then
22412 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22416 # Now, export this to all the little Makefiles....
22423 # Optimization flags that are probably a good idea for thrill-seekers. Just
22424 # uncomment the lines below and make, everything else is ready to go...
22425 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22426 OPTIMIZE_CXXFLAGS=
22429 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22433 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22434 grep "enable shared" > /dev/null; then
22435 LIBSUPCXX_PICFLAGS=-prefer-pic
22436 else
22437 LIBSUPCXX_PICFLAGS=
22441 # Generate the various Makefiles, include files, and scripts.
22442 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22443 # and libsupc++/Makefile.am so that multilib installs will end up
22444 # installed in the correct place. To work around this not being passed
22445 # down from config-ml.in -> top_srcdir/Makefile.am ->
22446 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22447 trap '' 1 2 15
22448 cat > confcache <<\EOF
22449 # This file is a shell script that caches the results of configure
22450 # tests run on this system so they can be shared between configure
22451 # scripts and configure runs. It is not useful on other systems.
22452 # If it contains results you don't want to keep, you may remove or edit it.
22454 # By default, configure uses ./config.cache as the cache file,
22455 # creating it if it does not exist already. You can give configure
22456 # the --cache-file=FILE option to use a different cache file; that is
22457 # what configure does when it calls configure scripts in
22458 # subdirectories, so they share the cache.
22459 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22460 # config.status only pays attention to the cache file if you give it the
22461 # --recheck option to rerun configure.
22464 # The following way of writing the cache mishandles newlines in values,
22465 # but we know of no workaround that is simple, portable, and efficient.
22466 # So, don't put newlines in cache variables' values.
22467 # Ultrix sh set writes to stderr and can't be redirected directly,
22468 # and sets the high bit in the cache file unless we assign to the vars.
22469 (set) 2>&1 |
22470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22471 *ac_space=\ *)
22472 # `set' does not quote correctly, so add quotes (double-quote substitution
22473 # turns \\\\ into \\, and sed turns \\ into \).
22474 sed -n \
22475 -e "s/'/'\\\\''/g" \
22476 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22479 # `set' quotes correctly as required by POSIX, so do not add quotes.
22480 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22482 esac >> confcache
22483 if cmp -s $cache_file confcache; then
22485 else
22486 if test -w $cache_file; then
22487 echo "updating cache $cache_file"
22488 cat confcache > $cache_file
22489 else
22490 echo "not updating unwritable cache $cache_file"
22493 rm -f confcache
22495 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22498 # Let make expand exec_prefix.
22499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22501 # Any assignment to VPATH causes Sun make to only execute
22502 # the first set of double-colon rules, so remove it if not needed.
22503 # If there is a colon in the path, we need to keep it.
22504 if test "x$srcdir" = x.; then
22505 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22508 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22510 DEFS=-DHAVE_CONFIG_H
22512 # Without the "./", some shells look in PATH for config.status.
22513 : ${CONFIG_STATUS=./config.status}
22515 echo creating $CONFIG_STATUS
22516 rm -f $CONFIG_STATUS
22517 cat > $CONFIG_STATUS <<EOF
22518 #! /bin/sh
22519 # Generated automatically by configure.
22520 # Run this file to recreate the current configuration.
22521 # This directory was configured as follows,
22522 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22524 # $0 $ac_configure_args
22526 # Compiler output produced by configure, useful for debugging
22527 # configure, is in ./config.log if it exists.
22529 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22530 for ac_option
22532 case "\$ac_option" in
22533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22534 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22535 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22536 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22537 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22538 exit 0 ;;
22539 -help | --help | --hel | --he | --h)
22540 echo "\$ac_cs_usage"; exit 0 ;;
22541 *) echo "\$ac_cs_usage"; exit 1 ;;
22542 esac
22543 done
22545 ac_given_srcdir=$srcdir
22546 ac_given_INSTALL="$INSTALL"
22548 trap 'rm -fr `echo "Makefile \
22549 include/Makefile src/Makefile \
22550 libmath/Makefile libio/Makefile libsupc++/Makefile \
22551 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22553 cat >> $CONFIG_STATUS <<EOF
22555 # Protect against being on the right side of a sed subst in config.status.
22556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22558 $ac_vpsub
22559 $extrasub
22560 s%@SHELL@%$SHELL%g
22561 s%@CFLAGS@%$CFLAGS%g
22562 s%@CPPFLAGS@%$CPPFLAGS%g
22563 s%@CXXFLAGS@%$CXXFLAGS%g
22564 s%@FFLAGS@%$FFLAGS%g
22565 s%@DEFS@%$DEFS%g
22566 s%@LDFLAGS@%$LDFLAGS%g
22567 s%@LIBS@%$LIBS%g
22568 s%@exec_prefix@%$exec_prefix%g
22569 s%@prefix@%$prefix%g
22570 s%@program_transform_name@%$program_transform_name%g
22571 s%@bindir@%$bindir%g
22572 s%@sbindir@%$sbindir%g
22573 s%@libexecdir@%$libexecdir%g
22574 s%@datadir@%$datadir%g
22575 s%@sysconfdir@%$sysconfdir%g
22576 s%@sharedstatedir@%$sharedstatedir%g
22577 s%@localstatedir@%$localstatedir%g
22578 s%@libdir@%$libdir%g
22579 s%@includedir@%$includedir%g
22580 s%@oldincludedir@%$oldincludedir%g
22581 s%@infodir@%$infodir%g
22582 s%@mandir@%$mandir%g
22583 s%@PACKAGE@%$PACKAGE%g
22584 s%@libtool_VERSION@%$libtool_VERSION%g
22585 s%@toplevel_srcdir@%$toplevel_srcdir%g
22586 s%@host@%$host%g
22587 s%@host_alias@%$host_alias%g
22588 s%@host_cpu@%$host_cpu%g
22589 s%@host_vendor@%$host_vendor%g
22590 s%@host_os@%$host_os%g
22591 s%@target@%$target%g
22592 s%@target_alias@%$target_alias%g
22593 s%@target_cpu@%$target_cpu%g
22594 s%@target_vendor@%$target_vendor%g
22595 s%@target_os@%$target_os%g
22596 s%@build@%$build%g
22597 s%@build_alias@%$build_alias%g
22598 s%@build_cpu@%$build_cpu%g
22599 s%@build_vendor@%$build_vendor%g
22600 s%@build_os@%$build_os%g
22601 s%@glibcpp_builddir@%$glibcpp_builddir%g
22602 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22603 s%@AWK@%$AWK%g
22604 s%@LN_S@%$LN_S%g
22605 s%@glibcpp_basedir@%$glibcpp_basedir%g
22606 s%@CC@%$CC%g
22607 s%@glibcpp_CXX@%$glibcpp_CXX%g
22608 s%@AS@%$AS%g
22609 s%@AR@%$AR%g
22610 s%@RANLIB@%$RANLIB%g
22611 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22612 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22613 s%@INSTALL_DATA@%$INSTALL_DATA%g
22614 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22615 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22616 s%@MAINT@%$MAINT%g
22617 s%@EXEEXT@%$EXEEXT%g
22618 s%@VERSION@%$VERSION%g
22619 s%@ACLOCAL@%$ACLOCAL%g
22620 s%@AUTOCONF@%$AUTOCONF%g
22621 s%@AUTOMAKE@%$AUTOMAKE%g
22622 s%@AUTOHEADER@%$AUTOHEADER%g
22623 s%@MAKEINFO@%$MAKEINFO%g
22624 s%@SET_MAKE@%$SET_MAKE%g
22625 s%@OBJEXT@%$OBJEXT%g
22626 s%@STRIP@%$STRIP%g
22627 s%@LIBTOOL@%$LIBTOOL%g
22628 s%@CXXCPP@%$CXXCPP%g
22629 s%@enable_shared@%$enable_shared%g
22630 s%@enable_static@%$enable_static%g
22631 s%@ifGNUmake@%$ifGNUmake%g
22632 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22633 s%@CPP@%$CPP%g
22634 s%@CSTDIO_H@%$CSTDIO_H%g
22635 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22636 s%@CCODECVT_C@%$CCODECVT_C%g
22637 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22638 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22639 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22640 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22641 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22642 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22643 s%@libio_la@%$libio_la%g
22644 s%@check_msgfmt@%$check_msgfmt%g
22645 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22646 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22647 s%@glibcpp_localedir@%$glibcpp_localedir%g
22648 s%@USE_NLS@%$USE_NLS%g
22649 s%@CLOCALE_H@%$CLOCALE_H%g
22650 s%@CCODECVT_H@%$CCODECVT_H%g
22651 s%@CMESSAGES_H@%$CMESSAGES_H%g
22652 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22653 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22654 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22655 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22656 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22657 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22658 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22659 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22660 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22661 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22662 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22663 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22664 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22665 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22666 s%@WERROR@%$WERROR%g
22667 s%@baseline_file@%$baseline_file%g
22668 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
22669 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
22670 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22671 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22672 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22673 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22674 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22675 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22676 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22677 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22678 s%@gxx_include_dir@%$gxx_include_dir%g
22679 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22680 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22681 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22682 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22683 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22684 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22685 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22686 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22687 s%@WARN_FLAGS@%$WARN_FLAGS%g
22688 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22690 CEOF
22693 cat >> $CONFIG_STATUS <<\EOF
22695 # Split the substitutions into bite-sized pieces for seds with
22696 # small command number limits, like on Digital OSF/1 and HP-UX.
22697 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22698 ac_file=1 # Number of current file.
22699 ac_beg=1 # First line for current file.
22700 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22701 ac_more_lines=:
22702 ac_sed_cmds=""
22703 while $ac_more_lines; do
22704 if test $ac_beg -gt 1; then
22705 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22706 else
22707 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22709 if test ! -s conftest.s$ac_file; then
22710 ac_more_lines=false
22711 rm -f conftest.s$ac_file
22712 else
22713 if test -z "$ac_sed_cmds"; then
22714 ac_sed_cmds="sed -f conftest.s$ac_file"
22715 else
22716 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22718 ac_file=`expr $ac_file + 1`
22719 ac_beg=$ac_end
22720 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22722 done
22723 if test -z "$ac_sed_cmds"; then
22724 ac_sed_cmds=cat
22728 cat >> $CONFIG_STATUS <<EOF
22730 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22731 include/Makefile src/Makefile \
22732 libmath/Makefile libio/Makefile libsupc++/Makefile \
22733 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22735 cat >> $CONFIG_STATUS <<\EOF
22736 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22738 case "$ac_file" in
22739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22741 *) ac_file_in="${ac_file}.in" ;;
22742 esac
22744 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22746 # Remove last slash and all that follows it. Not all systems have dirname.
22747 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22748 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22749 # The file is in a subdirectory.
22750 test ! -d "$ac_dir" && mkdir "$ac_dir"
22751 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22752 # A "../" for each directory in $ac_dir_suffix.
22753 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22754 else
22755 ac_dir_suffix= ac_dots=
22758 case "$ac_given_srcdir" in
22759 .) srcdir=.
22760 if test -z "$ac_dots"; then top_srcdir=.
22761 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22762 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22763 *) # Relative path.
22764 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22765 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22766 esac
22768 case "$ac_given_INSTALL" in
22769 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22770 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22771 esac
22773 echo creating "$ac_file"
22774 rm -f "$ac_file"
22775 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22776 case "$ac_file" in
22777 *Makefile*) ac_comsub="1i\\
22778 # $configure_input" ;;
22779 *) ac_comsub= ;;
22780 esac
22782 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22783 sed -e "$ac_comsub
22784 s%@configure_input@%$configure_input%g
22785 s%@srcdir@%$srcdir%g
22786 s%@top_srcdir@%$top_srcdir%g
22787 s%@INSTALL@%$INSTALL%g
22788 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22789 fi; done
22790 rm -f conftest.s*
22792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22795 # ac_d sets the value in "#define NAME VALUE" lines.
22796 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22797 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22798 ac_dC='\3'
22799 ac_dD='%g'
22800 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22801 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22802 ac_uB='\([ ]\)%\1#\2define\3'
22803 ac_uC=' '
22804 ac_uD='\4%g'
22805 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22806 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22807 ac_eB='$%\1#\2define\3'
22808 ac_eC=' '
22809 ac_eD='%g'
22811 if test "${CONFIG_HEADERS+set}" != set; then
22813 cat >> $CONFIG_STATUS <<EOF
22814 CONFIG_HEADERS="config.h"
22816 cat >> $CONFIG_STATUS <<\EOF
22818 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22820 case "$ac_file" in
22821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22823 *) ac_file_in="${ac_file}.in" ;;
22824 esac
22826 echo creating $ac_file
22828 rm -f conftest.frag conftest.in conftest.out
22829 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22830 cat $ac_file_inputs > conftest.in
22834 # Transform confdefs.h into a sed script conftest.vals that substitutes
22835 # the proper values into config.h.in to produce config.h. And first:
22836 # Protect against being on the right side of a sed subst in config.status.
22837 # Protect against being in an unquoted here document in config.status.
22838 rm -f conftest.vals
22839 cat > conftest.hdr <<\EOF
22840 s/[\\&%]/\\&/g
22841 s%[\\$`]%\\&%g
22842 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22843 s%ac_d%ac_u%gp
22844 s%ac_u%ac_e%gp
22846 sed -n -f conftest.hdr confdefs.h > conftest.vals
22847 rm -f conftest.hdr
22849 # This sed command replaces #undef with comments. This is necessary, for
22850 # example, in the case of _POSIX_SOURCE, which is predefined and required
22851 # on some systems where configure will not decide to define it.
22852 cat >> conftest.vals <<\EOF
22853 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22856 # Break up conftest.vals because some shells have a limit on
22857 # the size of here documents, and old seds have small limits too.
22859 rm -f conftest.tail
22860 while :
22862 ac_lines=`grep -c . conftest.vals`
22863 # grep -c gives empty output for an empty file on some AIX systems.
22864 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22865 # Write a limited-size here document to conftest.frag.
22866 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22867 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22868 echo 'CEOF
22869 sed -f conftest.frag conftest.in > conftest.out
22870 rm -f conftest.in
22871 mv conftest.out conftest.in
22872 ' >> $CONFIG_STATUS
22873 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22874 rm -f conftest.vals
22875 mv conftest.tail conftest.vals
22876 done
22877 rm -f conftest.vals
22879 cat >> $CONFIG_STATUS <<\EOF
22880 rm -f conftest.frag conftest.h
22881 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22882 cat conftest.in >> conftest.h
22883 rm -f conftest.in
22884 if cmp -s $ac_file conftest.h 2>/dev/null; then
22885 echo "$ac_file is unchanged"
22886 rm -f conftest.h
22887 else
22888 # Remove last slash and all that follows it. Not all systems have dirname.
22889 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22891 # The file is in a subdirectory.
22892 test ! -d "$ac_dir" && mkdir "$ac_dir"
22894 rm -f $ac_file
22895 mv conftest.h $ac_file
22897 fi; done
22901 cat >> $CONFIG_STATUS <<EOF
22902 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
22903 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
22906 cat >> $CONFIG_STATUS <<\EOF
22907 srcdir=$ac_given_srcdir
22908 while test -n "$ac_sources"; do
22909 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22910 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22912 echo "linking $srcdir/$ac_source to $ac_dest"
22914 if test ! -r $srcdir/$ac_source; then
22915 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22917 rm -f $ac_dest
22919 # Make relative symlinks.
22920 # Remove last slash and all that follows it. Not all systems have dirname.
22921 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22922 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22923 # The dest file is in a subdirectory.
22924 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22925 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22926 # A "../" for each directory in $ac_dest_dir_suffix.
22927 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22928 else
22929 ac_dest_dir_suffix= ac_dots=
22932 case "$srcdir" in
22933 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22934 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22935 esac
22937 # Make a symlink if possible; otherwise try a hard link.
22938 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22939 ln $srcdir/$ac_source $ac_dest; then :
22940 else
22941 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22943 done
22945 cat >> $CONFIG_STATUS <<EOF
22947 srcdir=${srcdir}
22948 host=${host}
22949 target=${target}
22950 with_multisubdir=${with_multisubdir}
22951 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22952 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22953 glibcpp_basedir=${glibcpp_basedir}
22954 CC="${CC}"
22955 CXX="${CXX}"
22958 cat >> $CONFIG_STATUS <<\EOF
22959 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22960 if test -n "$CONFIG_FILES"; then
22961 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22962 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22963 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22964 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22966 chmod +x mkcheck
22967 chmod +x testsuite_flags
22969 exit 0
22971 chmod +x $CONFIG_STATUS
22972 rm -fr confdefs* $ac_clean_files
22973 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22977 # Sanity checking & User-visible messages.
22978 # Checks down here, otherwise they get scrolled off before
22979 # the user will notice.
22981 # Trying to get more people to read documentation. Possibly remove
22982 # check and warn all the time. There is no "informational" AC_MSG_
22983 # macro, so these are going to be printed even when --quiet/--silent
22984 # is given.
22985 if test ! -f stamp-sanity-warned; then
22986 touch stamp-sanity-warned
22987 echo ""
22988 echo "Please make certain that you read the installation information here:"
22989 echo " faster => ${srcdir}/docs/html/install.html"
22990 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22991 echo ""
22992 echo "and the configuration information here:"
22993 echo " faster => ${srcdir}/docs/html/configopts.html"
22994 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22995 echo ""
22996 echo "before proceeding with ${_cv_gnu_make_command}."
22997 echo ""